Bluetooth device communication method and related device
Abstract
The invention relates to a Bluetooth device communication method and related devices. In this method, by adjusting the time slot relationship of the two Bluetooth links, without increasing the additional communication bandwidth, the second Bluetooth device monitors the two link data packets at the same time, and the first Bluetooth device switches to the audio forwarding first. 2. On the Bluetooth link, and trigger the second Bluetooth device to follow the switch according to the agreed trigger mode, the communication link switching is completely dominated by the first Bluetooth device, and the two devices can continue to communicate according to the Bluetooth standard protocol after the link is switched. It avoids the problems of low communication link bandwidth utilization, large communication delay, and high power consumption caused by asynchronous switching and unable to synchronize communication or preset timing switching. At the same time, the entire link switching process is performed under the Bluetooth standard protocol, which does not affect at all Communication with audio source equipment.

Term
13.6 yearsto projected expiry
Projected expiry 24 April 2040, counted from filing; an application has no term until it is granted.
- Priority and filed
- Published
- Today
- Projected expiry
28 claims: 12 independent, 16 dependent
- 1一种蓝牙设备通信方法,应用于第一蓝牙设备;所述第一蓝牙设备用于与第二蓝牙 设备组成双无线蓝牙设备对;所述第一蓝牙设备能作为网络从设备通过第一蓝牙链路接收 音源设备发送的音频数据、能作为网络主设备通过第二蓝牙链路向第二蓝牙设备发送第一 蓝牙链路的第一通信参数以及转发音频数据;在所述第一蓝牙设备处于第一蓝牙链路时, 所述第二蓝牙设备能通过监听链路监听所述第一蓝牙链路上发送的音频数据;其中,第一 通信参数包括第一跳频序列以及第一信道接入码; 其特征在于: 所述第二蓝牙链路的主-从时隙对应所述第一蓝牙链路的从-主时隙,所述第二蓝牙链 路的从-主时隙对应所述第一蓝牙链路的主-从时隙;所述监听链路的N1时隙对应所述第一 蓝牙链路的主-从时隙,N2时隙对应第一蓝牙链路的从-主时隙,所述第二蓝牙设备能在所 述监听链路的N1时隙根据所述第一蓝牙链路的第一跳频序列和第一信道接入码监听所述 音源设备发送的音频数据,所述第二蓝牙设备能在所述监听链路的N2时隙根据所述第二蓝 牙链路的第二跳频序列和第二信道接入码监听所述第一蓝牙设备发送的数据,其中,N1+N2 为奇数; 所述方法包括以下步骤: S101,当处于所述第一蓝牙链路时,依次在每个主-从时隙接收所述音源设备发送的音 频数据; S102,当通信状态满足转发条件时,切换当前链路至所述第二蓝牙链路,在所述第二蓝 牙链路的主-从时隙向所述第二蓝牙设备发送第一数据包以触发第二蓝牙设备从所述监听 链路切换至所述第二蓝牙链路。
- 2根据权利要求1所述的蓝牙设备通信方法,其特征在于,步骤S102之后,所述方法还 包括: S103,接收所述第二蓝牙设备通过第二蓝牙链路发送的音源监听反馈信息以确定需要 转发的音频数据为待发音频数据; S104,通过所述第二蓝牙链路向所述第二蓝牙设备发送所述待发音频数据。
- 3根据权利要求1所述的蓝牙设备通信方法,其特征在于,步骤S102中,所述第一蓝牙 设备在第一蓝牙链路的主-从时隙的空闲时间进行链路切换以在下一个时隙开始前进入到 所述第二蓝牙链路上。
- 4根据权利要求1所述的蓝牙设备通信方法,其特征在于,在步骤S102中,当在连续预 设数目的时隙内未接收到所述音源设备发送的音频数据时,判定为通信状态满足转发条 件。
- 5根据权利要求1所述的蓝牙设备通信方法,其特征在于,在步骤S102中,当最大定时 时刻达到时,判定为通信状态满足转发条件。
- 6根据权利要求2所述的蓝牙设备通信方法,其特征在于,所述第二蓝牙设备能在所述 第二蓝牙链路的主-从时隙的预设位置上根据所述第一跳频序列和预设接入码接收所述第 一蓝牙设备发送的用于触发链路切换的附加包,步骤S104之后,所述方法还包括: S105,当通信状态满足监听条件时,切换当前链路至所述第一蓝牙链路; S106,在切换后的所述第一蓝牙链路的第一个从-主时隙的空闲时间的预设位置上根 据所述预设接入码向所述第二蓝牙设备发送所述附加包以触发所述第二蓝牙设备从所述 第二蓝牙链路切换至所述监听链路。
- 7根据权利要求6所述的蓝牙设备通信方法,其特征在于,步骤S105之前,所述方法还 包括: S100,通过第二蓝牙链路与所述第二蓝牙设备约定所述附加包的发送方式,所述发送 方式为:信道频点根据所述第一跳频序列变换,接入码为所述预设接入码,发送位置为所述 预设位置。
- 8根据权利要求6所述的蓝牙设备通信方法,其特征在于,所述方法还包括: 当处于所述第一蓝牙链路时,在每一个从-主时隙的空闲时间的所述预设位置向所述 第二蓝牙设备发送所述附加包。
- 9根据权利要求6所述的蓝牙设备通信方法,其特征在于,步骤S105中,所述第一蓝牙 设备在所述第二蓝牙链路的从-主时隙的空闲时间进行链路切换以在下一个时隙开始前进 入到所述第一蓝牙链路上。
- 10根据权利要求6所述的蓝牙设备通信方法,其特征在于,在步骤S105中,当音频数据 转发完毕时,判定为通信状态满足监听条件。
- 11根据权利要求6所述的蓝牙设备通信方法,其特征在于,在步骤S105中,当最大转发 时刻达到时,判定为通信状态满足监听条件。
- 12根据权利要求1-11任一项所述的蓝牙设备通信方法,其特征在于,所述第一蓝牙设 备和所述第二蓝牙设备为成对的无线蓝牙耳机或无线蓝牙音箱。
- 13根据权利要求1-11任一项所述的蓝牙设备通信方法,其特征在于,所述第一蓝牙链 路的主-从时隙为偶数时隙,所述第一蓝牙链路的从-主时隙为奇数时隙,所述第二蓝牙链 路的主-从时隙为奇数时隙,所述第二蓝牙链路的从-主时隙为偶数时隙。
- 14一种蓝牙设备通信方法,应用于第二蓝牙设备;所述第二蓝牙设备用于与第一蓝牙 设备组成双无线蓝牙设备对;所述第一蓝牙设备能作为网络从设备通过第一蓝牙链路接收 音源设备发送的音频数据、能作为网络主设备通过第二蓝牙链路向第二蓝牙设备发送第一 蓝牙链路的第一通信参数以及转发音频数据;在所述第一蓝牙设备处于第一蓝牙链路时, 所述第二蓝牙设备能通过监听链路监听所述第一蓝牙链路上发送的音频数据;其中,第一 通信参数包括第一跳频序列以及第一信道接入码; 其特征在于, 所述第二蓝牙链路的主-从时隙对应所述第一蓝牙链路的从-主时隙,所述第二蓝牙链 路的从-主时隙对应所述第一蓝牙链路的主-从时隙;所述监听链路的N1时隙对应所述第一 蓝牙链路的主-从时隙,N2时隙对应第一蓝牙链路的从-主时隙;所述第二蓝牙设备能在监 听链路的N1时隙根据所述第一蓝牙链路的第一跳频序列和第一信道接入码所述监听所述 音源设备发送的音频数据,所述第二蓝牙设备能在所述监听链路的N2时隙根据所述第二蓝 牙链路的第二跳频序列和第二信道接入码监听所述第一蓝牙设备发送的数据,其中,N1+N2 为奇数; 所述方法包括以下步骤: S201,当处于所述监听链路时,在N1时隙根据所述第一跳频序列和所述第一信道接入 码监听所述音源设备发送的音频数据,在N2时隙根据所述第二跳频序列和所述第二信道接 入码监听所述第二蓝牙设备发送的数据; S202,当在任一N2时隙接收到所述第一蓝牙设备发送的用于触发链路切换的第一数据 包时,从所述监听链路切换至所述第二蓝牙链路。
- 15根据权利要求14所述的蓝牙设备通信方法,其特征在于,步骤S202之后,所述方法 还包括: S203,通过所述第二蓝牙链路向所述第一蓝牙设备发送音源监听反馈信息; S204,接收所述第一蓝牙设备发送的待发音频数据;其中,所述待发音频数据由所述第 一蓝牙设备根据所述音源监听反馈信息确定。
- 16根据权利要求15所述的蓝牙设备通信方法,其特征在于,步骤S204之后,所述方法 还包括: S205,当在所述第二蓝牙链路的任一主-从时隙的接收位置上未接收到所述第一蓝牙 设备发送的数据包时,在同一时隙的空闲时间的预设位置上,再根据所述第一跳频序列和 预设接入码侦测是否接收到所述第一蓝牙设备发送的用于触发链路切换的附加包,若是, 执行步骤S206,若否,继续停留在所述第二蓝牙链路; S206,切换至监听链路。
- 17一种蓝牙设备通信方法,应用于第一蓝牙设备和第二蓝牙设备组成的双无线蓝牙 设备对,所述第一蓝牙设备能作为网络从设备通过第一蓝牙链路接收音源设备发送的音频 数据,能作为网络主设备通过第二蓝牙链路向第二蓝牙设备发送第一蓝牙链路的第一通信 参数以及转发音频数据;在所述第一蓝牙设备处于第一蓝牙链路时,所述第二蓝牙设备能 通过监听链路监听所述第一蓝牙链路上发送的音频数据;其中,第一通信参数包括第一跳 频序列以及第一信道接入码; 其特征在于, 所述第二蓝牙链路的主-从时隙对应所述第一蓝牙链路的从-主时隙,所述第二蓝牙链 路的从-主时隙对应所述第一蓝牙链路的主-从时隙;所述监听链路的N1时隙对应所述第一 蓝牙链路的主-从时隙,N2时隙对应第一蓝牙链路的从-主时隙;所述第二蓝牙设备能在监 听链路的N1时隙根据所述第一蓝牙链路的第一跳频序列和第一信道接入码监听所述音源 设备发送的音频数据,所述第二蓝牙设备能在监听链路的N2时隙根据所述第二蓝牙链路的 第二跳频序列和第二信道接入码监听所述第一蓝牙设备发送的数据,其中,N1+N2为奇数; 所述方法包括以下步骤: S01,当所述第一蓝牙设备处于所述第一蓝牙链路时,所述第一蓝牙设备依次在每个 主-从时隙接收所述音源设备发送的音频数据;期间,第二蓝牙设备位于监听链路; S02,当所述第二蓝牙设备处于所述监听链路时,所述第二蓝牙设备在N1时隙通过所述 第一跳频序列和所述第一信道接入码监听所述音源设备发送的音频数据,在N2时隙通过所 述第二跳频序列和所述第二信道接入码监听所述第一蓝牙设备发送的数据; S03,若所述第一蓝牙设备判断当前通信状态满足转发条件时,切换当前链路至所述第 二蓝牙链路,在所述第二蓝牙链路的主-从时隙向所述第二蓝牙设备发送第一数据包以触 发第二蓝牙设备从所述监听链路切换至所述第二蓝牙链路; S04,所述第二蓝牙设备在所述监听链路上接收到所述第一数据包时,从所述监听链路 切换至所述第二蓝牙链路。
- 18根据权利要求17所述的蓝牙设备通信方法,其特征在于,步骤S03中,所述第一蓝牙 设备在第一蓝牙链路的主-从时隙的空闲时间进行链路切换以在下一个时隙开始前进入到 所述第二蓝牙链路上。
- 19根据权利要求17或18任一项所述的蓝牙设备通信方法,其特征在于,所述方法还包 括: S05,所述第一蓝牙设备在通信状态满足监听条件时,切换当前链路至所述第一蓝牙链 路; S06,所述第一蓝牙设备在切换后的第一个从-主时隙的预设位置上根据所述预设接入 码向所述第二蓝牙设备发送用于触发链路切换的附加包以触发所述第二蓝牙设备从所述 第二蓝牙链路切换至所述监听链路; S07,所述第二蓝牙设备在所述第二蓝牙链路的任一主-从时隙的接收位置未接收到所 述第一蓝牙设备发送的数据包时,在同一时隙的空闲时间的预设位置上根据所述第一蓝跳 频序列和预设接入码接收所述附加包; S08,所述第二蓝牙设备在接收到所述附加包后,从所述第二蓝牙链路切换至所述监听 链路。
- 20根据权利要求19所述的蓝牙设备通信方法,其特征在于,步骤S05之前,所述方法还 包括: S05 ',所述第一蓝牙设备和所述第二蓝牙设备通过所述第二蓝牙链路约定所述附加包 的发送方式,所述发送方式为:信道频点根据所述第一跳频序列变换,接入码为所述预设接 入码,发送位置为所述预设位置。
- 21根据权利要求19所述的蓝牙设备通信方法,其特征在于,步骤S05中,所述第一蓝牙 设备在所述第二蓝牙链路的从-主时隙的空闲时间进行链路切换以在下一个时隙开始前进 入到所述第一蓝牙链路上。
- 22一种蓝牙设备通信装置,应用于第一蓝牙设备,所述第一蓝牙设备用于与第二蓝牙 设备组成双无线蓝牙设备对;所述第一蓝牙设备能作为网络从设备通过第一蓝牙链路接收 音源设备发送的音频数据、能作为网络主设备通过第二蓝牙链路向第二蓝牙设备发送第一 蓝牙链路的第一通信参数以及转发音频数据;在所述第一蓝牙设备处于第一蓝牙链路时, 所述第二蓝牙设备能通过监听链路监听所述第一蓝牙链路上发送的音频数据;其中,第一 通信参数包括第一跳频序列以及第一信道接入码; 其特征在于:所述第二蓝牙链路的主-从时隙对应所述第一蓝牙链路的从-主时隙,所述第二蓝牙链 路的从-主时隙对应所述第一蓝牙链路的主-从时隙;所述监听链路的N1时隙对应所述第一 蓝牙链路的主-从时隙,N2时隙对应第一蓝牙链路的从-主时隙,所述第二蓝牙设备能在所 述监听链路的N1时隙根据所述第一蓝牙链路的第一跳频序列和第一信道接入码监听所述 音源设备发送的音频数据,所述第二蓝牙设备能在所述监听链路的N2时隙根据所述第二蓝 牙链路的第二跳频序列和第二信道接入码监听所述第一蓝牙设备发送的数据,其中,N1+N2 为奇数; 所述蓝牙设备通信装置包括: 第一收发模块,用于当处于所述第一蓝牙链路时,依次在每个主-从时隙接收所述音源 设备发送的音频数据; 转发触发模块,当通信状态满足转发条件时,切换当前链路至所述第二蓝牙链路,在所 述第二蓝牙链路的主-从时隙向所述第二蓝牙设备发送第一数据包以触发第二蓝牙设备从 所述监听链路切换至所述第二蓝牙链路。
- 23一种蓝牙设备通信装置,应用于第二蓝牙设备;所述第二蓝牙设备用于与第一蓝牙 设备组成双无线蓝牙设备对;所述第一蓝牙设备能作为网络从设备通过第一蓝牙链路接收 音源设备发送的音频数据、能作为网络主设备通过第二蓝牙链路向第二蓝牙设备发送第一 蓝牙链路的第一通信参数以及转发音频数据;在所述第一蓝牙设备处于第一蓝牙链路时, 所述第二蓝牙设备能通过监听链路监听所述第一蓝牙链路上发送的音频数据;其中,第一 通信参数包括第一跳频序列以及第一信道接入码; 其特征在于, 所述第二蓝牙链路的主-从时隙对应所述第一蓝牙链路的从-主时隙,所述第二蓝牙链 路的从-主时隙对应所述第一蓝牙链路的主-从时隙;所述监听链路的N1时隙对应所述第一 蓝牙链路的主-从时隙,N2时隙对应第一蓝牙链路的从-主时隙;所述第二蓝牙设备能在监 听链路的N1时隙根据所述第一蓝牙链路的第一跳频序列和第一信道接入码所述监听所述 音源设备发送的音频数据,所述第二蓝牙设备能在所述监听链路的N2时隙根据所述第二蓝 牙链路的第二跳频序列和第二信道接入码监听所述第一蓝牙设备发送的数据,其中,N1+N2 为奇数; 所述蓝牙设备通信装置包括: 链路监听模块,用于当处于所述监听链路时,在N1时隙根据所述第一跳频序列和所述 第一信道接入码监听所述音源设备发送的音频数据,在N2时隙根据所述第二跳频序列和所 述第二信道接入码监听所述第二蓝牙设备发送的数据; 转发跟随模块,用于当在任一N2时隙接收到第一蓝牙设备发送的用于触发链路切换的 第一数据包时,从所述监听链路切换至所述第二蓝牙链路。
- 24一种蓝牙设备,其特征在于,所述蓝牙设备包括: 处理器,用于实现如权利要求1-16任意一项所述的方法。
- 25一种双无线蓝牙设备对,包括第一蓝牙设备和所述第二蓝牙设备,其特征在于,所 述第一蓝牙设备和所述第二蓝牙设备采用如权利要求17-21任一项所述的蓝牙设备通信方 法进行通信。
- 26一种蓝牙通信系统,包括用于提供音频数据的音源设备以及两个用于播放音源设 备音频数据的第一蓝牙设备和第二蓝牙设备,其特征在于:所述第一蓝牙设备和所述第二 蓝牙设备采用如权利要求17-21任一项所述的通信方法进行通信。
- 27一种用于蓝牙设备的芯片,其上具有集成电路,其特征在于,所述集成电路被设计 成用于实现如权利要求1-13或14-16任一项所述的方法。
- 28一种存储介质,所述存储介质存有计算机程序,其特征在于,所述计算机程序被处 理器运行时,执行如权利要求1-13或14-16任一项所述的方法。
Independent claims28
223 paragraphs, as filed
Bluetooth device communication method and related device technical field
[0001] The present invention relates to the field of wireless communication, and in particular to Bluetooth device communication methods, devices, systems, devices, chips, and storage media.
Background technique
[0002] With the gradual development of Bluetooth technology, Bluetooth devices have been seen everywhere in different fields, especially audio applications. In some application scenarios, data output sources need to be transmitted to two or more devices via Bluetooth, such as stereo Headphones require left and right channel playback devices that need to receive the signal from the data source to achieve the effect of synchronized playback. This is the dual wireless Bluetooth communication on audio playback. Dual wireless Bluetooth communication includes three Bluetooth devices, one of which is a Bluetooth audio source device (such as mobile phones, laptops, etc.), and two simultaneous Bluetooth devices (such as Bluetooth dual headsets, dual speakers, etc.). The current common practice is one The Bluetooth device is connected to the Bluetooth audio source device as the main receiving device, and the other Bluetooth device is connected to the main receiving device as the slave receiving device and monitors the Bluetooth audio source device. The information exchanged by the slave receiving device through the master receiving device establishes a monitoring link that monitors the communication between the master receiving device and the Bluetooth audio source device, and realizes the acquisition of audio source audio data to achieve the function of simultaneous playback of the master and slave receiving devices. There is a difference with interference. The master receiving device transfers the source audio data to the slave receiving device to repair the wrong audio data received by the monitoring link.
[0003] To achieve the above-mentioned dual wireless audio, both the master and slave receiving devices need to switch between the two links. The current switching methods generally include the following two:
[0004] 1. The two communication links are switched at the agreed timing. In this case, due to the difference in receiving performance and interference between the master and slave receiving devices, sometimes the performance of the master receiving device is good or there is little interference, and the audio data of the audio source device is quickly received. However, if the preset timing is used at this time, the It needs to wait until the timing arrives to switch, which wastes communication bandwidth and has large communication delay problems.
[0005] 2. The two communication links are switched according to the audio situation of the receiving Bluetooth audio source device. If the method of switching according to the audio condition of the receiving Bluetooth audio source device is used, the master and slave receiving devices will switch immediately after receiving the audio data of the Bluetooth audio source device respectively, which will cause the master-slave difference due to the difference in the reception performance and interference of the master-slave receiving device When the receiving device does not switch to the corresponding link at the same time and cannot communicate and needs continuous data, there are also problems such as wasted communication bandwidth and high power consumption.
[0006] The above communication link switching methods may cause problems such as low bandwidth utilization, large communication delay, and high power consumption, which in turn affects the communication between the dual wireless Bluetooth device and the audio source device, and affects the user experience.
Summary of the invention
[0007] Based on the above status, the main purpose of the present invention is to provide Bluetooth device communication methods, devices, systems, devices, chips, and storage media. The Bluetooth master receiving device actively controls the switching of the link, and the slave receiving device follows the switching to avoid It solves the problems of low communication link bandwidth utilization, large communication delay and high power consumption caused by independent switching or preset timing switching.
[0008] In order to achieve the above objectives, the technical solutions adopted by the present invention are as follows:
[0009] A Bluetooth device communication method, applied to a first Bluetooth device; the first Bluetooth device is used to form a dual wireless Bluetooth device pair with a second Bluetooth device; the first Bluetooth device can be used as a network slave device through the first Bluetooth device A Bluetooth link receives the audio data sent by the audio source device, and can act as the network master device to send the first communication parameters of the first Bluetooth link to the second Bluetooth device through the second Bluetooth link and forward the audio data; When the device is in the first Bluetooth link, the second Bluetooth device can monitor the audio data sent on the first Bluetooth link through the listening link; wherein, the first communication parameter includes the first frequency hopping sequence and the first channel Access code; the master-slave time slot of the second Bluetooth link corresponds to the slave-master time slot of the first Bluetooth link, and the slave-master time slot of the second Bluetooth link corresponds to the first The master-slave time slot of the Bluetooth link; the N1 time slot of the monitoring link corresponds to the master-slave time slot of the first Bluetooth link, and the N2 time slot corresponds to the slave-master time slot of the first Bluetooth link, The second Bluetooth device can monitor the audio data sent by the audio source device in the N1 time slot of the listening link according to the first frequency hopping sequence and the first channel access code of the first Bluetooth link, and The second Bluetooth device can monitor the data sent by the first Bluetooth device in the N2 time slot of the listening link according to the second frequency hopping sequence and the second channel access code of the second Bluetooth link, where N1 +N2 is an odd number; the method includes the following steps:
[0010] S101, when in the first Bluetooth link, sequentially receive audio data sent by the audio source device in each master-slave time slot;
[0011] S102: When the communication state meets the forwarding condition, switch the current link to the second Bluetooth link, and send the first link to the second Bluetooth device in the master-slave time slot of the second Bluetooth link. The data packet is used to trigger the second Bluetooth device to switch from the listening link to the second Bluetooth link.
[0012] Preferably, after step S102, the method further includes:
[0013] S103, receiving the audio source monitoring feedback information sent by the second Bluetooth device through the second Bluetooth link to determine that the audio data that needs to be forwarded is to-be-sent audio data;
[0014] S104. Send the to-be-sent audio data to the second Bluetooth device through the second Bluetooth link.
[0015] Preferably, in step S102, the first Bluetooth device performs link switching during the idle time of the master-slave time slot of the first Bluetooth link to enter the second Bluetooth link before the next time slot starts. On the way.
[0016] Preferably, in step S102, when the audio data sent by the audio source device is not received in a continuous preset number of time slots, it is determined that the communication state meets the forwarding condition.
[0017] Preferably, in step S102, when the maximum timing moment is reached, it is determined that the communication state satisfies the forwarding condition.
[0018] Preferably, the second Bluetooth device can receive the second Bluetooth device at a preset position of the master-slave time slot of the second Bluetooth link according to the first frequency hopping sequence and the preset access code. An additional packet sent by a Bluetooth device for triggering link switching. After step S104, the method further includes:
[0019] S105, when the communication state satisfies the monitoring condition, switch the current link to the first Bluetooth link;
[0020] S106, at a preset position of the idle time of the first slave-master time slot of the first Bluetooth link after the handover, according to the preset access code, send all data to the second Bluetooth device. The additional package is used to trigger the second Bluetooth device to switch from the second Bluetooth link to the listening link.
[0021] Preferably, before step S105, the method further includes:
[0022] S100, agreeing on a sending mode of the additional packet with the second Bluetooth device through the second Bluetooth link, the sending mode is: the channel frequency is transformed according to the first frequency hopping sequence, and the access code is For the preset access code, the sending location is the preset location.
[0023] Preferably, the method further includes:
[0024] When in the first Bluetooth link, at the preset position of the idle time of each slave-master time slot
The second Bluetooth device sends the additional package.
[0025] Preferably, in step S105, the first Bluetooth device performs link switching during the idle time of the slave-master time slot of the second Bluetooth link to enter the first time slot before the next time slot starts. On the Bluetooth link.
[0026] Preferably, in step S105, when the audio data forwarding is completed, it is determined that the communication state satisfies the monitoring condition.
[0027] Preferably, in step S105, when the maximum forwarding time is reached, it is determined that the communication state satisfies the monitoring condition.
[0028] Preferably, the first Bluetooth device and the second Bluetooth device are paired wireless Bluetooth headsets or wireless Bluetooth speakers.
[0029] Preferably, the master-slave time slot of the first Bluetooth link is an even-numbered time slot, the slave-master time slot of the first Bluetooth link is an odd-numbered time slot, and the second Bluetooth link The master-slave time slot is an odd-numbered time slot, and the slave-master time slot of the second Bluetooth link is an even-numbered time slot.
[0030] The present invention also provides a Bluetooth device communication method, applied to a second Bluetooth device; the second Bluetooth device is used to form a dual wireless Bluetooth device pair with the first Bluetooth device; the first Bluetooth device can be used as a network The slave device receives the audio data sent by the audio source device through the first Bluetooth link, and can act as the network master device to send the first communication parameters of the first Bluetooth link to the second Bluetooth device through the second Bluetooth link and forward the audio data; When the first Bluetooth device is in the first Bluetooth link, the second Bluetooth device can monitor the audio data sent on the first Bluetooth link through the listening link; wherein, the first communication parameter includes a first frequency hopping sequence And the first channel access code; the master-slave time slot of the second Bluetooth link corresponds to the slave-master time slot of the first Bluetooth link, and the slave-master time slot of the second Bluetooth link corresponds to all The master-slave time slot of the first Bluetooth link; the N1 time slot of the monitoring link corresponds to the master-slave time slot of the first Bluetooth link, and the N2 time slot corresponds to the slave-master of the first Bluetooth link Time slot; the second Bluetooth device can monitor the audio data sent by the audio source device according to the first frequency hopping sequence and the first channel access code of the first Bluetooth link in the N1 time slot of the listening link The second Bluetooth device can monitor the data sent by the first Bluetooth device according to the second frequency hopping sequence and the second channel access code of the second Bluetooth link in the N2 time slot of the listening link, Wherein, N1+N2 is an odd number; the method includes the following steps:
[0031] S201. When in the monitoring link, monitor the audio data sent by the audio source device according to the first frequency hopping sequence and the first channel access code in the N1 time slot, and according to the N2 time slot Monitoring the data sent by the second Bluetooth device by the second frequency hopping sequence and the second channel access code;
[0032] S202: When a first data packet sent by the first Bluetooth device for triggering link switching is received in any N2 time slot, switch from the listening link to the second Bluetooth link.
[0033] Preferably, after step S202, the method further includes:
[0034] S203, sending audio source monitoring feedback information to the first Bluetooth device through the second Bluetooth link;
[0035] S204, receiving audio data to be sent sent by the first Bluetooth device; wherein the audio data to be sent is determined by the first Bluetooth device according to the audio source monitoring feedback information.
[0036] Preferably, after step S204, the method further includes:
[0037] S205, when the data packet sent by the first Bluetooth device is not received at the receiving position of any master-slave time slot of the second Bluetooth link, the idle time of the same time slot Set the position, and then detect according to the first frequency hopping sequence and the preset access code whether an additional packet sent by the first Bluetooth device for triggering link switching is received, if yes, perform step S206, if not , Continue to stay on the second Bluetooth link;
[0038] S206: Switch to the monitoring link.
[0039] The present invention also provides a Bluetooth device communication method, which is applied to the composition of the first Bluetooth device and the second Bluetooth device
The first Bluetooth device can be used as a network slave device to receive audio data sent by the audio source device via the first Bluetooth link, and can be used as the network master device to send the second Bluetooth device to the second Bluetooth device via the second Bluetooth link The first communication parameters of a Bluetooth link and the forwarded audio data; when the first Bluetooth device is in the first Bluetooth link, the second Bluetooth device can monitor the transmission on the first Bluetooth link through the listening link The audio data; where the first communication parameter includes a first frequency hopping sequence and a first channel access code; the master-slave time slot of the second Bluetooth link corresponds to the slave-master time of the first Bluetooth link Slot, the slave-master time slot of the second Bluetooth link corresponds to the master-slave time slot of the first Bluetooth link; the N1 time slot of the listening link corresponds to the master-slave time slot of the first Bluetooth link From the time slot, N2 time slot corresponds to the slave-master time slot of the first Bluetooth link; the second Bluetooth device can monitor the N1 time slot of the link according to the first frequency hopping sequence of the first Bluetooth link and The first channel access code monitors the audio data sent by the audio source device, and the second Bluetooth device can access according to the second frequency hopping sequence of the second Bluetooth link and the second channel in the N2 time slot of the listening link. Enter the code to monitor the data sent by the first Bluetooth device, where N1+N2 is an odd number; the method includes the following steps:
[0040] S01, when the first Bluetooth device is in the first Bluetooth link, the first Bluetooth device sequentially receives the audio data sent by the audio source device in each master-slave time slot; 2. The Bluetooth device is located in the monitoring link;
[0041] S02. When the second Bluetooth device is in the monitoring link, the second Bluetooth device monitors the first frequency hopping sequence and the first channel access code in the N1 time slot. For audio data sent by the audio source device, monitor the data sent by the first Bluetooth device through the second frequency hopping sequence and the second channel access code in the N2 time slot;
[0042] S03. If the first Bluetooth device determines that the current communication state meets the forwarding condition, switch the current link to the second Bluetooth link, and then switch the current link to the second Bluetooth link in the master-slave time slot of the second Bluetooth link. The second Bluetooth device sends a first data packet to trigger the second Bluetooth device to switch from the listening link to the second Bluetooth link;
[0043] S04, when the second Bluetooth device receives the first data packet on the listening link, it switches from the listening link to the second Bluetooth link.
[0044] Preferably, in step S03, the first Bluetooth device performs link switching during the idle time of the master-slave time slot of the first Bluetooth link to enter the second Bluetooth link before the next time slot starts. On the way.
[0045] Preferably, the method further includes:
[0046] S05: When the communication state of the first Bluetooth device meets the monitoring condition, switch the current link to the first Bluetooth link;
[0047] S06, the first Bluetooth device sends to the second Bluetooth device according to the preset access code at the preset position of the first slave-master time slot after the handover for triggering link switching To trigger the second Bluetooth device to switch from the second Bluetooth link to the listening link;
[0048] S07, when the second Bluetooth device does not receive a data packet sent by the first Bluetooth device at the receiving position of any master-slave time slot of the second Bluetooth link, in the same time slot Receiving the additional packet according to the first blue frequency hopping sequence and the preset access code at a preset position in the idle time;
[0049] S08: After receiving the additional package, the second Bluetooth device switches from the second Bluetooth link to the listening link.
[0050] Preferably, before step S05, the method further includes:
[0051] S05', the first Bluetooth device and the second Bluetooth device agree on a sending mode of the additional package through the second Bluetooth link, and the sending mode is: the channel frequency is based on the first The frequency hopping sequence is changed, the access code is the preset access code, and the transmission location is the preset location.
[0052] Preferably, in step S05, the first Bluetooth device is idle in the slave-master time slot of the second Bluetooth link
Time to perform link switching to enter the first Bluetooth link before the start of the next time slot.
[0053] The present invention also provides a Bluetooth device communication device, applied to a first Bluetooth device, the first Bluetooth device is used to form a dual wireless Bluetooth device pair with a second Bluetooth device; the first Bluetooth device can be used as a network The slave device receives the audio data sent by the audio source device through the first Bluetooth link, and can act as the network master device to send the first communication parameters of the first Bluetooth link to the second Bluetooth device through the second Bluetooth link and forward the audio data; When the first Bluetooth device is in the first Bluetooth link, the second Bluetooth device can monitor the audio data sent on the first Bluetooth link through the listening link; wherein, the first communication parameter includes a first frequency hopping sequence And the first channel access code; the master-slave time slot of the second Bluetooth link corresponds to the slave-master time slot of the first Bluetooth link, and the slave-master time slot of the second Bluetooth link corresponds to all The master-slave time slot of the first Bluetooth link; the N1 time slot of the listening link corresponds to the master-slave time slot of the first Bluetooth link, and the N2 time slot corresponds to the slave-master of the first Bluetooth link Time slot, the second Bluetooth device can monitor the audio data sent by the audio source device according to the first frequency hopping sequence and the first channel access code of the first Bluetooth link in the N1 time slot of the listening link The second Bluetooth device can monitor the data sent by the first Bluetooth device according to the second frequency hopping sequence and the second channel access code of the second Bluetooth link in the N2 time slot of the listening link, Wherein, N1+N2 is an odd number; the Bluetooth device communication device includes:
[0054] The first transceiver module is configured to receive the audio data sent by the audio source device in each master-slave time slot in sequence when in the first Bluetooth link;
[0055] The forwarding trigger module, when the communication status meets the forwarding condition, switches the current link to the second Bluetooth link, and sends to the second Bluetooth device in the master-slave time slot of the second Bluetooth link The first data packet is used to trigger the second Bluetooth device to switch from the listening link to the second Bluetooth link.
[0056] The present invention also provides a Bluetooth device communication device, applied to a second Bluetooth device; the second Bluetooth device is used to form a dual wireless Bluetooth device pair with the first Bluetooth device; the first Bluetooth device can be used as a network The slave device receives the audio data sent by the audio source device through the first Bluetooth link, and can act as the network master device to send the first communication parameters of the first Bluetooth link to the second Bluetooth device through the second Bluetooth link and forward the audio data; When the first Bluetooth device is in the first Bluetooth link, the second Bluetooth device can monitor the audio data sent on the first Bluetooth link through the listening link; wherein, the first communication parameter includes a first frequency hopping sequence And the first channel access code; the master-slave time slot of the second Bluetooth link corresponds to the slave-master time slot of the first Bluetooth link, and the slave-master time slot of the second Bluetooth link corresponds to all The master-slave time slot of the first Bluetooth link; the N1 time slot of the monitoring link corresponds to the master-slave time slot of the first Bluetooth link, and the N2 time slot corresponds to the slave-master of the first Bluetooth link Time slot; the second Bluetooth device can monitor the audio data sent by the audio source device according to the first frequency hopping sequence and the first channel access code of the first Bluetooth link in the N1 time slot of the listening link The second Bluetooth device can monitor the data sent by the first Bluetooth device according to the second frequency hopping sequence and the second channel access code of the second Bluetooth link in the N2 time slot of the listening link, Wherein, N1+N2 is an odd number; the Bluetooth device communication device includes:
[0057] The link monitoring module is configured to monitor the audio data sent by the audio source device in the N1 time slot according to the first frequency hopping sequence and the first channel access code when in the monitoring link, Monitor the data sent by the second Bluetooth device according to the second frequency hopping sequence and the second channel access code in the N2 time slot;
[0058] The forwarding follow module is used to switch from the listening link to the second Bluetooth link when the first data packet sent by the first Bluetooth device for triggering link switching is received in any N2 time slot road.
[0059] The present invention also provides a Bluetooth device. The Bluetooth device includes a processor for implementing the Bluetooth communication applied to the first Bluetooth device or the second Bluetooth device as described above.
[0060] The present invention also provides a dual-wireless Bluetooth device pair, including a first Bluetooth device and the second Bluetooth device, the first Bluetooth device and the second Bluetooth device are applied to the first Bluetooth The device communicates with the Bluetooth device communication method of the second Bluetooth device.
[0061] The present invention also provides a Bluetooth communication system, including an audio source device for providing audio data, and two first Bluetooth devices and a second Bluetooth device for playing audio data of the audio source device, the first Bluetooth device and The second bluetooth device communicates using the bluetooth device communication method applied to the first bluetooth device and the second bluetooth device
[0062] The present invention also provides a chip for a Bluetooth device, which has an integrated circuit thereon, and the integrated circuit is designed to implement the aforementioned application to the first Bluetooth device or the second Bluetooth device as described above. Bluetooth communication.
[0063] The present invention also provides a storage medium, the storage medium stores a computer program, wherein when the computer program is run by a processor, the computer program is applied to the first Bluetooth device or the second Bluetooth device as described above. The Bluetooth communication of the Bluetooth device.
[0064] Beneficial effects:
[0065] In the embodiment of the present invention, by adjusting the time slot relationship of the two Bluetooth links, the second Bluetooth device monitors the two link data packets at the same time without increasing additional communication bandwidth, and the first Bluetooth device switches first To the second Bluetooth link of audio forwarding, and trigger the second Bluetooth device to follow the switch according to the agreed trigger mode, the communication link switching is completely dominated by the first Bluetooth device, and the two devices can continue to press Bluetooth after the link is switched Standard protocol for communication, avoiding the problems of low bandwidth utilization, long communication delay and high power consumption of communication link caused by asynchronous handover and synchronization communication or preset timing handover. At the same time, the entire link switching process is under the Bluetooth standard protocol. It does not affect the communication with the audio source equipment at all.
[0066] Other beneficial effects of the present invention will be explained in the specific embodiments through the introduction of specific technical features and technical solutions. Those skilled in the art should be able to understand the technical features and technical solutions through the introduction of these technical features and technical solutions. The beneficial technical effects brought about by the technical solution.
Description of the drawings
[0067] Hereinafter, a preferred embodiment according to the present invention will be described with reference to the accompanying drawings. In the picture:
[0068] FIG. 1 is a schematic diagram of a communication link of dual wireless Bluetooth communication in the present invention;
[0069] FIG. 2 is a schematic flowchart of a method for communicating with a Bluetooth device on the first Bluetooth device side in an embodiment of the present invention;
[0070] FIG. 3 is a schematic diagram of link switching in the communication process of each Bluetooth device in an embodiment of the present invention;
[0071] FIG. 4 shows another schematic diagram of link switching in the communication process of each Bluetooth device in another embodiment of the present invention; [0072] FIG. 5 shows the second Bluetooth device side Bluetooth device communication in an embodiment of the present invention Schematic flowchart of the method; [0073] FIG. 6 is a schematic flowchart of a Bluetooth device communication method applied to a first Bluetooth device and a second Bluetooth device in an embodiment of the present invention;
[0074] FIG. 7 is a schematic diagram of functional modules of the first Bluetooth device side Bluetooth device communication device in an embodiment of the present invention;
[0075] FIG. 8 is a schematic diagram of functional modules of the second Bluetooth device side Bluetooth device communication device in an embodiment of the present invention;
[0076] FIG. 9 is a schematic structural diagram of a Bluetooth communication system in an embodiment of the present invention.
Detailed ways
[0077] In order to provide a more detailed description of the technical solution of the present invention to promote a further understanding of the present invention, the following describes specific embodiments of the present invention with reference to the accompanying drawings. However, it should be understood that all the exemplary embodiments and their descriptions are used to explain the present invention and do not constitute the only limitation to the present invention.
[0078] In the Bluetooth standard protocol, the same Bluetooth network includes a Bluetooth master device and a Bluetooth slave device. In the Bluetooth network, the Bluetooth master device provides a local clock as the network public clock. The Bluetooth slave device generally adds a bias to its own local clock. Move the amount to synchronize with the public clock. The Bluetooth master device and the Bluetooth slave device generally use a frequency of 1,600 hops per second for frequency hopping communication. The definition of the Bluetooth specification includes the concept of time slots. A time slot is 1/1600 second, that is, 625us. In a Bluetooth link, the time slot includes a master-slave time slot and a slave-master time slot that alternate in turn. At each master-slave sending position (that is, the starting position of each time slot), the Bluetooth master device sends data packets to the Bluetooth slave device, and at the receiving position of each slave-master time slot (usually the time slot Start position), the Bluetooth master device receives the data packet from the Bluetooth slave device. In the Bluetooth network, data transmission is always initiated by the Bluetooth master device transmitting data to the Bluetooth slave device in the master-slave time slot, and the Bluetooth slave device responds to the data in the slave-master time slot. The Bluetooth slave device only receives the Bluetooth master After the device sends the data, it needs to respond in the slave-master time slot. In Bluetooth communication, the master device usually transmits in an even-numbered time slot, and the slave device responds in an odd-numbered time slot, that is, the even-numbered time slot is the master-slave time slot, and the odd-numbered time slot is the slave-master time slot. Bluetooth data packets have a single time slot, 3 Time slot, 5 time slot data packet, for 3 time slot data packet and 5 time slot data packet, the data packet can be sent across time slots, 3 or 5 consecutive time slots are all master-slave time slots, but in After the transmission is completed, the next time slot is still the slave-master time slot and is still an odd time slot, which does not disrupt the rule that the master device usually sends in an even time slot and the slave device responds in an odd time slot.
[0079] The present invention is applied to various wireless Bluetooth devices, which can be Bluetooth playback devices such as Bluetooth headsets or Bluetooth speakers, etc. The present invention does not limit the specific types and manifestations of Bluetooth devices.
[0080] In the present invention, the first Bluetooth device and the second Bluetooth device form a dual wireless Bluetooth device pair, which obtains and plays audio data from the audio source device. As shown in FIG. 1 is a communication of the dual wireless Bluetooth communication in the present invention. Link diagram. In the first Bluetooth link, the audio source device 100 is a Bluetooth master device, and the first Bluetooth device 101 is a Bluetooth slave device. In the second Bluetooth link, the first Bluetooth device 101 is a Bluetooth master device, and the second Bluetooth device 102 is a Bluetooth slave device. The first Bluetooth device 101 and the second Bluetooth device 102 form a dual wireless Bluetooth device pair. The first Bluetooth device 101 can serve as a network slave device to receive audio data sent by the audio source device 100 through the first Bluetooth link, and can act as a network master device through the first Bluetooth link. 2. The Bluetooth link sends the first communication parameters of the first Bluetooth link and forwards audio data to the second Bluetooth device 102. The second Bluetooth device 102 can monitor the audio data sent on the first Bluetooth link through the monitoring link, thereby obtaining Audio data of the sound source device 100. In this embodiment, the time slot division and change of the first Bluetooth link, the second Bluetooth link, and the listening link are synchronized. The master-slave time slot of the first Bluetooth link corresponds to the slave-master time slot of the second Bluetooth link, the slave-slave time slot of the first Bluetooth link corresponds to the master-slave time slot of the second Bluetooth link, and the monitoring chain The time slot N1 of the channel corresponds to the master-slave time slot of the first Bluetooth link, and the time slot N2 Corresponding to the slave-master time slot of the first Bluetooth link, N1 and N2 are integers not less than 0 and N1+N2 are odd numbers. The second Bluetooth device 102 can monitor the audio data sent by the audio source device 100 in the N1 time slot of the listening link according to the first frequency hopping sequence of the first Bluetooth link and the first channel access code, and in the N2 time slot according to the second Bluetooth The second frequency hopping sequence and the second channel access code of the link monitor the data sent by the first Bluetooth device 101.
[0081] Embodiment Group One:
[0082] Please refer to FIG. 2, which is a schematic flowchart of a Bluetooth device communication method on the side of a first Bluetooth device in an embodiment of the present invention. In this embodiment, the Bluetooth device communication method includes the following steps S101-S102:
[0083] S101, when in the first Bluetooth link, sequentially receive the sound source device in each master-slave time slot
Audio data;
[0084] S102. When the communication status meets the forwarding condition, switch the current link to the second Bluetooth link, and send the first link to the second Bluetooth device in the master-slave time slot of the second Bluetooth link. The data packet is used to trigger the second Bluetooth device to switch from the listening link to the second Bluetooth link.
[0085] Specifically, in this embodiment, the second Bluetooth device 102 can monitor the transmission of the audio source device 100 according to the first frequency hopping sequence of the first Bluetooth link and the first channel access code in the N1 time slot of the listening link. According to the second frequency hopping sequence of the second Bluetooth link and the second channel access code, the data sent by the first Bluetooth device 101 is monitored in the N2 time slot. The master-slave time slot of the first Bluetooth link corresponds to the slave-master time slot of the second Bluetooth link, the slave-slave time slot of the first Bluetooth link corresponds to the master-slave time slot of the second Bluetooth link, and the monitoring chain The time slot N1 of the road corresponds to the master-slave time slot of the first Bluetooth link, and the time slot N2 corresponds to the slave-master time slot of the first Bluetooth link. N1, N2 are integers not less than 0 and N1+N2 is odd number. The time slot division and change of the first Bluetooth link, the second Bluetooth link and the listening link are synchronized.
[0086] For the second Bluetooth device 102, when it establishes the second Bluetooth link, it has obtained the second communication parameters of the second Bluetooth link, including the second frequency hopping sequence, the second channel access code, and when At the same time, after establishing the second Bluetooth link, the first Bluetooth device 101 sends its first communication parameters between the first Bluetooth link and the audio source device 100 to the second Bluetooth device 102. The second Bluetooth device 102 also obtains the first communication parameters of the first Bluetooth link, including the second frequency hopping sequence, the second channel access code, and the time slot in which data is sent and received, and so on.
[0087] Thus, when the audio source device 100 sends audio data in the master-slave time slot of the first Bluetooth link, at this time, the first Bluetooth device 101 can receive the audio data, and the second Bluetooth device 102 is just in The audio data can be monitored in time slot N1, and the next time slot in which the audio source device 100 waits for the first Bluetooth device 101 to respond, that is, the slave-master time slot, at this time, the second Bluetooth device does not need to monitor the audio source device 100, and The first Bluetooth device 101 can be monitored through the second frequency hopping sequence and the second channel access code to determine whether the first Bluetooth device 100 has switched to the second Bluetooth link.
[0088] If the first Bluetooth link is an even-numbered time slot as a master-slave time slot, and the odd-numbered time slot is a slave-master time slot, then the second Bluetooth link is an even-numbered time slot as a slave-master time slot, and an odd-numbered time slot It is a master-slave time slot, and when monitoring the link, the second Bluetooth device 102 needs to monitor the audio source device 100 in an even-numbered time slot and the first Bluetooth device 101 in an odd-numbered time slot. At this time, N1 is an even number and N2 is an odd number . If the first Bluetooth link is an even-numbered time slot as a slave-master time slot, and the odd-numbered time slot is a master-slave time slot, the second Bluetooth link is an even-numbered time slot as a master-slave time slot, and the odd-numbered time slot is a master-slave time slot. From the time slot, when monitoring the link, the second Bluetooth device 102 needs to monitor the audio source device 100 in the odd-numbered time slot and the first Bluetooth device 101 in the even-numbered time slot. At this time, N1 is an odd number and N2 is an even number. When monitoring the audio source device 100, the second Bluetooth device 102 needs to use the first frequency hopping sequence of the first Bluetooth link for frequency hopping and use the first channel access code as the access code. When monitoring the first audio source device 101, The second Bluetooth device 102 needs to use the second frequency hopping sequence of the second Bluetooth link to perform frequency hopping and use the second channel access code as the access code. Therefore, the second Bluetooth device 102 uses the first frequency hopping sequence for frequency hopping and the first channel access code as the access code for monitoring in the N1 time slot, and uses the second frequency hopping sequence for frequency hopping and adopts the N2 time slot. The second channel access code is used as the access code for monitoring.
[0089] Optionally, in a preferred embodiment, the master-slave time slot of the first Bluetooth link is an even-numbered time slot, the slave-master time slot of the first Bluetooth link is an odd-numbered time slot, and the second Bluetooth link The master-slave time slot of the road is an odd-numbered time slot, and the slave-master time slot of the second Bluetooth link is an even-numbered time slot. In the first Bluetooth link, the network master device is the audio source device. In the Bluetooth standard protocol, the network master device usually transmits in even-numbered time slots. Therefore, the audio source device generally complies with the Bluetooth standard protocol. At this time, the first Bluetooth link The master-slave time slot is an even-numbered time slot, and the slave-master time slot of the first Bluetooth link is an odd-numbered time slot. Correspondingly, the second Bluetooth device needs to adjust the second Bluetooth link so that the master of the second Bluetooth link -The slave time slot is an odd time slot, the slave of the second Bluetooth link
The main time slot is an even-numbered time slot.
[0090] When the first Bluetooth device 101 is in the first Bluetooth link, according to the Bluetooth standard protocol, the audio source device 100 will send audio data to the first Bluetooth device 102 at the sending position of each master-slave time slot in turn, and The first Bluetooth device 102 will in turn wait and receive the audio data sent by the audio source device 100 at the same position in each master-slave time slot, while for the second Bluetooth device, it will be in the master-slave link corresponding to the first Bluetooth link. The audio data sent by the audio source device 100 is monitored and received on the N1 time slot of the time slot. At the same time, in the N2 time slot corresponding to the slave-master time slot of the first Bluetooth link, which is also the master-slave time slot of the second Bluetooth link, the second Bluetooth device 102 will listen to the first Bluetooth device 101 to confirm the first Bluetooth link. Whether a Bluetooth device 101 has switched to the second Bluetooth link, if in this time slot, the second Bluetooth device 102 receives the first data packet sent by the first Bluetooth device 101, it means that the current first Bluetooth device 101 has been During the second Bluetooth link, at this time, the second Bluetooth device 102 will switch from the listening link to the second Bluetooth link.
[0091] Referring to FIG. 3 at the same time, shown is a schematic diagram of link switching in the communication process of each Bluetooth device, which is the process of the first Bluetooth device switching from the first Bluetooth link to the second Bluetooth link, the audio source device, the first Bluetooth device Diagram of communication interaction with the second Bluetooth device. As shown in Figure 3, suppose that in the first Bluetooth link, k, k+2...time slots are master-slave time slots, k+1, k+ 3...are slave-master time slots, at this time, Time slot N1 corresponds to k, k+2... time slot, and time slot N2 corresponds to k+1, k+3... time slot, and k is any integer greater than 0. At the starting position 300 of the k time slot, the audio source device 100 sends out a data packet carrying audio data, and the first Bluetooth device receives the data packet at the corresponding position 311 of the k time slot. For the second Bluetooth device 102, the audio source device 100 needs to be monitored in the k timeslot. At the corresponding position 320, the second Bluetooth device 102 will monitor the audio data sent by the audio source device 100. In the next time slot, time slot 2, at this time, it is the first Bluetooth link slave-master time slot, and the first Bluetooth device 101 needs to send an acknowledgement packet to the audio source device 100 at the slave-master time slot position 312 in response to the above A data packet received in a time slot, and for the second Bluetooth device 102, in time slot 2, the second Bluetooth device 102 can listen to the first Bluetooth device 101 at the position 321 to confirm whether the first Bluetooth device 101 has been A link switch has occurred, as shown in the figure, by At this time, the first Bluetooth device 101 is still on the first Bluetooth link. Therefore, at location 321, the second Bluetooth device 102 cannot listen to data packets at location 321, so it can be determined that the link switch has not occurred, and continue Stay on the monitoring link.
[0092] For the first Bluetooth device 101, the audio data from the audio source device 100 is sequentially received on the first Bluetooth link. When the current communication state meets the forwarding condition, the first Bluetooth device 101 will start from the first Bluetooth link. Switch to the second Bluetooth link, and send data directly to the second Bluetooth device 102 at the position of the master-slave time slot of the second Bluetooth link. At this time, the second Bluetooth device 102 is still in the listening link, because different time slots N1 and N2 of the listening link correspond to the master-slave time slot of the first Bluetooth link and the master-slave time slot of the second Bluetooth link, respectively. Time slot, and the master-slave time slot of the second Bluetooth link corresponds to the slave-master time slot of the first Bluetooth link, and the second Bluetooth device 102 monitors the audio source device 100 and the second Bluetooth device in different time slots of the listening link. A Bluetooth device 101. At this time, the second Bluetooth device 102 just listens to the first Bluetooth device 101 in the N2 time slot of the listening link, thereby receiving the data sent by the first Bluetooth device 101. In this embodiment, when the second Bluetooth device 102 monitors the first data packet sent by the first Bluetooth device on the listening link, the second Bluetooth device 102 immediately switches from the listening link to the second Bluetooth link. At this time, both the first Bluetooth device 101 and the second Bluetooth device 102 are on the second Bluetooth link. Starting from the next master-slave time slot, the second Bluetooth device 101 and the second Bluetooth device 102 will perform according to the Bluetooth standard protocol. Communication.
[0093] Continuing to take FIG. 3 as an example, as shown in the figure, the first Bluetooth device 101 has switched to the second Bluetooth link in the k+n+1 time slot, and is in the master-slave time of the second Bluetooth link. The first data packet is sent to the second Bluetooth device 102 at the slot position 314. At this time, the second Bluetooth device 102 will receive the first data packet at the position 322 of the listening link, and at the same time it will start from the listening link. Switch to the second Bluetooth link, thus, the switching time difference between the first Bluetooth device 102 and the second Bluetooth device 103
It only depends on the switching time required by the second Bluetooth device, which is almost negligible. In the next time slot, namely k+n+2 time slot, at this time, it is the slave-master time slot, and the second Bluetooth device 102 is in the first time slot. Second, the Bluetooth link has not started to receive data. Therefore, the first Bluetooth device 101 will not receive the confirmation packet at the slave-master slot position 315, and in the next master-slave slot k + n + 3 slot Initially, the Bluetooth communication between the first Bluetooth device 101 and the second Bluetooth device 102 continues to communicate according to the Bluetooth standard protocol.
[0094] It can be understood that this embodiment does not specifically limit how to switch from the second Bluetooth link back to the first Bluetooth link. But obviously, due to the special relationship of the communication time slot between the first Bluetooth link and the second Bluetooth link, regardless of the switching method, after switching back to the first Bluetooth link, the second Bluetooth device can still follow the first Bluetooth link The time slot relationship, the audio data sent by the audio source device is received in the master and slave time slots.
[0095] In the embodiment of the present invention, the first Bluetooth device 101 can actively decide whether to switch from the first Bluetooth link to the second Bluetooth link according to the communication status, and can forward the data during the time period when the audio source device 100 does not send data. , You can also set a fixed time to switch, for example, switch at a preset period of time. Alternatively, a maximum communication timing moment is determined as the critical time for switching, so as to avoid a pause in the playback of the second Bluetooth device 102. Here, the maximum communication timing moment refers to the audio playback bit rate, the maximum packet loss rate of Bluetooth performance, and the maximum audio data buffering, and it is determined that if it does not switch to the second Bluetooth link that forwards the source data, the second Bluetooth device 102 will play audio Critical time for stuttering. This time is generally used for the master receiving device in the dual wireless Bluetooth device, that is, the first Bluetooth device 101 receives a certain data packet of the audio source device 100 and it has been errored. It needs to switch to the forwarding link to compare the previously received audio data with the slave receiving device. That is, the second Bluetooth device 102 performs negotiation and forwarding, so as to prevent the receiving device from consuming out the buffered data due to the failure of receiving audio data that has been receiving errors.
[0096] It can be understood that for the forwarding conditions of link switching, the conditions listed in this embodiment are not used to limit the implementation of the present invention. The first Bluetooth device can actively switch according to actual needs, and does not affect the The specific link switching process.
[0097] For the audio source device 100, after the audio data is compressed by the compression algorithm specified by the Bluetooth standard, there is a certain data bit rate, generally 328Kbps, which does not occupy all the Bluetooth communication bandwidth. The audio data only needs to be Sending a certain amount of data at a certain time interval can meet the transmission requirements of the audio bit rate, and there is no need to send data all the time. Therefore, as long as the first Bluetooth device 101 switches back to the first Bluetooth link before sending the audio data again before the audio source device 100, it can continue to receive the audio data sent by the audio source data. After switching back to the first Bluetooth link, due to the special relationship of the communication time slot between the first Bluetooth link and the second Bluetooth link, the first Bluetooth device 102 can continue to communicate with the audio source device 100 according to the Bluetooth standard protocol. The switching of channels does not affect the sending of audio data from the audio source device.
[0098] In this embodiment, when the first Bluetooth device 101 actively switches from the first Bluetooth link to the second Bluetooth link, the second Bluetooth device 102 will also immediately follow the switch and switch from the listening link to the second Bluetooth link. For Bluetooth links, the time difference between the two switches will not exceed one time slot. By adjusting the time slot relationship of the two Bluetooth links, without increasing additional communication bandwidth, the second Bluetooth device monitors the two link data packets at the same time, and the first Bluetooth device first switches to the second Bluetooth for audio forwarding On the link, and trigger the second Bluetooth device to follow the switch according to the agreed trigger mode, the communication link switching is completely dominated by the first Bluetooth device, and the two devices can continue to communicate according to the Bluetooth standard protocol after the link is switched, which avoids Asynchronous switching cannot synchronize communication or the communication link bandwidth utilization is low, communication delay is large, and the power consumption caused by preset timing switching. At the same time, the entire link switching process is performed under the Bluetooth standard protocol, which does not affect the audio source at all. Device communication.
[0099] In this embodiment, in the second Bluetooth link, the first Bluetooth device and the second Bluetooth device can continue to communicate
To determine the audio data that needs to be forwarded, and correct the audio data that the second Bluetooth device 102 monitors in error. After step S102, the method further includes:
[0100] S103. Receive the audio source monitoring feedback information sent by the second Bluetooth device through the second Bluetooth link to determine that the audio data that needs to be forwarded is to-be-sent audio data;
[0101] S104. Send the to-be-sent audio data to the second Bluetooth device through the second Bluetooth link.
[0102] After the second Bluetooth device 102 switches to the second Bluetooth link, it continues to communicate with the first Bluetooth device 101 according to the Bluetooth standard protocol, and monitors the feedback information to the audio source. The audio source monitoring feedback information carries the monitoring failure of the second Bluetooth device 102 or Information about the audio data that is in error. Therefore, the first Bluetooth device 101 can determine the audio data that needs to be forwarded as the audio data to be forwarded according to the feedback information, and continue to send the audio data to be forwarded to the second Bluetooth device 102 through the second Bluetooth link data.
[0103] It can be understood that the audio data may or may not be carried in the first data packet sent first. In a preferred embodiment, the data packet may be an ID packet.
[0104] It can be understood that when the first Bluetooth device 101 switches, it may be switched in the slave-master time slot of the first Bluetooth link, or it may be switched in the master-slave time slot, but both must be in the idle time of the time slot. Switch over and switch to the new link before the start of the next time slot.
[0105] Optionally, in a preferred embodiment, in step S102, the first Bluetooth device 101 performs link switching during the idle time of the master-slave time slot of the first Bluetooth link to start the next time slot Enter the second Bluetooth link.
[0106] Here, the idle time refers to the idle time of the time slot outside of receiving or sending a Bluetooth standard data packet. In the Bluetooth standard protocol, in each time slot, all time slots are not occupied for transmitting data packets, but only a period of time after the beginning of the time slot for data transmission. After the transmission is completed, the remaining time in the time slot is Is the time slot idle time. Therefore, regardless of whether the Bluetooth device is sending or receiving data packets, there must be a slot idle time in each slot. The slot idle time depends on the Bluetooth transmission rate. If you consider the number of bytes of different data packets, the most The long data packet is the EDR2EV3 type data packet, therefore, the smallest slot idle time occurs when the EDR2EV3 type data packet is transmitted. The first Bluetooth device 101 performs link switching in the master-slave time slot of the first Bluetooth link, and can enter the second Bluetooth link before the next time slot starts. At this time, the time slot is also the second after the switch. The master-slave time slot of the Bluetooth link, therefore, the first data packet is sent just at the position of the master-slave time slot, and the second Bluetooth device 102 can immediately follow the switch after monitoring the first data packet. Both The time difference between the handovers can basically be controlled within a time slot, as shown in Figure 3. As a result, the handover can be made faster, and the bandwidth utilization rate can be further improved.
[0107] If the slave-master time slot of the first Bluetooth link is switched, at this time, when entering the second Bluetooth link after the switch, it happens to be the slave-master time slot of the second Bluetooth link, and the first Bluetooth device 101 The first data packet will be sent in the next time slot, and the second Bluetooth device 102 will switch accordingly, and the switching time difference between the two will not exceed two time slots.
[0108] Preferably, in an optional embodiment, in step S102, when the audio data sent by the audio source device is not received in a continuous preset number of time slots, it is determined that the communication state meets the forwarding condition.
[0109] Specifically, as mentioned above, for the audio source device 100, the transmission of audio data does not occupy all of the Bluetooth communication bandwidth, and the audio data only needs to send certain data at a certain time interval to satisfy the audio frequency. The transmission requirement of the code rate does not require sending data all the time. Therefore, when the first Bluetooth device 101 does not receive the audio data sent by the audio source device 100 in a continuous preset time slot, it can be determined that the forwarding conditions are currently met, and then the link can be switched. -Send the first data packet from the time slot, thereby triggering the second Bluetooth device to switch to the second Bluetooth link.
[0110] Preferably, in an optional embodiment, in step S102, when the audio data sent by the audio source device is not received in a continuous preset number of time slots, it is determined that the communication state meets the forwarding condition.
[0111] Specifically, here, the maximum communication timing moment refers to a decision based on the audio playback bit rate, the maximum Bluetooth performance packet loss rate, and the maximum audio data buffering, if it is decided not to switch to the second Bluetooth link that transposes the source data, the second The audio playback of the Bluetooth device 102 will be a critical time of freezing. This time is generally used for the master receiving device in the dual wireless Bluetooth device, that is, the first Bluetooth device 101 receives a certain data packet of the audio source device 100 and it has been errored. It needs to switch to the forwarding link to compare the previously received audio data with the slave receiving device. That is, the second Bluetooth device 102 performs negotiation and forwarding, so as to prevent the receiving device from consuming the buffered data due to not receiving the previous audio data and causing a stall. Therefore, when the maximum timing moment arrives, the first Bluetooth device 101 can determine that the forwarding condition is currently met, and then perform link switching.
[0112] Preferably, in an optional embodiment, the second Bluetooth device is capable of setting a preset position of the master-slave time slot of the second Bluetooth link according to the first frequency hopping sequence and the preset position. Assuming that the access code receives the additional packet sent by the first Bluetooth device for triggering link switching, after step S104, the method further includes:
[0113] S105, when the communication state meets the monitoring condition, switch the current link to the first Bluetooth link;
[0114] S106: Send an additional packet to the second Bluetooth device according to the preset access code at the preset position of the idle time of the first slave-master time slot of the first Bluetooth link after the handover To trigger the second Bluetooth device to switch from the second Bluetooth link to the listening link.
[0115] Specifically, in the second Bluetooth link, when the communication status satisfies the monitoring condition, the first Bluetooth device 101 needs to switch to the first Bluetooth device to continue to receive the data sent by the audio source device 100. At this time, the second Bluetooth device 101 The device also needs to monitor the data sent by the audio source device 100. In this embodiment, after the first Bluetooth device 101 switches back to the first Bluetooth link, it will send to the second Bluetooth device 102 at the preset position of the idle time of the first slave-master time slot of the first Bluetooth link An additional packet is used to trigger the second Bluetooth device to perform link switching. As long as the second Bluetooth device does not receive any data packets at the receiving position of the same time slot, it will receive the additional packet at the preset position in the agreed manner. After the packet is received, it will switch from the second Bluetooth link back to the listening link, and it happens to monitor the audio data sent by the audio source device 100 on the N1 time slot phase of the listening link. The sending mode of the additional package may be agreed in advance by the first Bluetooth device 101 and the first Bluetooth device 101.
[0116] It can be understood that the first Bluetooth device 101 can be switched during the idle time of the master-slave time slot of the second Bluetooth link, or can be switched during the idle time of the slave-master time slot.
[0117] Referring to FIG. 4 at the same time, shown is a schematic diagram of link switching in the communication process of each Bluetooth device. In the process of the first Bluetooth device switching from the second Bluetooth link to the first Bluetooth link, the audio source device and the first Bluetooth device Diagram of interactive communication with the second Bluetooth device. As shown in Figure 4, suppose that in the first Bluetooth link, k, k+2... time slots are master-slave time slots, and k+1, k+ 3... are slave-master time slots. At this time, Time slot N1 corresponds to k, k+2... time slot, and time slot N2 corresponds to k+1, k+3... time slot, and k is any integer greater than 0. At the position 410 of the k time slot, the first Bluetooth device 101 sends out a data packet carrying audio data. The first Bluetooth device 101 receives the data packet at the corresponding position 420 of the k time slot, and then performs the next k+1 At position 421 of the time slot, the second Bluetooth device sends a confirmation packet, and the first Bluetooth device 101 receives it at position 411. Suppose that during the idle time of k+1 time slot, the first Bluetooth device performs link switching, that is, at the beginning of k+2 time slot, the first Bluetooth device 101 has already switched to the first Bluetooth link. At this time, It is a slave-master time slot, but since the first Bluetooth device 101 has not started to receive data on the first Bluetooth link, there is no need to send an acknowledgement packet to the audio source device 100. Before the next master-slave time slot position 413 receives audio data, the first Bluetooth device 101 will send an additional packet to the second Bluetooth device 102, as shown in the figure, at position 412 The second Bluetooth device 102 that receives the additional package at position 423 immediately switches to the monitoring link to be able to listen to the audio source at the next master-slave time slot position 424 of the first Bluetooth link Audio data sent by the device 100.
[0118] It can be understood that if the second Bluetooth device 102 can switch back to the monitoring link before the start of the k+3 time slot, the audio data sent by the audio source device can be monitored in the k+3 time slot. The speed of link switching depends on the execution and coordination capabilities of the software and hardware of different devices, but the switching speed does not limit the implementation of this embodiment.
[0119] Preferably, in an optional embodiment, the method before step S105 further includes:
[0120] S100. A method for sending the additional package is agreed upon with the second Bluetooth device through the second Bluetooth link, the sending method is: the channel frequency is transformed according to the first frequency hopping sequence, and the access code is For the preset access code, the sending location is the preset location.
[0121] The first Bluetooth device 101 and the second Bluetooth device 102 also need to agree on the sending mode of the additional package through the second Bluetooth link. Since the first Bluetooth device 101 sends the additional package on the first Bluetooth link, the additional package is sent. The channel frequency point of the packet is changed following the first frequency hopping sequence, and the access code can be arbitrarily agreed upon a preset access code, preferably the device access code of the first Bluetooth device or the second Bluetooth device, therefore, send The manner is: the channel frequency point is transformed according to the above, the access code is the preset access code, and the transmission location is the preset location.
[0122] It should be noted that, for the Bluetooth master device and the Bluetooth slave device, in order to comply with the provisions of the Bluetooth standard protocol, the communication is performed at the same frequency in the same time slot, usually before the start of the next time slot. It is stable at the communication frequency of this time slot. Therefore, it is usually necessary to calculate the frequency in advance and stabilize it at the frequency through a phase-locked loop (PLL). The stabilization time of the PLL depends on different devices, and the stabilization time usually takes up The most ideal idle time of the previous time slot is to reach the starting point of the next time slot while being stable. Because the transmission of the additional packet occupies idle time, it is obvious that the communication frequency of the additional packet is the frequency of the next time slot calculated in advance. Therefore, after the additional packet is sent, the first Bluetooth device does not need to The frequency point is switched. Therefore, the time between the sending position of the additional packet and the starting point of the next time slot is generally: PLL stabilization time + reserved delay or jitter time. Here, the receiving delay or jitter time is the receiving time reserved for the second Bluetooth device 102, so that the second Bluetooth device can have time to receive the additional packet after the first Bluetooth device 101 sends out and before the next time slot starts.
[0123] In this embodiment, when the first Bluetooth device 101 actively switches from the second Bluetooth link to the first Bluetooth link, the second Bluetooth device 102 will also immediately follow the switch, switching from the second Bluetooth link to Monitor the link.
[0124] In this embodiment, by further adding additional packets in the Bluetooth standard protocol time slot, the first Bluetooth device first switches back to the first Bluetooth link and then sends the additional packet, and the second Bluetooth device is in the second Bluetooth link When the standard data packet cannot be received, the additional packet is received in the agreed manner and the link is switched when the reception is successful. Without increasing the additional communication bandwidth, the communication link switching is completely dominated by the first Bluetooth device, and the two The time difference between each device in link switching is very small, avoiding the problems of low communication link bandwidth utilization, large communication delay, and high power consumption caused by asynchronous switching or preset timing switching. At the same time, the entire link switching process is It is carried out under the Bluetooth standard protocol and does not affect the communication with the audio source equipment at all.
[0125] Preferably, in an optional embodiment, in step S102, the first Bluetooth device 101 performs link switching during the idle time of the second Bluetooth link from the main time slot so as to enter before the start of the next time slot. On the second Bluetooth link.
[0126] If the master-slave time slot of the second Bluetooth link is switched, at this time, after the switch is the master-slave time slot of the first Bluetooth link, the first Bluetooth device 101 will need to wait for the next time slot to send With the additional package, the second Bluetooth device 102 switches accordingly, and the switching time difference between the two does not exceed two time slots. However, in the master-slave time slot after the switch, the audio source device 101 may send audio data while the second Bluetooth device 102 is still unable to monitor the second Bluetooth link, which may cause the missed reception of an audio data packet. Therefore, it is preferable to perform link switching in the slave-master time slot of the second Bluetooth link. At this time, after the handover, the time slot is also the slave-master time slot of the first Bluetooth link. The first Bluetooth device 101 can send additional packets in the master-slave time slot, and the second blue
The dental device 102 follows the switching, and the switching between the two is less than one time slot, as shown in FIG. 4. In the next time slot, the first Bluetooth device 101 and the second Bluetooth device 102 start to receive audio data from the audio source device, and the switching time difference between the two is almost negligible. As shown in Figure 4. Therefore, the switching can be made faster, the bandwidth utilization rate can be further improved, and the audio data that the first Bluetooth device needs to forward can be avoided, and the power consumption can be reduced.
[0127] It can be understood that the above Figures 3 and 4 are only examples of Bluetooth link switching, and are not used to limit the actual definition and specific scenarios of the time slot master-slave time slot or slave-master time slot in the present invention. The actual sending situation of the data packet in the middle. In a specific scenario, the data packet can be a multi-slot packet and is not limited to a single-slot packet, but the link switching situation is not different.
[0128] Preferably, in an optional embodiment, the Bluetooth device communication method further includes:
[0129] When in the first Bluetooth link, send the additional packet to the second Bluetooth device at the preset position of the idle time of each slave-master time slot.
[0130] Specifically, in order to prevent the second Bluetooth device 102 from failing to switch to the listening link in time due to the failure of receiving additional packets, when the first Bluetooth device 101 is in the first Bluetooth link, it may, before receiving audio data each time, At the preset position in the slave-master time slot before the master-slave time slot, additional packets are continuously sent to the second Bluetooth device, thereby preventing the second Bluetooth device 102 from receiving additional packets and enhancing the reliability of communication Sex.
[0131] Preferably, in an optional embodiment, in step S105, the first Bluetooth device performs link switching during the idle time of the slave-master time slot of the second Bluetooth link to switch to the next time slot Enter the first Bluetooth link before starting.
[0132] Preferably, in an optional embodiment, in step S105, when the audio data is forwarded, it is determined that the communication state satisfies the monitoring condition.
[0133] Here, the maximum forwarding moment refers to the audio playback bit rate, Bluetooth performance maximum packet loss rate, and audio data maximum buffering, and it is determined that if the link of the first Bluetooth link is not switched back, the first Bluetooth device 101 audio playback There will be a critical time for freezing. This moment is generally used when the primary receiving device of the dual wireless Bluetooth device, the first Bluetooth device 101, has been unsuccessfully forwarding a certain data packet on the second Bluetooth link, which causes the first Bluetooth device 101 to freeze because the cached data is about to be consumed. Case.
[0134] Preferably, in an optional embodiment, the first Bluetooth device 101 and the second Bluetooth device 102 are paired Bluetooth headsets or Bluetooth speakers.
[0135] Embodiment Group Two:
[0136] Please refer to FIG. 5, which is a schematic flowchart of a Bluetooth device communication method on the second Bluetooth device side in an embodiment of the present invention. In this embodiment, the Bluetooth device communication method includes the following steps S201-S202:
[0137] S201. When in the monitoring link, monitor the audio data sent by the audio source device according to the first frequency hopping sequence and the first channel access code in the N1 time slot, and monitor the audio data sent by the audio source device in the N2 time slot according to the Monitoring the data sent by the second Bluetooth device by the second frequency hopping sequence and the second channel access code;
[0138] S202: When a first data packet sent by a first Bluetooth device for triggering link switching is received in any N2 time slot, switch from the listening link to the second Bluetooth link.
[0139] For the process of switching from the first Bluetooth link to the second Bluetooth link, please refer to the description on the side of the first Bluetooth device in the foregoing embodiment, which will not be repeated here.
[0140] Preferably, in an optional embodiment, after S202, the method further includes:
[0141] S203: Send audio source monitoring feedback information to the first Bluetooth device through the second Bluetooth link;
[0142] S204. Receive the audio data to be sent from the first Bluetooth device; wherein the audio data to be sent is
The first Bluetooth device is determined according to the sound source monitoring feedback information.
[0143] For the sending of the audio data to be forwarded, please refer to the description on the side of the first Bluetooth device in the foregoing embodiment, which will not be repeated here.
[0144] Preferably, in an optional embodiment, after S204, the method further includes:
[0145] S205, when the data packet sent by the first Bluetooth device is not received at the receiving position of any master-slave time slot of the second Bluetooth link, at the preset position of the idle time of the current time slot According to the first frequency hopping sequence and the preset access code, it is detected whether an additional packet sent by the first Bluetooth device for triggering link switching is received; if so, step S206 is performed; if not, it continues to stay at all The second Bluetooth link;
[0146] S206, switch to the monitoring link;
[0147] Here, for the process of switching from the second Bluetooth link to the listening link, please refer to the description on the side of the first Bluetooth device in the foregoing embodiment, which will not be repeated here.
[0148] Example Group Three:
[0149] Please refer to FIG. 6 which shows a schematic flowchart of a Bluetooth device communication method applied to a second Bluetooth device and a first Bluetooth device in an embodiment of the present invention. In this embodiment, the Bluetooth device communication method includes the following steps S01-S04: [0150] S01, when the first Bluetooth device is in the first Bluetooth link, the first Bluetooth device in turn The master-slave time slot receives the audio data sent by the audio source device; during this period, the second Bluetooth device is in the listening link;
[0151] S02. When the second Bluetooth device is in the monitoring link, the second Bluetooth device monitors the audio source device through the first frequency hopping sequence and the first channel access code in the N1 time slot For the sent audio data, monitor the data sent by the first Bluetooth device through the second frequency hopping sequence and the second channel access code in the N2 time slot;
[0152] S03. If the first Bluetooth device determines that the current communication state meets the forwarding condition, switch the current link to the second Bluetooth link, and move the master-slave time slot of the second Bluetooth link to the second Bluetooth link. 2. The Bluetooth device sends the first data packet to trigger the second Bluetooth device to switch from the listening link to the second Bluetooth link;
[0153] S04: When the second Bluetooth device receives the first data packet on the listening link, it switches from the listening link to the second Bluetooth link.
[0154] Preferably, in an embodiment, in step S03, the first Bluetooth device performs link switching during the idle time of the master-slave time slot of the first Bluetooth link to enter before the start of the next time slot On the second Bluetooth link.
[0155] For the process of switching from the first Bluetooth link to the second Bluetooth link, please refer to the description on the side of the first Bluetooth device in the above-mentioned embodiment group 1, which will not be repeated here.
[0156] Preferably, in an optional embodiment, the method further includes:
[0157] S05: When the communication state of the first Bluetooth device meets the monitoring condition, switch the current link to the first Bluetooth link;
[0158] S06, the first Bluetooth device sends to the second Bluetooth device according to the preset access code at the preset position of the first slave-master time slot after the handover for triggering link switching To trigger the second Bluetooth device to switch from the second Bluetooth link to the listening link;
[0159] S07. When the second Bluetooth device does not receive a data packet sent by the first Bluetooth device at the receiving position of any master-slave time slot of the second Bluetooth link, in the same time slot Receiving the additional packet according to the first blue frequency hopping sequence and the preset access code at a preset position in the idle time;
[0160] S08: After receiving the additional package, the second Bluetooth device switches from the second Bluetooth link to the listening link.
[0161] Preferably, in an embodiment, before step S05, the method further includes:
[0162] S05 ', the first Bluetooth device and said second Bluetooth device via the Bluetooth link convention said second attachment added to the packet transmission scheme, the transmission scheme is: a channel based on the first frequency A frequency hopping sequence is changed, the access code is the preset access code, and the transmission location is the preset location.
[0163] Preferably, in an embodiment, in step S05, the first Bluetooth device performs link switching during the idle time of the second Bluetooth link from the main time slot to enter before the start of the next time slot. To the first Bluetooth link.
[0164] Here, for the process of switching from the second Bluetooth link to the listening link, please refer to the description on the side of the first Bluetooth device in the first embodiment group, which will not be repeated here.
[0165] Example Group Four:
[0166] The present invention further provides a Bluetooth device communication device, which is applied to a first Bluetooth device. As shown in FIG. 7, in an embodiment, the Bluetooth device communication device 10 includes a first transceiver module 11 and a forwarding trigger module 12.
[0167] The first transceiver module 11 is configured to sequentially receive audio data sent by the audio source device in the master-slave time slot when in the first Bluetooth link;
[0168] The forwarding trigger module 12, when the communication status meets the forwarding condition, switches the current link to the second Bluetooth link, and sends the first data packet to the second Bluetooth device in the master-slave time slot to trigger the second Bluetooth The device switches the second Bluetooth link from the listening link.
[0169] Preferably, in an optional embodiment, the Bluetooth device communication apparatus 10 further includes a second transceiving module 13, configured to:
[0170] receiving the audio source monitoring feedback information sent by the second Bluetooth device through the second Bluetooth link to determine that the audio data that needs to be forwarded is to-be-sent audio data;
[0171] Send the to-be-sent audio data to the second Bluetooth device through the second Bluetooth link.
[0172] Preferably, in an optional embodiment, the forwarding trigger module 12 performs link switching during the idle time of the master-slave time slot of the first Bluetooth link to enter the second time slot before the next time slot starts. Bluetooth link.
[0173] Preferably, in an optional embodiment, the forwarding triggering module 12 determines that the communication state meets the forwarding condition when the audio data sent by the audio source device is not received in a continuous preset number of time slots.
[0174] Preferably, in an optional embodiment, the forwarding trigger module determines that the communication state meets the forwarding condition when the maximum timing moment is reached.
[0175] Preferably, in an optional embodiment, the second Bluetooth device is capable of setting a preset position of the master-slave time slot of the second Bluetooth link according to the first frequency hopping sequence and the preset position. Assuming that the access code receives the additional package for triggering link switching sent by the first Bluetooth device, the Bluetooth device communication apparatus 10 further includes:
[0176] The second link switching module 14 is configured to switch the current link to the first Bluetooth link when the communication state meets the monitoring condition;
[0177] The monitoring trigger module 15 is configured to send the first Bluetooth link to the first slave-master slot at the preset position of the idle time according to the preset access code after the handover. The second Bluetooth device sends the additional package to trigger the second Bluetooth device to switch from the second Bluetooth link to the listening link.
[0178] Preferably, in an optional embodiment, the Bluetooth device communication apparatus 10 further includes:
[0179] The link adjustment module 16 is configured to agree on a sending mode of the additional packet with the second Bluetooth device through the second Bluetooth link, and the sending mode is: the channel frequency is based on the first frequency hopping sequence In the conversion, the access code is the preset access code, and the sending location is the preset location.
[0180] Preferably, in an optional embodiment, the monitoring trigger module 14 is further configured to, when in the first Bluetooth link,
The additional packet is sent to the second Bluetooth device at the preset position of the idle time of each slave-master time slot.
[0181] Preferably, in an optional embodiment, the second link switching module 14 performs link switching during the idle time of the slave-master time slot of the second Bluetooth link to enter before the start of the next time slot. To the first Bluetooth link.
[0182] Preferably, in an optional embodiment, the monitoring trigger module 15 determines that the communication state meets the monitoring condition when the audio data is forwarded.
[0183] Preferably, in an optional embodiment, the monitoring trigger module 15 determines that the communication state satisfies the monitoring condition when the maximum forwarding moment is reached.
[0184] Preferably, in an optional embodiment, the first Bluetooth device 101 and the second Bluetooth device 102 are paired Bluetooth headsets or Bluetooth speakers.
[0185] Preferably, in an optional embodiment, the master-slave time slot of the first Bluetooth link is an even-numbered time slot, the slave-master time slot of the first Bluetooth link is an odd-numbered time slot, and the second Bluetooth link The master-slave time slot of the road is an odd-numbered time slot, and the slave-master time slot of the second Bluetooth link is an even-numbered time slot.
[0186] Please refer to the description of the Bluetooth device communication method on the side of the first Bluetooth device for the specific process for each module in the Bluetooth device communication device 10 to implement Bluetooth device communication.
[0187] Embodiment Group Five:
[0188] The present invention further provides a Bluetooth device communication device, which is applied to a second Bluetooth device. Please refer to FIG. 8. In an embodiment, the Bluetooth device communication device 20 includes a link monitoring module 21 and a forwarding follow module 22.
[0189] The link monitoring module 21 is configured to monitor the audio data sent by the audio source device in the N1 time slot according to the first frequency hopping sequence and the first channel access code when in the monitoring link , Monitoring the data sent by the second Bluetooth device according to the second frequency hopping sequence and the second channel access code in the N2 time slot;
[0190] The forwarding and following module 22 is configured to switch from the listening link to the second Bluetooth when the first data packet sent by the first Bluetooth device for triggering link switching is received in any N2 time slot link.
[0191] Preferably, in an optional embodiment, the Bluetooth device communication apparatus 20 further includes a feedback forwarding module 23 for:
[0192] Sending audio source monitoring feedback information to the first Bluetooth device through the second Bluetooth link;
[0193] Receive the audio data to be sent from the first Bluetooth device; wherein the audio data to be sent is determined by the first Bluetooth device according to the audio source monitoring feedback information.
[0194] Preferably, in an optional embodiment, the Bluetooth device communication apparatus 20 further includes:
[0195] The listening and following module 24 is used for idle in the same time slot when the data packet sent by the first Bluetooth device is not received at the receiving position of any master-slave time slot of the second Bluetooth link At the preset position of time, according to the first frequency hopping sequence and the preset access code, it is detected whether an additional packet sent by the first Bluetooth device for triggering link switching is received, and if so, switch to the monitoring link If not, continue to stay on the second Bluetooth link.
[0196] For the specific process of each module in the Bluetooth device communication device 20 to implement Bluetooth device communication, please refer to the description of the Bluetooth device communication method on the second Bluetooth device side.
[0197] Embodiment Group Six:
[0198] The present invention further provides a Bluetooth device including a processor for implementing the Bluetooth device communication method on the first Bluetooth device side or the second Bluetooth device side as described in the foregoing embodiment.
[0199] Example Group Seven:
[0200] The present invention further provides a pair of dual wireless Bluetooth devices. As shown in FIG. 9, the pair of dual wireless Bluetooth devices 1 includes a first Bluetooth device 101 and a second Bluetooth device 102, and the first Bluetooth device 101 and the second Bluetooth device 102 adopts
The Bluetooth device communication method for the first Bluetooth device and the second Bluetooth device described in the embodiment communicates.
[0201] Embodiment Group Eight:
[0202] The present invention further provides a Bluetooth communication system. As shown in FIG. 9, the Bluetooth communication system includes an audio source device for providing audio data and two first Bluetooth devices 101 and a second Bluetooth device for playing audio data from the audio source device. The Bluetooth device 102, the first Bluetooth device 101 and the second Bluetooth device 102 form a dual wireless Bluetooth device pair 1. The first Bluetooth device 101 and the second Bluetooth device 102 communicate using the Bluetooth device communication method for the first Bluetooth device and the second Bluetooth device as described in the foregoing embodiment
[0203] Example Group Nine:
[0204] The present invention further provides a chip for a Bluetooth device, which has an integrated circuit thereon, and the integrated circuit is designed to implement the Bluetooth device communication method or the first Bluetooth device communication method on the first Bluetooth device side as described in the foregoing embodiment. 2. The Bluetooth device communication method on the Bluetooth device side.
[0205] Example Group Ten:
[0206] The present invention further provides a storage medium that stores a computer program. When the computer program is run by a processor, it executes the Bluetooth device communication method on the first Bluetooth device side or the second Bluetooth device communication method described in the foregoing embodiment. The Bluetooth device communication method on the device side.
[0207] Those skilled in the art can understand that the above-mentioned preferred solutions can be freely combined and superimposed on the premise of no conflict.
[0208] It should be understood that the above-mentioned embodiments are only exemplary and not restrictive. Without departing from the basic principles of the present invention, those skilled in the art can make various obvious observations regarding the above-mentioned details. Or equivalent modifications or replacements will be included in the scope of the claims of the present invention.
<img file="CN111885553A_D0001.tif" />
<img file="CN111885553A_D0002.tif" />
3 sheets
Sheet 1 Sheet 2 Sheet 3
Every citation, both ways
| Document | Relation | Office | Category | Cited during | Relevant claims |
|---|---|---|---|---|---|
| CN113543090A | Cited by | China | – | Search report | – |
| CN113055868A | Cited by | China | – | Search report | – |
| CN115442786A | Cited by | China | – | Search report | – |
| US11546682B2 | Cited by | United States of America | – | Search report | – |
| CN113271641A | Cited by | China | – | Search report | – |
| CN113872729A | Cited by | China | – | Search report | – |
| CN115250137A | Cited by | China | – | Search report | – |
| WO2023000565A1 | Cited by | World Intellectual Property Organization (WIPO) | – | International search | – |
| CN114827974A | Cited by | China | – | Search report | – |
| CN114845197A | Cited by | China | – | Search report | – |
| CN105101362A | Cites | China | A | Search report | 1-28 |
| US10631363B1 | Cites | United States of America | A | Search report | 1-28 |
| CN107894881A | Cites | China | A | Search report | 1-28 |
| CN108337074A | Cites | China | A | Search report | 1-28 |
| CN109495867A | Cites | China | A | Search report | 1-28 |
| CN109951833A | Cites | China | A | Search report | 1-28 |
| CN110913375A | Cites | China | A | Search report | 1-28 |
| CN110931026A | Cites | China | A | Search report | 1-28 |
| EP1501244A2 | Cites | European Patent Office (EPO) | A | Search report | 1-28 |
| US2001010689A1 | Cites | United States of America | A | Search report | 1-28 |
| US2002177460A1 | Cites | United States of America | A | Search report | 1-28 |
| US2005053039A1 | Cites | United States of America | A | Search report | 1-28 |
| US2006246911A1 | Cites | United States of America | A | Search report | 1-28 |
| US2010151791A1 | Cites | United States of America | A | Search report | 1-28 |
| WO2013100994A1 | Cites | World Intellectual Property Organization (WIPO) | A | Search report | 1-28 |
| US2018176717A1 | Cites | United States of America | A | Search report | 1-28 |
| TAREK ALMAHDI: "Intelligent automated parking system with hacking intimation feature", 2016 INTERNATIONAL CONFERENCE ON ADVANCES IN ELECTRICAL, ELECTRONIC AND SYSTEMS ENGINEERING (ICAEES) | Non-patent | – | – | Search report | – |
| 孙金超: "蓝牙新技术标准演进及其应用的研究", 《中国优秀硕士学位论文全文数据库》 | Non-patent | – | – | Search report | – |
2 members in 1 office
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 202010331020 | China | A | |
| CN20201331020 | – | – | – |
Members2
| Document | Office | Kind | |
|---|---|---|---|
| CN111885553AThis record | China | A | |
| CN111885553B | China | B |
4 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Patent grantGrantedGR01 | GR01 | |
| Change of applicant informationCB02 | CB02 | |
| Entry into force of request for substantive examinationSE01 | SE01 | |
| PublicationPB01 | PB01 |
Numbers
- Publication
- 111885553
- Publication, DOCDB
- 111885553
- Publication, EPODOC
- CN111885553
- Application
- 103310202
- Application, DOCDB
- 202010331020
- Application, EPODOC
- CN202010331020
Titles2
- Chinese
- 蓝牙设备通信方法以及相关设备
- English
- Bluetooth device communication method and related equipment
Classification
- CPC, 7
- H04W4/80
- H04W76/14
- H04W76/15
- H04W72/0446
- H04W36/0055
- H04W36/30
- Y02D30/70
- IPC, 6
- H04W4 80
- H04W36 00
- H04W36 30
- H04W72 04
- H04W76 14
- H04W76 15