Audio signal broadcasting and receiving method, device, system, equipment and medium

By scanning and parsing broadcast messages in a preset format, the first electronic device switches to a one-to-many mode, using periodic broadcasts and a one-to-one connection link to achieve efficient sharing of audio signals. This solves the problem of low audio signal sharing efficiency in Bluetooth audio technology and ensures the accuracy and timeliness of synchronous playback across multiple devices.

CN121645151APending Publication Date: 2026-03-10ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411261276.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2026-03-10

Smart Images

  • Figure CN121645151A_ABST
    Figure CN121645151A_ABST
Patent Text Reader

Abstract

The invention discloses an audio signal broadcasting and receiving method, device, system, equipment and medium, which are used for more quickly and conveniently sharing audio signals to more audio signal receiving equipment by audio signal broadcasting equipment. According to the audio signal broadcasting method provided by the invention, in the one-to-one audio signal transmission process of the first electronic equipment and the second electronic equipment, the broadcast message in the preset format is scanned; when the broadcast message in the preset format sent by the third electronic equipment is scanned, analyzing the content in the broadcast message in the preset format; when the broadcast message in the preset format sent by the third electronic equipment carries indication information for requesting to enter the audio sharing mode, and it is determined that the first electronic equipment meets the preset condition for entering the audio sharing mode, the first electronic equipment is made to enter the one-to-many audio sharing mode; a one-to-many audio sharing mode is adopted, and audio signals are broadcasted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless signal transmission technology, and in particular to an audio signal broadcasting and receiving method, apparatus, system, device and medium. Background Technology

[0002] To meet users' needs for Bluetooth audio, the Bluetooth Special Interest Group (SIG) introduced LE Audio (Low Energy Audio) technology, which brings new audio experience features. Among them, the broadcast audio technology can broadcast audio so that other devices that support this function can receive the audio, thus achieving audio sharing. Summary of the Invention

[0003] This application provides an audio signal broadcasting and receiving method, apparatus, system, device, and medium to enable an audio signal broadcasting device to automatically switch from a one-to-one audio signal transmission mode to a one-to-many audio signal broadcasting mode, thereby enabling the audio signal broadcasting device to share audio signals with more audio signal receiving devices more quickly and conveniently.

[0004] At the transmitting end, an audio signal broadcasting method provided in this application includes:

[0005] During the one-to-one audio signal transmission between the first electronic device and the second electronic device, a broadcast message of a preset format is scanned, wherein the broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device.

[0006] When a broadcast message of the preset format sent by the third electronic device is detected, the content of the broadcast message of the preset format is parsed.

[0007] When the third electronic device sends a broadcast message in a preset format that carries an indication requesting to enter the audio sharing mode, and determines that the first electronic device meets the preset conditions for entering the audio sharing mode, the first electronic device is switched to a one-to-many audio sharing mode.

[0008] The audio signal is broadcast using the one-to-many audio sharing mode.

[0009] The audio signal broadcasting method provided in this application scans for broadcast messages of a preset format during the one-to-one audio signal transmission between the first and second electronic devices. When a broadcast message of the preset format sent by the third electronic device is detected, the content of the broadcast message is parsed. Therefore, when the broadcast message of the preset format sent by the third electronic device carries an indication requesting entry into an audio sharing mode, and it is determined that the first electronic device meets the preset conditions for entering the audio sharing mode, the first electronic device can be automatically switched to a one-to-many audio sharing mode. The audio signal is then broadcast using this one-to-many audio sharing mode. This allows the audio signal broadcasting device to automatically switch from a one-to-one audio signal transmission mode to a one-to-many audio signal broadcasting mode, thereby enabling the audio signal broadcasting device to share audio signals with more audio signal receiving devices more quickly and conveniently.

[0010] In some embodiments, the first electronic device and the second electronic device perform a one-to-one audio signal transmission, including:

[0011] Establish a one-to-one connection link between the first electronic device and the second electronic device;

[0012] An extended broadcast is created, and a periodic broadcast is created based on the extended broadcast; wherein the periodic broadcast includes information about a broadcast isochronous group that the first electronic device will send, the broadcast isochronous group information being used to instruct the second electronic device to receive the broadcast isochronous group sent by the first electronic device, and the broadcast isochronous group being used to transmit audio signals;

[0013] When the periodic broadcast runs successfully, disable the extended broadcast;

[0014] The synchronization information of the periodic broadcast is sent to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device;

[0015] Based on the information of the broadcast isochronous group, the broadcast isochronous group is created and transmitted, which carries an audio signal.

[0016] In some embodiments, after the first electronic device enters a one-to-many audio sharing mode, the method further includes:

[0017] Disconnect the one-to-one connection link between the first electronic device and the second electronic device.

[0018] In some embodiments, the preset conditions for entering the audio sharing mode include:

[0019] The first electronic device is currently in a one-to-one audio transmission mode; wherein, the one-to-one audio transmission mode refers to the mode in which the first electronic device and the second electronic device conduct one-to-one audio transmission.

[0020] Enable the audio sharing function of the first electronic device.

[0021] Accordingly, at the receiving end, an audio signal receiving method provided in this application embodiment includes:

[0022] When it is determined that an audio signal broadcast by the first electronic device needs to be received, a broadcast message in a preset format is sent; wherein, the broadcast message in the preset format is a broadcast message in a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries an indication message requesting to enter the audio sharing mode;

[0023] When an extended broadcast sent by the first electronic device is received, the synchronization information of the periodic broadcast sent by the first electronic device is obtained through the extended broadcast. Using the synchronization information of the periodic broadcast, the periodic broadcast sent by the first electronic device is received, and the information of the broadcast isochronous group sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device. The broadcast isochronous group is used to transmit audio signals. Based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0024] In some embodiments, the broadcast message in the preset format may also include indication information indicating that the local device cannot be connected to by other devices.

[0025] At the transmitting end, an audio signal broadcasting device provided in this application embodiment includes:

[0026] The broadcast message scanning unit is used to scan for broadcast messages of a preset format during the one-to-one audio signal transmission between the first electronic device and the second electronic device. The broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device.

[0027] The broadcast message parsing unit is used to parse the content of the broadcast message in the preset format when the broadcast message sent by the third electronic device is scanned.

[0028] The mode switching unit is used to switch the first electronic device to a one-to-many audio sharing mode when the third electronic device sends a broadcast message in a preset format that carries an indication message requesting to enter the audio sharing mode, and determines that the first electronic device meets the preset conditions for entering the audio sharing mode.

[0029] A broadcast unit is used to broadcast audio signals in the one-to-many audio sharing mode.

[0030] In some embodiments, the apparatus further includes:

[0031] A link establishment unit is used to establish a one-to-one connection link between the first electronic device and the second electronic device;

