Background technology
In today of network service prosperity, a lot of computer products all can design the function that possesses network service, and the function of usually all can network enabled waking up.And no matter use what kind of power-supply management system, when computer product network enabled arousal function, must continue to await orders always have some circuit, to receive or to respond the wake-up signal of automatic network.And these circuit are fixing and set, as long as computer product is activated, will supply power to these circuit.And when not needing calling function of network, these circuit in the computer product are always consuming the electric power of computer product, thereby have caused the waste of electric power.
Please refer to Fig. 4, it shows known a kind of flow chart of steps that network interface is converted to the power supply adjustment of battery saving mode by normal mode.In known technology, when network work when normal mode (s402), if passed through default a period of time when not using, software will judge whether to enter battery saving mode (s404).
After the software judgement will enter battery saving mode, the periphery control interface then a supply power and clock to media storage control unit (medium access control, MAC) receiving terminal and physical layer element (physical layer, PHY) receiving terminal (s406), use receive come from the outside wake (wake up) signal up; And other is as media storage control unit transmission end and physical layer element transmission end etc., then all stops supply power and clock.Then, then stop supply power and clock to peripheral control interface (s408).Network interface will be operated in battery saving mode (s410) this moment.
When network interface is operated in battery saving mode (s502), has not then interruptedly judged whether user's start-up system or received WOL signal (s504).When having learnt user's start-up system or having received the WOL signal, then go ahead of the rest supply power and clock are to peripheral control interface (s506).Secondly, the action (s508) that peripheral control interface, media storage control unit and physical layer element are resetted.
Behind these assemblies that reset, then promptly network interface is carried out sequencing and initialization action (s510).At this moment, network interface then is operated in normal mode.
Comprehensive the above, known computer product with calling function of network, as described in step s406, no matter whether use arousal function, it is when battery saving mode, all supply power and clock be to media storage control unit transmission end and physical layer element transmission end, and feasible when not needing to use arousal function, can cause the electric power of having wasted computer product.
Summary of the invention
The invention provides a kind of method of adjusting the electrical source consumption of network interface, it can save unnecessary power consumption when making arousal function be entered battery saving mode by the network interface of forbidden energy by normal mode.
The present invention also provides a kind of method of adjusting the electrical source consumption of network interface, it can set whether to enable arousal function according to the user, with the decision of mobility whether supply power and clock to the media storage control unit receiving terminal and the physical layer element receiving terminal of network interface.
The present invention proposes a kind of method of adjusting the electrical source consumption of network interface, and it is applicable to that arousal function is converted to by normal mode by the network interface of forbidden energy is operated in battery saving mode.This network interface has medium access control (MAC) unit receiving terminal, media storage control unit transmission end, physical layer (PHY) unit receiving terminal and physical layer element transmission end.The method comprises at first for ending supply power to media storage control unit receiving terminal, media storage control unit transmission end, physical layer element receiving terminal and physical layer element transmission end.Secondly, end to supply with clock to media storage control unit receiving terminal, media storage control unit transmission end, physical layer element receiving terminal and physical layer element transmission end.Then, end supply power and clock to peripheral control interface.At this moment, network interface promptly is operated in battery saving mode.
The present invention also provides a kind of method of adjusting the electrical source consumption of network interface, and it is applicable to that arousal function is converted to by battery saving mode by the network interface of forbidden energy is operated in normal mode.At first, for supply power and clock to peripheral control interface, and send reset signal.Secondly, sequencing and initialization network interface.Then, then supply power and clock to media storage control unit receiving terminal, media storage control unit transmission end, physical layer element receiving terminal and physical layer element transmission end.At this moment, network interface will be operated in normal mode.Wherein, reset signal is for controlling mechanism and peripheral control interface are resetted.
The present invention also proposes a kind of method of adjusting the electrical source consumption of network interface, is applicable to that mobility starts/close the media storage control unit of network interface (MAC) receiving terminal, media storage control unit transmission end, physical layer element (PHY) receiving terminal and physical layer element transmission end.The method comprises when network interface is operated in normal mode, sets forbidden energy/enable arousal function by the user.Secondly, when network interface is desired to enter battery saving mode, judge then whether the user enables arousal function, when user's forbidden energy arousal function, then end supply power and clock to media storage control unit receiving terminal, media storage control unit transmission end, physical layer element receiving terminal and physical layer element transmission end.Then, end supply power and clock to peripheral control interface.At this moment, network interface just is operated in battery saving mode
The present invention supplies with/cuts off the electricity supply and media storage control unit receiving terminal and the physical layer element receiving terminal of clock to network interface because of adopting mobility, therefore can be during by forbidden energy at arousal function, close unnecessary power supply and clock consumption, to save the consumption of electric energy.
For content of the present invention, feature and advantage can be become apparent, several preferred embodiments cited below particularly, and conjunction with figs. are described in detail below.
The accompanying drawing summary
Fig. 1 shows a kind of Organization Chart of adjusting the electrical source consumption of network interface according to a preferred embodiment of the present invention.
Fig. 2 shows the flow chart of steps of method of adjusting the electrical source consumption of network interface according to a preferred embodiment of the present invention a kind of.
Fig. 3 shows a kind of flow chart of steps that network interface is converted to normal mode by battery saving mode according to a preferred embodiment of the present invention.
Fig. 4 shows known a kind of flow chart of steps that network interface is converted to the power supply adjustment of battery saving mode by normal mode.
Fig. 5 shows known a kind of flow chart of steps that network interface is converted to the power supply adjustment of normal mode by battery saving mode.
Accompanying drawing identifier declaration]
100: main computer unit
110: peripheral control interface
112: peripheral control interface framework space
114: main control circuit
116: controlling mechanism
120: network interface
130: media storage control unit
132: the media storage control unit receiving terminal
134: the media storage control unit transmission end
140: physical layer element
142: the physical layer element receiving terminal
144: the physical layer element transmission end
150: oscillator
s202、s204、s206、s208、s210、s212、s214、s216、
s218、s220、s222、s224、s226、s228、s230、s302、
s304、s306、s308、s310、s312、s314、s316、s318、
s402、s404、s406、s408、s410、s502、s504、s506、
S508, s510, s512: step
A, B, C, D, E, F, G, H, I, J, K, L: signal
Embodiment
Please refer to Fig. 1, it shows a kind of Organization Chart of adjusting the electrical source consumption of network interface according to a preferred embodiment of the present invention.The framework of the electrical source consumption of the adjustment network interface that this preferred embodiment proposed comprises main computer unit 100, peripheral control interface (Peripheral Controller Interface, be called for short PCI) 110 with network interface 120, it couples and closes is that peripheral control interface 110 is coupled to main computer unit 100 and network interface 120.
In the present embodiment, peripheral control interface 110 comprises peripheral control interface framework space 112, main control circuit 114 and controlling mechanism 116.Wherein, controlling mechanism 116 is to provide clock by oscillator 150 independently, and is not limited by main control circuit 114.
In the present embodiment, network interface 120 comprises medium access control (Medium AccessControl is called for short MAC) unit 130 and physical layer (Physical layer is called for short PHY) unit 140.Wherein, media storage control unit 130 also can be divided in order to automatic network and receives the media storage control unit receiving terminal 132 of data and in order to the media storage control unit transmission end 134 of transfer of data to network, in the same manner, physical layer element 140 also can be divided in order to automatic network and receives the physical layer element receiving terminal 142 of data and in order to the physical layer element transmission end 144 of transfer of data to network.
In preferred embodiment of the present invention, media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 are controlled machine-processed 116 controls with physical layer element transmission end 144.
In the present embodiment, the label A~L among Fig. 1 is a representative signal of different nature, and wherein, whether signal A is for using arousal function.Signal B is for supplying with clock to media storage control unit receiving terminal 132, media storage control unit transmission end 134.Signal C is for supplying with clock to physical layer element receiving terminal 142, physical layer element transmission end 144.Signal D is notice media storage control unit receiving terminal 132, media storage control unit transmission end 134 powered-downs.Signal E is notice physical layer element receiving terminal 142, physical layer element transmission end 144 powered-downs.Signal F is the media storage control unit receiving terminal 132 that resets, media storage control unit transmission end 134.Signal G is the physical layer element receiving terminal 142 that resets, physical layer element transmission end 144.Signal H is whether main computer unit indication controlling mechanism enters battery saving mode.Signal I can turn off the clock of media storage control unit receiving terminal 132, media storage control unit transmission end 134 for indication.Signal J can turn off the clock of physical layer element receiving terminal 142, physical layer element transmission end 144 for indication.Signal K is that controlling mechanism informs that main computer unit has stopped supplying with clock to media storage control unit and physical layer element.Signal L is that controlling mechanism informs that the signal of main computer unit media storage control unit and physical layer element has entered normal mode.
Then please refer to Fig. 1 and Fig. 2 simultaneously, this Fig. 2 shows the flow chart of steps of method of adjusting the electrical source consumption of network interface according to a preferred embodiment of the present invention a kind of.Wherein, Figure 2 shows that network interface 120 is entered the flow process of battery saving mode by normal mode.
In the present embodiment, the method of adjusting the electrical source consumption of network interface is when network interface 120 is operated in normal mode, the user can set the arousal function (s202) of forbidden energy whether or enable network interface 120 according to the demand of oneself, wherein, as be familiar with this skill person and can know easily, network interface 120 can be to have entered battery saving mode immediately or reached a Preset Time when all not using after the user has set or just enter battery saving mode when meeting certain predetermined condition, but not as limit.
Then, when network interface s204 desires to enter battery saving mode, judge then whether the user enables arousal function (s204).Wherein, step s204 also comprises and judges at first whether network interface 120 desires to enter battery saving mode (s206).When judgement learns that network interface 120 is desired to enter battery saving mode, judge then then whether the user is set with to use arousal function (s208).Sending signalling A by controlling mechanism 116 according to main control circuit 114 and judge whether the user enables arousal function wherein.
When controlling mechanism 116 is judged when learning user's forbidden energy arousal function, promptly end supply powers and clock to media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 (s210) by main control circuit 114.
In the present embodiment, step s210 comprises that at first sending signal D, E notice media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 by controlling mechanism 116 will stop supply power (s212).Secondly, software then judges according to signal I, J whether main control circuit 114 has stopped supply power to media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 (s214).
After definite main control circuit 114 has stopped supply power, controlling mechanism 116 is promptly sent signal B, C is to main control circuit 116, to stop to supply with clock to media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144, and send signal K and inform main computer unit 100 (s216), and and then be supplied to media storage control unit receiving terminal 132 by the software judgement, media storage control unit transmission end 134, whether physical layer element receiving terminal 142 has stopped supplying with (s218) with the clock of physical layer element transmission end 144.After definite clock had stopped supplying with, 116 of controlling mechanisms stopped to send signal K (s220).
In the present embodiment, after the power supply of media storage control unit 130 and physical layer element 130 and clock all stopped to supply with, 100 of main computer units end supply power and clock is given peripheral control interface 110 (s222).At this moment, network interface 120 is to be operated in battery saving mode (s224).
Certainly, in the present embodiment, when to media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 any one of stop supplies clock and power supply, carry out again after preferably waiting the data that originally are positioned at wherein all to finish transmission, run off to avoid unnecessary data.
Judgement as step s208, when the user enables arousal function, 114 sustainable supply clocks of main control circuit are given media storage control unit receiving terminal 132 and physical layer element receiving terminal 142 (s226), still end supply power and clock and give peripheral control interface 110 (s228).At this moment, network interface 120 will be operated in battery saving mode (s230).When the user enables arousal function, and network interface 120 desires are converted to when being operated in normal mode from battery saving mode, and then step is the same as is known for its step.
When network interface 120 desires (s302) when being converted to normal mode, steps flow chart as shown in Figure 3 as the described battery saving mode of step s224.It at first is operated in battery saving mode (s304) for media interface, and does not judge interruptedly whether network interface 120 desires to leave battery saving mode (s306).Wherein, the benchmark of judgement is whether startup to be arranged or reach the 100 default times of main computer unit according to the user, but all not as limit.
When judgement learnt that network interface 120 is desired to leave battery saving mode, it at first was an extremely peripheral control interface 114 of supply power and clock, and sent the action (s308) that reset signal resets to peripheral control interface 114 and controlling mechanism 116.Then, main computer unit promptly sends signal H, allows network interface 120 enter normal mode with indication controlling mechanism 116.Therefore, before network interface 120 enters normal mode, be that first sequencing network interface 120 is done initialization (s310) to network interface 120 again.
In the present embodiment, network interface 120 is after sequencing and initialization are finished, controlling mechanism 116 is promptly then controlled main control circuit 114, make its supply power and clock give media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144, and send signal F, G reset media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144.In addition, controlling mechanism 116 is also sent signal L and is informed main computer unit 114 (s312).
Behind supply power and clock and the media storage control unit receiving terminal 132 that resets, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144,120 of network interfaces enter normal mode (s314).And in step s314, also comprise by software and check whether physical layer element 140 and media storage control unit 130 have been operated in normal mode (s316).When judgement learnt that physical layer element 140 and media storage control unit 130 have been operated in normal mode, 120 of network interfaces were also for being operated in normal mode (s318).
In preferred embodiment of the present invention, arousal function can be a calling function of network, but not as limit.
Apparently, comprehensive top content, Fig. 1 also can correspond to another preferred embodiment of the present invention: a kind of network equipment.At this, network equipment comprises network interface 120 and peripheral control interface 110 at least.Socket 120 has media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 at least.And peripheral control interface 110, be coupled to 120 network interfaces and main computer unit 100, at least have main control circuit 114 and controlling mechanism 116, and can control media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144 this (that is control this running or close).At this, peripheral control interface framework space 112 is irrelevant with the present embodiment technical characterictic, is not discussed earlier.
Controlling mechanism 116 is in order to control media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144, this clock.And, for coordinate effectively this clock with from the signal of main computer unit 100, present embodiment can be to allow the controlling mechanism 116 be to control media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144, this clock by main control circuit 114.
Controlling mechanism 116 is to be coupled to oscillator 150, and obtains one first clock that controlling mechanism 116 will be provided to network interface 120 from oscillator 150.At this, first clock is the second clock that is independent of the main computer unit 100 peripheral control interface 110 that offers.At this, controlling mechanism 116 is with the possible passage of first clock transfer to network interface 120, and comprise at least: (a) controlling mechanism 116 directly transfers to network interface 120 with first clock from oscillator 150; And (b) controlling mechanism 116 with first clock via main control circuit 114 with first clock transfer to network interface 150.
Apparently, one of present embodiment big technical characterictic is to come Control Network interface 150 resulting clocks by controlling mechanism 116.In the known technology, because the needs of calling function of network, network interface 120 always will have partly, and assembly remains on armed state, therefore clock is that directly its source (as oscillator) directly enters network interface, and present embodiment is controlled clock by controlling mechanism 116 and how to be entered network interface 120, also just provide not allow any clock enter network interface 120 fully, and then reduced network interface 120 because the energy consumption that running produced that clock causes.
Generally speaking, with respect to media storage control unit receiving terminal 132, media storage control unit transmission end 134, physical layer element receiving terminal 142 and physical layer element transmission end 144, be to operate according to first clock.The periphery control interface is to operate according to second clock.
Comprehensive the above, the method for the electrical source consumption of adjustment network interface of the present invention comprises following advantage:
(1) method of adjustment network interface electrical source consumption of the present invention can be closed circuitry needed when carrying out calling function of network, to reduce electrical source consumption in the time can't using or do not want to use calling function of network.
(2) method of adjustment network interface electrical source consumption of the present invention can by adjusting the switch and the transmission of clock and power supply, keep interlock circuit in armed state, so that calling function of network to be provided when needs use calling function of network.
(3) method of the electrical source consumption of adjustment network interface of the present invention is applicable to any device that calling function of network is arranged, and the mobile computer that particularly provides electric power by battery etc. must reduce the electronic product of electrical source consumption to lengthen working hours as far as possible.
(4) method of the electrical source consumption of adjustment network interface of the present invention is applicable to the computer and the computer peripheral equipment product that not necessarily need calling function of network.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; anyly have the knack of this skill person; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking accompanying the claim person of defining.