1. Field of the Invention
The present invention relates to optimal control provided for a transmission buffer and a reception buffer during wireless data communication.
2. Description of the Related Art
A market, centered around PCs, has been developed for wireless communication systems, and the use of wireless communication systems has spread. Wireless communication systems can be constituted by employing the abundant memory resources available of a PC, without much having to take into account limitations imposed by the sizes of memories used for wireless communication.
However, a wireless communication function has also begun to be mounted in electric household appliance, such as AV apparatuses, to perform video transmission, and high quality wireless transmission is also required in environments wherein abundant memory resources, like those provided by PCs, are not available. Therefore, optimal control of buffer sizes is demanded.
According to a conventional buffer control method for wireless communication, a transmission buffer and a reception buffer are regarded as a single unit, with a boundary established between the buffers, and when either buffer is full while space is still available in the other, the boundary is moved so that the vacant space can be used (see, for example, U.S. Pat. No. 6,094,695).
However, this conventional control method is the best effort control method, and when deviation of the frequency of the performance occurs, to either a transmission process or a reception process, a buffer can be used for only one of the processes.
This problem will be explained while referring to the drawings.
A function is provided for the contents processor 100A for processing various contents types, such as MPEG data, and a function is provided for the wireless communication unit 100B for performing a transmission process for transferring, during a wireless transmission interval, contents received from the contents processor 100A, via the wireless communication unit 100C, to the contents processor 100D.
Similarly, a function is provided for the contents processor 100D for processing various contents types, such as MPEG data, and a function is provided for the wireless communication unit 100C for performing a transmission process, within a wireless section, for transferring contents received from the contents processor 100D, via the wireless communication unit 100B, to the contents processor 100A.
In the thus constructed wireless network, when, for example, the contents processor 100A employs the band of the wireless section to transmit, at the maximum, the contents to the contents processor 100D, the transmission process in the wireless section occurs in the wireless communication unit 100B, and a transmission buffer 110 is employed, while the reception process in the wireless section occurs in the wireless communication unit 100C, and a reception buffer 120 is employed.
At this time, as is shown in
The objective of the present invention is to provide a radio module that always optimizes the sizes of buffers required for a transmission process and a reception process, so that memory resources can be employed effectively.
A radio module according to this invention comprises:
a wireless communication unit for performing the wireless communication of contents; and
a contents processor for processing contents that are to be transmitted or that are received by the wireless communication unit,
wherein the wireless communication unit includes
wherein, in accordance with the type of contents processed by the contents processor, the transmission buffer area and the reception buffer area for the buffer queue are changed.
According to this arrangement, since the transmission buffer area and the reception buffer area for the buffer queue can be changed in accordance with the type of contents, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be utilized effectively.
For the radio module of the invention, the wireless communication unit further includes:
a contents information table in which information concerning the size of a buffer required for a process, and information indicating the type of process, either a transmission process or a reception process, are to be stored in correlation with the contents type. When the contents type to be processed is changed to a different type, the contents processor transmits to the wireless communication unit information concerning the different contents type, and the wireless communication unit examines the contents information table to change the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, when the contents type to be processed by the contents processor is changed, the wireless communication unit examines the contents information table to change the transmission buffer area and the reception buffer area for the buffer queue. Therefore, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be employed effectively.
For the radio module of the invention, information concerning the size of a buffer required for a process includes an average rate required for the transmission/reception of the contents, and in accordance with the average rate, the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since the wireless communication unit, in accordance with the average rate, changes the transmission buffer area and the reception buffer area for the buffer queue, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be utilized effectively.
For the radio module of the invention, information concerning the size of a buffer required for a process includes a recommended buffer size to be allocated for the contents, and in accordance with the recommended sizes of buffers, the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since the wireless communication unit, in accordance with the recommended sizes of buffers, changes the transmission buffer area and the reception buffer area for the buffer queue, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be employed effectively.
For the radio module of this invention, the buffer queue includes:
a transmission buffer queue, used for transmission;
a reception buffer queue, used for reception; and
a spare buffer queue, from which the size of a buffer can be allocated for the transmission buffer queue and the reception buffer queue.
According to this structure, the transmission process and the reception process need not be halted for the rearrangement of buffers. Further, the exclusive process need not be performed to prevent contention for the use of a buffer, and the buffer areas can be changed efficiently.
For the radio module of the invention, information concerning the size of a buffer required for a process includes a use history, for the size of a buffer used for the contents in the past, and in accordance with the use history, the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since in accordance with the use history the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue, the sizes of buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be employed effectively.
For the radio module of the invention, the use history is the maximum value for the size of a buffer used for the contents in the past.
According to this structure, since the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue, in accordance with the maximum value for the size of a buffer used for the contents in the past, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be utilized effectively.
For the radio module of the invention, information concerning the size of a buffer required for a process includes an error rate for each contents type and a corrected size for a buffer corresponding to the error rate. The wireless communication unit calculates the error rate during the transmission and reception of the contents, and in accordance with a corrected size for a buffer, changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue, in accordance with the error rate for each of the contents and the corresponding corrected size of a buffer, the amount of a buffer required for the transmission process and the reception process can be always optimized, and the memory resources can be effectively employed.
For the radio module of the invention, information concerning the size of a buffer required for a process includes an error rate for each contents type and a recommended size for a buffer corresponding to the error rate. The wireless communication unit calculates the error rate during the transmission and reception of the contents, and in accordance with the recommended size for a buffer, changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue in accordance with the error rate for the contents and the corresponding recommended size for a buffer, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be utilized effectively.
For the radio module of the invention, information concerning the size of a buffer required for a process includes priority information for each contents type, and in accordance with the priority information, the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue.
According to this arrangement, since in accordance with the priority information, the wireless communication unit changes the transmission buffer area and the reception buffer area for the buffer queue, the sizes of the buffer required for the transmission process and the reception process can always be optimized, and the memory resources can be employed effectively.
For the radio module of the invention, the wireless communication unit has a function for updating, adding or deleting information stored in the contents information table.
This arrangement can easily cope with an increase in the contents types that a user can select, or the addition or changing of a contents processor, such as an AV apparatus, that is to be connected to a wireless communication unit that serves as a transmission source.
According to the invention, since the transmission buffer area and the reception buffer area for the buffer queue are changed in accordance with the contents type, the sizes of the buffers required for the transmission process and the reception process can always be optimized, and the memory resources can be utilized effectively.
Furthermore, since the wireless communication unit constantly obtains the sizes of the buffers required for the transmission process and the reception process, it is possible to prevent the occurrence of a phenomenon whereby, although the size of the reception buffer is adequate, the size of the transmission buffer is reduced, thereby hindering the performance of a required transmission process, and also of a phenomenon whereby, although the size of the transmission buffer is adequate, the size of the reception buffer is reduced, and the performance of a required reception process is hindered.
Included in the contents processor 100A is a contents change detector 300D. When the contents are changed, the contents change detector 300D transmits to the wireless communication unit 100B a contents identifier corresponding to the contents that are newly to be processed by the wireless communication unit 100B.
The wireless communication unit 100B includes a contents information table 300B, in which information concerning the contents is stored. The wireless communication unit 100B examines the contents information table 300B, and based on the contents identifier transmitted by the contents processor 100A, obtains the sizes of buffers required for the transmission process and the reception process, and again distributes a transmission buffer 420 and a reception buffer 430 in a buffer queue 410.
As is shown in
Since the contents information table 300B is stored in the memory of the wireless communication unit 100B, the wireless communication unit 100B examines the contents information table 300B, as needed, and employs the average rate to calculate the size of a buffer required for each contents type entered in the contents information table 300B. Thus, the wireless communication unit 100B can determine the distribution of the buffers required for the contents, and can rearrange the buffers.
Upon receiving the contents change notification, the wireless communication unit 100B employs the contents identifier included in this notification to search the contents information table 300B wherein values have been entered in advance (step S52). When an entry that matches the contents identifier is found, the wireless communication unit 100B reads the corresponding average rate and the direction information indicating the performance of a the transmission or of a reception.
Assume that the contents information table 300B in
The required size of a buffer can be calculated based on the average rate obtained. That is, when the average rate is high, the size required for the buffer is increased, and when the average rate is low, the size required for the buffer is reduced.
Therefore, the size required for the buffer is calculated based on the average rate obtained (step S53), and the buffers are rearranged as shown in
Conventionally, since the transmission buffer 420 and the reception buffer 430 are provided in a single buffer queue, the transmission process and the reception process must be halted each time the buffers are rearranged, and since an exclusive process must be performed to prevent contention for the use of buffers, the rearrangement of the buffers can not efficiently be performed.
To resolve this problem, in this embodiment, as is shown in
That is, in this embodiment, the buffer queue 410 of the wireless communication unit 100B is separated to form a spare buffer queue 130, a transmission buffer queue 140 and a reception buffer queue 150.
The wireless communication unit 100B allocates only the size required for a buffer for the transmission buffer queue 140 and the reception buffer queue 150. When, as a result of the rearrangement, a larger buffer size must be allocated for the transmission buffer queue 140 or the reception buffer queue 150, the required buffer space is obtained from the spare buffer queue 130.
When as a result of the rearrangement the size of the transmission buffer queue 140 or of the reception buffer queue 150 can be reduced, the excess buffer space is allocated for the spare buffer queue 130. Through this processing, the reception process is not adversely affected when the transmission buffer is to be rearranged.
Using this method, when a transmission buffer queue 140 and a reception buffer queue 150 are prepared for each connected terminal, and there are a plurality of queues, the rearrangement of the buffers for one target queue can be performed without adversely affecting the transmission and reception processes for the other queues.
In this embodiment, the average rates are stored in the contents information table 300B. However, the size of a buffer to be allocated may be stored, for example, as the recommended size for a buffer.
The contents are not always transmitted or received at a specific, constant rate. The rate at which the contents are stored in the contents information table 300B in
Therefore, as is shown in
However, when the total size of a buffer nears the limit, the size of a buffer to be allocated is reduced by referring to the size of the buffer when correlated with the average rate. That is, when the size of an allocated buffer, based on the average rate, differs greatly from the maximum size of the buffer, consonant with the use history, it is highly probable that a buffer for which the size is greater than necessary is to be allocated, and the size of the buffer that is to be allocated can be reduced.
Then, the value of the history of the current contents is obtained from the contents information table 300B. And when the value given for the size of the currently used buffer exceeds the history value, the value given for the size of the currently used buffer is entered, as a new history value, in the contents information table 300B (step S84), and the buffer is rearranged (step S85). Then, the history information updating timer is again activated (step S81). When this process is repeated each time a predetermined time has elapsed, a buffer allocation can be performed that more nearly approaches the optimal.
For wireless data communication, the error state may constantly be changed due to the installation location or the interference provided by an obstacle or another wireless device. Because of this, the optimal distribution of the transmission buffer 420 and the reception buffer 430 may not be obtainable even when these buffers are appropriately distributed in accordance with the communication rate.
To cope with this case, at a specific interval, a transmission terminal collects statistics on for the frequency of transmissions and the frequency of errors, calculates the error rate based on the obtained statistic data, and changes the size of the buffer in accordance with the error rate. In this manner, the optimal size of the buffer can always be distributed.
In
For example, when the wireless communication apparatus 100B including the contents information table 300B in
When the error rate is unchanged (No at step S94), the error measurement timer is started and the processing is terminated. When this processing is repeated, the optimal buffer arrangement is always enabled in accordance with the change for the error rate.
Instead of holding, in the table, the size of the buffer that is the error correction value, the allocated size of the buffer consonant with the error rate may be held in the table. Both cases are essentially the same.
Data transfer can not be performed when an effective rate for the wireless communication is exceeded, i.e., the data transfer fails when the total value for the rates used for the transmission and the reception exceeds a specific value. Therefore, in the contents information table 300B shown in
To avoid this problem, as is shown in
For example, in the contents information table 300B in
A function is additionally provided whereby, when a new contents type is added, the size of the contents information table 300B in
Further, a function is also provided for enabling the broadcast subject of the contents type that has been registered in advance. With this function, a case wherein the rate is changed, in accordance with the broadcast subject of the contents type that has been registered, can easily be coped with.
These functions will be explained while referring to
The wireless communication unit 100B reads the change rate of 20 Mbps from the rate change request, and updates, to 20 Mbps, the rate information for the contents A stored in the contents information table 300B.
Further, when a contents deletion request is issued to the wireless communication unit 100B, e.g., when the information for the contents D is registered in the contents information table 300B, and the request for the deletion of the contents D is issued to the wireless communication unit 100B, the wireless communication unit 100B deletes the information for the contents D from the contents information table 300B.
An explanation will now be given for a case wherein additional contents information is to be entered, e.g., a request for adding contents information (E, F) in
The contents E and the contents F are information to be newly added. The information for the contents is stored in the area where the contents D were stored, and the information for the contents F is stored by extending the contents information table B.
As a result, when the contents types selectable by a user are increased, or when a contents processor 100A, such as an AV apparatus, is additionally connected to the wireless communication apparatus 100B, which is a source, or is changed, either case can easily be coped with.
According to the radio module of this invention, since the transmission buffer area and the reception buffer area of the buffer queue is varied in accordance with the contents type, the size of the buffer required for the transmission process and the reception process can always be optimized, and the memory resources can be effectively utilized. This invention effectively provides, for the performance of wireless data communication, an optimal control technique for the transmission buffer and the reception buffer.
Number | Date | Country | Kind |
---|---|---|---|
P.2004-150184 | May 2004 | JP | national |