[0032] A broadcast creation unit is configured to create an extended broadcast and, based on the extended broadcast, create a periodic broadcast; wherein the periodic broadcast includes information about a broadcast isochronous group to be sent by the first electronic device, the information about the broadcast isochronous group being used to instruct the second electronic device to receive the broadcast isochronous group sent by the first electronic device, and the broadcast isochronous group being used to transmit audio signals;

[0033] An extended broadcast failure unit is used to fail the extended broadcast when the periodic broadcast is successfully running;

[0034] A synchronization information sending unit is used to send the periodic broadcast synchronization information to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device;

[0035] A broadcast isochronous group transmitting unit is used to create and transmit the broadcast isochronous group based on the information of the broadcast isochronous group, wherein the broadcast isochronous group carries an audio signal.

[0036] At the receiving end, an audio signal receiving device provided in this application embodiment includes:

[0037] A broadcast message sending unit is used to send a broadcast message of a preset format when it is determined that an audio signal broadcast by a first electronic device needs to be received; wherein, the broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message of the preset format carries indication information requesting to enter the audio sharing mode;

[0038] The broadcast audio receiving unit is configured to, when receiving an extended broadcast sent by the first electronic device, obtain synchronization information of a periodic broadcast sent by the first electronic device through the extended broadcast, receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and obtain information of a broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals; and receive the audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0039] This application provides an audio signal broadcasting system, comprising: a first electronic device, a second electronic device, and at least one third electronic device; wherein,

[0040] The first electronic device is configured to: scan for broadcast messages of a preset format during a one-to-one audio signal transmission between the first electronic device and the second electronic device, wherein the preset format broadcast message is a broadcast message of a format pre-agreed upon by the first electronic device and at least one third electronic device; when a broadcast message of the preset format sent by the third electronic device is detected, parse the content of the broadcast message of the preset format; when the broadcast message of the preset format sent by the third electronic device carries an indication information requesting entry into an audio sharing mode, and it is determined that the first electronic device meets the preset conditions for entering the audio sharing mode, instruct the first electronic device to enter a one-to-many audio sharing mode; and broadcast audio signals using the one-to-many audio sharing mode.

[0041] The third electronic device is configured to: when it is determined that it needs to receive audio signals broadcast by the first electronic device, send a broadcast message in a preset format; wherein the broadcast message in the preset format is a broadcast message in a format pre-agreed between the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries indication information requesting entry into audio sharing mode; when receiving an extended broadcast sent by the first electronic device, obtain synchronization information of the periodic broadcast sent by the first electronic device through the extended broadcast, receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and obtain information of the broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, the broadcast isochronous group being used to transmit audio signals; and receive the audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0042] In some embodiments, the second electronic device is configured to:

[0043] Establish a one-to-one connection link with the first electronic device; receive synchronization information of periodic broadcasts sent by the first electronic device through the one-to-one connection link; receive periodic broadcasts sent by the first electronic device using the synchronization information of the periodic broadcasts, and obtain information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcasts sent by the first electronic device; receive audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0044] Another embodiment of this application provides an electronic device including a memory and a processor, wherein the memory is used to store program instructions, and the processor is used to call the program instructions stored in the memory and execute any of the methods described above according to the obtained program.

[0045] Another embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for causing the computer to perform any of the methods described above. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 A schematic diagram of the overall flow of an audio signal broadcasting method provided by the transmitting end in an embodiment of this application;

[0048] Figure 2 A schematic diagram of the overall flow of another audio signal transmission method provided by the transmitter in this application embodiment;

[0049] Figure 3 A schematic diagram of the overall flow of an audio signal receiving method provided by the receiving end in an embodiment of this application;

[0050] Figure 4 A schematic diagram of the overall flow of another audio signal receiving method provided by the receiving end in the embodiments of this application;

[0051] Figure 5 This is a schematic flowchart illustrating a method for transmitting audio signals according to an embodiment of this application.

[0052] Figure 6 This application provides a schematic diagram of the structure of an audio signal broadcasting system according to an embodiment of the present application.

[0053] Figure 7 A schematic diagram of the overall structure of an electronic device provided in an embodiment of this application;

[0054] Figure 8 A schematic diagram of the structure of an audio signal broadcasting device for a transmitting end provided in an embodiment of this application;

[0055] Figure 9 A schematic diagram of another audio signal broadcasting device for the transmitting end provided in an embodiment of this application;

[0056] Figure 10 A schematic diagram of the structure of a third audio signal broadcasting device for a transmitting end provided in an embodiment of this application;

[0057] Figure 11 A schematic diagram of the structure of an audio signal receiving device provided in an embodiment of this application;

[0058] Figure 12 This is a schematic diagram of another audio signal receiving device provided in the embodiments of this application. Detailed Implementation

[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0060] This application provides an audio signal broadcasting and receiving method, apparatus, system, device, and medium to enable an audio signal broadcasting device to automatically switch from a one-to-one audio signal transmission mode to a one-to-many audio signal broadcasting mode, thereby enabling the audio signal broadcasting device to share audio signals with more audio signal receiving devices more quickly and conveniently.

[0061] The methods, apparatus, systems, devices, and media are based on the same concept of the application. Since the methods, apparatus, systems, devices, and media solve problems in similar principles, the implementation of the apparatus, devices, media, and methods can refer to each other, and repeated parts will not be described again.

[0062] The various embodiments of this application will now be described in detail with reference to the accompanying drawings. It should be noted that the order in which the embodiments are presented represents only a chronological order and does not indicate the superiority or inferiority of the technical solutions provided by the embodiments.

[0063] Example 1:

[0064] See Figure 1 At the transmitting end, that is, on the side of the first electronic device that serves as the audio signal transmitter, an audio signal broadcasting method provided in this application embodiment includes:

[0065] S101. During the one-to-one audio signal transmission between the first electronic device and the second electronic device, a broadcast message of a preset format is scanned.

[0066] The broadcast message in the preset format is a broadcast message in a format agreed upon in advance by the first electronic device and at least one third electronic device; the specific format can be determined according to actual needs, and is not limited in this embodiment.

[0067] It should be noted that both the second and third electronic devices serve as audio signal receiving devices. For the sake of distinction, the device in the one-to-one audio signal transmission mode is referred to as the second electronic device, and the device in the one-to-many audio signal transmission mode is referred to as the third electronic device. In fact, the second and third electronic devices can be the same type of device, that is, the first electronic device can use one-to-one or one-to-many working modes to transmit audio signals to the second and third electronic devices.

[0068] S102. When the broadcast message of the preset format sent by the third electronic device is detected, the content of the broadcast message of the preset format is parsed.

[0069] S103. When the third electronic device sends a broadcast message in a preset format that carries an indication message requesting to enter the audio sharing mode, and it is determined that the first electronic device meets the preset conditions for entering the audio sharing mode, the first electronic device is switched to a one-to-many audio sharing mode.

[0070] The preset conditions can be determined according to actual needs, and this application embodiment does not impose any restrictions. For example, the preset conditions for entering the audio sharing mode include:

[0071] The first electronic device is currently in a one-to-one audio transmission mode; wherein, the one-to-one audio transmission mode refers to the mode in which the first electronic device and the second electronic device conduct one-to-one audio transmission.

[0072] Enable the audio sharing function of the first electronic device, that is, the audio sharing function of the first electronic device is turned on. This function can be set by the user, for example.

[0073] S104. Using the one-to-many audio sharing mode, broadcast the audio signal.

[0074] In some embodiments, see Figure 2 The first electronic device and the second electronic device perform one-to-one audio signal transmission, that is, the one-to-one audio signal transmission method provided in this application embodiment includes:

[0075] S201. Establish a one-to-one connection link between the first electronic device and the second electronic device;

[0076] In this embodiment of the application, the first electronic device may be, for example, an audio signal transmitter, which can act as an audio broadcaster to broadcast audio signals one-to-one or one-to-many; the second electronic device may be, for example, an audio signal receiver, which can act as an audio receiver.

[0077] Of course, the first electronic device can also be used as an audio signal receiver, having an audio receiving function; the second electronic device can also be used as an audio signal transmitter, having an audio sending function, and can broadcast audio signals one-to-one or one-to-many.

[0078] Both the first electronic device and the second electronic device can be any type of electronic product with the aforementioned audio signal transmission function, such as mobile phones, computers, televisions, headphones, speakers, etc.

[0079] The first electronic device and the second electronic device can establish a one-to-one connection link through wired or wireless means (such as Bluetooth), thereby establishing a connection relationship and transmitting the required information one-to-one.

[0080] S202. Create an Extended Advertising (Ext Adv) and create a Periodic Advertising (PA) based on the Extended Advertising;

[0081] The periodic broadcast includes information (INFO) of the Broadcast Isochronous Group (BIG) to be sent by the first electronic device. The information of the broadcast isochronous group is used to instruct the second electronic device to receive the broadcast isochronous group sent by the first electronic device. The broadcast isochronous group is used to transmit audio signals.

[0082] The information of the broadcast isochronous group, such as the configuration parameters of the broadcast isochronous group, such as format and transmission period, enables the receiving end to receive the audio signal transmitted by the broadcast isochronous group based on this information.

[0083] S203. When the periodic broadcast is successfully executed, disable the extended broadcast;

[0084] For example, after the first packet of a periodic broadcast is sent normally, the extended broadcast is disabled;

[0085] It should be noted that when extended broadcast fails, the first electronic device will no longer broadcast the synchronization information of the periodic broadcast, but the periodic broadcast will still be broadcast normally. Therefore, once the first packet of the periodic broadcast is sent normally, the extended broadcast does not need to continue broadcasting, thereby preventing other devices from scanning the first electronic device.

[0086] In this embodiment of the application, the extended broadcast is disabled, for example, by turning off the extended broadcast or by changing the content in the extended broadcast, so that other devices besides the second electronic device cannot scan the first electronic device.

[0087] Disabling extended broadcasting can save bandwidth for broadcast audio.

[0088] The modification to the extended broadcast content can be implemented as follows: To prevent devices other than the first and second electronic devices from synchronizing, a preset matching rule is used. This rule includes the audio broadcaster's device name being ABC, and the audio broadcaster's extended broadcast packet containing the device name ABC. Upon receiving the extended broadcast packet, the audio receiver checks if it contains the device name. If so, it further determines if the device name is ABC. If it is, synchronization begins; otherwise, it continues receiving the next extended broadcast packet. Therefore, to prevent other devices from synchronizing with the audio broadcaster, the extended broadcast packet can omit the audio broadcaster's device name information, or the audio broadcaster's device name can be modified to another name.

[0089] S204. The synchronization information of the periodic broadcast is sent to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device;

[0090] Specifically, the second electronic device can use the synchronization information of the periodic broadcast sent by the first electronic device to receive the periodic broadcast sent by the first electronic device, and obtain the information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcast sent by the first electronic device. Based on the information of the broadcast isochronous group (BIG INFO), the second electronic device can receive the audio signal in the broadcast isochronous group sent by the first electronic device, thereby enabling the second electronic device to play the audio signal synchronously with the first electronic device.

[0091] However, in this embodiment, the synchronization information of the periodic broadcast is transmitted through a one-to-one connection link between the first electronic device and the second electronic device. Therefore, only the second electronic device can receive it. Although the periodic broadcast is still broadcast normally, other devices cannot receive the synchronization information of the periodic broadcast, so they cannot scan the first electronic device and cannot receive the audio signal sent by the first electronic device.

[0092] S205. Based on the information of the broadcast isochronous group, create and send the broadcast isochronous group, which carries an audio signal.

[0093] The creation of a broadcast isochronous group includes the creation of an isochronous synchronization path. The isochronous synchronization path refers to a path that transmits audio data within a preset time period, i.e., an isochronous (ISO) path. For example, creating an isochronous synchronization path is sufficient. This path is used by a first electronic device to send audio signals to a second electronic device, thereby achieving one-to-one audio transmission.

[0094] A Broadcast Isochronous Group (BIG) may include at least one Broadcast Isochronous Stream (BIS), which is an audio stream that transmits audio signals. In this embodiment, when a one-to-one connection is established between the first electronic device and the second electronic device, the broadcast isochronous group created by the first electronic device includes one broadcast isochronous stream.

[0095] In related technologies, the audio receiver scans for Extended Broadcast (Ext Adv), synchronizes with the PA (Park Audio), acquires the BIG INFO, and synchronizes with the BIG using the BIG INFO, thereby enabling subsequent audio data reception, decoding, and output.

[0096] In a scenario with one audio broadcasting device and one audio receiving device, the broadcasting and receiving devices can operate in a one-to-one manner according to the audio broadcasting logic described above. However, because broadcasting is unidirectional, the broadcaster does not know whether the receiver is synchronized, meaning it cannot disable extended broadcast (Ext Adv). Therefore, even in a one-to-one scenario, the broadcaster can be synchronized by other devices to receive its audio output.

[0097] Furthermore, in a one-to-one working scenario of an audio broadcasting device and an audio receiving device, if information or control synchronization between the devices is required, a control link is typically established, while the audio transmission path uses audio broadcasting. The audio receiver first scans the Ext Adv, then obtains the PA's synchronization information through the Ext Adv, then synchronizes with the PA, and finally synchronizes with the BIG. As can be seen, the entire synchronization process is quite complex. Additionally, the scanning of the Ext Adv and the synchronization with the PA are uncertain, which makes the timing of the audio receiver's output uncertain. This can lead to issues such as the audio broadcasting device and the audio receiving device outputting sound sequentially or at excessively long intervals.

[0098] In addition, if there are multiple audio broadcasting devices of the same type (same product model), because the product matching specifications are the same, the audio receiving device will often start to synchronize when it scans a device that matches the specifications, and will synchronize with an audio broadcasting device that it does not want to synchronize with, resulting in missynchronization.

[0099] Therefore, in this embodiment, after the periodic broadcast is running normally, the first electronic device shuts down the extended broadcast, preventing other devices from obtaining the synchronization information of the periodic broadcast. Furthermore, since the second electronic device and the first electronic device communicate via a one-to-one connection link, it ensures that the second electronic device (not other devices) receives the synchronization information of the PA sent by the first electronic device. This guarantees that the second electronic device is synchronized with the first electronic device. In other words, the second electronic device can receive the periodic broadcast based on the synchronization information sent by the first electronic device, and synchronizes with the first electronic device according to the broadcast isochronous group information included in the periodic broadcast. This allows the second and first electronic devices to play audio signals synchronously, while other devices cannot synchronize with the first electronic device. In other words, this embodiment ensures that the audio receiving device is always synchronized with the corresponding audio broadcasting device, achieving precise synchronization and avoiding missynchronization between devices other than the second electronic device and the first electronic device, as well as missynchronization between the second electronic device and other devices other than the first electronic device.

[0100] Furthermore, compared to the process where the audio receiver first scans the ext adv, then obtains the PA's synchronization information through the ext adv, then synchronizes with the PA, and then synchronizes with the BIG, the embodiments of this application enable the audio receiving device to quickly synchronize with the audio broadcasting device through the PA's synchronization information transmitted via a one-to-one connection link. This solves the problem of uncertain synchronization time for the audio receiving device, thereby enabling the audio receiver to output audio quickly and avoiding problems such as inconsistent or excessively long output times between the audio broadcasting device and the audio receiving device.

[0101] In some embodiments, the synchronization information of the periodic broadcast includes, for example, the information shown in the table below:

[0102]

[0103] in:

[0104] CtrData: Represents control data;

[0105] syncINFO: Indicates synchronization information, used to describe the synchronization information of periodic broadcasts;

[0106] connEventCount: Represents the count of connection events;

[0107] Connection events are counted while control data (ctrdata) is being sent (or resent); the range of values ​​for connEventCount is as follows:

[0108] currEvent-2 14 <connEventCount<currEvent+2 14 ;

[0109] Wherein, currEvent represents the counter value of the connection event, which is recorded in the first electronic device, i.e. the audio signal transmitter;

[0110] lastPaEventCounter: Used to determine the contents of syncINFO;

[0111] SID: Sets the broadcast SID subfield that points to the broadcast set of periodically broadcasted broadcasts;

[0112] AType: Used to describe the address type included in the broadcast; for example:

[0113] If AType is 0, then the address type described in the broadcast is: public address;

[0114] If AType is 1, then the broadcast contains a random address.

[0115] AdvA: Indicates the broadcast address.

[0116] syncConnEventCount: Represents the number of synchronous connection events, mainly used for synchronous anchors.

[0117] In some embodiments, when a directional broadcast sent by the second electronic device to the first electronic device is received, a one-to-one connection link between the first electronic device and the second electronic device is triggered.

[0118] For example, the second electronic device can send a targeted broadcast to the first electronic device. When the first electronic device receives the targeted broadcast, it actively initiates the process of establishing a one-to-one connection link between itself and the second electronic device.

[0119] The targeted broadcast is a broadcast aimed at a specific address device, and only that address device can receive such a broadcast.

[0120] In some embodiments, the audio signal broadcasting method at the transmitting end further includes:

[0121] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0122] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the following steps are executed again: create a periodic broadcast based on the extended broadcast; when the periodic broadcast runs successfully, disable the extended broadcast; send the synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link; create and send the broadcast isochronous group based on the information of the broadcast isochronous group, which carries an audio signal.

[0123] In some embodiments, after the first electronic device enters a one-to-many audio sharing mode, the method further includes:

[0124] Disconnect the one-to-one connection link between the first electronic device and the second electronic device, so that the second electronic device can also enter the scanning phase and obtain the audio signal broadcast by the first electronic device using the one-to-many audio sharing mode.

[0125] In other words, after the first electronic device disconnects its one-to-one connection with the second electronic device, the second electronic device enters normal audio receiver mode (equivalent to the mode of the third electronic device) and scans for audio transmitting devices.

[0126] In some embodiments, the first electronic device employs the one-to-many audio sharing mode to broadcast audio signals, including:

[0127] A first electronic device creates and sends an extended broadcast; wherein the extended broadcast includes synchronization information of a periodic broadcast to be sent by the first electronic device;

[0128] A first electronic device creates and transmits a periodic broadcast based on the extended broadcast; wherein the periodic broadcast includes information about the broadcast isochronous group that the first electronic device will transmit;

[0129] A first electronic device creates and transmits a broadcast isochronous group, wherein the broadcast isochronous group includes at least one broadcast isochronous stream, each broadcast isochronous stream carrying one audio signal.

[0130] Example 2:

[0131] Accordingly, see Figure 3 At the receiving end, i.e., the third electronic device serving as the audio signal receiver, an audio signal receiving method provided in this application includes:

[0132] S301. When it is determined that it is necessary to receive the audio signal broadcast by the first electronic device, a broadcast message of a preset format is sent; wherein, the broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message of the preset format carries indication information requesting to enter the audio sharing mode.

[0133] The third electronic device determines the method by which it needs to receive the audio signal broadcast by the first electronic device. For example, it can be triggered by a user pressing a button, and the user can select through the user interface whether the third electronic device needs to receive the audio signal in a one-to-one or one-to-many working mode.

[0134] S302. When receiving an extended broadcast sent by the first electronic device, obtain the synchronization information of the periodic broadcast sent by the first electronic device through the extended broadcast, use the synchronization information of the periodic broadcast to receive the periodic broadcast sent by the first electronic device, and obtain the information of the broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, the broadcast isochronous group being used to transmit audio signals; based on the information of the broadcast isochronous group, receive the audio signal in the broadcast isochronous group sent by the first electronic device.

[0135] In some embodiments, the broadcast message in the preset format also includes indication information that the local device cannot be connected to by other devices. That is, the indication information is used to indicate that the third electronic device can actively establish a connection with other devices, but cannot passively establish a connection with other devices, thereby avoiding other devices from establishing a connection with the third electronic device and affecting the third electronic device's reception of the audio signal broadcast by the first electronic device.

[0136] Example 3:

[0137] See Figure 4 At the receiving end, i.e., the second electronic device serving as the audio signal receiver, an audio signal receiving method provided in this application includes:

[0138] S401. Establish a one-to-one connection link between the first electronic device and the second electronic device;

[0139] After the one-to-one connection link between the first electronic device and the second electronic device is established, the second electronic device enters the synchronization waiting mode, that is, waits to receive the periodically broadcast synchronization information.

[0140] S402. Receive synchronization information from the periodic broadcast sent by the first electronic device through the one-to-one connection link;

[0141] S403. Using the synchronization information of the periodic broadcast, receive the periodic broadcast sent by the first electronic device, and obtain the information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals.

[0142] S404. Based on the information of the broadcast isochronous group, receive the audio signal in the broadcast isochronous group sent by the first electronic device.

[0143] In other words, the second electronic device can create an isochronous synchronization path based on the information of the broadcast isochronous group, and receive the broadcast isochronous stream (i.e., audio signal) through the isochronous synchronization path.

[0144] Furthermore, the second electronic device can also decode and output the acquired audio signal.

[0145] In some embodiments, the first electronic device and the second electronic device each output a channel and then play them simultaneously, forming a stereo scene. Therefore, in order to save bandwidth, the first electronic device can choose to use the ISO channel to transmit channels other than its own output channel. For example, if the first electronic device outputs the left channel audio, then it only needs to encode the right channel audio and then transmit it to the second electronic device through the ISO channel (of course, the stereo audio can also be transmitted directly using the ISO channel), while the first electronic device outputs the left channel audio.

[0146] Of course, the audio broadcaster can output the left channel audio signal, and the audio receiver can output the right channel audio signal. Alternatively, both the audio broadcaster and the audio receiver can output audio signals from all channels, i.e., both output stereo audio signals.

[0147] In some embodiments, a one-to-one connection link between the first electronic device and the second electronic device is triggered by sending a targeted broadcast to the first electronic device.

[0148] In some embodiments, the audio signal receiving method of the receiving end further includes:

[0149] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0150] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the synchronization information of the periodic broadcast sent by the first electronic device is received again through the one-to-one connection link, and the following subsequent steps are executed: using the synchronization information of the periodic broadcast, the periodic broadcast sent by the first electronic device is received, and the information of the broadcast isochronous group to be sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0151] In some embodiments, the audio signal receiving method of the receiving end further includes:

[0152] When it is determined that receiving a periodic broadcast has failed, or that receiving a broadcast isochronous group has failed, the synchronization information of receiving the periodic broadcast sent by the first electronic device through the one-to-one connection link is executed again, and the following subsequent steps are: using the synchronization information of the periodic broadcast, receiving the periodic broadcast sent by the first electronic device, and obtaining the information of the broadcast isochronous group that the first electronic device will send from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, receiving the audio signal in the broadcast isochronous group sent by the first electronic device.

[0153] Example 4:

[0154] See Figure 5 From the perspective of the entire communication system composed of the first electronic device, the second electronic device, and the third electronic device, the audio signal transmission method provided in this application embodiment includes:

[0155] S501, The second electronic device sends a directional broadcast to the first electronic device;

[0156] S502, The first electronic device initiates the establishment of a one-to-one connection link between the first electronic device and the second electronic device;

[0157] S503. The first electronic device creates an extended broadcast and creates a periodic broadcast based on the extended broadcast;

[0158] S504. When the first electronic device successfully runs the periodic broadcast, it disables the extended broadcast;

[0159] S505. The first electronic device sends periodically broadcast synchronization information to the second electronic device through the one-to-one connection link;

[0160] S506. The second electronic device receives the periodic broadcast using the synchronization information of the periodic broadcast;

[0161] S507. The second electronic device obtains information about the broadcast isochronous group from the periodic broadcast;

[0162] S508, the first electronic device transmits a broadcast isochronous group based on the information of the broadcast isochronous group, which carries an audio signal;

[0163] S509, the second electronic device receives audio signals from the broadcast isochronous group based on information from the broadcast isochronous group.

[0164] S510, the third electronic device sends a broadcast message in a preset format, which carries an instruction to enter the audio sharing mode.

[0165] S511. When the first electronic device scans the broadcast message of the preset format sent by the third electronic device, it parses the content of the broadcast message of the preset format.

[0166] S512. When the third electronic device sends a broadcast message in a preset format that carries an indication requesting to enter the audio sharing mode, and the first electronic device determines that the preset conditions for entering the audio sharing mode are met, the first electronic device switches to a one-to-many audio sharing mode.

[0167] S513, The first electronic device disconnects the one-to-one connection link between the first electronic device and the second electronic device.

[0168] S514, The first electronic device adopts a one-to-many audio sharing mode to broadcast audio signals. For example, it includes:

[0169] A first electronic device creates and sends an extended broadcast; wherein the extended broadcast includes synchronization information of a periodic broadcast to be sent by the first electronic device;

[0170] A first electronic device creates and transmits a periodic broadcast based on the extended broadcast; wherein the periodic broadcast includes information about the broadcast isochronous group that the first electronic device will transmit;

[0171] A first electronic device creates and transmits a broadcast isochronous group, wherein the broadcast isochronous group includes at least one broadcast isochronous stream, each broadcast isochronous stream carrying one audio signal.

[0172] S515, the second electronic device and / or the third electronic device (and possibly more electronic devices), when receiving an extended broadcast sent by the first electronic device, obtains the synchronization information of the periodic broadcast sent by the first electronic device through the extended broadcast, uses the synchronization information of the periodic broadcast to receive the periodic broadcast sent by the first electronic device, and obtains the information of the broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, the broadcast isochronous group being used to transmit audio signals; based on the information of the broadcast isochronous group, receives the audio signal in the broadcast isochronous group sent by the first electronic device.

[0173] The following describes the device or apparatus provided in the embodiments of this application, and the explanations or examples of the same or corresponding technical features as those described in the above methods will not be repeated hereafter.

[0174] Example 4:

[0175] See Figure 6 This application provides an audio signal broadcasting system, comprising: a first electronic device 601, a second electronic device 602, and at least one third electronic device 603; wherein,

[0176] The first electronic device 601 is configured to: scan for broadcast messages of a preset format during a one-to-one audio signal transmission between the first electronic device and the second electronic device, wherein the preset format broadcast message is a broadcast message of a format pre-agreed upon by the first electronic device and at least one third electronic device; when a broadcast message of the preset format sent by the third electronic device is detected, parse the content of the broadcast message of the preset format; when the broadcast message of the preset format sent by the third electronic device carries an indication message requesting entry into an audio sharing mode, and it is determined that the first electronic device meets the preset conditions for entering the audio sharing mode, instruct the first electronic device to enter a one-to-many audio sharing mode; and broadcast audio signals using the one-to-many audio sharing mode.

[0177] The third electronic device 603 is configured to: when it is determined that it needs to receive audio signals broadcast by the first electronic device, send a broadcast message in a preset format; wherein the broadcast message in the preset format is a broadcast message in a format pre-agreed between the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries indication information requesting entry into audio sharing mode; when receiving an extended broadcast sent by the first electronic device, obtain synchronization information of the periodic broadcast sent by the first electronic device through the extended broadcast, receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and obtain information of the broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, the broadcast isochronous group being used to transmit audio signals; and receive the audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0178] In some embodiments, the second electronic device 602 is configured to:

[0179] Establish a one-to-one connection link with the first electronic device; receive synchronization information of periodic broadcasts sent by the first electronic device through the one-to-one connection link; receive periodic broadcasts sent by the first electronic device using the synchronization information of the periodic broadcasts, and obtain information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcasts sent by the first electronic device; receive audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0180] In some embodiments, when the first electronic device 601 receives a directional broadcast sent by the second electronic device 602 to the first electronic device, the first electronic device 601 triggers the establishment of a one-to-one connection link between the first electronic device and the second electronic device.

[0181] In some embodiments, the first electronic device 601 is further configured to:

[0182] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0183] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the following steps are executed again: create a periodic broadcast based on the extended broadcast; when the periodic broadcast runs successfully, disable the extended broadcast; send the synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link; create and send the broadcast isochronous group based on the information of the broadcast isochronous group, which carries an audio signal.

[0184] In some embodiments, the second electronic device 602 is further configured to:

[0185] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0186] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the synchronization information of the periodic broadcast sent by the first electronic device is received again through the one-to-one connection link, and the following subsequent steps are executed: using the synchronization information of the periodic broadcast, the periodic broadcast sent by the first electronic device is received, and the information of the broadcast isochronous group to be sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0187] In some embodiments, the second electronic device 602 is further configured to:

[0188] When it is determined that receiving a periodic broadcast has failed, or that receiving a broadcast isochronous group has failed, the synchronization information of receiving the periodic broadcast sent by the first electronic device through the one-to-one connection link is executed again, and the following subsequent steps are: using the synchronization information of the periodic broadcast, receiving the periodic broadcast sent by the first electronic device, and obtaining the information of the broadcast isochronous group that the first electronic device will send from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, receiving the audio signal in the broadcast isochronous group sent by the first electronic device.

[0189] Example 5:

[0190] An electronic device is provided in an embodiment of this application, see [link to example]. Figure 7 For example, it includes: processor 700 and memory 720;

[0191] When the electronic device is used as an audio signal transmitter (e.g., the first electronic device mentioned above), the processor 700 reads the program from the memory 720 and executes the following process:

[0192] During the one-to-one audio signal transmission between the first electronic device and the second electronic device, a broadcast message of a preset format is scanned, wherein the broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device.

[0193] When a broadcast message of the preset format sent by the third electronic device is detected, the content of the broadcast message of the preset format is parsed.

[0194] When the third electronic device sends a broadcast message in a preset format that carries an indication requesting to enter the audio sharing mode, and determines that the first electronic device meets the preset conditions for entering the audio sharing mode, the first electronic device is switched to a one-to-many audio sharing mode.

[0195] The audio signal is broadcast using the one-to-many audio sharing mode.

[0196] In some embodiments, the processor 700 is further configured to read a program from the memory 720 and execute the following processes:

[0197] After the first electronic device enters the one-to-many audio sharing mode, the one-to-one connection link between the first electronic device and the second electronic device is disconnected.

[0198] In some embodiments, the processor 700 is further configured to read a program from the memory 720 and execute the following processes:

[0199] The one-to-one audio signal transmission between the first electronic device and the second electronic device is performed in the following manner:

[0200] Establish a one-to-one connection link between the first electronic device and the second electronic device;

[0201] An extended broadcast is created, and a periodic broadcast is created based on the extended broadcast; wherein the periodic broadcast includes information about a broadcast isochronous group that the first electronic device will send, the broadcast isochronous group information being used to instruct the second electronic device to receive the broadcast isochronous group sent by the first electronic device, and the broadcast isochronous group being used to transmit audio signals;

[0202] When the periodic broadcast runs successfully, disable the extended broadcast;

[0203] The synchronization information of the periodic broadcast is sent to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device;

[0204] Based on the information of the broadcast isochronous group, the broadcast isochronous group is created and transmitted, which carries an audio signal.

[0205] In some embodiments, a one-to-one connection link between the first electronic device and the second electronic device is triggered by sending a targeted broadcast to the second electronic device.

[0206] In some embodiments, the processor 700 is further configured to read a program from the memory 720 and execute the following processes:

[0207] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0208] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the following steps are executed again: create a periodic broadcast based on the extended broadcast; when the periodic broadcast runs successfully, disable the extended broadcast; send the synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link; create and send the broadcast isochronous group based on the information of the broadcast isochronous group, which carries an audio signal.

[0209] When the local electronic device acts as an electronic device that receives audio signals (such as the third electronic device mentioned above):

[0210] Processor 700 is used to read the program from memory 720 and execute the following procedures:

[0211] When it is determined that an audio signal broadcast by the first electronic device needs to be received, a broadcast message in a preset format is sent; wherein, the broadcast message in the preset format is a broadcast message in a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries an indication message requesting to enter the audio sharing mode;

[0212] When an extended broadcast sent by the first electronic device is received, the synchronization information of the periodic broadcast sent by the first electronic device is obtained through the extended broadcast. Using the synchronization information of the periodic broadcast, the periodic broadcast sent by the first electronic device is received, and the information of the broadcast isochronous group sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device. The broadcast isochronous group is used to transmit audio signals. Based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0213] In some embodiments, the broadcast message in the preset format may also include indication information indicating that the local device cannot be connected to by other devices.

[0214] When the local electronic device acts as an electronic device that receives audio signals (such as the second electronic device mentioned above):

[0215] The processor 700 can also be used to read programs from the memory 720 and execute the following processes:

[0216] Establish a one-to-one connection link between the first electronic device and the second electronic device;

[0217] Through the one-to-one connection link, the system receives synchronization information from the periodic broadcasts sent by the first electronic device;

[0218] Using the synchronization information of the periodic broadcast, the system receives the periodic broadcast sent by the first electronic device, and obtains the information of the broadcast isochronous group that the first electronic device will send from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals.

[0219] Based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0220] In some embodiments, when a directional broadcast sent by the first electronic device is received, a one-to-one connection link between the first electronic device and the second electronic device is triggered.

[0221] In some embodiments, the processor 700 is further configured to read a program from the memory 720 and execute the following processes:

[0222] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0223] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the synchronization information of the periodic broadcast sent by the first electronic device is received again through the one-to-one connection link, and the following subsequent steps are executed: using the synchronization information of the periodic broadcast, the periodic broadcast sent by the first electronic device is received, and the information of the broadcast isochronous group to be sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, the audio signal in the broadcast isochronous group sent by the first electronic device is received.

[0224] In some embodiments, the processor 700 is further configured to read a program from the memory 720 and execute the following processes:

[0225] When it is determined that receiving a periodic broadcast has failed, or that receiving a broadcast isochronous group has failed, the synchronization information of receiving the periodic broadcast sent by the first electronic device through the one-to-one connection link is executed again, and the following subsequent steps are: using the synchronization information of the periodic broadcast, receiving the periodic broadcast sent by the first electronic device, and obtaining the information of the broadcast isochronous group that the first electronic device will send from the periodic broadcast sent by the first electronic device; based on the information of the broadcast isochronous group, receiving the audio signal in the broadcast isochronous group sent by the first electronic device.

[0226] Transceiver 710 is used to receive and send data under the control of processor 700.

[0227] Among them, Figure 7In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 700 and memory represented by memory 720 together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 710 can be multiple components, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium, including wireless channels, wired channels, optical fibers, etc. For different user equipment, the user interface 730 can also be an interface capable of connecting external or internal devices, including but not limited to keypads, displays, speakers, microphones, joysticks, etc.

[0228] The processor 700 is responsible for managing the bus architecture and general processing, while the memory 720 can store the data used by the processor 700 during operation.

[0229] In some implementations, the processor 700 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.

[0230] The processor executes any of the methods described in the embodiments of this application according to the obtained executable instructions by calling a computer program stored in memory. The processor and memory may also be physically separated.

[0231] It should be noted that the apparatus provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.

[0232] Example 6:

[0233] See Figure 8 At the transmitting end, an audio signal broadcasting device provided in this application embodiment includes:

[0234] The broadcast message scanning unit 801 is used to scan for broadcast messages of a preset format during the one-to-one audio signal transmission between the first electronic device and the second electronic device. The broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device.

[0235] The broadcast message parsing unit 802 is used to parse the content of the broadcast message in the preset format when the broadcast message sent by the third electronic device is scanned.

[0236] The mode switching unit 803 is used to switch the first electronic device to a one-to-many audio sharing mode when the third electronic device sends a broadcast message in a preset format that carries an indication message requesting to enter the audio sharing mode, and determines that the first electronic device meets the preset conditions for entering the audio sharing mode.

[0237] Broadcast unit 804 is used to broadcast audio signals using the one-to-many audio sharing mode.

[0238] In some embodiments, the broadcast unit 804 employs the one-to-many audio sharing mode to broadcast audio signals, including:

[0239] Create and send an extended broadcast; wherein the extended broadcast includes synchronization information of the periodic broadcast to be sent by the first electronic device;

[0240] A periodic broadcast is created and transmitted based on the extended broadcast; wherein the periodic broadcast includes information about the broadcast isochronous group to be transmitted by the first electronic device;

[0241] Create and send a broadcast isochronous group, wherein the broadcast isochronous group includes at least one broadcast isochronous stream, each broadcast isochronous stream carrying one audio signal.

[0242] In some embodiments, see Figure 9 The device further includes:

[0243] Link establishment unit 11 is used to establish a one-to-one connection link between the first electronic device and the second electronic device;

[0244] The broadcast creation unit 12 is used to create an extended broadcast and create a periodic broadcast based on the extended broadcast; wherein the periodic broadcast includes information about a broadcast isochronous group that the first electronic device will send, the information about the broadcast isochronous group is used to instruct the second electronic device to receive the broadcast isochronous group sent by the first electronic device, and the broadcast isochronous group is used to transmit audio signals;

[0245] Extended broadcast failure unit 13 is used to fail the extended broadcast when the periodic broadcast is successfully running;

[0246] The synchronization information sending unit 14 is used to send the synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device;

[0247] The broadcast isochronous group transmitting unit 15 is used to create and transmit the broadcast isochronous group based on the information of the broadcast isochronous group, wherein the broadcast isochronous group carries an audio signal.

[0248] In some embodiments, when a directional broadcast sent by the second electronic device to the first electronic device is received, a one-to-one connection link between the first electronic device and the second electronic device is triggered.

[0249] In some embodiments, see Figure 10 The device further includes:

[0250] The first link recovery unit 16 is used for:

[0251] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0252] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the broadcast creation unit 12 is triggered to create the extended broadcast again, and a periodic broadcast is created based on the extended broadcast, thereby triggering the extended broadcast failure unit 13 respectively. When the periodic broadcast is successfully run, the extended broadcast is made invalid; the synchronization information sending unit 14 sends the synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link; the broadcast isochronous group sending unit 15 creates and sends the broadcast isochronous group based on the information of the broadcast isochronous group.

[0253] Example 7:

[0254] See Figure 11 At the receiving end, such as the third electronic device mentioned above, an audio signal receiving device provided in this application embodiment includes:

[0255] The broadcast message sending unit 111 is used to send a broadcast message of a preset format when it is determined that it is necessary to receive the audio signal broadcast by the first electronic device; wherein, the broadcast message of the preset format is a broadcast message of a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message of the preset format carries indication information requesting to enter the audio sharing mode;

[0256] The broadcast audio receiving unit 112 is configured to, when receiving an extended broadcast sent by the first electronic device, obtain synchronization information of a periodic broadcast sent by the first electronic device through the extended broadcast, receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and obtain information of a broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals; and receive the audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0257] See Figure 12 At the receiving end, such as the second electronic device mentioned above, an audio signal receiving device provided in this application embodiment includes:

[0258] Link establishment unit 21 is used to establish a one-to-one connection link between the first electronic device and the second electronic device;

[0259] The synchronization information receiving unit 22 is used to receive the periodically broadcast synchronization information sent by the first electronic device through the one-to-one connection link;

[0260] The periodic broadcast receiving unit 23 is used to receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and to obtain the information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals.

[0261] The broadcast isochronous group receiving unit 24 is used to receive the audio signal in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0262] In some embodiments, a one-to-one connection link between the first electronic device and the second electronic device is triggered by sending a targeted broadcast to the first electronic device.

[0263] In some embodiments, the apparatus further includes:

[0264] The second link recovery unit is used for:

[0265] If the one-to-one connection link times out and disconnects, the one-to-one connection link between the first electronic device and the second electronic device is restored;

[0266] When the one-to-one connection link between the first electronic device and the second electronic device is restored, the synchronization information receiving unit 22 is triggered to receive the synchronization information of the periodic broadcast sent by the first electronic device through the one-to-one connection link again, thereby triggering the periodic broadcast receiving unit 23 to receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and to obtain the information of the broadcast isochronous group to be sent by the first electronic device from the periodic broadcast sent by the first electronic device. The broadcast isochronous group is used to transmit audio signals. The broadcast isochronous group receiving unit 24 receives the audio signal in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0267] In some embodiments, the apparatus further includes:

[0268] The packet loss identification unit is used for:

[0269] When it is determined that receiving a periodic broadcast has failed, or receiving a broadcast isochronous group has failed, the synchronization information receiving unit 22 is triggered to re-execute the synchronization information of the periodic broadcast sent by the first electronic device through the one-to-one connection link, thereby triggering the periodic broadcast receiving unit 23 to receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and to obtain the information of the broadcast isochronous group that the first electronic device will send from the periodic broadcast sent by the first electronic device. The broadcast isochronous group is used to transmit audio signals. The broadcast isochronous group receiving unit 24 receives the audio signal in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

[0270] Furthermore, the units on the third electronic device side and the units on the second electronic device side can both exist on the same electronic device side, that is, the same electronic device. They can have the functions of the second electronic device or the third electronic device, which will not be elaborated further.

[0271] It should be noted that the division of units in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.

Claims

1. An audio signal broadcasting method, characterized by, The method comprises: In the process of one-to-one audio signal transmission between the first electronic device and the second electronic device, scanning a broadcast message in a preset format, wherein the broadcast message in the preset format is a broadcast message in a format previously agreed upon by the first electronic device and at least one third electronic device; When the broadcast message in the preset format sent by the third electronic device is scanned, the content in the broadcast message in the preset format is parsed; When the third electronic device sends the broadcast message in the preset format, and it is determined that the first electronic device meets the preset condition for entering the audio sharing mode, the first electronic device is switched to a one-to-many audio sharing mode; The one-to-many audio sharing mode is used to broadcast audio signals.

2. The method of claim 1, wherein, The one-to-one audio signal transmission between the first electronic device and the second electronic device comprises: Establishing a one-to-one connection link between the first electronic device and the second electronic device; Creating an extended broadcast and creating a periodic broadcast based on the extended broadcast; When the periodic broadcast is successfully run, the extended broadcast is invalidated; Synchronizing information of the periodic broadcast is sent to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device; Based on the information of the broadcast isochronous group, the broadcast isochronous group is created and sent, wherein the broadcast isochronous group carries audio signals; After the first electronic device enters the one-to-many audio sharing mode, the method further comprises: Disconnecting the one-to-one connection link between the first electronic device and the second electronic device.

3. The method of claim 1, wherein, The preset condition for entering the audio sharing mode comprises: The first electronic device is currently in a one-to-one audio transmission mode; wherein the one-to-one audio transmission mode refers to a mode in which the first electronic device and the second electronic device perform one-to-one audio transmission; The audio sharing function of the first electronic device is turned on.

4. An audio signal receiving method characterized by, The method comprises: When it is determined that the audio signal broadcast by the first electronic device needs to be received, a broadcast message in a preset format is sent; wherein the broadcast message in the preset format is a broadcast message in a format previously agreed upon by the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries indication information for requesting to enter an audio sharing mode; When the extended broadcast sent by the first electronic device is received, the synchronization information of the periodic broadcast sent by the first electronic device is obtained through the extended broadcast, the periodic broadcast sent by the first electronic device is received by using the synchronization information of the periodic broadcast, the information of the broadcast isochronous group sent by the first electronic device is obtained from the periodic broadcast sent by the first electronic device, the broadcast isochronous group is used to transmit audio signals; and based on the information of the broadcast isochronous group, the audio signals in the broadcast isochronous group sent by the first electronic device are received.

5. The method of claim 4, wherein, The broadcast message in the preset format further comprises indication information that the local device cannot be connected by other devices.

6. An audio signal broadcasting apparatus characterized by comprising: The device comprises: The broadcast message scanning unit is configured to scan a broadcast message in a preset format during one-to-one audio signal transmission between the first electronic device and the second electronic device, wherein the broadcast message in the preset format is a broadcast message in a format previously agreed between the first electronic device and at least one third electronic device; The broadcast message analyzing unit is configured to analyze the content in the broadcast message in the preset format when the broadcast message in the preset format sent by the third electronic device is scanned; The mode switching unit is configured to switch the first electronic device to a one-to-many audio sharing mode when the broadcast message in the preset format sent by the third electronic device carries indication information requesting to enter the audio sharing mode and it is determined that the first electronic device meets preset conditions for entering the audio sharing mode; The broadcasting unit is configured to broadcast audio signals in the one-to-many audio sharing mode.

7. The apparatus of claim 6, wherein, The device further includes: The link establishing unit is configured to establish a one-to-one connection link between the first electronic device and the second electronic device; The broadcast creating unit is configured to create an extended broadcast and create a periodic broadcast based on the extended broadcast; The extended broadcast invalidating unit is configured to invalidate the extended broadcast when the periodic broadcast is successfully run; The synchronization information sending unit is configured to send synchronization information of the periodic broadcast to the second electronic device through the one-to-one connection link, so that the second electronic device receives the periodic broadcast sent by the first electronic device; The broadcast isochronous group sending unit is configured to create and send the broadcast isochronous group carrying audio signals based on the information of the broadcast isochronous group; The mode switching unit is further configured to disconnect the one-to-one connection link between the first electronic device and the second electronic device when the first electronic device enters the one-to-many audio sharing mode.

8. An audio signal receiving apparatus characterized by comprising: The device includes: The broadcast message sending unit is configured to send a broadcast message in a preset format when it is determined that audio signals broadcast by the first electronic device need to be received, wherein the broadcast message in the preset format is a broadcast message in a format previously agreed between the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries indication information requesting to enter an audio sharing mode; The broadcast audio receiving unit is configured to obtain synchronization information of a periodic broadcast sent by the first electronic device through an extended broadcast when the extended broadcast sent by the first electronic device is received, receive the periodic broadcast sent by the first electronic device using the synchronization information of the periodic broadcast, and obtain information of a broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals; and receive audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

9. An audio signal broadcasting system, characterized by comprising: The system includes a first electronic device, a second electronic device, and at least one third electronic device; wherein The first electronic device is configured to: scan for a broadcast message in a preset format during one-to-one audio signal transmission between the first electronic device and the second electronic device, wherein the broadcast message in the preset format is a broadcast message in a format agreed upon in advance by the first electronic device and at least one third electronic device; when the broadcast message in the preset format sent by the third electronic device is scanned, analyze the content in the broadcast message in the preset format; when the broadcast message in the preset format sent by the third electronic device carries indication information requesting to enter an audio sharing mode and it is determined that the first electronic device meets preset conditions for entering the audio sharing mode, make the first electronic device enter a one-to-many audio sharing mode; and broadcast audio signals by using the one-to-many audio sharing mode. The third electronic device is configured to: when it is determined that audio signals broadcast by the first electronic device need to be received, send a broadcast message in a preset format; wherein the broadcast message in the preset format is a broadcast message in a format agreed upon in advance by the first electronic device and at least one third electronic device, and the broadcast message in the preset format carries indication information requesting to enter an audio sharing mode; when an extended broadcast sent by the first electronic device is received, obtain synchronization information of a periodic broadcast sent by the first electronic device through the extended broadcast, receive the periodic broadcast sent by the first electronic device by using the synchronization information of the periodic broadcast, and obtain information of a broadcast isochronous group sent by the first electronic device from the periodic broadcast sent by the first electronic device, wherein the broadcast isochronous group is used to transmit audio signals; and receive audio signals in the broadcast isochronous group sent by the first electronic device based on the information of the broadcast isochronous group.

10. An electronic device, comprising: Comprise: a memory configured to store program instructions; a processor configured to invoke the program instructions stored in the memory and execute the method according to any one of claims 1 to 5.

11. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions for causing the computer to execute the method according to any one of claims 1 to 5.