This application claims priority to Chinese Application Serial Number 202010716275.0, filed Jul. 23, 2020, which is herein incorporated by reference.
The present disclosure relates to a packet receiving system and a packet receiving method. More particularly, the present disclosure relates to a packet receiving system and a packet receiving method with better operating efficiency.
In generally, in a communication system, a transmitter device can transmit packets to a receiver device through specific communication technologies.
Due to some limitations, devices in the communication system cannot work simultaneously (e.g., devices cannot work simultaneously if they have to share specific hardware). If one of the devices receives packets for a long time, the others have to wait.
One embodiment of the present disclosure is related to a packet receiving system. The packet receiving system includes a transmitter device, a receiver device, and a communication device. The transmitter device is configured to transmit a plurality of packets periodically according to a packet gap. The receiver device performs a receiving operation for the packets in a plurality of first working time intervals. A sum of lengths of the first working time intervals corresponds to a length of the packet gap. The communication device performs a receiving operation or a transmitting operation in a plurality of second working time intervals. A length of each of the second working time intervals corresponds to the length of the packet gap. Each of the second working time intervals is arranged in between two of the first working time intervals.
One embodiment of the present disclosure is related to a packet receiving method. The packet receiving method includes the following operations: transmitting a plurality of packets periodically according to a packet gap by a transmitter device; performing a receiving operation for the packets in a plurality of first working time intervals by a receiver device, in which a sum of lengths of the first working time intervals corresponds to a length of the packet gap; and performing a receiving operation or a transmitting operation in a plurality of second working time intervals by a communication device, in which a length of each of the second working time intervals corresponds to the length of the packet gap, in which each of the second working time intervals is arranged in between two of the first working time intervals.
As shown in the above embodiments, in the packet receiving system and the packet receiving method of the present disclosure, the receiving device and the communication device can work by turns so that the waiting time of the communication device can be reduced. This ensures the receiving accuracy of the receiving device and prevents the communication device from being in a waiting status for a long time. Accordingly, the operation efficiency of the packet receiving system can be increased.
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:
The embodiments in the following descriptions are described in detail with the accompanying drawings, but the examples provided are not intended to limit the scope of the disclosure covered by the present disclosure. The structure and operation are not intended to limit the execution order. Any structure regrouped by elements, which has an equal effect, is covered by the scope of the present disclosure. In addition, the drawings are merely for illustration and are not illustrated according original sizes. For ease of understanding, the same or similar components in the following descriptions will be described with the same symbols.
In the present disclosure, “connected” or “coupled” may be referred to “electrically connected” or “electrically coupled.” “Connected” or “coupled” may also be referred to operations or actions between two or more elements.
Reference is made to
The transmitter device TX1 can transmit multiple packets PK1 to the receiver device RX1. The communication device D2 can transmit or receive multiple packets PK2. The packets PK1 and the packets PK2 may be in different formats. For example, the transmitter device TX1 may be an electronic device adopting Wi-Fi standard and is configured to transmit the packets PK1 with Wi-Fi standard. Correspondingly, the receiver device RX1 may be an electronic device adopting Wi-Fi standard and is configured to receive the packets PK1 with Wi-Fi standard. The communication device D2 may be an electronic device adopting Bluetooth standard and is configured to transmit or receive the packets PK2 with Bluetooth standard. However, the present disclosure is not limited to the devices described above and is not limited to the packet formats described above.
References are made to
Then, the original working time interval T1 is divided into multiple first working time intervals T11-T13. In some embodiments, lengths of the first working time intervals T11-T13 are identical. In some other embodiments, the lengths of the first working time intervals T11-T13 are not identical (may be partially identical).
In the embodiments where the length of the original working time interval T1 is equal to the length of the packet gap PT, if the length of the packet gap PT is M seconds and the length of the original working time interval T1 is divided into N first working time intervals, a length of one of the N first working time intervals is equal to a ratio of M to N, in which N is a positive integer greater than 1. In the embodiments where the length of the original working time interval T1 is greater than the length of the packet gap PT, if the length of the packet gap PT is M seconds and the length of the original working time interval T1 is divided into N first working time intervals, a length of one of the N first working time intervals is greater than the ratio of M to N.
A second working time interval T2 is arranged between the first working time interval T11 and the first working time interval T12, and another second working time interval T2 is arranged between the first working time interval T12 and the first working time interval T13. In some embodiments, each of the lengths of the first working time intervals T11-T13 is less than a length of each of the second working time intervals T2.
In some application situations, the receiver device RX1 and the communication device D2 cannot operate simultaneously. For example, only one of the receiver device RX1 and the communication device D2 can operate if the receiver device RX1 and the communication device D2 share the same antenna (as the aforementioned embodiments, the Wi-Fi device and the Bluetooth device in a cell phone share the same antenna). Thus, in the example of
In some related approaches, the operation priority of the receiver device RX1 and the operation priority of the communication device D2 are decided based on a predetermined rule. If the operation priority of the receiver device RX1 is higher than the operation priority of the communication device D2, the receiver device RX1 performs the receiving operation for the packets PK1 from the transmitter device TX1 at first. In this case, if plenty of packets PK1 are sent in the air, the communication device D2 is unable to receive or transmit the packets PK2 for a long time. Similarly, in a case where the receiver device RX1 and the communication device D2 share the same radio frequency apparatus, the communication device D2 cannot request for receiving operation or transmitting operation when the receiver device RX1 occupies the radio frequency apparatus.
In some other related approaches, the original working time interval T1 of the receiver device RX1 is not divided into multiple working time intervals (e.g., the aforementioned first working time intervals). In other words, the receiver device RX1 can use the entire original working time interval T1 (e.g., the length of the original working time interval T1 shown in the second row of
Compared to the aforementioned related approaches, in the packet receiving system 100 of the present disclosure, the entire original working time interval T1 (which is configured for receiving the periodic packets PK1) of the receiver device RX1 is divided into the first working time intervals T11-T13 with shorter lengths. This can shorten the waiting time of the communication device D2 so that the power consumption of the communication device D2 can be reduced. In addition, since the sum of the lengths of the first working time intervals T11-T13 is equal to (or greater than) the length of the packet gap PT, this ensures that the receiver device RX1 can receive at least one of the packets PK1 from the transmitter device TX1. In this way, the operations of the receiver device RX1 would be less likely to delay the operations of the communication device D2.
Reference is made to
Correspondingly, the lengths of the working time interval of the communication device D2 are arranged to be the length of the second working time interval T2 (the length of the packet gap PT) reduces the length of the protection time interval DT. In other words, each of the rearranged working time intervals of the communication device D2 is less than the packet gap PT. Compared with the example in
Reference is made to
T1′=N×(t1+DT)=N×T3 (1)
T1′ is a total length of the working time intervals of the receiver device RX1 after the protection time interval DT is introduced.
References are made to
Based on the aforementioned formula (1), a total length of the working time intervals T1′ of the receiver device RX1 plus the length of the protection time interval DT is 106.2 milliseconds. Since 106.2 milliseconds is greater than 102.4 milliseconds, the total length of the working time intervals T1′ can cover at least one of the two adjacent packets PK1, so the rate that the receiver device RX1 successfully receives packets can be increased.
Based on the foregoing, after the receiver device RX1 performs the receiving operation for 37 milliseconds, the communication device D2 takes over to perform the receiving operation or the transmitting operation for 100 milliseconds. In this case, the percentage of working time of the communication device D2 is 73% (i.e., 100/(100+37)).
Reference is made to
In operation S510, the transmitter device TX1 transmits the packets PK1 periodically according to the packet gap PT.
In operation S520, the receiver device RX1 performs the receiving operation for the packets PK1 in the first working time intervals T11-T13. In some embodiments, the sum of the lengths of the first working time intervals T11-T13 is identical to the length of the packet gap PT. In some other embodiments, the sum of the lengths of the first working time intervals T11-T13 is greater than the length of the packet gap PT, in order to ensure that the receiver device RX1 can successfully receive the packets PK1.
In operation S530, the communication device D2 performs the receiving operation or the transmitting operation in the second working time intervals T2. In some embodiments, the length of the each of the second working time intervals T2 is equal to the length of the packet gap PT. The communication device D2 performs the receiving operation or the transmitting operation for the packets PK2 in the second working time intervals T2.
Reference is made to
Operation S610 is setting parameters. In some embodiments, the total length of the working time intervals T1′, the parameter N, the length of the protection time interval DT, or the length of the third working time interval T3 in the aforementioned formula (1) may be configured according to the practical applications. For example, the length of the total working time interval T1′ can be set individually. A number of (N) segments that the total working time interval T1′ is divided into can be set as well. In addition, the protection time interval DT can be set as a positive integer (to extend the length of the working interval) or a negative integer (to shorten the length of the working time interval).
In operation S620, the receiver device RX1 sends a receiving request. For example, the receiver device RX1 sends the receiving request for the periodic packets PK1.
Operation S630 is setting the receiver device RX1 to perform the receiving operation. For example, the receiver device RX1 is set to receive the packets PK1.
In operation S640, the receiver device RX1 performs the receiving operation in one of the first working time intervals. For example, if the length of the original working time interval T1 is divided into the length of the first working time interval T11, the length of the first working time interval T12, and the length of the first working time interval T13, the receiving operation of the first working time interval T11 can be performed at first. It is understood that the numbers of segments that the original working time interval T1 is divided into or the way that the original working time interval T1 is divided (e.g., divided into the same lengths) can be controlled according to the practical applications.
Operation S650 is setting the communication device D2 to perform the receiving operation or the transmitting operation. For example, the communication device D2 is set to receive or to transmit the packet PK2.
Operation S660 is waiting for the working time interval of the communication device D2. In the embodiments in
Operation S670 is determining whether all of the receiving operations of the receiver device RX1 (corresponding to the first working time intervals T11-T13) are completed. For example, if the receiving operation corresponding to the first working time interval T11 is completed but the receiving operation corresponding to the first working time interval T12 is not completed, the flow of the method can return to operation S640 to perform the receiving operation corresponding to the first working time interval T12. This rule is utilized until all of the receiving operations of the first working time intervals T11-T13 are completed.
As shown in the above embodiments, in the packet receiving system and the packet receiving method of the present disclosure, the receiving device and the communication device can work by turns so that the waiting time of the communication device can be reduced. This increases the successful receiving rate of the receiving device and prevents the communication device from a long waiting. Accordingly, the efficiency of the packet receiving system can be increased.
Various functional components or blocks have been described herein. As will be appreciated by persons skilled in the art, in some embodiments, the functional blocks will preferably be implemented through circuits (either dedicated circuits, or general purpose circuits, which operate under the control of one or more processors and coded instructions), which will typically comprise transistors or other circuit elements that are configured in such a way as to control the operation of the circuitry in accordance with the functions and operations described herein. As will be further appreciated, the specific structure or interconnections of the circuit elements will typically be determined by a compiler, such as a register transfer language (RTL) compiler. RTL compilers operate upon scripts that closely resemble assembly language code, to compile the script into a form that is used for the layout or fabrication of the ultimate circuitry. Indeed, RTL is well known for its role and use in the facilitation of the design process of electronic and digital systems.
Although the present disclosure has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. 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.