CN101599866A - The method of the calling function of network of test network card and use its test macro - Google Patents

The method of the calling function of network of test network card and use its test macro Download PDF

Info

Publication number
CN101599866A
CN101599866A CNA2008100859611A CN200810085961A CN101599866A CN 101599866 A CN101599866 A CN 101599866A CN A2008100859611 A CNA2008100859611 A CN A2008100859611A CN 200810085961 A CN200810085961 A CN 200810085961A CN 101599866 A CN101599866 A CN 101599866A
Authority
CN
China
Prior art keywords
adapter
power management
event position
network
management event
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
CNA2008100859611A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNA2008100859611A priority Critical patent/CN101599866A/en
Publication of CN101599866A publication Critical patent/CN101599866A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a kind of test network card calling function of network method and use its test macro.Whether calculator device can be tested the calling function of network that is installed on adapter wherein in the process of operation normal.Its method of testing comprises the following steps: to switch the power management states of the adapter of calculator device, makes adapter enter sleep (sleep) pattern; Transmit the adapter of magic package (magic packet) by transmitting terminal to calculator device; According to magic package content,, make adapter enter mode of operation in order to the power management states of handover network adapter; Carry out a check problem, make calculator device in order to check whether normally running of adapter.

Description

The method of the calling function of network of test network card and use its test macro
Technical field
A kind of method of testing of adapter and testing apparatus thereof, be particularly to a kind of test network card calling function of network method and use the test macro of this method.
Background technology
WOL (Wake-on-LAN is hereinafter to be referred as WOL) is that a kind of technology also is the codes and standards of this technology simultaneously.The effect of WOL is to allow the computer that has entered resting state or off-mode, by another main frame of internet it is issued an order, and makes it wake, revert to operating state up from resting state, or changes into open state from off-mode.In addition, the technology relevant with WOL also comprise long-rangely order to shut down, long-range relevant remote control mechanism such as order to start shooting again.
Be to realize in calculator device the purpose of WOL, calculator device need possess, adapter, motherboard and power supply unit.Adapter need provide WOL corresponding connected mode with motherboard.In the wiring circuit of adapter, comprised and waited to be equipped with (Standby) power supply motherboard, this power supply be by the PCI on the motherboard (Peripheral Component Interconnect) bus additionally drawn get obtain.In addition, WOL also must have the firmware support, the application program that " power management " also must be arranged in the BIOS on the motherboard (Basic Input Output System), and in the configuration configuration of computer, be necessary for network card and keep a continued power, even if make the computer shutdown also can continue the function running that allows network card keep part.
Generally speaking, the Remote Wake Up step of WOL technology is as follows: when computer is in shutdown (or dormancy) state, network card in the machine and motherboard part are still possessed faint power supply, this faint power supply can allow network card possess minimum operating capability, make network card can listen to network broadcast information from the computer outside, and the information content detected and understand, in case in the content of discovery Web broadcast the information specific content is arranged, this kind certain content is called: magic package, will analyze the content of this package.
In magic package, continuous 6 " FF " (hexadecimals all can be arranged earlier at every turn, be converted into binary system promptly: data 11111111), that is: FF FF FF FF FF FF, after continuous 6 " FF ", then begin to take out of mac address information, also can take the password of 4 bytes or 6 bytes sometimes out of, in case detect, understand, analyze the content of (broadcasting) magic package via network card, if MAC Address in the content, password will start the program of waking up, starting shooting identical with address, the password of computer self.
Magic package sends with broadcast mode, the mode of broadcasting can be to whole local area network network (LAN), it also can be specific sub-network (Subnet), have the network address data of certain one (or a group) computer simultaneously in the magic package, in case the network card interpretive analysis goes out the address of indication when being self residing computer, motherboard, the power supply unit (Power supply) of network card in will announcement machine, the program of begin to start shooting (or waking up).
Current manufacturer is whether the WOL of test network card can normal operation, and manufacturer then needs calculator device is shut down, substitutes network card and start test respectively.Please refer to shown in Figure 1ly, it is the operation workflow schematic diagram of prior art.Tested machine is carried out the connection and the setting (step S110) of adapter.Start the operating system of test machine, and obtain the MAC value (step S120) of the adapter of test machine.Close the operating system (step S130) of test machine.By another transmitting terminal operation Remote Wake Up program, specify the MAC value of the affiliated adapter of to-be-detected machine, and send magic package to to-be-detected machine (step S140).Check whether to-be-detected machine can normally start (step S150).Judge whether to be last test machine (step S160), until all to-be-detected machine completing steps S110~step S150.So, the time of test will be expended on the process of machine open/close.
Summary of the invention
In view of above problem, main purpose of the present invention is to provide a kind of method of calling function of network of test network card, is applied to calculator device carries out WOL to adapter when operating test.
For reaching above-mentioned purpose, the method of the calling function of network of the disclosed test network card of the present invention, it comprises the following steps: to switch the power management states of the adapter of calculator device, revise the power management event position (power management event bit) of adapter, make adapter enter sleep pattern.Transmit the adapter of magic package by transmitting terminal to calculator device.Revise the power management event position of adapter, make adapter enter mode of operation.Check the power management event position of adapter, then do not carry out the caution means in order to remind the user if the power management event position is modified.
The invention provides a kind of test macro of method of calling function of network of use test network card, it has the network card of calling function of network in order to test.
For reaching above-mentioned purpose, the test macro of the method for the calling function of network of the disclosed use test network card of the present invention includes: transmitting terminal, calculator device, electric power supply unit, adapter and wake up procedure.Transmitting terminal is in order to transmit magic package and a plurality of network package; Calculator device is connected in transmitting terminal by the internet, and calculator device more includes: electric power supply unit provides multiple power mode, and electric power supply unit is in order to provide the power for operation of calculator device in corresponding modes; Adapter is in order to the magic package of receiving end/sending end, make adapter carry out a wake up procedure, adapter is in order to switch to operating state with adapter by sleep pattern, wake up procedure may further comprise the steps: the power management states of switching the adapter of calculator device, revise the power management event position of adapter, make adapter enter sleep pattern.Transmit the adapter of magic package by transmitting terminal to calculator device.Revise the power management event position of adapter, make adapter enter mode of operation.Check the power management event position of adapter, then do not carry out the caution means in order to remind the user if the power management event position is modified.
The invention provides a kind of calculator device and in the process of operation, can test the arousal function of its adapter.Thus, can reduce the time of calculator device in startup, load operation system and shutdown.
Relevant characteristics and implementation of the present invention cooperate diagram to be described in detail as follows as most preferred embodiment now.
Description of drawings
Fig. 1 is a configuration diagram of the present invention;
Fig. 2 is a system architecture schematic diagram of the present invention;
Fig. 3 is the operation workflow figure of wake up procedure of the present invention.
[primary clustering symbol description]
200 test macros
210 transmitting terminals
220 calculator devices
221 electric power supply units
222 adapters
223 wake up procedure
224 alarm modules
Embodiment
Please refer to shown in Figure 2ly, it is a system architecture schematic diagram of the present invention.Test macro 200 to the function of WOL includes: transmitting terminal 210, calculator device 220.Transmitting terminal 210 is in order to transmit magic package and a plurality of network package.Calculator device 220 is connected in transmitting terminal 210 by the internet, more includes in the calculator device 220: electric power supply unit 221, adapter 222, wake up procedure 223 and alarm module 224.
Electric power supply unit 221 provides multiple power mode, and electric power supply unit 221 is in order to provide the power for operation of calculator device 220 in corresponding modes.Adapter 222 is in order to magic package and a plurality of network package of receiving end/sending end 210.It is because the support of power management is arranged that calling function of network can wake machine up, just makes calculator device 220 to start.This needs the pci bus in the calculator device 220 that the support power management is arranged.The adapter 222 that has the WOL function in order to trigger the signal of power management event, makes its generation satisfy the potential change condition that operating system is activated by changing the power management buffer of PCI.Wherein, possess following table 1 described various states to system power supply in the powder source management mode, it is described to please refer to following table 1:
The system power supply state Meaning
S0 CPU opens fully, and equipment may take any power source state
S1 CPU stops, RAM refresh
S2 CPU does not have power supply, RAM refresh
S3 CPU does not have power supply, and RAM slowly refreshes, and power supply output reduces
S4 System turn-offs, and RAM stores disk into
S5 System turn-offs, power-off, and guiding could recovery operation again completely
The state of table 1. system power supply
Except electrical management, have the power supply status of following table 2 to describe in addition for items of equipment wherein for the system of calculator device 220:
The device power supply (DPS) state Meaning
D0 Equipment is opened fully
D1 Equipment keeps the context environmental of equipment at low power state
D2 Equipment is at low power state, and the context environmental of equipment may be incorrect
D3 Equipment does not have power supply, and context environmental is lost
The state of table 2. peripheral equipment power
Please refer to shown in Figure 3ly, it is the operation workflow figure of wake up procedure of the present invention.At first, switch the power management states (step S310) of the adapter of calculator device, revise the power management event position of adapter 222, make adapter 222 enter sleep pattern.Wherein, revising the power management event position of adapter 222, is the D3 state with it by the D0 status modifier.Transmit the adapter (step S320) of magic package by transmitting terminal 210 to calculator device.The adapter of calculator device is resolved the content of magic package in order to read MAC value included in the magic package or IP address (step S330); Whether MAC value or the IP address of judging magic package conform to adapter, then calculator device are switched to mode of operation (step S340).
If when the MAC value of adapter or IP conformed to, the power management event position of then revising adapter made adapter enter mode of operation (step S350).Wherein, revising the power management event position of adapter, is D0 state (step S360) with it by the D3 status modifier.Check the power management event position of adapter, then do not carry out the caution means in order to remind user (step S370) if the power management event position is modified.The caution means by alarm module 224 with information warning by the modes such as indication cresset on window information, loud speaker or the adapter of display frame, do not start in order to the calling function of network of reminding tester's adapter 222.
The invention provides a kind of calculator device and in the process of operation, can test the arousal function of its adapter 222.Thus, can reduce the time of calculator device 220 in startup, load operation system and shutdown.Manufacturer does not need the test of calculator device machine open/close, and so the testing time of calculator device 220 just can significantly be reduced.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (8)

1. the method for the calling function of network of a test network card is applied to the function that a calculator device wakes up an adapter test network when operating, and it is characterized in that this method of testing comprises the following steps:
Switch the power management states of this adapter of this calculator device, revise the power management event position of this adapter, make this adapter enter sleep pattern;
Transmit a magic package this adapter by a transmitting terminal to this calculator device;
By the power management event position that the operating system of this calculator device is revised this adapter, make this adapter enter mode of operation; And
Check the power management event position of this adapter, then do not carry out caution means in order to remind the user if this power management event position is modified.
2. the method for the calling function of network of test network card as claimed in claim 1 is characterized in that, switches this adapter and enters in the sleep pattern and more comprise the following steps:
Revising the power management event position of this adapter, is the D3 state with it by the D0 status modifier.
3. the method for the calling function of network of test network card as claimed in claim 1 is characterized in that, this adapter receives this magic package and further comprises the following steps:
The content of resolving this magic package is in order to read MAC value included in this magic package or IP address; And
If the MAC value or the IP address of this magic package conform to this adapter, then this calculator device is switched to mode of operation.
4. the method for the calling function of network of test network card as claimed in claim 1 is characterized in that, further comprises the following steps: after revising the power management event position of this adapter
Revising the power management event position of this adapter, is the D0 state with it by the D3 status modifier; And
Check the power management event position of this adapter, then do not carry out these caution means in order to remind the user if this power management event position is modified.
5. the test macro of the method for the calling function of network of a use test network card is applied to the function that a calculator device wakes up an adapter test network when operating, and it is characterized in that, includes in this test macro:
One transmitting terminal, it is in order to transmit a magic package and a plurality of network package; And
One calculator device, it is connected in this transmitting terminal by the internet, and this calculator device further includes:
One electric power supply unit, it provides multiple power mode, and this electric power supply unit is in order to provide the power for operation of this calculator device in corresponding modes; And
One adapter, it makes this adapter carry out a wake up procedure in order to receive this magic package of this transmitting terminal, and this adapter is in order to switch to operating state with this adapter by sleep pattern, and this wake up procedure may further comprise the steps:
Switch the power management states of this adapter of this calculator device, revise the power management event position of this adapter, make this adapter enter sleep pattern;
Transmit a magic package this adapter by a transmitting terminal to this calculator device;
According to this magic package content,, make this adapter enter mode of operation in order to switch the power management states of this adapter;
By the power management event position that the operating system of this calculator device is revised this adapter, make this adapter enter mode of operation; And
Check the power management event position of this adapter, then do not carry out caution means in order to remind the user if this power management event position is modified.
6. the test macro of the method for the calling function of network of use test network card as claimed in claim 5 is characterized in that, switches this adapter and enters in the sleep pattern and further comprise the following steps:
Revising the power management event position of this adapter, is the D3 state with it by the D0 status modifier.
7. the test macro of the method for the calling function of network of use test network card as claimed in claim 6 is characterized in that, further comprises the following steps: after revising the power management event position of this adapter
Revising the power management event position of this adapter, is the D0 state with it by the D3 status modifier; And
Check the power management event position of this adapter, then do not carry out these caution means in order to remind the user if this power management event position is modified.
8. the test macro of the method for the calling function of network of use test network card as claimed in claim 5, it is characterized in that, in this calculator device, further include an alarm module, remind this user by this alarm module when carrying out these caution means, this alarm module is a display window, a loud speaker or a display lamp number.
CNA2008100859611A 2008-06-06 2008-06-06 The method of the calling function of network of test network card and use its test macro Pending CN101599866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100859611A CN101599866A (en) 2008-06-06 2008-06-06 The method of the calling function of network of test network card and use its test macro

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100859611A CN101599866A (en) 2008-06-06 2008-06-06 The method of the calling function of network of test network card and use its test macro

Publications (1)

Publication Number Publication Date
CN101599866A true CN101599866A (en) 2009-12-09

Family

ID=41421130

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100859611A Pending CN101599866A (en) 2008-06-06 2008-06-06 The method of the calling function of network of test network card and use its test macro

Country Status (1)

Country Link
CN (1) CN101599866A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404162A (en) * 2010-09-17 2012-04-04 鸿富锦精密工业(深圳)有限公司 Test system and method for network wakeup function of computer
CN102761465A (en) * 2011-04-26 2012-10-31 瑞昱半导体股份有限公司 Network system with remote wake-up mechanism and remote wake-up method
CN104660418A (en) * 2013-11-20 2015-05-27 鸿富锦精密工业(深圳)有限公司 Network awakening control system and method
CN114553737A (en) * 2022-02-23 2022-05-27 紫光计算机科技有限公司 Method and device for testing computer network awakening and electronic equipment
CN114553737B (en) * 2022-02-23 2024-04-26 紫光计算机科技有限公司 Method and device for testing computer network wakeup and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404162A (en) * 2010-09-17 2012-04-04 鸿富锦精密工业(深圳)有限公司 Test system and method for network wakeup function of computer
CN102761465A (en) * 2011-04-26 2012-10-31 瑞昱半导体股份有限公司 Network system with remote wake-up mechanism and remote wake-up method
CN104660418A (en) * 2013-11-20 2015-05-27 鸿富锦精密工业(深圳)有限公司 Network awakening control system and method
CN114553737A (en) * 2022-02-23 2022-05-27 紫光计算机科技有限公司 Method and device for testing computer network awakening and electronic equipment
CN114553737B (en) * 2022-02-23 2024-04-26 紫光计算机科技有限公司 Method and device for testing computer network wakeup and electronic equipment

