Device addition method, device, Bluetooth chip, and device

By dynamically updating CIG parameters using private commands in Bluetooth technology, the problem of disconnecting the CIS link when adding new devices to CIG in the prior art is solved, and the ability to efficiently add devices without interrupting audio playback is achieved.

CN115175149BActive Publication Date: 2025-05-30GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110357763.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-01
Publication Date
2025-05-30
Estimated Expiration
2041-04-01

AI Technical Summary

Technical Problem

When existing Bluetooth technology adds new devices to a connected synchronous stream group (CIG), it requires disconnection and reconstruction of the CIS link, resulting in interruption of audio playback and inefficiency in addition to inefficiency in addition to the added efficiency.

Method used

By implementing private commands in the main device, dynamically update the CIG parameters, and when the original CIS link is constantly opened, new devices are added to the CIG, a new CIS link is established, and the CIG parameters of all devices are updated.

Benefits of technology

The ability to dynamically add devices in CIG is realized, avoiding audio playback interruptions caused by CIS link disconnection, and improving the efficiency and user experience of device addition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115175149B_ABST
    Figure CN115175149B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a device adding method, apparatus, Bluetooth chip and device, belonging to the technical field of Bluetooth. The method includes: establishing a CIS link with n first slave devices, the n first slave devices belonging to the same CIG, and each first slave device sending and receiving data on its corresponding CIS link based on the original CIG parameters; in response to an adding request of a second slave device, adding the second slave device to the CIG and establishing a CIS link with the second slave device; sending CIG parameter update data including updated CIG parameters to the n first slave devices, so that each first slave device sends and receives data on its corresponding CIS link based on the updated CIG parameters, and the second slave device sends and receives data on the CIS link based on the updated CIG parameters. During the device adding process, the CIS link between the master device and the original slave devices does not need to be disconnected and re-established, improving the adding efficiency of the slave devices and realizing the dynamic increase of the CIS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Bluetooth technology, and particularly to a device adding method, apparatus, Bluetooth chip and device. Background Art

[0002] As one of the main features released by the Bluetooth 5.2 standard protocol, the Connected Isochronous Stream (CIS) and the Connected Isochronous Group (CIG) can achieve one-master-multi-slave audio transmission among multiple devices.

[0003] Before the master device establishes a CIS link with a slave device, it first sets the CIG parameters for the CIG and all the CISs in the CIG, and then establishes a CIS link with each slave device one by one. Among them, after a CIS link in the CIG is established, the state of the CIG becomes the Active state. Correspondingly, within the duration of the CIG, the CIG parameters cannot be changed. Summary of the Invention

[0004] The embodiments of the present application provide a device adding method, apparatus, Bluetooth chip and device. The technical solutions are as follows:

[0005] On the one hand, the embodiments of the present application provide a device adding method, which is used for a master device, and the method includes:

[0006] Establish CIS links with n first slave devices, where the n first slave devices belong to the same CIG, and each of the first slave devices transmits and receives data on its corresponding CIS link based on the original CIG parameters, and n is a positive integer;

[0007] In response to the addition request of a second slave device, add the second slave device to the CIG and establish a CIS link with the second slave device; and,

[0008] Send CIG parameter update data including updated CIG parameters to the n first slave devices, so that each of the first slave devices transmits and receives data on its corresponding CIS link based on the updated CIG parameters, and the second slave device transmits and receives data on the CIS link based on the updated CIG parameters.

[0009] On the other hand, the embodiments of the present application provide a device adding apparatus, and the apparatus includes:

[0010] A first establishment module, configured to establish a CIS link with n first slave devices, where the n first slave devices belong to the same CIG, and each of the first slave devices transmits and receives data on its corresponding CIS link based on the original CIG parameters, and n is a positive integer;

[0011] A second establishment module, configured to add the second slave device to the CIG in response to an addition request of the second slave device, and establish a CIS link with the second slave device;

[0012] A sending module, configured to send CIG parameter update data including updated CIG parameters to the n first slave devices, so that each of the first slave devices transmits and receives data on its corresponding CIS link based on the updated parameters, and the second slave device transmits and receives data on the CIS link based on the updated CIG parameters.

[0013] On the other hand, an embodiment of the present application provides a Bluetooth chip, where the Bluetooth chip includes a processor and a memory, and at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the device addition method as described in the above aspect. On the other hand, an embodiment of the present application provides an electronic device with Bluetooth function, where the Bluetooth chip as described in the above aspect is provided in the electronic device.

[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, where at least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a Bluetooth chip to implement the device addition method as described in the above aspect.

[0015] On the other hand, an embodiment of the present application provides a computer program product or a computer program, where the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The Bluetooth chip of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the device addition method provided in various optional implementation manners of the above aspect.

[0016] The technical solution provided by the embodiment of the present application can bring the following beneficial effects:

[0017] In the embodiments of the present application, when the master device establishes a CIS link with the slave devices in the CIG and conducts data transmission and reception with each slave device through the CIS link, if an addition request from the second slave device is received, the CIS of the new slave device is added to the CIG, and based on the change of the CIG parameters after adding the CIS, the CIG parameters of the original slave devices in the CIG are updated, so that both the original slave devices and the new slave devices can transmit and receive data on the CIS link based on the updated CIG parameters; during the device addition process, the CIS link between the master device and the original slave devices does not need to be disconnected and re-established. On the one hand, it avoids the interruption of audio playback at the slave device due to the disconnection of the CIS link. On the other hand, it improves the device addition efficiency of the slave devices, realizing the dynamic increase of the CIS in the CIG. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 FIG. shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

[0020] Figure 2 FIG. shows a flowchart of a device addition method provided by an exemplary embodiment of the present application;

[0021] Figure 3 FIG. is a schematic diagram of the data transmission and reception process between the master device and the slave devices before adding a device shown in an exemplary embodiment;

[0022] Figure 4 FIG. is a schematic diagram of the data transmission and reception process between the master device and the slave devices after adding a device shown in an exemplary embodiment;

[0023] Figure 5 FIG. shows a flowchart of a device addition method provided by another exemplary embodiment of the present application;

[0024] Figure 6 FIG. is a schematic diagram of the CIS synchronization delay and the CIG synchronization delay before and after adding a device;

[0025] Figure 7 FIG. is a schematic diagram of the CIG event start count determination process shown in an exemplary embodiment of the present application;

[0026] Figure 8 FIG. is a timing diagram of the implementation process of a device addition method shown in an exemplary embodiment of the present application;

[0027] Figure 9 The block diagram of the device adding apparatus provided by an embodiment of the present application is shown;

[0028] Figure 10 The block diagram of an electronic device with Bluetooth function provided by an exemplary embodiment of the present application is shown. Detailed implementation manners

[0029] To make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0030] For the convenience of understanding, the terms in the embodiments of the present application will be described first below.

[0031] CIS and CIG: In a connection, each stream is called a CIS. When multiple CISs need to be synchronized, multiple CISs are configured as a CIG, and the CISs belonging to the same CIG share timing reference data, so as to realize the synchronous playback of independent audio data streams based on the timing reference data. For example, when the terminal plays audio through the left and right earphones of a Bluetooth headset, the left and right earphones respectively correspond to one CIS, and these two CISs belong to the same CIG. Correspondingly, the left and right earphones realize audio synchronization playback based on the timing reference data.

[0032] Among them, the master device can create multiple CIGs, and the CIG supports bidirectional data transmission. For example, when a Bluetooth headset is provided with a microphone, the CIS can be used to receive audio data sent by the terminal and send the audio data collected by the microphone to the terminal.

[0033] CIG parameters: Include the CIG and the relevant parameters of each CIS in the CIG. In some embodiments, the CIG parameters include the CIG identifier, and the CIS identifiers of each CIS in the CIG. In addition, the CIG parameters also include the CIS synchronization delay (CIS_Sync_Delay) and the CIG synchronization delay (CIG_Sync_Delay) of each CIS, so that each CIS in the CIG can be synchronized.

[0034] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment includes a master device 110 (master) and at least two slave devices 120 (slave). Among them, the master device can also be called Central, and the slave device can also be called Peripherals.

[0035] Both the master device 110 and the slave device 120 are electronic devices with Bluetooth capabilities. The master device 110 is in the master device mode, while the slave device 120 is in the slave device mode. Among them, an electronic device operating in the master device mode can actively search for other Bluetooth devices around and select a Bluetooth device to connect to, while an electronic device operating in the slave device mode can only be searched by other electronic devices and cannot actively search.

[0036] In some embodiments, the master device 110 can be a smartphone, a tablet computer, a wearable device, a personal computer, etc., and the slave device 120 can be a smart speaker, a Bluetooth headset, a TV, a smartphone, etc. Figure 1 Taking the master device 110 as a smartphone and the slave device 120 including a Bluetooth headset 121 and a Bluetooth speaker 122 as an example for illustration, but this is not a limitation thereto.

[0037] In the embodiments of the present application, the master device 110 supports establishing Bluetooth connections with multiple slave devices 120 simultaneously. In a possible implementation manner, both the master device 110 and the slave devices 120 support the CIG / CIS function (i.e., support the standard protocol of Bluetooth 5.2 and above). After the master device 110 establishes CIS links with multiple slave devices 120, it can simultaneously send the same audio data stream to multiple slave devices 120, enabling multiple slave devices 120 to play music synchronously. The CIG / CIS function can be applied to audio sharing scenarios such as true wireless (TWS) headphones and multi-room audio synchronization.

[0038] Schematically, as Figure 1 shown, the master device 110 can simultaneously establish Bluetooth connections with the Bluetooth headset 121 and the Bluetooth speaker 122. Among them, two CIS links are established between the master device 110 and the left / right Bluetooth headset 121, and one CIS link is established between the master device 110 and the Bluetooth speaker 122. Moreover, the Bluetooth headset 121 and the Bluetooth speaker 122 belong to the same CIG, that is, the CIG contains three CISs. When the master device 110 plays audio through the Bluetooth headset 121 and the Bluetooth speaker, the master device 110 transmits the audio data stream (i.e., the audio data streams 1, 2, and 3 in the figure) to the left / right Bluetooth headset 121 and the Bluetooth speaker 122 respectively through three CIS links.

[0039] In the related art, each CIS in a CIG implements synchronous playback of independent audio streams based on the same Service Data Unit Synchronization Reference (SDU Synchronization Reference). Therefore, in order to ensure that each CIS remains synchronized, the Bluetooth 5.2 standard protocol stipulates that when a CIS link is established, within the duration of the CIG, the CIG parameters of each CIS are not allowed to change. Correspondingly, if a new CIS needs to be added to the CIG, it is necessary to disconnect each CIS link, remove the originally set CIG parameters, and then re - establish the CIS link after re - setting the CIG parameters.

[0040] Schematically, as Figure 1 shown, the master device 110 first establishes two CIS links with the Bluetooth headset 121 (each of the left and right headsets corresponds to one CIS link), so as to synchronously play audio through the Bluetooth headset 121. When it is necessary to play audio through both the Bluetooth headset 121 and the Bluetooth speaker 122 simultaneously, since a CIS needs to be added to the CIG, therefore, the master device 110 first needs to disconnect the two CIS links with the Bluetooth headset 121, remove the originally set CIG parameters, and then re - set the CIG parameters based on the Bluetooth headset 121 and the Bluetooth speaker 122. Further, the master device 110 sequentially establishes three CIS links with the Bluetooth headset 121 and the Bluetooth speaker 122 based on the re - set CIG parameters. Obviously, based on the current Bluetooth standard protocol, dynamic addition of CIS cannot be achieved. The process of adding a CIS is cumbersome and time - consuming, and it will cause interruption of existing CISs, affecting the user experience.

[0041] In the embodiment of the present application, by using private commands, relevant parameters of a new CIS are added to the CIG in which an audio data stream is being transmitted, and private commands are used to dynamically update the CIG parameters of existing CISs, thereby realizing dynamic addition of CISs. Moreover, during the addition process, there is no need to disconnect existing CISs and reconstruct CISs, which improves the addition efficiency of CISs and reduces the impact on existing CISs during the addition process.

[0042] Please refer to Figure 2 , which shows a flowchart of a device addition method provided by an exemplary embodiment of the present application. In this embodiment, taking the method being used for the Figure 1 shown master device as an example for illustration, the method includes:

[0043] Step 201, establish CIS links with n first slave devices. The n first slave devices belong to the same connection - oriented synchronous stream group CIG, and each first slave device transceives data on its corresponding CIS link based on the original CIG parameters, where n is a positive integer.

[0044] In a possible implementation, the master device first sets the CIG parameters. After completing the setting of the CIG parameters, it establishes CIS links with each first slave device in sequence, and a total of n CIS links are established. After completing the establishment of the CIS links with each first slave device, the master device can transmit data to each first slave device through the CIS links.

[0045] Among them, the number of first slave devices is at least one, that is, the CIG is composed of at least one CIS. In a schematic example, when the first slave devices are left / right Bluetooth earphones, the master device establishes two CIS links with the left / right Bluetooth earphones respectively, that is, the CIG is composed of two CISs; when the first slave device is a Bluetooth speaker, the master device establishes one CIS link with the Bluetooth speaker, that is, the CIG is composed of one CIS. In the embodiments of the present application, the number of CISs in the CIG in the initial state is not limited.

[0046] Optionally, the original CIG parameters include the CIG identifier and the CIS identifiers of each CIS. And, in order to synchronize each first slave device, the original CIG parameters also include delay data for synchronization. For example, when there are two first slave devices, the original CIG parameters include: CIG_ID = 0x00, CIS_ID[0] = 0x00, CIS_ID[1] = 0x01, CIG_Sync_Delay (CIG synchronization delay), and the CIS_Sync_Delay (CIS synchronization delay) corresponding to each of the two CISs.

[0047] Schematically, after the master device establishes CIS links with slave device A and slave device B, the process of data transmission and reception between the master device and each slave device is as Figure 3 shown. Among them, the burst number (Burst Number, BN) of the master device transmitting data to the slave device is set to 1 (BN_C_To_P = 1), the burst number of the slave device transmitting data to the master device is set to 1 (BN_P_To_C = 1), and the number of sub-events (Number of SubEvent, NSE) is set to 1 (NSE = 1).

[0048] Step 202, in response to the addition request of the second slave device, add the second slave device to the CIG and establish a CIS link with the second slave device.

[0049] In a possible implementation, when a Bluetooth device other than the first slave device is searched and a connection operation on the Bluetooth device is received, the master device determines that the addition request of the second slave device is received, and determines the Bluetooth device as the second slave device to be added to the CIG. Further, the master device creates a CIS corresponding to the second slave device and adds the CIS to the CIG.

[0050] Optionally, the master device directly adds the second slave device to the CIG. Alternatively, the master device determines whether the CIG supports adding a new CIS based on the current CISs included in the CIG and the CIS corresponding to the second slave device. If it supports, the second slave device is added to the CIG; if not, a prompt is given. The following embodiments will elaborate on the specific method for determining whether the CIG supports adding a new CIS.

[0051] After adding the second slave device, since the number of CISs in the CIG changes, the original CIG parameters corresponding to the original CIG may not be applicable to the current CIG. To ensure that each CIS in the CIG can still be synchronized after dynamically adding a slave device, the master device first needs to update the original CIG parameters to obtain updated CIG parameters, and establish a CIS link with the second slave device based on the updated CIG parameters.

[0052] Optionally, the CIG identifier included in the original CIG parameters is the same as that in the updated CIG parameters, the number of CIS identifiers included is different, and the CIG_Sync_Delay and the CIS_Sync_Delay corresponding to each CIS are different.

[0053] Combined with the example in the above steps, after adding a second slave device, the updated CIG parameters include: CIG_ID = 0x00, CIS_ID[0] = 0x00, CIS_ID[1] = 0x01, CIS_ID[2] = 0x10, CIG_Sync_Delay, and the CIS_Sync_Delay corresponding to each of the three CISs.

[0054] Step 203: Send CIG parameter update data containing the updated CIG parameters to the n first slave devices, so that each first slave device can send and receive data on its corresponding CIS link based on the updated CIG parameters, and the second slave device sends and receives data on the CIS link based on the updated CIG parameters.

[0055] After the CIS link is established based on the updated CIG parameters, the master device needs to update the CIG parameters of each first slave device in the original CIG. In a possible implementation, the master device uses a private command to send CIG parameter update data containing the updated CIG parameters to each first slave device. After the first slave device replaces the original CIG parameters with the updated CIG parameters, it can be synchronized with other first slave devices and the second slave device (such as synchronous audio playback).

[0056] It should be noted that during the process of the master device sending CIG parameter update data to the first slave device, the CIS link between the first slave device and the master device remains, that is, the CIG parameter update process does not affect the data stream transmission between the first slave device and the master device.

[0057] Illustratively, the master device has established CIS links with slave device A and slave device B. On the basis of Figure 3 , after the master device establishes a CIS link with slave device C, the process of data transmission and reception between the master device and each slave device is as shown in Figure 4 shown.

[0058] In summary, in the embodiment of the present application, when the master device establishes a CIS link with the slave devices in the CIG and performs data transmission and reception with each slave device through the CIS link, if a connection request from the second slave device is received, the CIS of the new slave device is added to the CIG, and based on the change of the CIG parameters after adding the CIS, the CIG parameters of the original slave devices in the CIG are updated, so that both the original slave devices and the new slave devices can transmit and receive data on the CIS link based on the updated CIG parameters; during the device addition process, the CIS link between the master device and the original slave devices does not need to be disconnected and re-established. On the one hand, it avoids the interruption of audio playback at the slave device due to the disconnection of the CIS link, and on the other hand, it improves the addition efficiency of the slave device, realizing the dynamic increase of the CIS in the CIG.

[0059] With the increase of the CIS in the CIG, on the one hand, it will increase the delay of data transmission between the master and slave devices, and on the other hand, it will increase the data transmission volume of the master device. If the dynamic addition of the CIS is not restricted, the master device establishing CIS links with too many slave devices will affect the data stream transmission quality. Therefore, in the embodiment of the present application, the master device is provided with CIG joining conditions, and only when the second slave device meets the CIG joining conditions, the master device will dynamically add the CIS to the CIG. The following uses an exemplary embodiment for illustration.

[0060] Please refer to Figure 5 , which shows a flowchart of a device addition method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method being used for the master device shown in Figure 1 as an example. The method includes:

[0061] Step 501, establish CIS links with n first slave devices. The n first slave devices belong to the same CIG, and each first slave device transmits and receives data on its corresponding CIS link based on the original CIG parameters. n is a positive integer.

[0062] The implementation manner of this step can refer to step 201, and this embodiment will not elaborate here.

[0063] Step 502: In response to the addition request of the second slave device, determine whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device.

[0064] In a possible implementation manner, when receiving the addition request, the master device establishes a low-power Bluetooth asynchronous connection (BLE ACL link) with the second slave device and obtains the configuration (profile) parameters of the second slave device, so as to detect whether the second slave device meets the CIG joining condition based on the configuration parameters. If it meets the condition, execute Step 503; if it does not meet the condition, give a prompt indicating that the upper limit of the currently connected slave devices has been reached.

[0065] Since adding a CIS will affect the transmission delay and the transmission bandwidth of each CIS, in the embodiments of the present application, the master device determines whether the CIG joining condition is met based on the transmission delay and the transmission bandwidth after adding the CIS. Optionally, this step may include the following sub-steps.

[0066] 1. Based on the configuration parameters, determine the Protocol Data Unit (PDU) transmission delay after adding the second slave device. The PDU transmission delay includes the PDU transmission delay from the master device to the slave device and the PDU transmission delay from the slave device to the master device.

[0067] In a possible implementation manner, the master device determines the transmission time taken when the second slave device and the master device perform PDU data packet transmission based on the configuration parameters of the second slave device, and then determines the PDU transmission delay after adding the second slave device based on the transmission time taken and the PDU transmission delay before adding the second slave device. Among them, the configuration parameters may include the bit rate, coding method information, etc. when the second slave device performs data transmission. This embodiment does not limit this.

[0068] Optionally, since two-way transmission is supported between the master device and the slave device, the master device determines the PDU transmission delay from the master device to the second slave device after adding the second slave device based on the transmission time taken when the master device sends a PDU data packet to the second slave device and the PDU transmission delay from the master device to the slave device before adding the second slave device; the master device determines the PDU transmission delay from the second slave device to the master device after adding the second slave device based on the transmission time taken when the second slave device sends a PDU data packet to the master device and the PDU transmission delay from the second slave device to the master device before adding the second slave device.

[0069] 2. Based on the configuration parameters, determine the PDU transmission bandwidth of the CIS corresponding to the second slave device and the Service Data Unit (SDU) transmission bandwidth. The SDU transmission bandwidth is the transmission bandwidth when the upper layer sends an SDU to the lower layer.

[0070] For the newly added CIS, if the transmission bandwidth when the upper layer sends SDUs to the lower layer is greater than the transmission bandwidth when the lower layer transmits PDUs, data transmission between the master device and the second slave device will not be possible. Here, the upper layer is the host and the lower layer is the controller. Therefore, in this embodiment, to ensure normal data transmission after establishing the CIS, the terminal needs to determine the PDU transmission bandwidth and the SDU transmission bandwidth corresponding to the CIS of the second slave device based on the configuration parameters of the second slave device, and detect whether the PDU transmission bandwidth is greater than or equal to the SDU transmission bandwidth.

[0071] Third, in response to the PDU transmission delay being less than the maximum transmission delay set for the CIG, and the PDU transmission bandwidth of each CIS being greater than the SDU transmission bandwidth, it is determined that the second slave device meets the CIG joining condition.

[0072] In a possible implementation, during the process of the master device setting the original CIG parameters, a maximum transmission delay is set for the CIG, and this maximum transmission delay includes Max_Transport_Latency_C_To_P (from the master device to the slave device) and Max_Transport_Latency_P_To_C (from the slave device to the master device).

[0073] After the master device determines the PDU transmission delay, it detects whether the PDU transmission delay is less than the maximum transmission delay. Specifically, the master device detects whether the PDU transmission delay from the master device to the slave device is less than Max_Transport_Latency_C_To_P, and detects whether the PDU transmission delay from the slave device to the master device is less than Max_Transport_Latency_P_To_C.

[0074] When the PDU transmission delay after adding the second slave device is less than the maximum transmission delay (both two-way transmission delays are satisfied), and the PDU transmission bandwidth of the CIS corresponding to the second slave device is greater than the SDU transmission bandwidth, the master device determines that the second slave device meets the CIG joining condition.

[0075] It should be noted that in other possible implementation manners, the master device can also use the number of CISs in the CIG as one of the measurement criteria, and this embodiment does not limit this.

[0076] Step 503, in response to the second slave device meeting the CIG joining condition, add the second slave device to the CIG.

[0077] When the second slave device meets the CIG joining condition, the master device immediately adds the second slave device to the CIG. After adding the second slave device, the CIG includes the original CISs and the newly added CISs corresponding to the second slave device.

[0078] Step 504: Establish a CIS link with the second slave device and send the updated CIG parameters to the second slave device.

[0079] In the same CIG, each CIS in different channels realizes the synchronous playback of independent audio streams based on the same SDU Synchronization Reference, and the SDU Synchronization Reference is closely related to the CIS synchronization delay and the CIG synchronization delay. Therefore, when updating the CIG parameters, the terminal needs to determine the CIS synchronization delay (CIS_Sync_Delay) and the CIG synchronization delay (CIG_Sync_Delay) of each CIS after adding the second slave device, so as to send the updated CIG parameters including the CIS synchronization delay and the CIG synchronization delay to the second slave device. Among them, the CIS synchronization delay at least includes the CIS synchronization delay corresponding to the second slave device's CIS.

[0080] Regarding the process of determining the updated CIG parameters, in a possible implementation manner, the master device determines the updated CIG parameters based on the configuration parameters of the first slave device and the second slave device in the same way as determining the original CIG parameters. This embodiment will not be elaborated here.

[0081] In a schematic example, the master device first establishes CIS links with device A and device B. At this time, as Figure 6 shown, the original CIG parameters include the CIS synchronization delay (CIS_Sync_Delay for CISA) corresponding to device A (CIS A), the CIS synchronization delay (CIS_Sync_Delay for CIS B) corresponding to device B (CIS B), and the CIG synchronization delay (CIG_Sync_Delay) corresponding to the CIG. When the master device adds device C to the CIG, as Figure 6 shown, the updated CIG parameters include the CIS synchronization delay (CIS_Sync_Delay for CIS A) corresponding to device A (CIS A), the CIS synchronization delay (CIS_Sync_Delay for CIS B) corresponding to device B (CIS B), the CIS synchronization delay (CIS_Sync_Delay for CIS C) corresponding to device C (CIS C), and the CIG synchronization delay (CIG_Sync_Delay) corresponding to the CIG. It can be seen that in the updated CIG parameters, in addition to adding the CIS synchronization delay corresponding to device C, the CIS synchronization delays corresponding to device A and device B change, and the CIG synchronization delay also changes.

[0082] Through the above steps, the master device completes the dynamic addition of the slave device. Further, the CIG parameters of the original slave device are updated through the following steps 505 to 507.

[0083] Step 505: Determine the start time when the second slave device starts to send and receive data.

[0084] To avoid the impact of CIG parameter update on the data transmission between the first slave device and the master device, in this embodiment, the master device determines the start time when the second slave device starts to send and receive data, and notifies each first slave device of this start time, so that the first slave device starts to use the updated CIG parameters from this start time and continues to use the original CIG parameters before this start time.

[0085] In CIG, there is a concept of CIG Event. In each CIG event, each CIS in CIG completes at least BN times and at most NSE times of data sending and receiving. The values of BN and NSE are related to specific CIS parameters. And during the data sending and receiving process of the master device, the execution times of CIG events will be recorded, that is, after each execution of a CIG event, the CIG event count is incremented by one. Therefore, in the embodiment of this application, the master device uses the CIG event count to indicate the start time when the second slave device starts to send and receive data. In a possible implementation manner, this step may include the following sub-steps.

[0086] 1. Obtain the current CIG event count, which is used to represent the execution times of CIG events.

[0087] In a possible implementation manner, after the master device completes the addition of CIS, it obtains the current CIG event count. Schematically, in combination with the example in the above steps, such as Figure 7 As shown, one CIG event is the data sending and receiving process of CIS A and CIS B. When the addition of CIS is completed, the master device obtains the current CIG event count as y.

[0088] 2. Determine the CIG event start count based on the current CIG event count. The CIG event start count is used to indicate the start time, and the CIG event start count is greater than the current CIG event count.

[0089] In a possible implementation manner, based on the current CIG event count, the master device determines the CIG event start count when the second slave device starts to send and receive data through the CIS link. Among them, the determined CIG event start count is greater than the current CIG event count. For example, CIG event start count = current CIG event count + k, where k is a positive integer.

[0090] Schematically, such as Figure 7As shown, the master device determines that the starting count of the CIG event is y + 1 based on the current CIG event count y, and instructs the first slave device to use the updated CIG parameters when the CIG event count reaches y + 1.

[0091] Step 506: Generate CIG parameter update data including the start time and the updated CIG parameters.

[0092] After determining the start time and the updated CIG parameters, the master device generates CIG parameter update data including the start time and the updated CIG parameters. In a possible implementation, the generated CIG parameter update data includes the starting count of the CIG event and the updated CIG parameters.

[0093] Step 507: Send the CIG parameter update data to n first slave devices.

[0094] Furthermore, the master device sends the CIG parameter update data to each first slave device. After receiving the CIG parameter update data, the first slave device can still perform data transmission and reception based on the original CIG parameters before the CIG event count reaches the starting count of the CIG event, and perform data transmission and reception based on the updated CIG parameters when the CIG event count reaches the starting count of the CIG event.

[0095] Step 508: In response to completing the CIG parameter update, perform null packet interaction with the second slave device.

[0096] After completing the CIG parameter update for the first slave device, the master device establishes a data path for the newly created CIS by performing null packet interaction with the second slave device.

[0097] In a possible implementation, after the master device sends a CIS null packet (CIS NULL PDU) to the second slave device, the second slave device determines that the CIS establishment is complete and feeds back the CIS null packet to the master device; after receiving the fed-back CIS null packet, the master device determines that the CIS establishment is complete.

[0098] Step 509: In response to receiving the null packet sent by the second slave device, establish a data path for the CIS link corresponding to the second slave device.

[0099] In a possible implementation, when an empty packet sent by a second slave device is received, the master device creates a data path for the CIS link corresponding to the second slave device through a data path creation instruction. The data path is located in the Isochronous Adaptation Layer (ISOAL) between the Host and the Controller, and the Host instructs the Controller to create the data path through the Setup ISO Data Path instruction.

[0100] It should be noted that after the second slave device receives the empty packet sent by the master device, it will also establish a data path for the CIS link, which is not described in detail in this embodiment.

[0101] Step 510: Perform data transmission with the second slave device through the data path and CIS link corresponding to the second slave device.

[0102] After the creation of the CIS link and the data channel is completed, data transmission can be performed between the master device and the second slave device. During the data transmission process, the Host of the master device sends the SDU to the Controller through the data path, and the Controller encapsulates the SDU into a PDU, and then sends the PDU to the slave device through the CIS link; after the slave device receives the PDU through the CIS link, the Controller unpacks the PDU to obtain the SDU, and reports the unpacked SDU to the Host through the data path for processing by the Host.

[0103] In this embodiment, the master device determines whether the second slave device meets the CIG joining condition according to the configuration parameters of the second slave device, and when the condition is met, adds the second slave device to the current CIG, avoiding the problem that the master device simultaneously establishes too many CISs with slave devices, resulting in excessive transmission delay or even inability to transmit.

[0104] In addition, in the embodiment of the present application, the master device enables the first slave device to update the CIG parameters at an accurate time point by adding the start time when the second slave device starts to send and receive data to the CIG parameter update data, ensuring the synchronization of audio playback after data transmission on each CIS in the updated CIG.

[0105] In the above embodiment, the execution subject of the device addition method is taken as the master device for illustration. In some embodiments, a Bluetooth chip is provided in the master device, and the Bluetooth chip includes a main control and a controller, and the main control communicates with the controller through an interface to implement the above device addition method.

[0106] Optionally, the Bluetooth chip adopts a dual-chip architecture or a single-chip architecture. When adopting the dual-chip architecture, the main controller and the controller are located in different components. For example, the main controller is set on an Application Processor (AP), and the controller is set in a Bluetooth module. The main controller and the controller communicate through a Host Controller Interface (HCI). When adopting the single-chip architecture, the main controller and the controller are set on the same chip, and the main controller and the controller communicate through an Application Programming Interface (API).

[0107] When dynamically adding a device, the controller is used to establish a CIS link with n first slave devices. The n first slave devices belong to the same CIG, and each first slave device transmits and receives data on its corresponding CIS link based on the original CIG parameters, where n is a positive integer;

[0108] The main controller is used to, in response to an addition request of a second slave device, add the second slave device to the CIG through the controller and establish a CIS link with the second slave device;

[0109] The controller is further used to send CIG parameter update data including the updated CIG parameters to the n first slave devices, so that each first slave device transmits and receives data on its corresponding CIS link based on the updated CIG parameters, and the second slave device transmits and receives data on the CIS link based on the updated CIG parameters.

[0110] In a possible implementation manner, when establishing a CIS link for the second slave device, the controller is used to:

[0111] Determine whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device.

[0112] In response to the second slave device meeting the CIG joining condition, add the second slave device to the CIG;

[0113] Establish a CIS link with the second slave device and send the updated CIG parameters to the second slave device.

[0114] Optionally, when determining whether the CIG joining condition is met, the controller is specifically used to:

[0115] Based on the configuration parameters, determine the PDU transmission delay after adding the second slave device. The PDU transmission delay includes the PDU transmission delay from the master device to the slave device and the PDU transmission delay from the slave device to the master device;

[0116] Based on the configuration parameters, determine the PDU transmission bandwidth and SDU transmission bandwidth corresponding to the second slave device for the CIS. The SDU transmission bandwidth is the transmission bandwidth when the upper layer sends the SDU to the lower layer.

[0117] In response to the PDU transmission delay being less than the maximum transmission delay set for the CIG and the PDU transmission bandwidth being greater than the SDU transmission bandwidth, determine that the second slave device meets the CIG joining condition.

[0118] Optionally, when sending the updated CIG parameters to the second slave device, the controller is specifically configured to:

[0119] Determine the CIS synchronization delay and CIG synchronization delay of each CIS after adding the second slave device;

[0120] Send the updated CIG parameters including the CIS synchronization delay and CIG synchronization delay to the second slave device.

[0121] Schematically, as Figure 8 shown, the host (Host A) of device A sends an HCI_LE_ADD_CIS_Parameters command (private command) to the controller (Controller A) of device A. After receiving this instruction, the controller determines whether it meets the CIG joining condition according to the configuration parameters of the second slave device included in this command. If the condition is met, it sends a Command Complete instruction with a status of successful to Host A. After receiving this instruction, Host A instructs Controller A to create a CIS through the HCI_LE_Create_CIS command. After receiving the command, Controller A sends an LL_CIS_REQ to the host (Host D) of device D, and Host D sends an LE CISRequest to the controller (Controller D) of device D. After Controller D accepts this request, it sends an HCI_LE_Accept_CIS to Host D.

[0122] After Controller A receives the LL_CIS_RSP sent by Host D, it sends an LL_CIS_IND to Host D, and the updated CIG parameters are included in this LL_CIS_IND, thus completing the construction of the CIS link between device A and device D.

[0123] In a possible implementation manner, when sending the updated CIG parameters to the first slave device, the controller is used to:

[0124] Determine the start time when the second slave device starts to send and receive data;

[0125] Generate CIG parameter update data including the start time and the updated CIG parameters;

[0126] Send the CIG parameter update data to n first slave devices.

[0127] Optionally, when determining the start time for the second slave device to start data reception and transmission, the controller is specifically configured to:

[0128] Obtain the current CIG event count, where the CIG event count is used to represent the number of executions of CIG events. Among them, the event that each CIS in CIG has completed data reception and transmission is a CIG event.

[0129] Determine the CIG event start count based on the current CIG event count. The CIG event start count is used to indicate the start time, and the CIG event start count is greater than the current CIG event count;

[0130] Generate CIG parameter update data including the CIG event start count and the updated CIG parameters.

[0131] Schematically, as Figure 8 shown, Controller A sends an LL_CIS_UPDATE command (private command) to the controllers (Controller B, C) of devices B and C, instructing devices B and C to update CIG parameters. Among them, the LL_CIS_UPDATE command contains instant = cigEventCount (i.e., the CIG event start count). Correspondingly, after Controller B and C complete the CIG parameter update, they send LE CIS Update Complete to their respective hosts (Host B, C) to indicate that the update is complete (including the updated CIS synchronization delay and CIG synchronization delay).

[0132] In a possible implementation manner, the controller is further configured to perform null packet interaction with the second slave device in response to completing the CIG parameter update; in response to receiving a null packet sent by the second slave device, establish a data path for the CIS link corresponding to the second slave device;

[0133] The host and the controller are further configured to perform data transmission with the second slave device through the data path and CIS link corresponding to the second slave device.

[0134] Schematically, as Figure 8As shown, null packets are exchanged (CISNULL PDU) between Controller A and Controller D to inform their respective Hosts that the CIS link has been established (LE CIS Established). Host A and Host D then send the LE Setup ISO Data Path command to their respective Controllers to establish a Data Path between the Host and the Controller. After the Data Path is established, Device A and Device D can perform data transmission (CIS Data PDU), and the Controller sends the received ISO DATA to the Host for further processing by the Host.

[0135] Among them, the detailed process of the master and the controller for device addition can be referred to the above method embodiments, and will not be elaborated herein.

[0136] In a possible implementation manner, an embodiment of the present application further provides a Bluetooth chip, which includes a processor and a memory. At least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the device addition method as described in the above embodiments.

[0137] The following is an embodiment of the apparatus of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the method embodiments of the present application.

[0138] Please refer to Figure 9 , which shows a structural block diagram of a device addition apparatus provided by an embodiment of the present application. The apparatus may include:

[0139] A first establishment module 901, configured to establish a CIS link with n first slave devices. The n first slave devices belong to the same CIG, and each of the first slave devices transmits and receives data on its respective corresponding CIS link based on the original CIG parameters, where n is a positive integer;

[0140] A second establishment module 902, configured to add the second slave device to the CIG in response to an addition request of the second slave device, and establish a CIS link with the second slave device;

[0141] A sending module 903, configured to send CIG parameter update data including updated CIG parameters to the n first slave devices, so that each of the first slave devices transmits and receives data on its respective corresponding CIS link based on the updated CIG parameters, and the second slave device transmits and receives data on the CIS link based on the updated CIG parameters.

[0142] Optionally, the second establishment module 902 includes:

[0143] A first determination unit, configured to, in response to an addition request of the second slave device, determine whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device;

[0144] An addition unit, configured to, in response to the second slave device meeting the CIG joining condition, add the second slave device to the CIG;

[0145] An establishment unit, configured to establish a CIS link with the second slave device and send the updated CIG parameters to the second slave device.

[0146] Optionally, the first determination unit is configured to:

[0147] Based on the configuration parameters, determine the PDU transmission delay after adding the second slave device, where the PDU transmission delay includes the PDU transmission delay from the master device to the slave device and the PDU transmission delay from the slave device to the master device;

[0148] Based on the configuration parameters, determine the PDU transmission bandwidth and the SDU transmission bandwidth of the CIS corresponding to the second slave device, where the SDU transmission bandwidth is the transmission bandwidth when the upper layer sends the SDU to the lower layer;

[0149] In response to the PDU transmission delay being less than the maximum transmission delay set for the CIG and the PDU transmission bandwidth being greater than the SDU transmission bandwidth, determine that the second slave device meets the CIG joining condition.

[0150] Optionally, the establishment unit is configured to:

[0151] Determine the CIS synchronization delay and the CIG synchronization delay of each CIS after adding the second slave device;

[0152] Send the updated CIG parameters including the CIS synchronization delay and the CIG synchronization delay to the second slave device.

[0153] Optionally, the sending module 903 includes:

[0154] A second determination unit, configured to determine the start time when the second slave device starts to send and receive data;

[0155] A generation unit, configured to generate the CIG parameter update data including the start time and the updated CIG parameters;

[0156] A sending unit, configured to send the CIG parameter update data to n first slave devices.

[0157] Optionally, the second determination unit is configured to:

[0158] Obtain the current CIG event count, where the CIG event count is used to represent the number of executions of the CIG event, and in each CIG event, data transmission and reception of each CIS in the CIG are completed;

[0159] Determine the CIG event start count based on the current CIG event count, where the CIG event start count is used to indicate the start time, and the CIG event start count is greater than the current CIG event count;

[0160] The generation unit is configured to:

[0161] Generate the CIG parameter update data including the CIG event start count and the updated CIG parameters.

[0162] Optionally, the device further includes:

[0163] An empty packet interaction module, configured to perform empty packet interaction with the second slave device in response to completion of CIG parameter update;

[0164] A third establishment module, configured to establish a data path for the CIS link corresponding to the second slave device in response to receiving an empty packet sent by the second slave device;

[0165] A transmission module, configured to perform data transmission with the second slave device through the data path and the CIS link corresponding to the second slave device.

[0166] In summary, in the embodiments of the present application, when the master device establishes a CIS link with the slave devices in the CIG and performs data transmission and reception with each slave device through the CIS link, if an addition request from the second slave device is received, the CIS of the new slave device is added to the CIG, and based on the change of the CIG parameters after adding the CIS, the CIG parameters of the original slave devices in the CIG are updated, so that both the original slave devices and the new slave device can transmit and receive data on the CIS link based on the updated CIG parameters; during the device addition process, the CIS link between the master device and the original slave devices does not need to be disconnected and re-established. On the one hand, it avoids the interruption of audio playback at the slave device due to the disconnection of the CIS link. On the other hand, it improves the addition efficiency of the slave device and realizes the dynamic increase of the CIS in the CIG.

[0167] Please refer to Figure 10 , which shows a structural block diagram of an electronic device with Bluetooth function provided by an exemplary embodiment of the present application. The electronic device 1000 may be a smart phone, a tablet computer, a wearable device, etc. The electronic device 1000 in the present application may include one or more of the following components: a processor 1010, a memory 1020, and a Bluetooth chip 1030.

[0168] The processor 1010 may include one or more processing cores. The processor 1010 connects various parts within the entire electronic device 1000 through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 1020, and by invoking data stored in the memory 1020, it performs various functions of the electronic device 1000 and processes data. Optionally, the processor 1010 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 1010 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1010 and may be implemented separately by a single chip.

[0169] The memory 1020 may include random access memory (RAM) and may also include read-only memory (ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1020 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device 1000 (such as audio data, phone book), etc.

[0170] The Bluetooth chip 1030 is a component for implementing Bluetooth functions. Among them, the Bluetooth chip 1030 includes two parts, namely, Host and Controller (corresponding to different Bluetooth protocol stacks). Host and Controller can run on the same chip (single-chip architecture) or on different chips (dual-chip architecture). For example, Host runs on a processor while Controller runs on a Bluetooth module; or both Host and Controller run on the Bluetooth chip 1030. The device addition method provided by the embodiments of this application is implemented by the Bluetooth chip 1030 by executing instructions.

[0171] In addition, those skilled in the art can understand that the structure of the electronic device 1000 shown in the above drawings does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the drawings, or combine certain components, or have different component arrangements. For example, the electronic device 1000 further includes components such as a display screen, a sensor, a speaker, a microphone, and a power supply, which will not be elaborated here.

[0172] The embodiments of this application also provide a computer-readable storage medium. The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by the Bluetooth chip to implement the device addition method described in each of the above embodiments.

[0173] According to one aspect of this application, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The Bluetooth chip of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the device addition method provided in various optional implementation manners of the above aspect.

[0174] It should be understood that the term "a plurality of" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. In addition, the step numbers described in this article only exemplarily show a possible execution sequence between steps. In some other embodiments, the above steps may not be executed in the order of the numbers. For example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in the reverse order of the illustration. The embodiments of this application do not make any limitations in this regard.

[0175] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A device adding method, characterized in that, the method is used for a master device, and the method includes: establishing CIS links with n first slave devices, where the n first slave devices belong to the same CIG, and each of the first slave devices transceives data on its corresponding CIS link based on original CIG parameters, and n is a positive integer; responding to an adding request of a second slave device, adding the second slave device to the CIG, and establishing a CIS link with the second slave device; determining a start time when the second slave device starts to transceive data; generating CIG parameter update data including the start time and updated CIG parameters; and, sending the CIG parameter update data to the n first slave devices so that each of the first slave devices transceives data on its corresponding CIS link based on the updated CIG parameters, and the second slave device transceives data on the CIS link based on the updated CIG parameters.

2. The method according to claim 1, characterized in that, the responding to an adding request of a second slave device, adding the second slave device to the CIG, and establishing a CIS link with the second slave device includes: responding to the adding request of the second slave device, determining whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device; responding to the second slave device meeting the CIG joining condition, adding the second slave device to the CIG; and, establishing a CIS link with the second slave device and sending the updated CIG parameters to the second slave device.

3. The method according to claim 2, characterized in that, the determining whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device includes: based on the configuration parameters, determining the PDU transmission delay after adding the second slave device, where the PDU transmission delay includes the PDU transmission delay from the master device to the slave device and the PDU transmission delay from the slave device to the master device; based on the configuration parameters, determining the PDU transmission bandwidth and SDU transmission bandwidth of the CIS corresponding to the second slave device, where the SDU transmission bandwidth is the transmission bandwidth when the upper layer sends SDUs to the lower layer; and, responding to the PDU transmission delay being less than the maximum transmission delay set for the CIG and the PDU transmission bandwidth being greater than the SDU transmission bandwidth, determining that the second slave device meets the CIG joining condition.

4. The method according to claim 2, characterized in that, the sending the updated CIG parameters to the second slave device includes: determining the CIS synchronization delay and CIG synchronization delay of each path of CIS after adding the second slave device; and, sending the updated CIG parameters including the CIS synchronization delay and CIG synchronization delay to the second slave device.

5. The method according to any one of claims 1 to 4, characterized in that, the determining a start time when the second slave device starts to transceive data includes: Obtain the current CIG event count, where the CIG event count is used to represent the number of executions of the CIG event. Among them, the event that each CIS in the CIG completes data transceiver is the CIG event; and, Determine the CIG event start count based on the current CIG event count. The CIG event start count is used to indicate the start time, and the CIG event start count is greater than the current CIG event count; The generating the CIG parameter update data including the start time and the updated CIG parameters includes: Generate the CIG parameter update data including the CIG event start count and the updated CIG parameters.

6. The method according to any one of claims 1 to 4, characterized in that, after sending the CIG parameter update data to the n first slave devices, the method further includes: In response to completing the CIG parameter update, perform empty packet interaction with the second slave device; In response to receiving the empty packet sent by the second slave device, establish a data path for the CIS link corresponding to the second slave device; and, Through the data path and the CIS link corresponding to the second slave device, perform data transmission with the second slave device.

7. A device adding device, characterized in that, the device includes: A first establishing module, configured to establish CIS links with n first slave devices. The n first slave devices belong to the same CIG, and each of the first slave devices transceives data on its corresponding CIS link based on the original CIG parameters, where n is a positive integer; A second establishing module, configured to, in response to an adding request of a second slave device, add the second slave device to the CIG and establish a CIS link with the second slave device; A sending module, configured to determine the start time when the second slave device starts to transceive data; generate CIG parameter update data including the start time and the updated CIG parameters; send the CIG parameter update data to the n first slave devices, so that each of the first slave devices transceives data on its corresponding CIS link based on the updated CIG parameters, and the second slave device transceives data on the CIS link based on the updated CIG parameters.

8. The device according to claim 7, characterized in that, the second establishing module includes: A first determining unit, configured to, in response to the adding request of the second slave device, determine whether the second slave device meets the CIG joining condition based on the configuration parameters of the second slave device; An adding unit, configured to, in response to the second slave device meeting the CIG joining condition, add the second slave device to the CIG; An establishing unit, configured to establish a CIS link with the second slave device and send the updated CIG parameters to the second slave device.

9. The device according to claim 8, characterized in that, the first determining unit is configured to: Based on the configuration parameters, determine the PDU transmission delay after adding the second slave device. The PDU transmission delay includes the PDU transmission delay from the master device to the slave device and the PDU transmission delay from the slave device to the master device; Based on the configuration parameters, determine the PDU transmission bandwidth and SDU transmission bandwidth of the CIS corresponding to the second slave device, where the SDU transmission bandwidth is the transmission bandwidth when the upper layer sends the SDU to the lower layer; In response to the PDU transmission delay being less than the maximum transmission delay set for the CIG, and the PDU transmission bandwidth being greater than the SDU transmission bandwidth, determine that the second slave device meets the CIG joining condition.

10. The apparatus according to claim 8, wherein, the establishing unit is configured to: determine the CIS synchronization delay and CIG synchronization delay of each path of CIS after adding the second slave device; send the updated CIG parameters including the CIS synchronization delay and CIG synchronization delay to the second slave device.

11. The apparatus according to any one of claims 7 to 10, wherein, the sending module is configured to: obtain the current CIG event count, where the CIG event count is used to represent the execution times of CIG events, and among them, the event that each CIS in the CIG has completed data transceiver is the CIG event; determine the CIG event start count based on the current CIG event count, where the CIG event start count is used to indicate the start time, and the CIG event start count is greater than the current CIG event count; generate the CIG parameter update data including the CIG event start count and the updated CIG parameters.

12. The apparatus according to any one of claims 7 to 10, wherein, the apparatus further includes: a null packet interaction module, configured to perform null packet interaction with the second slave device in response to completing the CIG parameter update; a third establishing module, configured to establish a data path for the CIS link corresponding to the second slave device in response to receiving the null packet sent by the second slave device; a transmission module, configured to perform data transmission with the second slave device through the data path and CIS link corresponding to the second slave device.

13. A Bluetooth chip, wherein, the Bluetooth chip includes a processor and a memory, and at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the device adding method according to any one of claims 1 to 6.

14. An electronic device with Bluetooth function, wherein, the Bluetooth chip according to claim 13 is provided in the electronic device.

15. A computer-readable storage medium, wherein, at least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by the Bluetooth chip to implement the device adding method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data transmission methods, devices, equipment, systems and media

    CN111869142A

  • Transmission speed control method and device

    WO2020124610A1