1. Field of the Invention
The disclosed embodiments of the present invention relate to adjusting an idle-timeout period, and more particularly, to a method for adjusting an idle-timeout period of a connection between a wireless communication device and a host and related wireless communication device thereof.
2. Description of the Prior Art
Wireless human interface devices, such as a keyboard or a mouse, can establish a connection with a host (e.g. a computer system) through wireless frequency spectrum, such as industrial, scientific and medical (ISM) spectrum, thereby allowing a user to operate the wireless human interface device to control the host to proceed with related operations. Due to the inherent characteristics of wireless communications, the wireless human interface device can not draw electricity from the host, and has to rely on an independent power supply, such as a battery or other energy storage devices, to supply the required electricity for receiving user operational signals (e.g., a button-enable signal generated from a keyboard; or a displacement or button-enable signal generated from a mouse) and transmitting these user operational signals to the host such that the host accordingly executes corresponding operations (e.g., displaying a mouse-related displacement and button-enable effect on a monitor of a computer system). Therefore, in order to reduce power consumption of the wireless human interface device, a typical wireless human interface device usually has a power saving mechanism. For example, after a fixed period of time in which no user operation is performed on the wireless human interface device expires, the wireless human interface device will initiate a disconnection procedure between the wireless human interface device and the host to avoid unnecessary power consumption. For example, after the user stops using the wireless human interface device for a period of time (e.g., a wireless mouse stays still for more than 15 minutes, or a wireless keyboard has no keystroke for more than 20 minutes), the wireless human interface device will actively disconnect from the host to stay in a disconnected status until the wireless human interface device detects that the user operates the wireless human interface device again (e.g., the user moves the wireless mouse, or the user uses the wireless keyboard). Next, the wireless human interface device would actively reestablish a connection with the host again.
However, during the process of establishing the connection between the wireless human interface device and the host, if a protocol handshaking procedure between the wireless human interface device and the host is executed, the process takes a period of time, sometimes several seconds. Thus, it consumes much power. With regard to a Bluetooth wireless device, a Bluetooth human interface device and the host need to execute extra protocol handshaking procedures, such as a link manager protocol (LMP) handshaking procedure and a logical link control and adaptation protocol (L2CAP) handshaking procedure, so as to establish a Bluetooth wireless connection. On the other hand, during a period of time in which the connection between the wireless human interface device and the host is being established, every operation performed by the user on the wireless human interface device is invalid, which results in user's inconvenience and is easily mistaken as a malfunction of the wireless human interface device. In addition, since every user has his/her customary activity (e.g., when a user is used to prolonged use of a computer system and encounters something might need to halt the operation of the wireless keyboard for thinking, if the think time exceeds a wait time of the wireless keyboard, the wireless keyboard will actively disconnect from the host, which causes that when the user wants to use the wireless keyboard again, the user might suffer from setbacks resulting from the wireless keyboard reconnecting the host, and the reconnection procedure might cause power consumption. Similarly, when the user seldom uses the wireless keyboard, the wireless keyboard still needs to wait for a fixed period of time to disconnect from the host, causing extra power consumption. Therefore, regarding the power management, the wireless human interface device employing the conventional method of waiting for a fixed period of time to disconnect from the host is very inefficient, causes extra power waste, and compromises the convenience of the wireless human interface device.
In accordance with exemplary embodiments of the present invention, a method for adjusting an idle-timeout period according to a time-interval variation rate of data transmission and related wireless communication device thereof are proposed to solve the above-mentioned problem.
According to a first aspect of the present invention, an exemplary method for adjusting an idle-timeout period of a connection between a wireless communication device and a host is disclosed. The exemplary method includes following steps: detecting a plurality of time intervals of data transmission between the wireless communication device and the host; generating a time-interval variation rate according to the time intervals; and adjusting the idle-timeout period according to the time-interval variation rate.
According to a second aspect of the present invention, an exemplary wireless communication device is disclosed. The exemplary wireless communication device includes a control unit and a wireless communication unit. The control unit is for generating a control data, and the wireless communication unit is for performing data transmission with a host to transmit the control data to the host. The control unit is utilized to adjust an idle-timeout period of a connection between the wireless communication device and the host, detect a plurality of time intervals of data transmission between the wireless communication device and the host, generate a time-interval variation rate according to the time intervals, and adjust the idle-timeout period according to the time-interval variation rate.
According to a second third of the present invention, another exemplary wireless communication device is disclosed. The exemplary wireless communication device includes a wireless communication unit, a reception unit, and a control unit. The wireless communication unit is for performing data transmission with a host. The reception unit is for receiving an idle-timeout period from the host. The idle-timeout period is generated according to a time-interval variation rate generated by detecting a plurality of time intervals of data transmission between the host and the wireless communication device. The control unit is for terminating a connection between the host and the wireless communication device according to the idle-timeout period.
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.
Please refer to
Step 100: Start.
Step 102: Detect a plurality of the time intervals of data transmission between the wireless communication device and the host.
Step 104: Generate a time-interval variation rate according to the time intervals.
Step 106: Adjust the idle-timeout period according to the time-interval variation rate.
Step 108: End.
According to the flow, when data transmission is performed between the wireless communication device and the host, the present invention detects the time intervals of data transmission between the wireless communication device and the host, and accordingly generates a time interval variation rate. Next, the present invention adjusts the idle-timeout period of the wireless communication device and the host according to the time-interval variation rate. The idle-timeout period indicates a time period allowing no data transmission between the wireless communication device and the host, and the time intervals indicates a time period between consecutive data transmission between the wireless communication device and the host. In other words, after a connection between the wireless communication device and the host has been established, if there is no data transmission between the wireless communication device and the host over the idle-timeout period, the wireless communication device disconnects from the host. Moreover, if the time interval variation rate indicates that the time intervals are decreasing (i.e., the time intervals of data transmission between the wireless communication device and the host decrease become shorter gradually), the idle-timeout period of the wireless communication device and the host is increased; and if the time interval variation rate indicates that the time intervals are increasing (i.e., the time intervals of data transmission between the wireless communication device and the host become longer gradually), the idle-timeout period of the wireless communication device and the host is decreased.
Via the flow shown in
Please note that the flow shown in
Besides, in a case where the host actively detects the time intervals of data transmission between the wireless communication device and the host, the host generates information of the idle-timeout period according to the time interval variation rate that is continuously detected, and then transmits the information of the idle-timeout period to the wireless communication device. In this way, when the idle-timeout period is increased, the wireless communication device prolongs the connection time of the connection established between the wireless communication device and the host. When the idle-timeout period is decreased, the wireless communication device shortens the connection time of the connection established between the wireless communication device and the host. Finally, the wireless communication device cuts the connection between the wireless communication device and the host according to the information of the idle-timeout period. In other words, since the host usually contains a mechanism for maintaining the time information, it is convenient for the host to continuously detect the time intervals of data transmission with the wireless communication device to provide a proper idle-timeout period to the wireless communication device. Therefore, the wireless communication device just needs to passively receive the idle-timeout period from the host for proceeding with the following disconnection process with the host.
Therefore, in accordance with the flow of the present invention, when the time intervals of data transmission between the wireless communication device and the host have been continuously detected, the present invention dynamically adjusts the idle-timeout period of the wireless communication device and the host according to the time interval variation rate derived from the time intervals, thereby facilitating the convenience of using the wireless communication device and reducing the power consumption of the wireless communication device.
In order to realize the flow shown in
It should be noted that, the concept of the present invention is to detect a plurality of time intervals of data transmission between the wireless communication device and the host, generate a time interval variation rate according to the detected time intervals, and adjust an idle-timeout period of the wireless communication device and the host. Based on such concept, those skilled in the art can make appropriate modifications according to different requirements. For example, please refer to
To sum up, the present invention detects a plurality of time intervals of data transmission between a wireless communication device and a host to thereby acquire a time interval variation rate indicative variation of the time intervals, and then dynamically adjusts the idle-timeout period of the wireless communication device and the host according to the time interval variation rate, which facilitates the use convenience of the wireless communication device and reduces the power consumption of the wireless communication device.
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. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
100102462 | Jan 2011 | TW | national |