CN111182589B - Wireless bandwidth allocation method and wireless terminal equipment - Google Patents
Wireless bandwidth allocation method and wireless terminal equipment Download PDFInfo
- Publication number
- CN111182589B CN111182589B CN201811338471.8A CN201811338471A CN111182589B CN 111182589 B CN111182589 B CN 111182589B CN 201811338471 A CN201811338471 A CN 201811338471A CN 111182589 B CN111182589 B CN 111182589B
- Authority
- CN
- China
- Prior art keywords
- data
- link
- terminal device
- data source
- data rate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000005540 biological transmission Effects 0.000 claims description 27
- 238000001514 detection method Methods 0.000 claims description 5
- 238000012358 sourcing Methods 0.000 claims 3
- 238000004891 communication Methods 0.000 abstract description 8
- 230000006978 adaptation Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 239000006227 byproduct Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 102220123988 rs138203039 Human genes 0.000 description 1
- 102220203897 rs746405718 Human genes 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/20—Negotiating bandwidth
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/18—Negotiating wireless communication parameters
- H04W28/22—Negotiating communication rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0446—Resources in time domain, e.g. slots or frames
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a wireless bandwidth allocation method, which comprises the following steps: acquiring a receiving data rate of data sent by at least one data source device received by terminal equipment and/or a sending data rate of data sent outwards by at least one terminal equipment; calculating the number of link bandwidth time slots needing to be adjusted of a link wirelessly connected with the terminal equipment according to at least one receiving data rate and/or at least one sending data rate; and dynamically controlling bandwidth allocation according to the link bandwidth time slot number needing to be adjusted. Compared with the prior art, the wireless bandwidth allocation method dynamically adjusts the bandwidth allocation according to the link bandwidth time slot number, reasonably utilizes the bandwidth resources, improves the bandwidth utilization rate and has good communication reliability.
Description
Technical Field
The present invention relates to the field of wireless technologies, and in particular, to a wireless bandwidth allocation method and a wireless terminal device.
Background
Bluetooth is a wireless technology, and is mostly used for short-distance data transmission between devices. Bluetooth audio is to use bluetooth wireless technology for transmitting audio streams, thereby achieving the purpose of getting rid of the limitation of wires and listening to music in a more comfortable way.
When a connection is established between two bluetooth devices, a link exists, and the master-slave roles are determined at the same time, that is, a network is formed, one master and 7 slaves may exist in one network, and of course, a plurality of devices may also form a topology network, that is, one device is a master device of the network and is a slave device of the network. Under the audio scene of bluetooth multi-equipment, most of the bluetooth multi-equipment audio scene is a topology network. In a topology network environment, network switching, bandwidth allocation and the like are uncertain factors of transmission among devices.
In a traditional multilink and network scenario, resources such as bandwidth and the like are generally distributed evenly or in a single form, and cannot be dynamically, reasonably and effectively utilized due to the fact that the resources such as bandwidth and the like are not suitable for the scenario or the communication or link condition change and the like, so that waste is caused, and a good actual effect cannot be achieved.
Therefore, there is a need to provide a new bluetooth bandwidth allocation method to solve the above problems.
Disclosure of Invention
In view of the above deficiencies of the prior art, the present invention provides a wireless bandwidth allocation method for dynamically adjusting and reasonably utilizing bandwidth resources.
In order to solve the above technical problem, the present invention provides a wireless bandwidth allocation method, which comprises the following steps:
acquiring a receiving data rate of data sent by at least one data source device received by terminal equipment and/or a sending data rate of data sent outwards by at least one terminal equipment;
calculating the number of link bandwidth time slots needing to be adjusted of a link wirelessly connected with the terminal equipment according to at least one receiving data rate and/or at least one sending data rate;
and dynamically controlling the bandwidth allocation according to the link bandwidth time slot number regulated by the link requirement.
Preferably, a rate compensation value of a corresponding link wirelessly connected to the terminal device is calculated according to at least one of the received data rate and/or the transmitted data rate, and a number of link bandwidth slots to be adjusted is calculated according to the rate compensation value.
Preferably, the terminal device includes a first terminal device and a second terminal device, the data source device includes a device, the data source device transmits data to the first terminal device, and the first terminal device forwards the data to the second terminal device; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N13 at which the first terminal device receives the data sent by the data source device and/or a first sending data rate N23 at which the first terminal device forwards the received data to the second terminal device;
calculating the number of link bandwidth time slots required to be adjusted of each link according to the first receiving data rate N13 and/or the first sending data rate N23;
and carrying out bandwidth allocation according to the number of the link bandwidth time slots needing to be adjusted.
Preferably, the number of link bandwidth slots to be adjusted for each link is determined according to the difference between the first receiving data rate N13 and the first transmitting data rate N23.
Preferably, the terminal device includes a device, the data source device includes a first data source device and a second data source device, and the terminal device is wirelessly connected to the first data source device and the second data source device respectively; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N33 at which the terminal device receives data sent by the first data source device and/or a second receiving data rate N43 at which the terminal device receives data sent by the second data source device;
determining the number of link bandwidth time slots which need to be adjusted by each link according to the first receiving data rate N33 and/or the second receiving data rate N43;
and adjusting the number of the link bandwidth time slots according to the requirement and performing bandwidth allocation.
Preferably, when the number of the bandwidth timeslots of the first data source device and the terminal device is greater than the number of the bandwidth timeslots of the link of the second data source device and the terminal device, and when the duration of the first received data rate N33 being less than the set data rate threshold N exceeds the set time threshold T, the number of the bandwidth timeslots of the second data source device and the terminal device is increased.
Preferably, the terminal device includes a device, and the data source device includes a first data source device and a second data source device: the first data source device and the second data source device are both in wireless connection with the terminal device, a large amount of data is transmitted between the first data source device and the terminal device, and a large amount of data is not transmitted between the second data source device and the terminal device; or, a large amount of data transmission exists between the first data source device and the terminal device, and a large amount of data transmission exists between the second data source device and the terminal device, and the data transmission between the first data source device and the terminal device is emphasized; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N53 of the terminal equipment for receiving the data sent by the first data source equipment;
calculating the number of link bandwidth time slots which need to be adjusted of a link formed between the first data source device and the terminal device through the first receiving data rate N53 in combination with a standard data rate threshold value P meeting the transmission requirement of the link;
and carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
Preferably, after the step of obtaining the first receiving data rate N53 at which the terminal device receives the data sent by the first data source device, the method further includes the following steps:
acquiring a second receiving data rate N63 at which the terminal device receives data sent by the second data source device, and detecting whether the second receiving data rate N63 is 0, where the standard data rate threshold P includes a first threshold P1, a second threshold P2, a third threshold P3, a fourth threshold P4, a fifth threshold P5, and a sixth threshold P6:
if the second receiving data rate N63 is not 0, calculating the number of link bandwidth timeslots required to be adjusted of a link formed between the first data source device and a terminal device by the first data rate N63 in combination with the first threshold P1, the second threshold P2, the third threshold P3 and the fourth threshold P4;
if the second receiving data rate N63 is 0, detecting whether a link formed between the second data source device and the terminal device performs a sniff mode:
if not, calculating the number of link bandwidth time slots which need to be adjusted of a link formed between the first data source device and the terminal device through the first receiving data rate N53 and the fifth threshold P5;
if yes, calculating the number of link bandwidth time slots which need to be adjusted for a link formed between the first data source device and the terminal device according to the first receiving data rate N53 and the sixth threshold P6.
Preferably, the terminal device includes a device, the data source device and the terminal device have a large amount of data transmission, and the terminal device has an action of paging other data source devices or broadcasting data to other terminal devices, and the wireless bandwidth allocation method includes the following steps:
detecting whether the terminal equipment pages other data source equipment or broadcasts data to other terminal equipment;
acquiring a first receiving data rate N73 of the terminal equipment for receiving the data sent by the data source equipment according to the detection result, and calculating the number of link bandwidth time slots required to be adjusted by the link according to the first receiving data rate N73 and a set standard data rate threshold value meeting the transmission requirement of the link;
and carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
Preferably, in the step of obtaining a first received data rate N73 at which the terminal device receives data sent by the data source device according to the detection result, and calculating the number of link bandwidth slots that the link needs to adjust according to the first received data rate N73 and a set standard data rate threshold that meets the transmission requirement of the link, the method includes:
if the terminal device is detecting to page other data source devices or broadcast data to other terminal devices, calculating the number of link bandwidth time slots required to be adjusted of a link formed between the data source device and the terminal device through the first receiving data rate N73 and the set standard data rate threshold;
if the terminal equipment does not page other data source equipment or broadcast data to other terminal equipment, the number of link bandwidth time slots of a link formed between the data source equipment and the terminal equipment adopts an initial default value.
Preferably, the wireless connection mode is bluetooth connection.
The invention also provides a wireless terminal device, which comprises a memory and a processor, wherein the processor is used for reading the program in the memory and executing the steps in the wireless bandwidth allocation method provided by the invention.
Preferably, the terminal device is a sound box or an earphone.
Compared with the prior art, the Bluetooth bandwidth allocation method and the wireless terminal device of the invention obtain the data rate of the data sent by the data source device received by the terminal device, calculate the link bandwidth time slot number required to be adjusted of the link formed by the terminal device and the corresponding data source device according to the data rate, and then dynamically adjust the bandwidth allocation according to the link bandwidth time slot number required to be adjusted. The method can effectively realize the dynamic adjustment of bandwidth allocation no matter one Bluetooth device is connected with the application scenes of a plurality of data source devices, or is switched to be connected with one data source device for broadcasting or connected with a plurality of slave devices at the same time. The method monitors the link bandwidth time slot number of each link, and obtains the link bandwidth time slot number required to be adjusted according to the comparison between the link bandwidth time slot number of each link and the actual link bandwidth time slot number, thereby performing bandwidth distribution adjustment according to the link bandwidth time slot number required to be adjusted to realize the automatic adaptation to various scenes, the change of communication conditions, the dynamic adjustment of bandwidth allocation under the factors of multiple links and the like, reasonably and effectively utilizing the resources such as bandwidth and the like, improving the bandwidth utilization rate, and ensuring the service quality requirement under various scenes and various communication conditions.
Drawings
The present invention will be described in detail below with reference to the accompanying drawings. The foregoing and other aspects of the invention will become more apparent and more readily appreciated from the following detailed description, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 is a block flow diagram of a wireless bandwidth allocation method of the present invention;
FIG. 2 is a flow chart of a first embodiment of a wireless bandwidth allocation method according to the present invention;
FIG. 3 is a schematic diagram of a multi-link bandwidth allocation method in the wireless bandwidth allocation method of the present invention;
FIG. 4 is a flowchart of a second embodiment of a wireless bandwidth allocation method of the present invention;
FIG. 5 is a flow chart of a third embodiment of a wireless bandwidth allocation method of the present invention;
fig. 6 is a flowchart of a fourth embodiment of the wireless bandwidth allocation method of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
The embodiments/examples described herein are specific embodiments of the present invention, are intended to be illustrative of the concepts of the present invention, are intended to be illustrative and exemplary, and should not be construed as limiting the embodiments and scope of the invention. In addition to the embodiments described herein, those skilled in the art will be able to employ other technical solutions which are obvious based on the disclosure of the claims and the specification of the present application, and these technical solutions include those which make any obvious replacement or modification of the embodiments described herein, and all of which are within the scope of the present invention.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Referring to fig. 1, the present invention provides a wireless bandwidth allocation method, which includes the following steps:
step S11, acquiring a receiving data rate of the terminal equipment for receiving the data sent by the at least one data source equipment and/or a sending data rate of the at least one terminal equipment for sending the data outwards.
Step S12, calculating the link bandwidth time slot number which needs to be adjusted by the link wirelessly connected with the terminal equipment according to at least one data rate and/or at least one sending data rate.
It should be noted that, in this embodiment, the link of the wireless connection includes a communication channel formed by paging, broadcasting, and the like.
Preferably, a rate compensation value M of a corresponding link wirelessly connected to the terminal device is calculated according to at least one of the received data rate and/or the transmitted data rate, and the number X of link bandwidth slots to be adjusted is calculated according to the rate compensation value M. The method specifically comprises the following steps:
N=M*T;
X=N/Y;
wherein, T is sampling time or time for calculating data rate of receiving/transmitting data;
n is the number of data needing to be increased or decreased within the sampling time T; m is a rate compensation value of the corresponding link, which includes but is not limited to a difference between data rates of the two links, or a difference between a data rate of the link and a set data rate threshold, and may be a positive compensation or a negative compensation, and may also be calculated by a more complex and precise algorithm, which is not limited in this embodiment; y is the number of data which can be transmitted in the unit time slot; and X is the number of the link bandwidth time slots needing to be adjusted. And S13, dynamically controlling bandwidth allocation according to the link bandwidth time slot number needing to be adjusted of the link.
In the wireless bandwidth allocation method of the present invention, the terminal device comprises at least one device, the data source device comprises at least one device, and at least one of the terminal device and the data source device are wirelessly connected; and dynamically adjusting the bandwidth allocation of each link connected with the terminal equipment according to at least one receiving data rate and/or at least one sending data rate of the terminal equipment. In addition, the data sent by the data source is taken as audio data, and the terminal device is taken as a sound box for example, but the invention is not limited thereto. The wireless bandwidth allocation method monitors the link bandwidth time slot number of each link, and obtains the link bandwidth time slot number required to be adjusted according to the comparison between the link bandwidth time slot number of each link and the actual link bandwidth time slot number, thereby performing bandwidth distribution adjustment according to the link bandwidth time slot number required to be adjusted to realize automatic adaptation to each scene. The terminal device in the invention is a sound box or an earphone, but is not limited thereto.
The invention is described below by way of specific embodiments, taking a bluetooth connection as an example:
example one
Referring to fig. 2, the terminal device includes a first terminal device and a second terminal device, the data source device includes a device, the data source device transmits data to the first terminal device, and the first terminal device transfers the data to the second terminal device. At this time, the wireless bandwidth allocation method includes the steps of:
step S21, obtaining a first receiving data rate N13 at which the first terminal device receives the data sent by the data source device, and/or obtaining a first sending data rate N23 at which the first terminal device transfers the received data to the second terminal device.
When data is transmitted by Bluetooth, a link needs to be divided into segments, the number of time slots of each link is obtained by taking the time slots as a unit, the transmission duration of each link can be controlled, and the adjustment of the bandwidth is controlled according to the principle. The amount of data that a slot can transmit in a particular scenario can be calculated or known, and the time for a slot is 625us, so that the number of slots can be calculated from the data rate.
For example, the first terminal device monitors the received data amount (i.e. the data amount sent by the data source device to the first terminal device, data rate N13= (data amount/monitoring time), while the first terminal device monitors the data amount forwarded to the second terminal device, data rate N23= (data amount/monitoring time), and the first terminal device calculates the number of link bandwidth slots of the link formed by the data source device and the first terminal device and the number of link bandwidth slots of the link formed by the first terminal device and the second terminal device by combining N13 and N23.
Step S22, determining the number of link bandwidth time slots that each link needs to adjust according to the first receiving data rate N13 and/or the first sending data rate N23.
In this step, specifically, the first terminal device calculates, by combining with the first receiving data rate N13, the number of link bandwidth slots of a link formed between the data source device and the first terminal device, and the first terminal device calculates, by combining with the first sending data rate N23, the number of link bandwidth slots of a link formed between the first terminal device and the second terminal device. And determining the number of the link bandwidth time slots which need to be adjusted of each link by comparing and calculating the number of the link bandwidth time slots of the two links.
In this embodiment, the number of link bandwidth slots that each link needs to adjust is calculated and determined according to the difference between the first receiving data rate N13 and the first sending data rate N23, specifically:
if N13> N23, calculating the number V2 of link bandwidth time slots needing to be increased of a link formed between the first terminal equipment and the second terminal equipment according to the difference value of N13-N23; adjusting bandwidth allocation according to V2;
if N13< N23, calculating the number V1 of link bandwidth time slots needing to be increased of a link formed between the data source equipment and the first terminal equipment according to the difference value between N23 and N13; bandwidth allocation is adjusted according to V1.
And step S23, carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
Since the total number of timeslots is fixed, as the number of timeslots of one link increases, the number of timeslots corresponding to another link decreases. According to the principle, the number of the bandwidth time slots of the links needing to be adjusted can be calculated according to the data rate of each link, and dynamic bandwidth adjustment is realized according to the number of the bandwidth time slots of the links needing to be adjusted, so that automatic adaptation to each scene is realized, the bandwidth utilization rate is improved, and the service quality requirements under each scene and each communication state are ensured.
Please refer to fig. 3, which is a schematic diagram illustrating a multi-link bandwidth allocation method according to the present invention. Each link is composed of one working segment when in a data transmission state. The time of each working segment is a fixed value, and the bandwidth is evenly distributed as shown in (3 a) of fig. 3: under the default condition, the adjustment thresholds adjust _ val of the link1 and the link2 are both 0, when the link1 completes one working segment, whether the link2 needs to work is searched, the link2 is switched to, and the link2 also searches and switches back to the link1 after completing one working segment, and the steps are repeated.
The operation effect after bandwidth allocation according to the present invention is shown in (3 b) of fig. 3: the adjustment threshold adjust _ val of the link1 is adjusted to 1, and the adjustment threshold adjust _ val of the link2 is adjusted to 2. In actual work, after the link1 continuously completes two working segments, the link2 is searched and switched, and then the link2 is searched and switched back to the link1 after continuously completing three working segments, and the process is repeated in this way.
Second embodiment
The terminal equipment comprises one piece of equipment, the data source equipment comprises first data source equipment and second data source equipment, and the terminal equipment is in Bluetooth connection with the first data source equipment and the second data source equipment respectively. The scenario is an adaptive emphasis point, that is, when a first data source is far away from a terminal device, bandwidth is allocated to a second data source device connected to the terminal device, so that the second data source device is emphasized.
As shown in fig. 4, the wireless bandwidth allocation method includes the following steps:
step S41, obtaining a first receiving data rate N33 at which the terminal device receives the data sent by the first data source device, and/or obtaining a second receiving data rate N43 at which the terminal device receives the data sent by the second data source device.
And step S42, determining the number of link bandwidth time slots which need to be adjusted by each link according to the first receiving data rate N33 and/or the second receiving data rate N43. In this step, specifically:
under the condition that the number of the bandwidth timeslots of the first data source device and the terminal device is greater than the number of the bandwidth timeslots of the second data source device and the terminal device, when the duration that N33 is less than the set data rate threshold N exceeds the set time threshold T, the number of the bandwidth timeslots of the second data source device and the terminal device is increased, for example, the number of the bandwidth timeslots between the second data source device and the terminal device is increased according to a fixed value, or the number of the bandwidth timeslots to be adjusted of each link is calculated according to N33 and N43, and the like, but not limited thereto. The data rate threshold N and the time threshold T are set artificially, for example, according to experience or requirement under a specific scene.
And S43, adjusting the number of the link bandwidth time slots according to the requirement and performing bandwidth allocation. The step allocation method is the same as the first embodiment, and is not described herein again.
Third embodiment
The terminal device comprises a device, and the data source device comprises a first data source device and a second data source device: the first data source device and the second data source device are both wirelessly connected with the terminal device, such as bluetooth connection, a large amount of data is transmitted between the first data source device and the terminal device, and a large amount of data is not transmitted between the second data source device and the terminal device; or, a large amount of data transmission exists between the first data source device and the terminal device, and a large amount of data transmission exists between the second data source device and the terminal device, and the data transmission between the first data source device and the terminal device is emphasized.
The "emphasis" in the present embodiment is determined by product form or rule requirements, for example: the Bluetooth pushes a song scene, the first data source device plays the song first, the link between the first data source device and the terminal device is the emphasis, and similarly, if the first data source device pauses the song playing and the second data source device plays the song, the emphasis is switched to the link between the second data source device and the terminal device. In the scenario of this embodiment, bandwidth allocation compensation is implemented without affecting the basic information synchronization of the other link, and, of course, the other link cannot be disconnected.
Referring to fig. 5, at this time, the wireless bandwidth allocation method includes the following steps:
step S51, obtaining a first receiving data rate N53 at which the terminal device receives the data sent by the first data source device.
In this step, preferably, a second receiving data rate N63 at which the terminal device receives data sent by the second data source device is obtained at the same time, and it is detected whether the second receiving data rate N63 is 0. The standard data rate threshold P includes a first threshold P1, a second threshold P2, a third threshold P3, a fourth threshold P4, a fifth threshold P5, and a sixth threshold P6, and of course, the number of the standard data rate thresholds P is not limited, and may be set to be one or two or more, and six are provided in this embodiment. The standard data rate threshold P is the corresponding data rate when the transmission requirement of the link is satisfied.
If the second receiving data rate N63 is not 0, calculating the number of link bandwidth timeslots required to be adjusted for the link formed between the first data source device and the terminal device according to the first receiving data rate N53 in combination with the first threshold P1, the second threshold P2, the third threshold P3 and the fourth threshold P4.
If the second receiving data rate N63 is 0, detecting whether a link formed between the second data source device and the terminal device performs a sniff mode:
if not, calculating the number of link bandwidth time slots, which need to be adjusted, of a link formed between the first data source device and the terminal device through the first receiving data rate N53 in combination with the fifth threshold P5.
If yes, calculating the number of link bandwidth time slots which need to be adjusted for a link formed between the first data source device and the terminal device according to the first receiving data rate N53 and the sixth threshold P6.
Step S52, calculating the number of link bandwidth time slots that need to be adjusted for the link formed between the first data source device and the terminal device according to the first receiving data rate N53 and the standard data rate threshold P meeting the link transmission requirement.
And S53, performing bandwidth allocation according to the link bandwidth time slot number needing to be adjusted. The step allocation method is the same as the first embodiment, and is not described herein again.
Embodiment IV
The terminal device comprises a device, the data source device and the terminal device have mass data transmission, and the terminal device has the action of paging other data source devices or broadcasting data to other terminal devices.
Please refer to fig. 6, at this time, the wireless bandwidth allocation method includes the following steps:
step S61, detecting whether the terminal device pages other data source devices or broadcasts data to other terminal devices.
Step S62, obtaining a first receiving data rate N73 at which the terminal device receives data sent by the data source device according to the detection result, and calculating the number of link bandwidth time slots that the link needs to adjust according to the first receiving data rate N73 and a set standard data rate threshold P7 that meets the transmission requirement of the link. In this step, specifically:
if the terminal device is detecting to be paging other data source devices or broadcasting data to other terminal devices, calculating the number of link bandwidth time slots required to be adjusted of a link formed between the data source device and the terminal device through the first receiving data rate N73 and the set standard data rate threshold P7.
If the terminal equipment does not page other data source equipment or broadcast data to other terminal equipment, the number of link bandwidth time slots of a link formed between the data source equipment and the terminal equipment adopts an initial default value.
And S63, performing bandwidth allocation according to the link bandwidth time slot number required to be adjusted. The step allocation method is the same as the first embodiment, and is not described herein again.
That is to say, in this embodiment, it is detected that the terminal device is paging other data source devices or broadcasting data to other terminal devices, bandwidth adjustment is performed, otherwise, bandwidth is not adjusted, that is, the default initial value is obtained. Because the wireless transmission is time division multiplexing, the link carries out data transmission when the time period occupied by the link is up. If there is a page or broadcast, the page or broadcast will also occupy a certain period of time, i.e. the data rate of the link is sufficient to meet the current situation, even if there is a page or broadcast, a default value can be used. If the data rate of the link cannot meet the current condition, calculating how many time slots need to be increased to meet the condition, and at the moment, the bandwidth allocation of the link is weighted according to the requirement. Since the speed of the other devices connected thereto is affected when the number of paging slots is small, the respective bandwidths of the link, paging or broadcast are dynamically adjusted to meet the data rate requirements.
The present invention also provides a wireless terminal device, which comprises a memory and a processor, wherein the processor is used for reading the program in the memory and executing the steps of the wireless bandwidth allocation method of the present invention. Specifically, the terminal device is a sound box or an earphone, but is not limited thereto.
The wireless bandwidth allocation methods in all the above embodiments are applicable to bluetooth bandwidth allocation.
Compared with the prior art, the Bluetooth bandwidth allocation method and the wireless terminal device of the invention obtain the data rate of the data sent by the data source device received by the terminal device, calculate the link bandwidth time slot number required to be adjusted of the link formed by the terminal device and the corresponding data source device according to the data rate, and then dynamically adjust the bandwidth allocation according to the link bandwidth time slot number required to be adjusted. The method can effectively realize the dynamic adjustment of bandwidth allocation no matter whether one Bluetooth device is connected with the application scenes of a plurality of data source devices or switched to the application scenes of one data source device for simultaneous broadcasting or a plurality of slave devices. The method monitors the link bandwidth time slot number of each link, and obtains the link bandwidth time slot number required to be adjusted according to the comparison between the link bandwidth time slot number of each link and the actual link bandwidth time slot number, thereby performing bandwidth distribution adjustment according to the link bandwidth time slot number required to be adjusted to realize the automatic adaptation to various scenes, the change of communication conditions, the dynamic adjustment of bandwidth allocation under the factors of multiple links and the like, reasonably and effectively utilizing the resources such as bandwidth and the like, improving the bandwidth utilization rate, and ensuring the service quality requirement under various scenes and various communication conditions.
It should be noted that the above-mentioned embodiments described with reference to the drawings are only intended to illustrate the present invention and not to limit the scope of the present invention, and it should be understood by those skilled in the art that modifications and equivalent substitutions can be made to the present invention without departing from the spirit and scope of the present invention. Furthermore, unless the context indicates otherwise, words that appear in the singular include the plural and vice versa. Additionally, all or a portion of any embodiment may be utilized with all or a portion of any other embodiment, unless stated otherwise.
Claims (12)
1. A wireless bandwidth allocation method, comprising the steps of:
acquiring a receiving data rate of data sent by at least one data source device received by terminal equipment and/or a sending data rate of data sent outwards by at least one terminal equipment;
calculating a rate compensation value of a corresponding link wirelessly connected with the terminal device according to at least one of the receiving data rate and/or the sending data rate, and calculating the number of link bandwidth time slots needing to be adjusted according to the rate compensation value;
and dynamically controlling bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
2. The wireless bandwidth allocation method of claim 1, wherein said terminal devices comprise a first terminal device and a second terminal device, and said data source device comprises a device, and said data source device transmits data to said first terminal device, which in turn forwards the data to said second terminal device; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N13 at which the first terminal device receives the data sent by the data source device and/or a first sending data rate N23 at which the first terminal device forwards the received data to the second terminal device;
determining the number of link bandwidth time slots which need to be adjusted by each link according to the first receiving data rate N13 and/or the first sending data rate N23;
and carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
3. The method of claim 2, wherein the number of link bandwidth slots to be adjusted for each link is determined by calculating a difference between the first received data rate N13 and the first transmitted data rate N23.
4. The wireless bandwidth allocation method of claim 1, wherein said terminal device comprises a device, said data source device comprises a first data source device and a second data source device, said terminal device is bluetooth connected to said first data source device and said second data source device, respectively; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N33 at which the terminal device receives data sent by the first data source device and/or a second receiving data rate N43 at which the terminal device receives data sent by the second data source device;
determining the number of link bandwidth time slots which need to be adjusted by each link according to the first receiving data rate N33 and/or the second receiving data rate N43;
and carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
5. The method of claim 4, wherein when the number of slots of the link bandwidth between the first data source device and the terminal device is greater than the number of slots of the link bandwidth between the second data source device and the terminal device, and the duration of the first received data rate N33 being less than the set data rate threshold N exceeds the set time threshold T, the number of slots of the link bandwidth between the second data source device and the terminal device is increased.
6. The wireless bandwidth allocation method of claim 1, wherein said terminal device comprises a device, and wherein said data sourcing device comprises a first data sourcing device and a second data sourcing device: the first data source device and the second data source device are both in wireless connection with the terminal device, a large amount of data is transmitted between the first data source device and the terminal device, and a large amount of data is not transmitted between the second data source device and the terminal device; or, a large amount of data transmission exists between the first data source device and the terminal device, and a large amount of data transmission exists between the second data source device and the terminal device, and the data transmission between the first data source device and the terminal device is emphasized; the wireless bandwidth allocation method comprises the following steps:
acquiring a first receiving data rate N53 of the terminal equipment for receiving the data sent by the first data source equipment;
calculating the number of link bandwidth time slots which need to be adjusted of a link formed between the first data source device and the terminal device through the first receiving data rate N53 in combination with a standard data rate threshold value P meeting the transmission requirement of the link;
and performing bandwidth allocation according to the link bandwidth time slot number.
7. The wireless bandwidth allocation method according to claim 6, wherein after the step of obtaining the first receiving data rate N53 at which the terminal device receives the data from the first data source device, the method further comprises the steps of:
acquiring a second receiving data rate N63 at which the terminal device receives data sent by the second data source device, and detecting whether the second receiving data rate N63 is 0, where the standard data rate threshold P includes a first threshold P1, a second threshold P2, a third threshold P3, a fourth threshold P4, a fifth threshold P5, and a sixth threshold P6:
if the second receiving data rate N63 is not 0, calculating the number of link bandwidth time slots, which need to be adjusted, of a link formed between the first data source device and the terminal device through the first receiving data rate N53 in combination with the first threshold P1, the second threshold P2, the third threshold P3 and the fourth threshold P4;
if the second receiving data rate N63 is 0, detecting whether a link formed between the second data source device and the terminal device performs a sniff mode:
if not, calculating the number of link bandwidth time slots which need to be adjusted of a link formed between the first data source device and the terminal device through the first receiving data rate N53 and the fifth threshold P5;
if yes, calculating the number of link bandwidth time slots which need to be adjusted for a link formed between the first data source device and the terminal device according to the first receiving data rate N53 and the sixth threshold P6.
8. The wireless bandwidth allocation method of claim 1, wherein said terminal device comprises a device, said data source device has a large data transmission with said terminal device, and said terminal device has an action to page other data source devices or broadcast data to other terminal devices, the wireless bandwidth allocation method comprising the steps of:
detecting whether the terminal equipment pages other data source equipment or broadcasts data to other terminal equipment;
acquiring a first receiving data rate N73 of the terminal equipment for receiving the data sent by the data source equipment according to the detection result, and calculating the number of link bandwidth time slots required to be adjusted by the link according to the first receiving data rate N73 and a set standard data rate threshold value meeting the transmission requirement of the link;
and carrying out bandwidth allocation according to the link bandwidth time slot number needing to be adjusted.
9. The method according to claim 8, wherein in the step of obtaining a first receiving data rate N73 at which the terminal device receives data sent by the data source device according to the detection result, and calculating the number of slots of the link bandwidth that needs to be adjusted for the link according to the first receiving data rate N73 and a set standard data rate threshold that meets the transmission requirement of the link, the method comprises:
if the terminal device is detecting to page other data source devices or broadcast data to other terminal devices, calculating the number of link bandwidth time slots required to be adjusted of a link formed between the data source device and the terminal device through the first received data rate N73 in combination with the set standard data rate threshold;
if the terminal equipment does not page other data source equipment or broadcast data to other terminal equipment, the number of link bandwidth time slots of a link formed between the data source equipment and the terminal equipment adopts an initial default value.
10. The method according to any of claims 1-9, wherein the wireless connection is a bluetooth connection.
11. A wireless terminal device comprising a memory and a processor, said processor being adapted to read a program in said memory and to perform the steps of the wireless bandwidth allocation method according to any of claims 1-9.
12. The wireless terminal device of claim 11, wherein the wireless terminal device is a speaker or a headset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811338471.8A CN111182589B (en) | 2018-11-09 | 2018-11-09 | Wireless bandwidth allocation method and wireless terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811338471.8A CN111182589B (en) | 2018-11-09 | 2018-11-09 | Wireless bandwidth allocation method and wireless terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111182589A CN111182589A (en) | 2020-05-19 |
CN111182589B true CN111182589B (en) | 2023-04-18 |
Family
ID=70656994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811338471.8A Active CN111182589B (en) | 2018-11-09 | 2018-11-09 | Wireless bandwidth allocation method and wireless terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111182589B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114126051A (en) * | 2020-08-27 | 2022-03-01 | 大唐移动通信设备有限公司 | A resource allocation method and network device |
CN114629737B (en) * | 2020-12-14 | 2024-03-12 | 深圳Tcl新技术有限公司 | Bandwidth adjustment method, device, gateway equipment and storage medium |
CN116170848B (en) * | 2023-01-16 | 2025-06-27 | 广州国芯微技术有限公司 | Bandwidth allocation method for Bluetooth communication system |
CN117319214B (en) * | 2023-11-30 | 2024-04-16 | 北京象帝先计算技术有限公司 | PCIE transmission bandwidth processing method, PCIE terminal equipment and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6366761B1 (en) * | 1998-10-06 | 2002-04-02 | Teledesic Llc | Priority-based bandwidth allocation and bandwidth-on-demand in a low-earth-orbit satellite data communication network |
JP2007082143A (en) * | 2005-09-16 | 2007-03-29 | Toyota Central Res & Dev Lab Inc | Communication terminal device |
CN101849389A (en) * | 2007-11-21 | 2010-09-29 | 三菱电机株式会社 | Communication device and band allocation method |
CN105391491A (en) * | 2015-11-17 | 2016-03-09 | 北京邮电大学 | Bandwidth assignment method and bandwidth assignment system applied to satellite communication system |
-
2018
- 2018-11-09 CN CN201811338471.8A patent/CN111182589B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6366761B1 (en) * | 1998-10-06 | 2002-04-02 | Teledesic Llc | Priority-based bandwidth allocation and bandwidth-on-demand in a low-earth-orbit satellite data communication network |
JP2007082143A (en) * | 2005-09-16 | 2007-03-29 | Toyota Central Res & Dev Lab Inc | Communication terminal device |
CN101849389A (en) * | 2007-11-21 | 2010-09-29 | 三菱电机株式会社 | Communication device and band allocation method |
CN105391491A (en) * | 2015-11-17 | 2016-03-09 | 北京邮电大学 | Bandwidth assignment method and bandwidth assignment system applied to satellite communication system |
Also Published As
Publication number | Publication date |
---|---|
CN111182589A (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111182589B (en) | Wireless bandwidth allocation method and wireless terminal equipment | |
US10091765B2 (en) | Method for Bluetooth data forwarding, electronic device, Bluetooth device, and Bluetooth system | |
CN107018484B (en) | Bluetooth communication method, its device, Bluetooth system and bluetooth equipment | |
US10015623B2 (en) | NFMI based robustness | |
CN105723680B (en) | Method and computer device for audio distribution | |
CN112188415B (en) | Low-power-consumption Bluetooth synchronous data streaming transmission method and device | |
CN106534956B (en) | Screen-projected video data transmission method, device and system | |
CN111343526B (en) | Wireless communication method of sound box assembly and sound box assembly for wireless communication | |
CN103426432B (en) | Rely on the audio frequency Mass adjust-ment of bandwidth | |
CN106535081A (en) | Bluetooth mode switching method and device, communication system and stereophonic audio transmission method | |
US20180041850A1 (en) | Hearing device and a method for receiving wireless audio streaming | |
KR101570660B1 (en) | Adjusting physical layer transmission properties | |
WO2016119619A1 (en) | Method and system for rate adaptation for data traffic | |
EP3163942A1 (en) | Method, system, and related device for data transmission | |
CN109819303A (en) | Data output method and related equipment | |
WO2021034894A1 (en) | Audio synchronization between wireless audio devices | |
JP7071290B2 (en) | 5G split bearer flow control management | |
CN111988770A (en) | Control method and system of wireless equipment | |
JP5816328B2 (en) | Method and apparatus for transmitting a wireless audio stream | |
EP2183863A2 (en) | Distributed spectrum allocation scheme for cognitive radio | |
CN109565773A (en) | Method of data synchronization, equipment and storage medium | |
CN112866970A (en) | Communication connection method and device, electronic equipment and wireless transmission system | |
CN107295667B (en) | Access resource adjusting method and device | |
CN113242603B (en) | Dynamic allocation method for bandwidth period | |
EP2804400B1 (en) | Hearing device and a method for receiving wireless audio streaming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Zone C, floor 1, plant 1, No.1, Keji 4th Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province 519085 Applicant after: ACTIONS TECHNOLOGY Co.,Ltd. Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province Applicant before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |