1. Technical Field
The present disclosure relates to an electronic device that is able to transmit data. More particularly, the present disclosure relates to an electronic device and a data transmission method of the same.
2. Description of Related Art
The electronic devices such as cell phones and computers bring convenience to our life. The communication and the information exchange becomes fast and easy. As the trend towards smaller size continues, the design of a more efficient and power-saving electronic devices is necessary.
In the current design, the electronic device transmits the packet to the external network immediately after the packet is generated. When the electronic device is connected to the websites such as Facebook or Twitter, the data access may be performed frequently to access these websites. However, these data accesses are not urgent to the system of the electronic device. If the system transmits the packet every time the data access is generated, the electronic device will consume lots of power. Hence, the battery is not able to support the electronic device for a long time.
Accordingly, what is needed is an electronic device having a mechanism to dynamically adjust its operation mode. The present disclosure addresses such a need.
An aspect of the present disclosure is to provide a data transmission method adapted in an electronic device. The data transmission method comprises the steps as follows. The electronic device is operated in a sleep period, wherein at least one first data-transmitting packet is stored in a data-transmitting register during the sleep period. The electronic device is operated in a wake-up period when the sleep period is finished, wherein during the wake-up period, the first data-transmitting packet stored in the data-transmitting register is transmitted to an external network. The electronic device is operated in the sleep period when the wake-up period is finished
According to an embodiment of the present disclosure, wherein the step of operating the electronic device in the sleep period further comprises operating the electronic device in the wake-up period when a data-receiving packet is received to further transmit the first data-transmitting packet stored in the data-transmitting register to the external network; and operating the electronic device in the sleep period when the wake-up period is finished.
According to another embodiment of the present disclosure, wherein the step of operating the electronic device in the sleep period further comprises operating the electronic device in the sleep period when a display panel of the electronic device is in operation.
According to yet another embodiment of the present disclosure, wherein the step of operating the electronic device in the sleep period further comprises transmitting a second data-transmitting packet generated by a specific application program to the external network.
Another aspect of the present disclosure is to provide an electronic device comprising a processing module, a data-transmitting register and a data-transmission control module. The processing module operates the electronic device in a sleep period and a wake-up period in turn and to generate at least one first data-transmitting packet. The data-transmission control module stores the first data-transmitting packet in the data-transmitting register during the sleep period and transmits the first data-transmitting packet stored in the data-transmitting register to an external network during the subsequent wake-up period.
According to an embodiment of the present disclosure, wherein when a data-receiving packet is received during the sleep period, the processing module operates the electronic device in the wake-up period and operates the electronic device in the sleep period when the wake-up period is finished. When the data-receiving packet is received during the sleep period, the processing module transmits the first data-transmitting packet stored in the data-transmitting register to the external network.
According to another embodiment of the present disclosure, the electronic device further comprises a display panel, wherein when the display panel of the electronic device is in operation, the processing module operates the electronic device in the sleep period.
According to yet another embodiment of the present disclosure, wherein when the electronic device is operated in the sleep period, the data-transmission control module transmits a second data-transmitting packet generated by a specific application program to the external network. The specific application program is an instant communication program.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the disclosure as claimed.
The disclosure can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
Reference will now be made in detail to the present embodiments of the disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Please refer to
In an embodiment, the processing module 10 is a central processing unit
(CPU) to perform the computation of the data from various application programs. The processing module 10 can further transmit data to an external network or receive data from the external network. The data-transmitting register 12 and the data-receiving register 14 can be integrated in a network module (not shown) of the electronic device 1 in an embodiment.
When the processing module 10 performs the data transmission, the data-transmitting packet 11 generated by the processing module 10 is transmitted to the external network through the data-transmitting register 12. On the other hand, the processing module 10 can receive the data-receiving packet 13 from the external network through the data-receiving register 14. The data-transmission control module 16 further controls the transmission and reception of the data according to the status of the data-transmitting register 12 and the data-receiving register 14 or the command from the processing module 10. In an embodiment, the processing module 10 and the data-transmission control module 16 are different modules that together control the data transmission according to each other's information. In other embodiments, the processing module 10 and the data-transmission control module 16 can be integrated in the same module.
Please refer to
In step 201, the processing module 10 operates the electronic device 1 in a sleep period. In an embodiment, the processing module operates the electronic device 1 in the sleep period when the display panel (not shown) of the electronic device 1 is not in operation to save the power. In another embodiment, the processing module 10 can operate the electronic device 1 in the sleep period when the display panel is in operation as well.
During the sleep period, the data-transmission control module 16 stores the first data-transmitting packet 11 generated by the processing module 10 in the data-transmitting register 12. Consequently, the first data-transmitting packet 11 generated by the processing module 10 is stored in the data-transmitting register 12 instead of being transmitted to the external network.
In step 202, the processing module 10 determines whether the electronic device 1 receives a data-receiving packet 13 from the external network. More specifically, the processing module 10 determines whether the data-receiving register 14 receives the data-receiving packet 13 from the external network. If the data-receiving register 14 does not receive the data-receiving packet 13 from the external network, the sleep period will be finished after a specific time period in step 203. The processing module 10 further operates the electronic device 1 in the wake-up period subsequent to the end of the sleep period.
Please refer to
In step 301, the processing module 10 determines whether the electronic device 1 receives the data-receiving packet 13 from the external network. If the data-receiving packet 13 is received, the data-transmission control module 16 further controls the data-receiving register 14 receives the data in step 302 to further make the processing module 10 receives the data from the data-receiving register 14. If step 302 is finished or if the processing module 10 determines that there is no received data-receiving packet 13, the processing module 10 further determines whether there is first data-transmitting packet 11 in the data-transmitting register 12 in step 303. If there is at least one first data-transmitting packet 11, the data-transmission control module 16 controls the data-transmitting register 12 to transmit the data-transmitting packet 11 accumulated in the data-transmitting register 12 to the external network in step 304.
If step 304 is finished or the processing module 10 determines that there is no first data-transmitting packet 11 stored in the data-transmitting register 12 in step 303, the flow goes back to
If the processing module 10 determines that the electronic device 1 receives the data-receiving packet 13 from the external network in step 202, the processing module 10 operates the electronic device 1 in the wake-up period in step 204 directly. However, if the processing module 10 already determines that the electronic device 1 receives the data-receiving packet 13 in step 202, step 301 in the flow depicted in
It's noticed that the order of the data transmission and data reception in the flow depicted in
In an embodiment, a time-counting mechanism can be adapted to determine whether the sleep period or the wake-up period is finished. For example, the duration of the sleep period can be predetermined to be ten minutes while the duration of the wake-up period can be predetermined to be one minute. The processing module 10 determines whether the sleep period or the wake-up period is finished in accordance with the predetermined duration described above. In other embodiments, the duration of the sleep period and the wake-up period can be varied or other mechanism can be adapted to determine whether the sleep period or the wake-up period is finished.
Consequently, the power-saving mechanism provided by operating the electronic device 1 in the sleep period and the wake-up period in turn can prevent the electronic device 1 from keeping accessing the websites through the external network when part of the network programs are executed. Hence, the power consumed by the continuous data transmission can be avoided. The electronic device 1 makes the packet supposed to be transmitted directly stored in the data-transmitting register 12 during the sleep period. Accordingly, the accumulated packets are not transmitted until the wake-up period. If there are packets received from the external network during the sleep period, the electronic devices can switch to wake-up period immediately to receive the packets and transmit the packets accumulated in the data-transmitting register 12 during the wake-up period. The high efficiency of the data transmission can be accomplished.
Please refer to
In an embodiment, the processing module 10 can further determine whether a second data-transmitting packet (not shown) is generated by specific application programs during the sleep period. The specific application programs may comprise instant communication program. The second data-transmitting packet generated by such a kind of programs needs to be transmitted immediately. Hence, when the second data-transmitting packet is generated by the specific application programs, the data-transmission control module 16 can make the second data-transmitting packet transmitted to the external network directly.
The electronic device in the present disclosure can provide the power-saving mechanism by being operated in the sleep period and the wake-up period in turn to avoid the power consumed by the continuous data transmission.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims.
This application claims priority to U.S. provisional Application Ser. No. 61/377,794, filed Aug. 27, 2010, which is herein incorporated by reference.
Number | Date | Country | |
---|---|---|---|
61377794 | Aug 2010 | US |