WO2019201185A1 - Bluetooth transmission control method, system, and storage medium - Google Patents

Bluetooth transmission control method, system, and storage medium Download PDF

Info

Publication number
WO2019201185A1
WO2019201185A1 PCT/CN2019/082544 CN2019082544W WO2019201185A1 WO 2019201185 A1 WO2019201185 A1 WO 2019201185A1 CN 2019082544 W CN2019082544 W CN 2019082544W WO 2019201185 A1 WO2019201185 A1 WO 2019201185A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
packet
data packet
transmission control
receiving end
Prior art date
Application number
PCT/CN2019/082544
Other languages
French (fr)
Chinese (zh)
Inventor
孙铭
Original Assignee
深圳Tcl新技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2019201185A1 publication Critical patent/WO2019201185A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention relates to the field of Bluetooth transmission communication applications, and particularly relates to a Bluetooth transmission control method, system and storage medium.
  • Bluetooth A wireless technology standard that enables short-distance data exchange between fixed devices, mobile devices, and building personal area networks (UHF radio waves in the ISM band of 2.4 to 2.485 GHz); Bluetooth can be connected Devices that overcome the challenges of data synchronization.
  • Bluetooth uses frequency hopping technology to split the transmitted data into data packets and transmit data packets through 79 designated Bluetooth channels. Each channel has a bandwidth of 1MHz. Bluetooth 4.0 uses 2MHz spacing and can accommodate 40 channels. The channel starts at 2402MHz and has a channel of 1MHz to 2480MHz. With Adaptive Frequency-Hopping (AFH), it usually jumps 1600 times per second.
  • FH Adaptive Frequency-Hopping
  • the Bluetooth technology stipulates that when each pair of devices performs Bluetooth communication, one must have a primary role and the other is a secondary role, in order to communicate. When communicating, the sender must search for and initiate pairing. After the link is successfully established, the two parties Can send and receive data.
  • a Bluetooth sender device can communicate with 7 Bluetooth receiver devices at the same time.
  • a device with Bluetooth communication function can switch between two roles, usually working in slave mode and waiting for other master devices to connect. When needed, it converts to the main mode and initiates a call to other devices.
  • a Bluetooth device initiates a call in the main mode, it needs to know the other party's Bluetooth address, pairing password and other information. After the pairing is completed, the call can be directly initiated.
  • Bluetooth In the efficiency and effect of data transmission, Bluetooth is often subject to environmental interference, such as distance and other factors, resulting in packet loss rate when transmitting large amounts of data in some relatively harsh environments (refers to the number of lost packets in the test)
  • the ratio of sending data sets is high, and the transmission effect is poor.
  • Bluetooth audio equipment has high power consumption requirements, and high packet loss rate will cause repeated retransmissions. Therefore, in a poor wireless environment, the battery power will drop drastically.
  • the present invention provides a Bluetooth transmission control method, system, and storage medium, which are intended to dynamically adjust a Bluetooth data packet by monitoring the packet loss rate of a Bluetooth data packet in real time. Size, which improves Bluetooth transmission efficiency, reduces packet loss rate, and reduces the power consumption of Bluetooth devices.
  • a Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, wherein the Bluetooth transmission control includes:
  • the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end
  • the Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet, and obtains the average transmission time of each Bluetooth data packet;
  • the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold, it determines that the packet loss rate exceeds the preset value, and then gradually reduces the Bluetooth packet size according to a preset manner until the difference is smaller than Threshold.
  • the Bluetooth transmission control method wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold value, determining that the packet loss rate exceeds a preset value, according to the preset The method gradually adjusts the Bluetooth packet size until the difference is less than the threshold.
  • the Bluetooth receiving end notifies the Bluetooth sending end of the adjusted Bluetooth data packet size, and the Bluetooth transmitting end sends a new Bluetooth data packet according to the new Bluetooth data packet size, and enters the monitoring process again. If the packet loss rate still exceeds the preset value, Then continue to adjust the Bluetooth packet size until the packet loss rate is lower than the preset value.
  • the Bluetooth transmission control method wherein before the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end, the method further includes:
  • the Bluetooth sender presets the size of the Bluetooth packet sent for the first time.
  • the Bluetooth transmission control method wherein the Bluetooth data packet includes a packet header, a check code, and valid data.
  • the Bluetooth transmission control method wherein the Bluetooth receiving end receives a Bluetooth data packet sent by a Bluetooth transmitting end, and substantially receives valid data in a Bluetooth data packet.
  • the Bluetooth transmission control method wherein the Bluetooth receiving end calculates a time taken to receive the N packet of the Bluetooth data packet by using a timer, and the average transmission time of each Bluetooth data packet is specifically included:
  • T1 is the transmission time of the N packet Bluetooth data packet
  • N is the number of Bluetooth data packets.
  • the preset mode is a step adjustment mode
  • the step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
  • the Bluetooth transmission control method wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold value, determining that the packet loss rate exceeds a preset value, according to the preset The method gradually adjusts the Bluetooth packet size until the difference is less than the threshold.
  • the Bluetooth receiving end reduces the Bluetooth data packet size by 2 bytes each time according to the stepwise adjustment mode, and then calculates the difference of the adjusted Bluetooth data packet transmission time. If the difference ⁇ t is still greater than T', the continuation continues. Reduce the Bluetooth packet size until the difference ⁇ t is less than the threshold T'.
  • the Bluetooth transmission control method wherein the preset value is 40%.
  • the Bluetooth transmission control method wherein the Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, and the smart terminal includes a smart phone, a smart TV, and a tablet.
  • a Bluetooth transmission control system wherein the Bluetooth transmission control system comprises: a Bluetooth transmitting end and a Bluetooth receiving end;
  • the Bluetooth transmitting end is configured to send a Bluetooth data packet to the Bluetooth receiving end;
  • the Bluetooth receiving end is configured to calculate a time taken to receive the N packet of the Bluetooth data packet, obtain an average transmission time of each Bluetooth data packet, and compare the average transmission time with the standard Bluetooth packet transmission time, when the difference is greater than the threshold value.
  • the Bluetooth packet size is gradually reduced according to a preset manner until the difference is less than the threshold.
  • the Bluetooth transmission control system wherein the Bluetooth receiving end notifies the Bluetooth transmitting end of the adjusted size of the Bluetooth data packet, and the Bluetooth transmitting end sends a new Bluetooth data packet according to the new Bluetooth data packet size, and then enters the monitoring again. If the packet loss rate still exceeds the preset value, continue to adjust the Bluetooth packet size until the packet loss rate is lower than the preset value.
  • the Bluetooth transmission control system wherein the Bluetooth transmitting end is further configured to preset a size of a Bluetooth data packet sent for the first time.
  • the preset mode is a step-by-step adjustment mode
  • the step-by-step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
  • a storage medium wherein the storage medium stores a Bluetooth transmission control program, and the Bluetooth transmission control program is executed by a processor to implement the steps of the Bluetooth transmission control method as described above.
  • the invention discloses a Bluetooth transmission control method, system and storage medium.
  • the method comprises: a Bluetooth receiving end receiving a Bluetooth data packet sent by a Bluetooth transmitting end; and a Bluetooth receiving end calculating a time taken for receiving a N packet blue data packet, and obtaining an average The transmission time of each Bluetooth data packet; the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold value, it determines that the packet loss rate exceeds the preset value, and then gradually adjusts according to a preset manner. Small Bluetooth packet size until the difference is less than the threshold.
  • the invention dynamically adjusts the size of the Bluetooth data packet by monitoring the packet loss rate of the Bluetooth data packet in real time, thereby improving the Bluetooth transmission efficiency, reducing the packet loss rate, and reducing the power consumption of the Bluetooth device.
  • FIG. 1 is a flow chart of a preferred embodiment of a Bluetooth transmission control method of the present invention.
  • FIG. 2 is a schematic diagram showing the relationship between effective data length and transmission efficiency in a preferred embodiment of the Bluetooth transmission control method of the present invention.
  • 3 is a schematic diagram showing the relationship between the packet loss rate and the effective data length in the preferred embodiment of the Bluetooth transmission control method of the present invention.
  • FIG. 4 is a functional block diagram of a preferred embodiment of the Bluetooth transmission control system of the present invention.
  • the Bluetooth transmission control method includes:
  • step S100 the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end.
  • the method further includes: the Bluetooth sender pre-sets the size of the firstly sent Bluetooth data packet; in the same environment, the length of the Bluetooth data packet has a direct impact on the packet loss rate, and the data packet The longer the length, the higher the probability of packet loss, and vice versa.
  • the Bluetooth data packet is a set of regular data according to the Bluetooth protocol specification.
  • the Bluetooth data packet includes a packet header, a check code and valid data; the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end, and essentially receives the Bluetooth data packet.
  • the composition of a Bluetooth packet is as follows:
  • Bluetooth data packets There are certain restrictions on the size of Bluetooth data packets in the Bluetooth protocol.
  • the valid data of each packet of Bluetooth 4.0 is 0 to 20 bytes, and different Bluetooth versions have adjusted this size, such as Bluetooth 4.2 valid data per packet. Increased to 0 to more than 200 bytes; the more valid data, the larger the data packet, the higher the efficiency of data transmission, the corresponding relationship is shown in Figure 2.
  • the length of the effective data packet and the packet loss rate have an approximate relationship, the effective length is lengthened, and the packet loss rate becomes high, and the corresponding relationship is as shown in FIG. 3 .
  • step S200 the Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet, and obtains the average transmission time of each Bluetooth data packet.
  • step S300 the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time.
  • the difference is greater than the threshold, if the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner. The difference is less than the threshold.
  • the preset mode is a step-by-step adjustment mode
  • the step-by-step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
  • t0 is a specific value, which needs to be obtained after experimental measurement.
  • the packet loss rate exceeds 40%, which is relatively high, and needs to be adjusted. Therefore, the preset value in the present invention is preferably 40%; and the Bluetooth packet transmission when the T' corresponding packet loss rate is about 40%. time.
  • the method further includes: the Bluetooth receiving end notifying the Bluetooth sending end of the adjusted size of the Bluetooth data packet, and the Bluetooth transmitting end sends the new Bluetooth data packet according to the new Bluetooth data packet size, and enters the monitoring process again. If the packet loss rate still exceeds the preset value, continue to approach the Bluetooth packet size until the packet loss rate is lower than the preset value (ideal state).
  • the technical solution of the present invention is that the current Bluetooth data packet size is sent in a fixed size, and the size of the Bluetooth data packet cannot be dynamically adjusted, so that the packet loss rate is relatively high, and the technical solution of the present invention is based on Bluetooth. After comparing the transmission time of the data packet, dynamically adjust the size of the Bluetooth data packet (mainly from the current fixed-length Bluetooth transmission to the dynamic adjustment process to achieve the performance improvement effect), in order to reduce the packet loss rate and make it Meet the requirements of data transfer, so as to achieve the desired transmission effect.
  • the Bluetooth transmission control method of the present invention is applied to Bluetooth data transmission between intelligent terminals, and the smart terminal includes a smart phone, a smart TV, a tablet and the like.
  • the present invention can monitor the change of the packet loss rate, dynamically adjust the effective data length of the transmission according to the current situation, and obtain the desired packet loss rate, thereby obtaining an ideal transmission effect, and taking into account the effective data length in the Bluetooth data packet.
  • the size of the transmission to achieve the minimum packet loss rate is the most efficient transmission, but also achieves the purpose of power saving.
  • the invention does not need to increase the hardware cost, and the length of the Bluetooth data packet is changed by an algorithm, thereby adapting the surrounding environment to achieve the best effect of Bluetooth transmission and reducing power consumption.
  • the embodiment of the present invention further provides a Bluetooth transmission control system.
  • the Bluetooth transmission control system includes: a Bluetooth transmitting end 100 and a Bluetooth receiving end 200; and the Bluetooth transmitting end 100 is configured to send Bluetooth data. Packets are sent to the Bluetooth receiving end 200; the Bluetooth receiving end 200 is used to calculate the time taken to receive the N packets of Bluetooth data packets, and obtain the average transmission time of each Bluetooth data packet; and the average transmission time and the standard Bluetooth packet transmission time. For comparison, when the difference is greater than the threshold, if the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner until the difference is less than the threshold. Specifically as described above.
  • the present invention also provides a storage medium, wherein the storage medium stores a Bluetooth transmission control program, the step of implementing the Bluetooth transmission control method when the Bluetooth transmission control program is executed by the processor; specifically as described above.
  • the present invention provides a Bluetooth transmission control method, system, and storage medium, the method comprising: a Bluetooth receiving end receiving a Bluetooth data packet sent by a Bluetooth transmitting end; and a Bluetooth receiving end calculating a Bluetooth data packet received by the Bluetooth receiving end Time, get the average transmission time of each Bluetooth data packet; the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold value, it determines that the packet loss rate exceeds the preset value, then according to the pre- Set the mode to gradually reduce the Bluetooth packet size until the difference is less than the threshold.
  • the invention dynamically adjusts the size of the Bluetooth data packet by monitoring the packet loss rate of the Bluetooth data packet in real time, thereby improving the Bluetooth transmission efficiency, reducing the packet loss rate, and reducing the power consumption of the Bluetooth device.
  • a computer program to instruct related hardware (such as a processor, a controller, etc.), and the program can be stored in one.
  • the program when executed, may include the processes of the various method embodiments as described above.
  • the storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

Disclosed are a Bluetooth transmission control method, a system, and a storage medium. The method comprises: a Bluetooth receiving end receives Bluetooth data packets transmitted by a Bluetooth transmitting end; the Bluetooth receiving end calculates time for receiving N Bluetooth data packets to obtain average transmission time of each Bluetooth data packet; the Bluetooth receiving end compares the average transmission time and standard Bluetooth packet transmission time, and if the difference value is greater than a threshold, it is determined that the packet loss rate exceeds a preset value, and the size of the Bluetooth data packets is gradually adjusted according to a preset mode until the difference value is less than the threshold. According to the present invention, by monitoring the packet loss rate of the Bluetooth data packets in real time, and dynamically adjusting the size of the Bluetooth data packets, the Bluetooth transmission efficiency is improved, the packet loss rate is reduced, and the power consumption of a Bluetooth device is reduced.

Description

一种蓝牙传输控制方法、系统及存储介质Bluetooth transmission control method, system and storage medium 技术领域Technical field
涉及蓝牙传输通信应用领域,尤其涉及一种蓝牙传输控制方法、系统及存储介质。The invention relates to the field of Bluetooth transmission communication applications, and particularly relates to a Bluetooth transmission control method, system and storage medium.
背景技术Background technique
蓝牙(Bluetooth):是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换(使用2.4—2.485GHz的ISM波段的UHF无线电波);蓝牙可连接多个设备,克服了数据同步的难题。Bluetooth: A wireless technology standard that enables short-distance data exchange between fixed devices, mobile devices, and building personal area networks (UHF radio waves in the ISM band of 2.4 to 2.485 GHz); Bluetooth can be connected Devices that overcome the challenges of data synchronization.
蓝牙使用跳频技术,将传输的数据分割成数据包,通过79个指定的蓝牙频道分别传输数据包,每个频道的频宽为1MHz,蓝牙4.0使用2MHz间距,可容纳40个频道,第一个频道始于2402MHz,每1MHz一个频道,至2480MHz,有了适配跳频(Adaptive Frequency-Hopping,简称AFH)功能,通常每秒跳1600次。Bluetooth uses frequency hopping technology to split the transmitted data into data packets and transmit data packets through 79 designated Bluetooth channels. Each channel has a bandwidth of 1MHz. Bluetooth 4.0 uses 2MHz spacing and can accommodate 40 channels. The channel starts at 2402MHz and has a channel of 1MHz to 2480MHz. With Adaptive Frequency-Hopping (AFH), it usually jumps 1600 times per second.
蓝牙技术规定每一对设备之间进行蓝牙通讯时,必须一个为主角色,另一为从角色,才能进行通信,通信时,必须由发送端进行查找,发起配对,建链成功后,双方即可收发数据。理论上,一个蓝牙发送端设备,可同时与7个蓝牙接收端设备进行通讯,一个具备蓝牙通讯功能的设备,可以在两个角色间切换,平时工作在从模式,等待其它主设备来连接,需要时,转换为主模式,向其它设备发起呼叫;一个蓝牙设备以主模式发起呼叫时,需要知道对方的蓝牙地址,配对密码等信息,配对完成后,可直接发起呼叫。The Bluetooth technology stipulates that when each pair of devices performs Bluetooth communication, one must have a primary role and the other is a secondary role, in order to communicate. When communicating, the sender must search for and initiate pairing. After the link is successfully established, the two parties Can send and receive data. In theory, a Bluetooth sender device can communicate with 7 Bluetooth receiver devices at the same time. A device with Bluetooth communication function can switch between two roles, usually working in slave mode and waiting for other master devices to connect. When needed, it converts to the main mode and initiates a call to other devices. When a Bluetooth device initiates a call in the main mode, it needs to know the other party's Bluetooth address, pairing password and other information. After the pairing is completed, the call can be directly initiated.
蓝牙在数据传输的效率和效果方面常常受到环境干扰,距离远近等因素的影响,造成在一些环境相对恶劣的情况下传输大量数据时,丢包率(是指测试中所丢失数据包数量占所发送数据组的比率)较高,传输效果较差;现在蓝牙音频设备对功耗要求很高,丢包率高会造成不断重传,所以在较差的无线环境下,电池电量会急剧下降。In the efficiency and effect of data transmission, Bluetooth is often subject to environmental interference, such as distance and other factors, resulting in packet loss rate when transmitting large amounts of data in some relatively harsh environments (refers to the number of lost packets in the test) The ratio of sending data sets is high, and the transmission effect is poor. Now Bluetooth audio equipment has high power consumption requirements, and high packet loss rate will cause repeated retransmissions. Therefore, in a poor wireless environment, the battery power will drop drastically.
因此,现有技术还有待于改进和发展。Therefore, the prior art has yet to be improved and developed.
发明内容Summary of the invention
本发明要解决的技术问题在于,针对现有技术缺陷,本发明提供一种蓝牙传输控制方法、系统及存储介质,旨在通过实时监测蓝牙数据包丢包率的情况,动态调整蓝牙数据包的大小,从而提高蓝牙传输效率,降低丢包率,同时减少蓝牙设备的耗电量。The technical problem to be solved by the present invention is that, in view of the defects of the prior art, the present invention provides a Bluetooth transmission control method, system, and storage medium, which are intended to dynamically adjust a Bluetooth data packet by monitoring the packet loss rate of a Bluetooth data packet in real time. Size, which improves Bluetooth transmission efficiency, reduces packet loss rate, and reduces the power consumption of Bluetooth devices.
本发明解决技术问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the technical problem is as follows:
一种蓝牙传输控制方法,应用于智能终端间的蓝牙数据传输,其中,所述蓝牙传输控制包括:A Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, wherein the Bluetooth transmission control includes:
蓝牙接收端接收蓝牙发送端发送的蓝牙数据包;The Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end;
蓝牙接收端计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;The Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet, and obtains the average transmission time of each Bluetooth data packet;
蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。The Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold, it determines that the packet loss rate exceeds the preset value, and then gradually reduces the Bluetooth packet size according to a preset manner until the difference is smaller than Threshold.
所述的蓝牙传输控制方法,其中,所述蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值之后还包括:The Bluetooth transmission control method, wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold value, determining that the packet loss rate exceeds a preset value, according to the preset The method gradually adjusts the Bluetooth packet size until the difference is less than the threshold.
蓝牙接收端将调整后得到的蓝牙数据包的大小通知蓝牙发送端,蓝牙发送端按照新的蓝牙数据包大小发送新的蓝牙数据包,再次进入监测过程,如果丢包率仍超过预设值,则继续调整蓝牙数据包大小,直到丢包率低于预设值为止。The Bluetooth receiving end notifies the Bluetooth sending end of the adjusted Bluetooth data packet size, and the Bluetooth transmitting end sends a new Bluetooth data packet according to the new Bluetooth data packet size, and enters the monitoring process again. If the packet loss rate still exceeds the preset value, Then continue to adjust the Bluetooth packet size until the packet loss rate is lower than the preset value.
所述的蓝牙传输控制方法,其中,所述蓝牙接收端接收蓝牙发送端发送的蓝牙数据包之前还包括:The Bluetooth transmission control method, wherein before the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end, the method further includes:
所述蓝牙发送端预先设定首次发送的蓝牙数据包的大小。The Bluetooth sender presets the size of the Bluetooth packet sent for the first time.
所述的蓝牙传输控制方法,其中,所述蓝牙数据包包括包头、校验码和有效数据。The Bluetooth transmission control method, wherein the Bluetooth data packet includes a packet header, a check code, and valid data.
所述的蓝牙传输控制方法,其中,所述蓝牙接收端接收蓝牙发送端发送的蓝牙数据包,实质上为接收蓝牙数据包中的有效数据。The Bluetooth transmission control method, wherein the Bluetooth receiving end receives a Bluetooth data packet sent by a Bluetooth transmitting end, and substantially receives valid data in a Bluetooth data packet.
所述的蓝牙传输控制方法,其中,所述蓝牙接收端通过计时器计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间具体包括:The Bluetooth transmission control method, wherein the Bluetooth receiving end calculates a time taken to receive the N packet of the Bluetooth data packet by using a timer, and the average transmission time of each Bluetooth data packet is specifically included:
所述蓝牙接收端通过计时器计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间为t1=T1/N;The Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet by using a timer, and obtains an average transmission time of each Bluetooth data packet as t1=T1/N;
其中t1为每个蓝牙数据包的传送时间,T1为N包蓝牙数据包的传送时间,N为蓝牙数据包的个数。Where t1 is the transmission time of each Bluetooth data packet, T1 is the transmission time of the N packet Bluetooth data packet, and N is the number of Bluetooth data packets.
所述的蓝牙传输控制方法,其中,所述预设方式为步进式调整方式,所述步进式调整方式为每次将蓝牙数据包大小降低2字节。In the Bluetooth transmission control method, the preset mode is a step adjustment mode, and the step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
所述的蓝牙传输控制方法,其中,所述蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值具体包括:The Bluetooth transmission control method, wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold value, determining that the packet loss rate exceeds a preset value, according to the preset The method gradually adjusts the Bluetooth packet size until the difference is less than the threshold.
所述蓝牙接收端将t1与标准蓝牙包传送时间t0进行比较,判断差值Δt=|t1-t0|是否大于门限值T’;The Bluetooth receiving end compares t1 with a standard Bluetooth packet transmission time t0, and determines whether the difference Δt=|t1-t0| is greater than a threshold value T';
当是时,则判定蓝牙数据包传输的丢包率超过预设值;When yes, it is determined that the packet loss rate of the Bluetooth packet transmission exceeds a preset value;
所述蓝牙接收端按照步进式调整方式每一次将蓝牙数据包大小降低2字节,再计算调整后的蓝牙数据包传输时间的差值,如果此时差值Δt仍大于T’,则继续降低蓝牙数据包大小,直到差值Δt小于门限值T’为止。The Bluetooth receiving end reduces the Bluetooth data packet size by 2 bytes each time according to the stepwise adjustment mode, and then calculates the difference of the adjusted Bluetooth data packet transmission time. If the difference Δt is still greater than T', the continuation continues. Reduce the Bluetooth packet size until the difference Δt is less than the threshold T'.
所述的蓝牙传输控制方法,其中,所述预设值为40%。The Bluetooth transmission control method, wherein the preset value is 40%.
所述的蓝牙传输控制方法,其中,所述蓝牙传输控制方法应用于智能终端间的蓝牙数据传输,所述智能终端包括智能手机、智能电视以及平板。The Bluetooth transmission control method, wherein the Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, and the smart terminal includes a smart phone, a smart TV, and a tablet.
一种蓝牙传输控制系统,其中,所述蓝牙传输控制系统包括:蓝牙发送端和蓝牙接收端;A Bluetooth transmission control system, wherein the Bluetooth transmission control system comprises: a Bluetooth transmitting end and a Bluetooth receiving end;
所述蓝牙发送端用于发送的蓝牙数据包到所述蓝牙接收端;The Bluetooth transmitting end is configured to send a Bluetooth data packet to the Bluetooth receiving end;
所述蓝牙接收端用于计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;并将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。The Bluetooth receiving end is configured to calculate a time taken to receive the N packet of the Bluetooth data packet, obtain an average transmission time of each Bluetooth data packet, and compare the average transmission time with the standard Bluetooth packet transmission time, when the difference is greater than the threshold value. When it is determined that the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner until the difference is less than the threshold.
所述的蓝牙传输控制系统,其中,所述蓝牙接收端将调整后得到的蓝牙数据包的大小通知蓝牙发送端,蓝牙发送端按照新的蓝牙数据包大小发送新的蓝牙数据包,再次进入监测过程,如果丢包率仍超过预设值,则继续调整蓝牙数据包大小,直到丢包率低于预设值为止。The Bluetooth transmission control system, wherein the Bluetooth receiving end notifies the Bluetooth transmitting end of the adjusted size of the Bluetooth data packet, and the Bluetooth transmitting end sends a new Bluetooth data packet according to the new Bluetooth data packet size, and then enters the monitoring again. If the packet loss rate still exceeds the preset value, continue to adjust the Bluetooth packet size until the packet loss rate is lower than the preset value.
所述的蓝牙传输控制系统,其中,所述蓝牙发送端还用于预先设定首次发送的蓝牙数据包的大小。The Bluetooth transmission control system, wherein the Bluetooth transmitting end is further configured to preset a size of a Bluetooth data packet sent for the first time.
所述的蓝牙传输控制系统,其中,所述预设方式为步进式调整方式,所述步进式调整方式为每次将蓝牙数据包大小降低2字节。In the Bluetooth transmission control system, the preset mode is a step-by-step adjustment mode, and the step-by-step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
一种存储介质,其中,所述存储介质存储有蓝牙传输控制程序,所述蓝牙传输控制程序被处理器执行时实现如上所述蓝牙传输控制方法的步骤。A storage medium, wherein the storage medium stores a Bluetooth transmission control program, and the Bluetooth transmission control program is executed by a processor to implement the steps of the Bluetooth transmission control method as described above.
本发明公开了一种蓝牙传输控制方法、系统及存储介质,所述方法包括:蓝牙接收端接收蓝牙发送端发送的蓝牙数据包;蓝牙接收端计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。本发明通过实时监测蓝牙数据包丢包率的情况,动态调整蓝牙数据包的大小,从而提高蓝牙传输效率,降低丢包率,同时减少蓝牙设备的耗电量。The invention discloses a Bluetooth transmission control method, system and storage medium. The method comprises: a Bluetooth receiving end receiving a Bluetooth data packet sent by a Bluetooth transmitting end; and a Bluetooth receiving end calculating a time taken for receiving a N packet blue data packet, and obtaining an average The transmission time of each Bluetooth data packet; the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold value, it determines that the packet loss rate exceeds the preset value, and then gradually adjusts according to a preset manner. Small Bluetooth packet size until the difference is less than the threshold. The invention dynamically adjusts the size of the Bluetooth data packet by monitoring the packet loss rate of the Bluetooth data packet in real time, thereby improving the Bluetooth transmission efficiency, reducing the packet loss rate, and reducing the power consumption of the Bluetooth device.
附图说明DRAWINGS
图1是本发明蓝牙传输控制方法的较佳实施例的流程图。1 is a flow chart of a preferred embodiment of a Bluetooth transmission control method of the present invention.
图2是本发明蓝牙传输控制方法的较佳实施例中有效数据长度和传输有效率关系的示意图。2 is a schematic diagram showing the relationship between effective data length and transmission efficiency in a preferred embodiment of the Bluetooth transmission control method of the present invention.
图3是本发明蓝牙传输控制方法的较佳实施例中丢包率和有效数据长度的关系的示意图。3 is a schematic diagram showing the relationship between the packet loss rate and the effective data length in the preferred embodiment of the Bluetooth transmission control method of the present invention.
图4是本发明蓝牙传输控制系统的较佳实施例的功能原理框图。4 is a functional block diagram of a preferred embodiment of the Bluetooth transmission control system of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
实施例一Embodiment 1
本发明较佳实施例所述的一种蓝牙传输控制方法,如图1所示,所述蓝牙传输控制方法包括:A Bluetooth transmission control method according to a preferred embodiment of the present invention, as shown in FIG. 1, the Bluetooth transmission control method includes:
步骤S100,蓝牙接收端接收蓝牙发送端发送的蓝牙数据包。In step S100, the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end.
具体地,所述步骤S100之前还包括:所述蓝牙发送端预先设定首次发送的蓝牙数据包的大小;在相同的环境下,蓝牙数据包的长短对丢包率有直接的影响,数据包长度越长,丢包率可能性会越高,反之,则越低。蓝牙数据包是按照蓝牙协议规范组成的一组有规则的数据,蓝牙数据包包括包头、校验码和有效数据;蓝牙接收端接收蓝牙发送端发送的蓝牙数据包,实质上是接收蓝牙数据包中的有效数据。例如蓝牙数据包的组成如下:Specifically, before the step S100, the method further includes: the Bluetooth sender pre-sets the size of the firstly sent Bluetooth data packet; in the same environment, the length of the Bluetooth data packet has a direct impact on the packet loss rate, and the data packet The longer the length, the higher the probability of packet loss, and vice versa. The Bluetooth data packet is a set of regular data according to the Bluetooth protocol specification. The Bluetooth data packet includes a packet header, a check code and valid data; the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end, and essentially receives the Bluetooth data packet. Valid data in . For example, the composition of a Bluetooth packet is as follows:
Figure PCTCN2019082544-appb-000001
Figure PCTCN2019082544-appb-000001
蓝牙协议中对蓝牙数据包的大小有一定的要求限制,蓝牙4.0每包的有效数据是0到20个字节,而不同的蓝牙版本对此大小又有所调整,如蓝牙4.2每包有效数据提升到0到200多个字节;有效数据越多,数据包越大,数据传输的有效率越高,对应关系如图2所示。There are certain restrictions on the size of Bluetooth data packets in the Bluetooth protocol. The valid data of each packet of Bluetooth 4.0 is 0 to 20 bytes, and different Bluetooth versions have adjusted this size, such as Bluetooth 4.2 valid data per packet. Increased to 0 to more than 200 bytes; the more valid data, the larger the data packet, the higher the efficiency of data transmission, the corresponding relationship is shown in Figure 2.
同样的,在相同环境下,有效数据包的长度和丢包率有近似的关系,有效长度加长,丢包率变高,对应关系如图3所示。Similarly, in the same environment, the length of the effective data packet and the packet loss rate have an approximate relationship, the effective length is lengthened, and the packet loss rate becomes high, and the corresponding relationship is as shown in FIG. 3 .
步骤S200,蓝牙接收端计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间。In step S200, the Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet, and obtains the average transmission time of each Bluetooth data packet.
具体地,所述蓝牙接收端通过计时器计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间为t1=T1/N;其中t1为每个蓝牙数据包的传送时间,T1为N包蓝牙数据包的传送时间,N为蓝牙数据包的个数。Specifically, the Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet by using a timer, and obtains an average transmission time of each Bluetooth data packet as t1=T1/N; wherein t1 is the transmission time of each Bluetooth data packet. , T1 is the transmission time of the N packet Bluetooth data packet, and N is the number of Bluetooth data packets.
步骤S300,蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。In step S300, the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold, if the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner. The difference is less than the threshold.
具体地,所述预设方式为步进式调整方式,所述步进式调整方式为每次将蓝牙数据包大小降低2字节。Specifically, the preset mode is a step-by-step adjustment mode, and the step-by-step adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
所述蓝牙接收端将t1与标准蓝牙包传送时间t0进行比较,判断差值Δt=|t1-t0|是否大于门限值T’;当是时,则判定蓝牙数据包传输的丢包率超过预设值;所述蓝牙接收端按照步进式调整方式每一次将蓝牙数据包大小降低2字节(一次 减少2个字节),再计算调整后的蓝牙数据包传输时间的差值,如果此时差值Δt仍大于T’,则继续降低蓝牙数据包大小,直到差值Δt小于门限值T’为止。The Bluetooth receiving end compares t1 with the standard Bluetooth packet transmission time t0, and determines whether the difference Δt=|t1-t0| is greater than the threshold value T'; when yes, determines that the packet loss rate of the Bluetooth packet transmission exceeds a preset value; the Bluetooth receiving end reduces the Bluetooth packet size by 2 bytes (2 bytes at a time) according to the stepwise adjustment mode, and then calculates the difference of the adjusted Bluetooth packet transmission time, if At this time, the difference Δt is still greater than T', and then the Bluetooth packet size is continued to decrease until the difference Δt is less than the threshold value T'.
其中,t0是个具体数值,需要通过实验测量后得到。Among them, t0 is a specific value, which needs to be obtained after experimental measurement.
一般来说,丢包率超过40%就算比较高,需要进行调整,因此,本发明中所述预设值优选为为40%;T’对应丢包率大概在40%左右时的蓝牙包传输时间。Generally, the packet loss rate exceeds 40%, which is relatively high, and needs to be adjusted. Therefore, the preset value in the present invention is preferably 40%; and the Bluetooth packet transmission when the T' corresponding packet loss rate is about 40%. time.
进一步地,所述步骤S300之后还包括:蓝牙接收端将调整后得到的蓝牙数据包的大小通知蓝牙发送端,蓝牙发送端按照新的蓝牙数据包大小发送新的蓝牙数据包,再次进入监测过程,如果丢包率仍超过预设值,则继续逼近的方式调整蓝牙数据包大小,直到丢包率低于预设值(理想状态)为止。Further, after the step S300, the method further includes: the Bluetooth receiving end notifying the Bluetooth sending end of the adjusted size of the Bluetooth data packet, and the Bluetooth transmitting end sends the new Bluetooth data packet according to the new Bluetooth data packet size, and enters the monitoring process again. If the packet loss rate still exceeds the preset value, continue to approach the Bluetooth packet size until the packet loss rate is lower than the preset value (ideal state).
也就是说,本发明的技术方案是针对目前蓝牙数据包大小是以固定大小来发送的,无法动态调整蓝牙数据包的大小,所以导致丢包率比较高,而本发明的技术方案是根据蓝牙数据包的传送时间比较后,动态地来调整蓝牙数据包的大小(主要是从现在固定长度的蓝牙传输到动态调整的过程,从而达到性能改善的效果),目的是降低丢包率,使之满足数据传送的要求,从而得到理想的传输效果。That is to say, the technical solution of the present invention is that the current Bluetooth data packet size is sent in a fixed size, and the size of the Bluetooth data packet cannot be dynamically adjusted, so that the packet loss rate is relatively high, and the technical solution of the present invention is based on Bluetooth. After comparing the transmission time of the data packet, dynamically adjust the size of the Bluetooth data packet (mainly from the current fixed-length Bluetooth transmission to the dynamic adjustment process to achieve the performance improvement effect), in order to reduce the packet loss rate and make it Meet the requirements of data transfer, so as to achieve the desired transmission effect.
本发明的蓝牙传输控制方法应用于智能终端间的蓝牙数据传输,智能终端包括智能手机、智能电视,平板等设备。The Bluetooth transmission control method of the present invention is applied to Bluetooth data transmission between intelligent terminals, and the smart terminal includes a smart phone, a smart TV, a tablet and the like.
综上所述,本发明可以监测丢包率的变化,根据当前的情况动态调整传输的有效数据长度,得到期望的丢包率,从而得到理想的传输效果,同时兼顾蓝牙数据包中有效数据长度的大小,做到满足最小丢包率的情况下传输有效率最高,也达到了省电的目的。In summary, the present invention can monitor the change of the packet loss rate, dynamically adjust the effective data length of the transmission according to the current situation, and obtain the desired packet loss rate, thereby obtaining an ideal transmission effect, and taking into account the effective data length in the Bluetooth data packet. The size of the transmission to achieve the minimum packet loss rate is the most efficient transmission, but also achieves the purpose of power saving.
同时,本发明不需要增加硬件成本,通过算法改变蓝牙数据包的长度,从而自适应周围的环境,达到蓝牙传输最佳效果,功耗降低的目的。At the same time, the invention does not need to increase the hardware cost, and the length of the Bluetooth data packet is changed by an algorithm, thereby adapting the surrounding environment to achieve the best effect of Bluetooth transmission and reducing power consumption.
实施例二Embodiment 2
本发明实施例还提供了一种蓝牙传输控制系统,如图4所示,所述蓝牙传输控制系统包括:蓝牙发送端100和蓝牙接收端200;所述蓝牙发送端100用于发送的蓝牙数据包到所述蓝牙接收端200;所述蓝牙接收端200用于计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;并将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。具体如上所述。The embodiment of the present invention further provides a Bluetooth transmission control system. As shown in FIG. 4, the Bluetooth transmission control system includes: a Bluetooth transmitting end 100 and a Bluetooth receiving end 200; and the Bluetooth transmitting end 100 is configured to send Bluetooth data. Packets are sent to the Bluetooth receiving end 200; the Bluetooth receiving end 200 is used to calculate the time taken to receive the N packets of Bluetooth data packets, and obtain the average transmission time of each Bluetooth data packet; and the average transmission time and the standard Bluetooth packet transmission time. For comparison, when the difference is greater than the threshold, if the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner until the difference is less than the threshold. Specifically as described above.
实施例三Embodiment 3
本发明还提供一种存储介质,其中,所述存储介质存储有蓝牙传输控制程序,所述蓝牙传输控制程序被处理器执行时实现所述蓝牙传输控制方法的步骤;具体如上所述。The present invention also provides a storage medium, wherein the storage medium stores a Bluetooth transmission control program, the step of implementing the Bluetooth transmission control method when the Bluetooth transmission control program is executed by the processor; specifically as described above.
综上所述,本发明提供一种蓝牙传输控制方法、系统及存储介质,所述方法包括:蓝牙接收端接收蓝牙发送端发送的蓝牙数据包;蓝牙接收端计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。本发明通过实时监测蓝牙数据包丢包率的情况,动态调整蓝牙数据包的大小,从而提高蓝牙传输效率,降低丢包率,同时减少蓝牙设备的耗电量。In summary, the present invention provides a Bluetooth transmission control method, system, and storage medium, the method comprising: a Bluetooth receiving end receiving a Bluetooth data packet sent by a Bluetooth transmitting end; and a Bluetooth receiving end calculating a Bluetooth data packet received by the Bluetooth receiving end Time, get the average transmission time of each Bluetooth data packet; the Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold value, it determines that the packet loss rate exceeds the preset value, then according to the pre- Set the mode to gradually reduce the Bluetooth packet size until the difference is less than the threshold. The invention dynamically adjusts the size of the Bluetooth data packet by monitoring the packet loss rate of the Bluetooth data packet in real time, thereby improving the Bluetooth transmission efficiency, reducing the packet loss rate, and reducing the power consumption of the Bluetooth device.
当然,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,所述程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。Certainly, those skilled in the art can understand that all or part of the processes in the foregoing embodiments can be implemented by a computer program to instruct related hardware (such as a processor, a controller, etc.), and the program can be stored in one. In a computer readable storage medium, the program, when executed, may include the processes of the various method embodiments as described above. The storage medium described therein may be a memory, a magnetic disk, an optical disk, or the like.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It is to be understood that the application of the present invention is not limited to the above-described examples, and those skilled in the art can make modifications and changes in accordance with the above description, all of which are within the scope of the appended claims.

