CN110830970B - Audio transmission method, device, equipment and storage medium between Bluetooth equipment - Google Patents
Audio transmission method, device, equipment and storage medium between Bluetooth equipment Download PDFInfo
- Publication number
- CN110830970B CN110830970B CN201911134466.XA CN201911134466A CN110830970B CN 110830970 B CN110830970 B CN 110830970B CN 201911134466 A CN201911134466 A CN 201911134466A CN 110830970 B CN110830970 B CN 110830970B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- audio
- slave
- bluetooth device
- chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Transmitters (AREA)
Abstract
本申请实施例公开了一种蓝牙设备间的音频传输方法、装置、设备及存储介质,属于蓝牙技术领域。所述方法:第一蓝牙设备通过n个蓝牙芯片中的m个蓝牙芯片,与第二蓝牙设备建立m条蓝牙连接,第二蓝牙设备中设置有至少m个蓝牙芯片,m大于等于2,且m小于等于n;接收音频播放指令,音频播放指令用于指示通过第二蓝牙设备播放第一蓝牙设备中的音频;根据音频播放指令,通过m条蓝牙连接向第二蓝牙设备发送音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据。本申请实施例中蓝牙设备间的传输带宽得到了提高,进而能够实现高品质音频播放,提高了蓝牙音频的播放音质。
The embodiment of the present application discloses an audio transmission method, device, device and storage medium between Bluetooth devices, belonging to the technical field of Bluetooth. The method: the first bluetooth device establishes m bluetooth connections with the second bluetooth device through m bluetooth chips in the n bluetooth chips, the second bluetooth device is provided with at least m bluetooth chips, m is greater than or equal to 2, and m is less than or equal to n; receive an audio playback instruction, the audio playback instruction is used to instruct to play the audio in the first Bluetooth device through the second Bluetooth device; according to the audio playback instruction, send audio data to the second Bluetooth device through m Bluetooth connections, wherein , different Bluetooth connections are used to send audio data for the same audio. In the embodiment of the present application, the transmission bandwidth between Bluetooth devices has been improved, thereby realizing high-quality audio playback and improving the playback sound quality of Bluetooth audio.
Description
技术领域technical field
本申请实施例涉及蓝牙技术领域,特别涉及一种蓝牙设备间的音频传输方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of Bluetooth, and in particular to an audio transmission method, device, device and storage medium between Bluetooth devices.
背景技术Background technique
蓝牙(Bluetooth)作为一种近距离无线通信技术,因其具备低功耗、低成本等特点,被广泛应用于移动终端、耳机、音箱等电子设备。As a short-range wireless communication technology, Bluetooth (Bluetooth) is widely used in electronic devices such as mobile terminals, earphones, and speakers because of its low power consumption and low cost.
相关技术中,对于设置有蓝牙芯片的移动终端和音箱,当移动终端与音箱建立蓝牙连接后,移动终端可以通过蓝牙连接将音频数据发送至音箱,音箱接收到音频数据后进行解析播放,从而摆脱移动终端与音箱之间连接线的束缚。然而,受限于蓝牙音频传输协议,蓝牙设备间的最大传输带宽被限制在1M/s,导致蓝牙音频的播放音质较差。In related technologies, for mobile terminals and speakers equipped with Bluetooth chips, when a Bluetooth connection is established between the mobile terminal and the speakers, the mobile terminal can send audio data to the speakers through the Bluetooth connection, and the speakers will analyze and play the audio data after receiving the audio data, thereby getting rid of the The shackles of the connecting wire between the mobile terminal and the speaker. However, limited by the Bluetooth audio transmission protocol, the maximum transmission bandwidth between Bluetooth devices is limited to 1M/s, resulting in poor playback sound quality of Bluetooth audio.
发明内容Contents of the invention
本申请实施例提供了一种蓝牙设备间的音频传输方法、装置、设备及存储介质。所述技术方案如下:Embodiments of the present application provide an audio transmission method, device, device, and storage medium between Bluetooth devices. Described technical scheme is as follows:
一方面,提供了一种蓝牙设备间的音频传输方法,所述方法用于第一蓝牙设备,所述第一蓝牙设备中设置有n个蓝牙芯片,n大于等于2,所述方法包括:On the one hand, an audio transmission method between Bluetooth devices is provided, the method is used for a first Bluetooth device, and n Bluetooth chips are set in the first Bluetooth device, and n is greater than or equal to 2, and the method includes:
通过所述n个蓝牙芯片中的m个蓝牙芯片,与第二蓝牙设备建立m条蓝牙连接,所述第二蓝牙设备中设置有至少m个蓝牙芯片,m大于等于2,且m小于等于n;Establish m bluetooth connections with the second bluetooth device through the m bluetooth chips in the n bluetooth chips, the second bluetooth device is provided with at least m bluetooth chips, m is greater than or equal to 2, and m is less than or equal to n ;
接收音频播放指令,所述音频播放指令用于指示通过所述第二蓝牙设备播放所述第一蓝牙设备中的音频;Receiving an audio play instruction, the audio play instruction is used to instruct to play the audio in the first Bluetooth device through the second Bluetooth device;
根据所述音频播放指令,通过所述m条蓝牙连接向所述第二蓝牙设备发送音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据。According to the audio playing instruction, audio data is sent to the second Bluetooth device through the m Bluetooth connections, wherein different Bluetooth connections are used to send audio data of the same audio.
另一方面,提供了一种蓝牙设备间的音频传输方法,所述方法用于第二蓝牙设备,所述第二蓝牙设备中设置有至少两个蓝牙芯片,所述方法包括:In another aspect, a method for audio transmission between Bluetooth devices is provided, the method is used for a second Bluetooth device, and at least two Bluetooth chips are arranged in the second Bluetooth device, and the method includes:
通过所述至少两个蓝牙芯片中的m个蓝牙芯片,与第一蓝牙设备建立m条蓝牙连接,所述第一蓝牙设备中设置有n个蓝牙芯片,m大于等于2,且m小于等于n;Establish m bluetooth connections with the first bluetooth device through m bluetooth chips in the at least two bluetooth chips, where n bluetooth chips are set in the first bluetooth device, m is greater than or equal to 2, and m is less than or equal to n ;
通过所述m条蓝牙连接接收所述第一蓝牙设备发送的音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据;Receive audio data sent by the first Bluetooth device through the m Bluetooth connections, wherein different Bluetooth connections are used to send audio data of the same audio;
根据所述音频数据进行音频播放。Play audio according to the audio data.
另一方面,提供了一种蓝牙设备间的音频传输装置,所述装置用于第一蓝牙设备,所述第一蓝牙设备中设置有n个蓝牙芯片,n大于等于2,所述装置包括:In another aspect, an audio transmission device between Bluetooth devices is provided, the device is used for a first Bluetooth device, and n Bluetooth chips are arranged in the first Bluetooth device, n is greater than or equal to 2, and the device includes:
第一连接模块,用于通过所述n个蓝牙芯片中的m个蓝牙芯片,与第二蓝牙设备建立m条蓝牙连接,所述第二蓝牙设备中设置有至少m个蓝牙芯片,m大于等于2,且m小于等于n;The first connection module is configured to establish m bluetooth connections with the second bluetooth device through m bluetooth chips in the n bluetooth chips, the second bluetooth device is provided with at least m bluetooth chips, and m is greater than or equal to 2, and m is less than or equal to n;
指令接收模块,用于接收音频播放指令,所述音频播放指令用于指示通过所述第二蓝牙设备播放所述第一蓝牙设备中的音频;An instruction receiving module, configured to receive an audio playing instruction, and the audio playing instruction is used to instruct to play the audio in the first Bluetooth device through the second Bluetooth device;
数据发送模块,用于根据所述音频播放指令,通过所述m条蓝牙连接向所述第二蓝牙设备发送音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据。The data sending module is configured to send audio data to the second Bluetooth device through the m Bluetooth connections according to the audio playback instruction, wherein different Bluetooth connections are used to send audio data of the same audio.
另一方面,提供了一种蓝牙设备间的音频传输装置,所述装置用于第二蓝牙设备,所述第二蓝牙设备中设置有至少两个蓝牙芯片,所述装置包括:In another aspect, an audio transmission device between Bluetooth devices is provided, the device is used for a second Bluetooth device, and at least two Bluetooth chips are arranged in the second Bluetooth device, and the device includes:
第二连接模块,用于通过所述至少两个蓝牙芯片中的m个蓝牙芯片,与第一蓝牙设备建立m条蓝牙连接,所述第一蓝牙设备中设置有n个蓝牙芯片,m大于等于2,且m小于等于n;The second connection module is used to establish m bluetooth connections with the first bluetooth device through the m bluetooth chips of the at least two bluetooth chips, the first bluetooth device is provided with n bluetooth chips, and m is greater than or equal to 2, and m is less than or equal to n;
数据接收模块,用于通过所述m条蓝牙连接接收所述第一蓝牙设备发送的音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据;A data receiving module, configured to receive the audio data sent by the first Bluetooth device through the m Bluetooth connections, wherein different Bluetooth connections are used to send audio data of the same audio;
播放模块,用于根据所述音频数据进行音频播放。The playing module is used for playing audio according to the audio data.
另一方面,提供了一种蓝牙设备,所述蓝牙设备包括处理器、存储器和至少两个蓝牙芯片;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的蓝牙设备间的音频传输方法。In another aspect, a bluetooth device is provided, the bluetooth device includes a processor, a memory and at least two bluetooth chips; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to Realize the audio transmission method between Bluetooth devices as described in the above aspects.
另一方面,提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的蓝牙设备间的音频传输方法。In another aspect, a computer-readable storage medium is provided, the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the audio transmission method between Bluetooth devices as described in the above aspect .
另一方面,还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上述方面所述的蓝牙设备间的音频传输方法。In another aspect, a computer program product is also provided, the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the audio transmission method between Bluetooth devices as described in the above aspect.
本申请实施例中,通过在蓝牙设备中设置至少两个蓝牙芯片,并通过至少两个蓝牙芯片在蓝牙设备之间建立至少两条蓝牙连接,从而在进行音频传输时,通过至少两条蓝牙连接进行音频数据传输;相较于相关技术,本申请实施例中蓝牙设备间的传输带宽得到了提高,进而能够实现高品质音频播放,提高了蓝牙音频的播放音质。In the embodiment of the present application, at least two Bluetooth chips are set in the Bluetooth device, and at least two Bluetooth connections are established between the Bluetooth devices through the at least two Bluetooth chips, so that during audio transmission, at least two Bluetooth connections Perform audio data transmission; compared with related technologies, the transmission bandwidth between Bluetooth devices in the embodiment of the present application has been improved, thereby enabling high-quality audio playback and improving the playback sound quality of Bluetooth audio.
附图说明Description of drawings
图1示出了本申请一个示例性实施例提供的蓝牙设备的结构方框图;Fig. 1 shows the structural block diagram of the bluetooth device that an exemplary embodiment of the present application provides;
图2示出了本申请一个示例性实施例提供了实施环境的示意图;FIG. 2 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
图3示出了本申请另一个示例性实施例提供了实施环境的示意图;FIG. 3 shows another exemplary embodiment of the present application providing a schematic diagram of an implementation environment;
图4示出了本申请一个示例性实施例示出的蓝牙设备间的音频传输方法的流程图;FIG. 4 shows a flowchart of an audio transmission method between Bluetooth devices shown in an exemplary embodiment of the present application;
图5示出了本申请另一个示例性实施例示出的蓝牙设备间的音频传输方法的流程图;FIG. 5 shows a flowchart of an audio transmission method between Bluetooth devices shown in another exemplary embodiment of the present application;
图6是第一蓝牙设备建立从蓝牙连接过程的流程图;Fig. 6 is a flowchart of the first bluetooth device establishing a slave bluetooth connection process;
图7是第二蓝牙设备建立从蓝牙连接过程的流程图;Fig. 7 is a flow chart of the second bluetooth device establishing a slave bluetooth connection process;
图8是一个示例性实施例提供的蓝牙协议栈的示意图;Fig. 8 is a schematic diagram of a bluetooth protocol stack provided by an exemplary embodiment;
图9示出了本申请一个实施例提供的蓝牙设备间的音频传输装置结构框图;FIG. 9 shows a structural block diagram of an audio transmission device between Bluetooth devices provided by an embodiment of the present application;
图10示出了本申请另一个实施例提供的蓝牙设备间的音频传输装置结构框图。Fig. 10 shows a structural block diagram of an audio transmission device between Bluetooth devices provided by another embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
请参考图1,其示出了本申请一个示例性实施例提供的蓝牙设备100的结构方框图。该蓝牙设备100可以是智能手机、平板电脑、笔记本电脑、蓝牙音箱、蓝牙耳机等。本申请中的蓝牙设备100可以包括一个或多个如下部件:处理器110、存储器120以及至少两个蓝牙芯片130。Please refer to FIG. 1 , which shows a structural block diagram of a Bluetooth
处理器110可以包括一个或者多个处理核心。处理器110利用各种接口和线路连接整个蓝牙设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行蓝牙设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责图像的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器120包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据蓝牙设备100的使用所创建的数据(比如音频数据、电话本)等。The
蓝牙芯片130是用于进行蓝牙通信的芯片。本申请实施例中的蓝牙设备100中设置有至少两个蓝牙芯片130,其中,不同蓝牙芯片130对应不同的蓝牙媒体访问控制(MediaAccess Control,MAC)地址。可选的,各个蓝牙芯片130遵循相同的蓝牙协议,比如蓝牙4.0协议、蓝牙5.0协议等等,本申请对此不做限定。The Bluetooth
在一种可能的实施方式中,至少两个蓝牙芯片130中包含一个主蓝牙芯片和至少一个从蓝牙芯片,其中,主蓝牙芯片实现蓝牙设备100的主要蓝牙功能,包括蓝牙数据传输、蓝牙音频播放、蓝牙定位等等,从蓝牙芯片提供额外的蓝牙音频播放功能。可选的,各个蓝牙芯片130可以单独工作,也可以多个蓝牙芯片130同时工作。In a possible implementation manner, at least two Bluetooth
除此之外,本领域技术人员可以理解,上述附图所示出的蓝牙设备100的结构并不构成对蓝牙设备100的限定,蓝牙设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,当蓝牙设备100为智能手机时,蓝牙设备100中还包括显示屏、射频电路、无线保真(WirelessFidelity,WiFi)模块、传感器、电源等等;当蓝牙设备100为蓝牙音箱时,蓝牙设备100中还包括音频电路、扬声器、电源等等,本申请实施例在此不再赘述。In addition, those skilled in the art can understand that the structure of the
请参考图2,其示出了本申请一个示例性实施例提供了实施环境的示意图,该实施环境中包括第一蓝牙设备210和第二蓝牙设备220。Please refer to FIG. 2 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, and the implementation environment includes a
第一蓝牙设备210和第二蓝牙设备220中均设置有至少两个蓝牙芯片。图2中,以第一蓝牙设备210为设置有两个蓝牙芯片的智能手机,第二蓝牙设备220为设置有两个蓝牙芯片的智能音箱为例进行说明。Both the
在一种可能的应用场景下,当需要通过第二蓝牙设备220播放第一蓝牙设备210中的音频时,第一蓝牙设备210与第二蓝牙设备220之间即建立两条蓝牙连接,并分别通过两条蓝牙连接向第二蓝牙设备220发送音频数据,由第二蓝牙设备220根据接收到的音频数据进行音频播放。In a possible application scenario, when the audio in the
相较于相关技术中,蓝牙设备之间仅能够通过单一蓝牙芯片进行音频数据传输,本申请实施例中,通过设置多个蓝牙芯片,可以实现单一蓝牙设备建立多条蓝牙连接,从而增加了蓝牙设备间的传输带宽。比如,当单个蓝牙芯片的传输带宽为1M/s时,若在蓝牙设备中设置两个蓝牙芯片,则蓝牙设备的传输带宽可以提升至2M/s,使蓝牙设备能够通过蓝牙连接播放高品质的无损音频(码率在1.4M/s以上)。Compared with related technologies, Bluetooth devices can only transmit audio data through a single Bluetooth chip. In the embodiment of the present application, by setting multiple Bluetooth chips, a single Bluetooth device can establish multiple Bluetooth connections, thereby increasing the number of Bluetooth devices. Transmission bandwidth between devices. For example, when the transmission bandwidth of a single Bluetooth chip is 1M/s, if two Bluetooth chips are installed in the Bluetooth device, the transmission bandwidth of the Bluetooth device can be increased to 2M/s, so that the Bluetooth device can play high-quality video through the Bluetooth connection. Lossless audio (code rate above 1.4M/s).
当然,除了与同一蓝牙设备建立至少两条蓝牙连接外,在其他可能的应用场景下,设置有至少两个蓝牙芯片的第一蓝牙设备还可以同时与多个传统蓝牙设备(设置有一个蓝牙芯片)建立蓝牙连接,从而分别控制多个传统蓝牙设备进行蓝牙音频播放。示意性的,如图3所示,第一蓝牙设备210可以分别与蓝牙耳机230以及传统蓝牙音箱240(均设置有一个蓝牙芯片)建立蓝牙连接,从而控制蓝牙耳机230和传统蓝牙音箱240播放相同或不同的音频。Of course, in addition to establishing at least two Bluetooth connections with the same Bluetooth device, in other possible application scenarios, the first Bluetooth device with at least two Bluetooth chips can also communicate with multiple traditional Bluetooth devices (with one Bluetooth chip) at the same time. ) to establish a Bluetooth connection, thereby separately controlling multiple traditional Bluetooth devices to play Bluetooth audio. Schematically, as shown in FIG. 3 , the
此外,本申请实施例中,除了通过多个蓝牙芯片传输音频外,在其他可能的实施方式中,蓝牙设备之间还可以通过多个蓝牙芯片进行数据传输,从而提高数据传输的速率,本实施例对此不做限定。In addition, in the embodiment of the present application, in addition to transmitting audio through multiple Bluetooth chips, in other possible implementations, data transmission between Bluetooth devices can also be performed through multiple Bluetooth chips, thereby increasing the rate of data transmission. Examples are not limited to this.
请参考图4,其示出了本申请一个示例性实施例示出的蓝牙设备间的音频传输方法的流程图。本实施例以该方法应用于图2所示的实施环境来举例说明。该方法包括:Please refer to FIG. 4 , which shows a flowchart of an audio transmission method between Bluetooth devices according to an exemplary embodiment of the present application. This embodiment is described by taking the method applied to the implementation environment shown in FIG. 2 as an example. The method includes:
步骤401,第一蓝牙设备通过n个蓝牙芯片中的m个蓝牙芯片,与第二蓝牙设备建立m条蓝牙连接,第二蓝牙设备中设置有至少m个蓝牙芯片,m大于等于2,且m小于等于n。Step 401, the first bluetooth device establishes m bluetooth connections with the second bluetooth device through m bluetooth chips among the n bluetooth chips, the second bluetooth device is provided with at least m bluetooth chips, m is greater than or equal to 2, and m less than or equal to n.
在一种可能的实施方式中,第一蓝牙设备开启蓝牙功能后,即通过n个蓝牙芯片中的至少一个蓝牙芯片进行蓝牙扫描,并在蓝牙扫描界面中显示扫描到的至少一个蓝牙设备,该至少一个蓝牙设备中即包含第二蓝牙设备。当接收到对第二蓝牙设备的选中操作时,第一蓝牙设备即通过至少两个蓝牙芯片,与第二蓝牙设备建立至少两条蓝牙连接。In a possible implementation manner, after the first Bluetooth device turns on the Bluetooth function, at least one Bluetooth chip in the n Bluetooth chips performs Bluetooth scanning, and displays at least one scanned Bluetooth device in the Bluetooth scanning interface. The at least one bluetooth device includes the second bluetooth device. When receiving the selection operation of the second bluetooth device, the first bluetooth device establishes at least two bluetooth connections with the second bluetooth device through at least two bluetooth chips.
在一个示意性的例子中,第一蓝牙设备中设置有2个蓝牙芯片,且第二蓝牙设备中设置有2个蓝牙芯片,第一蓝牙设备即可与第二蓝牙设备建立2条蓝牙连接。In a schematic example, the first Bluetooth device is provided with 2 Bluetooth chips, and the second Bluetooth device is provided with 2 Bluetooth chips, the first Bluetooth device can establish 2 Bluetooth connections with the second Bluetooth device.
在另一个示意性的例子中,第一蓝牙设备中设置有3个蓝牙芯片,且第二蓝牙设备中设置有2个蓝牙芯片,第一蓝牙设备即可与第二蓝牙设备建立2条蓝牙连接。In another illustrative example, the first Bluetooth device is provided with 3 Bluetooth chips, and the second Bluetooth device is provided with 2 Bluetooth chips, the first Bluetooth device can establish 2 Bluetooth connections with the second Bluetooth device .
步骤402,第二蓝牙设备通过至少两个蓝牙芯片中的m个蓝牙芯片,与第一蓝牙设备建立m条蓝牙连接。In step 402, the second Bluetooth device establishes m Bluetooth connections with the first Bluetooth device through m Bluetooth chips among the at least two Bluetooth chips.
对应的,第二蓝牙设备与第一蓝牙设备建立m条蓝牙连接。Correspondingly, the second Bluetooth device establishes m Bluetooth connections with the first Bluetooth device.
步骤403,第一蓝牙设备接收音频播放指令,音频播放指令用于指示通过第二蓝牙设备播放第一蓝牙设备中的音频。Step 403, the first bluetooth device receives an audio play instruction, and the audio play instruction is used to instruct the second bluetooth device to play the audio in the first bluetooth device.
本申请实施例中,第二蓝牙设备是具有音频播放功能蓝牙设备,比如,第二蓝牙设备为蓝牙音箱或者蓝牙耳机,与第二蓝牙设备建立蓝牙连接后,第一蓝牙设备即可通过第二蓝牙设备播放进行音频播放。In the embodiment of this application, the second Bluetooth device is a Bluetooth device with audio playback function. For example, the second Bluetooth device is a Bluetooth speaker or a Bluetooth headset. After establishing a Bluetooth connection with the second Bluetooth device, the first Bluetooth device can pass through the second Bluetooth device. Bluetooth device playback for audio playback.
可选的,该音频播放指令由用户手动触发,比如当接收到对第一蓝牙设备中音视频文件的播放操作时,确定接收到音频播放指令;或者,该音频播放指令也可以在建立蓝牙连接后自动触发,比如当与第二蓝牙设备建立蓝牙设备后,第一蓝牙设备即通过第二蓝牙设备播放本端的所有音频,比如游戏音频、按键音、提示音等等,本实施例对此不作限定。Optionally, the audio playback instruction is manually triggered by the user, for example, when the playback operation of the audio and video files in the first Bluetooth device is received, it is determined that the audio playback instruction is received; or, the audio playback instruction can also be established when the Bluetooth connection is established. Afterwards, it is automatically triggered. For example, when a Bluetooth device is established with the second Bluetooth device, the first Bluetooth device will play all the local audio through the second Bluetooth device, such as game audio, button sounds, prompt sounds, etc. This embodiment does not make any adjustments to this. limited.
步骤404,第一蓝牙设备根据音频播放指令,通过m条蓝牙连接向第二蓝牙设备发送音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据。Step 404, the first Bluetooth device sends audio data to the second Bluetooth device through m Bluetooth connections according to the audio playback instruction, wherein different Bluetooth connections are used to send audio data of the same audio.
进一步的,第一蓝牙设备通过m条蓝牙连接,向第二蓝牙设备发送音频数据(音频数据流)。相较于相关技术中通过单一蓝牙连接进行音频数据传输,通过m条蓝牙连接进行音频数据传输,传输速率可以达到原先传输速率的m倍,从而在保证传输延迟的情况下提高传输速率,实现更高品质音频的传输播放。Further, the first Bluetooth device sends audio data (audio data stream) to the second Bluetooth device through m Bluetooth connections. Compared with the audio data transmission through a single Bluetooth connection in the related art, the transmission rate of audio data through m Bluetooth connections can reach m times the original transmission rate, thereby increasing the transmission rate while ensuring the transmission delay, and achieving a higher Transmission playback of high-quality audio.
可选的,第一蓝牙设备发送音频数据前,通过音频处理芯片将音频数据分为m路音频数据,进而对m路音频数据进行传输。Optionally, before the first Bluetooth device sends the audio data, the audio processing chip divides the audio data into m channels of audio data, and then transmits the m channels of audio data.
在一种可能的实施方式中,不同蓝牙连接用于传输同一音频的不同音频数据,比如,不同蓝牙连接用于传输不同声道的音频数据,或者,不同蓝牙连接用于传输同一音频的相同音频数据,比如,不同蓝牙连接均用于传输左右声道的音频数据。In a possible implementation, different Bluetooth connections are used to transmit different audio data of the same audio, for example, different Bluetooth connections are used to transmit audio data of different channels, or different Bluetooth connections are used to transmit the same audio of the same audio Data, for example, different Bluetooth connections are used to transmit audio data for the left and right channels.
步骤405,第二蓝牙设备通过m条蓝牙连接接收第一蓝牙设备发送的音频数据。Step 405, the second Bluetooth device receives the audio data sent by the first Bluetooth device through m Bluetooth connections.
相应的,第二蓝牙设备通过m条蓝牙连接接收音频数据。可选的,第二蓝牙设备将接收到的音频数据发送至音频处理芯片,以便音频处理芯片对接收到的音频数据解析播放。Correspondingly, the second Bluetooth device receives audio data through the m Bluetooth connections. Optionally, the second Bluetooth device sends the received audio data to the audio processing chip, so that the audio processing chip can analyze and play the received audio data.
步骤406,第二蓝牙设备根据音频数据进行音频播放。Step 406, the second bluetooth device performs audio playback according to the audio data.
本申请实施例中,第二蓝牙设备具有音频播放组件,比如扬声器,对音频数据进行解析后,第二蓝牙设备通过音频播放组件进行音频播放。In the embodiment of the present application, the second Bluetooth device has an audio playback component, such as a speaker, and after analyzing the audio data, the second Bluetooth device performs audio playback through the audio playback component.
综上所述,本申请实施例中,通过在蓝牙设备中设置至少两个蓝牙芯片,并通过至少两个蓝牙芯片在蓝牙设备之间建立至少两条蓝牙连接,从而在进行音频传输时,通过至少两条蓝牙连接进行音频数据传输;相较于相关技术,本申请实施例中蓝牙设备间的传输带宽得到了提高,进而能够实现高品质音频播放,提高了蓝牙音频的播放音质。To sum up, in the embodiment of the present application, at least two Bluetooth chips are set in the Bluetooth device, and at least two Bluetooth connections are established between the Bluetooth devices through the at least two Bluetooth chips, so that during audio transmission, through At least two Bluetooth connections are used for audio data transmission; compared with related technologies, the transmission bandwidth between Bluetooth devices in the embodiment of the present application is improved, thereby enabling high-quality audio playback and improving the playback sound quality of Bluetooth audio.
在一种可能的实施方式中,第一蓝牙设备(或第二蓝牙设备)中的蓝牙芯片包括主蓝牙芯片和从蓝牙芯片,在蓝牙连接建立阶段,第一蓝牙设备首先通过主蓝牙芯片与第二蓝牙设备建立主蓝牙连接,进而基于建立的主蓝牙连接与第二蓝牙设备建立从蓝牙连接,下面采用示意性的实施例进行说明。In a possible implementation manner, the bluetooth chip in the first bluetooth device (or the second bluetooth device) includes a master bluetooth chip and a slave bluetooth chip. The two Bluetooth devices establish a master Bluetooth connection, and then establish a slave Bluetooth connection with the second Bluetooth device based on the established master Bluetooth connection. The following uses a schematic embodiment to illustrate.
请参考图5,其示出了本申请另一个示例性实施例示出的蓝牙设备间的音频传输方法的流程图。本实施例以该方法应用于图2所示的实施环境来举例说明。该方法包括:Please refer to FIG. 5 , which shows a flowchart of an audio transmission method between Bluetooth devices according to another exemplary embodiment of the present application. This embodiment is described by taking the method applied to the implementation environment shown in FIG. 2 as an example. The method includes:
步骤501,第一蓝牙设备通过n个蓝牙芯片中的第一主蓝牙芯片,与第二蓝牙设备中的第二主蓝牙芯片建立主蓝牙连接。In step 501, the first Bluetooth device establishes a master Bluetooth connection with the second master Bluetooth chip in the second Bluetooth device through the first master Bluetooth chip among the n Bluetooth chips.
在一种可能的实施方式中,对于设置有至少两个蓝牙芯片的蓝牙设备,当开启蓝牙功能时,蓝牙设备启动蓝牙芯片中的主蓝牙芯片,并通过主蓝牙芯片搜索附件的其他蓝牙设备。其中,至少两个蓝牙芯片中包括一个主蓝牙芯片,其余的n-1个蓝牙芯片均为从蓝牙芯片。In a possible implementation manner, for a Bluetooth device provided with at least two Bluetooth chips, when the Bluetooth function is turned on, the Bluetooth device starts the main Bluetooth chip in the Bluetooth chips, and searches for other Bluetooth devices attached to it through the main Bluetooth chip. Wherein, at least two bluetooth chips include a master bluetooth chip, and the remaining n-1 bluetooth chips are all slave bluetooth chips.
在一种可能的实施方式中,第一蓝牙设备开启蓝牙功能时,即通过第一主蓝牙芯片进行蓝牙扫描,第二蓝牙设备开启蓝牙功能时,即通过第二主蓝牙芯片进行蓝牙扫描。当通过第一主蓝牙芯片扫描到第二蓝牙设备时,第一蓝牙设备即在蓝牙扫描界面显示第二蓝牙设备,并在接收到对第二蓝牙设备的选择操作时,与第二蓝牙设备中的第二主蓝牙芯片建立主蓝牙连接。其中,主蓝牙芯片之间建立主蓝牙连接的过程与传统的蓝牙连接建立方式相似,本实施例在此不再赘述。In a possible implementation manner, when the first bluetooth device turns on the bluetooth function, it performs bluetooth scanning through the first main bluetooth chip, and when the second bluetooth device turns on the bluetooth function, it carries out bluetooth scanning through the second main bluetooth chip. When the second bluetooth device is scanned by the first main bluetooth chip, the first bluetooth device will display the second bluetooth device on the bluetooth scanning interface, and when receiving the selection operation of the second bluetooth device, communicate with the second bluetooth device The second main bluetooth chip establishes the main bluetooth connection. Wherein, the process of establishing the main Bluetooth connection between the main Bluetooth chips is similar to the traditional way of establishing the Bluetooth connection, and will not be repeated in this embodiment.
可选的,第一蓝牙设备与第二蓝牙设备首次建立主蓝牙连接后,第一蓝牙设备和第二蓝牙设备均记录对端蓝牙设备,后续再次扫描到对端蓝牙设备时,即可直接建立主蓝牙连接。Optionally, after the first bluetooth device and the second bluetooth device establish a main bluetooth connection for the first time, both the first bluetooth device and the second bluetooth device record the peer bluetooth device, and when the peer bluetooth device is scanned again later, they can directly establish Main bluetooth connection.
步骤502,第二蓝牙设备通过m个蓝牙芯片中的第二主蓝牙芯片,与第一蓝牙设备中的第一主蓝牙芯片建立主蓝牙连接。Step 502, the second Bluetooth device establishes a master Bluetooth connection with the first master Bluetooth chip in the first Bluetooth device through the second master Bluetooth chip among the m Bluetooth chips.
对应的,第二蓝牙设备通过第二主蓝牙芯片与第一蓝牙设备建立主蓝牙连接。Correspondingly, the second Bluetooth device establishes a master Bluetooth connection with the first Bluetooth device through the second master Bluetooth chip.
步骤503,第一蓝牙设备通过主蓝牙连接,与第二蓝牙设备建立m-1条从蓝牙连接。Step 503, the first Bluetooth device establishes m-1 slave Bluetooth connections with the second Bluetooth device through the master Bluetooth connection.
建立主蓝牙连接后,第一蓝牙设备即可与第二蓝牙设备进行数据通信。对于设置有多个蓝牙芯片的蓝牙设备,若需要用户手动在蓝牙设备间建立多条蓝牙连接,将耗费大量时间,且容易造成连接建立错误,因此,本申请实施例中,第一蓝牙设备与第二蓝牙设备即通过已建立的主蓝牙连接,在从蓝牙芯片之间建立从蓝牙连接。After the main Bluetooth connection is established, the first Bluetooth device can perform data communication with the second Bluetooth device. For a Bluetooth device with multiple Bluetooth chips, if the user needs to manually establish multiple Bluetooth connections between the Bluetooth devices, it will take a lot of time and easily cause connection establishment errors. Therefore, in the embodiment of the present application, the first Bluetooth device and The second bluetooth device establishes a slave bluetooth connection between the slave bluetooth chips through the established master bluetooth connection.
在一种可能的实施方式中,为了确定建立主蓝牙连接的对端蓝牙设备是否具有至少两个蓝牙芯片,即确定是否能与对端蓝牙设备建立从蓝牙连接,第一蓝牙设备与第二蓝牙设备通过主蓝牙连接进行信息交互,并在确定对端蓝牙设备具有至少两个蓝牙芯片时,进一步建立从蓝牙连接。In a possible implementation manner, in order to determine whether the peer Bluetooth device that establishes the master Bluetooth connection has at least two Bluetooth chips, that is, to determine whether a slave Bluetooth connection can be established with the peer Bluetooth device, the first Bluetooth device and the second Bluetooth The devices exchange information through the master Bluetooth connection, and further establish a slave Bluetooth connection when it is determined that the peer Bluetooth device has at least two Bluetooth chips.
可选的,如图6所示,本步骤可以包括如下步骤。Optionally, as shown in FIG. 6, this step may include the following steps.
步骤503A,第一蓝牙设备通过主蓝牙连接与第二蓝牙设备进行蓝牙信息交互,蓝牙信息中至少包括蓝牙设备中蓝牙芯片的数量。
在一种可能的实施方式中,建立主蓝牙连接后,第二蓝牙设备通过主蓝牙连接,向第一蓝牙设备发送第二蓝牙信息,该第二蓝牙信息中即包含第二蓝牙设备中蓝牙芯片的数量。可选的,该蓝牙芯片的数量为可用蓝牙芯片的数量,即除去已建立蓝牙连接的蓝牙芯片。In a possible implementation manner, after the main Bluetooth connection is established, the second Bluetooth device sends the second Bluetooth information to the first Bluetooth device through the main Bluetooth connection, and the second Bluetooth information includes the Bluetooth chip in the second Bluetooth device. quantity. Optionally, the number of bluetooth chips is the number of available bluetooth chips, that is, bluetooth chips that have established bluetooth connections are excluded.
进一步的,若第二蓝牙设备中蓝牙芯片的数量大于等于2,则确定第二蓝牙设备支持建立多条蓝牙连接,从而执行步骤503B;若第二蓝牙设备中蓝牙芯片的数量小于2,则确定第二蓝牙设备不支持建立多条蓝牙连接,从而仅与第二蓝牙设备建立主蓝牙连接。Further, if the number of Bluetooth chips in the second Bluetooth device is greater than or equal to 2, it is determined that the second Bluetooth device supports the establishment of multiple Bluetooth connections, thereby performing
需要说明的是,对于设置有单个蓝牙芯片的蓝牙设备,建立蓝牙连接后并不会向对端发送本端蓝牙芯片的数量,相应的,若未接收到第二蓝牙设备发送的蓝牙信息,第一蓝牙设备确定第二蓝牙设备不支持建立多条蓝牙连接。It should be noted that, for a Bluetooth device equipped with a single Bluetooth chip, the number of the local Bluetooth chip will not be sent to the opposite end after the Bluetooth connection is established. Correspondingly, if the Bluetooth information sent by the second Bluetooth device is not received, the second A Bluetooth device determines that the second Bluetooth device does not support establishing multiple Bluetooth connections.
步骤503B,若第二蓝牙设备中蓝牙芯片的数量为至少两个,第一蓝牙设备则启动第一蓝牙设备中的第一从蓝牙芯片。
可选的,出于功耗层面的考虑,设置有至少两个蓝牙芯片的蓝牙设备启动蓝牙功能后,仅启动主蓝牙芯片,因此,在确定可以与第二蓝牙设备建立多条蓝牙连接时,第一蓝牙设备需要启动第一从蓝牙芯片,以便后续建立从蓝牙连接。其中,第一从蓝牙芯片的数量为至少一个。Optionally, for consideration of power consumption, after the Bluetooth device with at least two Bluetooth chips starts the Bluetooth function, only the main Bluetooth chip is started. Therefore, when it is determined that multiple Bluetooth connections can be established with the second Bluetooth device, The first bluetooth device needs to activate the first slave bluetooth chip so as to subsequently establish a slave bluetooth connection. Wherein, the quantity of the first slave bluetooth chip is at least one.
第一从蓝牙芯片启动后,即可进行蓝牙广播,以便被其他蓝牙设备发现。First, after starting from the Bluetooth chip, it can broadcast Bluetooth so that it can be discovered by other Bluetooth devices.
步骤503C,第一蓝牙设备通过第一从蓝牙芯片,与第二蓝牙设备中的第二从蓝牙芯片建立从蓝牙连接。
在一种可能的实施方式中,第一蓝牙设备确定第二蓝牙设备包括至少两个蓝牙芯片后,进一步通过主蓝牙连接获取第二蓝牙设备中各个从蓝牙芯片的蓝牙信息,从而根据蓝牙信息,控制本端的从蓝牙芯片与对端的各个从蓝牙芯片建立从蓝牙连接。In a possible implementation manner, after the first Bluetooth device determines that the second Bluetooth device includes at least two Bluetooth chips, it further obtains the Bluetooth information of each slave Bluetooth chip in the second Bluetooth device through the master Bluetooth connection, so that according to the Bluetooth information, Control the slave Bluetooth chip of the local end to establish a slave Bluetooth connection with each slave Bluetooth chip of the opposite end.
可选的,本步骤包括如下步骤。Optionally, this step includes the following steps.
一、通过主蓝牙连接获取第二从蓝牙芯片的蓝牙MAC地址。1. Obtain the Bluetooth MAC address of the second slave Bluetooth chip through the master Bluetooth connection.
在一种可能的实施方式中,第二蓝牙设备确定出第一蓝牙设备包括多个蓝牙芯片后,通过主蓝牙连接向第一蓝牙设备发送第二从蓝牙芯片的蓝牙MAC地址,以便第一蓝牙设备根据蓝牙MAC地址与第二蓝牙设备建立从蓝牙连接。相应的,第一蓝牙设备通过主蓝牙连接获取该蓝牙MAC地址。In a possible implementation manner, after the second Bluetooth device determines that the first Bluetooth device includes multiple Bluetooth chips, it sends the Bluetooth MAC address of the second slave Bluetooth chip to the first Bluetooth device through the master Bluetooth connection, so that the first Bluetooth The device establishes a slave Bluetooth connection with the second Bluetooth device according to the Bluetooth MAC address. Correspondingly, the first Bluetooth device obtains the Bluetooth MAC address through the main Bluetooth connection.
本申请实施例中,蓝牙设备中不同的蓝牙芯片具有不同的蓝牙MAC地址,且蓝牙MAC地址具有唯一性,因此可以根据该蓝牙MAC地址区分不同的蓝牙芯片,从而建立从蓝牙连接。In the embodiment of the present application, different Bluetooth chips in the Bluetooth device have different Bluetooth MAC addresses, and the Bluetooth MAC addresses are unique, so different Bluetooth chips can be distinguished according to the Bluetooth MAC addresses, thereby establishing a slave Bluetooth connection.
二、根据蓝牙MAC地址,通过第一从蓝牙芯片与第二从蓝牙芯片建立从蓝牙连接。2. Establish a slave Bluetooth connection through the first slave Bluetooth chip and the second slave Bluetooth chip according to the Bluetooth MAC address.
进一步的,第一蓝牙设备通过第一从蓝牙芯片与蓝牙MAC地址指示的第二从蓝牙设备建立从蓝牙连接。Further, the first Bluetooth device establishes a slave Bluetooth connection with the second slave Bluetooth device indicated by the Bluetooth MAC address through the first slave Bluetooth chip.
在一种可能的实施方式中,第一蓝牙设备将获取到的蓝牙MAC地址与各个扫描到的蓝牙设备进行匹配,从而与匹配到的蓝牙设备(即第二从蓝牙芯片)建立蓝牙连接。In a possible implementation manner, the first Bluetooth device matches the obtained Bluetooth MAC address with each scanned Bluetooth device, so as to establish a Bluetooth connection with the matched Bluetooth device (ie, the second slave Bluetooth chip).
可选的,当需要在至少两个第一从蓝牙芯片与至少两个第二从蓝牙芯片之间建立从蓝牙连接时,第一蓝牙设备将第一从蓝牙芯片与第二从蓝牙芯片一一匹配,从而在匹配的第一从蓝牙芯片与第二从蓝牙芯片之间建立从蓝牙连接,避免同一从蓝牙芯片建立多条蓝牙连接。Optionally, when it is necessary to establish a slave Bluetooth connection between at least two first slave Bluetooth chips and at least two second slave Bluetooth chips, the first Bluetooth device connects the first slave Bluetooth chip and the second slave Bluetooth chip one by one. Matching, so as to establish a slave Bluetooth connection between the matching first slave Bluetooth chip and the second slave Bluetooth chip, avoiding the establishment of multiple Bluetooth connections with the same slave Bluetooth chip.
步骤504,第二蓝牙设备通过主蓝牙连接,与第一蓝牙设备建立m-1条从蓝牙连接。Step 504, the second Bluetooth device establishes m-1 slave Bluetooth connections with the first Bluetooth device through the master Bluetooth connection.
与上述步骤503相对应的,第二蓝牙设备识别出第一蓝牙设备设置有至少两个蓝牙芯片时,与其建立从蓝牙连接。在一种可能的实施方式中,如图7所示,本步骤包括如下步骤。Corresponding to the above step 503, when the second Bluetooth device recognizes that the first Bluetooth device is equipped with at least two Bluetooth chips, it establishes a slave Bluetooth connection with it. In a possible implementation manner, as shown in FIG. 7 , this step includes the following steps.
步骤504A,通过主蓝牙连接与第一蓝牙设备进行蓝牙信息交互,蓝牙信息中至少包括蓝牙设备中蓝牙芯片的数量。
在一种可能的实施方式中,建立主蓝牙连接后,第一蓝牙设备通过主蓝牙连接,向第二蓝牙设备发送第一蓝牙信息,该第一蓝牙信息中即包含第一蓝牙设备中蓝牙芯片的数量。可选的,该蓝牙芯片的数量为可用蓝牙芯片的数量,即除去已建立蓝牙连接的蓝牙芯片。In a possible implementation manner, after the main Bluetooth connection is established, the first Bluetooth device sends the first Bluetooth information to the second Bluetooth device through the main Bluetooth connection, and the first Bluetooth information includes the Bluetooth chip in the first Bluetooth device. quantity. Optionally, the number of bluetooth chips is the number of available bluetooth chips, that is, bluetooth chips that have established bluetooth connections are excluded.
进一步的,若第一蓝牙设备中蓝牙芯片的数量大于等于2,则确定第一蓝牙设备支持建立多条蓝牙连接,从而执行步骤504B;若第一蓝牙设备中蓝牙芯片的数量小于2,则确定第一蓝牙设备不支持建立多条蓝牙连接,从而仅与第一蓝牙设备建立主蓝牙连接。Further, if the number of Bluetooth chips in the first Bluetooth device is greater than or equal to 2, it is determined that the first Bluetooth device supports the establishment of multiple Bluetooth connections, thereby performing
需要说明的是,对于设置有单个蓝牙芯片的蓝牙设备,建立蓝牙连接后并不会向对端发送本端蓝牙芯片的数量,相应的,若未接收到第一蓝牙设备发送的蓝牙信息,第二蓝牙设备确定第一蓝牙设备不支持建立多条蓝牙连接。It should be noted that, for a Bluetooth device equipped with a single Bluetooth chip, the number of the local Bluetooth chip will not be sent to the opposite end after the Bluetooth connection is established. Correspondingly, if the Bluetooth information sent by the first Bluetooth device is not received, the second The second Bluetooth device determines that the first Bluetooth device does not support establishing multiple Bluetooth connections.
步骤504B,若第一蓝牙设备中蓝牙芯片的数量为至少两个,则启动第二蓝牙设备中的第二从蓝牙芯片。
可选的,在确定可以与第一蓝牙设备建立多条蓝牙连接时,第二蓝牙设备需要启动第二从蓝牙芯片,以便后续建立从蓝牙连接。其中,第二从蓝牙芯片的数量为至少一个。Optionally, when it is determined that multiple bluetooth connections can be established with the first bluetooth device, the second bluetooth device needs to activate the second slave bluetooth chip so as to subsequently establish a slave bluetooth connection. Wherein, the number of the second slave bluetooth chip is at least one.
第二从蓝牙芯片启动后,即可进行蓝牙广播,以便被其他蓝牙设备发现。Second, after starting from the bluetooth chip, it can broadcast bluetooth so that it can be discovered by other bluetooth devices.
步骤504C,通过第二从蓝牙芯片,与第一蓝牙设备中的第一从蓝牙芯片建立从蓝牙连接。
在一种可能的实施方式中,第二蓝牙设备确定第一蓝牙设备包括至少两个蓝牙芯片后,进一步通过主蓝牙连接项第一蓝牙设备发送第二从蓝牙芯片的蓝牙信息,以便第一蓝牙设备根据该蓝牙信息,控制第一从蓝牙芯片与第二从蓝牙芯片建立从蓝牙连接。In a possible implementation manner, after the second bluetooth device determines that the first bluetooth device includes at least two bluetooth chips, it further sends the bluetooth information of the second slave bluetooth chip through the master bluetooth connection item, so that the first bluetooth According to the Bluetooth information, the device controls the first slave Bluetooth chip to establish a slave Bluetooth connection with the second slave Bluetooth chip.
可选的,第二蓝牙设备通过主蓝牙连接向第一蓝牙设备发送第二从蓝牙芯片的蓝牙MAC地址。Optionally, the second Bluetooth device sends the Bluetooth MAC address of the second slave Bluetooth chip to the first Bluetooth device through the master Bluetooth connection.
需要说明的,第二蓝牙设备也可以通过主蓝牙连接获取第一蓝牙设备中第一从蓝牙芯片的蓝牙MAC地址,从而在建立从蓝牙连接时,根据该蓝牙MAC地址进行鉴权,本实施例在此不再赘述。It should be noted that the second Bluetooth device can also obtain the Bluetooth MAC address of the first slave Bluetooth chip in the first Bluetooth device through the master Bluetooth connection, so that when the slave Bluetooth connection is established, authentication is performed according to the Bluetooth MAC address. I won't repeat them here.
步骤505,第一蓝牙设备接收音频播放指令,音频播放指令用于指示通过第二蓝牙设备播放第一蓝牙设备中的音频。Step 505, the first bluetooth device receives an audio play instruction, and the audio play instruction is used to instruct the second bluetooth device to play the audio in the first bluetooth device.
本步骤的实施方式可以参考上述步骤403,本实施例在此不再赘述。For the implementation manner of this step, reference may be made to the foregoing step 403 , and details will not be described here in this embodiment.
步骤506,第一蓝牙设备确定音频播放指令所指示目标音频的音频码率。In step 506, the first Bluetooth device determines the audio code rate of the target audio indicated by the audio playback instruction.
当待播放的目标音频的音质较差(比如音频码率低于1M/s)时,通过单一蓝牙连接传输音频数据的速率可以达到目标音频的音频码率,此时无需通过多条蓝牙连接进行音频数据传输。因此,在一种可能的实施方式中,第一蓝牙设备发送蓝牙数据前,目标音频的音频码率,若音频码率高于码率阈值,则执行步骤507,若音频码率低于码率阈值,则仅通过主蓝牙连接进行音频数据传输。When the sound quality of the target audio to be played is poor (for example, the audio bit rate is lower than 1M/s), the rate of audio data transmission through a single Bluetooth connection can reach the audio bit rate of the target audio, and there is no need to pass multiple Bluetooth connections. Audio data transfer. Therefore, in a possible implementation manner, before the first Bluetooth device sends Bluetooth data, the audio code rate of the target audio, if the audio code rate is higher than the code rate threshold, then perform step 507, if the audio code rate is lower than the code rate threshold, audio data transfers are only made over the main Bluetooth connection.
其中,该码率阈值可以为单一蓝牙连接的传输带宽,比如,该码率阈值为1M/S。Wherein, the code rate threshold may be the transmission bandwidth of a single Bluetooth connection, for example, the code rate threshold is 1M/S.
步骤507,若音频码率高于码率阈值,第一蓝牙设备则通过m条蓝牙连接向第二蓝牙设备发送音频数据。Step 507, if the audio code rate is higher than the code rate threshold, the first Bluetooth device sends audio data to the second Bluetooth device through m Bluetooth connections.
当音频码率高于码率阈值时,第一蓝牙设备即通过m条蓝牙连接向第二蓝牙设备发送音频数据,从而提高音频数据的传输速率和带宽。When the audio code rate is higher than the code rate threshold, the first Bluetooth device sends audio data to the second Bluetooth device through m Bluetooth connections, thereby increasing the transmission rate and bandwidth of the audio data.
在一种可能的实施方式中,当目标音频为多声道音频时,第一蓝牙设备在传输音频数据前,基于声道对音频数据进行处理,从而通过m条蓝牙连接将处理后的音频输出发送至第二蓝牙设备。可选的,本步骤包括如下步骤。In a possible implementation manner, when the target audio is multi-channel audio, the first Bluetooth device processes the audio data based on the channel before transmitting the audio data, so as to output the processed audio through m Bluetooth connections Send to a second Bluetooth device. Optionally, this step includes the following steps.
一、根据目标音频生成m路音频数据,其中,各路音频数据对应各自音频声道。1. Generate m channels of audio data according to the target audio, where each channel of audio data corresponds to its own audio channel.
可选的,第一蓝牙设备通过音频处理组件,按照音频声道将目标音频划分为m路音频数据。比如,当目标音频为双声道音频时,第一蓝牙设备即将目标音频划分为左声道音频数据和右声道音频数据。当然,让目标音频为2.1声道、3.1声道或5.1声道的音频时,第一蓝牙设备可以将目标音频划分为m路音频数据,本实施例对此不作限定。Optionally, the first Bluetooth device uses an audio processing component to divide the target audio into m channels of audio data according to audio channels. For example, when the target audio is two-channel audio, the first Bluetooth device divides the target audio into left-channel audio data and right-channel audio data. Of course, when the target audio is 2.1-channel, 3.1-channel or 5.1-channel audio, the first Bluetooth device may divide the target audio into m channels of audio data, which is not limited in this embodiment.
二、通过m条蓝牙连接向第二蓝牙设备发送m路音频数据,m路音频数据经过时间同步。2. Send m channels of audio data to the second Bluetooth device through m Bluetooth connections, and the m channels of audio data are time-synchronized.
不同于相关技术中,音频数据通过同一蓝牙连接发送(即单路发送),在音频播放过程中不存在多路音频同步的问题,本申请实施例中,为了保证第二蓝牙设备播放音频时多路音频数据同步,第一蓝牙设备发送m路音频数据时,需要对m路音频数据进行时间同步,即目标音频中同一时刻的多路音频数据同时发送。Unlike in related technologies, audio data is sent through the same Bluetooth connection (that is, single-channel transmission), and there is no problem of multi-channel audio synchronization during audio playback. In the embodiment of the present application, in order to ensure that the second Bluetooth device plays audio more When the first Bluetooth device sends m channels of audio data, it needs to synchronize the time of m channels of audio data, that is, multiple channels of audio data at the same time in the target audio are sent at the same time.
在一种可能的实施方式中,第一蓝牙设备可以为各路音频数据设置音频时间戳,从而实现音频同步。In a possible implementation manner, the first Bluetooth device may set an audio time stamp for each channel of audio data, so as to implement audio synchronization.
步骤508,第二蓝牙设备通过m条蓝牙连接接收第一蓝牙设备发送的音频数据。Step 508, the second Bluetooth device receives the audio data sent by the first Bluetooth device through m Bluetooth connections.
相应的,第二蓝牙设备通过m条蓝牙连接接收第一蓝牙设备发送的m路音频数据。Correspondingly, the second Bluetooth device receives m channels of audio data sent by the first Bluetooth device through m Bluetooth connections.
步骤509,根据音频数据进行音频播放。Step 509, perform audio playback according to the audio data.
由于不同蓝牙连接传输的速率可能存在差异,因此为了保证多路音频播放时的同步性,根据m路音频数据进行音频播放时,第二蓝牙设备通过m路音频数据各自对应的音频声道进行同步音频播放,其中,第二蓝牙设备可以根据各路音频数据的音频时间戳进行音频同步。Since there may be differences in the transmission rates of different Bluetooth connections, in order to ensure the synchronization of multi-channel audio playback, when audio playback is performed according to m-channel audio data, the second Bluetooth device synchronizes through the audio channels corresponding to the m-channel audio data Audio playback, wherein the second bluetooth device can perform audio synchronization according to the audio time stamps of each channel of audio data.
本实施例中,蓝牙设备间首先通过主蓝牙芯片建立主蓝牙连接,从而基于主蓝牙连接进行信息交互,进而在从蓝牙芯片间建立从蓝牙连接,无需用户手动逐一建立多条蓝牙连接,简化了多蓝牙芯片蓝牙设备的蓝牙连接建立过程。In this embodiment, the Bluetooth devices first establish a master Bluetooth connection through the master Bluetooth chip, thereby performing information exchange based on the master Bluetooth connection, and then establish a slave Bluetooth connection between the slave Bluetooth chips, without the need for the user to manually establish multiple Bluetooth connections one by one, which simplifies The process of establishing a Bluetooth connection of a Bluetooth device with multiple Bluetooth chips.
此外,本实施例中,蓝牙设备进行多路音频数据传输和播放时,对多路音频数据进行时间同步,避免出现音频播放不同步的问题,提高了音频播放质量。In addition, in this embodiment, when the Bluetooth device transmits and plays multiple channels of audio data, time synchronization is performed on the multiple channels of audio data, so as to avoid the problem of out-of-sync audio playback and improve the quality of audio playback.
在实现上述实施例提供的音频传输方法时,除了需要从硬件(即增加蓝牙芯片)层面进行改进外,还需要从软件层面进行改进。When realizing the audio transmission method provided by the above-mentioned embodiments, in addition to improving the hardware (that is, adding a Bluetooth chip) level, it is also necessary to improve the software level.
在一种可能的实施方式中,在系统中已有蓝牙协议栈的基础上,需要单独实现额外的蓝牙协议栈,已通过该蓝牙协议栈对新增蓝牙芯片进行控制和管理。如图8所示,蓝牙设备810的系统中包括主蓝牙协议栈811和从蓝牙协议栈812,主蓝牙协议栈811用于管理主蓝牙芯片813,从蓝牙协议栈812用于管理从蓝牙芯片814。并且,蓝牙设备810的系统中还包括蓝牙管理框架815,蓝牙管理框架815用于管理主蓝牙协议栈811和从蓝牙协议栈812,在两个协议栈之间实现状态管理、信息交互以及信息同步。In a possible implementation manner, on the basis of the existing Bluetooth protocol stack in the system, an additional Bluetooth protocol stack needs to be implemented separately, and the newly added Bluetooth chip has been controlled and managed through the Bluetooth protocol stack. As shown in Figure 8, the system of the Bluetooth device 810 includes a master Bluetooth protocol stack 811 and a slave Bluetooth protocol stack 812, the master Bluetooth protocol stack 811 is used to manage the master Bluetooth chip 813, and the slave Bluetooth protocol stack 812 is used to manage the slave Bluetooth chip 814 . Moreover, the system of the Bluetooth device 810 also includes a Bluetooth management framework 815, and the Bluetooth management framework 815 is used to manage the master Bluetooth protocol stack 811 and the slave Bluetooth protocol stack 812, and realize state management, information interaction and information synchronization between the two protocol stacks .
可选的,为了实现对传统蓝牙设备的兼容,系统中的原有蓝牙协议栈作为主协议栈,实现系统主要蓝牙功能的支持,而新增加的从蓝牙协议栈至少提供对支持高级音频分发协议(Advanced Audio Distribution Profile,A2DP)以及底层蓝牙协议的支持,即从蓝牙协议栈实现最基本的音频数据传输,相较于主蓝牙协议栈更加轻量。Optionally, in order to achieve compatibility with traditional Bluetooth devices, the original Bluetooth protocol stack in the system is used as the main protocol stack to support the main Bluetooth functions of the system, and the newly added slave Bluetooth protocol stack at least provides support for advanced audio distribution protocols. (Advanced Audio Distribution Profile, A2DP) and the support of the underlying Bluetooth protocol, that is, to realize the most basic audio data transmission from the Bluetooth protocol stack, which is lighter than the main Bluetooth protocol stack.
请参考图9,其示出了本申请一个实施例提供的蓝牙设备间的音频传输装置结构框图。该装置可以通过软件、硬件或者两者的结合实现成为第一蓝牙设备的全部或一部分。该装置包括:Please refer to FIG. 9 , which shows a structural block diagram of an audio transmission device between Bluetooth devices provided by an embodiment of the present application. The device can be implemented as all or a part of the first Bluetooth device through software, hardware or a combination of the two. The unit includes:
第一连接模块910,用于通过所述n个蓝牙芯片中的m个蓝牙芯片,与第二蓝牙设备建立m条蓝牙连接,所述第二蓝牙设备中设置有至少m个蓝牙芯片,m大于等于2,且m小于等于n;The
指令接收模块920,用于接收音频播放指令,所述音频播放指令用于指示通过所述第二蓝牙设备播放所述第一蓝牙设备中的音频;The
数据发送模块930,用于根据所述音频播放指令,通过所述m条蓝牙连接向所述第二蓝牙设备发送音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据。The
可选的,所述第一连接模块910,包括:Optionally, the
第一连接单元,用于通过所述n个蓝牙芯片中的第一主蓝牙芯片,与所述第二蓝牙设备中的第二主蓝牙芯片建立主蓝牙连接;The first connection unit is configured to establish a master Bluetooth connection with the second master Bluetooth chip in the second Bluetooth device through the first master Bluetooth chip among the n Bluetooth chips;
第二连接单元,用于通过所述主蓝牙连接,与所述第二蓝牙设备建立m-1条从蓝牙连接。The second connection unit is configured to establish m-1 slave Bluetooth connections with the second Bluetooth device through the master Bluetooth connection.
可选的,所述第二连接单元,用于:Optionally, the second connection unit is used for:
通过所述主蓝牙连接与所述第二蓝牙设备进行蓝牙信息交互,所述蓝牙信息中至少包括蓝牙设备中蓝牙芯片的数量;Perform Bluetooth information interaction with the second Bluetooth device through the main Bluetooth connection, and the Bluetooth information includes at least the number of Bluetooth chips in the Bluetooth device;
若所述第二蓝牙设备中蓝牙芯片的数量为至少两个,则启动所述第一蓝牙设备中的第一从蓝牙芯片;If the number of bluetooth chips in the second bluetooth device is at least two, start the first slave bluetooth chip in the first bluetooth device;
通过所述第一从蓝牙芯片,与所述第二蓝牙设备中的第二从蓝牙芯片建立所述从蓝牙连接。Establish the slave Bluetooth connection with the second slave Bluetooth chip in the second Bluetooth device through the first slave Bluetooth chip.
可选的,所述第二连接单元,还用于:Optionally, the second connection unit is also used for:
通过所述主蓝牙连接获取所述第二从蓝牙芯片的蓝牙MAC地址;Obtain the Bluetooth MAC address of the second slave Bluetooth chip through the master Bluetooth connection;
根据所述蓝牙MAC地址,通过所述第一从蓝牙芯片与所述第二从蓝牙芯片建立所述从蓝牙连接。Establish the slave Bluetooth connection with the second slave Bluetooth chip through the first slave Bluetooth chip according to the Bluetooth MAC address.
可选的,所述第一蓝牙设备的系统中包含蓝牙管理框架、主蓝牙协议栈和从蓝牙协议栈,所述蓝牙管理框架用于管理所述主蓝牙协议栈和所述从蓝牙协议栈,所述从蓝牙协议栈独立于所述主蓝牙协议栈;Optionally, the system of the first Bluetooth device includes a Bluetooth management framework, a master Bluetooth protocol stack, and a slave Bluetooth protocol stack, and the Bluetooth management framework is used to manage the master Bluetooth protocol stack and the slave Bluetooth protocol stack, The slave Bluetooth protocol stack is independent of the master Bluetooth protocol stack;
所述主蓝牙协议栈用于管理所述第一主蓝牙芯片,所述从蓝牙协议栈用于管理所述第一从蓝牙芯片,且所述从蓝牙协议栈支持A2DP。The master Bluetooth protocol stack is used to manage the first master Bluetooth chip, the slave Bluetooth protocol stack is used to manage the first slave Bluetooth chip, and the slave Bluetooth protocol stack supports A2DP.
可选的,数据发送模块930,包括:Optionally, the
确定单元,用于确定所述音频播放指令所指示目标音频的音频码率;A determination unit, configured to determine the audio code rate of the target audio indicated by the audio playback instruction;
数据发送单元,用于若所述音频码率高于码率阈值,则通过所述m条蓝牙连接向所述第二蓝牙设备发送所述音频数据。A data sending unit, configured to send the audio data to the second Bluetooth device through the m Bluetooth connections if the audio code rate is higher than a code rate threshold.
可选的,所述数据发送单元,用于:Optionally, the data sending unit is used for:
根据所述目标音频生成m路音频数据,其中,各路音频数据对应各自音频声道;Generate m channels of audio data according to the target audio, wherein each channel of audio data corresponds to a respective audio channel;
通过所述m条蓝牙连接向所述第二蓝牙设备发送所述m路音频数据,所述m路音频数据经过时间同步。Sending the m channels of audio data to the second Bluetooth device through the m Bluetooth connections, where the m channels of audio data are time-synchronized.
请参考图10,其示出了本申请另一个实施例提供的蓝牙设备间的音频传输装置结构框图。该装置可以通过软件、硬件或者两者的结合实现成为第二蓝牙设备的全部或一部分。该装置包括:Please refer to FIG. 10 , which shows a structural block diagram of an audio transmission device between Bluetooth devices provided by another embodiment of the present application. The device can be implemented as all or a part of the second bluetooth device through software, hardware or a combination of the two. The unit includes:
第二连接模块1010,用于通过所述至少两个蓝牙芯片中的m个蓝牙芯片,与第一蓝牙设备建立m条蓝牙连接,所述第一蓝牙设备中设置有n个蓝牙芯片,m大于等于2,且m小于等于n;The
数据接收模块1020,用于通过所述m条蓝牙连接接收所述第一蓝牙设备发送的音频数据,其中,不同蓝牙连接用于发送同一音频的音频数据;The
播放模块1030,用于根据所述音频数据进行音频播放。The
可选的,所述第二连接模块1010,包括:Optionally, the
第三连接单元,用于通过所述m个蓝牙芯片中的第二主蓝牙芯片,与所述第一蓝牙设备中的第一主蓝牙芯片建立主蓝牙连接;The third connection unit is configured to establish a master Bluetooth connection with the first master Bluetooth chip in the first Bluetooth device through the second master Bluetooth chip among the m Bluetooth chips;
第四连接单元,用于通过所述主蓝牙连接,与所述第一蓝牙设备建立m-1条从蓝牙连接。The fourth connection unit is configured to establish m-1 slave Bluetooth connections with the first Bluetooth device through the master Bluetooth connection.
可选的,所述第四连接单元,用于:Optionally, the fourth connection unit is used for:
通过所述主蓝牙连接与所述第一蓝牙设备进行蓝牙信息交互,所述蓝牙信息中至少包括蓝牙设备中蓝牙芯片的数量;Perform Bluetooth information interaction with the first Bluetooth device through the main Bluetooth connection, and the Bluetooth information includes at least the number of Bluetooth chips in the Bluetooth device;
若所述第一蓝牙设备中蓝牙芯片的数量为至少两个,则启动所述第二蓝牙设备中的第二从蓝牙芯片;If the number of bluetooth chips in the first bluetooth device is at least two, start the second slave bluetooth chip in the second bluetooth device;
通过所述第二从蓝牙芯片,与所述第一蓝牙设备中的第一从蓝牙芯片建立所述从蓝牙连接。Establish the slave Bluetooth connection with the first slave Bluetooth chip in the first Bluetooth device through the second slave Bluetooth chip.
可选的,所述装置还包括:Optionally, the device also includes:
地址发送模块,用于通过所述主蓝牙连接向所述第一蓝牙设备发送所述第二从蓝牙芯片的蓝牙MAC地址,所述第一蓝牙设备用于根据所述蓝牙MAC地址与所述第二蓝牙设备建立所述从蓝牙连接。An address sending module, configured to send the Bluetooth MAC address of the second slave Bluetooth chip to the first Bluetooth device through the master Bluetooth connection, and the first Bluetooth device is configured to use the Bluetooth MAC address and the first Bluetooth device according to the Bluetooth MAC address and the first Bluetooth device. Two Bluetooth devices establish the slave Bluetooth connection.
可选的,所述第二蓝牙设备的系统中包含蓝牙管理框架、主蓝牙协议栈和从蓝牙协议栈,所述蓝牙管理框架用于管理所述主蓝牙协议栈和所述从蓝牙协议栈,所述从蓝牙协议栈独立于所述主蓝牙协议栈;Optionally, the system of the second Bluetooth device includes a Bluetooth management framework, a master Bluetooth protocol stack, and a slave Bluetooth protocol stack, and the Bluetooth management framework is used to manage the master Bluetooth protocol stack and the slave Bluetooth protocol stack, The slave Bluetooth protocol stack is independent of the master Bluetooth protocol stack;
所述主蓝牙协议栈用于管理所述第二主蓝牙芯片,所述从蓝牙协议栈用于管理所述第二从蓝牙芯片,且所述从蓝牙协议栈支持A2DP。The master Bluetooth protocol stack is used to manage the second master Bluetooth chip, the slave Bluetooth protocol stack is used to manage the second slave Bluetooth chip, and the slave Bluetooth protocol stack supports A2DP.
可选的,所述数据接收模块1020,用于:Optionally, the
通过所述m条蓝牙连接接收所述第一蓝牙设备发送的m路音频数据,其中,各路音频数据对应各自音频声道,且所述m路音频数据经过时间同步;Receive m channels of audio data sent by the first Bluetooth device through the m Bluetooth connections, wherein each channel of audio data corresponds to a respective audio channel, and the m channels of audio data are time-synchronized;
所述播放模块1030,用于:The
通过所述m路音频数据各自对应的所述音频声道进行同步音频播放。Synchronous audio playback is performed through the audio channels corresponding to the m channels of audio data.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的蓝牙设备间的音频传输方法。The embodiment of the present application also provides a computer-readable medium, the computer-readable medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the Bluetooth device-to-device communication described in the above embodiments. audio transmission method.
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的蓝牙设备间的音频传输方法。The embodiment of the present application also provides a computer program product, the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the audio communication between Bluetooth devices as described in the above embodiments transfer method.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911134466.XA CN110830970B (en) | 2019-11-19 | 2019-11-19 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911134466.XA CN110830970B (en) | 2019-11-19 | 2019-11-19 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110830970A CN110830970A (en) | 2020-02-21 |
CN110830970B true CN110830970B (en) | 2023-05-30 |
Family
ID=69556705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911134466.XA Active CN110830970B (en) | 2019-11-19 | 2019-11-19 | Audio transmission method, device, equipment and storage medium between Bluetooth equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110830970B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510900B (en) * | 2020-04-20 | 2023-08-25 | Oppo广东移动通信有限公司 | Bluetooth transmission method, terminal device and computer-readable storage medium |
CN111885555B (en) * | 2020-06-08 | 2022-05-20 | 广州安凯微电子股份有限公司 | TWS earphone based on monitoring scheme and implementation method thereof |
CN113411796B (en) * | 2021-06-30 | 2024-09-17 | 雅迪科技集团有限公司 | Layer-entering group type Bluetooth equipment audio transmission system, method and storage medium |
CN115175154B (en) * | 2022-06-28 | 2025-06-24 | 伟光有限公司 | Bluetooth multimedia package transmission method, device, equipment and system |
CN115278625A (en) * | 2022-07-26 | 2022-11-01 | 哲库科技(上海)有限公司 | Bluetooth multimedia package transmission method, device, device and system |
CN115499814A (en) * | 2022-09-09 | 2022-12-20 | 安克创新科技股份有限公司 | Bluetooth equipment system |
CN115567086B (en) * | 2022-09-09 | 2024-03-26 | 安克创新科技股份有限公司 | Audio transmission device, audio playing device and audio transmission and synchronization system |
CN116761110B (en) * | 2023-08-18 | 2023-11-14 | 江西斐耳科技有限公司 | Multi-point bluetooth headset control method, system, storage medium and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1741407A (en) * | 2004-08-26 | 2006-03-01 | 华为技术有限公司 | How to extend bluetooth chip |
CN108881990A (en) * | 2018-06-25 | 2018-11-23 | 努比亚技术有限公司 | Audio frequency playing method, terminal and computer storage medium |
CN108924805A (en) * | 2018-07-13 | 2018-11-30 | 杭州网易云音乐科技有限公司 | Bluetooth connecting method, medium and the first, second electronic equipment and calculating equipment |
CN109379653A (en) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | Audio transmission method and device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9112986B2 (en) * | 2012-06-08 | 2015-08-18 | Apple Inc. | Supplemental audio signal processing for a bluetooth audio link |
US10225098B2 (en) * | 2015-01-30 | 2019-03-05 | Cassia Networks Inc. | Methods, devices and systems for supporting wireless communication |
US10681479B2 (en) * | 2015-01-30 | 2020-06-09 | Cassia Networks Inc. | Methods, devices and systems for bluetooth audio transmission |
-
2019
- 2019-11-19 CN CN201911134466.XA patent/CN110830970B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1741407A (en) * | 2004-08-26 | 2006-03-01 | 华为技术有限公司 | How to extend bluetooth chip |
CN108881990A (en) * | 2018-06-25 | 2018-11-23 | 努比亚技术有限公司 | Audio frequency playing method, terminal and computer storage medium |
CN108924805A (en) * | 2018-07-13 | 2018-11-30 | 杭州网易云音乐科技有限公司 | Bluetooth connecting method, medium and the first, second electronic equipment and calculating equipment |
CN109379653A (en) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | Audio transmission method and device, electronic equipment and storage medium |
Non-Patent Citations (4)
Title |
---|
Point-to-Multipoint Stereo Audio Transmitting System Based on Bluetooth;Jian He;《2010 International Conference on Communications and Mobile Computing》;20100524;全文 * |
基于Linux平台的蓝牙API设计与实现;赖明辉;《中国优秀硕士学位论文全文数据库信息科技辑》;20190515;全文 * |
蓝牙芯片功能测试软件的实现;舒春林等;《计算机工程与应用》;20040201(第02期);全文 * |
蓝牙车载信息系统的设计与实现;刘媛等;《山东科学》;20100615(第03期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110830970A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830970B (en) | Audio transmission method, device, equipment and storage medium between Bluetooth equipment | |
CN109246671B (en) | Data transmission method, device and system | |
CN109445740B (en) | Audio playback method, device, electronic device and storage medium | |
CN109445741B (en) | Data transmission method and device, electronic equipment and storage medium | |
EP3169086B1 (en) | Connection method for multimedia playing device, master device, control terminal, and system | |
WO2018032455A1 (en) | Bluetooth communication method and terminal | |
WO2017031864A1 (en) | Playing control method and apparatus for multimedia playing device | |
WO2014166243A1 (en) | Multi-terminal multi-channel independent play method and apparatus | |
US11800337B2 (en) | Method and apparatus for establishing Bluetooth data channel | |
CN115442778A (en) | Method and device for establishing Bluetooth link, bluetooth chip and equipment | |
CN106095132B (en) | Method and device for setting key function of playing equipment | |
WO2022120782A1 (en) | Multimedia playback synchronization | |
US20250211892A1 (en) | Method, electronic device, and storage medium for sharing audio data | |
WO2024066694A1 (en) | Connection method and apparatus for audio devices, and storage medium and device | |
WO2023065881A1 (en) | Bluetooth connection method and apparatus, electronic device, and storage medium | |
CN111049709B (en) | Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium | |
WO2022252928A1 (en) | Screen projection method and apparatus, wireless terminal, screen projection device and storage medium | |
WO2022206270A1 (en) | Device addition method and apparatus, bluetooth chip, and device | |
CN115278624A (en) | Information updating method and device, audio sharing method and system and electronic equipment | |
CN115022777A (en) | Audio playing parameter updating method, audio data adjusting method, device and medium | |
WO2024119947A1 (en) | Bluetooth communication method and apparatus, electronic device, and computer-readable medium | |
WO2023185589A1 (en) | Volume control method and electronic device | |
CN114885261A (en) | Earphone assembly, wireless audio playing system and communication method thereof | |
WO2022237353A1 (en) | Method, apparatus, and device for configuring earphones in earphone holding case, and program product | |
CN115022391B (en) | Service discovery method and device for Bluetooth device, terminal device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |