WO2023083091A1 - 蓝牙设备连接处理方法、装置、电子设备及存储介质 - Google Patents

蓝牙设备连接处理方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023083091A1
WO2023083091A1 PCT/CN2022/129535 CN2022129535W WO2023083091A1 WO 2023083091 A1 WO2023083091 A1 WO 2023083091A1 CN 2022129535 W CN2022129535 W CN 2022129535W WO 2023083091 A1 WO2023083091 A1 WO 2023083091A1
Authority
WO
WIPO (PCT)
Prior art keywords
time point
time
threshold
interval
time interval
Prior art date
Application number
PCT/CN2022/129535
Other languages
English (en)
French (fr)
Inventor
林羽帆
张强
冯晓明
李嘉明
Original Assignee
美的集团股份有限公司
广东美的制冷设备有限公司
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 美的集团股份有限公司, 广东美的制冷设备有限公司 filed Critical 美的集团股份有限公司
Publication of WO2023083091A1 publication Critical patent/WO2023083091A1/zh

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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 present application relates to the technical field of bluetooth communication, in particular to a bluetooth device connection processing method, device, electronic equipment and storage medium.
  • Bluetooth master device In a LAN network composed of interconnected Bluetooth devices, it is often the case that one Bluetooth master device is connected to multiple Bluetooth slave devices. According to the characteristics of Bluetooth communication, the connection process between devices is maintained by periodic handshake packets. That is, the master device periodically sends a handshake request to the slave device, and the slave device returns a handshake response to maintain the communication connection between the master device and the slave device.
  • This application aims to solve at least one of the technical problems existing in the prior art. For this reason, this application proposes a Bluetooth device connection processing method, which ensures the stability of the communication connection between the master device and each slave device by adjusting the time point at which the master device sends a handshake data packet to each slave device.
  • the application also proposes a Bluetooth device connection processing device, an electronic device, and a storage medium.
  • the time interval between the first time point and the second time point is less than or equal to a threshold
  • the time interval is adjusted to be greater than the threshold
  • a collection module configured to determine a first time point at which the master device sends a handshake data packet to the first slave device, and a second time point at which the master device sends a handshake data packet to the second slave device;
  • a processing module configured to adjust the time interval to be greater than the threshold if the time interval between the first time point and the second time point is less than or equal to a threshold.
  • the electronic device includes a processor and a memory storing a computer program, and when the processor executes the computer program, the steps of the above Bluetooth device connection processing method are implemented.
  • a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned Bluetooth device connection processing method are implemented.
  • adaptive matching is performed according to corresponding adjustment methods in different adjustment scenarios, so that each adjustment scenario can be adjusted as successfully as possible.
  • FIG. 1 is a first schematic flow diagram of a Bluetooth device connection processing method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a bluetooth device connection time axis provided by an embodiment of the present application
  • Fig. 3 is a schematic diagram 1 of the time point adjustment process provided by the embodiment of the present application.
  • Fig. 4 is a schematic diagram 2 of the time point adjustment process provided by the embodiment of the present application.
  • Fig. 5 is a schematic diagram 3 of the time point adjustment process provided by the embodiment of the present application.
  • Fig. 7 is a schematic diagram 4 of the time point adjustment process provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram five of the time point adjustment process provided by the embodiment of the present application.
  • Fig. 9 is a schematic diagram 6 of the time point adjustment process provided by the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a Bluetooth device connection processing device provided by an embodiment of the present application.
  • serial numbers of the components in the embodiments of the present application are only used to distinguish the described objects, Does not have any sequential or technical meaning.
  • a plurality means two or more.
  • “Includes”, “comprising”, “has”, “containing” and the like used in the embodiments of the present application are all open terms, meaning including but not limited to.
  • the term “and/or” in the embodiment of the present application is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B, which can mean: A exists alone, and A and B exist at the same time , there are three cases of B alone.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “for example” is intended to
  • Figure 1 illustrates a schematic flow diagram of the Bluetooth device connection processing method provided by the present application. This method is applicable to the scene where the master device establishes a connection with multiple slave devices, wherein the master device or the slave device with the Bluetooth communication function may be a single-mode A device with a Bluetooth chip (that is, a single-antenna device) may also be a device with a dual-mode Bluetooth chip (that is, a device with multiple antennas).
  • the method includes:
  • the main device may be a mobile terminal, such as a mobile phone, a tablet computer, and the like.
  • the slave device can be a smart device, such as a smart bracelet, a Bluetooth headset, a smart speaker, and the like.
  • a user can use a smartphone to establish a Bluetooth connection with a smart bracelet, a Bluetooth headset, and a smart speaker.
  • the connection process between the devices depends on the periodic handshake data packets to maintain. That is, the master device periodically sends a handshake request to the slave device, and the slave device returns a handshake response to maintain the communication connection between the master device and the slave device.
  • the master device periodically sends handshake packets to the slave device.
  • Each time a handshake packet is sent it corresponds to a time point.
  • the time interval between two adjacent time points is the connection interval between the master device and the slave device.
  • the connection interval is equivalent to the duration of the sending cycle.
  • the circle, rhombus and square all represent a slave device connected to the master device
  • the horizontal axis represents the connection time axis
  • each vertical line represents the handshake packet sent by the master device to the corresponding slave device.
  • the intersection point of the vertical line and the horizontal axis is the time point when the handshake packet is sent.
  • the master device can know the time point when the master device sends the handshake data packet to the slave device each time after the time point according to the time point and the connection interval when the master device sends the handshake data packet to the slave device.
  • the master maintains a connection with two existing slaves.
  • one is used as the first slave device, and the other is used as the second slave device.
  • the time point when the master device sends the handshake data packet to the first slave device is recorded as the first time point; the time point when the master device sends the handshake data packet to the second slave device is recorded as the second time point.
  • a threshold is configured, and the threshold is a maximum value that can affect the connection disconnection between the slave device and the master device.
  • the first time points are respectively circle 1, circle 2, circle 3, circle 4...
  • the second time points are respectively Ling1, Ling2, Ling3.
  • the time interval between the first time point and the second time point is less than or equal to the threshold, it means the time between circle 1 and rhombus 1, circle 2 and rhombus 2, circle 3 and rhombus 3... circle n and rhombus n
  • the intervals are all less than or equal to the threshold.
  • the second time point is adjusted in advance for a period of time to form an adjusted second time point, which is divided into Ling 1', Ling 2', Ling 3'....
  • the time interval between circle 1 and rhombus 1', circle 2 and rhombus 2', circle 3 and rhombus 3'... circle n and rhombus n' is greater than the threshold, and circle 2 and rhombus 1', circle 3
  • the time intervals between He Ling 2', Circle 4, and Ling 3'... Circle n+1 and Ling n' are also greater than the threshold.
  • the master device sends handshake data packets to the first slave device and the second slave device respectively according to the adjusted time point. Since the time interval is kept greater than the threshold, the disconnection and reconnection of the slave device can be avoided. Ensure the stability of the communication connection between the master device and each slave device.
  • the master device maintains a connection with an existing slave device, and then adds a new slave device.
  • the existing slave device is used as the first slave device, and the newly added slave device is used as the second slave device.
  • the time point when the master device sends the handshake data packet to the first slave device is recorded as the first time point; the time point when the master device sends the handshake data packet to the second slave device is recorded as the second time point.
  • a threshold is configured, and the threshold is a maximum value that can affect the connection disconnection between the slave device and the master device.
  • the time interval between the first time point and the second time point is less than or equal to the threshold value, at this time, it is necessary to adjust the time point, or adjust the connection interval and the time point, thereby changing the length of the time interval, so that the time The interval is greater than the threshold.
  • the first time points are respectively circle 1, circle 2, circle 3, circle 4...
  • the second time points are respectively Ling1, Ling2, Ling3.... If the time interval between the first time point and the second time point is less than or equal to the threshold, it means the time between circle 2 and rhombus 1, circle 3 and rhombus 2, circle 4 and rhombus 3... circle n and rhombus n The intervals are all less than or equal to the threshold.
  • the second time point is delayed and adjusted for a period of time to form an adjusted second time point, which is divided into Ling 1', Ling 2', Ling 3'....
  • the time interval between circle 2 and rhombus 1', circle 3 and rhombus 2', circle 4 and rhombus 3'... circle n+1 and rhombus n' is greater than the threshold, and circle 1 and rhombus 1',
  • the time intervals between circle 2 and rhombus 2', circle 3 and rhombus 3'... circle n and rhombus n' are also greater than the threshold.
  • the master maintains a connection with two existing slaves, and then adds a new slave.
  • the two existing slave devices are used as the first slave device, and the newly added slave device is used as the second slave device.
  • the time point when the master device sends the handshake data packet to the first slave device is recorded as the first time point; the time point when the master device sends the handshake data packet to the second slave device is recorded as the second time point.
  • a threshold is configured, and the threshold is a maximum value that can affect the connection disconnection between the slave device and the master device.
  • the first time points are respectively circle 1, circle 2, circle 3, circle 4..., rhombus 1, rhombus 2, rhombus 3.
  • the second time points are square 1, square 2, square 3... respectively. If the time interval between the first time point and the second time point is less than or equal to the threshold, it means that circle 2 and square 1, circle 3 and square 2, circle 4 and square 3... between circle n+1 and square n The time intervals are all less than or equal to the threshold.
  • the second time point is delayed and adjusted for a period of time to form an adjusted second time point, which is divided into square 1', square 2', square 3'....
  • the time interval between circle 2 and square 1', circle 3 and square 2', circle 4 and square 3'... circle n+1 and square n' is greater than the threshold, and diamond 1 and square 1',
  • the time intervals between rhombus 2 and square 2', rhombus 3 and square 3' ... rhombus n and square n' are also greater than the threshold.
  • a new time interval will be obtained.
  • the new time point for the master device to send the handshake data packet to each slave device can be determined, and the data packet will be processed based on the new time point. sent.
  • a threshold is configured, and the threshold is a maximum value that can affect the connection disconnection between the slave device and the master device.
  • the time interval between the first time point and the second time point is less than or equal to the threshold value, at this time, it is necessary to adjust the time point, or adjust the connection interval and the time point, thereby changing the length of the time interval, so that the time The interval is greater than the threshold.
  • the time intervals between the time points when the master device sends handshake data packets with the first slave device and the second slave device are greater than the threshold.
  • the third time point is adjusted in advance for a period of time to form an adjusted third time point, which is divided into square 1', square 2', square 3', square 4'....
  • the time intervals between circle 2 and square 1', circle 3 and square 2', circle 4 and square 3', circle 5 and square 4'... circle n+1 and square n' are equal less than or equal to the threshold.
  • the first time point is adjusted in advance for a period of time to form the adjusted first time point, which are respectively circle 1', circle 2', circle 3', circle 4', circle 5'....
  • the Bluetooth device connection processing method provided by this application obtains the time interval between each time point when the master device sends handshake data packets to each slave device, and determines that when the existing time interval and the preset threshold do not meet the conditions, each time point and Reasonably adjust the connection interval to reasonably reduce the impact of the connection between the master device and each slave device, avoid disconnection and reconnection of the device as much as possible, and ensure the stability of the communication connection between the master device and each slave device.
  • the third time point is delayed and adjusted for a period of time to form an adjusted third time point, which is divided into square 1', square 2', square 3', square 4'....
  • the time intervals between diamond 1 and square 1', diamond 2 and square 2', diamond 3 and square 3' ... rhombus n and square n' are all less than or equal to the threshold.
  • the second time point is delayed and adjusted for a period of time to form adjusted second time points, which are respectively Ling 1', Ling 2', Ling 3'... .
  • the time interval between diamond 1' and square 1', rhombus 2' and square 2', rhombus 3' and square 3' ... rhombus n' and square n' is greater than the threshold, and
  • the time intervals between circle 1 and diamond 1', circle 2 and diamond 2', circle 3 and diamond 3'... circle n' and diamond n are all greater than the threshold.
  • connection interval may be adjusted first, that is, the connection interval may be increased, and then the time point may be adjusted based on the increased connection interval until the adjusted time interval is greater than the threshold.
  • FIG. 7 shows an example, which is the case of adjusting both the connection interval and the time point.
  • a random duration is determined according to the time interval before adjustment and the threshold, and the sum of the random duration and the time interval before adjustment is greater than the threshold;
  • the adjusted time point is determined based on the delayed or advanced time point and the connection interval.
  • a time point before adjustment is determined as an adjustment target, that is, a time point for sending a handshake data packet is selected.
  • the time before adjustment is 10:1:6, and the random delay time is 3 seconds, then the delayed time is 10:1:3.
  • the time point of sending each subsequent handshake data packet is determined by n connection intervals in advance according to the delayed or advanced time point. For example, the connection interval is 10 seconds, the delayed time point is 10:1:3 seconds, and the adjusted time points are 10:01:13, 10:1:23, 10:1:33....
  • time intervals between any two time points among the first time point, the fourth time point and the fifth time point are greater than a threshold.
  • the first time points are circle 1, circle 2, circle 3, circle 4...
  • the second time points are Ling 1, Ling 2, Ling 3...
  • the third time points are respectively It is square 1, square 2, square 3....
  • the time interval between the fourth time point (square 2') and the second time point (diamond 2) is less than or equal to the threshold, advance the second time point (diamond 2) by a random duration, and combine the connection interval to determine the n+2th time of the master device
  • the time point (diamond 3') at which the handshake data packet is sent to the second slave device for the second time is the fifth time point.
  • the first time point (circle 2) and the fourth time point (square 2') are not adjusted, and the connection interval is used to determine the time point when the master device sends the handshake data packet to the first slave device and the second slave device for the n+1 time They are circle 3 and square 2' respectively.
  • each adjustment only adjusts one time point, realizing multiple adjustments, and avoiding the adjustment duration of time points If it is too large, the master device will send handshake packets to individual slave devices for a long time, causing the slave devices to disconnect.
  • connection interval can take a value between 7.5ms and 4s, and the preset threshold is 11ms-13ms, but the connection interval is less than 24ms, it is not possible to do multiple connections, so the connection interval At least twice the duration equal to or greater than the preset threshold.
  • FIG. 10 illustrates a schematic structural diagram of a Bluetooth device connection processing device provided by the present application.
  • the device includes an acquisition module 101 and a processing module 102, wherein:
  • Acquisition module 101 is used for determining the first time point that master device sends handshake data packet to first slave device, and the second time point that master device sends handshake data packet to second slave device;
  • the processing module 102 is configured to adjust the time interval to be greater than the threshold when the time interval between the first time point and the second time point is less than or equal to the threshold.
  • the acquisition module is also used to: determine the third time point when the master device sends a handshake data packet to the third slave device; the third slave device is a device to be connected to the master device;
  • the processing module is further configured to: adjust the time interval to be greater than the threshold if the time interval between any two time points among the first time point, the second time point and the third time point is less than or equal to the threshold.
  • connection interval is the time between two adjacent time points when the master device sends a handshake packet to the same slave device interval.
  • the processing module is specifically used to:
  • the adjusted time point is determined based on the delayed or advanced time point and the connection interval.
  • the processing module adjusts the time interval to be greater than or equal to During the processing of the threshold, it is specifically used for:
  • time intervals between any two time points among the first time point, the fourth time point and the fifth time point are greater than a threshold.
  • connection intervals for the master device to send handshake data packets to each slave device are the same.
  • connection interval is at least equal to or greater than twice the threshold value.
  • the bluetooth device connection processing device obtaineds the time interval between the time points when the master device sends handshake data packets to each slave device, and determines that when the existing time interval and the preset threshold do not meet the conditions, each time point is determined. Reasonable adjustments should reasonably reduce the impact of the connection between the master device and each slave device, avoid disconnection and reconnection of the device as much as possible, and ensure the stability of the communication connection between the master device and each slave device.
  • FIG. 11 illustrates a schematic diagram of the physical structure of an electronic device.
  • the electronic device may include: a processor (processor) 111, a communication interface (Communications Interface) 112, a memory (memory) 113 and a communication bus 114, Wherein, the processor 111 , the communication interface 112 , and the memory 113 communicate with each other through the communication bus 114 .
  • the processor 111 can call the logic instructions in the memory 113 to perform the following method: determine the first time point when the master device sends the handshake data packet to the first slave device, and the second time point when the master device sends the handshake data packet to the second slave device. A time point; when the time interval between the first time point and the second time point is less than or equal to the threshold, the adjusted time interval is greater than the threshold.
  • the embodiments of the present application also provide a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the methods provided by the above-mentioned embodiments, for example, including: Determine the first time point when the master device sends the handshake data packet to the first slave device, and the second time point when the master device sends the handshake data packet to the second slave device; the time between the first time point and the second time point If the interval is less than or equal to the threshold, adjust the interval to be greater than the threshold.

Landscapes

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

Abstract

本申请涉及蓝牙通信技术领域,提供一种蓝牙设备连接处理方法、装置、电子设备及存储介质,该方法包括:确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值,通过获取主设备向各从设备发送握手数据包的各时间点之间的时间间隔,确定存在时间间隔与预设阈值不满足条件时,对各时间点进行合理调整,将主设备与各从设备间的连接产生的影响合理降低,尽量避免设备的断开重连,保证主设备与各从设备通信连接的稳定性。

Description

蓝牙设备连接处理方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2021年11月11日提交的申请号为202111335380.0,名称为“蓝牙设备连接处理方法、装置、电子设备及存储介质”的中国专利申请的优先权,其通过引用方式全部并入本文。
技术领域
本申请涉及蓝牙通信技术领域,尤其涉及蓝牙设备连接处理方法、装置、电子设备及存储介质。
背景技术
在蓝牙设备互联组成的局域网网络中,常常会出现一台蓝牙主设备连接多台蓝牙从设备的情况。根据蓝牙通信特性,设备间的连接过程依靠时间周期性的握手包进行维持。即主设备要周期性的向从设备发送握手请求,从设备在反馈握手响应,维持主设备与从设备通信连接。
但同一台蓝牙主设备连接多台蓝牙从设备,会存在信号相互影响的现象,可能存在某个设备连接发生断开。设备断开连接后需重新建立连接,一直到连接建立稳定。这就意味着在连接建立稳定前,主设备与从设备之间所有的数据通讯不可靠,使数据通讯效率降低。
发明内容
本申请旨在至少解决现有技术中存在的技术问题之一。为此,本申请提出一种蓝牙设备连接处理方法,通过对主设备向各从设备发送握手数据包的时间点进行调节,保证主设备与各从设备通信连接的稳定性。
本申请还提出一种蓝牙设备连接处理装置、电子设备及存储介质。
根据本申请第一方面实施例的蓝牙设备连接处理方法,包括:
确定主设备向第一从设备发送握手数据包的第一时间点,以及所述主设备向第二从设备发送握手数据包的第二时间点;
在所述第一时间点和所述第二时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
根据本申请第二方面实施例的一种蓝牙设备连接处理装置,包括:
采集模块,用于确定主设备向第一从设备发送握手数据包的第一时间点,以及所述主设备向第二从设备发送握手数据包的第二时间点;
处理模块,用于在所述第一时间点和所述第二时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
根据本申请第三方面实施例的电子设备,包括处理器和存储有计算机程序的存储器,所述处理器执行所述计算机程序时实现如上述蓝牙设备连接处理方法的步骤。
根据本申请第四方面实施例的非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述蓝牙设备连接处理方法的步骤。
本申请实施例中的上述一个或多个技术方案,至少具有如下技术效果之一:
进一步的,通过在不同的调整场景中按对应的调整方式进行适应性的匹配,以实现每个调整场景都尽量得到成功调整。
本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的蓝牙设备连接处理方法的流程示意图一;
图2是本申请实施例提供的蓝牙设备连接时间轴的示意图;
图3是本申请实施例提供的时间点调整过程的示意图一;
图4是本申请实施例提供的时间点调整过程的示意图二;
图5是本申请实施例提供的时间点调整过程的示意图三;
图6是本申请实施例提供的蓝牙设备连接处理方法的流程示意图二;
图7是本申请实施例提供的时间点调整过程的示意图四;
图8是本申请实施例提供的时间点调整过程的示意图五;
图9是本申请实施例提供的时间点调整过程的示意图六;
图10是本申请实施例提供蓝牙设备连接处理装置的结构示意图;
图11是本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本申请的实施方式作进一步详细描述。以下实施例用于说明本申请,但不能用来限制本申请的范围。
本申请实施例中部件所编序号本身,例如“第一”、“第二”;(1)、(2)、(3);步骤一、步骤二等,仅用于区分所描述的对象,不具有任何顺序或技术含义。除非另有说明,“多个”的含义是指两个或两个以上。本申请实施例中所使用的“包含”、“包括”、“具有”、“含有”等,均为开放性的用语,即意指包含但不限于。本申请实施例中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方
式呈现相关概念。除非另有定义,本申请实施例所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。如有不一致,以本说明书中所说明的含义或者根据本说明书中记载的内容得出的含义为准。
图1示例了本申请提供的蓝牙设备连接处理方法的流程示意图,本方法适用于主设备与多个从设备建立连接的场景,其中,具备蓝牙通信功能的主设备或从设备可为具备单模蓝牙芯片的设备(即单天线设备),也可是具备双模蓝牙芯片的设备(即多天线设备)。参见图1,该方法包括:
11、确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;
12、在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
对此,需要说明的是,主设备可以为移动终端,例如手机、平板电脑等。从设备可以为智能设备,例如智能手环,蓝牙耳机,智能音箱等。在本申请中提及到的一个主设备与多个从设备建立连接的场景,例如用户可以使用一个智能手机与智能手环、蓝牙耳机、智能音箱均建立蓝牙连接。
主设备与从设备建立蓝牙连接之后,根据蓝牙通信特性,设备间的连接过程依靠时间周期性的握手数据包进行维持。即主设备要周期性的向从设备发送握手请求,从设备在反馈握手响应,维持主设备与从设备通信连接。
在本申请中,主设备周期性的向从设备发送握手数据包。每次发送握手数据包,均对应一个时间点。相邻两个时间点之间的时间间隔为主设备与从设备的连接间隔。该连接间隔相当于发送周期的时长。
参见图2,圆形、菱形和方形均代表主设备连接的一个从设备,横轴代表连接时间轴,每条竖线代表主设备向对应从设备发送握手数据包。竖线与横轴的交接点为握手数据包发出的时间点。
在本申请中,主设备能够根据向某个从设备发送握手数据包的一个时间点和连接间隔,得知在该时间点之后主设备向该从设备每次发送握手数据包的时间点。
在一个场景中,主设备与已有的两个从设备保持连接。为了方便方案描述,一个作为第一从设备,另一个作为第二从设备。主设备向第一从设备发送握手数据包的时间点,记为第一时间点;主设备向第二从设备发送握手数据包的时间点,记为第二时间点。
为了避免主设备向各从设备发送握手数据包的时间点相隔太近或者重合,进而影响到某个从设备与主设备发生连接断开。为此,配置一阈值,该阈值作为能够影响到从设备与主设备发生连接断开的最大值。
当第一时间点和第二时间点之间的时间间隔小于或等于阈值,此时,需要对时间点进行调整,或是对连接间隔和时间点进行调整,从而改变时间间隔的长度,使时间间隔大于阈值。
参见图3,可以看出,第一时间点分别为圆1、圆2、圆3、圆4……,第二时间点分别为菱1、菱2、菱3……。若第一时间点和第二时间点之间的时间间隔小于或等于阈值,则说明圆1与菱1、圆2和菱2、圆3和菱 3……圆n与菱n之间的时间间隔均小于或等于阈值。
在图3中,将第二时间点提前调整一段时长,形成调整后的第二时间点,分为菱1’、菱2’、菱3’……。此时使得圆1与菱1’、圆2和菱2’、圆3和菱3’……圆n与菱n’之间的时间间隔均大于阈值,以及圆2与菱1’、圆3和菱2’、圆4和菱3’…...圆n+1与菱n’之间的时间间隔也均大于阈值。
此时,主设备再按照调整后的时间点分别向第一从设备、第二从设备发送握手数据包,由于时间间隔均保持在大于阈值的场景中,能够避免从设备的断开重连,保证主设备与各从设备通信连接的稳定性。
在另一个场景中,主设备与已有的一个从设备保持连接,后又新加入一个从设备。为了方便方案描述,已有的从设备作为第一从设备,新加入的从设备作为第二从设备。主设备向第一从设备发送握手数据包的时间点,记为第一时间点;主设备向第二从设备发送握手数据包的时间点,记为第二时间点。
为了避免主设备向各从设备发送握手数据包的时间点相隔太近或者重合,进而影响到某个从设备与主设备发生连接断开。为此,配置一阈值,该阈值作为能够影响到从设备与主设备发生连接断开的最大值。
当第一时间点和第二时间点之间的时间间隔小于或等于阈值,此时,需要对时间点进行调整,或是对连接间隔和时间点进行调整,从而改变时间间隔的长度,使时间间隔大于阈值。
参见图4,可以看出,第一时间点分别为圆1、圆2、圆3、圆4……,第二时间点分别为菱1、菱2、菱3……。若第一时间点和第二时间点之间的时间间隔小于或等于阈值,则说明圆2与菱1、圆3和菱2、圆4和菱3……圆n与菱n之间的时间间隔均小于或等于阈值。
在图4中,将第二时间点延后调整一段时长,形成调整后的第二时间点,分为菱1’、菱2’、菱3’……。此时使得圆2与菱1’、圆3和菱2’、圆4和菱3’……圆n+1与菱n’之间的时间间隔均大于阈值,以及圆1与菱1’、圆2和菱2’、圆3和菱3’……圆n与菱n’之间的时间间隔也均大于阈值。
在又一个场景中,主设备与已有的两个从设备保持连接,后又新加入 一个从设备。为了方便方案描述,已有的两个从设备均作为第一从设备,新加入的从设备作为第二从设备。主设备向第一从设备发送握手数据包的时间点,记为第一时间点;主设备向第二从设备发送握手数据包的时间点,记为第二时间点。
为了避免主设备向各从设备发送握手数据包的时间点相隔太近或者重合,进而影响到某个从设备与主设备发生连接断开。为此,配置一阈值,该阈值作为能够影响到从设备与主设备发生连接断开的最大值。
当第一时间点和第二时间点之间的时间间隔小于或等于阈值,此时,需要对时间点进行调整,或是对连接间隔和时间点进行调整,从而改变时间间隔的长度,使时间间隔大于阈值。
参见图5,可以看出,第一时间点分别为圆1、圆2、圆3、圆4……,菱1、菱2、菱3……。第二时间点分别为方1、方2、方3……。若第一时间点和第二时间点之间的时间间隔小于或等于阈值,则说明圆2与方1、圆3和方2、圆4和方3……圆n+1与方n之间的时间间隔均小于或等于阈值。
在图5中,将第二时间点延后调整一段时长,形成调整后的第二时间点,分为方1’、方2’、方3’……。此时使得圆2与方1’、圆3和方2’、圆4和方3’……圆n+1与方n’之间的时间间隔均大于阈值,以及菱1与方1’、菱2和方2’、菱3和方3’……菱n与方n’之间的时间间隔也均大于阈值。
在本申请中,调整时间间隔大于阈值之后会获得新的时间间隔,依据新的时间间隔可以确定主设备向各从设备发送握手数据包的新的时间点,基于该新的时间点进行数据包的发送。
本申请提供的蓝牙设备连接处理方法,通过获取主设备向各从设备发送握手数据包的各时间点之间的时间间隔,确定存在时间间隔与预设阈值不满足条件时,对各时间点进行合理调整,将主设备与各从设备间的连接产生的影响合理降低,尽量避免设备的断开重连,保证主设备与各从设备通信连接的稳定性。
图6示例了本申请提供的蓝牙设备连接处理方法的流程示意图,本方法适用于主设备与多个从设备建立连接的场景,参见图6,该方法包括:
11、确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;
12、在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值;
21、确定主设备向第三从设备发送握手数据包的第三时间点;第三从设备为主设备待建立连接的设备;
22、在第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于所述阈值。
针对步骤11、步骤12、步骤21和步骤22,需要说明的是,在本申请中,主设备与已有的两个从设备保持连接。为了方便方案描述,一个作为第一从设备,另一个作为第二从设备。主设备向第一从设备发送握手数据包的时间点,记为第一时间点;主设备向第二从设备发送握手数据包的时间点,记为第二时间点。
为了避免主设备向各从设备发送握手数据包的时间点相隔太近或者重合,进而影响到某个从设备与主设备发生连接断开。为此,配置一阈值,该阈值作为能够影响到从设备与主设备发生连接断开的最大值。
当第一时间点和第二时间点之间的时间间隔小于或等于阈值,此时,需要对时间点进行调整,或是对连接间隔和时间点进行调整,从而改变时间间隔的长度,使时间间隔大于阈值。此时,主设备与第一从设备、第二从设备发送握手数据包产生的各时间点之间的时间间隔均大于阈值。
之后,主设备又与新加入的第三从设备建立连接,主设备向第三从设备发送握手数据包的时间点,记为第三时间点。
当第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值,此时,需要对时间点进行调整,或是对连接间隔和时间点进行调整,从而改变时间间隔的长度,使时间间隔大于阈值。
参见图7,可以看出,第一时间点分别为圆1、圆2、圆3、圆4、圆5……,第二时间点分别为菱1、菱2、菱3、菱4……,第三时间点分别为方1、方2、方3、方4……。若第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值,则说明菱1与方1、菱2和方2、菱3和方3、菱4和方4……圆n与方n之间的时间间隔均小 于或等于阈值。
在图7中,将第三时间点提前调整一段时长,形成调整后的第三时间点,分为方1’、方2’、方3’、方4’……。此时经调整之后又使得圆2与方1’、圆3和方2’、圆4和方3’、圆5和方4’……圆n+1与方n’之间的时间间隔均小于或等于阈值。对此,再对第一时间点提前调整一段时长,形成调整后的第一时间点,分别为圆1’、圆2’、圆3’、圆4’、圆5’……。此时经再次调整之后又使得圆1’和菱1,、圆2’和菱2、圆3’和菱3、圆4’和菱4……圆n’和菱n之间的时间间隔均小于或等于阈值。
对此,若再将第一时间点延后调整一段时长,又出现“圆与方”时间点之间的时间间隔均小于或等于阈值,再将第三时间点延后调整一段时长,又出现“方与菱”时间点之间的时间间隔均小于或等于阈值。
由此可知,在现有的连接间隔内,无法做到对时间点进行调整后,使时间间隔大于阈值。在该情况下,可先对连接间隔进行调整,即增长连接间隔,然后在基于增长后的连接间隔上,进行时间点的调整,直到调整后的时间间隔大于阈值。
继续参见图7,调整连接间隔之和,将第三时间点提前调整一段时长,形成调整后的第三时间点,分为方1’、方2’、方3’……。此时经调整之后又使得圆2与方1’、圆3和方2’、圆4和方3’……圆n+1与方n’之间的时间间隔均大于阈值。
本申请提供的蓝牙设备连接处理方法,通过获取主设备向各从设备发送握手数据包的各时间点之间的时间间隔,确定存在时间间隔与预设阈值不满足条件时,对各时间点和连接间隔进行合理调整,将主设备与各从设备间的连接产生的影响合理降低,尽量避免设备的断开重连,保证主设备与各从设备通信连接的稳定性。
在上述发明的进一步方法中,主要是对调整时间间隔均大于所述阈值的具体手段进行解释说明,具体如下:
在本申请中,存在只调整各时间点中的一个时间点,便可使得调整后的时间间隔大于阈值。例如上述图3-图4示出了实例,均是只调整一个时间点的情况。
也存在调整一个时间点之后,不能使得调整后的时间间隔大于阈值,为此,需要调整其他时间点,经调整其他时间点后,能够达到使得调整后的时间时间大于阈值。
参见图8,第一时间点分别为圆1、圆2、圆3、圆4……,第二时间点分别为菱1、菱2、菱3……,第三时间点分别为方1、方2、方3……。若第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值,则说明方1与圆2、方2和圆3、方3和圆4……方n与圆n+1之间的时间间隔均小于或等于阈值。
在图8中,将第三时间点延后调整一段时长,形成调整后的第三时间点,分为方1’、方2’、方3’、方4’……。此时经调整之后又使得菱1与方1’、菱2和方2’、菱3和方3’……菱n与方n’之间的时间间隔均小于或等于阈值。对此,再对第二时间点延后调整一段时长,形成调整后的第二时间点,分别为菱1’、菱2’、菱3’……。此时经再次调整之后又使得菱1’与方1’、菱2’和方2’、菱3’和方3’……菱n’与方n’之间的时间间隔均大于阈值,以及圆1和菱1’、圆2和菱2’、圆3和菱3’……圆n’和菱n之间的时间间隔均大于阈值。
另外,再进一步的解释说明,若出现在现有的连接间隔内,无法做到对时间点进行调整后,使时间间隔大于阈值。在该情况下,可先对连接间隔进行调整,即增长连接间隔,然后在基于增长后的连接间隔上,进行时间点的调整,直到调整后的时间间隔大于阈值。例如上述图7示出了实例,是既调整连接间隔又调整时间点的情况。
本申请提供的蓝牙设备连接处理方法,通过在不同的调整场景中按对应的调整方式进行适应性的匹配,以实现每个调整场景都尽量得到成功调整。
在上述发明的进一步方法中,主要是对调整各时间点中的至少一个时间点的具体调整进行解释说明,具体如下:
根据调整前的时间间隔和阈值确定一随机时长,随机时长与调整前的时间间隔之和大于所述阈值;
将调整前的时间点延后或提前所述随机时长,得到延后或提前的时间点;
根据延后或提前的时间点和连接间隔确定调整后的时间点。
对此,需要说明的是,在本申请中,阈值是配置的固定值,时间间隔是两个时间点之间的时长。时间间隔+“调整时长”>阈值,由于时间间隔的不确定性,会导致“调整时长”的不确定性,故“调整时长”为随机时长,属于变化值。
在本申请中,从各时间点中,确定调整前的一个时间点作为调整目标,即选取某一次发送握手数据包的时间点。将作为调整目标的时间点延后或提前随机时长,得到一个延后或提前的时间点。例如调整前的时间点是10点1分6秒,延后的随机时长为3秒,则延后的时间点为10点1分3秒。由于连接间隔未发生变化,故后续的每一次发送握手数据包的时间点均按照延后或提前的时间点,提前n个连接间隔去确定。例如连接间隔是10秒,延后的时间点为10点1分3秒,之后调整的时间点依次为10点1分13秒、10点1分23秒、10点1分33秒……。
本申请提供的蓝牙设备连接处理方法,通过随时时长对时间点进行调整,能够使得调整的时间点在较合适的数值范围内,避免固定时长的调整带来的调整后的时间间隔依旧不满足阈值条件,导致调整失败,不适应从设备的随意加入。
在上述发明的进一步方法中,主要是对在第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于所述阈值的调整过程的解释说明,具体如下:
确定第三时间点与第一时间点之间的时间间隔小于或等于阈值,且第三时间点与第二时间点之间的时间间隔大于阈值,调整第三时间点得到第四时间点;
确定第四时间点与第一时间点之间的时间间隔大于阈值,且第四时间点与第二时间点之间的时间间隔小于或等于阈值,调整第二时间点得到第五时间点;
确定第一时间点、第四时间点和第五时间点之间中任意两个时间点之间的时间间隔均大于阈值。
参见图9,可以看出,第一时间点分别为圆1、圆2、圆3、圆4……,第二时间点分别为菱1、菱2、菱3……,第三时间点分别为方1、方2、 方3……。
主设备第n次向三个从设备发送握手数据包,第三时间点(方1)与第一时间点(圆1)的时间间隔小于或等于阈值,将第三时间点(方1)提前随机时长,并结合连接间隔确定主设备第n+1次向第三从设备发送握手数据包的时间点(方2’),即第四时间点。第一时间点(圆1)和第二时间点(菱1)未进行调整,结合连接间隔确定主设备第n+1次向第一从设备和第二从设备发送握手数据包的时间点分别为圆2和菱2。
第四时间点(方2’)与第二时间点(菱2)的时间间隔小于或等于阈值,将第二时间点(菱2)提前随机时长,并结合连接间隔确定主设备第n+2次向第二从设备发送握手数据包的时间点(菱3’),即为第五时间点。第一时间点(圆2)和第四时间点(方2’)未进行调整,结合连接间隔确定主设备第n+1次向第一从设备和第二从设备发送握手数据包的时间点分别为圆3和方2’。
确定时间点圆3、方2’和菱3’中各时间点之间的时间间隔均大于阈值。后续主设备向各从设备发送握手数据包的时间点均以圆3、方2’和菱3’,以及连接间隔进行确定。
本申请提供的蓝牙设备连接处理方法,在可能存在多次调整才能使时间间隔满足阈值条件的情况下,每次调整只对一个时间点进行调整,实现分多次调整,避免时间点的调整时长过大,导致主设备处于较长时间向个别从设备发送握手数据包,使从设备断开连接。
另外,还需要进一步的解释说明的是,为了避免合理调节各路连接的时间点之后,在后续发送握手数据包过程中经常出现调节过程,故设置主设备与各从设备的连接间隔均相同,此时,在合理调节各路连接的时间点之后,在后续握手请求中便不易出现调节过程(不再添加新设备的情景)。
另外,还需要进一步的解释说明的是,由于连接间隔可取7.5ms~4s之间的值,而预设的阈值是11ms-13ms,但连接间隔小于24ms,都是不能做多连接,故连接间隔至少等于或大于预设阈值的时长的2倍。
图10示例了本申请提供的蓝牙设备连接处理装置的结构示意图,参见图10,该装置包括采集模块101和处理模块102,其中:
采集模块101,用于确定主设备向第一从设备发送握手数据包的第一 时间点,以及主设备向第二从设备发送握手数据包的第二时间点;
处理模块102,用于在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
在上述发明的进一步装置中,采集模块还用于:确定主设备向第三从设备发送握手数据包的第三时间点;第三从设备为主设备待建立连接的设备;
相应地,
处理模块还用于:在第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
在上述发明的进一步装置中,该处理模块在调整时间间隔均大于阈值的处理过程中,具体用于:
调整各时间点中的至少一个时间点,使得调整后的时间间隔大于阈值;
或是,
调整连接间隔的长度和调整各时间点中的至少一个时间点,使得调整后的时间间隔大于阈值;连接间隔为主设备向同一从设备发送握手数据包的相邻两个时间点之间的时间间隔。
在上述发明的进一步装置中,该处理模块在调整各时间点中的至少一个时间点的处理过程中,具体用于:
根据调整前的时间间隔和阈值确定一随机时长,随机时长与调整前的时间间隔之和大于所述阈值;
将调整前的时间点延后或提前随机时长,得到延后或提前的时间点;
根据延后或提前的时间点和连接间隔确定调整后的时间点。
在上述发明的进一步装置中,该处理模块在第一时间点、第二时间点和第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值的处理过程中,具体用于:
确定第三时间点与第一时间点之间的时间间隔小于或等于阈值,且第三时间点与第二时间点之间的时间间隔大于阈值,调整第三时间点得到第四时间点;
确定第四时间点与第一时间点之间的时间间隔大于阈值,且第四时间 点与第二时间点之间的时间间隔小于或等于所述阈值,调整第二时间点得到第五时间点;
确定第一时间点、第四时间点和第五时间点之间中任意两个时间点之间的时间间隔均大于阈值。
在上述发明的进一步装置中,主设备向各个从设备发送握手数据包的连接间隔均相同。
在上述发明的进一步装置中,连接间隔至少等于或大于阈值的2倍。
在上述发明的进一步装置中,连接间隔的取值范围包括7.5ms~4s。
由于本申请的装置与上述发明的方法的原理相同,对于更加详细的解释内容在此不再赘述。
需要说明的是,本申请中可以通过硬件处理器(hardware processor)来实现相关功能模块。
本申请提供的蓝牙设备连接处理装置,通过获取主设备向各从设备发送握手数据包的各时间点之间的时间间隔,确定存在时间间隔与预设阈值不满足条件时,对各时间点进行合理调整,将主设备与各从设备间的连接产生的影响合理降低,尽量避免设备的断开重连,保证主设备与各从设备通信连接的稳定性。
图11示例了一种电子设备的实体结构示意图,如图11所示,该电子设备可以包括:处理器(processor)111、通信接口(Communications Interface)112、存储器(memory)113和通信总线114,其中,处理器111,通信接口112,存储器113通过通信总线114完成相互间的通信。处理器111可以调用存储器113中的逻辑指令,以执行如下方法:确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
上述的存储器113中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备 (可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
进一步地,本申请实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
另一方面,本申请实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的方法,例如包括:确定主设备向第一从设备发送握手数据包的第一时间点,以及主设备向第二从设备发送握手数据包的第二时间点;在第一时间点和第二时间点之间的时间间隔小于或等于阈值的情况下,调整时间间隔大于阈值。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
以上实施方式仅用于说明本申请,而非对本申请的限制。尽管参照实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,对本申请的技术方案进行各种组合、修改或者等同替换,都不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围中。

Claims (10)

  1. 一种蓝牙设备连接处理方法,包括:
    确定主设备向第一从设备发送握手数据包的第一时间点,以及所述主设备向第二从设备发送握手数据包的第二时间点;
    在所述第一时间点和所述第二时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
  2. 根据权利要求1所述的蓝牙设备连接处理方法,所述方法还包括:
    确定所述主设备向第三从设备发送握手数据包的第三时间点;所述第三从设备为所述主设备待建立连接的设备;
    在所述第一时间点、所述第二时间点和所述第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
  3. 根据权利要求1或2所述的蓝牙设备连接处理方法,其中,所述调整所述时间间隔均大于所述阈值,包括:
    调整各时间点中的至少一个时间点,使得调整后的所述时间间隔大于所述阈值。
  4. 根据权利要求1或2所述的蓝牙设备连接处理方法,其中,所述调整所述时间间隔均大于所述阈值,包括:
    调整连接间隔的长度和调整各时间点中的至少一个时间点,使得调整后的所述时间间隔大于所述阈值;所述连接间隔为所述主设备向同一从设备发送握手数据包的相邻两个时间点之间的时间间隔。
  5. 根据权利要求4所述的蓝牙设备连接处理方法,其中,所述调整各时间点中的至少一个时间点,包括:
    根据调整前的时间间隔和阈值确定一随机时长,所述随机时长与调整前的时间间隔之和大于所述阈值;
    将调整前的时间点延后或提前所述随机时长,得到延后或提前的时间点;
    根据延后或提前的时间点和连接间隔确定调整后的时间点。
  6. 根据权利要求2所述的蓝牙设备连接处理方法,其中,在所述第 一时间点、所述第二时间点和所述第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值,包括:
    确定所述第三时间点与所述第一时间点之间的时间间隔小于或等于阈值,且所述第三时间点与所述第二时间点之间的时间间隔大于所述阈值,调整所述第三时间点得到第四时间点;
    确定所述第四时间点与所述第一时间点之间的时间间隔大于所述阈值,且所述第四时间点与所述第二时间点之间的时间间隔小于或等于所述阈值,调整所述第二时间点得到第五时间点;
    确定所述第一时间点、所述第四时间点和所述第五时间点之间中任意两个时间点之间的时间间隔均大于阈值。
  7. 一种蓝牙设备连接处理装置,包括:
    采集模块,用于确定主设备向第一从设备发送握手数据包的第一时间点,以及所述主设备向第二从设备发送握手数据包的第二时间点;
    处理模块,用于在所述第一时间点和所述第二时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
  8. 根据权利要求7述的蓝牙设备连接处理装置,其中,所述采集模块还用于:确定所述主设备向第三从设备发送握手数据包的第三时间点;所述第三从设备为所述主设备待建立连接的设备;
    所述处理模块还用于:在所述第一时间点、所述第二时间点和所述第三时间点中存在任意两个时间点之间的时间间隔小于或等于阈值的情况下,调整所述时间间隔大于所述阈值。
  9. 一种电子设备,包括处理器和存储有计算机程序的存储器,其中,所述处理器执行所述计算机程序时实现权利要求1至6任一项所述蓝牙设备连接处理方法的步骤。
  10. 一种非暂态计算机可读存储介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现如权利要求1至6任一项所述蓝牙设备连接处理方法的步骤。
PCT/CN2022/129535 2021-11-11 2022-11-03 蓝牙设备连接处理方法、装置、电子设备及存储介质 WO2023083091A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111335380.0 2021-11-11
CN202111335380.0A CN116112901A (zh) 2021-11-11 2021-11-11 蓝牙设备连接处理方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023083091A1 true WO2023083091A1 (zh) 2023-05-19

Family

ID=86253297

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/129535 WO2023083091A1 (zh) 2021-11-11 2022-11-03 蓝牙设备连接处理方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN116112901A (zh)
WO (1) WO2023083091A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3125481U (ja) * 2006-07-10 2006-09-21 泰金寶電通股▲ふん▼有限公司 切替可能なマルチ接続機能を有するブルートゥースイヤホーン
CN108337626A (zh) * 2017-07-28 2018-07-27 广东中实国润科技有限公司 一种基于物联网的体征信息数据采集方法及系统
CN109756876A (zh) * 2017-11-01 2019-05-14 宏达国际电子股份有限公司 多连接装置及多连接方法
CN110493763A (zh) * 2019-08-29 2019-11-22 北京智芯微电子科技有限公司 受控的被动蓝牙连接方法
CN113207113A (zh) * 2021-04-20 2021-08-03 上海富芮坤微电子有限公司 多连接组网系统、方法、存储介质及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3125481U (ja) * 2006-07-10 2006-09-21 泰金寶電通股▲ふん▼有限公司 切替可能なマルチ接続機能を有するブルートゥースイヤホーン
CN108337626A (zh) * 2017-07-28 2018-07-27 广东中实国润科技有限公司 一种基于物联网的体征信息数据采集方法及系统
CN109756876A (zh) * 2017-11-01 2019-05-14 宏达国际电子股份有限公司 多连接装置及多连接方法
CN110493763A (zh) * 2019-08-29 2019-11-22 北京智芯微电子科技有限公司 受控的被动蓝牙连接方法
CN113207113A (zh) * 2021-04-20 2021-08-03 上海富芮坤微电子有限公司 多连接组网系统、方法、存储介质及电子设备

Also Published As

Publication number Publication date
CN116112901A (zh) 2023-05-12

Similar Documents

Publication Publication Date Title
US20200068583A1 (en) Method and system for adjusting sound quality, and host terminal
US8982761B2 (en) Method, apparatus, and system for carrying out multimedia service in wireless local area
US9485342B2 (en) Wireless device system-architecture
KR101567844B1 (ko) 통화 중단율을 감소시키는 방법들 및 장치
EP3537734A1 (en) Method, apparatus, system, and device for connecting bluetooth device
US20220322059A1 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
CN113039826A (zh) 使用两种无线协议的通信设备
US11374623B2 (en) Connected isochronous stream swapping
CN115866560A (zh) 无线回连方法、装置、车辆及存储介质
WO2021072573A1 (zh) 链路处理方法、设备及存储介质
US20170346890A1 (en) File Download Method and Play Device
WO2023083091A1 (zh) 蓝牙设备连接处理方法、装置、电子设备及存储介质
CN111211933A (zh) 一种确定传输链路的质量的方法及装置
US11129119B2 (en) Data synchronization method, device and storage medium
WO2023185171A1 (zh) 数据传输方法、装置、电子设备和计算机可读存储介质
WO2023124454A1 (zh) 通信方法、装置、电子设备、计算机设备和可读存储介质
WO2020139660A1 (en) Network coordination
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
WO2022228569A1 (zh) 蓝牙设备控制传输的方法和装置、电子设备
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
WO2021226881A1 (zh) 一种数据传输方法、装置、芯片、电子设备及存储介质
CN109905327B (zh) 一种无线网络数据传输方法、发送端及接收端
WO2020038393A1 (zh) 一种数据传输方法及终端
CN112543296B (zh) 延时控制方法、装置和网络设备
WO2022141590A1 (zh) 一种业务调度方法及装置

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: 22891886

Country of ref document: EP

Kind code of ref document: A1