Claims (15)

  1. 一种蓝牙传输控制方法,应用于智能终端间的蓝牙数据传输,其特征在于,所述蓝牙传输控制方法包括:A Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, wherein the Bluetooth transmission control method comprises:
    蓝牙接收端接收蓝牙发送端发送的蓝牙数据包;The Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end;
    蓝牙接收端计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;The Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet, and obtains the average transmission time of each Bluetooth data packet;
    蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。The Bluetooth receiving end compares the average transmission time with the standard Bluetooth packet transmission time. When the difference is greater than the threshold, it determines that the packet loss rate exceeds the preset value, and then gradually reduces the Bluetooth packet size according to a preset manner until the difference is smaller than Threshold.
  2. 根据权利要求1所述的蓝牙传输控制方法,其特征在于,所述蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值之后还包括:The Bluetooth transmission control method according to claim 1, wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold, determines that the packet loss rate exceeds the preset. Value, then gradually reduce the Bluetooth packet size according to the preset method until the difference is less than the threshold value, including:
    蓝牙接收端将调整后得到的蓝牙数据包的大小通知蓝牙发送端,蓝牙发送端按照新的蓝牙数据包大小发送新的蓝牙数据包,再次进入监测过程,如果丢包率仍超过预设值,则继续调整蓝牙数据包大小,直到丢包率低于预设值为止。The Bluetooth receiving end notifies the Bluetooth sending end of the adjusted Bluetooth data packet size, and the Bluetooth transmitting end sends a new Bluetooth data packet according to the new Bluetooth data packet size, and enters the monitoring process again. If the packet loss rate still exceeds the preset value, Then continue to adjust the Bluetooth packet size until the packet loss rate is lower than the preset value.
  3. 根据权利要求1所述的蓝牙传输控制方法,其特征在于,所述蓝牙接收端接收蓝牙发送端发送的蓝牙数据包之前还包括:The Bluetooth transmission control method according to claim 1, wherein the Bluetooth receiving end further comprises: before receiving the Bluetooth data packet sent by the Bluetooth transmitting end:
    所述蓝牙发送端预先设定首次发送的蓝牙数据包的大小。The Bluetooth sender presets the size of the Bluetooth packet sent for the first time.
  4. 根据权利要求1所述的蓝牙传输控制方法,其特征在于,所述蓝牙数据包包括包头、校验码和有效数据。The Bluetooth transmission control method according to claim 1, wherein the Bluetooth data packet includes a packet header, a check code, and valid data.
  5. 根据权利要求4所述的蓝牙传输控制方法,其特征在于,所述蓝牙接收端接收蓝牙发送端发送的蓝牙数据包,实质上为接收蓝牙数据包中的有效数据。The Bluetooth transmission control method according to claim 4, wherein the Bluetooth receiving end receives the Bluetooth data packet sent by the Bluetooth transmitting end, and substantially receives the valid data in the Bluetooth data packet.
  6. 根据权利要求1所述的蓝牙传输控制方法,其特征在于,所述蓝牙接收端通过计时器计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间具体包括:The Bluetooth transmission control method according to claim 1, wherein the Bluetooth receiving end calculates the time taken to receive the N packets of the Bluetooth data packet by using a timer, and the average transmission time of each Bluetooth data packet is specifically included:
    所述蓝牙接收端通过计时器计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间为t1=T1/N;The Bluetooth receiving end calculates the time taken to receive the N packet of the Bluetooth data packet by using a timer, and obtains an average transmission time of each Bluetooth data packet as t1=T1/N;
    其中t1为每个蓝牙数据包的传送时间,T1为N包蓝牙数据包的传送时间,N为蓝牙数据包的个数。Where t1 is the transmission time of each Bluetooth data packet, T1 is the transmission time of the N packet Bluetooth data packet, and N is the number of Bluetooth data packets.
  7. 根据权利要求6所述的蓝牙传输控制方法,其特征在于,所述预设方式为步进式调整方式,所述步进式调整方式为每次将蓝牙数据包大小降低2字节。The Bluetooth transmission control method according to claim 6, wherein the preset mode is a stepwise adjustment mode, and the stepwise adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
  8. 根据权利要求7所述的蓝牙传输控制方法,其特征在于,所述蓝牙接收端将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值具体包括:The Bluetooth transmission control method according to claim 7, wherein the Bluetooth receiving end compares the average transmission time with a standard Bluetooth packet transmission time, and when the difference is greater than the threshold, determines that the packet loss rate exceeds the preset. Value, then gradually reduce the Bluetooth packet size according to the preset method until the difference is less than the threshold value, including:
    所述蓝牙接收端将t1与标准蓝牙包传送时间t0进行比较,判断差值Δt=|t1-t0|是否大于门限值T’;The Bluetooth receiving end compares t1 with a standard Bluetooth packet transmission time t0, and determines whether the difference Δt=|t1-t0| is greater than a threshold value T';
    当是时,则判定蓝牙数据包传输的丢包率超过预设值;When yes, it is determined that the packet loss rate of the Bluetooth packet transmission exceeds a preset value;
    所述蓝牙接收端按照步进式调整方式每一次将蓝牙数据包大小降低2字节,再计算调整后的蓝牙数据包传输时间的差值,如果此时差值Δt仍大于T’,则继续降低蓝牙数据包大小,直到差值Δt小于门限值T’为止。The Bluetooth receiving end reduces the Bluetooth data packet size by 2 bytes each time according to the stepwise adjustment mode, and then calculates the difference of the adjusted Bluetooth data packet transmission time. If the difference Δt is still greater than T', the continuation continues. Reduce the Bluetooth packet size until the difference Δt is less than the threshold T'.
  9. 根据权利要求8所述的蓝牙传输控制方法,其特征在于,所述预设值为40%。The Bluetooth transmission control method according to claim 8, wherein the preset value is 40%.
  10. 根据权利要求9所述的蓝牙传输控制方法,其特征在于,所述蓝牙传输控制方法应用于智能终端间的蓝牙数据传输,所述智能终端包括智能手机、智能电视以及平板。The Bluetooth transmission control method according to claim 9, wherein the Bluetooth transmission control method is applied to Bluetooth data transmission between intelligent terminals, and the smart terminal comprises a smart phone, a smart TV, and a tablet.
  11. 一种蓝牙传输控制系统,其特征在于,所述蓝牙传输控制系统包括:蓝牙发送端和蓝牙接收端;A Bluetooth transmission control system, characterized in that the Bluetooth transmission control system comprises: a Bluetooth transmitting end and a Bluetooth receiving end;
    所述蓝牙发送端用于发送的蓝牙数据包到所述蓝牙接收端;The Bluetooth transmitting end is configured to send a Bluetooth data packet to the Bluetooth receiving end;
    所述蓝牙接收端用于计算接收N包蓝牙数据包所耗时间,得到平均每个蓝牙数据包的传送时间;并将平均传送时间与标准蓝牙包传送时间进行比较,当差值大于门限值时,判定丢包率超过预设值,则按照预设方式逐步调小蓝牙数据包大小直到差值小于门限值。The Bluetooth receiving end is configured to calculate a time taken to receive the N packet of the Bluetooth data packet, obtain an average transmission time of each Bluetooth data packet, and compare the average transmission time with the standard Bluetooth packet transmission time, when the difference is greater than the threshold value. When it is determined that the packet loss rate exceeds the preset value, the Bluetooth packet size is gradually reduced according to a preset manner until the difference is less than the threshold.
  12. 根据权利要求11所述的蓝牙传输控制系统,其特征在于,所述蓝牙接收端将调整后得到的蓝牙数据包的大小通知蓝牙发送端,蓝牙发送端按照新的蓝牙数据包大小发送新的蓝牙数据包,再次进入监测过程,如果丢包率仍超过预设值,则继续调整蓝牙数据包大小,直到丢包率低于预设值为止。The Bluetooth transmission control system according to claim 11, wherein the Bluetooth receiving end notifies the Bluetooth transmitting end of the adjusted size of the Bluetooth data packet, and the Bluetooth transmitting end sends a new Bluetooth according to the new Bluetooth data packet size. The data packet enters the monitoring process again. If the packet loss rate still exceeds the preset value, the Bluetooth packet size is continuously adjusted until the packet loss rate is lower than the preset value.
  13. 根据权利要求11所述的蓝牙传输控制系统,其特征在于,所述蓝牙发 送端还用于预先设定首次发送的蓝牙数据包的大小。The Bluetooth transmission control system according to claim 11, wherein the Bluetooth transmitting end is further configured to preset a size of the firstly transmitted Bluetooth data packet.
  14. 根据权利要求11所述的蓝牙传输控制系统,其特征在于,所述预设方式为步进式调整方式,所述步进式调整方式为每次将蓝牙数据包大小降低2字节。The Bluetooth transmission control system according to claim 11, wherein the preset mode is a stepwise adjustment mode, and the stepwise adjustment mode is to reduce the Bluetooth packet size by 2 bytes each time.
  15. 一种存储介质,其特征在于,所述存储介质存储有蓝牙传输控制程序,所述蓝牙传输控制程序被处理器执行时实现如权利要求1-10任一项所述蓝牙传输控制方法的步骤。A storage medium, characterized in that the storage medium stores a Bluetooth transmission control program, and the Bluetooth transmission control program is executed by a processor to implement the steps of the Bluetooth transmission control method according to any one of claims 1-10.
PCT/CN2019/082544 2018-04-16 2019-04-12 Bluetooth transmission control method, system, and storage medium WO2019201185A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810338956.0 2018-04-16
CN201810338956.0A CN110392367A (en) 2018-04-16 2018-04-16 A kind of Bluetooth transmission control method, system and storage medium

Publications (1)

Publication Number Publication Date
WO2019201185A1 true WO2019201185A1 (en) 2019-10-24

Family

ID=68240415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082544 WO2019201185A1 (en) 2018-04-16 2019-04-12 Bluetooth transmission control method, system, and storage medium

Country Status (2)

Country Link
CN (1) CN110392367A (en)
WO (1) WO2019201185A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683346B (en) * 2020-04-29 2023-07-25 深圳星普森信息技术有限公司 Method and system for synchronously correcting time of multiple acquisition points based on Bluetooth scattering networking
CN113079496A (en) * 2021-04-06 2021-07-06 深圳市鼎浩丰科技有限公司 Bluetooth transmission rate control method and storage medium
CN115243389B (en) * 2022-07-18 2023-03-03 北京思存通信技术有限公司 Data analysis system based on Bluetooth data transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090116401A1 (en) * 2003-09-10 2009-05-07 Boris Ginzburg Method and device of adaptive control of data rate, fragmentation and request to send protection in wireless networks
CN101562615A (en) * 2009-05-20 2009-10-21 宁波大学 Transmission method for MPEG-4 code based multimedia data stream self-adapting network bandwidth
CN105635218A (en) * 2014-11-05 2016-06-01 中兴通讯股份有限公司 Software center system
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571739A (en) * 2011-05-26 2012-07-11 中兴通讯股份有限公司 Batch data transmission method and device
CN103905263B (en) * 2012-12-26 2017-06-20 中国移动通信集团公司 A kind of service bandwidth method of testing and device
CN105704004B (en) * 2014-11-28 2019-10-22 华为技术有限公司 Business data processing method and device
EP3404993B1 (en) * 2016-02-11 2022-05-25 LG Electronics Inc. Data transmission method and user equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090116401A1 (en) * 2003-09-10 2009-05-07 Boris Ginzburg Method and device of adaptive control of data rate, fragmentation and request to send protection in wireless networks
CN101562615A (en) * 2009-05-20 2009-10-21 宁波大学 Transmission method for MPEG-4 code based multimedia data stream self-adapting network bandwidth
CN105635218A (en) * 2014-11-05 2016-06-01 中兴通讯股份有限公司 Software center system
CN106792462A (en) * 2016-12-22 2017-05-31 深圳Tcl数字技术有限公司 Bluetooth audio frequency transmits method of adjustment and device

