CN115708373A - Bluetooth audio receiving method, device, terminal and storage medium - Google Patents

Bluetooth audio receiving method, device, terminal and storage medium Download PDF

Info

Publication number
CN115708373A
CN115708373A CN202110949568.8A CN202110949568A CN115708373A CN 115708373 A CN115708373 A CN 115708373A CN 202110949568 A CN202110949568 A CN 202110949568A CN 115708373 A CN115708373 A CN 115708373A
Authority
CN
China
Prior art keywords
target
broadcast
ind
synchronization
adv
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110949568.8A
Other languages
Chinese (zh)
Inventor
任凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110949568.8A priority Critical patent/CN115708373A/en
Priority to PCT/CN2022/112530 priority patent/WO2023020439A1/en
Publication of CN115708373A publication Critical patent/CN115708373A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Landscapes

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

Abstract

The application discloses a method, a device, a terminal and a storage medium for receiving Bluetooth audio, and relates to the field of Bluetooth broadcasting. The method comprises the following steps: acquiring synchronous auxiliary information of target broadcast source equipment, wherein the target broadcast source equipment is used for carrying out Bluetooth audio broadcasting; performing periodic broadcast PA synchronization with the target broadcast source equipment based on the synchronization auxiliary information to acquire periodic broadcast synchronization information of the target broadcast source equipment; and performing broadcast isochronous data stream BIS synchronization with the target broadcast source equipment based on the periodic broadcast synchronization information, and receiving Bluetooth audio data broadcast by the target broadcast source equipment. According to the scheme, the time for scanning Bluetooth broadcast is reduced, the running power consumption of Bluetooth is reduced, the operation steps are simplified, and the operation efficiency is improved.

Description

Bluetooth audio receiving method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the field of Bluetooth broadcasting, in particular to a method, a device, a terminal and a storage medium for receiving Bluetooth audio.
Background
The bluetooth broadcast is generally received by parsing the scanned data frame and receiving the bluetooth audio broadcast by the broadcast source device according to the synchronization information contained in the data frame.
In the related art, when a terminal needs to receive bluetooth audio broadcasted by a broadcast source device, the terminal needs to synchronize with all bluetooth broadcast source devices in the environment, display identification information of each broadcast source device in the terminal, determine a target broadcast source device based on user selection, and then receive bluetooth audio data of the target broadcast source device.
Disclosure of Invention
The embodiment of the application provides a method, a device, a terminal and a storage medium for receiving Bluetooth audio, wherein the technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for receiving a bluetooth audio, where the method includes:
acquiring synchronous auxiliary information of target broadcast source equipment, wherein the target broadcast source equipment is used for carrying out Bluetooth audio broadcasting;
performing periodic broadcast PA synchronization with the target broadcast source equipment based on the synchronization auxiliary information to acquire periodic broadcast synchronization information of the target broadcast source equipment;
and performing broadcast isochronous data stream BIS synchronization with the target broadcast source equipment based on the periodic broadcast synchronization information, and receiving Bluetooth audio data broadcast by the target broadcast source equipment.
On the other hand, an embodiment of the present application provides a method for receiving bluetooth audio, where the method includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring synchronous auxiliary information of target broadcast source equipment, and the target broadcast source equipment is used for carrying out Bluetooth audio broadcasting;
a second obtaining module, configured to perform PA synchronization on periodic broadcast with the target broadcast source device based on the synchronization auxiliary information, and obtain periodic broadcast synchronization information of the target broadcast source device;
and the audio receiving module is used for synchronizing broadcast isochronous data streams BIS with the target broadcast source equipment based on the periodic broadcast synchronization information and receiving Bluetooth audio data broadcast by the target broadcast source equipment.
In another aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for receiving bluetooth audio provided in the foregoing aspect.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is used for being executed by a processor to implement the method for receiving bluetooth audio provided in the above aspect.
In another aspect, embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for receiving bluetooth audio provided by the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
according to the scheme provided by the embodiment of the application, the periodic synchronous information of the target broadcast source equipment is acquired by acquiring the synchronous auxiliary information of the target broadcast source equipment in advance and then establishing periodic broadcast synchronization with the target broadcast source equipment in the field according to the synchronous auxiliary information, so that the periodic synchronous information of the target broadcast source equipment is acquired, all the broadcast source equipment in the field does not need to be scanned and identified in a frequency hopping mode, the time for scanning Bluetooth broadcast is shortened, and meanwhile, the running power consumption of a Bluetooth assembly is also reduced; after the terminal acquires the periodic synchronization information of the target broadcast source device, BIS synchronization can be directly performed according to the periodic synchronization information without manual selection from a list by a user, so that operation steps are simplified, and operation efficiency is improved.
Drawings
Fig. 1 is a schematic diagram illustrating a scene of a method for receiving bluetooth audio according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating a method of receiving bluetooth audio according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of a method for receiving bluetooth audio according to another exemplary embodiment of the present application;
fig. 4 is a schematic diagram illustrating a frame structure of ADV _ EXT _ IND according to an exemplary embodiment of the present application;
fig. 5 is a flowchart of a method for receiving bluetooth audio according to another exemplary embodiment of the present application;
FIG. 6 illustrates a schematic structural diagram of a resolvable private device address provided by an exemplary embodiment of the present application;
fig. 7 is a diagram illustrating a frame structure of a target AUX _ ADV _ IND according to an exemplary embodiment of the present application;
fig. 8 is a frame structure diagram of a target AUX _ SYNC _ IND according to an exemplary embodiment of the present application;
FIG. 9 is a block diagram illustrating an unresolvable private device address provided by an exemplary embodiment of the present application;
fig. 10 shows a flow chart of data transmission of bluetooth broadcast provided by an exemplary embodiment of the present application;
fig. 11 is a flowchart of a method for receiving bluetooth audio according to another exemplary embodiment of the present application;
fig. 12 is a block diagram illustrating a structure of a bluetooth audio receiving apparatus according to an embodiment of the present application;
fig. 13 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In the related art, when the terminal is in the radiation range of bluetooth broadcasting, and when bluetooth audio frequency needs to be received, by turning on the bluetooth broadcasting scanning switch, the bluetooth broadcasting of all broadcasting source devices in a scanning field is scanned, and then the target broadcasting device that needs to be received is determined through the displayed bluetooth broadcasting list, and then when the confirmation operation of a user to the target broadcasting source device is received, the bluetooth audio data can be received and played, the operation steps are relatively complicated, when more broadcasting source devices are included in the environment, the terminal needs to scan all bluetooth broadcasting, the user needs to wait for a relatively long time to acquire the bluetooth broadcasting list, and then the bluetooth audio data is received. During the period, aiming at each Bluetooth broadcast, the terminal needs to regulate a receiving channel for many times, namely, the indication frame of the Bluetooth broadcast is obtained in a frequency hopping mode for many times, and the running power consumption of the Bluetooth module is increased.
In the scheme provided by the embodiment of the application, the terminal selectively scans the indication frame of the Bluetooth broadcast according to the synchronous auxiliary information by acquiring the synchronous auxiliary information of the target broadcast source equipment in advance, so that the terminal and the target broadcast source equipment are synchronized in periodic broadcast without scanning and identifying all the Bluetooth broadcasts, the scanning time of the terminal can be shortened, and the running power consumption of the Bluetooth module is reduced.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the present application is shown. The implementation environment may include: broadcast source device 110 and terminal 120.
The broadcast source device 110 is used for bluetooth audio broadcasting, and may be only devices such as a sound, a computer, and a server, etc., having an 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 broadcast, and directly radiates the bluetooth audio into the environment without establishing a pairing connection with a receiving device, and the bluetooth audio is audio stream data broadcast by the broadcast source device 110 and is used for the terminal 120 to receive and play.
Optionally, a speaker assembly is disposed on the broadcast source device 110, and during the process of broadcasting the bluetooth audio, the corresponding audio may be played through the speaker assembly.
The terminal 120 is an intelligent device provided with a bluetooth component, such as a smart phone, a portable computer, a tablet computer, and a music player, and the terminal 120 may receive a bluetooth audio broadcasted by the broadcast source device 110 through the bluetooth component, and optionally, at least one of a camera component, an Ultra Wide Band (UWB) component, and a Near Field Communication (NFC) component may be provided on the terminal 120, and is configured to obtain synchronous auxiliary information of the broadcast source device.
Optionally, a speaker assembly is disposed on the terminal 120, and is used for playing a corresponding bluetooth audio. Optionally, the terminal 120 may further be connected to a bluetooth audio playing device through a bluetooth component, where the bluetooth audio playing device is configured to play bluetooth audio data, for example, the bluetooth headset 130, the terminal 120 establishes a bluetooth communication connection with the bluetooth headset 130, and sends the acquired synchronization auxiliary information and the periodic broadcast synchronization information of the broadcast source device 110 to the bluetooth headset 130, so that the bluetooth headset 130 performs periodic broadcast synchronization and plays the bluetooth audio data.
Fig. 2 is a flowchart of a method for receiving bluetooth audio according to an exemplary embodiment of the present application, and this embodiment takes the method as an example for being used in the terminal shown in fig. 1. The method comprises the following steps:
step 201, obtaining synchronous auxiliary information of a target broadcast source device, where the target broadcast source device is used to perform bluetooth audio broadcasting.
When the terminal is located in the broadcast range of the target broadcast source device and needs to receive the bluetooth audio data through the terminal, the terminal needs to spend a long time scanning the bluetooth broadcasts of all the broadcast source devices because the terminal does not know the information such as the broadcast channel and the broadcast frequency when the target broadcast source device performs the bluetooth broadcasts, and when the terminal is located in an environment and contains a plurality of broadcast source devices at the same time. In order to shorten the scanning time, the terminal needs to acquire synchronization auxiliary information of the target broadcast source device in advance, where the synchronization auxiliary information includes information such as a device address and a broadcast identifier of the target broadcast source device, and is convenient for determining an actual target broadcast source device from a plurality of broadcast source devices.
Step 202, performing a periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information, and acquiring a periodic broadcast synchronization information of the target broadcast source device.
When the terminal covers the bluetooth broadcast of multiple broadcast source devices in the field where the terminal is located, the terminal may determine, based on the acquired synchronization auxiliary information of the target broadcast source device, the bluetooth broadcast corresponding to the target broadcast source device from the multiple broadcast source devices, and then perform periodic broadcast synchronization with the target broadcast source device.
Illustratively, a broadcast source device a, a broadcast source device B, and a broadcast source device C exist in an environment where the terminal is located, and bluetooth broadcasts corresponding to the broadcast source device a are respectively a bluetooth broadcast a, a bluetooth broadcast B, and a bluetooth broadcast C.
Before the terminal receives the bluetooth audio data, it needs to receive various indication frames sent by the target broadcast source device, where different indication frames contain different data information, and under a normal condition, limited by the length of the indication frame and the message structure, the terminal needs to continuously receive multiple indication frames to obtain the periodic synchronization information of the target broadcast source device, and the different indication frames are broadcast through different channels respectively, and in the same reason, the terminal needs to keep the receiving channel consistent with the broadcast channel, and can receive the periodic broadcast synchronization information. The type of the indication frame is various, including but not limited to at least one of the following types: an extended broadcast Indication frame (ADV _ EXT _ IND), an auxiliary broadcast Indication frame (AUX _ ADV _ IND), an auxiliary Synchronization Indication frame (AUX _ SYNC _ IND), and an auxiliary Chain Indication frame (AUX _ Chain _ IND). For example, the terminal sequentially receives ADV _ EXT _ IND, AUX _ ADV _ IND, and AUX _ SYNC _ IND to acquire synchronization auxiliary information for the target broadcast source device, where the periodic broadcast synchronization information may specifically include information contents such as a coder Setting (Codec Setting), an Audio Location (Audio Location), program information (Program Info), and a Rating (partial Rating) of a bluetooth Audio.
Moreover, after the terminal determines the target broadcast source device, the terminal can selectively scan the bluetooth broadcast of the target broadcast source device, that is, the indication frame is scanned only according to the receiving frequency band and the channel indicated by the target broadcast source device, and all the indication frames of other broadcast source devices do not need to be scanned and identified in sequence.
And step 203, synchronizing the broadcasting isochronous data stream BIS with the target broadcasting source device based on the periodic broadcasting synchronization information, and receiving the Bluetooth audio data broadcasted by the target broadcasting source device.
After the terminal acquires the periodic Broadcast synchronization information of the target Broadcast source device, it synchronizes with the Broadcast Isochronous data Stream (BIS) of the target Broadcast source device according to the content indicated by the periodic Broadcast synchronization information, for example, using a Window Media Audio (WMA) codec format or an mp3 codec format, where the Audio positioning information is used to determine the position information of the bluetooth Audio data playing, and the program information is used to determine the name of the bluetooth Broadcast. In addition, the periodic broadcast synchronization information further includes information such as a receiving channel and a scanning frequency of the BIS data packet, if the scanning frequency is set to 10ms and the receiving channel is set to 20 th channel, the receiver of the bluetooth component receives the BIS data packet from the target broadcast source device on the 20 th channel every 10ms, the BIS data packet includes bluetooth audio data, and then the bluetooth audio is played after operations such as decoding the bluetooth audio data.
In the traditional mode of receiving the Bluetooth audio, all Bluetooth broadcasts in a field need to be scanned through a frequency hopping technology, and periodic broadcast synchronization can be established only after specified broadcast source equipment is selected from a Bluetooth broadcast list.
In summary, 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 according to the synchronization auxiliary information, and it is not necessary to scan and identify all broadcast source devices in the field in a multiple frequency hopping manner, so that the time for scanning bluetooth broadcast is reduced, and the operation power consumption of the bluetooth module is also reduced; after the terminal acquires the periodic synchronization information of the target broadcast source device, BIS synchronization can be directly performed according to the periodic synchronization information without manual selection from a list by a user, so that operation steps are simplified, and operation efficiency is improved.
Fig. 3 is a flowchart of a method for receiving bluetooth audio according to another exemplary embodiment of the present application, and this embodiment is described by taking the method as an example for the terminal shown in fig. 1. The method comprises the following steps:
step 301, obtaining synchronization auxiliary information of a target broadcast source device in an out-of-band manner, where the out-of-band manner includes at least one of graphic code scanning and NFC near field communication.
In the above embodiment, the terminal mainly obtains the synchronization auxiliary information of the target broadcast source device in advance, and specifically, the synchronization auxiliary information of the target broadcast source device may be obtained in an out-of-band manner, that is, the synchronization auxiliary information of the target broadcast device is obtained not by using a bluetooth protocol but by using image scanning or near field communication.
In a possible implementation manner, the terminal is provided with a camera assembly, the terminal can acquire the synchronous auxiliary information in a mode of scanning a graphic code, for example, a plurality of broadcast source devices are included in a simultaneous interpretation scene, different broadcast source devices are used for broadcasting bluetooth broadcasts of different languages in a field domain, corresponding two-dimensional codes are set for different broadcast source devices, and a user scans the two-dimensional codes of the corresponding languages according to actual needs to further acquire the synchronous auxiliary information of the target broadcast source device.
In another possible implementation, when the terminal and the broadcast source device are provided with NFC components at the same time, the terminal may be moved into a coverage area of a near-field signal, and receive the near-field signal of the target broadcast source device, where the near-field signal includes synchronization assistance information of the target broadcast source device.
In addition to acquiring the synchronization auxiliary information in an out-of-band manner, the synchronization auxiliary information of the target broadcast source device may be received according to the location information, and similarly, for example, in a simultaneous interpretation scenario, users in different location areas often need to receive bluetooth audios in different languages, so a UWB component may be set on the target broadcast source device, and the target broadcast source device is determined by receiving a UWB signal, and therefore, acquiring the synchronization auxiliary information may also be implemented through step 302 and step 303.
Step 302, based on the UWB signal received by the UWB component, determines the pointed device as the target broadcast source device.
When the terminal needs to acquire the synchronous auxiliary information of the target broadcast source equipment, the receiving direction of the UWB signals is adjusted to be the signal transmitting direction of the target broadcast source equipment, the UWB signals of the target broadcast source equipment can be conveniently received, because the field domain where the terminal is located may contain a plurality of broadcast source equipment, the angle threshold value for receiving the UWB signals can be further set, and when the terminal determines that the angle for receiving the UWB signals is smaller than the angle threshold value, the corresponding broadcast source equipment is determined to be the target broadcast source equipment needing to be synchronized.
Step 303, receiving the synchronization auxiliary information sent by the target broadcast source device.
The UWB signals received by the terminal are only used for determining the target broadcast source equipment, after the target broadcast source equipment is determined, the target broadcast source equipment sends the synchronous auxiliary information through the Bluetooth component, and the terminal receives the synchronous auxiliary information sent by the target broadcast source equipment through the Bluetooth component.
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 broadcast by the target broadcast source device.
The synchronous auxiliary information acquired by the terminal includes a target device address of the target broadcast device, in a general case, the device address of the broadcast source device may be set to various types, which may be specifically determined according to actual needs, and when the acquired target device address is a public device address or an analyzable private device address, the terminal may perform signal scanning according to the provided target device address to determine a target ADV _ EXT _ IND of the target broadcast source device.
The indication frame broadcasted by the broadcasting source equipment comprises a corresponding equipment address, after the terminal determines the type of the target equipment address, all broadcasting expansion indication frames ADV _ EXT _ IND in the field are scanned through the Bluetooth assembly, the equipment address in the ADV _ EXT _ IND is obtained, and then whether the equipment address is the target ADV _ EXT _ IND broadcasted by the target broadcasting source equipment is determined according to the equipment address.
The frame structure of ADV _ EXT _ IND is shown in fig. 4, where the frame structure includes a header and a payload, a PDU Type is used to identify a Type of broadcast, reserved For future, where the future is temporarily unused, and For subsequent reservation, chSel indicates that the device supports a frequency hopping algorithm, and then a corresponding value is set to 1, otherwise 0, txadd is set to indicate a Type of device address, rxAdd is generally used For directional broadcast and specifies an address Type of a receiving device, length indicates a data Length of a following payload, and a payload field includes data carried by bluetooth broadcast and a device address.
Since the bluetooth protocol divides the 2.4GHz band into 40 physical channels, ADV _ EXT _ IND is sent through the 37 th, 38 th or 39 th channels, but after the broadcast source device sends ADV _ EXT _ IND through the designated channel, the terminal must keep the same channel to normally receive ADV _ EXT _ IND, and the indication frame sent by the broadcast source device may appear on different physical channels, the terminal needs to scan multiple physical channels by means of frequency hopping, acquire device addresses in multiple candidate ADV _ EXT _ IND, and further determine the target ADV _ EXT _ IND of the target broadcast source device. In addition, in most cases, address encryption is often used to ensure the security of data transmission from the broadcast source device, and in such cases, the terminal cannot connect even when it scans the bluetooth broadcast. As shown in fig. 5, the following steps can be specifically divided for different types of device addresses.
Step 304A, in response to the target device address being the public device address, receiving the candidate ADV _ EXT _ IND broadcasted by the candidate broadcast source device.
When the address of the target equipment is the public equipment address, the equipment address of the target broadcast source equipment is fixed, the equipment address of the target broadcast source equipment is mainly used in public places, and periodic broadcast synchronization can be carried out at any time under the condition that other equipment knows the public equipment address. When the terminal turns on the bluetooth broadcast scanning switch, the terminal scans candidate ADV _ EXT _ IND of all broadcast source devices in the field and extracts device addresses in the candidate ADV _ EXT _ IND. Optionally, the candidate ADV _ EXT _ IND may include a plurality of different types of device addresses, and the terminal may determine the address type of the scanned candidate ADV _ EXT _ IND according to TxAdd, and further extract a common device address, so as to perform address matching subsequently.
Step 304B, in response to the device address contained in the candidate ADV _ EXT _ IND matching the target device address, determines the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
After the terminal acquires the device addresses contained in the candidate ADV _ EXT _ IND, matching the target device address with the device addresses in the candidate ADV _ EXT _ IND, if the two addresses are different, determining that the currently scanned candidate ADV _ EXT _ IND is not transmitted by the target broadcast source device, continuing scanning, if the two addresses are the same, determining that the currently scanned candidate ADV _ EXT _ IND is transmitted by the target broadcast source device, determining that the candidate ADV _ EXT _ IND is the target ADV _ EXT _ IND, and determining that the corresponding Bluetooth broadcast is the target broadcast needing periodic synchronization.
The target device address is a public device address, but in most scenes, the public device address may have address conflict and the public address is not high in safety, in order to improve safety and avoid address conflict, the target device address can be set as an analyzable private device address, the analyzable private address has a certain updating trigger mechanism, the broadcast source device can update the device address after a preset time is reached, and then broadcast Bluetooth audio data is continuously carried out, the private device address can be resolved so as to prevent a malicious third-party device from tracking the broadcast source device, and meanwhile, one or more trusted devices are still allowed to identify the broadcast source device. The matching process for the resolvable private device address may include the following steps.
Step 304C, in response to the target device address being the resolvable private device address, receiving a candidate ADV _ EXT _ IND broadcasted by the candidate broadcast source device, where the candidate ADV _ EXT _ IND includes a random number and a first hash value.
When the target device address is an analyzable private device address, the obtained synchronization auxiliary information also needs to include an Identity Resolution Key (IRK), and the candidate ADV _ EXT _ IND received by the terminal includes a random number and a first hash value (hash), which together form the analyzable private device address.
Fig. 6 is a data structure of the resolvable private device address, the resolvable private device address has a length of 48 bits, the first hash value and the random number have 24 bits per station, wherein the highest two bits of the random number must be "01", at least one bit of the random number part must be 0, and at least one bit of the random number part must be 1. The highest two bits are used for identifying the address type, wherein the random number is updated after reaching the preset time, and the first hash value is calculated according to the random number, which is specifically shown in step 304D.
And step 304D, carrying out hash operation on the IRK and the random number to obtain a second hash value.
After acquiring the random number and the first hash value contained in the candidate ADV _ EXT _ IND, the terminal calculates a second hash value according to the random number and the IRK, and may specifically obtain the second hash value through hash operation.
hash=ah(IRK,prand)
The target broadcast source equipment and the terminal adopt the same hash operation, ah represents a hash operation function, prand represents a random number, after the terminal obtains the random number, a second hash value is obtained through the hash operation, and the operation mode is also adopted when the target broadcast source equipment updates the address of the target equipment in the follow-up process. And under the condition that the terminal does not acquire the IRK of the target broadcast source device, the device address cannot be analyzed, and the Bluetooth audio data cannot be received.
Step 304E, in response to the second hash value matching the first hash value, determines the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
And after the terminal calculates a second hash value, comparing the second hash value with a first hash value specified in the candidate ADV _ EXT _ IND, when the first hash value is the same as the second hash value, determining the candidate ADV _ EXT _ IND as target broadcasting source equipment for transmission, determining the candidate ADV _ EXT _ IND as target ADV _ EXT _ IND, and determining the corresponding Bluetooth broadcasting as target broadcasting needing periodic synchronization. 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.
And 305, 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 above embodiment says that multiple indication frames need to be acquired when receiving bluetooth audio data, and after determining a target ADV _ EXT _ IND, the target AUX _ ADV _ IND needs to be received according to first indication information of the target AUX _ ADV _ IND included in the target ADV _ EXT _ IND, where the first indication information includes a broadcast channel and offset time of the target AUX _ ADV _ IND.
The target ADV _ EXT _ IND is broadcast via channels 37, 38, and 39, and the target AUX _ ADV _ IND is broadcast via channels other than channels 37, 38, and 39, so the target ADV _ EXT _ IND needs to carry a broadcast channel with the target AUX _ ADV _ IND followed for the terminal to frequency hop, i.e. tune to the same physical channel as the target broadcast source device to receive the target AUX _ ADV _ IND. The offset time is used for indicating a time interval between a broadcast target ADV _ EXT _ IND and a target ADV _ EXT _ IND, the receiver can be closed after the terminal receives the target ADV _ EXT _ IND, and the receiver is opened again to receive the target ADV _ EXT _ IND after the offset time is reached. For example, if the broadcast channel through which the terminal acquires the target AUX _ ADV _ IND from the target ADV _ EXT _ IND is the 17 th channel and the offset time is 10ms, the terminal may temporarily turn off the receiver, and adjust the receiving channel to the 17 th channel and receive the target AUX _ ADV _ IND after the offset time is reached.
Step 306, receiving the target auxiliary synchronization indication frame 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.
Similar to the target ADV _ EXT _ IND, the target AUX _ ADV _ IND includes second indication information of the target AUX _ SYNC _ IND, and a frame structure of the target AUX _ ADV _ IND is as shown in fig. 7, and a payload of the frame structure includes three fields, which are broadcast data, ADI, and AUX Ptr, respectively, where the AUX Ptr field carries second indication information used for indicating a time, a channel, a physical layer, and the like of the target AUX _ SYNC _ IND.
When the terminal receives the target AUX _ ADV _ IND, it also needs to acquire a broadcast channel and offset time related to the target AUX _ SYNC _ IND in the target AUX _ ADV _ IND, so that the terminal can adjust a receiving channel and timely receive the target AUX _ SYNC _ IND. The target AUX _ SYNC _ IND includes periodic broadcast synchronization information including, but not limited to, information such as encoder settings, audio positioning, program information, rating, and broadcast period.
The frame structure of the target AUX _ SYNC _ IND is as shown in fig. 8, and includes three fields, ADI, periodic broadcast synchronization information, and broadcast data, in the payload of the frame structure.
Taking program information as an example, it can be represented by a Length-Type-Value (LTV) manner, as shown in table 1:
TABLE 1 program information
Parameter(s) Size (byte) Value of
Length of 1 N+1
Types of 1 0x05
Value of N Title and/or abstract
The parameters respectively related to the information such as the encoder setting, the audio positioning, the program information, the rating, and the like may be set according to actual needs, or may be set according to a protocol standard of bluetooth broadcast, and the above parameters are only an exemplary example and do not limit the present application.
The above embodiments describe matching public device addresses with resolvable private device addresses. When the terminal acquires that the target equipment address of the target broadcast source equipment is the unresolvable private equipment address, the equipment addresses cannot be directly compared, or operation and matching cannot be performed through the IRK. At this time, the broadcast flag included in the AUX _ ADV _ IND may be matched, which specifically includes the following steps.
Step 307, in response to the target device address being the unresolvable private device address, receiving candidate AUX _ ADV _ IND broadcasted by each candidate broadcast source device based on candidate ADV _ EXT _ IND broadcasted by each candidate broadcast source device.
The unresolvable private device address is also updated regularly, but the device address does not contain the hash value, and the random number part is generated randomly, so that the method is higher in security. As shown in fig. 9, the highest two bits of the unresolvable private device address are "00" for indicating the address type, at least one bit of the random number in the remaining part is 0, at least one bit is 1, and the unresolvable private device address cannot be the same as the public address.
When the terminal determines that the target device address is the unresolvable private device address, the terminal cannot determine the target broadcast source device through the candidate ADV _ EXT _ IND, but performs matching through the broadcast identifier, and correspondingly, the synchronization auxiliary information acquired by the terminal includes the target broadcast identifier of the target broadcast source device, so that the terminal needs to receive the candidate ADV _ EXT _ IND broadcasted by each candidate broadcast source device first, and then receives each candidate AUX _ ADV _ IND according to the third indication information of the candidate AUX _ ADV _ IND included in the candidate ADV _ EXT _ IND.
In step 308, a target AUX _ ADV _ IND is determined based on the target broadcast identification candidates AUX _ ADV _ IND, and the broadcast identification contained in the target AUX _ ADV _ IND matches the target broadcast identification.
Referring to fig. 7, the frame structure of the candidate AUX _ ADV _ IND may be obtained from an ADI, where the 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, the corresponding broadcast identifier is matched with the target broadcast identifier, and 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 to be the target AUX _ ADV _ IND.
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.
Step 306 may be referred to in the implementation of this step, which is not described herein again.
And 310, synchronizing the broadcasting isochronous data stream BIS with the target broadcasting source device based on the periodic broadcasting synchronization information, and receiving Bluetooth audio data broadcasted by the target broadcasting source device.
Step 203 may be referred to in the implementation manner of this step, and this embodiment is not described herein again.
To sum up, in the embodiment of the present application, the terminal may acquire the synchronization auxiliary information of the target broadcast source device in an out-of-band manner, for example, by scanning a graphic code or by using an NFC component in advance;
in the process of carrying out periodic broadcast synchronization with target broadcast source equipment, firstly, determining a specific mode for acquiring periodic broadcast synchronization information according to a target equipment address of the target broadcast source equipment, and when the target equipment address is a public equipment address, matching the target equipment address with an equipment address in candidate ADV _ EXT _ IND to further determine target ADV _ EXT _ IND; when the target equipment address is an analyzable private equipment address, determining a target ADV _ EXT _ IND according to the random number and a first hash value contained in the obtained IRK and the candidate ADV _ EXT _ IND, and then receiving a target AUX _ ADV _ IND through the target ADV _ EXT _ IND;
when the target equipment address is an unresolvable private equipment address, the target ADV _ EXT _ IND cannot be directly determined, but a candidate ADV _ EXT _ IND needs to be obtained first, the candidate AUX _ ADV _ IND is received according to the candidate ADV _ EXT _ IND, and a specified broadcast identifier in the candidate AUX _ ADV _ IND is matched with the target broadcast identifier to determine the target AUX _ ADV _ IND;
further, after the target AUX _ ADV _ IND is determined, the target AUX _ SYNC _ IND is received according to the target AUX _ ADV _ IND, and the periodic broadcast synchronization information is acquired, so that BIS synchronization with the target broadcast source equipment is performed subsequently, and Bluetooth audio data is received.
Fig. 10 shows a flowchart of data transmission of bluetooth broadcast provided by an exemplary embodiment of the present application.
In the process of scanning the Bluetooth broadcast, the terminal acquires candidate ADV _ EXT _ IND in a field, if the address of target equipment in auxiliary synchronous broadcast information acquired by the terminal is an analyzable address or a public address, the target ADV _ EXT _ IND corresponding to target broadcast source equipment is determined in a first stage, and then the terminal receives target AUX _ EXT _ IND according to indication information indicated by the target ADV _ EXT _ IND in a second stage. Different from the previous way of scanning the bluetooth broadcast, the process can omit the scanning of other bluetooth broadcasts, and relatively speaking, the scanning time of the terminal can be shortened.
If the address of the target device acquired by the terminal is an unresolvable address or a public address, the synchronization auxiliary information further includes a broadcast identifier of the target broadcast source device, at this time, the terminal needs to acquire candidate ADV _ EXT _ IND of all bluetooth broadcasts, then acquires candidate AUX _ EXT _ IND according to the candidate ADV _ EXT _ IND, and further determines a target AUX _ EXT _ IND according to the broadcast identifier in the candidate AUX _ EXT _ IND, that is, the terminal needs to execute a first stage and a second stage on all bluetooth broadcasts.
After the terminal determines the target AUX _ EXT _ IND, the third stage acquires the target AUX _ SYNC _ IND and the periodic broadcast synchronization information, the third stage only aims at the Bluetooth broadcast of the target broadcast source equipment, and the third stage operation cannot be executed on other broadcast source equipment due to the scanning filtering strategy.
In the above embodiment, the terminal implements BIS synchronization with the target source broadcasting device based on the acquired synchronization auxiliary information, and when the terminal does not have an audio playing function or a user needs to play bluetooth audio data through other audio playing devices, the terminal further sends the acquired synchronization auxiliary information to the audio playing device, and the audio playing device receives an audio data packet.
Fig. 11 is a flowchart of a method for receiving bluetooth audio according to another exemplary embodiment of the present application.
Step 1101, the target broadcast source device performs bluetooth audio broadcasting.
Step 1102, the terminal acquires synchronization auxiliary information.
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.
Step 1103, the terminal acquires the periodic broadcast synchronization information of the target broadcast source device.
In step 1104, the periodically broadcasted synchronization information and the synchronization assistance information are received.
In a possible implementation manner, the terminal does not acquire the synchronization auxiliary information or the user does not desire to play the bluetooth audio broadcast through the terminal, but the terminal establishes a communication connection with the bluetooth audio playing device through the bluetooth component, and at this time, the terminal may send the acquired periodic broadcast synchronization information and the synchronization auxiliary information to the bluetooth audio playing device through the ACL link. Wherein, bluetooth audio playback equipment can be wearable equipment, like intelligent wrist-watch, intelligent eye glasses, in addition, bluetooth audio playback equipment can also be equipment such as bluetooth headset. The battery capacity of wearable equipment is limited, if directly scan the bluetooth broadcast, can additionally increase the operation consumption, through the mode that acquires from the terminal, can reduce the operation consumption of wearable equipment, reaches the purpose of power saving.
Step 1105, pa synchronization and BIS synchronization.
When the Bluetooth audio playing device acquires the periodic broadcast synchronous information and the synchronous auxiliary information, PA synchronization and BIS synchronization are carried out with the target broadcast source device.
Step 1106, receiving bluetooth audio data.
And after the Bluetooth audio playing equipment receives the Bluetooth audio data, playing the corresponding Bluetooth audio.
In the embodiment of the application, the synchronous auxiliary information of the target broadcast source equipment is obtained through the terminal, periodic broadcast synchronization is further carried out on the synchronous auxiliary information and the target broadcast source equipment, and after the periodic broadcast synchronization information of the target broadcast source and the equipment is obtained, the synchronous auxiliary information and the periodic broadcast synchronization information are sent to the Bluetooth audio playing equipment, so that the running power consumption of the audio playing equipment is reduced.
Referring to fig. 12, a block diagram of a receiving apparatus for bluetooth audio according to an embodiment of the present application is shown. The device includes:
a first obtaining module 1201, configured to obtain synchronous auxiliary information of a target broadcast source device, where the target broadcast source device is configured to perform bluetooth audio broadcasting;
a second obtaining module 1202, configured to perform PA synchronization on periodic broadcast with the target broadcast source device based on the synchronization auxiliary information, and obtain periodic broadcast synchronization information of the target broadcast source device;
an audio receiving module 1203, configured 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.
Optionally, the first obtaining module 1201 includes:
a first obtaining unit, configured to obtain the synchronization auxiliary information of the target broadcast source device in an out-of-band manner, where the out-of-band manner includes at least one of graphics code scanning and NFC near field communication;
or the like, or, alternatively,
a second acquisition unit, configured to determine, based on a UWB signal received by the ultra-wideband UWB component, a pointed device as the target broadcast source device; and receiving the synchronous auxiliary information sent by the target broadcast source equipment.
Optionally, the synchronization auxiliary information includes a target device address of the target broadcast source device;
the second obtaining module 1202 includes:
a first determining unit, configured to determine, in response to the target device address being a public device address or a resolvable private device address, a target broadcast extension indication frame ADV _ EXT _ IND broadcast by the target broadcast source device;
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;
a second receiving unit, configured to receive, based on the target AUX _ ADV _ IND, a target auxiliary synchronization indication frame AUX _ SYNC _ IND broadcasted by the target broadcast source device, and obtain the periodic broadcast synchronization information of the target AUX _ SYNC _ IND.
Optionally, the target device address is a public device address;
the first determining unit is further configured to:
receiving candidate ADV _ EXT _ IND broadcasted by candidate broadcasting source equipment;
in response to a device address contained in the candidate ADV _ EXT _ IND matching the target device address, determining the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
Optionally, the destination device address is an analyzable private device address, and the synchronization auxiliary information further includes an identity resolution key IRK;
the first determining unit is further configured to:
receiving candidate ADV _ EXT _ IND broadcasted by candidate broadcasting source equipment, wherein the candidate ADV _ EXT _ IND comprises a random number and a first hash value;
performing 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, determining the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
Optionally, the second obtaining module 1202 further includes:
a third receiving unit, configured to receive, in response to that the target device address is an unresolvable private device address, candidate AUX _ ADV _ IND broadcasted by each candidate broadcast source device based on candidate ADV _ EXT _ IND broadcasted by each candidate broadcast source device;
a second determining unit, configured to determine a target AUX _ ADV _ IND from the candidate AUX _ ADV _ IND based on the target broadcast identifier, where a broadcast identifier included in the target AUX _ ADV _ IND matches the target broadcast identifier;
a fourth receiving unit, configured to receive a target AUX _ SYNC _ IND broadcasted by the target broadcast source device based on the target AUX _ ADV _ IND, and obtain the periodic broadcast synchronization information of the target AUX _ SYNC _ IND.
Optionally, the apparatus further comprises:
and the sending module is used for sending the periodic broadcast synchronization information and the synchronization auxiliary information to a Bluetooth audio playing device through an ACL link so as to receive the Bluetooth audio data broadcasted by the target broadcast source device after the Bluetooth audio playing device and the target broadcast source device perform PA synchronization and BIS synchronization.
Fig. 13 shows a block diagram of a terminal according to 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, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
Processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1301 may be implemented in at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the greeting card method provided by method embodiments herein.
In this embodiment, the terminal 1300 may further include a bluetooth component 1303 configured to scan bluetooth broadcasts, and mainly includes a receiver, a transmitter, a memory, and other related devices, where the bluetooth component 1303 is configured to receive the bluetooth broadcasts, and optionally, may further establish bluetooth communication with a bluetooth audio playing device, and the like. The bluetooth component 1303 may be integrated inside the terminal 1300, or may be disposed in an external device, which is not limited in this embodiment.
In this embodiment, 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. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1304 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
In this embodiment, the terminal 1300 may further include a speaker module 1305, configured to convert bluetooth audio data received by the bluetooth module 1303 into an audio signal, where the speaker may be a conventional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the terminal may also be provided with a headset jack for listening to bluetooth audio via a wired headset connection.
In this embodiment, the terminal 1300 may further include an NFC component 1306, which is configured to receive an NFC signal transmitted by the target broadcast source device, where the NFC signal includes synchronization assistance information.
In the embodiment of the present application, the terminal 1300 may further include a UWB component 1307 for determining the device pointed correspondingly as the target broadcasting source device, and further acquiring the synchronization auxiliary information through the bluetooth component 1303.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting of terminal 1300, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The application provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the method for receiving bluetooth audio provided by the above method embodiments.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the method for receiving bluetooth audio in any of the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application.

Claims (10)

1. A method for receiving bluetooth audio, the method comprising:
acquiring synchronous auxiliary information of target broadcast source equipment, wherein the target broadcast source equipment is used for carrying out Bluetooth audio broadcasting;
performing periodic broadcast PA synchronization with the target broadcast source equipment based on the synchronization auxiliary information to acquire periodic broadcast synchronization information of the target broadcast source equipment;
and performing broadcasting isochronous data stream BIS synchronization with the target broadcasting source equipment based on the periodic broadcasting synchronization information, and receiving Bluetooth audio data broadcasted by the target broadcasting source equipment.
2. The method of claim 1, wherein the obtaining synchronization assistance information of a target broadcast source device comprises:
acquiring the synchronous auxiliary information of the target broadcast source equipment in an out-of-band mode, wherein the out-of-band mode comprises at least one of graphic code scanning and NFC (near field communication);
or the like, or, alternatively,
determining the pointed device as the target broadcast source device based on the UWB signals received by the UWB component; and receiving the synchronous auxiliary information sent by the target broadcast source equipment.
3. The method of claim 1, wherein the synchronization assistance information includes a target device address of the target broadcast source device;
the performing, based on the synchronization auxiliary information, PA synchronization with the target broadcast source device to obtain 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;
and receiving a target auxiliary synchronization indication frame AUX _ SYNC _ IND broadcasted by the target broadcast source equipment based on the target AUX _ ADV _ IND, and acquiring the periodic broadcast synchronization information of the target AUX _ SYNC _ IND.
4. The method of claim 3, wherein the target device address is a public device address;
the determining the target ADV _ EXT _ IND broadcasted by the target broadcast source device includes:
receiving candidate ADV _ EXT _ IND broadcasted by candidate broadcasting source equipment;
in response to a device address contained in the candidate ADV _ EXT _ IND matching the target device address, determining the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
5. The method according to claim 3, wherein the destination device address is a resolvable private device address, and the synchronization assistance information further comprises an Identity Resolution Key (IRK);
the determining the target ADV _ EXT _ IND broadcasted by the target broadcast source device includes:
receiving candidate ADV _ EXT _ IND broadcasted by candidate broadcasting source equipment, wherein the candidate ADV _ EXT _ IND comprises a random number and a first hash value;
performing 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, determining the candidate ADV _ EXT _ IND as the target ADV _ EXT _ IND.
6. The method of claim 3, wherein the synchronization assistance information includes a target broadcast identifier of the target broadcast source device;
the performing, based on the synchronization auxiliary information, PA synchronization with the target broadcast source device to obtain periodic broadcast synchronization information of the target broadcast source device includes:
receiving candidate AUX _ ADV _ IND broadcasted by each candidate broadcast source device based on candidate ADV _ EXT _ IND broadcasted by each candidate broadcast source device in response to the target device address being an unresolvable private device address;
determining a target AUX _ ADV _ IND from the candidate AUX _ ADV _ INDs based on the target broadcast identification, wherein the broadcast identification contained in the target AUX _ ADV _ IND is matched with the target broadcast identification;
and receiving a target AUX _ SYNC _ IND broadcasted by the target broadcast source equipment based on the target AUX _ ADV _ IND, and acquiring the periodic broadcast synchronization information of the target AUX _ SYNC _ IND.
7. The method according to any one of claims 1 to 6, wherein after the periodic broadcast PA synchronization with the target broadcast source device based on the synchronization auxiliary information is obtained, the method further comprises:
and sending the periodic broadcast synchronization information and the synchronization auxiliary information to Bluetooth audio playing equipment through an ACL link so as to receive the Bluetooth audio data broadcasted by the target broadcast source equipment after the Bluetooth audio playing equipment and the target broadcast source equipment perform PA synchronization and BIS synchronization.
8. An apparatus for receiving bluetooth audio, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring synchronous auxiliary information of target broadcast source equipment, and the target broadcast source equipment is used for carrying out Bluetooth audio broadcasting;
a second obtaining module, configured to perform PA synchronization on periodic broadcast with the target broadcast source device based on the synchronization auxiliary information, and obtain periodic broadcast synchronization information of the target broadcast source device;
and the audio receiving module is used for carrying out broadcasting isochronous data stream BIS synchronization with the target broadcasting source equipment based on the periodic broadcasting synchronization information and receiving Bluetooth audio data broadcasted by the target broadcasting source equipment.
9. A terminal, characterized in that the terminal comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by the processor to implement the method of receiving bluetooth audio according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of receiving bluetooth audio as claimed in any one of claims 1 to 7.
CN202110949568.8A 2021-08-18 2021-08-18 Bluetooth audio receiving method, device, terminal and storage medium Pending CN115708373A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110949568.8A CN115708373A (en) 2021-08-18 2021-08-18 Bluetooth audio receiving method, device, terminal and storage medium
PCT/CN2022/112530 WO2023020439A1 (en) 2021-08-18 2022-08-15 Bluetooth audio receiving method and apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110949568.8A CN115708373A (en) 2021-08-18 2021-08-18 Bluetooth audio receiving method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115708373A true CN115708373A (en) 2023-02-21

Family

ID=85212451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110949568.8A Pending CN115708373A (en) 2021-08-18 2021-08-18 Bluetooth audio receiving method, device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN115708373A (en)
WO (1) WO2023020439A1 (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090057846A (en) * 2007-12-03 2009-06-08 엘지전자 주식회사 Apparatus and method for broadcasting on mobile terminal
CN103888177A (en) * 2014-02-25 2014-06-25 南京邮电大学 Method for quickly establishing Bluetooth connection
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN105766010A (en) * 2013-09-27 2016-07-13 皇家Kpn公司 Public safety system
US20170374533A1 (en) * 2016-06-22 2017-12-28 Qualcomm Incorporated Systems and methods for back channel communication
CN108494610A (en) * 2018-05-23 2018-09-04 南京邮电大学 Low-power consumption bluetooth IPv6 address automatic distributing methods based on 6LoBLE
CN108702720A (en) * 2016-02-24 2018-10-23 高通股份有限公司 Source device broadcasts synchronizing information associated with bluetooth equal ratio channel
TWI666889B (en) * 2018-05-18 2019-07-21 瑞昱半導體股份有限公司 Bluetooth communication system and related transmitting-end bluetooth device and receiving-end bluetooth device
US20190373653A1 (en) * 2017-01-23 2019-12-05 Lg Electronics Inc. Bluetooth communication method and apparatus
US20200084697A1 (en) * 2018-09-11 2020-03-12 Qualcomm Incorporated Broadcast isochronous relay over esco
CN111343622A (en) * 2020-03-02 2020-06-26 北京服装学院 Bluetooth sound box synchronous playing method, device and system
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium
GB202013320D0 (en) * 2020-08-26 2020-10-07 Ma Qingping Geoffrey Method to connect bluetooth slaves to a bluetooth broadcaster with NFC
US20200396584A1 (en) * 2018-02-20 2020-12-17 Lg Electronics Inc. Method for wireless connection in wireless lan system and wireless device using same
KR102223408B1 (en) * 2020-09-28 2021-03-05 아주대학교산학협력단 Method to set bluetooth low energy parameter
CN112636901A (en) * 2020-12-17 2021-04-09 拉扎斯网络科技(上海)有限公司 Identity recognition method and device, storage medium and electronic equipment
CN112789867A (en) * 2018-11-30 2021-05-11 华为技术有限公司 Bluetooth connection method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10440491B2 (en) * 2015-11-17 2019-10-08 Caavo Inc Multi-channel audio over a wireless network
US10945101B2 (en) * 2018-11-02 2021-03-09 Zgmicro Nanjing Ltd. Method, device and system for audio data communication
CN112449328B (en) * 2019-08-30 2023-08-22 华为技术有限公司 Bluetooth searching method, system and related device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090057846A (en) * 2007-12-03 2009-06-08 엘지전자 주식회사 Apparatus and method for broadcasting on mobile terminal
CN105766010A (en) * 2013-09-27 2016-07-13 皇家Kpn公司 Public safety system
CN103888177A (en) * 2014-02-25 2014-06-25 南京邮电大学 Method for quickly establishing Bluetooth connection
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN108702720A (en) * 2016-02-24 2018-10-23 高通股份有限公司 Source device broadcasts synchronizing information associated with bluetooth equal ratio channel
US20170374533A1 (en) * 2016-06-22 2017-12-28 Qualcomm Incorporated Systems and methods for back channel communication
CN109565365A (en) * 2016-06-22 2019-04-02 高通股份有限公司 System and method for reverse channel communications
US20190373653A1 (en) * 2017-01-23 2019-12-05 Lg Electronics Inc. Bluetooth communication method and apparatus
US20200396584A1 (en) * 2018-02-20 2020-12-17 Lg Electronics Inc. Method for wireless connection in wireless lan system and wireless device using same
TWI666889B (en) * 2018-05-18 2019-07-21 瑞昱半導體股份有限公司 Bluetooth communication system and related transmitting-end bluetooth device and receiving-end bluetooth device
CN108494610A (en) * 2018-05-23 2018-09-04 南京邮电大学 Low-power consumption bluetooth IPv6 address automatic distributing methods based on 6LoBLE
US20200084697A1 (en) * 2018-09-11 2020-03-12 Qualcomm Incorporated Broadcast isochronous relay over esco
CN112789867A (en) * 2018-11-30 2021-05-11 华为技术有限公司 Bluetooth connection method and device
CN111343622A (en) * 2020-03-02 2020-06-26 北京服装学院 Bluetooth sound box synchronous playing method, device and system
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium
GB202013320D0 (en) * 2020-08-26 2020-10-07 Ma Qingping Geoffrey Method to connect bluetooth slaves to a bluetooth broadcaster with NFC
KR102223408B1 (en) * 2020-09-28 2021-03-05 아주대학교산학협력단 Method to set bluetooth low energy parameter
CN112636901A (en) * 2020-12-17 2021-04-09 拉扎斯网络科技(上海)有限公司 Identity recognition method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2023020439A1 (en) 2023-02-23

Similar Documents

Publication Publication Date Title
CN114009055B (en) Screen-throwing display method and electronic equipment
US11818420B2 (en) Cross-device content projection method and electronic device
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
CN112714214A (en) Content connection method and electronic equipment
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
CN111726678A (en) Method for continuously playing multimedia content between devices
WO2022148319A1 (en) Video switching method and apparatus, storage medium, and device
CN114697732A (en) Shooting method, system and electronic equipment
JP2022050516A (en) Terminal, voice cooperation and reproduction system, and content display device
CN110572799A (en) Method and equipment for simultaneous response
CN114499587A (en) Audio synchronization communication method and system and electronic equipment
CN112449336B (en) Equipment capability discovery method and P2P equipment
CN115708373A (en) Bluetooth audio receiving method, device, terminal and storage medium
CN115119214B (en) Stereo networking method, system and related device
US11669295B2 (en) Multiple output control based on user input
WO2023045687A1 (en) Screen projection method, device and system
CN114285737B (en) Method and device for configuring device
CN114980238B (en) Wi-Fi access method and related equipment
CN114173317B (en) Method for transmitting data and electronic equipment
US20230300928A1 (en) Wireless communication method and apparatus, and storage medium
CN116981108B (en) Wireless screen-throwing connection method, mobile terminal and computer readable storage medium
WO2024104173A1 (en) Wireless communication method, storage medium, and terminal device
WO2023071730A1 (en) Voiceprint registration method and electronic devices
CN117729287A (en) Audio sharing method and device and storage medium
CN117193897A (en) Cross-terminal screen interaction method and device, terminal equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination