



技术领域technical field
本发明属于蓝牙通信领域,尤其涉及一种优化连接速度的方法及其蓝牙通信系统。The invention belongs to the field of bluetooth communication, and in particular relates to a method for optimizing connection speed and a bluetooth communication system thereof.
背景技术Background technique
随着蓝牙TWS技术的发展,LE Audio应用越来越普及,LE技术可以实现快速连接ACL,但是在TWS应用中,当连接上ACL连接后,还需要发现及配置各种服务,例如电话,音乐,音量控制服务等等。并且LE Audio手机需要连接两个不同的耳机,同时还要保证连接上的是一对耳机。左右耳建立连接的流程一样,导致同样的事情做两次,导致连接的时间太长,在连接上给用户带来了不好的体验。With the development of Bluetooth TWS technology, LE Audio applications are becoming more and more popular. LE technology can realize fast connection to ACL, but in TWS application, after connecting to ACL connection, it is necessary to discover and configure various services, such as telephone, music , volume control services, and more. And the LE Audio mobile phone needs to be connected to two different headphones, and at the same time, make sure that the connection is a pair of headphones. The process of establishing a connection between the left and right ears is the same, resulting in the same thing being done twice, resulting in a long connection time, which brings a bad experience to the user.
基于以上,本申请提供了解决以上技术问题的技术方案。Based on the above, the present application provides technical solutions to solve the above technical problems.
发明内容SUMMARY OF THE INVENTION
本发明的第一目的在于获得一种可以优化连接速度并降低功耗的蓝牙通信。The first object of the present invention is to obtain a Bluetooth communication that can optimize connection speed and reduce power consumption.
本发明的第二目的在于获得一种可以优化连接速度并降低功耗的终端设备。The second object of the present invention is to obtain a terminal device that can optimize connection speed and reduce power consumption.
本发明的第三目的在于获得一种优化蓝牙连接速度的方法。The third object of the present invention is to obtain a method for optimizing the Bluetooth connection speed.
本发明的第四目的在于获得一种可以优化连接速度并降低功耗的蓝牙通信系统。The fourth object of the present invention is to obtain a Bluetooth communication system that can optimize connection speed and reduce power consumption.
本发明的第五目的在于获得一种可以优化连接速度并降低功耗的蓝牙通信芯片。The fifth object of the present invention is to obtain a Bluetooth communication chip that can optimize connection speed and reduce power consumption.
本发明第一方面提供一种蓝牙耳机设备,包括第一蓝牙耳机和第二蓝牙耳机,所述第一蓝牙耳机与所述第二蓝牙耳机之间可无线通信连接,A first aspect of the present invention provides a Bluetooth headset device, comprising a first Bluetooth headset and a second Bluetooth headset, the first Bluetooth headset and the second Bluetooth headset can be connected by wireless communication,
所述第一蓝牙耳机配置为与终端设备之间具有第一BLE连接,且所述第一蓝牙耳机可获取来自所述终端设备的服务信息,并将所述服务信息发送给所述第二蓝牙耳机;The first Bluetooth headset is configured to have a first BLE connection with a terminal device, and the first Bluetooth headset can obtain service information from the terminal device and send the service information to the second Bluetooth earphone;
所述第二蓝牙耳机配置为,利用所述服务信息更新服务列表,并且通过与所述终端设备间的第二BLE连接进行与所述服务信息相关的通信。The second Bluetooth headset is configured to update a service list using the service information, and perform communication related to the service information through a second BLE connection with the terminal device.
在一个具体实施方式中,所述蓝牙耳机设备为TWS蓝牙耳机。In a specific embodiment, the Bluetooth headset device is a TWS Bluetooth headset.
在一个具体实施方式中,所述第一BLE连接为LE Audio蓝牙连接。In a specific embodiment, the first BLE connection is a LE Audio Bluetooth connection.
在一个具体实施方式中,所述第二BLE连接为LE Audio蓝牙连接。In a specific embodiment, the second BLE connection is a LE Audio Bluetooth connection.
更优选地,所述第一BLE连接和所述第二BLE连接均为LE Audio蓝牙连接。More preferably, the first BLE connection and the second BLE connection are both LE Audio Bluetooth connections.
在一个具体实施方式中,所述服务信息为LE Audio蓝牙协议规定的服务信息。In a specific embodiment, the service information is service information specified by the LE Audio Bluetooth protocol.
如本文所用,本发明的BLE连接包括LE Audio蓝牙协议结构。As used herein, the BLE connection of the present invention includes the LE Audio Bluetooth protocol structure.
如本文所用,本发明的LE Audio蓝牙协议包括蓝牙5.2标准协议。As used herein, the LE Audio Bluetooth protocol of the present invention includes the Bluetooth 5.2 standard protocol.
优选地,所述第二蓝牙耳机基于所述服务信息向所述终端设备发起服务配置请求,以对所述终端设备的服务进行配置。Preferably, the second Bluetooth headset initiates a service configuration request to the terminal device based on the service information, so as to configure the service of the terminal device.
优选地,所述第一蓝牙耳机还可获取来自所述终端设备的配置信息,并将所述配置信息传送给所述第二蓝牙耳机;Preferably, the first Bluetooth headset can also obtain configuration information from the terminal device, and transmit the configuration information to the second Bluetooth headset;
所述第二蓝牙耳机可利用所述配置信息对更新后的服务列表进行配置。The second Bluetooth headset may use the configuration information to configure the updated service list.
优选地,所述第二蓝牙耳机配置为,将从所述第一蓝牙耳机接收到的服务信息识别为重连缓冲信息。Preferably, the second Bluetooth headset is configured to identify service information received from the first Bluetooth headset as reconnection buffer information.
在一个具体实施方式中,所述重连缓冲信息为LE Audio蓝牙协议中的Attributecaching重连缓冲信息。In a specific embodiment, the reconnection buffer information is Attributecaching reconnection buffer information in the LE Audio Bluetooth protocol.
优选地,所述蓝牙耳机设备还包括第N个蓝牙耳机,其配置为利用所述服务信息更新服务列表,并且通过与所述终端设备间的第N个BLE连接进行与所述服务信息相关的通信,所述N为不小于2的正整数。Preferably, the Bluetooth headset device further includes an N th Bluetooth headset, which is configured to update a service list by using the service information, and perform the service information related to the N th BLE connection with the terminal device. communication, the N is a positive integer not less than 2.
本发明的第二方面提供一种终端设备,其与第一蓝牙耳机和第二蓝牙耳机无线通信连接,所述终端设备配置为:A second aspect of the present invention provides a terminal device that is wirelessly connected to a first Bluetooth headset and a second Bluetooth headset, and the terminal device is configured as:
获取所述第一蓝牙耳机的第一服务列表,并根据所述第一服务列表对所述第一蓝牙耳机进行服务配置;Acquiring a first service list of the first Bluetooth headset, and performing service configuration on the first Bluetooth headset according to the first service list;
响应于来自所述第一蓝牙耳机的服务请求,向所述第一蓝牙耳机提供第二服务列表,所述第二服务列表为所述终端设备的服务列表;In response to the service request from the first Bluetooth headset, provide the first Bluetooth headset with a second service list, where the second service list is a service list of the terminal device;
若所述终端设备将所述第一蓝牙耳机和所述第二蓝牙耳机识别为耳机对,则将所述第一服务列表与所述第二蓝牙耳机相关联。If the terminal device identifies the first Bluetooth headset and the second Bluetooth headset as a headset pair, associate the first service list with the second Bluetooth headset.
优选地,响应于来自所述第一蓝牙耳机的服务请求,所述终端设备还向所述第一蓝牙耳机提供与所述服务列表相对应的配置信息。Preferably, in response to a service request from the first Bluetooth headset, the terminal device further provides configuration information corresponding to the service list to the first Bluetooth headset.
本发明的第三方面提供一种优化蓝牙连接速度的方法,其适用于本发明所述的蓝牙耳机设备或本发明所述的终端设备,A third aspect of the present invention provides a method for optimizing Bluetooth connection speed, which is applicable to the Bluetooth headset device of the present invention or the terminal device of the present invention,
所述第一蓝牙耳机与终端设备之间具有第一BLE连接,且所述第一蓝牙耳机获取来自所述终端设备的服务信息,并将所述服务信息发送给所述第二蓝牙耳机;There is a first BLE connection between the first Bluetooth headset and the terminal device, and the first Bluetooth headset obtains service information from the terminal device, and sends the service information to the second Bluetooth headset;
所述第二蓝牙耳机利用所述服务信息更新服务列表,并且通过与所述终端设备间的第二BLE连接进行与所述服务信息相关的通信。The second Bluetooth headset uses the service information to update a service list, and performs communication related to the service information through a second BLE connection with the terminal device.
本发明的第四方面提供一种蓝牙通信系统,其包括本发明所述的蓝牙耳机设备、终端设备和可选的第M个终端电子设备,所述M为不小于2的正整数。A fourth aspect of the present invention provides a Bluetooth communication system, which includes the Bluetooth headset device of the present invention, a terminal device, and an optional Mth terminal electronic device, where M is a positive integer not less than 2.
本发明的第五方面提供一种蓝牙通信芯片,其包括,A fifth aspect of the present invention provides a Bluetooth communication chip, which includes:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现本发明所述的优化蓝牙连接速度的步骤。The processor is configured to implement the steps of optimizing the Bluetooth connection speed of the present invention when executing the computer program.
本发明能够带来以下至少一种有益效果:The present invention can bring at least one of the following beneficial effects:
1、有效地优化连接速度,改善了客户体验。1. Effectively optimize the connection speed and improve the customer experience.
2、利用了现有的蓝牙协议的资源,在不增加额外成本的情况下,实现有效的优化连接功能。2. Utilize the resources of the existing Bluetooth protocol to achieve an effective optimized connection function without increasing additional costs.
附图说明Description of drawings
下面将以明确易懂的方式,结合附图说明优选实施方式,对上述特性、技术特征、优点及其实现方式予以进一步说明。The preferred embodiments will be described below in a clear and easy-to-understand manner with reference to the accompanying drawings, and the above-mentioned characteristics, technical features, advantages and implementations thereof will be further described.
图1为LE Audio TWS连接模型;Figure 1 shows the LE Audio TWS connection model;
图2为本发明的蓝牙通信系统的一个具体实施方式,示出了其查找(discover)过程示意图;Fig. 2 is a specific embodiment of the Bluetooth communication system of the present invention, showing a schematic diagram of its discovery process;
图3示出了本发明的蓝牙通信系统的一个具体实施方式,示例性地示出了其如何优化蓝牙连接速度的示意图。FIG. 3 shows a specific embodiment of the Bluetooth communication system of the present invention, and exemplarily shows a schematic diagram of how to optimize the Bluetooth connection speed.
图4示出了本发明的蓝牙通信系统的另一个具体实施方式,示例性地示出了其如何优化蓝牙连接速度的示意图。FIG. 4 shows another specific embodiment of the Bluetooth communication system of the present invention, and exemplarily shows a schematic diagram of how to optimize the Bluetooth connection speed.
具体实施方式Detailed ways
本发明中,发明人经过了深入的思考,对现有技术进行了改进。通常,现有技术认为,可以通过LE connection interval来解决,但是当Handle太多的时候,还是比较耗时。发明人发现只要将discover到的服务信息发送给另外一个蓝牙(例如作为另外一个蓝牙蓝牙协议定义的Attribute caching),可以大大提高连接速度,并且可以降低功耗。In the present invention, the inventor has made improvements to the prior art after in-depth thinking. Generally, the prior art considers that it can be solved by LE connection interval, but when there are too many Handles, it is still time-consuming. The inventor found that as long as the discovered service information is sent to another bluetooth (for example, as the attribute caching defined by another bluetooth bluetooth protocol), the connection speed can be greatly improved, and the power consumption can be reduced.
因此,本发明的技术问题是:解决一对蓝牙耳机如何快速与终端设备(例如手机)建立蓝牙连接(BLE连接)。应当注意的是,本发明的蓝牙连接并不等同于蓝牙配对连接。所述蓝牙连接包括第一次的蓝牙配对连接,但是不限于此。Therefore, the technical problem of the present invention is to solve how to quickly establish a Bluetooth connection (BLE connection) with a terminal device (such as a mobile phone) for a pair of Bluetooth headsets. It should be noted that the Bluetooth connection of the present invention is not equivalent to the Bluetooth pairing connection. The Bluetooth connection includes the first Bluetooth pairing connection, but is not limited thereto.
本发明采用的技术构思包括:作为一对耳机,只需要一只耳机完成对手机服务信息的发现,另外一只耳机共享即可。因此,克服了现有技术仅仅通过改变LE connectioninterval的局限。The technical concept adopted by the present invention includes: as a pair of earphones, only one earphone is needed to complete the discovery of mobile phone service information, and the other earphone can be shared. Therefore, the limitation of the prior art is overcome only by changing the LE connectioninterval.
其次,将从所述第一蓝牙耳机接收到的服务信息识别为BLE蓝牙协议中的GATT重连缓冲信息,再与所述终端设备进行所述第二BLE连接。Secondly, the service information received from the first Bluetooth headset is identified as GATT reconnection buffer information in the BLE Bluetooth protocol, and then the second BLE connection is performed with the terminal device.
本发明与常规的LE Audio相比,连接速度可以大为提高。Compared with the conventional LE Audio, the connection speed of the present invention can be greatly improved.
除非另有明确的规定和限定,本发明中所述的“或”,包含了“和”的关系。所述“和”相当于布尔逻辑运算符“AND”,所述“或”相当于布尔逻辑运算符“OR”,而“AND”是“OR”的子集。Unless otherwise expressly specified and limited, "or" described in the present invention includes the relationship of "and". The "and" is equivalent to the Boolean logical operator "AND", the "or" is equivalent to the Boolean logical operator "OR", and "AND" is a subset of "OR".
除非另有明确的规定和限定,本发明的术语“相连”、“连通”、“连接”应作广义理解,例如,可以使固定连接,也可以是通过中介媒介间相连,可以是两个元件内部的连通或者两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。Unless otherwise expressly specified and limited, the terms "connected", "connected" and "connected" in the present invention should be understood in a broad sense, for example, a fixed connection may be made, or a connection between two elements may be made through an intermediary medium. Internal connectivity or interaction between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.
基于本申请,所属领域的技术人员应了解,本文中所描述的一个方面可与任何其它方面独立地实施,且可以各种方式组合这些方面中的两者或两者以上。举例来说,可使用本文中所阐述的任何数目和方面来实施设备及/或实践方法。另外,可使用除了本文中所阐述的方面中的一或多者之外的其它结构及/或功能性实施此设备及/或实践此方法。Based on this application, one skilled in the art should appreciate that an aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method may be practiced using any of the numbers and aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts, and obtain other implementations.
还需要说明的是,以下实施例中所提供的图示仅以示意方式说明本申请的基本构想,图式中仅显示与本申请中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。It should also be noted that the drawings provided in the following embodiments only illustrate the basic concept of the present application in a schematic way, and the drawings only show the components related to the present application rather than the number, shape and the number of components in actual implementation. For dimension drawing, the type, quantity and proportion of each component can be changed at will in actual implementation, and the component layout may also be more complicated.
另外,在以下描述中,提供具体细节是为了便于透彻理解实例。然而,所属领域的技术人员将理解,可在没有这些特定细节的情况下实践所述方面。术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等描述的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, one skilled in the art will understand that the described aspects may be practiced without these specific details. The terms "first", "second", etc. are used for descriptive purposes only, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined with a description of "first", "second", etc., may expressly or implicitly include one or more of that feature. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
下面结合具体实施例,进一步阐述本发明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。下列实施例中未注明具体条件的实验方法和协议,通常按照国家标准测定。若没有相应的国家标准,则按照通用的国际标准、常规条件、或按照制造厂商所建议的条件进行。The present invention will be further described below in conjunction with specific embodiments. It should be understood that these examples are only used to illustrate the present invention and not to limit the scope of the present invention. In the following examples, the experimental methods and protocols without specific conditions are usually determined according to national standards. If there is no corresponding national standard, follow the general international standards, conventional conditions, or the conditions suggested by the manufacturer.
实施例Example
本发明的一种蓝牙耳机设备,包括第一蓝牙耳机和第二蓝牙耳机,所述第一蓝牙耳机与第二蓝牙耳机之间可无线通信连接。A bluetooth headset device of the present invention includes a first bluetooth headset and a second bluetooth headset, and the first bluetooth headset and the second bluetooth headset can be connected by wireless communication.
应当注意的是,所述无线通信连接只要使得所述第一蓝牙耳机和第二蓝牙耳机进行无线通信即可。所述无线通信可以采用本领域技术人员可实施的方式。It should be noted that the wireless communication connection only needs to enable the first Bluetooth headset and the second Bluetooth headset to perform wireless communication. The wireless communication can be implemented by those skilled in the art.
更具体地,所述无线通信连接不限于LE Audio连接,可以使用普通蓝牙也可以使用BLE连接。More specifically, the wireless communication connection is not limited to LE Audio connection, and can use ordinary Bluetooth or BLE connection.
如本文所用,所述“BLE连接”,是指低功耗蓝牙连接,更具体地,是指支持蓝牙协议4.0或更高的蓝牙连接。As used herein, the "BLE connection" refers to a Bluetooth low energy connection, more specifically, a Bluetooth connection that supports Bluetooth protocol 4.0 or higher.
所述的BLE连接的含义不同于BLE配对连接,这对于本领域技术人员是已知的。The meaning of the BLE connection is different from the BLE pairing connection, which is known to those skilled in the art.
如本文所用,所述“普通蓝牙”,是指支持蓝牙协议4.0以下的蓝牙连接。As used herein, the "ordinary Bluetooth" refers to a Bluetooth connection that supports the Bluetooth protocol below 4.0.
优选地,本发明的蓝牙耳机设备为TWS蓝牙耳机。Preferably, the Bluetooth headset device of the present invention is a TWS Bluetooth headset.
如图1所示,示出了LE Audio TWS连接模型。As shown in Figure 1, the LE Audio TWS connection model is shown.
所述的蓝牙耳机设备中的第一蓝牙耳机、第二蓝牙耳机可以与终端设备进行连接。The first bluetooth earphone and the second bluetooth earphone in the bluetooth earphone device can be connected with the terminal device.
所述终端设备通常为手机、音乐播放器、车载装置等具有蓝牙的终端设备。应当理解,所述终端设备可以是本领域各种具有蓝牙并可和本发明的蓝牙耳机设备配对连接的终端设备,本发明对此不做限制。The terminal equipment is usually a mobile phone, a music player, a vehicle-mounted device, or other terminal equipment with Bluetooth. It should be understood that the terminal device may be various terminal devices in the art that have Bluetooth and can be paired and connected with the Bluetooth headset device of the present invention, which is not limited in the present invention.
所述终端电子设备的个数通常为一个。由于通常连接时间太长,目前在连接上给用户带来了不好的体验。受制于此,一般最多的终端电子设备的个数也受到了限制。The number of the terminal electronic devices is usually one. Because the connection time is usually too long, a bad experience is currently brought to the user on the connection. Due to this limitation, the number of terminal electronic devices that are generally the largest is also limited.
而本发明的终端电子设备由于连接速度提高,因此连接个数不限于此。本发明的蓝牙设备可以达到与多个终端设备连接。发明人发现,本发明在所述个数的终端电子设备连接时不至于有劣化的用户体验。However, since the connection speed of the terminal electronic device of the present invention is improved, the number of connections is not limited to this. The Bluetooth device of the present invention can achieve connection with multiple terminal devices. The inventors found that the present invention will not degrade the user experience when the number of terminal electronic devices are connected.
具体如图所示,所述蓝牙耳机设备之间的连接是ACL连接。更具体地如前所述,所述ACL连接不限于LE Audio连接,可以使用普通蓝牙也可以使用BLE连接。Specifically, as shown in the figure, the connection between the Bluetooth headset devices is an ACL connection. More specifically, as mentioned above, the ACL connection is not limited to LE Audio connection, and can use ordinary Bluetooth or BLE connection.
如图2所示,示出了图1中手机与蓝牙耳机设备进行连接时需要进行的查询(discovery)服务信息(service)的过程。As shown in FIG. 2 , it shows a process of searching (discovery) service information (service) that needs to be performed when the mobile phone and the Bluetooth headset device in FIG. 1 are connected.
如本文所用,所述的“服务信息(service)”、“GATT缓存”、“GATT信息”、“ATT”都具有与现有的蓝牙协议规定的含义。As used herein, the "service", "GATT cache", "GATT information", and "ATT" all have the meanings specified in the existing Bluetooth protocol.
图2的标注框示出了一部分的蓝牙耳机查询服务,比如音乐控制服务(MediaState),一些手机一个个的信息回复,当要查询的内容太多时,这样交互大大增加服务发现的时间。The marked box in Figure 2 shows a part of the Bluetooth headset query services, such as the music control service (MediaState), and some mobile phones reply information one by one. When there are too many contents to be queried, this interaction greatly increases the service discovery time.
应当理解,图2中的所述服务信息(Service)仅为示意,所述服务信息还可以是蓝牙协议中所规定的其他服务类信息。具体例如,MCS(音乐控制服务),TBS(电话服务)、VCS(音量控制服务)、ASCS(音频流控制服务)、PACS(音频能力服务)、CSIS等信息,但不限于此。It should be understood that the service information (Service) in FIG. 2 is only for illustration, and the service information may also be other service type information specified in the Bluetooth protocol. For example, MCS (Music Control Service), TBS (Telephony Service), VCS (Volume Control Service), ASCS (Audio Stream Control Service), PACS (Audio Capability Service), CSIS and other information, but not limited to this.
通常,本领域一般通过提高LE connection interval(LE的连接间隔时间)来解决,当服务内容太多的时候,还是比较耗时。Usually, the solution is generally solved by increasing the LE connection interval (the connection interval time of the LE) in the art. When there are too many service contents, it is still time-consuming.
基于此,发明人构思一种技术方案,希望作为一对耳机,只需要一只耳机完成对手机服务信息的发现,另外一只耳机共享即可。具体改进方案参见图3,示出了本发明的一个具体实施方式的示意图。Based on this, the inventor conceives a technical solution, hoping that as a pair of earphones, only one earphone is needed to complete the discovery of mobile phone service information, and the other earphone can be shared. For a specific improvement scheme, refer to FIG. 3 , which shows a schematic diagram of a specific embodiment of the present invention.
图3示出了当一个耳机同一个手机连上以后,直接把Service信息发给对耳。对耳直接使用从耳省去了Discover的过程。Figure 3 shows that when a headset is connected to a mobile phone, the Service information is directly sent to the opposite ear. Direct use of the ear from the ear eliminates the process of Discover.
所述第一蓝牙耳机(左耳)配置为与终端设备之间具有BLE连接。The first Bluetooth headset (left ear) is configured to have a BLE connection with the terminal device.
所述第一蓝牙耳机(左耳)可获取来自所述终端设备(手机)的服务信息(service信息),并将所述服务信息发送给所述第二蓝牙耳机(右耳)。The first Bluetooth headset (left ear) can acquire service information (service information) from the terminal device (mobile phone), and send the service information to the second Bluetooth headset (right ear).
所述第二蓝牙耳机(右耳)配置为,利用所述服务信息更新服务列表,并且通过与所述终端设备间的BLE连接进行与所述服务信息相关的通信。The second Bluetooth headset (right ear) is configured to update a service list by using the service information, and perform communication related to the service information through a BLE connection with the terminal device.
另外,虽然图3示出了左耳和右耳之间为蓝牙连接,但是应当理解,所述连接可以是所有可行的无线通信连接方式,这对于本领域技术人员是可知的,本发明对此不做限制。In addition, although FIG. 3 shows a Bluetooth connection between the left ear and the right ear, it should be understood that the connection can be any feasible wireless communication connection, which is known to those skilled in the art, and the present invention is for this No restrictions.
在一个具体实施方式中,所述蓝牙耳机设备为TWS蓝牙耳机。In a specific embodiment, the Bluetooth headset device is a TWS Bluetooth headset.
在一个具体实施方式中,所述第一BLE连接为LE Audio蓝牙连接。In a specific embodiment, the first BLE connection is a LE Audio Bluetooth connection.
在一个具体实施方式中,所述第二BLE连接为LE Audio蓝牙连接。In a specific embodiment, the second BLE connection is a LE Audio Bluetooth connection.
更优选地,所述第一BLE连接和所述第二BLE连接均为LE Audio蓝牙连接。More preferably, the first BLE connection and the second BLE connection are both LE Audio Bluetooth connections.
在一个具体实施方式中,所述服务信息为LE Audio蓝牙协议规定的服务信息。In a specific embodiment, the service information is service information specified by the LE Audio Bluetooth protocol.
如本文所用,本发明的BLE连接包括LE Audio蓝牙协议结构。As used herein, the BLE connection of the present invention includes the LE Audio Bluetooth protocol structure.
如本文所用,本发明的LE Audio蓝牙协议包括蓝牙5.2标准协议。As used herein, the LE Audio Bluetooth protocol of the present invention includes the Bluetooth 5.2 standard protocol.
图4示出了本发明的蓝牙通信系统的另一个具体实施方式。FIG. 4 shows another specific embodiment of the Bluetooth communication system of the present invention.
当BLE连接建立以后,需要完成服务发现以及配置,服务发现这个步骤主要完成发现手机提供哪些服务,同时还要对这些服务进行配置。同样手机端也需要发现耳机端的服务并进行配置。After the BLE connection is established, service discovery and configuration need to be completed. This step of service discovery mainly completes the discovery of which services the mobile phone provides, and also configures these services. Similarly, the mobile phone side also needs to discover and configure the services on the headset side.
而本发明的改进具体流程如下:And the improvement concrete flow process of the present invention is as follows:
步骤1及其后续的步骤8、10、11各自为蓝牙广播步骤。
步骤2-1和2-2为终端设备和第一蓝牙耳机之间的连接请求和连接成功步骤。Steps 2-1 and 2-2 are the connection request and connection success steps between the terminal device and the first Bluetooth headset.
对部分重复工作的改进主要包括步骤3(3-1和3-2),步骤4(4-1和4-2)。步骤3和步骤4分别对应手机来发现和配置耳机的服务以及耳机来发现和配置手机服务(步骤5,具体包括步骤5-1和步骤5-2;和步骤6,具体包括步骤6-1和步骤6-2)。Improvements to some repetitive work mainly include steps 3 (3-1 and 3-2) and step 4 (4-1 and 4-2).
针对步骤3和4中的耳机端:For the headphone end in
当一个耳机同一个手机连上以后,直接把当前Service信息发给对耳(步骤7)。对耳直接使用从耳(右耳)省去服务发现过程,省掉步骤3,考虑到手机不使用另外一个耳机端的缓存的服务UUID以及值,这里需要发起配置流程,步骤4不能省略,反之4也可以省略。When a headset is connected to a mobile phone, the current Service information is directly sent to the opposite ear (step 7). Direct use of the opposite ear from the ear (right ear) omits the service discovery process, and
缓存的信息包括MCS(音乐控制服务)、TBS(电话服务)、VCS(音量控制服务)、ASCS(音频流控制服务)、PACS(音频能力服务)、CSIS等信息。The cached information includes MCS (Music Control Service), TBS (Telephony Service), VCS (Volume Control Service), ASCS (Audio Stream Control Service), PACS (Audio Capability Service), CSIS and other information.
针对5、6中的手机端:For mobile terminals in 5 and 6:
当手机连接上一个耳机后,再次连一个组(成对)的耳机时,直接复用当前连接的Service信息(步骤7)。不用再做发现流程,如果耳机端支持缓存配置,可以省去配置流程,如果手机不支持任然需要发起配置流程。After the mobile phone is connected to a headset, when a group (paired) headset is connected again, the currently connected Service information is directly multiplexed (step 7). There is no need to do the discovery process. If the headset supports cache configuration, the configuration process can be omitted. If the mobile phone does not support it, the configuration process still needs to be initiated.
通过上面的步骤,在第一次配对的时候耳机端和手机端直接复用第一个连接上的所有服务信息。这样大大提供了连接速度。当配对完以后,第二次连接使用GATT Cashing机制加快连接速度,从耳改善了LE Audio TWS应用体验(步骤9,包括步骤9-1和9-2)。Through the above steps, when pairing for the first time, the headset end and the mobile phone end directly multiplex all the service information on the first connection. This greatly improves the connection speed. After pairing, the second connection uses the GATT Cashing mechanism to speed up the connection and improve the LE Audio TWS application experience from the ear (step 9, including steps 9-1 and 9-2).
如果当前手机没有同耳机连接过,没有GATT Caching。所以在第一次连接配对的时候,服务发现和配置会带来一定的时间开销步骤1和步骤2部分(包括步骤2-1和步骤2-2)If the current phone is not connected to the headset, there is no GATT Caching. Therefore, when the first connection is paired, service discovery and configuration will bring a certain time overhead.
这里采用把已经discover完成的连接信息发送给另外一个耳机,作为另一个耳机的Attribute caching。Here, the connection information that has been discovered is sent to another headset as attribute caching for the other headset.
综上所述,发明人利用了蓝牙协议定义的Attribute caching功能,当重连的时候可以直接使用缓存的Attribute Handles,不用再去做discover流程。In summary, the inventor uses the attribute caching function defined by the Bluetooth protocol, and can directly use the cached Attribute Handles when reconnecting, without having to go through the discovery process.
此外,再与第N个终端电子设备连接时,可以继续续复用第一个连接上的所有服务信息(步骤10-12)。这样大大提供了连接速度。In addition, when connecting to the Nth terminal electronic device, all the service information on the first connection can be continuously reused (steps 10-12). This greatly improves the connection speed.
本发明的原理如下,The principle of the present invention is as follows,
将从所述第一蓝牙耳机接收到的服务信息识别为BLE蓝牙协议中的GATT重连缓冲信息,再与所述终端设备进行所述第二BLE连接。The service information received from the first Bluetooth headset is identified as GATT reconnection buffer information in the BLE Bluetooth protocol, and then the second BLE connection is performed with the terminal device.
第二个耳机BLE ACL连接上以后,上层服务信息完全复用第一只耳机的信息,所以时间开销只在耗费在连接第二个耳机的BLE ACL Link(BLE连接)上,从而能够克服上述连接慢的技术缺点,使用LE Audio带来更好的体验。After the second headset BLE ACL is connected, the upper-layer service information completely reuses the information of the first headset, so the time overhead is only spent on the BLE ACL Link (BLE connection) connecting the second headset, which can overcome the above connection. Slow technical shortcomings, using LE Audio brings a better experience.
应当理解的是,本发明的第一蓝牙耳机和第二蓝牙耳机与终端设备均为实体连接,因此主从耳机之间不同于监听方案中的主从关系。本发明提供了一种替代监听方案的蓝牙连接方式。同时,改善了现有的监听替代方案的连接时间太长的问题。It should be understood that the first Bluetooth headset and the second Bluetooth headset of the present invention are all physically connected to the terminal device, so the master-slave headset is different from the master-slave relationship in the monitoring solution. The present invention provides a bluetooth connection mode that replaces the monitoring scheme. At the same time, the problem that the connection time of the existing monitoring alternative is too long is improved.
更优选的是,本发明的连接方案同样适用于接入多个蓝牙、或是多个终端的应用场景。More preferably, the connection solution of the present invention is also applicable to the application scenario of accessing multiple Bluetooth or multiple terminals.
更需要指出的是,本发明选择了节省服务信息的时间花销,因此使得连接时间大为减少,达到数秒以上(例如2-3秒等),获得了预期之外的效果。It should be pointed out that the present invention chooses to save the time cost of service information, so the connection time is greatly reduced, reaching more than a few seconds (for example, 2-3 seconds, etc.), and an unexpected effect is obtained.
本发明的效果如下,The effects of the present invention are as follows,
(1)不需要双耳都做discover服务,优化了连接速度,降低了功耗。例如,(1) There is no need for both ears to do the discovery service, which optimizes the connection speed and reduces power consumption. E.g,
(2)在LE Audio应用中,手机需要同两个耳机分别建立连接,建立连接后分别发现以及配置服务,这里第二个连接的耳机只需要花费BLE ACL连接的时间,服务配置信息完成复用第一个连接上的耳机。这样加快了连接过程。同时可以连接多个终端电子设备而不会影响连接速度。(2) In the LE Audio application, the mobile phone needs to establish a connection with the two earphones respectively. After the connection is established, the service is discovered and configured respectively. Here, the second connected earphone only needs to spend the time of the BLE ACL connection, and the service configuration information is multiplexed. The first connected headset. This speeds up the connection process. Multiple terminal electronic devices can be connected at the same time without affecting the connection speed.
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
在本发明提及的所有文献都在本申请中引用作为参考,就如同每一篇文献被单独引用作为参考那样。此外应理解,在阅读了本发明的上述内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。All documents mentioned herein are incorporated by reference in this application as if each document were individually incorporated by reference. In addition, it should be understood that after reading the above content of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210114627.4ACN114531673B (en) | 2022-01-30 | 2022-01-30 | Method for optimizing Bluetooth connection speed and Bluetooth earphone device thereof |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210114627.4ACN114531673B (en) | 2022-01-30 | 2022-01-30 | Method for optimizing Bluetooth connection speed and Bluetooth earphone device thereof |
| Publication Number | Publication Date |
|---|---|
| CN114531673Atrue CN114531673A (en) | 2022-05-24 |
| CN114531673B CN114531673B (en) | 2025-08-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210114627.4AActiveCN114531673B (en) | 2022-01-30 | 2022-01-30 | Method for optimizing Bluetooth connection speed and Bluetooth earphone device thereof |
| Country | Link |
|---|---|
| CN (1) | CN114531673B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115119190A (en)* | 2022-06-21 | 2022-09-27 | 恒玄科技(上海)股份有限公司 | Bluetooth connection method, device, computer equipment and readable storage medium |
| WO2024001134A1 (en)* | 2022-06-30 | 2024-01-04 | Oppo广东移动通信有限公司 | Method and apparatus for connecting audio device, and storage medium and device |
| WO2024139364A1 (en)* | 2022-12-30 | 2024-07-04 | 荣耀终端有限公司 | Connection method for bluetooth hearing aid, and electronic device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108616847A (en)* | 2016-12-07 | 2018-10-02 | 海能达通信股份有限公司 | A kind of linking bluetooth method, apparatus and bluetooth equipment |
| CN109983791A (en)* | 2016-11-22 | 2019-07-05 | 伯斯有限公司 | Wireless audio tethers system |
| CN111464920A (en)* | 2020-03-31 | 2020-07-28 | 歌尔科技有限公司 | Earphone debugging method, device and storage medium |
| CN112469015A (en)* | 2019-09-06 | 2021-03-09 | 华为技术有限公司 | Bluetooth connection method and electronic equipment |
| CN113366439A (en)* | 2018-12-26 | 2021-09-07 | 荣耀终端有限公司 | Method and device for connecting Bluetooth device |
| WO2021239032A1 (en)* | 2020-05-29 | 2021-12-02 | Oppo广东移动通信有限公司 | Bluetooth protocol connection method and apparatus, storage medium, and related device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109983791A (en)* | 2016-11-22 | 2019-07-05 | 伯斯有限公司 | Wireless audio tethers system |
| CN108616847A (en)* | 2016-12-07 | 2018-10-02 | 海能达通信股份有限公司 | A kind of linking bluetooth method, apparatus and bluetooth equipment |
| CN113366439A (en)* | 2018-12-26 | 2021-09-07 | 荣耀终端有限公司 | Method and device for connecting Bluetooth device |
| CN112469015A (en)* | 2019-09-06 | 2021-03-09 | 华为技术有限公司 | Bluetooth connection method and electronic equipment |
| CN111464920A (en)* | 2020-03-31 | 2020-07-28 | 歌尔科技有限公司 | Earphone debugging method, device and storage medium |
| WO2021239032A1 (en)* | 2020-05-29 | 2021-12-02 | Oppo广东移动通信有限公司 | Bluetooth protocol connection method and apparatus, storage medium, and related device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115119190A (en)* | 2022-06-21 | 2022-09-27 | 恒玄科技(上海)股份有限公司 | Bluetooth connection method, device, computer equipment and readable storage medium |
| WO2024001134A1 (en)* | 2022-06-30 | 2024-01-04 | Oppo广东移动通信有限公司 | Method and apparatus for connecting audio device, and storage medium and device |
| WO2024139364A1 (en)* | 2022-12-30 | 2024-07-04 | 荣耀终端有限公司 | Connection method for bluetooth hearing aid, and electronic device |
| Publication number | Publication date |
|---|---|
| CN114531673B (en) | 2025-08-19 |
| Publication | Publication Date | Title |
|---|---|---|
| US10693969B2 (en) | Electronic device using logical channels for communication | |
| CN114531673A (en) | Method for optimizing Bluetooth connection speed and Bluetooth earphone device thereof | |
| CN108600892B (en) | Upgrading method and device, wireless headset, TWS headset and charging box | |
| US11800337B2 (en) | Method and apparatus for establishing Bluetooth data channel | |
| CN111277988B (en) | Method for improving Bluetooth transmission speed of WeChat applet | |
| EP3923608A1 (en) | Data transmission method between tws bluetooth devices and tws bluetooth device therefor | |
| CN113810887A (en) | Bluetooth protocol connection method, device, storage medium and related equipment | |
| CN115396856B (en) | Method, device, equipment and storage medium for establishing Bluetooth link | |
| WO2020147460A1 (en) | Service-based communication method, unit and system, and storage medium | |
| WO2020113591A1 (en) | Method and terminal device for dynamically adjusting version of avrcp | |
| WO2021093767A1 (en) | Resource determination method, resource configuration method, terminal, and network device | |
| CN110166988A (en) | A kind of wireless communication system and its method | |
| AU2019431307B2 (en) | Wireless connection method, device group, system, and storage medium | |
| CN113556217B (en) | Communication method, network device, terminal device, and storage medium | |
| CN109976694B (en) | Device, terminal, method and processor system for data transmission | |
| CN110351784A (en) | A kind of information transferring method and device | |
| CN116321084A (en) | Bluetooth communication method, device, electronic device and computer readable medium | |
| CN112367685B (en) | A method, device and mobile terminal for improving NR eMBB service transmission performance | |
| CN114885261A (en) | Earphone assembly, wireless audio playing system and communication method thereof | |
| CN113301113A (en) | A kind of profile version determination method, system, electronic device and computer storage medium | |
| CN106997328B (en) | Mobile phone control method based on universal serial bus audio protocol | |
| CN113453160B (en) | Communication method and related equipment | |
| CN110166537B (en) | PDU session establishment method, network equipment and user terminal | |
| CN114697258B (en) | Data communication method, device, electronic equipment and storage medium | |
| EP4518377A1 (en) | Bluetooth data processing method, terminal device, and readable storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |