CN102053698B - Computer and network card control method - Google Patents
Computer and network card control method Download PDFInfo
- Publication number
- CN102053698B CN102053698B CN 200910237153 CN200910237153A CN102053698B CN 102053698 B CN102053698 B CN 102053698B CN 200910237153 CN200910237153 CN 200910237153 CN 200910237153 A CN200910237153 A CN 200910237153A CN 102053698 B CN102053698 B CN 102053698B
- Authority
- CN
- China
- Prior art keywords
- network interface
- interface card
- state
- control signal
- mode information
- 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
Images
Landscapes
- Telephone Function (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a computer and network card control method. A computer comprises at least one network card; the network card is provided with a first state and a second state; power consumption of the network card in the second state is smaller than that in the first state; and a network card control module is connected with the network card and used for controlling the network card to be switched from the first state to the second state according to default control signals. The computer and network card control method can efficiently reduce the power consumption of the computer.
Description
Technical field
The present invention relates to computer realm, relate in particular to a kind of computing machine and network card control method.
Background technology
All dispose network interface card in the present computing machine, in some cases, in the computing machine even can dispose a plurality of network interface cards, be used for accessing different networks respectively, such as Internet, Intranet etc.Generally, when computer starting, network interface card also can start and access network automatically, and at this moment, even the user does not use the network interface card the transmission of data, the network interface card of startup also can increase the power consumption of computing machine.In addition, when having a plurality of network interface card in computing machine, for example have simultaneously wireless network card A and wired network adapter B, wherein wireless network card A is used for the access Intranet, and wired network adapter B is used for access Internet.When computer starting, wireless network card A and wired network adapter B can start simultaneously, yet, at one time, can only there be a network interface card to be in effective transmission state, although another network interface card also starts, be in invalid transmission state, the network interface card that is in invalid transmission state also can increase the power consumption of computing machine.
In the prior art, when not needing to use network interface card, the connection of network interface card can be removed, perhaps with the network interface card forbidding, yet, connect the power consumption that the network interface card of removing or forbidding still can increase computing machine, cause the wasting of resources.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of computing machine and network card control method, can effectively reduce the power consumption of computing machine.
For addressing the above problem, the embodiment of the invention provides a kind of computing machine, comprising:
At least one network interface card, described at least one network interface card has the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state;
The network interface card control module is connected with described network interface card, is used for according to the default control signal, controls described at least one network interface card and switches to described the second state from described the first state.
Described network interface card comprises:
Logical circuit, when described network interface card was in described the first state, described logical circuit was in opening, when described network interface card is in the second state, had at least the partial logic circuit to be in closed condition.
Described computing machine also comprises:
Trigger module is connected with described network interface card control module, for generation of described default control signal.
Described trigger module is the specific button on the described computing machine, wherein, when described specific button is pressed, produces described default control signal; Or
Described trigger module is the specific keys on the described computer keyboard, wherein, when described specific keys is pressed, produces described default control signal; Or
Described trigger module is the special icon on the software interface that moves on the described computing machine, wherein, when described special icon is triggered, produces described default control signal.
Described network interface card is wired network adapter, and described trigger module comprises:
Whether detecting module is used for detecting netting twine corresponding to described network interface card and exists and pull out operation, exists when pulling out operation detecting netting twine corresponding to described network interface card, produces described default control signal.
Described network interface card control module comprises:
The first memory module is used for storing the current state information of described network interface card and the corresponding relation of update mode information, and wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time;
The first acquisition module is used for obtaining the current state information of described network interface card when getting access to described default control signal;
The second acquisition module is used for obtaining the update mode information corresponding to current state information of described network interface card according to the current state information of the described network interface card of storing and the corresponding relation of update mode information;
The first execution module is used for controlling the state that described network interface card is in the update mode information indicating that gets access to.
Described network interface card control module also comprises:
The second memory module, for the corresponding relation of the update mode information of storing default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
The 3rd acquisition module is used for when getting access to described default control signal, according to the corresponding relation of the update mode information of the described default control signal of storage and described network interface card, obtains the update mode information of described network interface card corresponding to described default control signal;
The second execution module is used for controlling the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
The embodiment of the invention also provides a kind of network card control method, be applied in the computing machine, described computing machine has at least one network interface card, described at least one network interface card has the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state; May further comprise the steps:
Receive the default control signal;
According to described default control signal, control described at least one network interface card and switch to described the second state from described the first state.
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, also comprise before:
Store the current state information of described network interface card and the corresponding relation of update mode information, wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, be specially:
When getting access to described default control signal, obtain the current state information of described network interface card;
According to the current state information of the described network interface card of storing and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card;
Control the state that described network interface card is in the update mode information indicating that gets access to.
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, also comprise before:
The corresponding relation of the update mode information of storage default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, be specially:
When getting access to described default control signal, according to the described default control signal of storage and the corresponding relation of the update mode information of described network interface card, obtain the update mode information of described network interface card corresponding to described default control signal;
Control the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
Embodiments of the invention have following beneficial effect:
Can control network interface card and be in power consumption and consume less state, when being in power consumption and consuming less state, described network interface card inside has at least the partial logic circuit to be in closed condition.In addition, when in computing machine, having a plurality of network interface card, have at least a network interface card to be in power consumption in can guaranteeing at one time in the computing machine and consume less state, thereby can reduce the computing machine power consumption, embodied the theory of environmental protection, in addition, realization is simple, convenient, has brought operational facility to the user.
Description of drawings
Fig. 1 is a structural representation of the computing machine of the embodiment of the invention;
Fig. 2 is another structural representation of the computing machine of the embodiment of the invention;
Fig. 3 is the another structural representation of the computing machine of the embodiment of the invention;
Fig. 4 is an again structural representation of the computing machine of the embodiment of the invention;
Fig. 5 is the electrical block diagram of the comparer of the embodiment of the invention;
Fig. 6 is an electrical block diagram of the network interface card control module of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
Be illustrated in figure 1 as a structural representation of the computing machine of the embodiment of the invention, described computing machine comprises:
At least one network interface card 100; Described at least one network interface card 100 has the first state and the second state, the power consumption that the power consumption that described network interface card 100 consumes when being in the second state consumes when being in described the first state;
Network interface card control module 200 is connected with described network interface card 100, is used for according to the default control signal, controls described network interface card 100 and switches to described the second state from described the first state.
In above-described embodiment, can control described network interface card 100 and be in the lower state of power consumption consumption, therefore, can reduce the computing machine power consumption.
Described network interface card 100 comprises: logical circuit, and when described network interface card 100 was in described the first state, described logical circuit was in opening, and described network interface card 100 can work; When described network interface card 100 is in the second state, have at least the partial logic circuit to be in closed condition, described have at least the partial logic circuit to be in closed condition to comprise two kinds of situations, a kind of is that whole logical circuits all are in closed condition, another kind is that a part of logical circuit is in closed condition, part logical circuit is in opening, and the logical circuit that is in closed condition will no longer consume the power consumption of described computing machine.
In order to guarantee the normal use of described network interface card 100, described network interface card control module 200 also needs to have the described network interface card 100 of control switches to described the first state from described the second state function.
In addition, also need to have a handover module in the described network interface card 100, with described network interface card control module 200 communications, when the described network interface card 100 of described network interface card control module 200 controls switched to described the second state from described the first state, described handover module was closed the part or all of logical circuit of described network interface card inside; When the described network interface card 100 of described network interface card control module 200 controls switched to described the first state from described the second state, described handover module was opened the current logical circuit that is in closed condition.Be understandable that, described handover module need to remain "on" position.
Suppose only have a network interface card 100 in the described computing machine, can be when not needing to use the network interface card the transmission of data, when perhaps detecting described network interface card 100 and not being used for a long time, switch to described the second state by the described network interface card 100 of described network interface card control module 200 controls from described the first state, thereby reduce the power consumption of described computing machine.Also can be when needs use the network interface card the transmission of data, switch to described the first state by the described network interface card 100 of described network interface card control module 200 controls from described the second state, at this moment, can also control simultaneously the corresponding network of described network interface card 100 accesses, with user friendly operation.
When in described computing machine, having a plurality of network interface card 100, because a plurality of network interface cards 100 can't be worked simultaneously, therefore, current at least one network interface card 100 of the transmission of data that do not need can be switched to described the second state from described the first state, have at least a network interface card 100 to be in described the second state in a plurality of network interface cards 100 in namely guaranteeing at one time, thereby can reduce the power consumption of described computing machine.
Suppose to have two network interface cards 100 in the described computing machine, for example, network interface card A and network interface card B, can be when needs use network interface card A the transmission of data, switch to described the first state (certainly by described network interface card control module 200 control network interface card A, be in described the first state if network interface card A is current, then need not to carry out blocked operation), network interface card B is switched to described the second state.Also can when needs use network interface card B the transmission of data, switch to described the first state by described network interface card control module 200 control network interface card B from described the second state, network interface card A is switched to described the second state from described the first state.In addition, also can be when not needing to use any network interface card the transmission of data, control simultaneously network interface card A and network interface card B switches to described the second state by described network interface card control module 200.
Suppose to have three network interface cards 100 in the described computing machine, for example, network interface card A, network interface card B and network interface card C can be when needs use network interface card A the transmission of data, switch to described the first state by described network interface card control module 200 control network interface card A, control network interface card B and/or network interface card C switch to described the second state.When needs use network interface card B the transmission of data, switch to described the first state by described network interface card control module 200 control network interface card B from described the second state, control network interface card A and/or network interface card C switch to described the second state.In addition, also can be when not needing to use any network interface card the transmission of data, control simultaneously network interface card A, network interface card B and network interface card C switches to described the second state by described network interface card control module 200.
When in described computing machine, having the network interface card more than three, described network interface card control module 200 can be controlled this a plurality of network interface card 100 residing states equally, and have at least a network interface card 100 to be in described the second state in needing to guarantee at one time, the situation of its operating process and above-mentioned three network interface cards is similar, will describe no longer one by one at this.
In the above-described embodiments, described network interface card control module 200 can be controlled described network interface card 100 residing states in several ways, so that have at least a network interface card 100 to be in described the second state at one time, the below will describe for example.
First method is: the corresponding relation of the current state information of pre-stored described network interface card 100 and update mode information, wherein, described update mode information indicating has at least a network interface card 100 to be in described the second state in the interior described network interface card 100 at one time.When receiving a default control signal, can be according to the corresponding relation of above-mentioned storage, control the state of update mode information indicating corresponding to current state information that described network interface card 100 is in described network interface card 100.
When adopting said method, described computing machine has structure as shown in Figure 2, is illustrated in figure 2 as another structural representation of the computing machine of the embodiment of the invention, and on the basis of embodiment shown in Figure 1, described network interface card control module 200 comprises:
The first memory module 201, be used for storing the current state information of described network interface card 100 and the corresponding relation of update mode information, wherein, described update mode information indicating has at least a network interface card 100 to be in described the second state in the interior described network interface card 100 at one time.The corresponding relation of the current state information of described network interface card 100 and update mode information can be set in advance by the user.
The first acquisition module 202 is used for obtaining the current state information of described network interface card 100 when getting access to described control signal;
The second acquisition module 203 is used for obtaining the update mode information corresponding to current state information of described network interface card 100 according to the current state information of the described network interface card 100 of storing and the corresponding relation of update mode information;
The first execution module 204 is used for controlling the state that described network interface card 100 is in the update mode information indicating that gets access to.
The below is elaborated to above-mentioned first method for example.
Below be the treatment scheme when only having a network interface card 100 in the described computing machine:
Step 1: suppose that the current state information of the described network interface card 100 that described the first memory module 201 is stored and the corresponding relation of update mode information are: when the current state information of described network interface card 100 was " the first state ", update mode information was " the second state "; When the current state information at described network interface card 100 was " the second state ", update mode information was " the first state ";
Step 2: get access to described default control signal;
Step 3: the current state information of the described network interface card 100 that described the first acquisition module 202 gets access to is " the first state ";
Step 4: described the second acquisition module 203 is according to the current state information of the described network interface card 100 of storage and the corresponding relation of update mode information, and update mode information corresponding to current state information of obtaining described network interface card 100 is " the second state ";
Step 5: the described network interface card 100 of described the first execution module 204 controls switches to described the second state from described the first state.
In addition, described network interface card 100 is current when being in described the second state, when if described computing machine receives the default control signal that is used to indicate the current state that needs the described network interface card 100 of renewal again, described the second acquisition module 203 is according to the current state information of the described network interface card 100 of storage and the corresponding relation of update mode information, update mode information corresponding to current state information that gets access to described network interface card 100 is " the first state ", at this moment, described the first execution module 205 needs the described network interface card 100 of control to switch to described the first state from described the second state.
Below be the treatment scheme when having two network interface cards 100 (being assumed to be network interface card A and network interface card B) in the described computing machine:
Step 1: suppose that the current state information of described network interface card 100 of described the first memory module 201 storage and the corresponding relation of update mode information are: be that network interface card A and network interface card B are when all being in described the first state at the current state information of described network interface card 100, update mode information is that network interface card A is in described the first state, and network interface card B is in described the second state; Current state information at described network interface card 100 is that network interface card A is in described the second state, and when network interface card B was in described the first state, update mode information was that network interface card B is in described the second state, and network interface card A is in described the first state; Current state information at described network interface card 100 is that network interface card B is in described the second state, and when network interface card A was in described the first state, update mode information was that network interface card A and network interface card B all are in described the second state; Be network interface card A and network interface card B when all being in described the second state at the current state information of described network interface card 100, update mode information is that network interface card A is in described the second state, and network interface card B is in described the first state;
Step 2: get access to described default control signal;
Step 4: the current state information of supposing the described network interface card 100 that described the first acquisition module 202 gets access to is: network interface card A and network interface card B all are in described the first state;
Step 5: described the second acquisition module 203 is according to the current state information of the described network interface card 100 of storage and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card 100, be that network interface card A is in described the second state, network interface card B is in described the first state;
Step 6: described the first execution module 205 control network interface card A switch to described the second state from described the first state, and control network interface card B switches to described the first state from described the second state.
For the situation that has the network interface card more than three or three in the computing machine, its implementation and above-mentioned implementation are similar, describe no longer one by one at this.
Second method is: the corresponding relation of the update mode information of storage default control signal and described network interface card 100, wherein, the update mode information indicating of described network interface card 100 has at least a network interface card 100 to be in described the second state in the interior described network interface card 100 at one time.When getting access to described default control signal, according to the corresponding relation of above-mentioned storage, control the state that described network interface card 100 is in the update mode information indicating of described network interface card 100 corresponding to described default control signal.
When adopting said method, described computing machine has structure as shown in Figure 3, is illustrated in figure 3 as the another structural representation of the computing machine of the embodiment of the invention, and on the basis of embodiment shown in Figure 1, described network interface card control module 200 comprises:
The second memory module 205, the corresponding relation that is used for the update mode information of storage default control signal and described network interface card 100, wherein, the update mode information indicating of described network interface card 100 has at least a network interface card 100 to be in described the second state in the interior described network interface card 100 at one time;
The 3rd acquisition module 206, be used for when the control signal that gets access to is described default control signal, according to the described default control signal of storage and the corresponding relation of the update mode information of described network interface card 100, obtain the update mode information of described network interface card 100 corresponding to described control signal;
The second execution module 207 is used for controlling the state that described network interface card 100 is in the update mode information indicating of described network interface card 100 corresponding to described control signal.
The below is elaborated to above-mentioned second method for example.
Below be the treatment scheme when only having a network interface card 100 in the described computing machine:
Step 1: the corresponding relation of supposing the update mode information of the default control signal of the second memory module 205 storage and described network interface card 100 is: when the default control signal is the first control signal, the update mode information of described network interface card 100 is " the first state ", when described default control signal is the second control signal, the update mode information of described network interface card 100 " the second state ".
Step 2: when getting access to a control signal, judge whether described control signal is the first control signal or the second control signal;
Step 3: suppose that described control signal is the first control signal, then described the 3rd acquisition module 206 is according to the corresponding relation of the update mode information of the described default control signal of storing and described network interface card 100, and the update mode information that gets access to described network interface card 100 corresponding to described the first control signal is " the first state ";
Step 4: be in described the second state if described network interface card 100 is current, the described network interface card 100 of described the second execution module 207 controls switches to described the first state from described the second state, certainly, described network interface card 100 is current when being in described the first state, then do not need to carry out blocked operation.
In addition, when the control signal that gets access to is the second control signal, described the 3rd acquisition module 206 is according to the corresponding relation of the update mode information of the default control signal of storing and described network interface card 100, the update mode information that gets access to described network interface card 100 is " the second state ", at this moment, be in described the first state if described network interface card 100 is current, then described the second execution module 207 needs the described network interface card 100 of control to switch to described the second state from described the first state, certainly, described network interface card 100 is current when being in described the second state, then do not need to carry out blocked operation.
Below be the treatment scheme when having two network interface cards 100 (being assumed to be network interface card A and network interface card B) in the described computing machine:
Step 1: the corresponding relation of supposing the update mode information of the default control signal of described the second memory module 205 storage and described network interface card 100 is: when the default control signal is the first control signal, the update mode information of described network interface card 100 is that network interface card A is in described the second state, and network interface card B is in described the first state; When described default control signal was the second control signal, the update mode information of described network interface card 100 was that network interface card B is in described the second state, and network interface card A is in described the first state; When described default control signal was the 3rd control signal, the update mode information of described network interface card 100 was that network interface card A and network interface card B all are in described the second state;
Step 2: when getting access to a control signal, judge whether described control signal is the first control signal, the second control signal or the 3rd control signal;
Step 3: suppose that described control signal is the first control signal, described the 3rd acquisition module 206 is according to the corresponding relation of the update mode information of the described default control signal of storing and described network interface card 100, obtain the update mode information of described network interface card 100 corresponding to described the first control signal, be that network interface card A is in described the second state, network interface card B is in described the first state;
Step 4: described the second execution module 207 control network interface card A switch to described the second state, and network interface card B switches to described the first state.
For the situation that has the network interface card 100 more than three or three in the computing machine, its disposal route and above-mentioned implementation are similar, describe no longer one by one at this.
Among the described embodiment of above-mentioned Fig. 2 and Fig. 3, described network interface card control module 200 all is when receiving a default control signal, just controls described network interface card 100 switching states, and therefore, described computing machine also needs to have the module of the described control signal of a generation.
Be illustrated in figure 4 as an again structural representation of the computing machine of the embodiment of the invention, on the basis of embodiment shown in Figure 1, described computing machine also comprises:
Described trigger module 300 can have various ways, and the below will describe for example.
Described trigger module 300 can be the specific button on the described computing machine, wherein, when described specific button is pressed, produces described default control signal.
In described computing machine, have two network interface cards 100 (being assumed to be network interface card A and network interface card B) as example, the realization principle of above-mentioned specific button is described.
The state that can adopt a button to finish network interface card A and network interface card B switches, concrete, in the time of can being set in this specific button and being pressed, produce a high level or low level as described default control signal, described network interface card control module 200 is when detecting the variation that has high-low level, obtain the current state information of described network interface card 100, and according to the current state information of the described network interface card 100 of storing and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card 100, thereby the state of control network interface card A and network interface card B switches.
In addition, also can adopt a plurality of buttons to finish the opening and closing of network interface card A and network interface card B, for example, adopt three buttons, when pressing the first button, produce one first control signal, described network interface card control module 200 (is assumed to be network interface card A and is in described the first state according to the update mode information of described network interface card 100 corresponding to pre-stored described the first control signal, network interface card B is in described the second state), control network interface card A switches to described the first state, network interface card B switches to described the second state, and same principle can be when pressing the second button, control network interface card A is in described the second state, network interface card B is in described the first state, and when pressing the 3rd button, control network interface card A and network interface card B are in described the second state.
Perhaps, described trigger module 300 also can be the specific keys on the described computer keyboard, wherein, when described specific keys is pressed, produces described default control signal;
In described computing machine, have two network interface cards 100 (being assumed to be network interface card A and network interface card B) as example, the realization principle of above-mentioned specific button is described.
The state that can adopt a particular hot key (for example CTRL+F4) to finish network interface card A and network interface card B switches, concrete, when the user presses hot key " CTRL+F4 ", produce a keyboard signal as described default control signal, described network interface card control module 200 is detecting " CTRL+F4 " when being pressed, obtain the current state information of described network interface card 100, and according to the current state information of the described network interface card 100 of storing and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card 100, thereby the state of control network interface card A and network interface card B switches.
In addition, also can adopt a plurality of hot keys to finish the opening and closing of network interface card A and network interface card B, for example, adopt three hot keys, when pressing the first hot key (for example " CTRL+F1 "), produce one first control signal, described network interface card control module 200 (is assumed to be network interface card A and is in described the first state according to the update mode information of described network interface card 100 corresponding to pre-stored described the first control signal, network interface card B is in described the second state), control network interface card A is in described the first state, network interface card B is in described the second state, and same principle can be when pressing the second hot key (" CTRL+F2 "), control network interface card A is in described the second state, network interface card B is in described the first state, and when pressing the 3rd hot key (" CTRL+F3 "), control network interface card A and network interface card B are in described the second state.
Or described trigger module 300 also can be the special icon on the software interface that moves on the described computing machine, wherein, when described special icon is triggered, produces described control signal.
When described network interface card 100 is wired network adapter, if the network interface card of described network interface card 100 correspondences is pulled out, then described network interface card 100 can be switched to described the second state from described the first state.Whether at this moment, described trigger module 300 can comprise a detecting module, be used for detecting netting twine corresponding to described network interface card and exist and pull out operation, exists when pulling out operation detecting netting twine corresponding to described network interface card, produces described default control signal.
The user wishes usually after computing machine inserts netting twine, the automatic access network of network interface card meeting, after but the state that adopts the method control network interface card 100 of the embodiment of the invention switches, all network interface cards 100 in the computing machine are current may all be in closed condition the time, at this moment, if the user inserts netting twine, described network interface card 100 may not produce response, therefore, consider user's use habit, described detecting module can also be used for the slotting operation whether detecting exists netting twine, and when detecting the slotting operation that has netting twine, produces one and switch control signal, described network interface card control module 200 can be according to described switch-over control signal, control described netting twine corresponding network interface card 100 and switch to described the first state from described the second state, in addition, can also control the corresponding network of network interface card corresponding to described netting twine 100 accesses.
Described detecting module can adopt a comparer to realize, be illustrated in figure 5 as the electrical block diagram of the comparer of the embodiment of the invention, described comparer is connected with the netting twine socket by port 3, this port 3 is used for input one network signal level (LAN_CABLE_DETECT), the port 2 of described comparer connects a reference voltage, be used for input one reference voltage, the port one of described comparer is used for output one high-low level (DETECT_RESULT).When having the netting twine plug, the network signal level of netting twine spigot can produce height to be changed, and comparer compares this network signal level and reference voltage, and by high level of port one output or low level, is used for detecting the plug of netting twine.Described comparer can be transferred to described high-low level described network interface card control module 200, thereby the state of controlling described network interface card 100 switches.
In above-described embodiment, suppose to have in the computing machine two network interface cards 100, the power consumption during each network interface card 100 normal operation is 800mW, when the netting twine socket of described network interface card 100 correspondences is not inserted netting twine, its power consumption is 50mW, and two network interface cards 100 are all opened in the prior art, and total power consumption is 1600mW; In the embodiment of the invention, owing to having at least a network interface card 100 to be in described the second state, therefore, total power consumption is 800mW or 0mW; When the netting twine socket of two network interface card 100 correspondences was not all inserted netting twine, also all there was power consumption in two network interface cards 100 in the prior art, and total power consumption is 100mW; In the embodiment of the invention, two network interface cards 100 all can be switched to described the second state, can only keep a detecting module in work.The power of this detecting module is less, usually below 1mW, therefore, compared with prior art can save 99% power consumption.
The control module of network interface card described in above-described embodiment 200 can be integrated on the mainboard of described computing machine, be illustrated in figure 6 as an electrical block diagram of the network interface card control module of the embodiment of the invention, computing machine described in Fig. 6 has two network interface cards (network interface card A and network interface card B), described network interface card control module is comprised of a chipset (Chipset) and BIOS, described chipset has a universal input port (GPI) and two general output ports (GPO1 and GPO2), suppose to adopt in the embodiment of the invention mode of specific button to trigger the state switching that described network interface card control module is controlled described network interface card A and network interface card B, at this moment, GPI on the described chipset is connected with described specific button, GPO1 is connected with network interface card A, and GPO2 is connected with network interface card B.The user is when pressing described specific button, can produce a high level or low level, the variation whether BIOS detecting GPI place produces high-low level, after the variation that detects GPI place generation high-low level, network interface card A and the current state information of network interface card B and the corresponding relation of update mode information according to storage decide the current state that needs network interface card to switch.Concrete, can export the state switching that corresponding level is controlled network interface card A and network interface card B by GPO1 and the GPO2 of chipset, for example, level in GPO1 output is 1 (high level), when the level of GPO2 output is 0 (low level), representative needs control network interface card A to switch to described the first state, and network interface card B switches to described the second state; Level in GPO1 output is that the level that 0, GPO2 exports is 1 o'clock, and representative needs control network interface card B switch to described the first state, and network interface card A switches to described the second state.Chip at network interface card has a special pin (Disable pin), is connected with GPO1 or GPO2, and after network interface card received outside high-low level, internal logic circuit can be opened or close to network interface card automatically.
In above-described embodiment, described chipset has two general output ports (GPO1 and GPO2), be used for connecting respectively network interface card A and network interface card B, certainly, when in described computing machine, having more network interface cards, only need to get final product at the general output port (GPO) that described chipset arranges respective numbers.
By the computing machine that above-described embodiment provides, can control network interface card and be in power consumption and consume less state, when being in power consumption and consuming less state, described network interface card inside has at least the partial logic circuit to be in closed condition.In addition, when in computing machine, having a plurality of network interface card, have at least a network interface card to be in power consumption in can guaranteeing at one time in the computing machine and consume less state, thereby can reduce the computing machine power consumption, embodied the theory of environmental protection, in addition, realization is simple, convenient, has brought operational facility to the user.
The embodiment of the invention also provides a kind of network interface card control module, be applied in the computing machine, described computing machine has at least one network interface card, described at least one network interface card has the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state.
The structure of the network interface card control module 200 in described network interface card control module and above-described embodiment is identical, is connected with described network interface card, is used for according to the default control signal, controls described network interface card and switches to described the second state from described the first state.
In above-described embodiment, can control described network interface card and be in the lower state of power consumption consumption, therefore, can reduce the computing machine power consumption.
Described network interface card comprises: logical circuit, and when described network interface card was in described the first state, described logical circuit was in opening, and described network interface card can work; When described network interface card is in the second state, have at least the partial logic circuit to be in closed condition, described have at least the partial logic circuit to be in closed condition to comprise two kinds of situations, a kind of is that whole logical circuits all are in closed condition, another kind is that a part of logical circuit is in closed condition, part logical circuit is in opening, and the logical circuit that is in closed condition will no longer consume the power consumption of described computing machine.
In order to guarantee the normal use of described network interface card, described network interface card control module also needs to have the described network interface card of control switches to described the first state from described the second state function.
In addition, also need to have a handover module in the described network interface card, with the communication of described network interface card control module, when described network interface card control module was controlled described network interface card and switched to described the second state from described the first state, described handover module was closed the part or all of logical circuit of described network interface card inside; When described network interface card control module was controlled described network interface card and switched to described the first state from described the second state, described handover module was opened the current logical circuit that is in closed condition.Be understandable that, described handover module need to remain "on" position.
In the above-described embodiments, described network interface card control module can be controlled the residing state of described network interface card in several ways, so that have at least a network interface card to be in described the second state at one time, the below will describe for example.
First method is: the corresponding relation of the current state information of pre-stored described network interface card and update mode information, wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time.When receiving a default control signal, can be according to the corresponding relation of above-mentioned storage, control the state that described network interface card is in update mode information indicating corresponding to the current state information of described network interface card.
When adopting said method, described network interface card control module comprises:
The first memory module is used for storing the current state information of described network interface card and the corresponding relation of update mode information, and wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time.The corresponding relation of the current state information of described network interface card and update mode information can be set in advance by the user.
The first acquisition module is used for obtaining the current state information of described network interface card when getting access to described control signal;
The second acquisition module is used for obtaining the update mode information corresponding to current state information of described network interface card according to the current state information of the described network interface card of storing and the corresponding relation of update mode information;
The first execution module is used for controlling the state that described network interface card is in the update mode information indicating that gets access to.
Second method is: the corresponding relation of the update mode information of storage default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time.When getting access to described default control signal, according to the corresponding relation of above-mentioned storage, control the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
When adopting said method, described network interface card control module comprises:
The second memory module, for the corresponding relation of the update mode information of storing default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
The 3rd acquisition module, be used for when the control signal that gets access to is described default control signal, according to the described default control signal of storage and the corresponding relation of the update mode information of described network interface card, obtain the update mode information of described network interface card corresponding to described control signal;
The second execution module is used for controlling the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described control signal.
By the network interface card control module that above-described embodiment provides, can control network interface card and be in power consumption and consume less state, when being in power consumption and consuming less state, described network interface card inside has at least the partial logic circuit to be in closed condition.In addition, when in computing machine, having a plurality of network interface card, have at least a network interface card to be in power consumption in can guaranteeing at one time in the computing machine and consume less state, thereby can reduce the computing machine power consumption, embodied the theory of environmental protection, in addition, realization is simple, convenient, has brought operational facility to the user.
The embodiment of the invention also provides a kind of network card control method, be applied in the computing machine, described computing machine has at least one network interface card, described at least one network interface card has the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state.
Described network card control method may further comprise the steps:
Receive the default control signal;
According to described default control signal, control described at least one network interface card and switch to described the second state from described the first state.
In above-described embodiment, can control described network interface card and be in the lower state of power consumption consumption, therefore, can reduce the computing machine power consumption.
Described network interface card comprises: logical circuit, and when described network interface card was in described the first state, described logical circuit was in opening, and described network interface card can work; When described network interface card is in the second state, have at least the partial logic circuit to be in closed condition, described have at least the partial logic circuit to be in closed condition to comprise two kinds of situations, a kind of is that whole logical circuits all are in closed condition, another kind is that a part of logical circuit is in closed condition, part logical circuit is in opening, and the logical circuit that is in closed condition will no longer consume the power consumption of described computing machine.
In order to guarantee the normal use of described network interface card, described network card control method also needs to comprise: control described network interface card switches to described the first state from described the second state step.
In the above-described embodiments, can control in several ways the residing state of described network interface card, so that have at least a network interface card to be in described the second state at one time, the below will describe for example.
First method is: the corresponding relation of the current state information of pre-stored described network interface card and update mode information, wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time.When receiving a default control signal, can be according to the corresponding relation of above-mentioned storage, control the state that described network interface card is in update mode information indicating corresponding to the current state information of described network interface card.
When adopting said method, described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, also comprise before:
Store the current state information of described network interface card and the corresponding relation of update mode information, wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, be specially:
When getting access to described default control signal, obtain the current state information of described network interface card;
According to the current state information of the described network interface card of storing and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card;
Control the state that described network interface card is in the update mode information indicating that gets access to.
Second method is: the corresponding relation of the update mode information of storage default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time.When getting access to described default control signal, according to the corresponding relation of above-mentioned storage, control the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
When adopting said method, described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, also comprise before:
The corresponding relation of the update mode information of storage default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, control described at least one network interface card and switch to described the second state from described the first state, be specially:
When getting access to described default control signal, according to the described default control signal of storage and the corresponding relation of the update mode information of described network interface card, obtain the update mode information of described network interface card corresponding to described default control signal;
Control the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
By the network card control method that above-described embodiment provides, can control network interface card and be in power consumption and consume less state, when being in power consumption and consuming less state, described network interface card inside has at least the partial logic circuit to be in closed condition.In addition, when in computing machine, having a plurality of network interface card, have at least a network interface card to be in power consumption in can guaranteeing at one time in the computing machine and consume less state, thereby can reduce the computing machine power consumption, embodied the theory of environmental protection, in addition, realization is simple, convenient, has brought operational facility to the user.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (8)
1. a computing machine is characterized in that, comprising:
A plurality of network interface cards, described network interface card have the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state;
The network interface card control module is connected with described network interface card, is used for according to the default control signal, and current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state;
Described network interface card control module comprises:
The first memory module is used for storing the current state information of described network interface card and the corresponding relation of update mode information, and wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time;
The first acquisition module is used for obtaining the current state information of described network interface card when getting access to described default control signal;
The second acquisition module is used for obtaining the update mode information corresponding to current state information of described network interface card according to the current state information of the described network interface card of storing and the corresponding relation of update mode information;
The first execution module is used for controlling the state that described network interface card is in the update mode information indicating that gets access to.
2. computing machine according to claim 1 is characterized in that, described network interface card comprises:
Logical circuit, when described network interface card was in described the first state, described logical circuit was in opening, when described network interface card is in the second state, had at least the partial logic circuit to be in closed condition.
3. computing machine according to claim 1 and 2 is characterized in that, also comprises:
Trigger module is connected with described network interface card control module, for generation of described default control signal.
4. computing machine according to claim 3 is characterized in that:
Described trigger module is the specific button on the described computing machine, wherein, when described specific button is pressed, produces described default control signal; Or
Described trigger module is the specific keys on the described computer keyboard, wherein, when described specific keys is pressed, produces described default control signal; Or
Described trigger module is the special icon on the software interface that moves on the described computing machine, wherein, when described special icon is triggered, produces described default control signal.
5. computing machine according to claim 3 is characterized in that, described network interface card is wired network adapter, and described trigger module comprises:
Whether detecting module is used for detecting netting twine corresponding to described network interface card and exists and pull out operation, exists when pulling out operation detecting netting twine corresponding to described network interface card, produces described default control signal.
6. computing machine according to claim 1 is characterized in that, described network interface card control module also comprises:
The second memory module, for the corresponding relation of the update mode information of storing default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
The 3rd acquisition module is used for when getting access to described default control signal, according to the corresponding relation of the update mode information of the described default control signal of storage and described network interface card, obtains the update mode information of described network interface card corresponding to described default control signal;
The second execution module is used for controlling the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
7. a network card control method is applied in the computing machine, and described computing machine has a plurality of network interface cards, and described network interface card has the first state and the second state, the power consumption that the power consumption that described network interface card consumes when being in the second state consumes when being in described the first state; It is characterized in that, may further comprise the steps:
Receive the default control signal;
According to described default control signal, current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state;
Described according to the default control signal, current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state, also comprise before:
Store the current state information of described network interface card and the corresponding relation of update mode information, wherein, described update mode information indicating has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state, be specially:
When getting access to described default control signal, obtain the current state information of described network interface card;
According to the current state information of the described network interface card of storing and the corresponding relation of update mode information, obtain the update mode information corresponding to current state information of described network interface card;
Control the state that described network interface card is in the update mode information indicating that gets access to.
8. network card control method according to claim 7 is characterized in that:
Described according to the default control signal, current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state, also comprise before:
The corresponding relation of the update mode information of storage default control signal and described network interface card, wherein, the update mode information indicating of described network interface card has at least a network interface card to be in described the second state in the interior described network interface card at one time;
Described according to the default control signal, current at least one network interface card of the transmission of data that do not need is switched to described the second state from described the first state, be specially:
When getting access to described default control signal, according to the described default control signal of storage and the corresponding relation of the update mode information of described network interface card, obtain the update mode information of described network interface card corresponding to described default control signal;
Control the state that described network interface card is in the update mode information indicating of described network interface card corresponding to described default control signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910237153 CN102053698B (en) | 2009-11-06 | 2009-11-06 | Computer and network card control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910237153 CN102053698B (en) | 2009-11-06 | 2009-11-06 | Computer and network card control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102053698A CN102053698A (en) | 2011-05-11 |
CN102053698B true CN102053698B (en) | 2013-02-13 |
Family
ID=43958098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910237153 Active CN102053698B (en) | 2009-11-06 | 2009-11-06 | Computer and network card control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102053698B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105446804A (en) * | 2014-08-21 | 2016-03-30 | 联想(北京)有限公司 | Software access point sharing method and electronic equipment |
CN107395709A (en) * | 2017-07-14 | 2017-11-24 | 郑州云海信息技术有限公司 | The communication means and device of a kind of storage cluster |
CN107453959B (en) * | 2017-09-22 | 2021-04-30 | 郑州云海信息技术有限公司 | Network card management method and device |
CN109274611B (en) * | 2018-08-14 | 2021-07-06 | 英业达科技有限公司 | Method for switching sharing network protocol by baseboard management controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013340A (en) * | 2007-03-02 | 2007-08-08 | 中兴通讯股份有限公司 | Method for reducing power consumption of wireless network interface card |
CN101373399A (en) * | 2008-09-22 | 2009-02-25 | 华硕电脑股份有限公司 | Electronic device with mobile communication and control method thereof |
CN101458556A (en) * | 2007-12-14 | 2009-06-17 | 联想(北京)有限公司 | Dynamic control method and device for network card power consumption and connection mode |
-
2009
- 2009-11-06 CN CN 200910237153 patent/CN102053698B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013340A (en) * | 2007-03-02 | 2007-08-08 | 中兴通讯股份有限公司 | Method for reducing power consumption of wireless network interface card |
CN101458556A (en) * | 2007-12-14 | 2009-06-17 | 联想(北京)有限公司 | Dynamic control method and device for network card power consumption and connection mode |
CN101373399A (en) * | 2008-09-22 | 2009-02-25 | 华硕电脑股份有限公司 | Electronic device with mobile communication and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN102053698A (en) | 2011-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103150050B (en) | Touch screen terminal and method of work thereof | |
US7447930B2 (en) | USB control circuit for saving power and the method thereof | |
TW201133227A (en) | Power management method and related power management system | |
CN102053698B (en) | Computer and network card control method | |
CN102064698A (en) | Information device | |
KR100433397B1 (en) | Card type device capable of being used in secondary battery and host for using the card type device | |
CN108780346A (en) | Host equipment and expanding unit | |
KR102151178B1 (en) | Serial communication apparatus and method thereof | |
CN100428113C (en) | One key on-and-off unit for computer and reset device and method | |
CN109726059A (en) | A kind of server test system | |
CN113568855B (en) | Low-cost PCIE hot plug multimode compatible device | |
CN109062392B (en) | Equipment, method and system for automatically switching power supply of server board card | |
CN108628792B (en) | Communication interface current leakage prevention system and method | |
CN202995614U (en) | Electronic equipment | |
CN102136791A (en) | Power supply control circuit | |
CN108599530A (en) | A kind of powering mode converter and powering mode conversion method | |
CN101873346B (en) | Remote on-off control system | |
CN102314194A (en) | Portable computer | |
CN108153626B (en) | USB, serial port multiplexing and safety isolation system | |
CN104166521A (en) | Computer with a memory card | |
CN102455773A (en) | mobile storage device and energy-saving control method thereof | |
CN216118573U (en) | Electronic device and electronic system | |
CN207780714U (en) | A kind of display device and electronic equipment | |
CN101677475B (en) | Power management method, equipment and mobile terminal thereof | |
CN217692786U (en) | Power supply control circuit for MIPI (mobile industry processor interface) transceiving circuit and MIPI transceiving circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |