CN115442778A - Method and device for establishing Bluetooth link, bluetooth chip and equipment - Google Patents

Method and device for establishing Bluetooth link, bluetooth chip and equipment Download PDF

Info

Publication number
CN115442778A
CN115442778A CN202110621098.2A CN202110621098A CN115442778A CN 115442778 A CN115442778 A CN 115442778A CN 202110621098 A CN202110621098 A CN 202110621098A CN 115442778 A CN115442778 A CN 115442778A
Authority
CN
China
Prior art keywords
link
bluetooth
scheduling
master device
time point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110621098.2A
Other languages
Chinese (zh)
Inventor
许超杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110621098.2A priority Critical patent/CN115442778A/en
Priority to PCT/CN2022/091441 priority patent/WO2022252917A1/en
Publication of CN115442778A publication Critical patent/CN115442778A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1221Wireless traffic scheduling based on age of data to be sent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The embodiment of the application discloses a method, a device, a Bluetooth chip and equipment for establishing a Bluetooth link, and belongs to the technical field of Bluetooth. The method comprises the following steps: establishing at least one first bluetooth link with at least one first master device; sending first link parameters of each first Bluetooth link to second master equipment; receiving a link establishment request from a second master device, wherein the link establishment request is used for requesting the establishment of a second Bluetooth link with a slave device, the link establishment request comprises a second link parameter of the second Bluetooth link, and the second link parameter is determined and obtained based on the first link parameter; and establishing a second Bluetooth link with the second master device based on the second link parameters, wherein the scheduling time points on the second Bluetooth link are different from the scheduling time points on each first Bluetooth link. In the embodiment of the application, the master device to be connected can avoid scheduling conflict among the multiple Bluetooth links by adjusting the link parameters, so that the problem of service interruption caused by the scheduling conflict among the multiple Bluetooth links is avoided.

Description

Method and device for establishing Bluetooth link, bluetooth chip and equipment
Technical Field
The embodiment of the application relates to the technical field of Bluetooth, in particular to a method, a device, a Bluetooth chip and equipment for establishing a Bluetooth link.
Background
Bluetooth Low Energy (BLE) has lower cost and power consumption as a Bluetooth technology evolved on the basis of the classic Bluetooth (BT).
Moreover, compared with the classic bluetooth device, the BLE device supports more bluetooth links to be established simultaneously. For example, classic bluetooth devices support up to 7 simultaneous bluetooth links, while BLE devices support more than 7 simultaneous bluetooth links.
Disclosure of Invention
The embodiment of the application provides a method and a device for establishing a Bluetooth link, a Bluetooth chip and equipment. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for establishing a bluetooth link in a slave device, where the method includes:
establishing at least one first bluetooth link with at least one first master device;
sending a first link parameter of each first Bluetooth link to a second master device;
receiving a link establishment request from the second master device, where the link establishment request is used to request establishment of a second bluetooth link with the slave device, the link establishment request includes a second link parameter of the second bluetooth link, and the second link parameter is determined by the second master device based on the first link parameter; and the number of the first and second groups,
establishing the second Bluetooth link with the second master device based on the second link parameters, wherein a scheduling time point of the second master device on the second Bluetooth link is different from a scheduling time point of the first master device on each of the first Bluetooth links.
In another aspect, an embodiment of the present application provides a method for establishing a bluetooth link in a master device, where the method includes:
receiving first link parameters of each first Bluetooth link from a slave device, wherein the slave device establishes at least one first Bluetooth link with at least one first master device;
determining a second link parameter of a second Bluetooth link based on the first link parameter, the second Bluetooth link being between the slave device and the second master device; and (c) a second step of,
transmitting a link establishment request including the second link parameter to the slave device so that the slave device establishes the second Bluetooth link with the second master device based on the second link parameter, wherein a scheduled time point of the second master device on the second Bluetooth link is different from a scheduled time point of the first master device on each of the first Bluetooth links.
In another aspect, an embodiment of the present application provides an apparatus for establishing a bluetooth link in a slave device, where the apparatus includes:
the first establishing module is used for establishing at least one first Bluetooth link with at least one first master device;
the parameter providing module is used for sending first link parameters of each first Bluetooth link to second master equipment;
a request receiving module, configured to receive a link establishment request from the second master device, where the link establishment request is used to request establishment of a second bluetooth link with the slave device, and the link establishment request includes a second link parameter of the second bluetooth link, where the second link parameter is determined by the second master device based on the first link parameter; and (c) a second step of,
a second establishing module, configured to establish the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
In another aspect, an embodiment of the present application provides an apparatus for establishing a bluetooth link in a master device, where the apparatus includes:
the parameter acquisition module is used for receiving first link parameters of each first Bluetooth link from slave equipment, and the slave equipment and at least one first master equipment establish at least one first Bluetooth link;
a second parameter determining module, configured to determine a second link parameter of a second bluetooth link based on the first link parameter, where the second bluetooth link is located between the slave device and the second master device; and the number of the first and second groups,
a request sending module, configured to send a link establishment request including the second link parameter to the slave device, so that the slave device establishes the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
In another aspect, embodiments of the present application provide a bluetooth chip, where the bluetooth chip includes a programmable logic circuit and/or program instructions, and when the bluetooth chip is running, is configured to implement the method for establishing a bluetooth link in a slave device as described in the above aspect, or implement the method for establishing a bluetooth link in a master device as described in the above aspect.
On the other hand, the embodiment of the application provides an electronic device with a bluetooth function, and the bluetooth chip is arranged in the electronic device.
In another aspect, the present application provides a computer-readable storage medium, where at least one program code is stored, where the program code is loaded and executed by a bluetooth chip to implement the method for establishing a bluetooth link in a slave device or the method for establishing a bluetooth link in a master device as described in the above aspect.
In another aspect, embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The 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 performs the method for establishing the bluetooth link in the slave device or the method for establishing the bluetooth link in the master device provided in various alternative implementations of the above aspects.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
when the slave device and the first master device complete the establishment of a first Bluetooth link and a second Bluetooth link needs to be established with a second master device, the slave device provides first link parameters corresponding to the first Bluetooth link to the second master device, so that the second master device can determine second link parameters adopted when the second Bluetooth link and the established first Bluetooth link have no scheduling conflict (namely scheduling time points on the second Bluetooth link and scheduling time points on each first Bluetooth link are different) according to the first link parameters, and sends a link establishment request to the slave device based on the second link parameters, thereby establishing the second Bluetooth link with the slave device; by adopting the scheme provided by the embodiment of the application, the slave device provides the link information of the established Bluetooth link in advance, so that the master device to be connected can avoid the scheduling conflict among the multiple Bluetooth links by adjusting the link parameters in the link establishment stage, avoid the problem of service interruption caused by the scheduling conflict among the multiple Bluetooth links, and contribute to improving the bandwidth of the multiple links and the utilization rate of an air interface.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
fig. 2 is a schematic diagram of a master scheduling conflict process in a multilink scenario in the related art;
FIG. 3 illustrates a flow chart of a method of establishing a Bluetooth link provided by an exemplary embodiment of the present application;
fig. 4 shows a flowchart of a method for establishing a bluetooth link provided by another example embodiment of the present application;
fig. 5 is a schematic diagram illustrating an implementation of a bluetooth broadcast transmission process according to an exemplary embodiment of the present application;
FIG. 6 is a diagram illustrating a first link parameter in a load in accordance with an exemplary embodiment of the present application;
fig. 7 is a schematic diagram illustrating a scheduling time point corresponding to each of a first master device and a second master device according to an exemplary embodiment of the present application;
FIG. 8 is a timing diagram illustrating a Bluetooth link establishment procedure in accordance with an exemplary embodiment of the present application;
fig. 9 is a block diagram illustrating an apparatus for establishing a bluetooth link in a slave device according to an embodiment of the present application;
fig. 10 is a block diagram illustrating an apparatus for establishing a bluetooth link in a master device according to another embodiment of the present application;
fig. 11 shows a block diagram of an electronic device with bluetooth function according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown, where the implementation environment includes a plurality of master devices 110 (master) and slave devices 120 (slave).
The master device 110 and the slave device 120 are each an electronic device having a bluetooth function. In one possible implementation, both master device 110 and slave device 120 are BLE devices. The master device 110 is in the master device mode, the slave device 120 is in the slave device mode, and the electronic device operating in the master device mode can actively search other bluetooth devices around and select a bluetooth device that needs to be connected, while the electronic device operating in the slave device mode can only be searched by other electronic devices and cannot actively search.
In some embodiments, master device 110 may be a smartphone, tablet, wearable device, personal computer, etc., and slave device 120 may be a smart speaker, bluetooth headset, television, smartphone, etc. In fig. 1, the master device 110 and the slave device 120 are both smart phones as an example, but the present invention is not limited thereto.
In the embodiment of the present application, the slave device 120 may establish bluetooth links with multiple master devices 110 at the same time. The bluetooth link may be an ACL (Asynchronous Connection Less) link (mainly used for packet data transmission). Illustratively, as shown in fig. 1, a first bluetooth link is established between the slave device 120 and the first master device 111, and a second bluetooth link is established between the slave device 120 and the second master device 112, the slave device 120 performs data transmission with the first master device 111 through the first bluetooth link, and the slave device 120 performs data transmission with the second master device 112 through the second bluetooth link.
It should be noted that, in the foregoing embodiment, the slave device establishes bluetooth links with two master devices as an example, in other possible implementations, the slave device may establish bluetooth links with at least three master devices, and this embodiment is not limited to this.
In the related art, each master device that establishes a bluetooth link with a slave device determines a scheduling time point thereof, and performs periodic scheduling to implement data transmission with the slave device, where the scheduling time point is determined based on an initial scheduling time point and a scheduling interval.
Illustratively, as shown in fig. 2, the slave device establishes a first bluetooth link with a first master device and a second bluetooth link with a second master device. The initial scheduling time point of the first master device is T0, and based on the first scheduling interval, the first master device respectively performs data transceiving with the slave device at the T0 moment, the T1 moment and the T2 moment; the initial scheduling time point of the second master device is T3, and the second master device performs data transmission and reception with the slave device at time T3, time T4, and time T5, respectively, based on the second scheduling interval.
However, since the first master device and the second master device do not know each other about the scheduling time point of the other, when the scheduling time points of the first master device and the second master device coincide, a scheduling conflict may occur. When scheduling conflict occurs, the slave device selects to perform data transmission with the master device through one of the bluetooth links based on the factors such as the priority level and the transceiving performance of the master device.
Illustratively, as shown in fig. 2, a scheduling time point T1 of the first master device coincides with a scheduling time point T4 of the second master device, and since the priority of the first master device is higher than that of the second master device, the slave device selects to perform data transmission with the first master device through the first bluetooth link, and the traffic between the slave device and the second master device is interrupted due to scheduling conflict.
In the embodiment of the application, the slave device provides the link parameters of the established Bluetooth link in advance, so that the master device to be connected can determine the scheduling time point of the connected master device based on the link parameters, avoid scheduling conflict with the connected master device by adjusting the link parameters, establish the Bluetooth link with the slave device based on the adjusted link parameters, and avoid interruption of service between the slave device and the master device due to scheduling conflict in a multilink scene; and the scheduling time point of each main device is reasonably planned, so that the multilink bandwidth and the air interface utilization rate can be improved.
Referring to fig. 3, a flowchart of a method for establishing a bluetooth link according to an exemplary embodiment of the present application is shown, where the present application takes the method as an example for use in the implementation environment shown in fig. 1, and the method includes:
step 301, a slave device establishes at least one first bluetooth link with at least one first master device.
In this embodiment, the first master device refers to a master device that has established a bluetooth link with a slave device.
In one possible implementation, the slave device establishes the first bluetooth links with the first master devices in sequence, and there is no scheduling conflict between the first bluetooth links. When the slave device establishes a bluetooth link with a first master device, the first master device sends a link establishment request containing a self-scheduling interval to the slave device, and the slave device establishes a first bluetooth link with the first master device according to the link establishment request. When a bluetooth link is established with a subsequent first master device, in order to avoid scheduling conflict, the slave device needs to instruct the subsequent first master device to adjust its own link parameter based on the link parameter of the connected master device through a link parameter sharing mechanism, and establish the first bluetooth link.
Step 302, the slave device sends the first link parameters of each first bluetooth link to the second master device.
As to the specific manner of providing the first link parameter, optionally, the slave device may send the first link parameter to the second master device by broadcasting a data packet. The broadcast manner may include bluetooth broadcast, near Field Communication (NFC) broadcast, wiFi broadcast, and the like, which is not limited in this embodiment.
In one possible embodiment, in response to the master connection command, the slave device turns on the broadcast function, or the slave device keeps the broadcast function on and broadcasts the bluetooth packets (including the first link parameters of the respective first bluetooth links) on the broadcast channel. The master device connection instruction may be triggered by a user, for example, after the user starts a bluetooth discovery function of the slave device (after the bluetooth discovery function is started, the slave device may be discovered by other bluetooth devices), the slave device starts a broadcast function.
In some embodiments, the bluetooth packet is an Extended broadcasting (AE ADV), and the first link parameter is written to a payload (payload) of the AE ADV.
In order to ensure the accuracy of the first link parameter in the bluetooth data packet, optionally, each time the first master device completes scheduling, the slave device needs to update the first link parameter, and update the updated first link parameter to the bluetooth data packet.
In step 303, the second master device receives the first link parameters of each first bluetooth link from the slave device.
In this embodiment, the second master device is a master device that has not established a bluetooth link with the slave device temporarily.
In a possible implementation manner, when the second master device needs to establish a bluetooth link with the slave device, the second master device receives a bluetooth data packet sent by the slave device on a broadcast channel, and parses the first link parameters of each first bluetooth link from the bluetooth data packet.
In some embodiments, when the bluetooth packet is Extended broadcasting (AE ADV), the second master device performs AE Extended Scan (Extended Scan) on the broadcast channel, so as to receive AE ADV sent by the slave device.
In addition to obtaining the first link parameter through bluetooth communication, the second master device may obtain the first link parameter through bluetooth communication, for example, perform NFC communication with the slave device through an NFC component and obtain the first link parameter, and obtain the first link parameter through a WiFi connection with the slave device (i.e., receive the first link parameter sent by the slave device through WiFi or NFC), which is not limited in this embodiment of the application.
The second master device determines a second link parameter of a second bluetooth link based on the first link parameter, step 304, the second bluetooth link being between the slave device and the second master device.
In a possible implementation manner, if the first link parameter is obtained by parsing from the bluetooth packet, the second master device determines that the slave device has already established a bluetooth link with another master device, and needs to determine its second link parameter based on the first link parameter. If the first link parameter is not obtained by analyzing from the Bluetooth data packet, the second master device determines that the slave device does not establish a Bluetooth link with other master devices, so that the second master device directly requests to establish the Bluetooth link with the slave device based on the self-scheduling interval.
In some embodiments, the second master device determines the scheduling time point of each first master device based on the first link parameters, so as to determine the second link parameters of the second bluetooth link on the principle that the scheduling time point of the second master device and the scheduling time point of the first master device are prevented from coinciding. The following embodiments will be described in detail with respect to specific ways of determining the second link parameter.
Step 305, the second master device sends a link establishment request including the second link parameters to the slave device, the link establishment request requesting establishment of a second bluetooth link with the slave device.
Further, the second master device generates a link establishment request based on the determined second link parameter, and sends the link establishment request to the slave device, requesting to establish a second bluetooth link with the slave device, where in the process of requesting to establish the bluetooth link, the second master device is in an initiating state (Initiator).
Step 306, the slave device receives a link establishment request from the second master device.
Correspondingly, the slave device receives the link establishment request sent by the second master device, and analyzes the link establishment request containing the second link parameter, so as to receive the scheduling of the second master device based on the second link parameter after the second bluetooth link establishment is completed.
Step 307, the slave device establishes a second bluetooth link with a second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each first bluetooth link.
In a possible implementation, after the slave device establishes the second bluetooth link with the second master device, the scheduling time point of the second master device is determined based on the second link parameter (i.e., the scheduling manner of the second master device is determined), and the second master device schedule is received based on the scheduling time point. Since the scheduling time points of the second master device and each first master device do not coincide, there is no scheduling conflict between each bluetooth link.
Optionally, after the second bluetooth link is established, the slave device stops broadcasting the bluetooth data packet.
Optionally, after the bluetooth link is established, the second master device becomes the first master device, and correspondingly, the slave device stores the second link parameter corresponding to the second master device, and when the bluetooth data packet is subsequently broadcast again, the link parameter needs to be added to the bluetooth data packet.
To sum up, in this embodiment of the present application, when a first bluetooth link is established between a slave device and a first master device and a second bluetooth link needs to be established with a second master device, the slave device provides a first link parameter corresponding to the first bluetooth link to the second master device, so that the second master device can determine, according to the first link parameter, a second link parameter that is used when there is no scheduling conflict between the second bluetooth link and the established first bluetooth link (that is, a scheduling time point on the second bluetooth link is different from a scheduling time point on each first bluetooth link), and send a link establishment request to the slave device based on the second link parameter, thereby establishing the second bluetooth link with the slave device; by adopting the scheme provided by the embodiment of the application, the slave device provides the link information of the established Bluetooth link in advance, so that the master device to be connected can avoid the scheduling conflict among the multiple Bluetooth links by adjusting the link parameters in the link establishment stage, avoid the problem of service interruption caused by the scheduling conflict among the multiple Bluetooth links, and contribute to improving the bandwidth of the multiple links and the utilization rate of an air interface.
For the first master device that has established the bluetooth link, after completing the scheduling at the initial scheduling time point, the first master device performs the scheduling according to the fixed scheduling interval. Therefore, the second master can adjust a scheduling Offset (Offset) between its own initial scheduling time point and the scheduling time point of the first master, and its own scheduling Interval (Interval). Avoiding a scheduling conflict with the first master. The following description will be made using exemplary embodiments.
Referring to fig. 4, a flowchart of a method for establishing a bluetooth link according to another exemplary embodiment of the present application is shown, where the present application takes the method as an example for use in the implementation environment shown in fig. 1, and the method includes:
in step 401, a slave device establishes at least one first bluetooth link with at least one first master device.
The step 301 may be referred to in the implementation manner of this step, and this embodiment is not described herein again.
Step 402, the slave device obtains a first scheduling interval corresponding to each first bluetooth link, where the first scheduling interval is a time interval between adjacent scheduling time points when the first master device schedules the slave device on the first bluetooth link according to the scheduling time point.
In one possible implementation, before each master device establishes a bluetooth link with a slave device, a self-scheduling interval is provided to the slave device, so that the slave device periodically receives master device scheduling based on the scheduling interval. Accordingly, the slave device stores the scheduling interval of each master device that has established the bluetooth link. When the first link parameters need to be broadcast, the slave device obtains the first scheduling interval corresponding to each first master device.
In step 403, the slave device determines a transmission timing offset of the bluetooth data packet with respect to each first bluetooth link, where the transmission timing offset is used to characterize an offset between a time when the slave device broadcasts the bluetooth data packet and a corresponding scheduling time point of the first master device.
If only the first scheduling interval is used as the first link parameter, the second master device can only determine the time interval between adjacent scheduling time points, but cannot determine the accurate time point of each scheduling, and further cannot avoid scheduling conflict. Therefore, the first link parameter also needs to include a parameter for determining at least one accurate scheduling time point.
Since the slave device needs to broadcast the bluetooth packet when each first master device does not perform scheduling based on the scheduling condition of each first master device, there is a certain deviation between the transmission time of the bluetooth packet and the scheduling time of each first master device. In order for the second master device to use the broadcast time of the bluetooth data packet as a time starting point, so as to determine the scheduling time point of each first master device based on the first link parameters, the slave device needs to determine the transmission timing offset of the bluetooth data packet relative to each first bluetooth link. In one possible embodiment, this step may include the following steps.
1. And determining a first scheduling time point corresponding to each first Bluetooth link.
Since the slave device knows the scheduling mode of the master device, the slave device can determine a first scheduling time point corresponding to the first bluetooth link. Wherein the first scheduled time point may be a time point at the latest scheduling time.
Illustratively, as shown in fig. 5, when the slave device establishes a first bluetooth link with a first master device, the slave device determines that a first scheduled time point corresponding to the first bluetooth link is t0.
2. The transmission timing offset is determined based on the respective first scheduled time points and the broadcast time point of the bluetooth packet.
As the sender of the bluetooth packet, the slave device can determine the broadcast time point of the bluetooth packet based on the scheduling condition of each first master device, and therefore, the slave device can further calculate the transmission timing offset of the bluetooth packet with respect to each first bluetooth link according to the first scheduling time point and the broadcast time point of the bluetooth packet (a certain time point in the future). Wherein the transmission timing offset = broadcast time point-first scheduling time point.
Illustratively, as shown in fig. 5, the slave device determines the broadcast time point of the bluetooth packet as t1 based on the scheduling condition of the first master device, and further determines the transmission timing offset as t1-t0.
In step 404, the slave device determines the first scheduling interval and the transmission timing offset as first link parameters, and broadcasts the bluetooth data packet according to the first link parameters.
Further, the slave device determines a first scheduling interval and a transmission timing offset corresponding to each first bluetooth link as first link parameters, and broadcasts a bluetooth data packet containing first link data. In one possible embodiment, this step may include the following steps.
1. And generating at least one group of link information based on the link identification of each first Bluetooth link and the first link parameters.
In order to enable the second master device to distinguish the first link parameters corresponding to different first bluetooth links, the slave device uses the link identifier of the first bluetooth link and the first link parameter as a set of link information, that is, each set of link information is a triplet consisting of the link identifier, the transmission timing offset, and the first scheduling interval. Wherein the link identification is used to uniquely represent a bluetooth link.
2. A bluetooth packet is broadcast containing at least one set of link information.
In one possible embodiment, the slave device writes at least one set of link information into the payload of the bluetooth packet. In an illustrative example, as shown in fig. 6, when the bluetooth packet is AE ADV, the payload length of the extended broadcast is 251 bytes at maximum, and each set of link information occupies 6 bytes, wherein the link identifier (handle) occupies 2 bytes, the transmission timing offset occupies 2 bytes, and the first scheduling interval occupies 2 bytes. The present embodiment is described by taking the above byte length as an example, but the present invention is not limited to this.
Further, the slave device broadcasts the bluetooth packet when a predetermined broadcast time point is reached.
In one possible implementation, the slave device sends ADV _ EXT _ IND on the primary broadcast Channel, instructs AUX _ ADV _ IND to be sent over the Secondary broadcast Channel (Secondary adaptive Channel), and sends AUX _ ADV _ IND containing the first link parameters on the Secondary broadcast Channel. The second master device further receives AUX _ ADV _ IND on the secondary broadcast channel after receiving ADV _ EXT _ IND on the primary broadcast channel.
Illustratively, as shown in fig. 5, the slave device transmits ADV _ EXT _ IND (extended broadcast) through the primary broadcast channel (37, 38, 39 channels) at time t1, and transmits AUX _ ADV _ IND (auxiliary broadcast) on the secondary broadcast channel after a certain time offset.
In step 405, the second master device receives the bluetooth packet broadcast by the slave device.
In one possible embodiment, after receiving ADV _ EXT _ IND on the primary broadcast channel, the second master device parses an offset included in ADV _ EXT _ IND, determines a receiving window of AUX _ ADV _ IND on the secondary broadcast channel based on the offset, receives AUX _ ADV _ IND within the receiving window, and parses the first link parameter included therein.
Illustratively, as shown in fig. 5, the offset between ADV _ EXT _ IND in the main broadcast channel 37 and AUX _ ADV _ IND in the sub-broadcast channel is offset 1, the offset between ADV _ EXT _ IND in the main broadcast channel 38 and AUX _ ADV _ IND in the sub-broadcast channel is offset 2, the offset between ADV _ EXT _ IND in the main broadcast channel 39 and AUX _ ADV _ IND in the sub-broadcast channel is offset 3, and when the second master device receives ADV _ EXT _ IND in the main broadcast channel 38, the offset 1 is parsed and a receiving window of AUX _ ADV _ IND is determined, so that AUX _ ADV _ IND is received in the receiving window.
Optionally, when the first link parameter is written into the load of the bluetooth packet in the form of a link information group, the second master device reads at least one group of link information from the load of the bluetooth packet, where each group of link information includes the link identifier of the first bluetooth link and the first link parameter, and the number of groups of link information is the same as the number of the first bluetooth links.
In step 406, the second master device determines a first scheduling time point corresponding to each first bluetooth link based on the broadcast time point and the transmission timing offset of the bluetooth packet.
After the second master device obtains the transmission timing offset of each first bluetooth link through analysis from the bluetooth data packet, the first scheduling time point corresponding to each first bluetooth link may be determined by using the broadcast time point of the bluetooth data packet as the starting time point, where the first scheduling time point may be the closest scheduling time point before the broadcast time point of the bluetooth data packet on each first bluetooth link.
Illustratively, when the transmission timing Offset of the first bluetooth link is Offset0 and the broadcast time point of the bluetooth packet is T, the first scheduling time point T0 of the first bluetooth link = T-Offset0.
Step 407, determining a first scheduling time point sequence corresponding to each first bluetooth link based on the first scheduling time point and the first scheduling interval.
Since the master device performs periodic scheduling according to the scheduling interval, after determining the first scheduling time point of the first master device, the second master device may determine, based on the first scheduling interval, a first scheduling time point sequence corresponding to the first bluetooth link on the basis of the first scheduling time point, where the first scheduling time point sequence is a time point sequence that takes the first scheduling time point as a time point starting point and the first scheduling interval as an interval.
For example, when the first scheduling time point of the first bluetooth link is T0 and the scheduling Interval of the first bluetooth link is Interval1, the corresponding first scheduling time point sequence of the first bluetooth link may be represented as:
T1=T0+num1*Interval1
where num1 is a natural number.
In step 408, the second master device determines a second scheduling interval and a scheduling offset based on the first sequence of scheduling time points.
In order to avoid coincidence between the scheduling time point of the second master device and the scheduling time point of the first master device, the second master device ensures that the second scheduling time point sequence corresponding to the second bluetooth link is not overlapped with the first scheduling time point sequence by adjusting a second scheduling interval and a scheduling offset of the second master device based on the first scheduling time point sequence, wherein the second scheduling interval is a time interval between adjacent scheduling time points when the second master device schedules, and the scheduling offset is used for representing an offset between the scheduling time point of the second master device and the scheduling time point corresponding to the first master device.
Illustratively, when the scheduling Interval of the second bluetooth link is Interval2 and the scheduling Offset from the first bluetooth link is Offset, the second scheduling time point sequence corresponding to the second bluetooth link may be represented as:
T2=T1+Offset+num2*Interval2
where num2 is a natural number.
In one possible embodiment, the second master adjusts Offset and Interval2 until T1 ≠ T2, based on the expressions of the first sequence of scheduled time points and the second sequence of scheduled time points.
Optionally, to simplify the adjustment process, the second master device sets the second scheduling interval as the first scheduling interval, and adjusts the scheduling offset so that the first scheduling time point sequence and the second scheduling time point sequence do not overlap.
It should be noted that, when there are multiple first bluetooth links, the second master device needs to ensure that the second scheduling time point sequence does not overlap with each of the first scheduling time point sequences.
In step 409, the second master device determines the second scheduling interval and the scheduling offset as the second link parameters.
Further, the second master determines a second scheduling Interval and a scheduling Offset as a second link parameter (Interval 2, offset).
The second master device sends a link setup request including the second link parameters to the slave device, step 410.
In step 411, the slave device receives a link establishment request from the second master device.
The implementation of the above steps 410 to 411 can refer to the steps 305 to 306, and this embodiment is not described herein again.
In step 412, the slave device performs scheduling conflict detection on the second bluetooth link and the first bluetooth link based on the second link parameter and the first link parameter.
Since the first link parameter and the second link parameter may deviate during transmission or analysis, in order to ensure that there is no scheduling conflict between the established second bluetooth link and the first bluetooth link, the slave device needs to perform scheduling conflict detection on the second bluetooth link and the first bluetooth link based on the second link parameter and the first link parameter. In one possible implementation, the slave device determines the scheduling time points of the first bluetooth links based on the first link parameters, and determines the scheduling time points of the second bluetooth links based on the second link parameters, so as to detect whether the scheduling time points of the first bluetooth links and the second bluetooth links overlap, if so, it is determined that the scheduling conflict detection is not passed, and if not, it is determined that the scheduling conflict detection is passed.
In response to the absence of the scheduling conflict, the slave device establishes a second bluetooth link with the second master device based on the second link parameter, step 413.
When the scheduling conflict is detected, the slave device establishes a second bluetooth link with the second master device, and the embodiment of this step may refer to step 307 described above, which is not described herein again.
Illustratively, as shown in fig. 7, the second master determines the scheduling time points of the first master to be T0, T0+ Interval1, T0+2, interval1 \8230, and thus determines the second scheduling Interval2 and the scheduling Offset of the second master, based on Interval2 and Offset, the second master performs scheduling at T0+ Offset, T0+ Offset + Interval2, T0+ Offset +2 \8230. Moreover, since Interval2= Interval1, the scheduling time points of the first master and the second master are staggered and do not overlap with each other, thereby avoiding scheduling conflict.
In connection with the method provided by the above embodiment, in an illustrative example, as shown in fig. 8, ACL1 (first bluetooth link) is first established between the first master device and the slave device. When the slave device needs to establish ACL2 (second bluetooth link) with the second master device, the slave device calculates transmission timing Offset0 between the broadcast and ACL1, and acquires Interval1 of the first master device, thereby starting the AE broadcast and transmitting the ad v (including Offset0 and Interval 1) including the AE to the second master device. After receiving AE ADV, the second master device analyzes and obtains Offset0 and Interval1 therein, calculates Offset and Interval1 of ACL2 using AE ADV as a start time point, and transmits a link establishment request (including Offset and Interval 2) to the slave device. The slave device establishes ACL2 with the second master device based on the link establishment request, and stops broadcasting.
In this embodiment, the slave device broadcasts the bluetooth data packet including the first link parameter, so that after receiving and analyzing the first link parameter in the bluetooth data packet, the second master device to be connected can adjust the second link parameter based on the first link parameter, thereby avoiding the scheduling conflict with the first bluetooth link; and the first scheduling interval of the first Bluetooth link and the transmission time sequence deviation between the first scheduling interval of the first Bluetooth link and the broadcasting time point of the Bluetooth data packet are used as first link parameters, so that the second master device can determine the scheduling time point of each first Bluetooth link by using the broadcasting time of the Bluetooth data packet as an initial time point, and further determine the scheduling time point sequence corresponding to each first Bluetooth link, thereby reducing the number of bytes occupied by the transmission of the first link parameters on one hand, and improving the accuracy of the determined scheduling time point on the other hand.
In addition, the foregoing embodiment only takes the broadcast bluetooth packet as an example for explanation, and when the first link parameter is provided to the second master device through WiFi or NFC, the slave device may determine the transmission timing offset based on the transmission time of the WiFi packet or the NFC packet, and write the transmission timing offset as the first link parameter into the WiFi packet or the NFC packet, which is not described herein again.
It should be noted that, in the foregoing embodiment, the step that takes the slave device as the execution main body may be implemented separately as a method for establishing a bluetooth link in the slave device, and the step that takes the second master device as the execution main body may be implemented separately as a method for establishing a bluetooth link in the master device, which is not described herein again.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a block diagram of an apparatus for establishing a bluetooth link in a slave device according to an embodiment of the present application is shown. The apparatus may include:
a first establishing module 901, configured to establish at least one first bluetooth link with at least one first master device;
a parameter providing module 902, configured to send a first link parameter of each first bluetooth link to a second master device;
a request receiving module 903, configured to receive a link establishment request from the second master device, where the link establishment request is used to request establishment of a second bluetooth link with the slave device, and the link establishment request includes a second link parameter of the second bluetooth link, where the second link parameter is determined by the second master device based on the first link parameter; and (c) a second step of,
a second establishing module 904, configured to establish the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
Optionally, the parameter providing module 902 is configured to:
and the broadcasting unit is used for broadcasting the data packet containing the first link parameter, wherein the broadcasting mode comprises at least one of Bluetooth broadcasting, wiFi broadcasting and NFC broadcasting.
Optionally, the broadcasting unit is configured to:
acquiring a first scheduling interval corresponding to each first Bluetooth link, wherein the first scheduling interval is a time interval between adjacent scheduling time points when the first master device schedules slave devices on the first Bluetooth link according to scheduling time points;
determining a transmission timing offset of the data packet relative to each of the first bluetooth links, where the transmission timing offset is used to characterize an offset between a time when the slave device broadcasts the data packet and a corresponding scheduling time point of the first master device; and the number of the first and second groups,
and determining the first scheduling interval and the transmission timing offset as the first link parameter, and broadcasting the data packet according to the first link parameter.
When determining the transmission timing offset of the data packet with respect to each of the first bluetooth links, the broadcasting unit is specifically configured to:
determining a first scheduling time point corresponding to each first Bluetooth link; and (c) a second step of,
determining the transmission timing offset based on each of the first scheduling time points and a broadcasting time point of the data packet.
When the data packet is broadcasted according to the first link parameter, the broadcasting unit is specifically configured to:
generating at least one group of link information based on the link identification of each first Bluetooth link and the first link parameter; and the number of the first and second groups,
broadcasting the data packet containing at least one group of the link information, wherein the number of the groups of the link information is the same as the number of the first Bluetooth links.
Optionally, the second link parameter includes a second scheduling interval corresponding to the second bluetooth link and a scheduling offset, where the scheduling offset is used to characterize an offset between a scheduling time point of the second master device and a scheduling time point corresponding to at least one of the first master devices.
Optionally, the second establishing module 904 is configured to:
performing scheduling conflict detection on the second Bluetooth link and the first Bluetooth link based on the second link parameter and the first link parameter; and the number of the first and second groups,
in response to there being no scheduling conflict, establishing the second Bluetooth link with the second master device based on the second link parameters.
Referring to fig. 10, a block diagram of an apparatus for establishing a bluetooth link in a master device according to another embodiment of the present application is shown. The apparatus may include:
a parameter obtaining module 1001, configured to receive first link parameters of each first bluetooth link from a slave device, where the slave device establishes at least one first bluetooth link with at least one first master device;
a second parameter determining module 1002, configured to determine a second link parameter of a second bluetooth link based on the first link parameter, where the second bluetooth link is located between the slave device and the second master device; and (c) a second step of,
a request sending module 1003, configured to send a link establishment request including the second link parameter to the slave device, so that the slave device establishes the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
Optionally, the parameter obtaining module 1001 includes:
a receiving unit, configured to receive a data packet broadcasted by the slave device, where the data packet includes the first link parameter of each first bluetooth link, and a broadcast mode includes at least one of bluetooth broadcast, wiFi broadcast, and NFC broadcast.
Optionally, the second parameter determining module 1002 includes:
a first determining unit, configured to determine, based on the first link parameter, a second scheduling interval and a scheduling offset corresponding to the second bluetooth link, where the second scheduling interval is a time interval between adjacent scheduling time points when the second master schedules the slave device on the second bluetooth link according to a scheduling time point, and the scheduling offset is used to characterize an offset between the scheduling time point of the second master device and the scheduling time point corresponding to the first master device; and (c) a second step of,
a second determining unit, configured to determine the second scheduling interval and the scheduling offset as the second link parameter.
Optionally, the first link parameter includes a first scheduling interval and a transmission timing offset, where the first scheduling interval is a time interval between adjacent scheduling time points when the first master schedules the slave on the first bluetooth link according to a scheduling time point, and the transmission timing offset is used to characterize an offset between a time when the slave broadcasts the data packet and a scheduling time point corresponding to the first master;
the first determining unit is configured to:
determining a first scheduling time point corresponding to each first Bluetooth link based on the broadcast time point of the data packet and the transmission time sequence offset;
determining a first scheduling time point sequence corresponding to each first Bluetooth link based on the first scheduling time point and the first scheduling interval, wherein the first scheduling time point sequence is a time point sequence taking the first scheduling time point as a time point starting point and taking the first scheduling interval as an interval; and the number of the first and second groups,
and determining the second scheduling interval and the scheduling offset based on the first scheduling time point sequence, wherein when the second scheduling interval and the scheduling offset are adopted, the second scheduling time point sequence corresponding to the second bluetooth link is not overlapped with the first scheduling time point sequence.
Optionally, the first scheduling time point sequence is represented as: t1= T0+ num1 × Interval1;
the second sequence of scheduling time points is represented as: t2= T1+ Offset + num2 × Interval2;
t0 is the first scheduling time point, interval1 is the first scheduling Interval, offset is the scheduling Offset, interval2 is the second scheduling Interval, and num1 and num2 are natural numbers.
Optionally, the first link parameter is included in the data packet;
the device further comprises:
and the reading module is used for reading at least one group of link information from the data packet, wherein each group of link information comprises the link identification of the first Bluetooth link and the first link parameter, and the number of the groups of the link information is the same as the number of the first Bluetooth links.
Referring to fig. 11, a block diagram of an electronic device with bluetooth function according to an exemplary embodiment of the present application is shown. The electronic device 1100 may be a smartphone, tablet, wearable device, or the like. The electronic device 1100 in the present application may include one or more of the following components: a processor 1110, a memory 1120, and a bluetooth chip 1130.
Processor 1110 may include one or more processing cores. The processor 1110 interfaces with various components throughout the electronic device 1100 using various interfaces and circuitry to perform various functions of the electronic device 1100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1120 and invoking data stored in the memory 1120. Alternatively, the processor 1110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Neural-Network Processing Unit (NPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the NPU is used for realizing an Artificial Intelligence (AI) function; the modem is used to handle wireless communications. It is to be understood that the modem may not be integrated into the processor 1110, but may be implemented by a single chip.
The Memory 1120 may include a Random Access Memory (RAM) and a Read-Only Memory (ROM). Optionally, the memory 1120 includes a non-transitory computer-readable medium. The memory 1120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the stored data area may store data (such as audio data, a phonebook) created according to the use of the electronic device 1100, and the like.
The bluetooth chip 1130 is a component for implementing a bluetooth function. The bluetooth chip 1130 includes a Host and a Controller (corresponding to different bluetooth protocol stacks), and the Host and the Controller may operate on the same chip (single chip architecture) or different chips (dual chip architecture). For example, host runs on the processor, and Controller runs on the bluetooth module; alternatively, both Host and Controller run on the bluetooth chip 1130. The device adding method provided by the embodiment of the present application is implemented by the bluetooth chip 1130 by executing an instruction.
In addition, those skilled in the art will appreciate that the configuration of the electronic device 1100 illustrated in the above-described figures does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than illustrated, or some components may be combined, or a different arrangement of components. For example, the electronic device 1100 further includes a display, a sensor, a speaker, a microphone, a power supply, and other components, which are not described herein again.
Embodiments of the present application further provide a bluetooth chip, where the bluetooth chip includes programmable logic circuits and/or program instructions, and when the bluetooth chip is running, is configured to implement the method for establishing a bluetooth link in a slave device as described in the foregoing aspect, or implement the method for establishing a bluetooth link in a master device as described in the foregoing aspect.
The present embodiments also provide a computer-readable storage medium, which stores at least one program code, where the program code is loaded and executed by a bluetooth chip to implement the method for establishing a bluetooth link in a slave device or the method for establishing a bluetooth link in a master device as described in the above embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being 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 method for establishing the bluetooth link in the slave device or the method for establishing the bluetooth link in the master device provided in various optional implementation manners of the above aspects.
It should be understood that reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (18)

1. A method of establishing a bluetooth link in a slave device, the method comprising:
establishing at least one first bluetooth link with at least one first master device;
sending first link parameters of each first Bluetooth link to a second master device;
receiving a link establishment request from the second master device, where the link establishment request is used to request establishment of a second bluetooth link with the slave device, the link establishment request includes a second link parameter of the second bluetooth link, and the second link parameter is determined by the second master device based on the first link parameter; and the number of the first and second groups,
establishing the second Bluetooth link with the second master device based on the second link parameters, wherein a scheduling time point of the second master device on the second Bluetooth link is different from a scheduling time point of the first master device on each of the first Bluetooth links.
2. The method of claim 1, wherein sending the first link parameters of each of the first bluetooth links to the second master device comprises:
and broadcasting a data packet containing the first link parameter, wherein the broadcasting mode comprises at least one of Bluetooth broadcasting, wiFi broadcasting and NFC broadcasting.
3. The method of claim 2, wherein broadcasting the data packet containing the first link parameter comprises:
acquiring a first scheduling interval corresponding to each first Bluetooth link, wherein the first scheduling interval is a time interval between adjacent scheduling time points when the first master device schedules slave devices on the first Bluetooth link according to scheduling time points;
determining a transmission timing offset of the data packet relative to each of the first bluetooth links, where the transmission timing offset is used to characterize an offset between a time when the slave device broadcasts the data packet and a corresponding scheduling time point of the first master device; and the number of the first and second groups,
and determining the first scheduling interval and the transmission timing offset as the first link parameter, and broadcasting the data packet according to the first link parameter.
4. The method of claim 3, wherein determining the transmission timing offset of the data packet relative to each of the first Bluetooth links comprises:
determining a first scheduling time point corresponding to each first Bluetooth link; and the number of the first and second groups,
determining the transmission timing offset based on each of the first scheduling time points and a broadcasting time point of the data packet.
5. The method of claim 3, wherein the broadcasting the data packet according to the first link parameter comprises:
generating at least one group of link information based on the link identification of each first Bluetooth link and the first link parameter; and the number of the first and second groups,
broadcasting the data packet containing at least one group of the link information, wherein the number of the groups of the link information is the same as the number of the first Bluetooth links.
6. The method of any of claims 1 to 5, wherein the second link parameters comprise a second scheduling interval corresponding to the second Bluetooth link and a scheduling offset characterizing an offset between a scheduling time point of the second master device and a scheduling time point corresponding to at least one of the first master devices.
7. The method of any of claims 1 to 5, wherein establishing the second Bluetooth link with the second master device based on the second link parameter comprises:
performing scheduling conflict detection on the second Bluetooth link and the first Bluetooth link based on the second link parameter and the first link parameter; and (c) a second step of,
in response to there being no scheduling conflict, establishing the second Bluetooth link with the second master device based on the second link parameters.
8. A method of establishing a bluetooth link in a master device, the method comprising:
receiving first link parameters of each first Bluetooth link from a slave device, wherein the slave device establishes at least one first Bluetooth link with at least one first master device;
determining a second link parameter of a second Bluetooth link based on the first link parameter, the second Bluetooth link being between the slave device and the second master device; and (c) a second step of,
transmitting a link establishment request including the second link parameter to the slave device so that the slave device establishes the second Bluetooth link with the second master device based on the second link parameter, wherein a scheduled time point of the second master device on the second Bluetooth link is different from a scheduled time point of the first master device on each of the first Bluetooth links.
9. The method of claim 8, wherein obtaining the first link parameters of each first bluetooth link provided by the slave device comprises:
and receiving a data packet broadcasted by the slave equipment, wherein the data packet comprises the first link parameters of each first Bluetooth link, and the broadcasting mode comprises at least one of Bluetooth broadcasting, wiFi broadcasting and NFC broadcasting.
10. The method of claim 8, wherein determining the second link parameter for the second bluetooth link based on the first link parameter comprises:
determining a second scheduling interval and a scheduling offset corresponding to the second bluetooth link based on the first link parameter, where the second scheduling interval is a time interval between adjacent scheduling time points when the second master device schedules the slave device on the second bluetooth link according to a scheduling time point, and the scheduling offset is used to characterize an offset between the scheduling time point of the second master device and the scheduling time point corresponding to the first master device; and the number of the first and second groups,
determining the second scheduling interval and the scheduling offset as the second link parameter.
11. The method of claim 10, wherein the first link parameters comprise a first scheduling interval and a transmission timing offset, the first scheduling interval being a time interval between adjacent scheduling time points when the first master schedules the slave device on the first bluetooth link according to a scheduling time point, and the transmission timing offset being used to characterize an offset between a time at which the slave device broadcasts the data packet and a corresponding scheduling time point of the first master;
the determining a second scheduling interval and a scheduling offset corresponding to the second bluetooth link based on the first link parameter includes:
determining a first scheduling time point corresponding to each first Bluetooth link based on the broadcast time point of the data packet and the transmission timing offset;
determining a first scheduling time point sequence corresponding to each first bluetooth link based on the first scheduling time point and the first scheduling interval, wherein the first scheduling time point sequence takes the first scheduling time point as a time point starting point and takes the first scheduling interval as an interval time point sequence; and the number of the first and second groups,
and determining the second scheduling interval and the scheduling offset based on the first scheduling time point sequence, wherein when the second scheduling interval and the scheduling offset are adopted, the second scheduling time point sequence corresponding to the second bluetooth link is not overlapped with the first scheduling time point sequence.
12. The method of claim 11,
the first sequence of scheduling time points is represented as: t1= T0+ num1 × Interval1;
the second sequence of scheduling time points is represented as: t2= T1+ Offset + num2 × Interval2;
t0 is the first scheduling time point, interval1 is the first scheduling Interval, offset is the scheduling Offset, interval2 is the second scheduling Interval, and num1 and num2 are natural numbers.
13. The method according to any of claims 9 to 12, wherein said first link parameter is included in said data packet;
prior to said determining a second link parameter for a second bluetooth link based on the first link parameter, the method further comprises:
and reading at least one group of link information from the data packet, wherein each group of link information comprises the link identification of the first Bluetooth link and the first link parameter, and the number of the groups of the link information is the same as the number of the first Bluetooth links.
14. An apparatus for establishing a bluetooth link in a slave device, the apparatus comprising:
the first establishing module is used for establishing at least one first Bluetooth link with at least one first master device;
the parameter providing module is used for sending the first link parameters of each first Bluetooth link to second master equipment;
a request receiving module, configured to receive a link establishment request from the second master device, where the link establishment request is used to request establishment of a second bluetooth link with the slave device, and the link establishment request includes a second link parameter of the second bluetooth link, where the second link parameter is determined by the second master device based on the first link parameter; and the number of the first and second groups,
a second establishing module, configured to establish the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
15. An apparatus for establishing a bluetooth link in a master device, the apparatus comprising:
a parameter obtaining module, configured to receive first link parameters of each first bluetooth link from a slave device, where the slave device establishes at least one first bluetooth link with at least one first master device;
a second parameter determining module, configured to determine a second link parameter of a second bluetooth link based on the first link parameter, where the second bluetooth link is located between the slave device and the second master device; and (c) a second step of,
a request sending module, configured to send a link establishment request including the second link parameter to the slave device, so that the slave device establishes the second bluetooth link with the second master device based on the second link parameter, where a scheduling time point of the second master device on the second bluetooth link is different from a scheduling time point of the first master device on each of the first bluetooth links.
16. A bluetooth chip comprising programmable logic circuits and/or program instructions for implementing a method of establishing a bluetooth link in a slave device as claimed in any one of claims 1 to 7 or a method of establishing a bluetooth link in a master device as claimed in any one of claims 8 to 13 when the bluetooth chip is in operation.
17. An electronic device with bluetooth function, wherein the electronic device is provided with the bluetooth chip of claim 16.
18. A computer-readable storage medium, having stored therein at least one program code, which is loaded into and executed by a bluetooth chip, to implement the method of establishing a bluetooth link in a slave device according to any one of claims 1 to 7, or the method of establishing a bluetooth link in a master device according to any one of claims 8 to 13.
CN202110621098.2A 2021-06-03 2021-06-03 Method and device for establishing Bluetooth link, bluetooth chip and equipment Pending CN115442778A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110621098.2A CN115442778A (en) 2021-06-03 2021-06-03 Method and device for establishing Bluetooth link, bluetooth chip and equipment
PCT/CN2022/091441 WO2022252917A1 (en) 2021-06-03 2022-05-07 Method and apparatus for establishing bluetooth link, and bluetooth chip and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110621098.2A CN115442778A (en) 2021-06-03 2021-06-03 Method and device for establishing Bluetooth link, bluetooth chip and equipment

Publications (1)

Publication Number Publication Date
CN115442778A true CN115442778A (en) 2022-12-06

Family

ID=84240029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110621098.2A Pending CN115442778A (en) 2021-06-03 2021-06-03 Method and device for establishing Bluetooth link, bluetooth chip and equipment

Country Status (2)

Country Link
CN (1) CN115442778A (en)
WO (1) WO2022252917A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (en) * 2023-04-25 2023-11-28 荣耀终端有限公司 Data interaction method for handwriting pen multi-connection scene, handwriting pen and Bluetooth system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104756542A (en) * 2012-10-30 2015-07-01 诺基亚技术有限公司 Using bluetooth low energy
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
US20180255598A1 (en) * 2017-03-02 2018-09-06 Abov Semiconductor Co., Ltd. Method of connecting multiple apparatuses using low-power bluetooth
CN109314630A (en) * 2018-09-06 2019-02-05 深圳市汇顶科技股份有限公司 Chain processing method, equipment and storage medium
US20190075611A1 (en) * 2017-07-18 2019-03-07 Thales Avionics, Inc. Slave bluetooth device switching between active bluetooth connections with different master bluetooth devices
CN110892748A (en) * 2019-10-14 2020-03-17 深圳市汇顶科技股份有限公司 Link processing method, device and storage medium
US20200196323A1 (en) * 2018-12-13 2020-06-18 Qualcomm Incorporated Network neighborhood alignment
CN111683354A (en) * 2020-05-11 2020-09-18 杭州寰星电子科技有限公司 One-master multi-slave event scheduling method and device in low-power-consumption Bluetooth connection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100068566A (en) * 2008-12-15 2010-06-24 삼성전자주식회사 Method and system for providing audio data service
CN110972120B (en) * 2018-09-29 2023-05-16 安凯(广州)微电子技术有限公司 Multi-link management method, system and device for low-power consumption Bluetooth equipment
CN111654845B (en) * 2020-05-12 2023-07-14 南京中感微电子有限公司 Bluetooth multi-terminal link switching method, bluetooth audio equipment and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104756542A (en) * 2012-10-30 2015-07-01 诺基亚技术有限公司 Using bluetooth low energy
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
US20180255598A1 (en) * 2017-03-02 2018-09-06 Abov Semiconductor Co., Ltd. Method of connecting multiple apparatuses using low-power bluetooth
US20190075611A1 (en) * 2017-07-18 2019-03-07 Thales Avionics, Inc. Slave bluetooth device switching between active bluetooth connections with different master bluetooth devices
CN109314630A (en) * 2018-09-06 2019-02-05 深圳市汇顶科技股份有限公司 Chain processing method, equipment and storage medium
US20200196323A1 (en) * 2018-12-13 2020-06-18 Qualcomm Incorporated Network neighborhood alignment
CN110892748A (en) * 2019-10-14 2020-03-17 深圳市汇顶科技股份有限公司 Link processing method, device and storage medium
CN111683354A (en) * 2020-05-11 2020-09-18 杭州寰星电子科技有限公司 One-master multi-slave event scheduling method and device in low-power-consumption Bluetooth connection

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (en) * 2023-04-25 2023-11-28 荣耀终端有限公司 Data interaction method for handwriting pen multi-connection scene, handwriting pen and Bluetooth system

Also Published As

Publication number Publication date
WO2022252917A1 (en) 2022-12-08

Similar Documents

Publication Publication Date Title
US11330650B2 (en) Wireless connection method and device
WO2014189619A1 (en) Synchronization of multi-channel audio communicated over bluetooth low energy
US9680604B2 (en) Method and apparatus for device to device communication
US11943609B2 (en) Bluetooth communication system capable of increasing generation efficiency of cypher keys required for data transmission between bluetooth host device and bluetooth device set, and related bluetooth device set
WO2014137160A1 (en) Slot-based d2d communication method and apparatus
KR20220047515A (en) Efficient techniques for resource selection assistance reporting for nr rel-17 sidelink
CN115442778A (en) Method and device for establishing Bluetooth link, bluetooth chip and equipment
CN113170497A (en) Electronic device and method for scheduling communication data link thereof
CN111954123B (en) Method, system, medium, and wireless audio device for information synchronization of wireless audio devices
CN112055315A (en) Bluetooth broadcast communication method, system and master device and slave device thereof
WO2023165246A1 (en) Bluetooth protocol communication method, electronic device, apparatus, storage medium and product
CN111970669A (en) Bluetooth connection method and device and Bluetooth equipment
JP2014527780A (en) Broadcast method and apparatus in system for direct communication between devices
WO2022242340A1 (en) Methods and apparatus for broadcasting and receiving bluetooth data packet, terminal, and storage medium
US20190116597A1 (en) Mobile device and uplink data transmission method thereof
CN117501725A (en) Data transmission method and device
CN111491278B (en) Method and terminal for playing audio through Bluetooth device
US10349456B2 (en) Video communication system, video transmission terminal, video reception terminal, communication method, and recording medium
US10817013B2 (en) Information processing apparatus, method of controlling information processing apparatus, non-transitory storage medium encoded with computer readable program for information processing apparatus, and information processing system
KR20210157131A (en) Audio output apparatus receiving data wirelessly from electronic device and operation method of the same
JP6566796B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN112312329A (en) Communication method and system based on Bluetooth broadcast, and master device and slave device thereof
EP4369747A1 (en) Electronic device, and method of transmitting data in electronic device
CN114666741B (en) Wireless communication method and system
CN110913378B (en) Operation optimization for trigger-based instant messaging

Legal Events

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