Similar Documents

Publication Publication Date Title
CN104516296A (en) Wakeup method for microcontroller system based on peripheral module and peripheral module
US8527788B2 (en) Network wake up system with protection function
CN1878071A (en) Computer remote wakeup method and device based on network
CN104461048A (en) Electronic device and control method thereof
US20140223212A1 (en) Power management circuit, power management method, and computer system
US20100125726A1 (en) Thin client host wakeup method and thin client host
CN103576816B (en) Switching on and shutting down control circuit
CN102402272B (en) There is the electronic installation of network connecting function and be applied to the method for this electronic installation
CN102437917B (en) A kind of network wake-up method, network wake-up device and computer
CN101599866A (en) The method of the calling function of network of test network card and use its test macro
CN101751265A (en) Updating system of basic input/output system of server and method thereof
CN103105920A (en) Energy-saving system and energy-saving method
CN109687922B (en) Signal monitoring method and device of wireless network, storage medium and mobile terminal
CN101655734B (en) Computer with power saving state control and control method
CN103915864A (en) Electronic device with power supply control function
US8650421B2 (en) Network interface apparatus and related power saving method thereof
KR101979671B1 (en) Method And Apparatus for Minimizing Beacon Signal Processing by Using Beacon Element
CN102404162A (en) Test system and method for network wakeup function of computer
CN102944734A (en) Method for monitoring terminal state, monitoring circuit and terminal
CN203117961U (en) Dead halt monitoring and resetting device
US8874890B2 (en) Server with plurality of network cards with remote restarting and wake-up functionality
CN102830985A (en) Starting method
CN112860501B (en) Detection method, detection device, storage medium and mobile terminal
CN203455685U (en) Multiport power supply monitoring device
CN101526803A (en) Power saving system and power saving method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091209