Bluetooth audio receiving method, device, terminal and storage medium
By obtaining the synchronization auxiliary information of the target broadcast source device in advance for periodic broadcast synchronization, directly receiving Bluetooth audio data, solving the problems of long scanning time and high power consumption in the prior art, and achieving more efficient Bluetooth audio reception.
Patent Information
- Application Number
- CN202110949568.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-18
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-08-18
AI Technical Summary
The existing Bluetooth audio reception technology requires scanning and identifying all broadcast source devices in the field, resulting in long scanning time and high power consumption, and cumbersome operation steps.
By obtaining synchronization auxiliary information of the target broadcast source device in advance, performing periodic broadcast synchronization, directly receiving Bluetooth audio data of the target broadcast source device, and omitting the frequency hopping scanning step.
Reduces Bluetooth broadcast scanning time, reduces the operating power consumption of Bluetooth components, simplifies operational steps, and improves operational efficiency.
Smart Images

Figure CN115708373B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Bluetooth broadcasting, and in particular to a method, device, terminal and storage medium for receiving Bluetooth audio. Background Art
[0002] The reception of Bluetooth broadcasting usually involves parsing the scanned data frames and receiving the Bluetooth audio broadcasted by the broadcast source device according to the synchronization information contained in the data frames.
[0003] In the related technology, when a terminal needs to receive Bluetooth audio broadcast by a broadcast source device, it needs to synchronize with all Bluetooth broadcast source devices in the environment, display the identification information of each broadcast source device in the terminal, determine the target broadcast source device based on the user's selection, and then receive the Bluetooth audio data of the target broadcast source device. Summary of the invention
[0004] The embodiment of the present application provides a method, device, terminal and storage medium for receiving Bluetooth audio, and the technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a method for receiving Bluetooth audio, the method comprising:
[0006] Acquire synchronization auxiliary information of a target broadcast source device, where the target broadcast source device is used for performing Bluetooth audio broadcasting;
[0007] Performing periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquiring periodic broadcast synchronization information of the target broadcast source device;
[0008] Based on the periodic broadcast synchronization information, the target broadcast source device broadcasts an isochronous data stream (BIS) in synchronization with the target broadcast source device, and receives the Bluetooth audio data broadcast by the target broadcast source device.
[0009] On the other hand, an embodiment of the present application provides a method and device for receiving Bluetooth audio, the device comprising:
[0010] A first acquisition module, used to acquire synchronization auxiliary information of a target broadcast source device, where the target broadcast source device is used to perform Bluetooth audio broadcasting;
[0011] A second acquisition module, configured to perform periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquire periodic broadcast synchronization information of the target broadcast source device;
[0012] The audio receiving module is used to perform broadcast isochronous data stream BIS synchronization with the target broadcast source device based on the periodic broadcast synchronization information, and receive Bluetooth audio data broadcast by the target broadcast source device.
[0013] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the Bluetooth audio receiving method provided in the above aspect.
[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the Bluetooth audio receiving method provided in the above aspect.
[0015] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the Bluetooth audio receiving method provided in the above aspect.
[0016] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0017] In the solution provided in the embodiment of the present application, the periodic synchronization information of the target broadcast source device is obtained by obtaining the synchronization auxiliary information of the target broadcast source device in advance, and then establishing periodic broadcast synchronization with the target broadcast source device in the field based on the synchronization auxiliary information. There is no need to scan and identify all broadcast source devices in the field by frequency hopping, which reduces the time for scanning Bluetooth broadcasts and also reduces the operating power consumption of Bluetooth components. After the terminal obtains the periodic synchronization information of the target broadcast source device, BIS synchronization can be performed directly according to the periodic synchronization information without the user having to manually select from the list, which simplifies the operation steps and improves operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a scenario of a method for receiving Bluetooth audio provided by an exemplary embodiment of the present application is shown;
[0019] Figure 2 is a flow chart of a method for receiving Bluetooth audio according to an exemplary embodiment of the present application;
[0020] Figure 3 is a flowchart of a method for receiving Bluetooth audio provided by another exemplary embodiment of the present application;
[0021] Figure 4 A schematic diagram of the frame structure of ADV_EXT_IND provided by an exemplary embodiment of the present application is shown;
[0022] Figure 5is a flowchart of a method for receiving Bluetooth audio provided by another exemplary embodiment of the present application;
[0023] Figure 6 A schematic diagram of a structure of a resolvable private device address provided by an exemplary embodiment of the present application is shown;
[0024] Figure 7 A schematic diagram of the frame structure of the target AUX_ADV_IND provided by an exemplary embodiment of the present application is shown;
[0025] Figure 8 A schematic diagram of the frame structure of the target AUX_SYNC_IND provided by an exemplary embodiment of the present application is shown;
[0026] Fig. 9 A schematic diagram of the structure of an unresolvable private device address provided by an exemplary embodiment of the present application is shown;
[0027] Fig.10 A flowchart of data transmission of Bluetooth broadcast provided by an exemplary embodiment of the present application is shown;
[0028] Fig.11 is a flowchart of a method for receiving Bluetooth audio provided by another exemplary embodiment of the present application;
[0029] Fig.12 A structural block diagram of a Bluetooth audio receiving device provided by an embodiment of the present application is shown;
[0030] Fig.13 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0032] In the related art, when the terminal is within the radiation range of the Bluetooth broadcast and needs to receive Bluetooth audio, the Bluetooth broadcast of all broadcast source devices in the field is scanned by turning on the Bluetooth broadcast scanning switch, and then the target broadcast device to be received is determined through the displayed Bluetooth broadcast list, and then the Bluetooth audio data can be received and played only when the user confirms the target broadcast source device. The operation steps are relatively cumbersome. When the environment contains many broadcast source devices, the terminal needs to scan all Bluetooth broadcasts, and the user needs to wait for a long time to obtain the Bluetooth broadcast list and then receive Bluetooth audio data. During this period, for each Bluetooth broadcast, the terminal needs to adjust the receiving channel multiple times, that is, to obtain the indication frame of the Bluetooth broadcast through multiple frequency hopping, which increases the operating power consumption of the Bluetooth component.
[0033] In the solution provided in the embodiment of the present application, the terminal obtains the synchronization auxiliary information of the target broadcast source device in advance, selectively scans the indication frame of the Bluetooth broadcast according to the synchronization auxiliary information, and then performs periodic broadcast synchronization with the target broadcast source device without scanning and identifying all Bluetooth broadcasts. This can shorten the scanning time of the terminal and reduce the operating power consumption of the Bluetooth component.
[0034] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a broadcast source device 110 and a terminal 120.
[0035] The broadcast source device 110 is used for Bluetooth audio broadcasting, and can be a smart speaker, computer, server, etc. with audio broadcasting function. The broadcast source device 110 is provided with a Bluetooth component, which can broadcast Bluetooth audio through the Bluetooth component. The Bluetooth audio is similar to wireless broadcasting, and does not need to establish a pairing connection with a receiving device, but directly radiates Bluetooth audio into the environment. The Bluetooth audio is the audio stream data broadcasted by the broadcast source device 110, which is used for the terminal 120 to receive and play.
[0036] Optionally, the broadcast source device 110 is provided with a speaker component, and during the process of broadcasting Bluetooth audio, the corresponding audio can be played through the speaker component.
[0037] The terminal 120 is an intelligent device equipped with a Bluetooth component, such as a smart phone, a portable computer, a tablet computer, a music player, etc. The terminal 120 can receive the Bluetooth audio broadcast by the broadcast source device 110 through the Bluetooth component. Optionally, the terminal 120 can be equipped with at least one of a camera component, an ultra-wideband (Ultra Wide Band, UWB) component and a near field communication (NearField Communication, NFC) component for obtaining synchronization auxiliary information of the broadcast source device.
[0038] Optionally, the terminal 120 is provided with a speaker component for playing the corresponding Bluetooth audio. Optionally, the terminal 120 can also be connected to a Bluetooth audio playback device through a Bluetooth component, and the Bluetooth audio playback device is used to play Bluetooth audio data, such as a Bluetooth headset 130. The terminal 120 and the Bluetooth headset 130 establish a Bluetooth communication connection, and the acquired synchronization auxiliary information and the periodic broadcast synchronization information of the broadcast source device 110 are sent to the Bluetooth headset 130, so that the Bluetooth headset 130 performs periodic broadcast synchronization and plays the Bluetooth audio data.
[0039] Figure 2 is a flowchart of a method for receiving Bluetooth audio provided by an exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1The terminal shown in FIG. 1 is used as an example for explanation. The method includes:
[0040] Step 201: Acquire synchronization auxiliary information of a target broadcast source device, where the target broadcast source device is used for performing Bluetooth audio broadcasting.
[0041] When the terminal is within the broadcast range of the target broadcast source device and needs to receive Bluetooth audio data through the terminal, since the terminal does not know the broadcast channel and broadcast frequency of the target broadcast source device when performing Bluetooth broadcast, and the terminal is in an environment that contains multiple broadcast source devices at the same time, the terminal needs to spend a long time scanning the Bluetooth broadcasts of all broadcast source devices. In order to shorten the scanning time, the terminal needs to obtain the synchronization auxiliary information of the target broadcast source device in advance. The synchronization auxiliary information includes information such as the device address and broadcast identifier of the target broadcast source device, which is convenient for determining the actual target broadcast source device from multiple broadcast source devices.
[0042] Step 202: Perform periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and obtain periodic broadcast synchronization information of the target broadcast source device.
[0043] When the terminal is located in an area where multiple broadcast source devices broadcast Bluetooth broadcasts, the terminal can determine the Bluetooth broadcast corresponding to the target broadcast source device from the multiple broadcast source devices based on the synchronization auxiliary information of the target broadcast source device, and then perform periodic broadcast synchronization with the target broadcast source device.
[0044] Schematically, there are broadcast source device A, broadcast source device B and broadcast source device C in the environment where the terminal is located, and their corresponding Bluetooth broadcasts are Bluetooth Broadcast A, Bluetooth Broadcast B and Bluetooth Broadcast C respectively. When the terminal has obtained the synchronization auxiliary information of the broadcast source device A, the signal scanning switch of the Bluetooth component is turned on, and the Bluetooth broadcast A is scanned according to the synchronization auxiliary information. After the terminal scans the Bluetooth broadcast A, the corresponding broadcast source device A is determined as the target broadcast source device that needs to be synchronized.
[0045] Before receiving Bluetooth audio data, the terminal needs to first receive various indication frames sent by the target broadcast source device. Different indication frames contain different data information. In general, due to the length and message structure of the indication frame, the terminal needs to continuously receive multiple indication frames to obtain the periodic synchronization information of the target broadcast source device. Different indication frames are broadcast through different channels. For the same reason, the terminal needs to keep the receiving channel consistent with the broadcast channel to receive periodic broadcast synchronization information. There are many types of indication frames, including but not limited to at least one of the following types: advertising extension indication frame (Advertising Extension Indication, ADV_EXT_IND), auxiliary broadcast indication frame (Auxilary Advertising Indication, AUX_ADV_IND), auxiliary synchronization indication frame (Auxilary Synchronization Indication, AUX_SYNC_IND) and auxiliary chain indication frame (Auxilary Chain Indication, AUX_CHAIN_IND). For example, the terminal receives ADV_EXT_IND, AUX_ADV_IND and AUX_SYNC_IND in sequence to obtain synchronization auxiliary information for the target broadcast source device. The periodic broadcast synchronization information may specifically include the Bluetooth audio encoder setting (Codec Setting), audio location (Audio Location), program information (ProgramInfo) and rating (Parental Rating) and other information contents.
[0046] Moreover, after the terminal determines the target broadcast source device, it can selectively scan the Bluetooth broadcast of the target broadcast source device, that is, only scan the indication frame according to the receiving frequency band and channel indicated by the target broadcast source device, without the need to scan and identify all indication frames of other broadcast source devices in turn. In comparison, the operating power consumption of the Bluetooth component can be reduced and the scanning time is reduced.
[0047] Step 203: Perform broadcast isochronous data stream BIS synchronization with the target broadcast source device based on the periodic broadcast synchronization information, and receive the Bluetooth audio data broadcasted by the target broadcast source device.
[0048] When the terminal obtains the periodic broadcast synchronization information of the target broadcast source device, it synchronizes the broadcast isochronous stream (BIS) with the target broadcast source device according to the content indicated by the periodic broadcast synchronization information, such as using the Windows Media Audio (WMA) codec format or the mp3 codec format, etc. The audio positioning information is used to determine the location information of the Bluetooth audio data playback, and the program information is used to determine the name of the Bluetooth broadcast, etc. In addition, the periodic broadcast synchronization information also includes the receiving channel and scanning frequency of the BIS data packet. For example, if the scanning frequency is set to 10ms and the receiving channel is the 20th channel, the receiver of the Bluetooth component receives the BIS data packet from the target broadcast source device on the 20th channel every 10ms. The BIS data packet contains Bluetooth audio data, and then the Bluetooth audio is played after decoding the Bluetooth audio data.
[0049] In the traditional way of receiving Bluetooth audio, it is necessary to first scan all Bluetooth broadcasts in the field through frequency hopping technology, and then select the specified broadcast source device in the Bluetooth broadcast list before establishing periodic broadcast synchronization. This solution omits this step. After obtaining the synchronization auxiliary information of the target broadcast source device, it can directly perform BIS synchronization with the target broadcast source device and receive Bluetooth audio data, which simplifies the operation process.
[0050] To summarize, in the embodiments of the present application, the periodic synchronization information of the target broadcast source device is obtained by obtaining the synchronization auxiliary information of the target broadcast source device in advance, and then establishing periodic broadcast synchronization with the target broadcast source device in the field based on the synchronization auxiliary information. There is no need to scan and identify all broadcast source devices in the field through multiple frequency hopping, which reduces the time for scanning Bluetooth broadcasts and also reduces the operating power consumption of Bluetooth components. After the terminal obtains the periodic synchronization information of the target broadcast source device, BIS synchronization can be performed directly according to the periodic synchronization information without the user having to manually select from the list, which simplifies the operation steps and improves operation efficiency.
[0051] Figure 3 is a flowchart of a method for receiving Bluetooth audio provided by another exemplary embodiment of the present application. In this embodiment, the method is used for Figure 1 The terminal shown in FIG. 1 is used as an example for explanation. The method includes:
[0052] Step 301: Acquire synchronization auxiliary information of a target broadcast source device through an out-of-band method, where the out-of-band method includes at least one of graphic code scanning and NFC near field communication.
[0053] In the above embodiment, the terminal mainly obtains the synchronization auxiliary information of the target broadcast source device in advance. Specifically, the synchronization auxiliary information of the target broadcast source device can be obtained in an out-of-band manner, that is, not through the Bluetooth protocol, but through graphic scanning or near-field communication.
[0054] In one possible implementation, the terminal is provided with a camera component, and the terminal can obtain synchronization auxiliary information by scanning a graphic code. For example, in a simultaneous interpretation scenario, multiple broadcast source devices are included, and different broadcast source devices are used to broadcast Bluetooth broadcasts in different languages to the field. Corresponding QR codes are set for different broadcast source devices. Users scan the QR code of the corresponding language according to actual needs, and then obtain the synchronization auxiliary information of the target broadcast source device.
[0055] In another possible implementation, when the terminal and the broadcast source device are both equipped with NFC components, the terminal can be moved within the coverage of the near-field signal to receive the near-field signal of the target broadcast source device, which contains synchronization auxiliary information of the target broadcast source device.
[0056] In addition to obtaining synchronization auxiliary information through out-of-band means, the synchronization auxiliary information of the target broadcast source device can also be received based on the location information. Taking the simultaneous interpretation scenario as an example, users in different location areas often need to receive Bluetooth audio in different languages. Therefore, a UWB component can be set on the target broadcast source device, and the target broadcast source device can be determined by receiving the UWB signal. Therefore, obtaining synchronization auxiliary information can also be achieved through steps 302 and 303.
[0057] Step 302: Based on the UWB signal received by the UWB component, determine the pointed device as the target broadcast source device.
[0058] When the terminal needs to obtain synchronization auxiliary information of the target broadcast source device, the receiving direction of the UWB signal is adjusted to the signal transmission direction of the target broadcast source device to facilitate the reception of the UWB signal of the target broadcast source device. Since the field where the terminal is located may include multiple broadcast source devices, an angle threshold for receiving the UWB signal can also be set. When the terminal determines that the angle of receiving the UWB signal is less than the angle threshold, the corresponding broadcast source device is determined as the target broadcast source device that needs to be synchronized.
[0059] Step 303: receiving synchronization auxiliary information sent by the target broadcast source device.
[0060] The UWB signal received by the terminal is only used to determine the target broadcast source device. After the target broadcast source device is determined, the target broadcast source device sends synchronization auxiliary information through the Bluetooth component, and the terminal receives the synchronization auxiliary information sent by the target broadcast source device through the Bluetooth component.
[0061] Step 304: In response to the target device address being a public device address or a resolvable private device address, determining a target broadcast extension indication frame ADV_EXT_IND broadcasted by the target broadcast source device.
[0062] The synchronization auxiliary information obtained by the terminal includes the target device address of the target broadcast device. Usually, the device address of the broadcast source device can be set to multiple types, which can be determined according to actual needs. When the obtained target device address is a public device address or a resolvable private device address, the terminal can perform signal scanning according to the provided target device address to determine the target ADV_EXT_IND of the target broadcast source device.
[0063] The indication frame broadcast by the broadcast source device contains the corresponding device address. After the terminal determines the type of the target device address, it scans all broadcast extended indication frames ADV_EXT_IND in the field through the Bluetooth component, and obtains the device address in ADV_EXT_IND, and then determines whether it is the target ADV_EXT_IND broadcast by the target broadcast source device based on the device address.
[0064] Among them, the frame structure of ADV_EXT_IND is as follows Figure 4 As shown, the frame structure includes a header and a payload, PDUType is used to identify the type of broadcast, Reserved For Further is a temporarily unused position reserved for subsequent use, ChSel indicates that the device supports the frequency hopping algorithm, and the corresponding value is set to 1, otherwise it is set to 0, TxAdd is used to indicate the type of device address, RxAdd is usually used for directional broadcasting, specifying the address type of the receiving device, Length indicates the data length of the following payload, and the payload field contains the data carried by the Bluetooth broadcast and the device address.
[0065] Since the Bluetooth protocol divides the 2.4GHz frequency band into 40 physical channels, ADV_EXT_IND is sent through the 37th, 38th or 39th channel. However, after the broadcast source device sends ADV_EXT_IND through the designated channel, the terminal must maintain the same channel to receive ADV_EXT_IND normally. The indication frame sent by the broadcast source device may appear on different physical channels. Therefore, the terminal needs to scan multiple physical channels by frequency hopping and obtain the device addresses in multiple candidate ADV_EXT_INDs to determine the target ADV_EXT_IND of the target broadcast source device. Moreover, in most cases, address encryption is often used to ensure the security of data transmission by the broadcast source device. In this case, even if the terminal scans the Bluetooth broadcast, it cannot connect. Figure 5As shown, for different types of device addresses, the specific steps can be divided into the following steps.
[0066] Step 304A: in response to the target device address being a public device address, receiving a candidate ADV_EXT_IND broadcasted by a candidate broadcast source device.
[0067] When the target device address is a public device address, the device address of the target broadcast source device is fixed. This type of device address is mainly used in public places. When other devices know the public device address, periodic broadcast synchronization can be performed at any time. When the terminal turns on the Bluetooth broadcast scan switch, the terminal scans the candidate ADV_EXT_IND of all broadcast source devices in the field and extracts the device address in the candidate ADV_EXT_IND. Optionally, the candidate ADV_EXT_IND may contain multiple different types of device addresses. The terminal can determine the address type of the scanned candidate ADV_EXT_IND based on TxAdd, and then extract the public device address for subsequent address matching.
[0068] Step 304B: in response to the device address included in the candidate ADV_EXT_IND matching the target device address, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
[0069] When the terminal obtains the device address contained in the candidate ADV_EXT_IND, it matches the target device address with the device address in the candidate ADV_EXT_IND. If the two addresses are different, it means that the currently scanned candidate ADV_EXT_IND is not sent by the target broadcast source device, and the scanning continues. If the two addresses are the same, it means that the currently scanned candidate ADV_EXT_IND is sent by the target broadcast source device, and the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND, and its corresponding Bluetooth broadcast is the target broadcast that needs to be periodically synchronized.
[0070] In the above case, the target device address is a public device address, but in most scenarios, address conflicts may occur with public device addresses, and the security of public addresses is not high. In order to improve security and avoid address conflicts, the target device address can be set to a resolvable private device address. The resolvable private address has a certain update trigger mechanism. After the preset time is reached, the broadcast source device will update the device address and then continue to broadcast Bluetooth audio data. The purpose of the resolvable private device address is to prevent malicious third-party devices from tracking the broadcast source device, while still allowing one or more trusted devices to identify the broadcast source device. The matching process for the resolvable private device address can include the following steps.
[0071] Step 304C: in response to the target device address being a resolvable private device address, receiving a candidate ADV_EXT_IND broadcasted by a candidate broadcast source device, wherein the candidate ADV_EXT_IND includes a random number and a first hash value.
[0072] When the target device address is a resolvable private device address, the acquired synchronization auxiliary information must also include an identity resolving key (IRK), and the candidate ADV_EXT_IND received by the terminal includes a random number and a first hash value (hash), which together constitute the resolvable private device address.
[0073] Figure 6 The data structure of the resolvable private device address is 48 bits long, the first hash value and the random number are 24 bits each, wherein the two highest bits of the random number must be "01", and at least one bit of the random number part must be 0 and at least one bit must be 1. The highest two bits are used to identify the address type, wherein the random number is updated after reaching a preset time, and the first hash value is calculated based on the random number, as shown in step 304D.
[0074] Step 304D: perform a hash operation on the IRK and the random number to obtain a second hash value.
[0075] After the terminal obtains the random number and the first hash value in the candidate ADV_EXT_IND, it calculates the second hash value according to the random number and IRK, which can be obtained through hash operation.
[0076] hash = ah (IRK, prand)
[0077] The target broadcast source device and the terminal use the same hash operation, ah represents the hash operation function, prand represents the random number, and when the terminal obtains the random number, it obtains the second hash value through hash operation. The target broadcast source device also uses this operation method when updating the target device address in the future. If the terminal does not obtain the IRK of the target broadcast source device, it cannot parse the device address and cannot receive Bluetooth audio data.
[0078] Step 304E: In response to the second hash value matching the first hash value, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
[0079] After the terminal calculates the second hash value, it compares the second hash value with the first hash value specified in the candidate ADV_EXT_IND. When the first hash value and the second hash value are the same, the candidate ADV_EXT_IND is sent by the target broadcast source device, and the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND, and its corresponding Bluetooth broadcast is the target broadcast that needs to be periodically synchronized. When the first hash value and the second hash value are not the same, it means that the candidate ADV_EXT_IND is sent by other candidate broadcast source devices.
[0080] Step 305: receiving a target auxiliary broadcast indication frame AUX_ADV_IND broadcasted by a target broadcast source device based on the target ADV_EXT_IND.
[0081] The above embodiment mentioned that receiving Bluetooth audio data requires obtaining multiple indication frames. After determining the target ADV_EXT_IND, it is necessary to receive the target AUX_ADV_IND according to the first indication information of the target AUX_ADV_IND contained in the target ADV_EXT_IND. The first indication information includes the broadcast channel and offset time of the target AUX_ADV_IND.
[0082] The target ADV_EXT_IND is broadcast through channels 37, 38, and 39, while the target AUX_ADV_IND is broadcast through channels other than 37, 38, and 39. Therefore, the target ADV_EXT_IND needs to carry the broadcast channel of the next target AUX_ADV_IND for the terminal to perform frequency hopping, that is, to adjust to the same physical channel as the target broadcast source device to receive the target AUX_ADV_IND. Among them, the offset time is used to indicate the time interval between the broadcast target ADV_EXT_IND and the target ADV_EXT_IND. After the terminal receives the target ADV_EXT_IND, it can turn off the receiver. When the offset time is reached, the receiver is turned on again to receive the target ADV_EXT_IND. This method can shorten the scanning time of the receiver and help reduce power consumption. For example, if the terminal obtains from the target ADV_EXT_IND that the broadcast channel of the target AUX_ADV_IND is the 17th channel and the offset time is 10ms, the terminal can temporarily turn off the receiver. When the offset time is reached, the receiving channel is adjusted to the 17th channel to receive the target AUX_ADV_IND.
[0083] Step 306: receiving a target auxiliary synchronization indication frame AUX_SYNC_IND broadcasted by a target broadcast source device based on the target AUX_ADV_IND, and acquiring periodic broadcast synchronization information of the target AUX_SYNC_IND.
[0084] Similar to the target ADV_EXT_IND, the target AUX_ADV_IND includes the second indication information of the target AUX_SYNC_IND. The frame structure of the target AUX_ADV_IND is as follows: Figure 7 As shown, the effective load of the frame structure includes three fields, namely broadcast data, ADI and Aux Ptr, wherein the Aux Ptr field carries the second indication information, and the second indication information is used to indicate the time, channel and physical layer of the target AUX_SYNC_IND.
[0085] When the terminal receives the target AUX_ADV_IND, it also needs to obtain the broadcast channel and offset time of the target AUX_SYNC_IND in the target AUX_ADV_IND, so that the terminal can adjust the receiving channel and receive the target AUX_SYNC_IND in time. The target AUX_SYNC_IND contains periodic broadcast synchronization information, including but not limited to encoder settings, audio positioning, program information, ratings, and broadcast cycle.
[0086] The frame structure of the target AUX_SYNC_IND is as follows Figure 8 As shown, the effective load of the frame structure includes three fields, namely ADI, periodic broadcast synchronization information and broadcast data.
[0087] Taking program information as an example, it can be represented by a length-type-value (LTV) format, as shown in Table 1:
[0088] Table 1 Program information
[0089] parameter Size (bytes) value length 1 N+1 type 1 0x05 value N Title and / or Abstract
[0090] Among them, the parameters involved in the encoder settings, audio positioning, program information and rating information can be set according to actual needs, or according to the protocol standard of Bluetooth broadcasting. The above parameters are only illustrative examples and do not constitute a limitation to this application.
[0091] The above embodiments describe the content of matching public device addresses and resolvable private device addresses. When the terminal obtains the target device address of the target broadcast source device as an unresolvable private device address, it is impossible to directly compare the device address, or to calculate and match it through IRK. At this time, the broadcast identifier contained in AUX_ADV_IND can be matched, which specifically includes the following steps.
[0092] Step 307 : In response to the target device address being an unresolvable private device address, based on the candidate ADV_EXT_IND broadcasted by each candidate broadcast source device, receiving the candidate AUX_ADV_IND broadcasted by each candidate broadcast source device.
[0093] The unresolvable private device address is also updated regularly, but the device address does not contain a hash value, and the random number part is randomly generated, which is more secure. Fig. 9 As shown, the highest two digits of the unresolvable private device address are "00", which are used to indicate the address type. At least one digit of the remaining random numbers must be 0 and at least one digit must be 1, and the unresolvable private device address cannot be the same as the public address.
[0094] When the terminal determines that the target device address is an unresolvable private device address, the terminal cannot determine the target broadcast source device through the candidate ADV_EXT_IND, but matches it through the broadcast identifier. Correspondingly, the synchronization auxiliary information obtained by the terminal includes the target broadcast identifier of the target broadcast source device. Therefore, the terminal needs to first receive the candidate ADV_EXT_IND broadcast by each candidate broadcast source device, and then receive each candidate AUX_ADV_IND according to the third indication information of the candidate AUX_ADV_IND contained in the candidate ADV_EXT_IND.
[0095] Step 308 : determining a target AUX_ADV_IND based on the target broadcast identifier candidate AUX_ADV_IND, wherein the broadcast identifier included in the target AUX_ADV_IND matches the target broadcast identifier.
[0096] The frame structure of the candidate AUX_ADV_IND can refer to Figure 7 The broadcast identifier can be obtained from ADI. ADI includes a broadcast identifier and a broadcast set. The broadcast set is used to identify different broadcast events. When the terminal obtains the broadcast identifier in each candidate AUX_ADV_IND, it matches the corresponding broadcast identifier with the target broadcast identifier. When the broadcast identifier in the candidate AUX_ADV_IND is the same as the target broadcast identifier, the candidate AUX_ADV_IND is determined as the target AUX_ADV_IND.
[0097] Step 309: receiving the target AUX_SYNC_IND broadcasted by the target broadcast source device based on the target AUX_ADV_IND, and acquiring the periodic broadcast synchronization information of the target AUX_SYNC_IND.
[0098] The implementation of this step may refer to step 306, and this embodiment will not be described in detail here.
[0099] Step 310: Perform broadcast isochronous data stream BIS synchronization with the target broadcast source device based on the periodic broadcast synchronization information, and receive the Bluetooth audio data broadcasted by the target broadcast source device.
[0100] The implementation of this step may refer to step 203, and this embodiment will not be described in detail here.
[0101] In summary, in the embodiment of the present application, the terminal can obtain the synchronization auxiliary information of the target broadcast source device in advance through an out-of-band method, such as scanning a graphic code or through an NFC component;
[0102] In the process of periodic broadcast synchronization with the target broadcast source device, the specific method of obtaining the periodic broadcast synchronization information is first determined according to the target device address of the target broadcast source device. When the target device address is a public device address, it can be matched with the device address in the candidate ADV_EXT_IND to determine the target ADV_EXT_IND; when the target device address is a resolvable private device address, the target ADV_EXT_IND is determined according to the obtained IRK and the random number and the first hash value contained in the candidate ADV_EXT_IND, and then the target AUX_ADV_IND is received through the target ADV_EXT_IND;
[0103] When the target device address is an unresolvable private device address, the target ADV_EXT_IND cannot be directly determined, but the candidate ADV_EXT_IND needs to be obtained first, the candidate AUX_ADV_IND is received according to the candidate ADV_EXT_IND, and then the broadcast identifier specified in the candidate AUX_ADV_IND is matched with the target broadcast identifier to determine the target AUX_ADV_IND;
[0104] Further, after determining the target AUX_ADV_IND, the target AUX_SYNC_IND is received according to the target AUX_ADV_IND, and periodic broadcast synchronization information is obtained, so as to subsequently perform BIS synchronization with the target broadcast source device and receive Bluetooth audio data.
[0105] Fig.10 A flowchart of data transmission of Bluetooth broadcast provided by an exemplary embodiment of the present application is shown.
[0106] During the terminal scanning Bluetooth broadcast, it will obtain candidate ADV_EXT_IND in the field. If the target device address in the auxiliary synchronous broadcast information obtained by the terminal is a resolvable address or a public address, the target ADV_EXT_IND corresponding to the target broadcast source device will be determined in the first stage. After that, the terminal receives the target AUX_EXT_IND according to the indication information indicated by the target ADV_EXT_IND in the second stage. This process is to set the scanning filtering strategy according to the target ADV_EXT_IND, and no longer scan other candidate ADV_EXT_IND and candidate AUX_EXT_IND. Different from the previous method of scanning Bluetooth broadcast, this process can omit the scanning of other Bluetooth broadcasts, which can relatively shorten the scanning time of the terminal.
[0107] If the target device address obtained by the terminal is an unresolvable address or a public address, the synchronization auxiliary information also includes the broadcast identifier of the target broadcast source device. At this time, the terminal needs to obtain the candidate ADV_EXT_IND of all Bluetooth broadcasts, and then obtain the candidate AUX_EXT_IND based on the candidate ADV_EXT_IND, and then determine the target AUX_EXT_IND based on the broadcast identifier in the candidate AUX_EXT_IND. In other words, the terminal needs to execute the first and second stages for all Bluetooth broadcasts.
[0108] After the terminal determines the target AUX_EXT_IND, it obtains the target AUX_SYNC_IND and periodic broadcast synchronization information through the third stage. The third stage is only for the Bluetooth broadcast of the target broadcast source device. Due to the scanning filtering strategy, the third stage operation will not be performed on other broadcast source devices. Similarly, after obtaining the periodic broadcast synchronization information, it will perform BIS synchronization with the target broadcast source device in the fourth stage, periodically receive BIS data packets, and obtain the Bluetooth audio data therein.
[0109] In the above embodiment, the terminal realizes BIS synchronization with the target source broadcasting device based on the acquired synchronization auxiliary information. When the terminal does not have the audio playback function or the user needs to play the Bluetooth audio data through other audio playback devices, the acquired synchronization auxiliary information is sent to the audio playback device, and the audio playback device receives the audio data packet.
[0110] Fig.11 It is a flowchart of a method for receiving Bluetooth audio provided by another exemplary embodiment of the present application.
[0111] Step 1101: The target broadcast source device performs Bluetooth audio broadcasting.
[0112] Step 1102: The terminal obtains synchronization assistance information.
[0113] The synchronization auxiliary information is specifically determined according to the address type of the target broadcast source device, and the terminal performs periodic broadcast synchronization with the target broadcast source device based on the synchronization auxiliary information.
[0114] Step 1103: The terminal obtains periodic broadcast synchronization information of the target broadcast source device.
[0115] Step 1104: Receive periodically broadcast synchronization information and synchronization assistance information.
[0116] In one possible implementation, the terminal does not have the ability to obtain synchronization auxiliary information or the user does not expect to play the Bluetooth audio broadcast through the terminal, but the terminal establishes a communication connection with the Bluetooth audio playback device through the Bluetooth component. At this time, the terminal can send the acquired periodic broadcast synchronization information and synchronization auxiliary information to the Bluetooth audio playback device through the ACL link. Among them, the Bluetooth audio playback device can be a wearable device, such as a smart watch or smart glasses. In addition, the Bluetooth audio playback device can also be a Bluetooth headset or other device. The battery capacity of the wearable device is limited. If the Bluetooth broadcast is scanned directly, the operating power consumption will be increased. By obtaining it from the terminal, the operating power consumption of the wearable device can be reduced to achieve the purpose of power saving.
[0117] Step 1105, PA synchronization and BIS synchronization.
[0118] When the Bluetooth audio playback device obtains the periodic broadcast synchronization information and synchronization auxiliary information, it performs PA synchronization and BIS synchronization with the target broadcast source device.
[0119] Step 1106, receiving Bluetooth audio data.
[0120] When the Bluetooth audio playback device receives the Bluetooth audio data, it plays the corresponding Bluetooth audio.
[0121] In an embodiment of the present application, the synchronization auxiliary information of the target broadcast source device is obtained through the terminal, and then periodic broadcast synchronization is performed with the target broadcast source device. After obtaining the periodic broadcast synchronization information of the target broadcast source and the device, the synchronization auxiliary information and the periodic broadcast synchronization information are sent to the Bluetooth audio playback device to reduce the operating power consumption of the audio playback device.
[0122] refer to Fig.12 , which shows a structural block diagram of a Bluetooth audio receiving device provided by an embodiment of the present application. The device includes:
[0123] A first acquisition module 1201 is used to acquire synchronization auxiliary information of a target broadcast source device, where the target broadcast source device is used to perform Bluetooth audio broadcasting;
[0124] A second acquisition module 1202 is configured to perform periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquire periodic broadcast synchronization information of the target broadcast source device;
[0125] The audio receiving module 1203 is used to synchronize the broadcast isochronous data stream BIS with the target broadcast source device based on the periodic broadcast synchronization information, and receive the Bluetooth audio data broadcast by the target broadcast source device.
[0126] Optionally, the first acquisition module 1201 includes:
[0127] A first acquisition unit, configured to acquire the synchronization auxiliary information of the target broadcast source device in an out-of-band manner, wherein the out-of-band manner includes at least one of graphic code scanning and NFC near field communication;
[0128] or,
[0129] The second acquisition unit is configured to determine the pointed device as the target broadcast source device based on the UWB signal received by the ultra-wideband UWB component; and receive the synchronization auxiliary information sent by the target broadcast source device.
[0130] Optionally, the synchronization auxiliary information includes a target device address of the target broadcast source device;
[0131] The second acquisition module 1202 includes:
[0132] A first determining unit, configured to determine a target broadcast extension indication frame ADV_EXT_IND broadcast by the target broadcast source device in response to the target device address being a public device address or a resolvable private device address;
[0133] A first receiving unit, configured to receive a target auxiliary broadcast indication frame AUX_ADV_IND broadcasted by the target broadcast source device based on the target ADV_EXT_IND;
[0134] The second receiving unit is configured to receive a target auxiliary synchronization indication frame AUX_SYNC_IND broadcasted by the target broadcast source device based on the target AUX_ADV_IND, and acquire the periodic broadcast synchronization information of the target AUX_SYNC_IND.
[0135] Optionally, the target device address is a public device address;
[0136] The first determining unit is further configured to:
[0137] Receive candidate ADV_EXT_IND broadcasted by candidate broadcast source device;
[0138] In response to a device address included in the candidate ADV_EXT_IND matching the target device address, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
[0139] Optionally, the target device address is a resolvable private device address, and the synchronization auxiliary information further includes an identity resolution key IRK;
[0140] The first determining unit is further configured to:
[0141] Receive a candidate ADV_EXT_IND broadcasted by a candidate broadcast source device, wherein the candidate ADV_EXT_IND includes a random number and a first hash value;
[0142] Performing a hash operation on the IRK and the random number to obtain a second hash value;
[0143] In response to the second hash value matching the first hash value, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
[0144] Optionally, the second obtaining module 1202 further includes:
[0145] A third receiving unit, configured to receive, in response to the target device address being an unresolvable private device address, the candidate AUX_ADV_IND broadcasted by each of the candidate broadcast source devices based on the candidate ADV_EXT_IND broadcasted by each of the candidate broadcast source devices;
[0146] A second determining unit, configured to determine a target AUX_ADV_IND from the candidate AUX_ADV_INDs based on the target broadcast identifier, wherein the broadcast identifier included in the target AUX_ADV_IND matches the target broadcast identifier;
[0147] The fourth receiving unit is configured to receive the target AUX_SYNC_IND broadcasted by the target broadcast source device based on the target AUX_ADV_IND, and acquire the periodic broadcast synchronization information of the target AUX_SYNC_IND.
[0148] Optionally, the device further comprises:
[0149] The sending module is used to send the periodic broadcast synchronization information and the synchronization auxiliary information to the Bluetooth audio playback device through the ACL link, so that the Bluetooth audio playback device receives the Bluetooth audio data broadcast by the target broadcast source device after performing PA synchronization and BIS synchronization with the target broadcast source device.
[0150] Fig.13The following is a block diagram of a terminal structure provided by an exemplary embodiment of the present application. The terminal 1300 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 1300 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0151] Typically, the terminal 1300 includes a processor 1301 and a memory 1302 .
[0152] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0153] The memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one instruction, which is used to be executed by the processor 1301 to implement the greeting card method provided in the method embodiment of the present application.
[0154] In the embodiment of the present application, the terminal 1300 may further include a Bluetooth component 1303 for scanning Bluetooth broadcasts, which is mainly composed of related devices such as a receiver, a transmitter, and a memory. The Bluetooth component 1303 is used to receive Bluetooth broadcasts, and optionally, it can also establish Bluetooth communication with a Bluetooth audio playback device. The Bluetooth component 1303 can be integrated inside the terminal 1300 or set in an external device, which is not limited in this embodiment.
[0155] In an embodiment of the present application, the terminal 1300 may further include a camera assembly 1304 for scanning a graphic code, and optionally, the camera assembly 1304 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality, virtual reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1304 may further include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0156] In the embodiment of the present application, the terminal 1300 may also include a speaker component 1305, which is used to convert the Bluetooth audio data received by the Bluetooth component 1303 into a sound signal. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into a sound wave audible to humans, but also convert the electrical signal into a sound wave inaudible to humans for purposes such as ranging. In some embodiments, the terminal may also be provided with a headphone jack to listen to Bluetooth audio by connecting a wired headset.
[0157] In the embodiment of the present application, the terminal 1300 may further include an NFC component 1306, and the NFC component is used to receive an NFC signal sent by a target broadcast source device, and the NFC signal includes synchronization auxiliary information.
[0158] In the embodiment of the present application, the terminal 1300 may further include a UWB component 1307 , and the UWB component is used to determine the corresponding pointed device as the target broadcast source device, and then obtain synchronization assistance information through the Bluetooth component 1303 .
[0159] Those skilled in the art will understand that Fig.13The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0160] The present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the Bluetooth audio receiving method provided by the above-mentioned various method embodiments.
[0161] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes any of the Bluetooth audio receiving methods in the above embodiments.
[0162] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0163] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0164] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for receiving Bluetooth audio, characterized in that: The method comprises: Acquire synchronization auxiliary information of a target broadcast source device, wherein the target broadcast source device is used for performing Bluetooth audio broadcasting; Performing periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquiring periodic broadcast synchronization information of the target broadcast source device; In the case where the terminal has an audio playback function and it is desired to play Bluetooth audio broadcasting through the terminal, based on the periodic broadcast synchronization information, the broadcast isochronous data stream BIS is synchronized with the target broadcast source device, and the Bluetooth audio data broadcasted by the target broadcast source device is received; When the terminal does not have an audio playback function, or expects to play the Bluetooth audio broadcast through other audio playback devices, the periodic broadcast synchronization information and the synchronization auxiliary information are sent to the Bluetooth audio playback device through the ACL link, so that the Bluetooth audio playback device can receive the Bluetooth audio data broadcast by the target broadcast source device after performing PA synchronization and BIS synchronization with the target broadcast source device.
2. The method according to claim 1, characterized in that The step of obtaining synchronization auxiliary information of a target broadcast source device includes: Acquiring the synchronization auxiliary information of the target broadcast source device in an out-of-band manner, wherein the out-of-band manner includes at least one of graphic code scanning and NFC near field communication; or, Based on the UWB signal received by the ultra-wideband (UWB) component, the pointed device is determined as the target broadcast source device; and the synchronization auxiliary information sent by the target broadcast source device is received.
3. The method according to claim 1, characterized in that: The synchronization auxiliary information includes a target device address of the target broadcast source device; The performing PA synchronization with the target broadcast source device based on the synchronization auxiliary information to obtain the periodic broadcast synchronization information of the target broadcast source device includes: In response to the target device address being a public device address or a resolvable private device address, determining a target broadcast extension indication frame ADV_EXT_IND broadcast by the target broadcast source device; Receiving a target auxiliary broadcast indication frame AUX_ADV_IND broadcasted by the target broadcast source device based on the target ADV_EXT_IND; The target auxiliary synchronization indication frame AUX_SYNC_IND broadcasted by the target broadcast source device is received based on the target AUX_ADV_IND, and the periodic broadcast synchronization information of the target AUX_SYNC_IND is acquired.
4. The method according to claim 3, characterized in that The target device address is a public device address; The determining the target ADV_EXT_IND broadcast by the target broadcast source device comprises: Receive candidate ADV_EXT_IND broadcasted by candidate broadcast source device; In response to a device address included in the candidate ADV_EXT_IND matching the target device address, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
5. The method according to claim 3, characterized in that: The target device address is a resolvable private device address, and the synchronization auxiliary information also includes an identity resolution key IRK; The determining the target ADV_EXT_IND broadcast by the target broadcast source device comprises: Receive a candidate ADV_EXT_IND broadcasted by a candidate broadcast source device, wherein the candidate ADV_EXT_IND includes a random number and a first hash value; Performing a hash operation on the IRK and the random number to obtain a second hash value; In response to the second hash value matching the first hash value, the candidate ADV_EXT_IND is determined as the target ADV_EXT_IND.
6. The method according to claim 3, characterized in that The synchronization auxiliary information includes a target broadcast identifier of the target broadcast source device; The performing PA synchronization with the target broadcast source device based on the synchronization auxiliary information to obtain the periodic broadcast synchronization information of the target broadcast source device includes: In response to the target device address being an unresolvable private device address, based on the candidate ADV_EXT_IND broadcasted by each candidate broadcast source device, receiving the candidate AUX_ADV_IND broadcasted by each candidate broadcast source device; Determine a target AUX_ADV_IND from the candidate AUX_ADV_IND based on the target broadcast identifier, the broadcast identifier included in the target AUX_ADV_IND matching the target broadcast identifier; The target AUX_SYNC_IND broadcasted by the target broadcast source device is received based on the target AUX_ADV_IND, and the periodic broadcast synchronization information of the target AUX_SYNC_IND is acquired.
7. A Bluetooth audio receiving device, characterized in that: The device comprises: A first acquisition module, used to acquire synchronization auxiliary information of a target broadcast source device, where the target broadcast source device is used to perform Bluetooth audio broadcasting; A second acquisition module, configured to perform periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquire periodic broadcast synchronization information of the target broadcast source device; An audio receiving module is used to synchronize the broadcast isochronous data stream BIS with the target broadcast source device based on the periodic broadcast synchronization information, and receive the Bluetooth audio data broadcasted by the target broadcast source device when the terminal has an audio playback function and expects to play Bluetooth audio broadcast through the terminal; The sending module is used to send the periodic broadcast synchronization information and the synchronization auxiliary information to the Bluetooth audio playback device through the ACL link when the terminal does not have the audio playback function or expects to play the Bluetooth audio broadcast through other audio playback devices, so that the Bluetooth audio playback device can receive the Bluetooth audio data broadcast by the target broadcast source device after PA synchronization and BIS synchronization with the target broadcast source device.
8. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the Bluetooth audio receiving method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the Bluetooth audio receiving method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Method for quickly establishing Bluetooth connection
CN103888177A
A source device broadcasts synchronization information associated with a bluetooth isochronous channel
CN108702720A
Systems and methods for back channel communication
CN109565365A