Also Published As

Publication number Publication date
CN110392367A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
US10681773B2 (en) Real-time relay of wireless communications
US8503968B2 (en) Method and system for power saving in wireless communications
KR100542101B1 (en) Power control method and bluetooth device using the same
US11924823B2 (en) Multi-link device association and reassociation
WO2019201185A1 (en) Bluetooth transmission control method, system, and storage medium
US10517111B2 (en) Mitigating scheduling conflicts in wireless communication devices
KR20050041227A (en) Method of power control using per in wpan system
US20140269468A1 (en) Systems and methods for wireless band switching
EP2393335B1 (en) Wireless communication apparatus and band assigning method
US11134540B2 (en) Mixed mode bluetooth communications
EP2161952A2 (en) Method, system and apparatus for receiving multicast packets
US20130095761A1 (en) Systems and methods for seamless switching between a plurality of wireless connections for wireless transmissions
CN106993317B (en) SSID (service set identifier) selection method and device based on dual-frequency wireless router
US20210160742A1 (en) Selective multi-link operation in wlan
JP2009505590A (en) Extended DLS and HCCA principles
WO2021174510A1 (en) Wireless network access method and apparatus, communication device, and storage medium
WO2021114168A1 (en) Method and apparatus for controlling block acknowledgement feedback, communication device, and storage medium
CN108650258B (en) Self-adaptive method for AM entity data transmission of narrow-band Internet of things wireless link protocol sublayer
JP2007180687A (en) Wireless communication apparatus and wireless communication method
WO2019080449A1 (en) Wireless communication methods and device
US9992691B2 (en) Systems and methods for managing high network data rates
JP5114375B2 (en) Wireless communication method and wireless communication base station
WO2021087674A1 (en) Data transmission method and apparatus, and communication device
WO2020087454A1 (en) Power regulation method and terminal device
US20140016585A1 (en) Bluetooth service estimation apparatus and bluetooth service estimation method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19788127

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19788127

Country of ref document: EP

Kind code of ref document: A1