1. Field of the Invention
The present invention relates to a network device and control method thereof, and more particularly, to a network device and control method thereof capable of automatically powering down/up a transmitter to reduce power consumption.
2. Description of the Prior Art
When a conventional network device is not successfully linked with a link partner, a transmitter of the conventional network device still sends signals constantly and tries to link with the link partner. In this way, unnecessary power consumption is increased.
It is therefore one of the objectives of the present invention to provide a network device and control method thereof capable of automatically powering down/up a transmitter to reduce power consumption, so as to solve the above problem.
In accordance with an embodiment of the present invention, a control method for a network device comprising a transmitter and a receiver is disclosed. The control method comprises: calculating a first predetermined time; utilizing the transmitter to generate a network linking signal and output the network linking signal; detecting a link status of the network device and a link partner to generate a first detecting result; and determining whether to power down the transmitter according to the first detecting result and the first predetermined time.
In accordance with an embodiment of the present invention, a network device is disclosed. The network device comprises: a receiver, a first timer, a transmitter, a detector, and a controller. The first timer is utilized for calculating a first predetermined time. The transmitter is coupled to the first timer, and utilized for generating a network linking signal and outputting the network linking signal. The detector is coupled to the receiver, and utilized for detecting a link status of the network device and a link partner to generate a first detecting result. The controller is coupled to the first timer, the transmitter, and the detector, and utilized for determining whether to power down the transmitter according to the first detecting result and the first predetermined time.
Briefly summarized, the network device and control method thereof disclosed by the present invention can automatically powering down the transmitter to reduce power consumption of the network device when the network device does not link with any link partner by detecting a link status of the network device and the link partner, so as to save power.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the following description and the claims to refer to particular system components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “include”, “including”, “comprise”, and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . ”. The terms “couple” and “coupled” are intended to mean either an indirect or a direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
When the first detecting result indicates that the network device 100 can not establish a connecting link with the link partner 170 successfully and the first predetermined time is over, the controller 150 powers down the transmitter 130 and powers up the second timer 160 to calculate a second predetermined time, and the detector 140 further detects whether the receiver 110 receives any network signal corresponding to the link partner 170 to generate a second detecting result. When the second detecting result indicates that the receiver 110 receives the network signal corresponding to the link partner 170, the controller 150 powers up the transmitter 130 to try to establish the connecting link between the network device 100 and the link partner 170, and when the second detecting result indicates that the receiver 110 does not receive the network signal corresponding to the link partner 170 and the second predetermined time is over, the controller 150 powers up the transmitter 130 to try to establish the connecting link between the network device 100 and the link partner 170.
Please refer to
Step 200: Start.
Step 202: Determine whether a power saving mode is activated. If yes, go to Step 204.
Step 204: Determine whether the network link is off. If yes, go to Step 206.
Step 206: Calculate a first predetermined time.
Step 208: Utilize the transmitter 130 to generate a network linking signal and output the network linking signal.
Step 210: Determine whether the network link is linked. If yes, go back to Step 204; otherwise, go to step 212.
Step 212: Determine whether the first predetermined time is over. If yes, go to Step 214; otherwise, go back to step 208.
Step 214: Power down the transmitter 130.
Step 216: Calculate a second predetermined time.
Step 218: Determine whether the receiver receives any network signal. If yes, go back to Step 222; otherwise, go to step 220.
Step 220: Determine whether the second predetermined time is over. If yes, go to Step 222; otherwise, go back to step 218.
Step 222: Power up the transmitter 130.
Briefly summarized, the network device and control method thereof disclosed by the present invention can automatically powering down the transmitter to reduce power consumption of the network device when the network device does not link with any link partner by detecting a link status of the network device and the link partner, so as to save power.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 098138956 | Nov 2009 | TW | national |