Link synchronization method and device, electronic equipment and storage medium

By establishing an information synchronization link in the wireless microphone four transmit and two receiving devices, obtaining the synchronous connection event anchor points and intervals, and synchronizing the audio link timing of the two main devices, the RF interference problem is solved and stable and accurate audio data transmission is achieved.

CN120343035APending Publication Date: 2025-07-18HEFEI JUXIN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410078224.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In wireless microphone four transmitting and two transmitting devices, due to the lack of synchronization mechanism between the two main devices, the transmission and reception processes overlap, and the problem of radio frequency RF interference is caused.

Method used

By establishing an information synchronization link, obtaining the synchronous connection event anchor points and intervals, synchronizing the audio link timing of the two master devices, and using different available channels within the same timing to avoid inter-channel interference.

Benefits of technology

It realizes the stable transmission of four channels of audio data, eliminates radio frequency interference, and ensures the accuracy of audio data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343035A_ABST
    Figure CN120343035A_ABST
Patent Text Reader

Abstract

The invention provides a link synchronization method and device, electronic equipment and a storage medium, and the method comprises the steps: building an information synchronization link between first main equipment and second main equipment through responding to an equipment connection event, and obtaining a synchronous connection event anchor point and a synchronous connection event interval of the information synchronization link; according to the synchronous connection event anchor point and the synchronous connection event interval, performing link time sequence synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device; wherein the first audio link is an audio link between the first master device and the plurality of matched target slave devices, and the second audio link is an audio link between the second master device and the plurality of matched target slave devices. According to the invention, the audio link time sequence can be synchronized, and radio frequency interference between channels is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Bluetooth transmission, and specifically relates to a link synchronization method, apparatus, electronic device, and computer-readable storage medium. Background Art

[0002] For a wireless microphone (mic) four-transmitter two-receiver device (four transmitters and two receivers), in order to obtain sufficient bandwidth when receiving four-channel mic audio data, it is necessary to integrate two master devices at the receiving end and connect them to two mic slave devices respectively. The air packet timing of the cis link in LE audio (Low Energy Audio) is as Figure 1 shown.

[0003] The LE air timing is only related to the Bluetooth clock of the master device. Since there is no synchronization mechanism between the two master devices, the transceiver processes of each master device overlap. Moreover, since the two master devices are integrated in a receiver and are relatively close to each other, the transmission channels of the transmitted data will have a certain radiation on the adjacent channel power, resulting in the problem of RF interference between the received and transmitted data. Summary of the Invention

[0004] Embodiments of the present application provide a link synchronization method, apparatus, electronic device, and computer-readable storage medium, aiming to synchronize the audio link timing and avoid RF interference between channels.

[0005] In a first aspect, embodiments of the present application provide a link synchronization method. The link synchronization method is applied to an audio transmission system, and the audio transmission system includes: a first master device, a second master device, a plurality of target slave devices matching the first master device, and a plurality of target slave devices matching the second master device;

[0006] The method includes:

[0007] Responding to a device connection event, establishing an information synchronization link between the first master device and the second master device, and obtaining a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link;

[0008] Performing link timing synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval;

[0009] wherein, the first audio link is an audio link between the first master device and a plurality of corresponding target slave devices, and the second audio link is an audio link between the second master device and a plurality of corresponding target slave devices.

[0010] Second aspect, an embodiment of the present application provides a link synchronization apparatus, including:

[0011] A establishing module, configured to respond to a device connection event, establish an information synchronization link between a first master device and a second master device, and obtain a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link;

[0012] A synchronization module, configured to perform link timing synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval;

[0013] Wherein, the first audio link is an audio link between the first master device and a plurality of target slave devices matched therewith, and the second audio link is an audio link between the second master device and a plurality of target slave devices matched therewith.

[0014] Third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores multiple instructions; the processor loads the instructions from the memory to execute the steps of the above link synchronization method.

[0015] Fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including a processor and a memory, where the memory stores multiple instructions; the processor loads the instructions from the memory to execute the steps of the above link synchronization method.

[0016] Beneficial effects of the embodiments of the present application:

[0017] Compared with the four-transmission and two-reception audio transmission method in the prior art, in the present application, two master devices can first establish an information synchronization link, which can be used to synchronize the timings of the two master devices, and obtain the synchronization connection event anchor point and the synchronization connection event interval of the information synchronization link. Furthermore, according to the synchronization connection event anchor point and the synchronization connection event interval, for the first audio link between the first master device and a plurality of slave devices matched therewith, and the second audio link between the second master device and a plurality of slave devices matched therewith, link timing synchronization is performed. Through the above timing synchronization mechanism between the two master devices, the overlapping of the audio data sending and receiving processes of the two master devices is avoided, the interference between adjacent channels during the audio data sending and receiving process is eliminated, and thus the accuracy of audio data transmission is ensured. Description of the Drawings

[0018] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0019] Figure 1 It is a schematic diagram of a two-transmitter and one-receiver link provided in an embodiment of the present application;

[0020] Figure 2 It is a first schematic diagram of a four-transmitter and two-receiver link provided in an embodiment of the present application;

[0021] Figure 3 It is a second schematic diagram of a four-transmitter and two-receiver link provided in an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of a four-transmitter and two-receiver structure provided in an embodiment of the present application;

[0023] Figure 5 It is a schematic flow diagram provided in an embodiment of the present application;

[0024] Figure 6 It is a schematic diagram of the SyncACL link timing provided in an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the four-transmitter and two-receiver link timing synchronization provided in an embodiment of the present application;

[0026] Figure 8-1 It is a first schematic diagram of the initial available channels provided in an embodiment of the present application;

[0027] Figure 8-2 It is a schematic diagram of the even-channel sequence provided in an embodiment of the present application;

[0028] Figure 8-3 It is a schematic diagram of the odd-channel sequence provided in an embodiment of the present application;

[0029] Figure 9 It is a schematic diagram of the data packet provided in an embodiment of the present application;

[0030] Figure 10 It is a schematic diagram of the odd-even channel sequence switching provided in an embodiment of the present application;

[0031] Figure 11 It is a second schematic diagram of the initial available channels provided in an embodiment of the present application;

[0032] Figure 12-1 It is a first schematic diagram of the channel cyclic left shift provided in an embodiment of the present application;

[0033] Figure 12-2 It is the second schematic diagram of channel cyclic left shift provided in the embodiments of the present application;

[0034] Figure 12-3 It is the third schematic diagram of channel cyclic left shift provided in the embodiments of the present application;

[0035] Figure 12-4 It is the fourth schematic diagram of channel cyclic left shift provided in the embodiments of the present application;

[0036] Figure 13 It is the schematic diagram of micCE counter provided in the embodiments of the present application;

[0037] Figure 14 It is the schematic diagram of the structure of the link synchronization device provided in the embodiments of the present application;

[0038] Figure 15 It is the schematic diagram of the structure of the electronic device provided in the embodiments of the present application. Detailed implementation manners

[0039] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application. In addition, it should be understood that the specific implementation manners described here are only used to explain and illustrate the present application, and are not used to limit the present application. In the present application, unless otherwise stated, the orientation words such as "upper" and "lower" usually refer to the upper and lower in the actual use or working state of the device, specifically the drawing direction in the drawings; and "inner" and "outer" refer to the outline of the device. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used for differential description, and cannot be understood as indicating or implying relative importance. Thus, the features defined with "first", "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, "a plurality" means two or more, unless otherwise specifically defined.

[0040] Such as Figure 2As shown, a typical wireless microphone with two transmitters and one receiver (for receiving the audio sent by the microphone and providing interfaces such as USB and Line In outward) forms a CIG link by establishing CIS links between the LE audio (Low Energy Audio) master device at the receiver and the two microphone slave devices respectively. To ensure the audio quality of the microphone, the LE audio master device needs to reserve a certain bandwidth for each audio channel to meet up to 5 retransmissions of data packets during each CIS connection event, and each master device can connect at most two microphone slave devices.

[0041] For a wireless microphone with four transmitters and two receivers, in order to obtain sufficient bandwidth when receiving the audio data of 4 microphones (4 slave devices), it is necessary to integrate two master devices at the receiver to connect two microphone slave devices respectively. The timing of the air data packets of the LE audio cis link is as Figure 1 shown. The LE air timing is only related to the Bluetooth clock of the master device. There is no synchronization mechanism between the two master devices, which may cause the transceiver processes of the two master devices to overlap. Moreover, the two master devices are integrated in a receiver and are relatively close to each other. Therefore, the transmission channel of the transmitted data will have a certain radiation on the adjacent channel power, resulting in the problem of RF (radio frequency) interference with each other when receiving and transmitting data.

[0042] Therefore, to solve the above problems, the present application synchronizes the cis audio data transceiver timing of the two master devices and the communication channel selection of the two master devices, so that the transceiver processes of the two master devices do not overlap, minimizing interference and achieving stable transmission of four-channel audio data.

[0043] It should be noted that in the present application, as Figure 3As shown, after BLE (Bluetooth Low Energy) enters the connection state, the link layer should only transmit data physical channel data packets during connection events (hereinafter referred to as CE for short). During CE, the master and slave devices alternately send and receive data packets. The master device controls the timing of CE. The CE timing of the master device and the slave device occurs synchronously. Both the master device and the slave device should have a 16-bit connection event counter, which contains the CE count value CE (counter) for each connection link. CE (counter) can be used to synchronize the control of the link layer. At the first CE, CE (counter) should be set to zero, and for each new CE, CE (counter) increments until it reaches 0xFFFF and then is set to 0. The starting point of each CE is called the connection event anchor point (hereinafter also referred to as CEap for short). The interval time between two CEs is called the connection interval (hereinafter also referred to as CEinterval for short). This value has an accuracy of 1 us in Bluetooth clock (BTCLK) units.

[0044] On this basis, the communication structure of this application is as Figure 4 shown. After LE audio enters the connection state, CE is initiated by the master device and the CEap of the master device is specified by the master device during the establishment process. Therefore, in this application, before the master device and the slave device establish a connection, the BTCLKs of two master devices (including the first master device and the second master device) can be synchronized. Then, when the slave device (including the first slave device and the second slave device corresponding to the master device, and the slave device in this embodiment can be a mic) establishes a BLE connection, the anchor point is set to the same BTCLK, so as to achieve the synchronization of the Bluetooth data transmission and reception timing. Moreover, after the Bluetooth timing is synchronized, in order to prevent RF interference caused by two master devices using the same frequency channel for communication within the same timing, the two master devices can also be controlled to use different available channels within the same timing.

[0045] Specifically, the link synchronization method in this application is applied to an audio transmission system. The audio transmission system is as Figure 4 shown, and includes a first master device, a second master device, multiple target slave devices matching the first master device, and multiple target slave devices matching the second master device.

[0046] In this embodiment, it is described by taking an example that each master device can be connected to two target slave devices (mics). A plurality of target slave devices matched with the first master device (which can also be simply referred to as master device 1) can include mic1 and mic2, and a plurality of target slave devices matched with the second master device (which can also be simply referred to as master device 2) can include mic3 and mic4. 。

[0047] As Figure 5 shown, the link synchronization method in this embodiment specifically includes the following steps:

[0048] S10, in response to a device connection event, establish an information synchronization link between the first master device and the second master device, and obtain the synchronization connection event anchor point and synchronization connection event interval of the information synchronization link;

[0049] It should be noted that in this embodiment, the two master devices (including master device 1 and master device 2) on the receiving end hardware adopt the same clock source, which can avoid the relative offset of the clocks of the two master devices due to crystal oscillator errors, so as to continuously maintain the Bluetooth clock synchronization of the two master devices.

[0050] On this basis, a special broadcast message is used to establish an information synchronization link for information synchronization between master device 1 and master device 2 (which can also be called a SyncACL link later, with the same meaning), and obtain the synchronization connection event anchor point SyncACL(ap) and synchronization connection event interval SyncACL(connect interval) of the information synchronization link. Among them, the above synchronization connection event anchor point can be directly determined when the information synchronization link is established.

[0051] It should be noted that in this embodiment, since the information synchronization link is used to synchronize the Bluetooth clock and channels, the synchronization connection event interval of the information synchronization link can be set to be much larger than the audio connection event interval of the audio link to reduce the impact on the audio link bandwidth.

[0052] Specifically, for example, SyncACL(connect interval)=MIC(connect interval)*n. Where SyncACL(connect interval) is the synchronization connection event interval of the information synchronization link, and MIC(connect interval) is the audio connection event interval of the audio link (the audio link includes the first audio link corresponding to the first master device or the second audio link corresponding to the second master device). For example, Figure 6 shown, when n is 5, if the audio connection event interval of the audio link is 20 ms, then the synchronization connection event interval of the information synchronization link is 100 ms.

[0053] S20. Synchronize the link timings of the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval.

[0054] Wherein, the first audio link is the audio link between the first master device and the multiple target slave devices matched therewith, and the second audio link is the audio link between the second master device and the multiple target slave devices matched therewith.

[0055] In this embodiment, after the first master device and the second master device establish an information synchronization link and obtain the synchronization connection event anchor point and the synchronization connection event interval of the information synchronization link, the link timings of the first audio link corresponding to the first master device and the second audio link corresponding to the second master device can be synchronized according to the synchronization connection event anchor point and the synchronization connection event interval.

[0056] Such as Figure 7 shown, the audio link constructed by master device 1, mic1 and mic2 is completely synchronized with the audio link constructed by master device 2, mic3 and mic4 in terms of Bluetooth air timings.

[0057] Therefore, compared with the four-transmit two-receive audio transmission method in the prior art, in this embodiment, the two master devices can first establish an information synchronization link, which can be used to synchronize the timings of the two master devices, and obtain the synchronization connection event anchor point and the synchronization connection event interval of this information synchronization link. Furthermore, according to this synchronization connection event anchor point and the synchronization connection event interval, for the first audio link between the first master device and the multiple slave devices matched with the first master device, and the second audio link between the second master device and the multiple slave devices matched with the second master device, link timings are synchronized. Through the above synchronization mechanism between the two master devices, the overlapping of the audio data sending and receiving processes of the two master devices is avoided, the interference between adjacent channels during the audio data sending and receiving process is eliminated, and thus the accuracy of audio data transmission is ensured.

[0058] In one embodiment, in the above step S20, "Synchronize the link timings of the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval" may include:

[0059] S201. Obtain the audio connection event interval corresponding to the synchronization connection event interval, and calculate the anchor point offset according to the audio connection event interval;

[0060] S202. Calculate the audio connection event anchor points of the first audio link corresponding to the first master device and the audio connection event anchor points of the second audio link corresponding to the second master device according to the anchor point offset.

[0061] S203. Synchronize the link timings of the first audio link and the second audio link according to the respective audio connection event anchor points.

[0062] In this embodiment, after the first master device and the second master device establish an information synchronization link and obtain the corresponding synchronization connection event anchor points and synchronization connection event intervals, they can obtain the audio connection event intervals corresponding to the synchronization connection event intervals, and then can calculate the anchor point offset according to the audio connection event intervals.

[0063] Specifically, for example, if the synchronization connection event interval of the information synchronization link is 100 ms, according to the above description, the audio connection event interval can be 20 ms. On this basis, in order to ensure that the audio link can communicate with each of the two mics once within 20 ms, the anchor point offset can be set to 10 ms.

[0064] Furthermore, according to the above anchor point offset, the audio connection event anchor points of the first audio link corresponding to the first master device and the audio connection event anchor points of the second audio link corresponding to the second master device can be calculated. Furthermore, according to the multiple audio connection event anchor points obtained by the above calculation, the link timings of the first audio link and the second audio link can be synchronized.

[0065] In the above S202, "calculate the audio connection event anchor points of the first audio link corresponding to the first master device and the audio connection event anchor points of the second audio link corresponding to the second master device according to the anchor point offset" may include:

[0066] S2021. Set the synchronization connection event anchor point as the first audio connection event anchor point of the audio link between the first master device and the first slave device corresponding to the first master device, and offset the first audio connection event anchor point by the anchor point offset to obtain the second audio connection event anchor point of the audio link between the first master device and the second slave device corresponding to the first master device; and,

[0067] S2021. Set the synchronization connection event anchor point as the third audio connection event anchor point of the audio link between the second master device and the first slave device corresponding to the second master device, and offset the third audio connection event anchor point by the anchor point offset to obtain the fourth audio connection event anchor point of the audio link between the second master device and the second slave device corresponding to the second master device.

[0068] In this embodiment, according to the above description, the target slave devices matched by the first master device may include mic1 and mic2, and the target slave devices matched by the second master device may include mic3 and mic4.

[0069] On this basis, the audio connection event anchor of the mic1 link may be consistent with the synchronization connection event anchor of the information synchronization link, and the audio connection event anchor of the mic2 link may be calculated by adding an anchor offset of 10 ms to the audio connection event anchor of the mic1 link.

[0070] Therefore, the anchors when the first audio links are established between the first master device and the two mics (mic1, mic2) are respectively:

[0071] mic1(ap) = SyncACL(ap)

[0072] mic2(ap) = SyncACL(ap) + 10 ms

[0073] where SyncACL(ap) is the synchronization connection event anchor of the information synchronization link, mic1(ap) is the audio connection event anchor of the mic1 audio link, and mic2(ap) is the audio connection event anchor of the mic2 audio link.

[0074] Similarly, the anchors when the first audio links are established between the second master device and the two mics (mic3, mic4) are respectively:

[0075] mic3(ap) = SyncACL(ap)

[0076] mic4(ap) = SyncACL(ap) + 10 ms

[0077] where SyncACL(ap) is the synchronization connection event anchor of the information synchronization link, mic3(ap) is the audio connection event anchor of the mic3 audio link, and mic4(ap) is the audio connection event anchor of the mic4 audio link.

[0078] Therefore, in this embodiment, after the information synchronization link between the two master devices is established, the audio connection event anchors corresponding to the first audio link and the second audio link can be calculated according to the synchronization connection event anchor of the information synchronization link. Through multiple audio connection event anchors, the link timing synchronization of the first audio link and the second audio link is achieved, avoiding the overlap of the audio data transceiver processes of the two master devices and eliminating the interference between adjacent channels during the audio data transceiver process.

[0079] In one embodiment, after step S20 of "performing link timing synchronization on the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor and the synchronization connection event interval", the method may further include:

[0080] S30, synchronously sharing a preset initial available channel between the first master device and the second master device;

[0081] S40, obtaining a target available channel of the first audio link and a target available channel of the second audio link according to the channel sequence index of the initial available channel and the information synchronization link, where the target available channel of the first audio link and the target available channel of the second audio link are different channels.

[0082] It should be noted that in this embodiment, after the first master device and the second master device establish a SyncACL link, the first master device can scan the background channels regularly (such as every 2 s). The background channels in this embodiment can be wireless channels used for communication between the master and slave devices. On this basis, at least 10 available channels (channels without strong interference, that is, the initial available channels in this embodiment) can be calculated from the above background channels according to the anti-interference algorithm to obtain a channel index sequence.

[0083] On this basis, the above initial available channels can be synchronously shared between the first master device and the second master device through the information synchronization link, so that the first master device and the second master device can obtain a set of identical channel index sequences of the initial available channels through the information synchronization link.

[0084] Furthermore, the target available channel of the first audio link and the target available channel of the second audio link can be obtained according to the channel sequence index of the initial available channel and the information synchronization link.

[0085] It should be noted that in order to make full use of all available channel resources and ensure that channels do not conflict at the same time, the target available channels used by the two master devices at the same time sequence are different in this embodiment.

[0086] It should be noted that in this embodiment, when the available channels of the first master device are updated, the channel sequence index of the updated available channels can be sent to the second master device through the information synchronization link according to the LL_CHANNEL_STATUS_IND command (it can be understood that this command is used to describe the status of channels in Bluetooth communication, such as whether a channel is available or unavailable, etc.). In this way, the two master devices can realize real-time sharing of the available channel sequence.

[0087] In S40 above, "obtaining the target available channels of the first audio link and the target available channels of the second audio link according to the channel sequence index of the initial available channels and the information synchronization link" may include:

[0088] S401, dividing the initial available channels into channel sequences with different parities according to the channel sequence index of the initial available channels;

[0089] S402, obtaining the connection event count corresponding to the information synchronization link;

[0090] S403, obtaining the target available channels of the first audio link and the target available channels of the second audio link according to the least significant bit count value of the connection event count and the parity sequence switching points corresponding to the channel sequences with different parities.

[0091] It should be noted that in this embodiment, according to the above description, in order to avoid the data transceiver of two master devices being interfered with each other when using the same RF channel at the same time sequence, the first master device and the second master device cannot directly use the above initial available channels. Therefore, in order to make full use of all available channel resources and ensure that the channels do not conflict at the same moment, this embodiment can implement dynamic switching of channel sequences on the basis of the original BLE frequency hopping algorithm. The available channels are divided into two subsequences, an even sequence and an odd sequence, according to the channel sequence index of the available channels. The mic links corresponding to the two master devices will dynamically switch the parity sequences during data transmission, which can make full use of all available channel resources and ensure that the channels are mutually exclusive at the same moment.

[0092] Specifically, for example, if the initial available channels are as Figure 8-1 shown, then the even channel sequence and the odd channel sequence are respectively as Figure 8-2 and Figure 8-3 shown.

[0093] Furthermore, when the mic link connection is established, according to BLE SPC (BLE Security Manager Protocol Control, one of the protocols responsible for handling BLE security management), the master device sends a CONNECT_IND data packet to the mic.

[0094] Among them, the data packet contains available channel information. The format of part of the link layer data LLDatad in the CONNECT_IND packet data is as Figure 9As shown, Chm (Connection Hop Master) represents the connection hopping master device in Bluetooth communication and is used to specify the hopping pattern of the connection. Among them, Chm contains 40 bits of data. The lower 37 bits are the available channel status (transmitting information about the available channel sequence), and the higher 3 bits are not used. The highest bit can be defined as the initial channel sequence selection bit. Setting this bit to 0 indicates starting to use the even channel sequence after the mic link connection, and setting it to 1 indicates starting to use the odd channel sequence after the mic link connection.

[0095] In this embodiment, when the first master device connects to the mic link, the value of this bit can be the least significant bit value of the connection event count value of the information synchronization link. When the second master device connects to the mic link, the value of this bit can be the inversion of the least significant bit value of the connection event count value of the information synchronization link. Since the synchronization connection event interval of the information synchronization link is 5 times the audio connection event interval of the mic link, after the mic link connection, taking 5*CE(interval) as the period for frequency alternating switching can ensure that the parity sequence switching point aligns with the synchronization connection event anchor point of the information synchronization link, and it also satisfies that when the least significant bit value of the connection event count value is 0, the first master device corresponds to the even channel sequence and the second master device corresponds to the odd channel sequence, and when the least significant bit value of the connection event count value is 1, the first master device corresponds to the odd sequence and the second master device corresponds to the even sequence.

[0096] The master device can send the data packet after the above configuration to the corresponding mic through the LL_CHANNEL_STATUS_IND command, as Figure 10 shown. The mic can calculate the corresponding even channel sequence and odd channel sequence (i.e., the target available channels in this embodiment) according to the initial channel sequence selection bit in the data packet, and alternately switch the even and odd available channel sequences at the parity sequence switching point within the range of the connection event count value.

[0097] It should be noted that in this embodiment, when the master device updates the available channel sequence according to the anti-interference algorithm, the two master devices of the information synchronization link will use the new channel sequence at the specified connection event count value. Similarly, within the range of this connection event count value, the two master devices update the channel sequence index of the updated available channel to the mic side through the LL_CHANNEL_STATUS_IND command. The mic recalculates the corresponding even channel sequence and odd channel sequence, and alternately switches the even and odd available channel sequences at the corresponding parity sequence switching point within the range of the connection event count value.

[0098] In another embodiment, in the above S40, "obtaining the target available channels of the first audio link and the target available channels of the second audio link according to the channel sequence index of the initial available channels and the information synchronization link" may include:

[0099] S404. Start a radio frequency counter according to the first synchronization connection event anchor point of the information synchronization link;

[0100] S405. Translate the initial available channel sequence multiple times according to the count value of the radio frequency counter and the number of channels of the initial available channels;

[0101] S406. Calculate the target available channels in the translated initial available channel sequence corresponding to the first audio link and the target available channels in the translated initial available channel sequence corresponding to the second audio link according to the number of channels and the count value of the radio frequency counter.

[0102] It should be noted that in this embodiment, in addition to the above embodiment that can select the target channel through the odd-even channel division method, the target available channels can also be determined from the initial available channels through the self-incrementing channel selection algorithm: if the number of channels of the initial available channels is n (n >= 10), the channel sequence index of the mic link CE is RF_index (i.e., the channel sequence index of the target available channels in this embodiment), the channel corresponding to the RF_index sequence of the available channel sequence is the channel currently used by the CE, and the channel sequence index RF_index of the target available channels = (CE(counter) % n), where CE(counter) is the CE(counter) of the mic link and RF_index is the channel sequence index used by the MIC link CE.

[0103] It is worth noting that after the information synchronization link is established, the two master devices start a radio frequency counter RF(counter) at the first audio connection event anchor point. The period of this radio frequency counter is the same as the connection event interval of the mic link. However, since the above radio frequency counter is synchronized in time sequence, that is, the values are the same at the same moment, the initial channels obtained by each mic at the same moment are mutually exclusive.

[0104] Therefore, in this embodiment, in order to enable the mic link to start using channels from RFx_micy (x is the master device, y is the mic index) after being established, the initial available channel sequence q shared by the information synchronization link can be circularly shifted to the left by RFx_micy to obtain a new channel sequence q', and the target available channels are selected according to the new channel sequence q', so as to ensure that the channels of each mic link do not conflict in the same time sequence.

[0105] The specific calculation method of the above RFx_micy can be as follows:

[0106] The RF channel between the first master device and mic1: RFa_mic1 = ((RF(counter) % n) + 0

[0107] The RF channel between the first master device and mic2: RFa_mic2 = ((RF(counter) % n) + 2

[0108] The RF channel between the second master device and mic3: RFb_mic3 = ((RF(counter) % n) + 5

[0109] The RF channel between the second master device and mic4: RFb_mic4 = ((RF(counter) % n) + 7.

[0110] Specifically, for example, when RF(counter) = 100, the initial available channels at this time are as Figure 11 shown. Furthermore, substituting RF(counter) = 100 and the number of channels of the initial available channels as 10 into the formula, it is obtained that the initial available channels are shifted left by 0 bits, 2 bits, 5 bits, and 7 bits respectively, resulting in Figure 12-1 the available channel sequence between the first master device and mic1 as shown, Figure 12-2 the available channel sequence between the first master device and mic2 as shown, Figure 12-3 the available channel sequence between the second master device and mic3 as shown, Figure 12-4 the available channel sequence between the second master device and mic4 as shown.

[0111] Specifically, in the above S406, "calculating the target available channels corresponding to the first audio link and the target available channels corresponding to the second audio link according to the number of channels and the count value of the radio frequency counter" may include:

[0112] S4061, obtaining the first connection event count value of the first slave device in the first audio link corresponding to the count value of the radio frequency counter, the second connection event count value of the second slave device in the first audio link, the third connection event count value of the first slave device in the second audio link, and the fourth connection event count value of the second slave device in the second audio link;

[0113] S4062, calculating the target available channels in the shifted initial available channel sequence corresponding to the first slave device in the first audio link according to the first connection event count value and the number of channels;

[0114] S4063. Calculate the target available channel in the translated initial available channel sequence corresponding to the second slave device in the first audio link according to the second connection event count value and the number of channels.

[0115] S4064. Calculate the target available channel in the translated initial available channel sequence corresponding to the first slave device in the second audio link according to the third connection event count value and the number of channels.

[0116] S4065. Calculate the target available channel in the translated initial available channel sequence corresponding to the second slave device in the second audio link according to the fourth connection event count value and the number of channels.

[0117] In this embodiment, according to the above description, the channel sequence index RF_index of the target available channel is (CE(counter) % n).

[0118] As Figure 13 shown, when the mic link establishes a connection, it aligns with the synchronization connection event anchor of the synchronization link, and the difference in CE(counter) between each mic is an integer multiple of 5.

[0119] On this basis, the terminal device can first obtain the first connection event count value of mic1, the second connection event count value of mic2, the third connection event count value of mic3, and the fourth connection event count value of mic4 corresponding to the count value of the radio frequency counter, and substitute the above multiple connection event count values into RF_index = (CE(counter) % n), and can calculate the channel sequence index of the target available channel of mic1, the channel sequence index of the target available channel of mic2, the channel sequence index of the target available channel of mic3, and the channel sequence index of the target available channel of mic4.

[0120] Specifically, for example, as Figure 13 shown, according to the above description, since the period of the radio frequency counter RF(counter) is the same as the CE(interval) of the mic link, therefore, when RF(counter) = 100, there is only communication between the first master device and mic1 and communication between the second master device and mic3; when RF(counter) = 101, there is only communication between the first master device and mic2 and communication between the second master device and mic4. At this time, as Figure 13As shown, when RF(counter) = 100, the first connection event count value of mic1 is 185 and the third connection event count value of mic3 is 95. When RF(counter) = 101, the second connection event count value of mic2 is 85 and the fourth connection event count value of mic4 is 0. Then, the channel sequence indices of the target available channels for mic1, mic2, mic3, and mic4 can all be calculated to be 5. Correspondingly, the available channels corresponding to the channel sequence index 5 are respectively the target available channels. For example, when RF(counter) = 100, since there is only communication between the first master device and mic1 and communication between the second master device and mic3, therefore, as Figure 12-1 and Figure 12-3 shown, the target available channels corresponding to the channel sequence index 5 are channel 21 and 2 respectively. Similarly, when RF(counter) = 101, since there is only communication between the first master device and mic2 and communication between the second master device and mic4, therefore, as Figure 12-1 and Figure 12-3 shown, the target available channels corresponding to the channel sequence index 5 are channel 30 and 15 respectively.

[0121] Therefore, in this embodiment, through the above-mentioned odd-even channel sequence switching or channel cyclic shift, the available channels of the two master devices during the same time sequence when communicating with the mic slave devices do not intersect, avoiding interference to the audio data transmission and reception caused by using the same channel at the same time sequence.

[0122] This embodiment also provides a link synchronization device, which can be specifically integrated in a terminal device. For example, as Figure 14 shown, the link synchronization device may include:

[0123] A establishing module 1001, configured to respond to a device connection event, establish an information synchronization link between a first master device and a second master device, and obtain a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link;

[0124] A synchronization module 1002, configured to perform link time sequence synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval;

[0125] Wherein, the first audio link is an audio link between the first master device and a plurality of corresponding target slave devices, and the second audio link is an audio link between the second master device and a plurality of corresponding target slave devices.

[0126] The target slave device includes a first slave device and a second slave device. The synchronization module 1002 includes:

[0127] A first calculation unit, configured to obtain an audio connection event interval corresponding to the synchronization connection event interval, and calculate an anchor offset according to the audio connection event interval;

[0128] A second calculation unit, configured to calculate an audio connection event anchor of a first audio link corresponding to the first master device and an audio connection event anchor of a second audio link corresponding to the second master device according to the anchor offset;

[0129] A synchronization unit, configured to perform link timing synchronization between the first audio link and the second audio link according to each of the audio connection event anchors.

[0130] Optionally, the target slave device includes a first slave device and a second slave device. The second calculation unit includes:

[0131] A first setting subunit, configured to set the synchronization connection event anchor as a first audio connection event anchor of an audio link between the first master device and a first slave device corresponding to the first master device, and offset the first audio connection event anchor by the anchor offset to obtain a second audio connection event anchor of an audio link between the first master device and a second slave device corresponding to the first master device; and

[0132] A second setting subunit, configured to set the synchronization connection event anchor as a third audio connection event anchor of an audio link between the second master device and a first slave device corresponding to the second master device, and offset the third audio connection event anchor by the anchor offset to obtain a fourth audio connection event anchor of an audio link between the second master device and a second slave device corresponding to the second master device.

[0133] Optionally, the link synchronization device in this application further includes:

[0134] A sharing module, configured to synchronously share a preset initial available channel between the first master device and the second master device;

[0135] An obtaining module, configured to obtain a target available channel of the first audio link and a target available channel of the second audio link according to a channel sequence index of the initial available channel and the information synchronization link, where the target available channel of the first audio link and the target available channel of the second audio link are different channels.

[0136] Optionally, the obtaining module includes:

[0137] A dividing unit, configured to divide the initially available channels into channel sequences with different parities according to the channel sequence indexes of the initially available channels;

[0138] A first obtaining unit, configured to obtain the connection event count corresponding to the information synchronization link;

[0139] A second obtaining unit, configured to obtain the target available channels of the first audio link and the target available channels of the second audio link according to the least significant bit count value of the connection event count and the parity sequence switching points corresponding to the channel sequences with different parities.

[0140] Optionally, the obtaining module includes:

[0141] A starting unit, configured to start a radio frequency counter according to the first synchronization connection event anchor point of the information synchronization link;

[0142] A translation unit, configured to translate the initially available channel sequence multiple times according to the count value of the radio frequency counter and the number of channels of the initially available channels;

[0143] A third calculating unit, configured to calculate the target available channels in the translated initially available channel sequence corresponding to the first audio link and the target available channels in the translated initially available channel sequence corresponding to the second audio link according to the number of channels and the count value of the radio frequency counter.

[0144] Optionally, the third calculating unit includes:

[0145] An obtaining subunit, configured to obtain the first connection event count of the first slave device in the first audio link, the second connection event count of the second slave device in the first audio link, the third connection event count of the first slave device in the second audio link, and the fourth connection event count of the second slave device in the second audio link corresponding to the count value of the radio frequency counter;

[0146] A first calculating subunit, configured to calculate the target available channels in the translated initially available channel sequence corresponding to the first slave device in the first audio link according to the first connection event count and the number of channels;

[0147] A second calculating subunit, configured to calculate the target available channels in the translated initially available channel sequence corresponding to the second slave device in the first audio link according to the second connection event count and the number of channels;

[0148] A third calculation subunit, configured to calculate a target available channel in the translated initial available channel sequence corresponding to the first slave device in the second audio link according to the third connection event count value and the number of channels;

[0149] A fourth calculation subunit, configured to calculate a target available channel in the translated initial available channel sequence corresponding to the second slave device in the second audio link according to the fourth connection event count value and the number of channels.

[0150] For the specific implementation of each of the above operations, reference may be made to the foregoing embodiments, which will not be elaborated herein.

[0151] Correspondingly, an embodiment of the present application further provides an electronic device, as Figure 15 shown Figure 15 is a schematic structural diagram of the electronic device provided by the embodiment of the present application. The electronic device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored on the memory 1102 and executable on the processor. Among them, the processor 1101 is electrically connected to the memory 1102. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components.

[0152] The processor 1101 is the control center of the electronic device 1100, connects various parts of the entire electronic device 1100 through various interfaces and lines, and by running or loading software programs and / or units stored in the memory 1102, and calling data stored in the memory 1102, executes various functions of the electronic device 1100 and processes data, thereby monitoring the entire electronic device 1100. The processor 1101 may be a processor CPU and a network processor (NP), etc., and may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.

[0153] In the embodiment of the present application, the processor 1101 in the electronic device 1100 will load the instructions corresponding to the processes of one or more application programs into the memory 1102 according to the following steps, and the processor 1101 will run the application programs stored in the memory 1102 to implement various functions, such as:

[0154] In response to a device connection event, establish an information synchronization link between the first master device and the second master device, and obtain a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link;

[0155] Synchronize the link timings of the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor points and the synchronization connection event intervals;

[0156] Among them, the first audio link is the audio link between the first master device and a plurality of corresponding matching target slave devices, and the second audio link is the audio link between the second master device and a plurality of corresponding matching target slave devices.

[0157] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0158] Optionally, as Figure 15 shown, the electronic device 1100 further includes: a radio frequency circuit 1103, an audio circuit 1104, an input unit 1105, and a power supply 1106. Among them, the processor 1101 is electrically connected to the radio frequency circuit 1103, the audio circuit 1104, the input unit 1105, and the power supply 1106 respectively. Those skilled in the art can understand that Figure 15 the structure of the electronic device shown in

[0159] does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0160] The radio frequency circuit 1103 can be used to receive and transmit radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and receive and transmit signals with the network device or other electronic devices.

[0161] The audio circuit 1104 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1104 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1104 and then converted into audio data. After the audio data is output to the processor 1101 for processing, it is sent through the radio frequency circuit 1103 to, for example, another electronic device, or the audio data is output to the memory 1102 for further processing. The audio circuit 1104 may also include an earphone jack to provide communication between an external headphone and the electronic device.

[0162] The power supply 1106 is used to supply power to various components of the electronic device 1100. Optionally, the power supply 1106 can be logically connected to the processor 1101 through a power management system, so as to manage functions such as charging, discharging, and power consumption management through the power management system. The power supply 1106 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0163] Although Figure 15 not shown in the figure, the electronic device 1100 may further include sensors, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.

[0164] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0165] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0166] For this reason, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute any link synchronization method provided by the embodiments of the present application. The computer programs can execute the following steps of the link synchronization method:

[0167] In response to a device connection event, establish an information synchronization link between the first master device and the second master device, and obtain a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link;

[0168] According to the synchronization connection event anchor point and the synchronization connection event interval, perform link timing synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device;

[0169] Wherein, the first audio link is an audio link between the first master device and a plurality of corresponding matching target slave devices, and the second audio link is an audio link between the second master device and a plurality of corresponding matching target slave devices.

[0170] For the specific implementation of each of the above operations, reference can be made to the previous embodiments and will not be elaborated here.

[0171] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc.

[0172] Since the computer program stored in the computer-readable storage medium can execute any one of the link synchronization methods provided by the embodiments of the present application, the beneficial effects achievable by any one of the link synchronization methods provided by the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated here.

[0173] In the above link synchronization device, computer-readable storage medium, and electronic device, the descriptions of each embodiment have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes and beneficial effects of the above-described link synchronization device, computer-readable storage medium, computer program product, electronic device, and their corresponding units can refer to the description of the link synchronization method in the above embodiments and will not be elaborated here specifically.

[0174] The above has introduced in detail a link synchronization method, system, electronic device, and computer-readable storage medium provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A link synchronization method, characterized in that, The described link synchronization method is applied to an audio transmission system, which includes: a first master device, a second master device, multiple target slave devices matched with the first master device, and multiple target slave devices matched with the second master device; The method includes: Responding to a device connection event, establishing an information synchronization link between the first master device and the second master device, and obtaining a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link; and According to the synchronization connection event anchor point and the synchronization connection event interval, performing link timing synchronization on a first audio link corresponding to the first master device and a second audio link corresponding to the second master device; Wherein, the first audio link is an audio link between the first master device and multiple target slave devices matched therewith, and the second audio link is an audio link between the second master device and multiple target slave devices matched therewith.

2. The link synchronization method according to claim 1, wherein The performing link timing synchronization on the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval includes: Obtaining an audio connection event interval corresponding to the synchronization connection event interval, and calculating an anchor point offset according to the audio connection event interval; According to the anchor point offset, calculating an audio connection event anchor point of the first audio link corresponding to the first master device and an audio connection event anchor point of the second audio link corresponding to the second master device; and, Performing link timing synchronization on the first audio link and the second audio link according to each audio connection event anchor point.

3. The link synchronization method according to claim 2, characterized in that The target slave device includes a first slave device and a second slave device. The calculating an audio connection event anchor point of the first audio link corresponding to the first master device and an audio connection event anchor point of the second audio link corresponding to the second master device according to the anchor point offset includes: Setting the synchronization connection event anchor point as a first audio connection event anchor point of an audio link between the first master device and a first slave device corresponding to the first master device, and offsetting the first audio connection event anchor point by the anchor point offset to obtain a second audio connection event anchor point of an audio link between the first master device and a second slave device corresponding to the first master device; and, Setting the synchronization connection event anchor point as a third audio connection event anchor point of an audio link between the second master device and a first slave device corresponding to the second master device, and offsetting the third audio connection event anchor point by the anchor point offset to obtain a fourth audio connection event anchor point of an audio link between the second master device and a second slave device corresponding to the second master device.

4. The link synchronization method according to claim 1, wherein After performing link timing synchronization on the first audio link corresponding to the first master device and the second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval, it includes: Synchronously sharing a preset initial available channel between the first master device and the second master device; Obtain the target available channels of the first audio link and the target available channels of the second audio link according to the channel sequence index of the initial available channels and the information synchronization link, where the target available channels of the first audio link and the target available channels of the second audio link are different channels.

5. The link synchronization method according to claim 4, wherein The obtaining the target available channels of the first audio link and the target available channels of the second audio link according to the channel sequence index of the initial available channels and the information synchronization link includes: Divide the initial available channels into channel sequences with different parities according to the channel sequence index of the initial available channels; Obtain the connection event count corresponding to the information synchronization link; Obtain the target available channels of the first audio link and the target available channels of the second audio link according to the least significant bit count value of the connection event count and the parity sequence switching points corresponding to the channel sequences with different parities.

6. The link synchronization method according to claim 4, characterized in that The obtaining the target available channels of the first audio link and the target available channels of the second audio link according to the channel sequence index of the initial available channels and the information synchronization link includes: Start a radio frequency counter according to the first synchronization connection event anchor point of the information synchronization link; Perform multiple translations on the initial available channel sequence according to the count value of the radio frequency counter and the number of channels of the initial available channels; Calculate the target available channels in the translated initial available channel sequence corresponding to the first audio link and the target available channels in the translated initial available channel sequence corresponding to the second audio link according to the number of channels and the count value of the radio frequency counter.

7. The link synchronization method according to claim 6, characterized in that The calculating the target available channels in the translated initial available channel sequence corresponding to the first audio link and the target available channels in the translated initial available channel sequence corresponding to the second audio link according to the number of channels and the count value of the radio frequency counter includes: Obtain the first connection event count value of the first slave device in the first audio link, the second connection event count value of the second slave device in the first audio link, the third connection event count value of the first slave device in the second audio link, and the fourth connection event count value of the second slave device in the second audio link corresponding to the count value of the radio frequency counter; Calculate the target available channels in the translated initial available channel sequence corresponding to the first slave device in the first audio link according to the first connection event count value and the number of channels; Calculate the target available channels in the translated initial available channel sequence corresponding to the second slave device in the first audio link according to the second connection event count value and the number of channels; Calculate the target available channels in the translated initial available channel sequence corresponding to the first slave device in the second audio link according to the third connection event count value and the number of channels; A target available channel in the shifted initial available channel sequence corresponding to the second slave device in the second audio link is calculated according to the fourth connection event count value and the number of channels.

8. A link synchronization device, characterized in that, include: An establishing module, used to respond to a device connection event, establish an information synchronization link between the first master device and the second master device, and obtain a synchronization connection event anchor point and a synchronization connection event interval of the information synchronization link; a synchronization module, configured to perform link timing synchronization between a first audio link corresponding to the first master device and a second audio link corresponding to the second master device according to the synchronization connection event anchor point and the synchronization connection event interval; The first audio link is an audio link between the first master device and a plurality of correspondingly matched target slave devices, and the second audio link is an audio link between the second master device and a plurality of correspondingly matched target slave devices.

9. An electronic device, characterized in that, It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 7.