WO2022252917A1 - 建立蓝牙链路的方法、装置、蓝牙芯片及设备 - Google Patents

建立蓝牙链路的方法、装置、蓝牙芯片及设备 Download PDF

Info

Publication number
WO2022252917A1
WO2022252917A1 PCT/CN2022/091441 CN2022091441W WO2022252917A1 WO 2022252917 A1 WO2022252917 A1 WO 2022252917A1 CN 2022091441 W CN2022091441 W CN 2022091441W WO 2022252917 A1 WO2022252917 A1 WO 2022252917A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
bluetooth
scheduling
master device
time point
Prior art date
Application number
PCT/CN2022/091441
Other languages
English (en)
French (fr)
Inventor
许超杰
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022252917A1 publication Critical patent/WO2022252917A1/zh

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

Definitions

  • the embodiments of the present application relate to the technical field of Bluetooth, and in particular to a method, device, Bluetooth chip and device for establishing a Bluetooth link.
  • Bluetooth Low Energy As a Bluetooth technology evolved on the basis of Bluetooth classic (BT), has lower cost and power consumption.
  • BLE devices support the establishment of more Bluetooth links at the same time. For example, classic Bluetooth devices support the establishment of up to 7 Bluetooth links at the same time, while BLE devices support the establishment of more than 7 Bluetooth links at the same time.
  • Embodiments of the present application provide a method and device for establishing a Bluetooth link, a Bluetooth chip and equipment. Described technical scheme is as follows:
  • the embodiment of the present application provides a method for establishing a Bluetooth link in a slave device, the method comprising:
  • the link establishment request is used to request to establish a second Bluetooth link with the slave device, and the link establishment request includes the second Bluetooth link.
  • a second link parameter where the second link parameter is determined by the second master device based on the first link parameter;
  • an embodiment of the present application provides a method for establishing a Bluetooth link in a master device, the method comprising:
  • an embodiment of the present application provides an apparatus for establishing a Bluetooth link in a slave device, and the apparatus includes:
  • a first establishment module configured to establish at least one first Bluetooth link with at least one first master device
  • a parameter providing module configured to send the first link parameters of each of the first Bluetooth links to the second master device
  • a request receiving module configured to receive a link establishment request from the second master device, the link establishment request is used to request to establish a second Bluetooth link with the slave device, and the link establishment request includes the A second link parameter of a second Bluetooth link, where the second link parameter is determined by the second master device based on the first link parameter;
  • a second establishing module configured to establish the second bluetooth link with the second master device based on the second link parameters, wherein the scheduling time of the second master device on the second bluetooth link The point is different from the scheduling time point of the first master device on each of the first Bluetooth links.
  • an embodiment of the present application provides an apparatus for establishing a Bluetooth link in a master device, and the apparatus includes:
  • a parameter acquisition module configured to receive first link parameters of each first Bluetooth link from a slave device, and the slave device establishes at least one first Bluetooth link with at least one first master device;
  • a second parameter determination module configured to determine a second link parameter of a second Bluetooth link based on the first link parameter, the second Bluetooth link being located between the slave device and the second master device ;as well as,
  • 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 link establishment request with the second master device based on the second link parameter.
  • Two Bluetooth links wherein the scheduling time point of the second master device on the second Bluetooth link is different from the scheduling time point of the first master device on each of the first Bluetooth links.
  • the embodiment of the present application provides a bluetooth chip
  • the bluetooth chip includes a programmable logic circuit and/or program instructions, when the bluetooth chip is running, it is used to implement the slave device as described in the above aspect
  • an embodiment of the present application provides an electronic device with a Bluetooth function, and the electronic device is provided with the Bluetooth chip as described in the above aspect.
  • the embodiment of the present application provides a computer-readable storage medium, 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 realize the above-mentioned A method for establishing a Bluetooth link in a slave device, or a method for establishing a Bluetooth link in a master device.
  • an embodiment of the present application provides a computer program product, where the computer program product 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 instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device performs the method of establishing a Bluetooth link in the slave device provided in various optional implementation manners of the above aspects. method, or, a method for establishing a Bluetooth link in the master device.
  • FIG. 1 shows 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 device scheduling conflict process in a multi-link scenario in the related art
  • FIG. 3 shows a flowchart of a method for 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 exemplary embodiment of the present application
  • FIG. 5 is a schematic diagram of the implementation of the Bluetooth broadcast sending process shown in an exemplary embodiment of the present application.
  • Fig. 6 is a schematic diagram of a first link parameter in a load shown in an exemplary embodiment of the present application
  • Fig. 7 is a schematic diagram of corresponding scheduling time points of the first master device and the second master device shown in an exemplary embodiment of the present application;
  • FIG. 8 is a sequence diagram of a bluetooth link establishment process shown in an exemplary embodiment of the present application.
  • FIG. 9 shows a structural block diagram of an apparatus for establishing a Bluetooth link in a slave device provided by an embodiment of the present application.
  • FIG. 10 shows a structural block diagram of an apparatus for establishing a Bluetooth link in a master device according to another embodiment of the present application.
  • Fig. 11 shows a structural block diagram of an electronic device with a Bluetooth function provided by an exemplary embodiment of the present application.
  • FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, and the implementation environment includes multiple master devices 110 (master) and slave devices 120 (slave).
  • Both the master device 110 and the slave device 120 are electronic devices with Bluetooth function.
  • both the master device 110 and the slave device 120 are BLE devices.
  • the master device 110 is in the master mode
  • the slave device 120 is in the slave mode
  • the electronic device working in the master mode can actively search for other bluetooth devices around and select the bluetooth device to be connected, while the electronic device working in the slave mode
  • Electronic devices can only be searched by other electronic devices and cannot be actively searched.
  • the master device 110 may be a smart phone, a tablet computer, a wearable device, a personal computer, etc.
  • the slave device 120 may be a smart speaker, a Bluetooth headset, a TV, a smart phone, and the like.
  • the master device 110 and the slave device 120 are both smart phones for illustration, but this is not limited thereto.
  • the slave device 120 can establish Bluetooth links with multiple master devices 110 at the same time.
  • the Bluetooth link may be an asynchronous connectionless (Asynchronous Connection Less, ACL) link (mainly used for packet data transmission).
  • ACL asynchronous Connection Less
  • 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 with the second master device 112, and the slave device 120 passes The first Bluetooth link performs data transmission with the first master device 111 , and the slave device 120 performs data transmission with the second master device 112 through the second Bluetooth link.
  • the above-mentioned embodiment only uses the example of establishing Bluetooth links between the slave device and two master devices.
  • the slave device can establish Bluetooth links with at least three master devices. Examples are not limited to this.
  • each master device that establishes a Bluetooth link with a slave device determines its own scheduling time point, and performs periodic scheduling to realize data transmission with the slave device, wherein the scheduling time point is based on the initial scheduling time point and The scheduling interval is determined.
  • the slave device establishes a first Bluetooth link with the first master device, and establishes a second Bluetooth link with the second master device.
  • the initial scheduling time point of the first master device is T0.
  • the first master device Based on the first scheduling interval, the first master device performs data transmission and reception with the slave device at time T0, T1 and T2 respectively;
  • the initial scheduling time point of the second master device is T3 , based on the second scheduling interval, the second master device transmits and receives data with the slave device at time T3, time T4 and time T5 respectively.
  • the slave device will choose to transmit data with the master device through one of the Bluetooth links based on factors such as the priority of the master device and the performance of sending and receiving.
  • the scheduling time point T1 of the first master device coincides with the scheduling time point T4 of the second master device. Since the priority of the first master device is higher than that of the second master device, therefore The slave device chooses to perform data transmission with the first master device through the first Bluetooth link, but the service between the slave device and the second master device is interrupted due to a scheduling conflict.
  • the slave device pre-provides the link parameters of the established Bluetooth link, so that the master device to be connected can determine the scheduling time point of the connected master device based on the link parameters, and adjust the link Route parameters avoid scheduling conflicts with the connected master device, and then establish a Bluetooth link with the slave device based on the adjusted link parameters, avoiding interruption of services between the slave device and the master device due to scheduling conflicts in multi-link scenarios; and , by reasonably planning the scheduling time points of each master device, the multi-link bandwidth and air interface utilization can be improved.
  • FIG. 3 shows a flowchart of a method for establishing a Bluetooth link provided by an exemplary embodiment of the present application.
  • This embodiment uses the method in the implementation environment shown in FIG. 1 as an example for illustration.
  • the method include:
  • Step 301 the slave device establishes at least one first Bluetooth link with at least one first master device.
  • the first master device refers to a master device that has established a Bluetooth link with the slave device.
  • the slave device establishes first bluetooth links with each first master device in sequence, and there is no scheduling conflict among the first bluetooth links.
  • the first master device sends a link establishment request including its own scheduling interval to the slave device, and the slave device communicates with the first master device according to the link establishment request.
  • the device establishes the first first Bluetooth link.
  • the slave device needs to use the link parameter sharing mechanism to instruct the subsequent first master device to adjust its own link parameters based on the link parameters of the connected master device , and establish the first Bluetooth link.
  • Step 302 the slave device sends first link parameters of each first Bluetooth link to the second master device.
  • the slave device may send the first link parameter to the second master device in a broadcast data packet manner.
  • the broadcasting manner may include Bluetooth broadcasting, Near Field Communication (Near Field Communication, NFC) broadcasting, WiFi broadcasting, etc., which is not limited in this embodiment.
  • the slave device in response to the master device connection instruction, starts the broadcast function, or the slave device keeps the broadcast function turned on, and broadcasts the Bluetooth data packet (including the first bluetooth link of each first bluetooth link) on the broadcast channel. a link parameter).
  • the master device connection command can be triggered by the user, for example, after the user enables the Bluetooth discovery function of the slave device (after enabling the Bluetooth discovery function, it can be discovered by other Bluetooth devices), and the slave device starts the broadcast function.
  • the Bluetooth data packet is an extended advertisement (Extended Advertising, AE ADV), and the first link parameter is written into the payload of the AE ADV.
  • extended Advertising Extended Advertising
  • the slave device In order to ensure the accuracy of the first link parameters in the Bluetooth data packet, optionally, each time the first master device completes a schedule, the slave device needs to update the first link parameters and update the updated first link parameters The parameters are updated to the bluetooth data package.
  • Step 303 the second master device receives first link parameters of each first Bluetooth link from the slave device.
  • the second master device refers to a master device that has not yet established a Bluetooth link with the slave device.
  • the second master device when the second master device needs to establish a Bluetooth link with the slave device, the second master device receives the Bluetooth data packet sent by the slave device on the broadcast channel, and parses out the First link parameters of each first Bluetooth link.
  • the second master device when the Bluetooth data packet is Extended Advertising (Extended Advertising, AE ADV), the second master device performs AE Extended Scan (Extended Scan) on the advertising channel, thereby receiving the AE ADV sent by the slave device.
  • Extended Advertising Extended Advertising
  • AE ADV Extended Scan
  • the second master device can also obtain the first link parameters through methods other than Bluetooth communication, such as performing NFC communication with the slave device through the NFC component and obtaining the first link parameters 1.
  • Obtaining the first link parameter through the WiFi connection with the slave device that is, receiving the first link parameter sent by the slave device through WiFi or NFC, which is not limited in this embodiment of the present application.
  • Step 304 the second master device determines a second link parameter of a second Bluetooth link based on the first link parameter, and the second Bluetooth link is located between the slave device and the second master device.
  • the second master device determines that the slave device has established a Bluetooth link with other master devices, and needs to determine its own link parameter based on the first link parameter.
  • the second link parameter of If the first link parameter is not obtained from the analysis of the Bluetooth data packet, the second master device determines that the slave device has not established a Bluetooth link with other master devices, and thus directly requests to establish a Bluetooth link with the slave device based on its own scheduling interval.
  • the second master device determines the scheduling time points of each first master device based on the first link parameters, so as to prevent the scheduling time points of the second master device from overlapping with the scheduling time points of the first master device.
  • the second link parameter of the second Bluetooth link is determined. Regarding the specific manner of determining the second link parameter, the following embodiments will describe in detail.
  • Step 305 the second master device sends a link establishment request including second link parameters to the slave device, where the link establishment request is used to request to establish a second Bluetooth link with the slave device.
  • the second master device generates a link establishment request based on the determined second link parameters, and sends a link establishment request to the slave device, requesting to establish a second Bluetooth link with the slave device, wherein the request to establish a Bluetooth link
  • the second master device is in the initiator state (Initiator).
  • Step 306 the slave device receives a link establishment request from the second master device.
  • the slave device receives the link establishment request sent by the second master device, and parses the second link parameter contained therein, so that after the second Bluetooth link is established, it accepts the second master device based on the second link parameter. scheduling.
  • Step 307 the slave device establishes a second bluetooth link with the second master device based on the second link parameters, wherein the scheduling time point of the second master device on the second bluetooth link is different from that of the second bluetooth link on each first bluetooth link A scheduling time point of the master device.
  • the slave device After the slave device establishes the second Bluetooth link with the second master device, it determines the scheduling time point of the second master device based on the second link parameters (that is, determines the scheduling mode of the second master device ), and accept the scheduling of the second master device 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 among the Bluetooth links.
  • the slave device stops broadcasting the Bluetooth data packet.
  • the second master device becomes the first master device.
  • the slave device stores the second link parameters corresponding to the second master device, and when the Bluetooth data packet is broadcast again later, It is necessary to add link parameters in the Bluetooth data packet.
  • the slave device when the first Bluetooth link is established between the slave device and the first master device, and the second Bluetooth link needs to be established with the second master device, the slave device sends the second Bluetooth link to the second master device.
  • the device provides the first link parameter corresponding to the first Bluetooth link, so that the second master device can determine, according to the first link parameter, that there is no scheduling conflict between the second Bluetooth link and the established first Bluetooth link (ie The scheduling time point on the second bluetooth link is different from the scheduling time point on each first bluetooth link) adopts the second link parameter, and sends a link establishment request to the slave device based on the second link parameter , and then establish a second Bluetooth link with the slave device; using the solution provided by the embodiment of the present application, the slave device provides the link information of the established Bluetooth link in advance, so that the master device to be connected can be established when the link is established.
  • link parameters are adjusted to avoid scheduling conflicts between multiple Bluetooth links, avoid service interruption caused by scheduling conflicts between multiple Bluetooth links, and help improve multi-link bandwidth and air interface
  • sending the first link parameters of each first Bluetooth link to the second master device including:
  • broadcast a data packet containing the first link parameters including:
  • the first scheduling interval is the 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 ;
  • the first scheduling interval and the sending timing offset are determined as first link parameters, and the data packets are broadcast according to the first link parameters.
  • determining the sending timing offset of the data packet relative to each first Bluetooth link includes:
  • the sending timing offset is determined based on each first scheduling time point and the broadcast time point of the data packet.
  • the broadcast data packet according to the first link parameter includes:
  • a data packet containing at least one group of link information is broadcast, and the number of groups of link information is the same as the number of the first Bluetooth link.
  • the second link parameters include a second scheduling interval corresponding to the second Bluetooth link and a scheduling offset
  • the scheduling offset is used to characterize the scheduling time point of the second master device corresponding to at least one first master device. Offset between time points.
  • establishing a second Bluetooth link with the second master device based on the second link parameters includes:
  • acquire the first link parameters of each first Bluetooth link provided by the slave device including:
  • Receive a data packet broadcast from the device includes the first link parameters of each first Bluetooth link, wherein the broadcast mode includes at least one of Bluetooth broadcast, WiFi broadcast and NFC broadcast.
  • determining a second link parameter of the second Bluetooth link based on the first link parameter includes:
  • the second scheduling interval and scheduling offset corresponding to the second Bluetooth link are determined based on the first link parameters.
  • the second scheduling interval is when the second master device schedules the slave device on the second Bluetooth link according to the scheduling time point.
  • the time interval between the scheduling time points, the scheduling offset is used to represent the offset between the scheduling time point of the second master device and the corresponding scheduling time point of the first master device;
  • the second scheduling interval and the scheduling offset are determined as second link parameters.
  • the first link parameters include a first scheduling interval and a sending timing offset
  • the first scheduling interval is when the first master device schedules the slave device on the first Bluetooth link according to the scheduling time point, adjacent scheduling time points
  • the time interval between, the sending timing offset is used to represent the offset between the moment when the slave device broadcasts the data packet and the corresponding scheduling time point of the first master device;
  • Determining a second scheduling interval and a scheduling offset corresponding to the second Bluetooth link based on the first link parameters including:
  • the first scheduling time point sequence is based on the first scheduling time point as the time point starting point, and the first schedule a sequence of time points with an interval of intervals;
  • the second scheduling interval and scheduling offset Based on the first scheduling time point sequence, determine the second scheduling interval and scheduling offset, wherein, when using the second scheduling interval and scheduling offset, the second scheduling time point sequence corresponding to the second Bluetooth link is the same as the first scheduling time point The sequences do not overlap.
  • T0 is a first scheduling time point
  • Interval1 is a first scheduling interval
  • Offset is a scheduling offset
  • Interval2 is a second scheduling interval
  • num1 and num2 are natural numbers.
  • the first link parameter is included in the data packet
  • the method Before determining the second link parameters of the second Bluetooth link based on the first link parameters, the method also includes:
  • each set of link information includes a link identifier and a first link parameter of the first bluetooth link, and the number of sets of link information is the same as that of the first bluetooth link same amount.
  • the second master device can adjust the scheduling deviation (Offset) between its own initial scheduling time point and the first master device's scheduling time point, and its own scheduling interval (Interval). Avoid scheduling conflicts with the primary master.
  • FIG. 4 shows a flow chart of a method for establishing a Bluetooth link provided by another exemplary embodiment of the present application.
  • This embodiment uses the implementation environment shown in FIG. 1 as an example for illustration. Methods include:
  • Step 401 the slave device establishes at least one first Bluetooth link with at least one first master device.
  • Step 402 the slave device obtains the first scheduling interval corresponding to each first Bluetooth link, the first scheduling interval is when the first master device schedules the slave device on the first Bluetooth link according to the scheduling time point, adjacent scheduling time points time interval between.
  • each master device provides its own scheduling interval to the slave device before establishing a bluetooth link with the slave device, so that the slave device periodically accepts the master device's scheduling based on the scheduling interval.
  • the slave device stores the scheduling interval of each master device that has established a Bluetooth link. When it is necessary to broadcast the first link parameters, the slave device obtains the first scheduling interval corresponding to each first master device.
  • Step 403 the slave device determines the transmission timing offset of the Bluetooth data packet relative to each first Bluetooth link, and the transmission timing offset is used to represent the time between the time when the slave device broadcasts the Bluetooth data packet and the corresponding scheduling time point of the first master device offset.
  • the second master device can only determine the time interval between adjacent scheduling time points, but cannot determine the exact time point of each scheduling, and thus cannot avoid scheduling conflicts. Therefore, the first link parameters also need to include parameters for determining at least one accurate scheduling time point.
  • this step may include the following steps:
  • the slave device Since the slave device knows the scheduling mode of the master device, the slave device can determine the first scheduling time point corresponding to the first Bluetooth link. Wherein, the first scheduling time point may be the time point of the latest scheduling.
  • the slave device determines that the first scheduling time point corresponding to the first Bluetooth link is t0.
  • the slave device can determine the broadcast time point of the Bluetooth data packet based on the scheduling situation of each first master device, so the slave device can further base on the first scheduling time point and the broadcast time point of the Bluetooth data packet (future At a certain time point), calculate and obtain the sending timing offset of the Bluetooth data packet relative to each first Bluetooth link.
  • the sending timing offset isbroadcasting time point ⁇ first scheduling time point.
  • the slave device determines the broadcast time point of the Bluetooth data packet as t1, and then determines the sending timing offset as t1-t0.
  • Step 404 the slave device determines the first scheduling interval and the sending timing offset as the first link parameters, and broadcasts the Bluetooth data packet according to the first link parameters.
  • this step may include the following steps:
  • the slave device regards the link identifier of the first Bluetooth link and the first link parameters as a set of link information, that is, each set
  • the link information is a triplet consisting of a link identifier, a sending timing offset, and a first scheduling interval.
  • the link identifier is used to uniquely represent a bluetooth link.
  • the slave device writes at least one set of link information into the payload of the Bluetooth data packet.
  • the maximum payload length of the extended broadcast is 251 bytes
  • each set of link information occupies 6 bytes
  • the link identifier (handle) occupies 2 bytes
  • the sending timing offset occupies 2 bytes
  • the first scheduling interval occupies 2 bytes.
  • the foregoing byte length is used as an example for description, but this is not intended to be a limitation.
  • the slave device broadcasts the Bluetooth data packet.
  • the slave device sends ADV_EXT_IND (extended broadcast) on the primary advertising channel, indicating to send AUX_ADV_IND (auxiliary advertising) through the secondary advertising channel (Secondary Advertising Channel), and sends the message containing the first link on the secondary advertising channel.
  • AUX_ADV_IND of the road parameter After receiving ADV_EXT_IND on the main broadcast channel, the second master device further receives AUX_ADV_IND on the secondary broadcast channel.
  • the slave device sends ADV_EXT_IND through the main broadcast channel (channels 37, 38, and 39) at time t1, and sends AUX_ADV_IND on the secondary broadcast channel after a certain time offset.
  • Step 405 the second master device receives the Bluetooth data packet broadcast by the slave device.
  • the second master device parses out the offset contained in ADV_EXT_IND, and determines the receiving window of AUX_ADV_IND on the secondary broadcast channel based on the offset, so that AUX_ADV_IND is received in the receiving window, and the first link parameter contained therein is parsed out.
  • the offset between ADV_EXT_IND in the primary broadcast channel 37 and AUX_ADV_IND in the secondary broadcast channel is offset 1
  • the offset between ADV_EXT_IND in the primary broadcast channel 38 and AUX_ADV_IND in the secondary broadcast channel is offset 2
  • the offset between ADV_EXT_IND in the main broadcast channel 39 and AUX_ADV_IND in the secondary broadcast channel is offset 3.
  • the second master device reads at least one set of link information from the load of the Bluetooth data packet, and each set of link The information includes the link identifier of the first Bluetooth link and the first link parameters, and the number of groups of the link information is the same as that of the first Bluetooth link.
  • 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 data packet.
  • the second master device After the second master device parses the transmission timing offset of each first Bluetooth link from the Bluetooth data packet, it can use the broadcast time point of the Bluetooth data packet as the starting time point to determine the corresponding The first scheduling time point, where the first scheduling time point may be the latest scheduling time point before the broadcast time of the Bluetooth data packet on each first Bluetooth link.
  • Step 407 based on the first scheduling time point and the first scheduling interval, determine a sequence of first scheduling time points corresponding to each first Bluetooth link.
  • the second master device can determine the The first scheduling time point sequence corresponding to the first Bluetooth link, wherein the first scheduling time point sequence is a time point sequence starting from the first scheduling time point and taking the first scheduling interval as an interval.
  • the first scheduling time point sequence corresponding to the first Bluetooth link can be expressed as:
  • num1 is a natural number.
  • Step 408 the second master device determines a second scheduling interval and a scheduling offset based on the first scheduling time point sequence.
  • the second master device ensures that the second Bluetooth
  • the second scheduling time point sequence corresponding to the link does not overlap with the first scheduling time point sequence, wherein the second scheduling interval is the time interval between adjacent scheduling time points when the second master device schedules, and the scheduling offset is used is used to represent the offset between the scheduling time point of the second master device and the corresponding scheduling time point of the first master device.
  • the second scheduling time point sequence corresponding to the second Bluetooth link can be expressed as:
  • num2 is a natural number.
  • the second master device adjusts Offset and Interval2 until T1 ⁇ T2.
  • 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.
  • 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.
  • Step 409 the second master device determines the second scheduling interval and the scheduling offset as the second link parameters.
  • the second master device determines the second scheduling interval and the scheduling offset as the second link parameters (Interval2, Offset).
  • Step 410 the second master device sends a link establishment request including second link parameters to the slave device.
  • Step 411 the slave device receives a link establishment request from the second master device.
  • steps 410 to 411 For the implementation manner of the above-mentioned steps 410 to 411, reference may be made to steps 305 to 306, which will not be repeated in this embodiment.
  • 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.
  • the slave device Since the first link parameters and the second link parameters may deviate during the transmission or analysis process, 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 be based on the second The link parameter and the first link parameter perform scheduling conflict detection on the second bluetooth link and the first bluetooth link.
  • the slave device determines the scheduling time point of each first Bluetooth link based on the first link parameter, and determines the scheduling time point of the second Bluetooth link based on the second link parameter, thereby detecting Whether there is overlap between the two scheduling time points, if there is overlap, it is determined that the scheduling conflict detection has not passed, and if there is no overlap, it is determined that the scheduling conflict detection has passed.
  • Step 413 if there is no scheduling conflict, the slave device establishes a second Bluetooth link with the second master device based on the second link parameters.
  • the slave device establishes a second bluetooth link with the second master device.
  • this step reference may be made to the above step 307 , which will not be repeated here in this embodiment.
  • the second master device determines that the scheduling time points of the first master device are T0, T0+Interval1, T0+2*Interval1..., thereby determining its own second scheduling interval Interval2 and Scheduling offset Offset, based on Interval2 and Offset, the second master device schedules at T0+Offset, T0+Offset+Interval2, T0+Offset+2*Interval2... these scheduling time points.
  • ACL1 (the first Bluetooth link) is firstly established between the first master device and the slave device.
  • ACL2 second Bluetooth link
  • the slave device calculates the transmission timing offset Offset0 between the broadcast and ACL1, and obtains the Interval1 of the first master device, thereby starting the AE broadcast and sending to the second master device
  • the second master sends AE ADV (including Offset0 and Interval1).
  • the second master device After receiving the AE ADV, the second master device analyzes the Offset0 and Interval1, and calculates the offset and Interval1 of ACL2 with the AE ADV as the starting time point, so as to send a link establishment request (including Offset and Interval2) to the slave device. . Based on the link establishment request, the slave device establishes ACL2 with the second master device, and stops broadcasting.
  • the slave device after the slave device broadcasts the Bluetooth data packet containing the first link parameter, after the second master device to be connected receives and parses the first link parameter in the Bluetooth data packet, it can Adjust the second link parameters of itself to avoid scheduling conflicts with the first Bluetooth link; A link parameter, so that the second master device can use the broadcast time of the Bluetooth data packet as the starting time point to determine the scheduling time point of each first Bluetooth link, and then determine the corresponding time point of each first Bluetooth link.
  • the scheduling time point sequence on the one hand, reduces the number of bytes occupied by transmitting the first link parameters, and on the other hand, improves the accuracy of the determined scheduling time point.
  • the above-mentioned embodiment only takes broadcasting Bluetooth data packets as an example for illustration.
  • the slave device can Determine the sending timing offset, and write the sending timing offset as the first link parameter into the WiFi data packet or the NFC data packet, which will not be described in detail here in this embodiment.
  • the steps with the slave device as the execution subject can be implemented separately as a method for establishing a Bluetooth link in the slave device, and the steps with the second master device as the execution subject can be implemented separately as a method in the master device
  • the method for establishing a bluetooth link will not be described in detail here in this embodiment.
  • FIG. 9 shows a structural block diagram of an apparatus for establishing a Bluetooth link in a slave device according to an embodiment of the present application.
  • the device can 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 the first link parameters of each of the first Bluetooth links to the second master device;
  • the request receiving module 903 is configured to receive a link establishment request from the second master device, the link establishment request is used to request to establish a second Bluetooth link with the slave device, and the link establishment request includes the A second link parameter of the second Bluetooth link, the second link parameter is determined by the second master device based on the first link parameter; and,
  • the second establishment module 904 is configured to establish the second bluetooth link with the second master device based on the second link parameters, wherein the scheduling of the second master device on the second bluetooth link The time point is different from the scheduling time point of the first master device on each of the first Bluetooth links.
  • the parameter providing module 902 is used for:
  • a broadcasting unit configured to broadcast a data packet containing the first link parameter, wherein the broadcasting manner includes at least one of Bluetooth broadcasting, WiFi broadcasting, and NFC broadcasting.
  • the broadcast unit is used for:
  • the first scheduling interval is when the first master device schedules the slave device on the first Bluetooth link according to the scheduling time point, adjacent the time interval between scheduling time points;
  • the sending timing offset being used to indicate that the moment when the slave device broadcasts the data packet corresponds to the first master device the offset between scheduling time points;
  • the broadcast unit When determining the sending timing offset of the data packet relative to each of the first Bluetooth links, the broadcast unit is specifically used for:
  • the sending timing offset is determined based on each of the first scheduling time points and the broadcast time points of the data packets.
  • the broadcast unit When broadcasting the data packet according to the first link parameter, the broadcast unit is specifically used for:
  • the number of groups of the link information is the same as the number of the first bluetooth links.
  • the second link parameters include a second scheduling interval and a scheduling offset corresponding to the second Bluetooth link
  • the scheduling offset is used to characterize the scheduling time point of the second master device and at least An offset between the scheduling time points corresponding to the first master device.
  • the second establishing module 904 is configured to:
  • FIG. 10 shows a structural block diagram of an apparatus for establishing a Bluetooth link in a master device according to another embodiment of the present application.
  • the device can include:
  • a parameter acquisition module 1001 configured to receive first link parameters of each first Bluetooth link from a slave device, and the slave device establishes at least one first Bluetooth link with at least one first master device;
  • the second parameter determination module 1002 is configured to determine a second link parameter of a second Bluetooth link based on the first link parameter, and the second Bluetooth link is located between the slave device and the second master device room; and,
  • 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 link establishment request with the second master device based on the second link parameter.
  • the second Bluetooth link wherein the scheduling time point of the second master device on the second Bluetooth link is different from the scheduling time point of the first master device on each of the first Bluetooth links.
  • the parameter acquisition module 1001 includes:
  • a receiving unit configured to receive a data packet broadcast by the slave device, the data packet includes the first link parameters of each of the first bluetooth links, wherein the broadcasting method includes bluetooth broadcast, WiFi broadcast and At least one of NFC broadcasts.
  • the second parameter determination module 1002 includes:
  • a first determining unit configured to determine a second scheduling interval and a scheduling offset corresponding to the second Bluetooth link based on the first link parameters, the second scheduling interval being the second master device according to the scheduling time
  • the time interval between adjacent scheduling time points, the scheduling offset is used to characterize the scheduling time point of the second master device and the first An offset between scheduling time points corresponding to a master device;
  • a second determining unit configured to determine the second scheduling interval and the scheduling offset as the second link parameters.
  • the first link parameters include a first scheduling interval and a sending timing offset
  • the first scheduling interval is for the first master device to schedule the first bluetooth link on the first bluetooth link according to the scheduling time point.
  • the sending timing offset is used to represent the time between the time when the slave device broadcasts the data packet and the corresponding scheduling time point of the first master device offset;
  • the first determining unit is configured to:
  • the first scheduling time point sequence is based on the first scheduling
  • the time point is a time point starting point, a time point sequence with the first scheduling interval as an interval;
  • the second scheduling interval and the scheduling offset Based on the first scheduling time point sequence, determine the second scheduling interval and the scheduling offset, wherein, when the second scheduling interval and the scheduling offset are used, the second Bluetooth link corresponds to The second sequence of scheduling time points does not overlap with the first sequence of scheduling time points.
  • T0 is the first scheduling time point
  • Interval1 is the first scheduling interval
  • Offset is the scheduling offset
  • Interval2 is the second scheduling interval
  • num1 and num2 are natural numbers.
  • the first link parameter is included in the data packet
  • the device also includes:
  • a reading module configured to read at least one set of link information from the data packet, each set of link information includes the link identifier of the first Bluetooth link and the first link parameters, And the group number of the link information is the same as the number of the first bluetooth link.
  • FIG. 11 shows a structural block diagram of an electronic device with Bluetooth function provided by an exemplary embodiment of the present application.
  • the electronic device 1100 may be a smart phone, a tablet computer, a wearable device, and the like.
  • the electronic device 1100 in this 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 uses various interfaces and lines to connect various parts of the entire electronic device 1100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1120, and calls data stored in the memory 1120 to execute Various functions of the electronic device 1100 and processing data.
  • the processor 1110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1110 can integrate one or more of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU) and a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • an image processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the content that needs to be displayed on the display screen
  • the NPU is used to realize artificial intelligence (Artificial Intelligence, AI) functions
  • the modem is used to process wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1110, but may be realized by a single chip.
  • the memory 1120 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM).
  • the memory 1120 includes a non-transitory computer-readable storage medium.
  • the memory 1120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for realizing the following various method embodiments; the storage data area can store data created according to the use of the electronic device 1100 (such as audio data, phonebook) and the like.
  • the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for realizing the following various method embodiments; the storage data area can store data created according to the use of the electronic device 1100 (such as audio data, phonebook) and the like.
  • the Bluetooth chip 1130 is a component for realizing the Bluetooth function.
  • the Bluetooth chip 1130 includes two parts, Host and Controller (corresponding to different Bluetooth protocol stacks), and the Host and Controller can run on the same chip (single-chip architecture), or can run on different chips (dual-chip architecture).
  • the Host runs on the processor
  • the Controller runs on the Bluetooth module; or, both the Host and the 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 instructions.
  • the structure of the electronic device 1100 shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the illustration, or combine certain components, or a different arrangement of components.
  • the electronic device 1100 also includes components such as a display screen, a sensor, a speaker, a microphone, and a power supply, which will not be repeated here.
  • the embodiment of the present application also provides a bluetooth chip, the bluetooth chip includes a programmable logic circuit and/or program instructions, when the bluetooth chip is running, it is used to implement the method for establishing a bluetooth link in the slave device as described in the above aspect , or, implementing the method for establishing a Bluetooth link in the master device as described in the above aspect.
  • the embodiment of the present application also provides 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 realize the above-mentioned various embodiments in the slave device A method for establishing a Bluetooth link in a master device, or a method for establishing a Bluetooth link in a master device.
  • a computer program product comprising computer instructions stored in a computer readable storage medium.
  • the Bluetooth chip of the electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device performs the method of establishing a Bluetooth link in the slave device provided in various optional implementation manners of the above aspects. method, or, a method for establishing a Bluetooth link in the master device.
  • the "plurality” mentioned herein refers to two or more than two.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character "/” generally indicates that the contextual objects are an "or” relationship.
  • the numbering of the steps described herein only exemplarily shows a possible sequence of execution among the steps. In some other embodiments, the above-mentioned steps may not be executed according to the order of the numbers, such as two different numbers The steps are executed at the same time, or two steps with different numbers are executed in the reverse order as shown in the illustration, which is not limited in this embodiment of the present application.

Landscapes

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

Abstract

一种建立蓝牙链路的方法、装置、蓝牙芯片及设备,属于蓝牙技术领域。方法包括:与至少一个第一主设备建立至少一条第一蓝牙链路;向第二主设备发送各条第一蓝牙链路的第一链路参数;从第二主设备接收链路建立请求,链路建立请求用于请求与从设备建立第二蓝牙链路,链路建立请求中包含第二蓝牙链路的第二链路参数,第二链路参数基于第一链路参数确定得到;基于第二链路参数与第二主设备建立第二蓝牙链路,其中,第二蓝牙链路上的调度时间点不同于各条第一蓝牙链路上的调度时间点。

Description

建立蓝牙链路的方法、装置、蓝牙芯片及设备
本申请要求于2021年6月3日提交的申请号为202110621098.2、发明名称为“建立蓝牙链路的方法、装置、蓝牙芯片及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及蓝牙技术领域,特别涉及一种建立蓝牙链路的方法、装置、蓝牙芯片及设备。
背景技术
低功耗蓝牙(Bluetooth Low Energy,BLE)作为一种在经典蓝牙(Bluetooth classic,BT)基础上演进而来的蓝牙技术,具有更低的成本与功耗。
并且,相较于经典蓝牙设备,BLE设备支持同时建立更多的蓝牙链路。比如,经典蓝牙设备支持最多同时建立7条蓝牙链路,而BLE设备则支持同时建立7条以上蓝牙链路。
发明内容
本申请实施例提供了一种建立蓝牙链路的方法、装置、蓝牙芯片及设备。所述技术方案如下:
一方面,本申请实施例提供了一种在从设备中建立蓝牙链路的方法,所述方法包括:
与至少一个第一主设备建立至少一条第一蓝牙链路;
向第二主设备发送各条所述第一蓝牙链路的第一链路参数;
从所述第二主设备接收链路建立请求,所述链路建立请求用于请求与所述从设备建立第二蓝牙链路,所述链路建立请求中包含所述第二蓝牙链路的第二链路参数,所述第二链路参数由所述第二主设备基于所述第一链路参数确定得到;以及,
基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
另一方面,本申请实施例提供了一种在主设备中建立蓝牙链路的方法,所述方法包括:
从从设备接收各条第一蓝牙链路的第一链路参数,所述从设备与至少一个第一主设备建立至少一条所述第一蓝牙链路;
基于所述第一链路参数确定第二蓝牙链路的第二链路参数,所述第二蓝牙链路位于所述从设备和所述第二主设备之间;以及,
向所述从设备发送包括所述第二链路参数的链路建立请求,以便所述从设备基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
另一方面,本申请实施例提供了一种在从设备中建立蓝牙链路的装置,所述装置包括:
第一建立模块,用于与至少一个第一主设备建立至少一条第一蓝牙链路;
参数提供模块,用于向第二主设备发送各条所述第一蓝牙链路的第一链路参数;
请求接收模块,用于从所述第二主设备接收链路建立请求,所述链路建立请求用于请求与所述从设备建立第二蓝牙链路,所述链路建立请求中包含所述第二蓝牙链路的第二链路参数,所述第二链路参数由所述第二主设备基于所述第一链路参数确定得到;以及,
第二建立模块,用于基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
另一方面,本申请实施例提供了一种在主设备中建立蓝牙链路的装置,所述装置包括:
参数获取模块,用于从从设备接收各条第一蓝牙链路的第一链路参数,所述从设备与至少一个第一主设备建立至少一条所述第一蓝牙链路;
第二参数确定模块,用于基于所述第一链路参数确定第二蓝牙链路的第二链路参数,所述第二蓝牙链路位于所述从设备和所述第二主设备之间;以及,
请求发送模块,用于向所述从设备发送包括所述第二链路参数的链路建立请求,以便所述从设备基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
另一方面,本申请实施例提供了一种蓝牙芯片,所述蓝牙芯片包括可编程逻辑电路和/或程序指令,当所述蓝牙芯片运行时,用于实现如上述方面所述的在从设备中建立蓝牙链路的方法,或,实现如上述方面所述的在主设备中建立蓝牙链路的方法。
另一方面,本申请实施例提供了一种具有蓝牙功能的电子设备,所述电子设备中设置有如上述方面所述的蓝牙芯片。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由蓝牙芯片加载并执行以实现如上述方面所述的在从设备中建立蓝牙链路的方法,或,在主设备中建立蓝牙链路的方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的蓝牙芯片从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述方面的各种可选实现方式中提供的在从设备中建立蓝牙链路的方法,或,在主设备中建立蓝牙链路的方法。
附图说明
图1示出了本申请一个示例性实施例提供的实施环境的示意图;
图2是相关技术中多链路场景下主设备调度冲突过程的示意图;
图3示出了本申请一个示例性实施例提供的建立蓝牙链路的方法的流程图;
图4示出了本申请另一个示例性实施例提供的建立蓝牙链路的方法的流程图;
图5是本申请一个示例性实施例示出的蓝牙广播发送过程的实施示意图;
图6是本申请一个示例性实施例示出的负载中第一链路参数的示意图;
图7是本申请一个示例性实施例示出的第一主设备和第二主设备各自对应调度时间点的示意图;
图8是本申请一个示例性实施例示出的蓝牙链路建立过程的时序图;
图9示出了本申请一个实施例提供的在从设备中建立蓝牙链路的装置的结构框图;
图10示出了本申请另一个实施例提供的在主设备中建立蓝牙链路的装置的结构框图;
图11示出了本申请一个示例性实施例提供的具有蓝牙功能的电子设备的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
请参考图1,其示出了本申请一个示例性实施例提供的实施环境的示意图,该实施环境中包括多个主设备110(master)和从设备120(slave)。
主设备110和从设备120均是具有蓝牙功能的电子设备。在一种可能的实施方式中,主设备110和从设备120均是BLE设备。其中,主设备110处于主设备模式,而从设备120处于从设备模式,且工作在主设备模式的电子设备可以主动搜索周围其他蓝牙设备并选择需要连接的蓝牙设备,而工作在从设备模式的电子设备则只能够被其他电子设备搜索而无法主动搜索。
在一些实施例中,主设备110可以是智能手机、平板电脑、可穿戴式设备、个人计算机等等,从设备120可以是智能音箱、蓝牙耳机、电视、智能手机等等。图1中以主设备110和从设备120均为智能手机为例进行说明,但并不对此构成限定。
本申请实施例中,从设备120可以同时与多个主设备110建立蓝牙链路。其中,该蓝牙链路可以为异步无连接(Asynchronous Connection Less,ACL)链路(主要用于分组数据传输)。示意性的,如图1所示,从设备120与第一主设备111之间建立有第一蓝牙链路,且与第二主设备112之间建立有第二蓝牙链路,从设备120通过第一蓝牙链路与第一主设备111进行数据传输,从设备120通过第二蓝牙链路与第二主设备112进行数据传输。
需要说明的是,上述实施例仅以从设备与两个主设备建立蓝牙链路为例进行说明,在其他可能的实施方式中,从设备可以与至少三个主设备建立蓝牙链路,本实施例并不对此构成限定。
相关技术中,与从设备建立蓝牙链路的各个主设备决定各自的调度时间点,并进行周期性调度,实现与从设备之间的数据传输,其中,该调度时间点基于初始调度时间点以及调度间隔确定得到。
示意性的,如图2所示,从设备与第一主设备建立有第一蓝牙链路,与第二主设备建立有第二蓝牙链路。第一主设备的初始调度时间点为T0,基于第一调度间隔,第一主设备分别在T0时刻、T1时刻以及T2时刻与从设备进行数据收发;第二主设备的初始调度时间点为T3,基于第二调度间隔,第二主设备分别在T3时刻、T4时刻以及T5时刻与从设备进行数据收发。
然而,由于第一主设备和第二主设备之间互不知悉对方的调度时间点,而当第一主设备和第二主设备的调度时间点重合时,将会出现调度冲突。而当出现调度冲突时,从设备会基于主设备的优先级、收发性能等因素,选择通过其中一条蓝牙链路与主设备进行数据传输。
示意性的,如图2所示,第一主设备的调度时间点T1与第二主设备的调度时间点T4重合,由于第一主设备的优先级高于第二主设备的优先级,因此从设备选择通过第一蓝牙链路与第一主设备进行数据传输,而从设备与第二主设备之间的业务则因调度冲突打断。
而本申请实施例中,从设备通过预先提供已建立蓝牙链路的链路参数,使待建立连接主设备能够基于该链路参数,确定出已连接主设备的调度时间点,并通过调整链路参数避免与已连接主设备发生调度冲突,进而基于调整后的链路参数与从设备建立蓝牙链路,避免多链路场景下从设备与主设备之间的业务因调度冲突而中断;并且,通过合理规划各个主设备的调度时间点,能够提高多链路带宽以及空口利用率。
请参考图3,其示出了本申请一个示例性实施例提供的建立蓝牙链路的方法的流程图,本实施例以该方法用于图1所示的实施环境为例进行说明,该方法包括:
步骤301,从设备与至少一个第一主设备建立至少一条第一蓝牙链路。
本实施例中,第一主设备指已经与从设备建立蓝牙链路的主设备。
在一种可能的实施方式中,从设备依次与各个第一主设备建立第一蓝牙链路,且各条第一蓝牙链路之间不存在调度冲突。其中,当从设备与首个第一主设备建立蓝牙链路时,该第一主设备向从设备发送包含自身调度间隔的链路建立请求,从设备即根据该链路建立请求与第一主设备建立首条第一蓝牙链路。与后续第一主设备建立蓝牙链路时,为了避免调度冲突,从设备则需要通过链路参数共享机制,指示后续第一主设备基于已连接主设备的链路参数对自身链路参数进行调整,并建立第一蓝牙链路。
步骤302,从设备向第二主设备发送各条第一蓝牙链路的第一链路参数。
关于提供第一链路参数的具体方式,可选的,从设备可以通过广播数据包的方式,向第二主设备发送第一链路参数。其中,广播方式可以包括蓝牙广播、近场通信(Near Field Communication,NFC)广播、WiFi广播等等,本实施例对此不作限定。
在一种可能的实施方式中,响应于主设备连接指令,从设备开启广播功能,或者,从设备保持广播功能开启,并在广播信道广播蓝牙数据包(包含各条第一蓝牙链路的第一链路参数)。其中,该主设备连接指令可以由用户触发,比如用户开启从设备的蓝牙发现功能后(开启蓝牙发现功能后即可被其他蓝牙设备发现),从设备开启广播功能。
在一些实施例中,该蓝牙数据包为扩展广播(Extended Advertising,AE ADV),且该第一链路参数被写入AE ADV的负载(payload)。
为了保证蓝牙数据包中第一链路参数的准确性,可选的,第一主设备每完成一次调度,从设备都需要对第一链路参数进行更新,并将更新后的第一链路参数更新至蓝牙数据包。
步骤303,第二主设备从从设备接收各条第一蓝牙链路的第一链路参数。
本实施例中,第二主设备则是指暂未与从设备建立蓝牙链路的主设备。
在一种可能的实施方式中,当第二主设备需要与从设备建立蓝牙链路时,第二主设备即在广播信道上接收从设备发送的蓝牙数据包,并从蓝牙数据包中解析出各条第一蓝牙链路的第一链路参数。
在一些实施例中,当蓝牙数据包为扩展广播(Extended Advertising,AE ADV)时,第二主设备即在广播信道进行AE扩展扫描(Extended Scan),从而接收到从设备发送的AE ADV。
除了通过蓝牙通信的方式获取第一链路参数外,第二主设备还可以通过蓝牙通信以外的方式获取第一链路参数,比如通过NFC组件与从设备进行NFC通信并获取第一链路参数、通过与从设备之间的WiFi连接获取第一链路参数(即通过WiFi或NFC接收从设备发送的第一链路参数),本申请实施例并不对此进行限定。
步骤304,第二主设备基于第一链路参数确定第二蓝牙链路的第二链路参数,第二蓝牙链路位于从设备和第二主设备之间。
在一种可能的实施方式中,若从蓝牙数据包中解析得到第一链路参数,第二主设备则确定从设备已经与其他主设备建立蓝牙链路,需要基于第一链路参数确定自身的第二链路参数。若未从蓝牙数据包中解析得到第一链路参数,第二主设备则确定从设备未与其他主设备建立蓝牙链路,从而直接基于自身调度间隔请求与从设备建立蓝牙链路。
在一些实施例中,第二主设备基于第一链路参数确定出各个第一主设备的调度时间点,从而以避免第二主设备的调度时间点与第一主设备的调度时间点重合为原则,确定第二蓝牙链路的第二链路参数。关于确定第二链路参数的具体方式,下述实施例将进行详述。
步骤305,第二主设备向从设备发送包括第二链路参数的链路建立请求,链路建立请求用于请求与从设备建立第二蓝牙链路。
进一步的,第二主设备基于确定出的第二链路参数生成链路建立请求,并向从设备发送链路建立请求,请求与从设备建立第二蓝牙链路,其中,请求建立蓝牙链路过程中,第二主设备处于发起态(Initiator)。
步骤306,从设备从第二主设备接收链路建立请求。
相应的,从设备接收第二主设备发送的链路建立请求,并解析其中包含的第二链路参数,以便完成第二蓝牙链路建立后,基于该第二链路参数接受第二主设备的调度。
步骤307,从设备基于第二链路参数与第二主设备建立第二蓝牙链路,其中,第二蓝牙链路上第二主设备的调度时间点不同于各条第一蓝牙链路上第一主设备的调度时间点。
在一种可能的实施方式中,从设备与第二主设备建立第二蓝牙链路后,基于该第二链路参数确定第二主设备的调度时间点(即确定第二主设备的调度方式),并基于该调度时间点接受第二主设备调度。由于第二主设备与各个第一主设备的调度时间点之间不重合,因此各条蓝牙链路之间不存在调度冲突。
可选的,完成第二蓝牙链路建立后,从设备停止广播蓝牙数据包。
可选的,完成蓝牙链路建立后,第二主设备即成为第一主设备,相应的,从设备对第二主设备对应的第二链路参数进行存储,后续再次广播蓝牙数据包时,则需要在蓝牙数据包中增加链路参数。
综上所述,本申请实施例中,从设备与第一主设备之间完成第一蓝牙链路建立,并需要与第二主设备建立第二蓝牙链路时,从设备通过向第二主设备提供第一蓝牙链路对应的第一链路参数,使第二主设备能够根据第一链路参数,确定第二蓝牙链路与已建立的第一蓝牙链路不存在调度冲突时(即第二蓝牙链路上的调度时间点与各条第一蓝牙链路上的调度时间点均不同)采用的第二链路参数,并基于该第二链路参数向从设备发送链路建立请求,进而与从设备之间建立第二蓝牙链路;采用本申请实施例提供的方案,从设备通过预先提供已建立蓝牙链路的链路信息,使待建立连接的主设备能够在链路建立阶段通过调整链路参数来规避多蓝牙链路之间的调度冲突,避免因多蓝牙链路之间调度冲突导致业务中断的问题,并有助于提高多链路带宽和空口利用率。
可选的,向第二主设备发送各条第一蓝牙链路的第一链路参数,包括:
广播包含第一链路参数的数据包,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
可选的,广播包含第一链路参数的数据包,包括:
获取各条第一蓝牙链路对应的第一调度间隔,第一调度间隔为第一主设备根据调度时间点在第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔;
确定数据包相对于各条第一蓝牙链路的发送时序偏移,发送时序偏移用于表征从设备广播数据包的时刻与第一主设备对应调度时间点之间的偏移;以及,
将第一调度间隔和发送时序偏移确定为第一链路参数,并根据第一链路参数广播数据包。
可选的,确定数据包相对于各条第一蓝牙链路的发送时序偏移,包括:
确定各条第一蓝牙链路各自对应的第一调度时间点;以及,
基于各个第一调度时间点以及数据包的广播时间点,确定发送时序偏移。
可选的,根据第一链路参数广播数据包,包括:
基于各条第一蓝牙链路的链路标识以及第一链路参数,生成至少一组链路信息;以及,
广播包含至少一组链路信息的数据包,链路信息的组数与第一蓝牙链路的数量相同。
可选的,第二链路参数包括第二蓝牙链路对应的第二调度间隔以及调度偏移,调度偏移用于表征第二主设备的调度时间点与至少一个第一主设备对应的调度时间点之间的偏移。
可选的,基于第二链路参数与第二主设备建立第二蓝牙链路,包括:
基于第二链路参数以及第一链路参数,对第二蓝牙链路和第一蓝牙链路进行调度冲突检测;以及,
在不存在调度冲突的情况下,基于第二链路参数与第二主设备建立第二蓝牙链路。
可选的,获取从设备提供的各条第一蓝牙链路的第一链路参数,包括:
接收从设备广播的数据包,数据包中包含各条第一蓝牙链路的第一链路参数,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
可选的,基于第一链路参数确定第二蓝牙链路的第二链路参数,包括:
基于第一链路参数确定第二蓝牙链路对应的第二调度间隔以及调度偏移,第二调度间隔为第二主设备根据调度时间点在第二蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔,调度偏移用于表征第二主设备的调度时间点与第一主设备对应的调度时间点之间的偏移;以及,
将第二调度间隔和调度偏移确定为第二链路参数。
可选的,第一链路参数包括第一调度间隔以及发送时序偏移,第一调度间隔为第一主设备根据调度时间点在第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔,发送时序偏移用于表征从设备广播数据包的时刻与第一主设备对应调度时间点之间的偏移;
基于第一链路参数确定第二蓝牙链路对应的第二调度间隔以及调度偏移,包括:
基于数据包的广播时间点以及发送时序偏移,确定各条第一蓝牙链路对应的第一调度时间点;
基于第一调度时间点以及第一调度间隔,确定各条第一蓝牙链路对应的第一调度时间点序列,第一调度时间点序列是以第一调度时间点为时间点起点,以第一调度间隔为间隔的时间点序列;以及,
基于第一调度时间点序列,确定第二调度间隔以及调度偏移,其中,采用第二调度间隔以及调度偏移时,第二蓝牙链路对应的第二调度时间点序列与第一调度时间点序列不重叠。
可选的,
第一调度时间点序列表示为:T1=T0+num1*Interval1;
第二调度时间点序列表示为:T2=T1+Offset+num2*Interval2;
T0为第一调度时间点,Interval1为第一调度间隔,Offset为调度偏移,Interval2为第二调度间隔,num1和num2为自然数。
可选的,第一链路参数包含在数据包中;
基于第一链路参数确定第二蓝牙链路的第二链路参数之前,方法还包括:
从数据包中读取至少一组链路信息,每组链路信息中包含第一蓝牙链路的链路标识以及第一链路参数,且链路信息的组数与第一蓝牙链路的数量相同。
对于已经建立蓝牙链路的第一主设备而言,在初始调度时间点完成调度后,第一主设备即按照固定的调度间隔进行调度。因此,第二主设备可以通过调整自身初始调度时间点与第一主设备的调度时间点之间的调度偏差(Offset),以及自身的调度间隔(Interval)。避免与第一主设备发生调度冲突。下面采用示例性的实施例进行说明。
请参考图4,其示出了本申请另一个示例性实施例提供的建立蓝牙链路的方法的流程图,本实施例以该方法用于图1所示的实施环境为例进行说明,该方法包括:
步骤401,从设备与至少一个第一主设备建立至少一条第一蓝牙链路。
本步骤的实施方式可以参考上述步骤301,本实施例在此不再赘述。
步骤402,从设备获取各条第一蓝牙链路对应的第一调度间隔,第一调度间隔为第一主设备根据调度时间点在第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔。
在一种可能的实施方式中,各个主设备与从设备建立蓝牙链路前,都会向从设备提供自身调度间隔,以便从设备基于该调度间隔周期性的接受主设备调度。相应的,从设备对各个已建立蓝牙链路的主设备的调度间隔进行存储。当需要对第一链路参数进行广播时,从设备即获取各个第一主设备对应的第一调度间隔。
步骤403,从设备确定蓝牙数据包相对于各条第一蓝牙链路的发送时序偏移,发送时序偏移用于表征从设备广播蓝牙数据包的时刻与第一主设备对应调度时间点之间的偏移。
若仅将第一调度间隔作为第一链路参数,第二主设备仅能确定出相邻调度时间点之间的时间间隔,而无法确定每次调度的准确时间点,进而无法规避调度冲突。因此,第一链路参数中还需要包含用于确定至少一个准确调度时间点的参数。
由于从设备需要基于各个第一主设备的调度情况,在各个第一主设备不进行调度时广播蓝牙数据包,因此蓝牙数据包的发送时刻与各个第一主设备的调度时刻之间存在一定偏差。为了使第二主设备能够以蓝牙数据包的广播时刻为时间起始点,从而基于第一链路参数确定出各个第一主设备的调度时间点,从设备需要确定蓝牙数据包相对于各条第一蓝牙链路的发送时序偏移。在一种可能的实施方式中,本步骤可以包括如下步骤:
1、确定各条第一蓝牙链路各自对应的第一调度时间点。
由于从设备知悉主设备的调度方式,因此从设备可以确定出第一蓝牙链路对应的第一调度时间点。其中,该第一调度时间点可以是最近一次调度时的时间点。
示意性的,如图5所示,当从设备与第一主设备建立有第一蓝牙链路时,从设备确定第一蓝牙链路对应的第一调度时间点为t0。
2、基于各个第一调度时间点以及蓝牙数据包的广播时间点,确定发送时序偏移。
作为蓝牙数据包的发送方,从设备能够基于各个第一主设备的调度情况决定蓝牙数据包 的广播时间点,因此从设备能够进一步根据第一调度时间点以及蓝牙数据包的广播时间点(未来某一时间点),计算得到蓝牙数据包相对于各条第一蓝牙链路的发送时序偏移。其中,该发送时序偏移=广播时间点-第一调度时间点。
示意性的,如图5所示,从设备基于第一主设备的调度情况,确定蓝牙数据包的广播时间点为t1,进而确定发送时序偏移为t1-t0。
步骤404,从设备将第一调度间隔和发送时序偏移确定为第一链路参数,并根据第一链路参数广播蓝牙数据包。
进一步的,从设备将各条第一蓝牙链路对应的第一调度间隔以及发送时序偏移确定为第一链路参数,并广播包含第一链路数据的蓝牙数据包。在一种可能的实施方式中,本步骤可以包括如下步骤:
1、基于各条第一蓝牙链路的链路标识以及第一链路参数,生成至少一组链路信息。
为了使第二主设备能够区分不同第一蓝牙链路对应的第一链路参数,从设备将第一蓝牙链路的链路标识与第一链路参数作为一组链路信息,即每组链路信息是由链路标识、发送时序偏移以及第一调度间隔构成的三元组。其中,该链路标识用于唯一表示一条蓝牙链路。
2、广播包含至少一组链路信息的蓝牙数据包。
在一种可能的实施方式中,从设备将至少一组链路信息写入蓝牙数据包的负载中。在一个示意性的例子中,如图6所示,当蓝牙数据包为AE ADV时,扩展广播的负载长度最大为251字节,而每组链路信息占用6字节,其中,链路标识(handle)占用2个字节,发送时序偏移占用2个字节,第一调度间隔占用2个字节。本实施例仅以上述字节长度为例进行说明,但并不对此构成限定。
进一步的,当达到预先确定出的广播时间点时,从设备广播蓝牙数据包。
在一种可能的实施方式中,从设备在主广播信道发送ADV_EXT_IND(扩展广播),指示通过副广播信道(Secondary Advertising Channel)发送AUX_ADV_IND(辅助广播),并在副广播信道上发送包含第一链路参数的AUX_ADV_IND。第二主设备在主广播信道接收到ADV_EXT_IND后,进一步在副广播信道上接收AUX_ADV_IND。
示意性的,如图5所示,从设备在t1时刻,通过主广播信道(37、38、39信道)发送ADV_EXT_IND,并在一定时间偏移量后在副广播信道上发送AUX_ADV_IND。
步骤405,第二主设备接收从设备广播的蓝牙数据包。
在一种可能的实施方式中,第二主设备在主广播信道接收到ADV_EXT_IND后,解析出ADV_EXT_IND中包含的偏移量,并基于该偏移量确定副广播信道上AUX_ADV_IND的接收窗口,从而在该接收窗口内接收AUX_ADV_IND,并解析出其中包含的第一链路参数。
示意性的,如图5所示,主广播信道37中ADV_EXT_IND与副广播信道中AUX_ADV_IND之间的偏移量为偏移量1,主广播信道38中ADV_EXT_IND与副广播信道中AUX_ADV_IND之间的偏移量为偏移量2,主广播信道39中ADV_EXT_IND与副广播信道中AUX_ADV_IND之间的偏移量为偏移量3,当第二主设备在主广播信道38中接收到ADV_EXT_IND时,解析得到偏移量2并确定出AUX_ADV_IND的接收窗口,从而在该接收窗口接收AUX_ADV_IND。
可选的,当第一链路参数以链路信息组的形式写入蓝牙数据包的负载时,第二主设备从蓝牙数据包的负载中读取至少一组链路信息,每组链路信息中包含第一蓝牙链路的链路标识以及第一链路参数,且链路信息的组数与第一蓝牙链路的数量相同。
步骤406,第二主设备基于蓝牙数据包的广播时间点以及发送时序偏移,确定各条第一蓝牙链路对应的第一调度时间点。
第二主设备从蓝牙数据包中解析得到各条第一蓝牙链路的发送时序偏移后,即可以蓝牙数据包的广播时间点为起始时间点,确定出各条第一蓝牙链路对应的第一调度时间点,其中,该第一调度时间点可以是各条第一蓝牙链路上蓝牙数据包广播时刻之前最近的调度时间点。
示意性的,当第一蓝牙链路的发送时序偏移为Offset0,且蓝牙数据包的广播时间点为T 时,第一蓝牙链路的第一调度时间点T0=T-Offset0。
步骤407,基于第一调度时间点以及第一调度间隔,确定各条第一蓝牙链路对应的第一调度时间点序列。
由于主设备是按照调度间隔进行周期性调度,因此确定出第一主设备的第一调度时间点后,第二主设备可以在第一调度时间点的基础上,基于第一调度间隔,确定出第一蓝牙链路对应的第一调度时间点序列,其中,第一调度时间点序列是以第一调度时间点为时间点起点,以第一调度间隔为间隔的时间点序列。
示意性的,当第一蓝牙链路的第一调度时间点为T0,且第一蓝牙链路的调度间隔为Interval1时,第一蓝牙链路对应的第一调度时间点序列可以表示为:
T1=T0+num1*Interval1
其中,num1为自然数。
步骤408,第二主设备基于第一调度时间点序列,确定第二调度间隔以及调度偏移。
为了避免第二主设备的调度时间点与第一主设备的调度时间点重合,第二主设备基于第一调度时间点序列,通过调整自身的第二调度间隔以及调度偏移,确保第二蓝牙链路对应的第二调度时间点序列与第一调度时间点序列不重叠,其中,第二调度间隔为第二主设备进行调度时,相邻调度时间点之间的时间间隔,调度偏移用于表征第二主设备的调度时间点与第一主设备对应的调度时间点之间的偏移。
示意性的,当第二蓝牙链路的调度间隔为Interval2,且与第一蓝牙链路之间的调度偏移为Offset时,第二蓝牙链路对应的第二调度时间点序列可以表示为:
T2=T1+Offset+num2*Interval2
其中,num2为自然数。
在一种可能的实施方式中,基于第一调度时间点序列以及第二调度时间点序列的表达式,第二主设备调整Offset以及Interval2,直至T1≠T2。
可选的,为了简化调整过程,第二主设备将第二调度间隔设置为第一调度间隔,并通过调整调度偏移,使第一调度时间点序列和第二调度时间点序列不重叠。
需要说明的是,当存在多条第一蓝牙链路时,第二主设备需要确保第二调度时间点序列与各个第一调度时间点序列之间均不重叠。
步骤409,第二主设备将第二调度间隔和调度偏移确定为第二链路参数。
进一步的,第二主设备将第二调度间隔和调度偏移确定为第二链路参数(Interval2,Offset)。
步骤410,第二主设备向从设备发送包括第二链路参数的链路建立请求。
步骤411,从设备从第二主设备接收链路建立请求。
上述步骤410至411的实施方式可以参考步骤305至306,本实施例在此不再赘述。
步骤412,从设备基于第二链路参数以及第一链路参数,对第二蓝牙链路和第一蓝牙链路进行调度冲突检测。
由于第一链路参数和第二链路参数在传输或解析过程中可能会发生偏差,因此为了保证建立的第二蓝牙链路与第一蓝牙链路不存在调度冲突,从设备需要基于第二链路参数以及第一链路参数,对第二蓝牙链路和第一蓝牙链路进行调度冲突检测。在一种可能的实施方式中,从设备基于第一链路参数确定各条第一蓝牙链路的调度时间点,并基于第二链路参数确定第二蓝牙链路的调度时间点,从而检测两者的调度时间点是否存在重叠,若存在重叠,则确定未通过调度冲突检测,若不存在重叠,则确定通过调度冲突检测。
步骤413,在不存在调度冲突的情况下,从设备基于第二链路参数与第二主设备建立第二蓝牙链路。当通过调度冲突检测时,从设备即与第二主设备建立第二蓝牙链路,本步骤的实施例方式可以参考上述步骤307,本实施例在此不再赘述。
示意性的,如图7所示,第二主设备确定出第一主设备的调度时间点分别为T0,T0+Interval1,T0+2*Interval1…,从而确定出自身的第二调度间隔Interval2和调度偏移Offset, 基于Interval2和Offset,第二主设备即在T0+Offset,T0+Offset+Interval2,T0+Offset+2*Interval2…这些调度时间点进行调度。并且,由于Interval2=Interval1,因此第一主设备与第二主设备的调度时间点之间交错,互不重叠,从而避免了调度冲突。
结合上述实施例提供的方法,在一个示意性的例子中,如图8所示,第一主设备与从设备之间首先建立起ACL1(第一蓝牙链路)。当从设备需要与第二主设备建立ACL2(第二蓝牙链路)时,从设备计算广播与ACL1之间的发送时序偏差Offset0,并获取第一主设备的Interval1,从而启动AE广播,向第二主设备发送包含AE ADV(包含Offset0和Interval1)。第二主设备接收到AE ADV后,解析得到其中的Offset0和Interval1,并以AE ADV为起始时间点,计算ACL2的offset以及Interval1,从而向从设备发送链路建立请求(包含Offset和Interval2)。从设备基于该链路建立请求,与第二主设备建立ACL2,并停止广播。
本实施例中,从设备通过广播包含第一链路参数的蓝牙数据包,使待连接的第二主设备接收并解析蓝牙数据包中的第一链路参数后,能够基于第一链路参数调整自身的第二链路参数,避免与第一蓝牙链路产生调度冲突;并且,通过将第一蓝牙链路的第一调度间隔以及与蓝牙数据包广播时间点之间的发送时序偏差作为第一链路参数,使第二主设备能够以蓝牙数据包的广播时刻为起始时间点,确定出各条第一蓝牙链路的调度时间点,进而确定出各条第一蓝牙链路对应的调度时间点序列,一方面降低了传输第一链路参数所占用的字节数,另一方面提高了确定出的调度时间点的准确性。
此外,上述实施例仅以广播蓝牙数据包为例进行说明,当通过WiFi或NFC等方式向第二主设备提供第一链路参数时,从设备可以基于WiFi数据包或NFC数据包的发送时刻确定发送时序偏移,并将该发送时序偏移作为第一链路参数写入WiFi数据包或NFC数据包中,本实施例在此不做赘述。
需要说明的是,上述实施例,以从设备为执行主体的步骤可以单独实现成为在从设备中建立蓝牙链路的方法,以第二主设备为执行主体的步骤可以单独实现成为在主设备中建立蓝牙链路的方法,本实施例在此不再赘述。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参考图9,其示出了本申请一个实施例提供的在从设备中建立蓝牙链路的装置的结构框图。该装置可以包括:
第一建立模块901,用于与至少一个第一主设备建立至少一条第一蓝牙链路;
参数提供模块902,用于向第二主设备发送各条所述第一蓝牙链路的第一链路参数;
请求接收模块903,用于从所述第二主设备接收链路建立请求,所述链路建立请求用于请求与所述从设备建立第二蓝牙链路,所述链路建立请求中包含所述第二蓝牙链路的第二链路参数,所述第二链路参数由所述第二主设备基于所述第一链路参数确定得到;以及,
第二建立模块904,用于基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
可选的,所述参数提供模块902,用于:
广播单元,用于广播包含第一链路参数的数据包,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
可选的,所述广播单元,用于:
获取各条所述第一蓝牙链路对应的第一调度间隔,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔;
确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;以及,
将所述第一调度间隔和所述发送时序偏移确定为所述第一链路参数,并根据所述第一链 路参数广播所述数据包。
所述确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移时,所述广播单元,具体用于:
确定各条所述第一蓝牙链路各自对应的第一调度时间点;以及,
基于各个所述第一调度时间点以及所述数据包的广播时间点,确定所述发送时序偏移。
所述根据所述第一链路参数广播所述数据包时,所述广播单元,具体用于:
基于各条所述第一蓝牙链路的链路标识以及所述第一链路参数,生成至少一组链路信息;以及,
广播包含至少一组所述链路信息的所述数据包,所述链路信息的组数与第一蓝牙链路的数量相同。
可选的,所述第二链路参数包括所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述调度偏移用于表征所述第二主设备的调度时间点与至少一个所述第一主设备对应的调度时间点之间的偏移。
可选的,所述第二建立模块904,用于:
基于所述第二链路参数以及所述第一链路参数,对所述第二蓝牙链路和所述第一蓝牙链路进行调度冲突检测;以及,
在不存在调度冲突的情况下,基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路。
请参考图10,其示出了本申请另一个实施例提供的在主设备中建立蓝牙链路的装置的结构框图。该装置可以包括:
参数获取模块1001,用于从从设备接收各条第一蓝牙链路的第一链路参数,所述从设备与至少一个第一主设备建立至少一条所述第一蓝牙链路;
第二参数确定模块1002,用于基于所述第一链路参数确定第二蓝牙链路的第二链路参数,所述第二蓝牙链路位于所述从设备和所述第二主设备之间;以及,
请求发送模块1003,用于向所述从设备发送包括所述第二链路参数的链路建立请求,以便所述从设备基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
可选的,所述参数获取模块1001,包括:
接收单元,用于接收所述从设备广播的数据包,所述数据包中包含各条所述第一蓝牙链路的所述第一链路参数,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
可选的,所述第二参数确定模块1002,包括:
第一确定单元,用于基于所述第一链路参数确定所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述第二调度间隔为所述第二主设备根据调度时间点在所述第二蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述调度偏移用于表征所述第二主设备的调度时间点与所述第一主设备对应的调度时间点之间的偏移;以及,
第二确定单元,用于将所述第二调度间隔和所述调度偏移确定为所述第二链路参数。
可选的,所述第一链路参数包括第一调度间隔以及发送时序偏移,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;
所述第一确定单元,用于:
基于所述数据包的广播时间点以及所述发送时序偏移,确定各条所述第一蓝牙链路对应的第一调度时间点;
基于所述第一调度时间点以及所述第一调度间隔,确定各条所述第一蓝牙链路对应的第一调度时间点序列,所述第一调度时间点序列是以所述第一调度时间点为时间点起点,以所述第一调度间隔为间隔的时间点序列;以及,
基于所述第一调度时间点序列,确定所述第二调度间隔以及所述调度偏移,其中,采用所述第二调度间隔以及所述调度偏移时,所述第二蓝牙链路对应的第二调度时间点序列与所述第一调度时间点序列不重叠。
可选的,所述第一调度时间点序列表示为:T1=T0+num1*Interval1;
所述第二调度时间点序列表示为:T2=T1+Offset+num2*Interval2;
T0为所述第一调度时间点,Interval1为所述第一调度间隔,Offset为所述调度偏移,Interval2为所述第二调度间隔,num1和num2为自然数。
可选的,所述第一链路参数包含在所述数据包中;
所述装置还包括:
读取模块,用于从所述数据包中读取至少一组链路信息,每组所述链路信息中包含所述第一蓝牙链路的链路标识以及所述第一链路参数,且所述链路信息的组数与第一蓝牙链路的数量相同。
请参考图11,其示出了本申请一个示例性实施例提供的具有蓝牙功能的电子设备的结构方框图。该电子设备1100可以是智能手机、平板电脑、可穿戴式设备等。本申请中的电子设备1100可以包括一个或多个如下部件:处理器1110、存储器1120和蓝牙芯片1130。
处理器1110可以包括一个或者多个处理核心。处理器1110利用各种接口和线路连接整个电子设备1100内的各个部分,通过运行或执行存储在存储器1120内的指令、程序、代码集或指令集,以及调用存储在存储器1120内的数据,执行电子设备1100的各种功能和处理数据。可选地,处理器1110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1110中,单独通过一块芯片进行实现。
存储器1120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1120包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1120可用于存储指令、程序、代码、代码集或指令集。存储器1120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据电子设备1100的使用所创建的数据(比如音频数据、电话本)等。
蓝牙芯片1130是用于实现蓝牙功能的组件。其中,蓝牙芯片1130包含Host和Controller两部分(对应不同蓝牙协议栈),Host和Controller可以运行在同一芯片上(单芯片架构),也可以运行在不同芯片上(双芯片架构)。比如,Host运行在处理器上,而Controller运行在蓝牙模块上;或者,Host和Controller均运行在蓝牙芯片1130上。本申请实施例提供的设备添加方法即由蓝牙芯片1130通过执行指令实现。
除此之外,本领域技术人员可以理解,上述附图所示出的电子设备1100的结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,电子设备1100中还包括显示屏、传感器、扬声器、麦克风、电源等部件,在此不再赘述。
本申请实施例还提供了一种蓝牙芯片,蓝牙芯片包括可编程逻辑电路和/或程序指令,当蓝牙芯片运行时,用于实现如上述方面所述的在从设备中建立蓝牙链路的方法,或,实现如上述方面所述的在主设备中建立蓝牙链路的方法。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,所述程序代码由蓝牙芯片加载并执行以实现如上各个实施例所述的在从设备中建立蓝牙链路的方法,或,在主设备中建立蓝牙链路的方法。
根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。电子设备的蓝牙芯片从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行上述方面的各种可选实现方式中提供的在从设备中建立蓝牙链路的方法,或,在主设备中建立蓝牙链路的方法。
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (30)

  1. 一种在从设备中建立蓝牙链路的方法,所述方法包括:
    与至少一个第一主设备建立至少一条第一蓝牙链路;
    向第二主设备发送各条所述第一蓝牙链路的第一链路参数;
    从所述第二主设备接收链路建立请求,所述链路建立请求用于请求与所述从设备建立第二蓝牙链路,所述链路建立请求中包含所述第二蓝牙链路的第二链路参数,所述第二链路参数由所述第二主设备基于所述第一链路参数确定得到;以及,
    基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
  2. 根据权利要求1所述的方法,其中,所述向第二主设备发送各条所述第一蓝牙链路的第一链路参数,包括:
    广播包含所述第一链路参数的数据包,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
  3. 根据权利要求2所述的方法,其中,所述广播包含所述第一链路参数的数据包,包括:
    获取各条所述第一蓝牙链路对应的第一调度间隔,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔;
    确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;以及,
    将所述第一调度间隔和所述发送时序偏移确定为所述第一链路参数,并根据所述第一链路参数广播所述数据包。
  4. 根据权利要求3所述的方法,其中,所述确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移,包括:
    确定各条所述第一蓝牙链路各自对应的第一调度时间点;以及,
    基于各个所述第一调度时间点以及所述数据包的广播时间点,确定所述发送时序偏移。
  5. 根据权利要求3所述的方法,其中,所述根据所述第一链路参数广播所述数据包,包括:
    基于各条所述第一蓝牙链路的链路标识以及所述第一链路参数,生成至少一组链路信息;以及,
    广播包含至少一组所述链路信息的所述数据包,所述链路信息的组数与第一蓝牙链路的数量相同。
  6. 根据权利要求1至5任一所述的方法,其中,所述第二链路参数包括所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述调度偏移用于表征所述第二主设备的调度时间点与至少一个所述第一主设备对应的调度时间点之间的偏移。
  7. 根据权利要求1至5任一所述的方法,其中,所述基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,包括:
    基于所述第二链路参数以及所述第一链路参数,对所述第二蓝牙链路和所述第一蓝牙链路进行调度冲突检测;以及,
    在不存在调度冲突的情况下,基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路。
  8. 一种在主设备中建立蓝牙链路的方法,所述方法包括:
    从从设备接收各条第一蓝牙链路的第一链路参数,所述从设备与至少一个第一主设备建立至少一条所述第一蓝牙链路;
    基于所述第一链路参数确定第二蓝牙链路的第二链路参数,所述第二蓝牙链路位于所述从设备和所述第二主设备之间;以及,
    向所述从设备发送包括所述第二链路参数的链路建立请求,以便所述从设备基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
  9. 根据权利要求8所述的方法,其中,所述获取从设备提供的各条第一蓝牙链路的第一链路参数,包括:
    接收所述从设备广播的数据包,所述数据包中包含各条所述第一蓝牙链路的所述第一链路参数,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
  10. 根据权利要求8所述的方法,其中,所述基于所述第一链路参数确定第二蓝牙链路的第二链路参数,包括:
    基于所述第一链路参数确定所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述第二调度间隔为所述第二主设备根据调度时间点在所述第二蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述调度偏移用于表征所述第二主设备的调度时间点与所述第一主设备对应的调度时间点之间的偏移;以及,
    将所述第二调度间隔和所述调度偏移确定为所述第二链路参数。
  11. 根据权利要求10所述的方法,其中,所述第一链路参数包括第一调度间隔以及发送时序偏移,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;
    所述基于所述第一链路参数确定所述第二蓝牙链路对应的第二调度间隔以及调度偏移,包括:
    基于所述数据包的广播时间点以及所述发送时序偏移,确定各条所述第一蓝牙链路对应的第一调度时间点;
    基于所述第一调度时间点以及所述第一调度间隔,确定各条所述第一蓝牙链路对应的第一调度时间点序列,所述第一调度时间点序列是以所述第一调度时间点为时间点起点,以所述第一调度间隔为间隔的时间点序列;以及,
    基于所述第一调度时间点序列,确定所述第二调度间隔以及所述调度偏移,其中,采用所述第二调度间隔以及所述调度偏移时,所述第二蓝牙链路对应的第二调度时间点序列与所述第一调度时间点序列不重叠。
  12. 根据权利要求11所述的方法,其中,
    所述第一调度时间点序列表示为:T1=T0+num1*Interval1;
    所述第二调度时间点序列表示为:T2=T1+Offset+num2*Interval2;
    T0为所述第一调度时间点,Interval1为所述第一调度间隔,Offset为所述调度偏移,Interval2为所述第二调度间隔,num1和num2为自然数。
  13. 根据权利要求9至12任一所述的方法,其中,所述第一链路参数包含在所述数据包中;
    所述基于所述第一链路参数确定第二蓝牙链路的第二链路参数之前,所述方法还包括:
    从所述数据包中读取至少一组链路信息,每组所述链路信息中包含所述第一蓝牙链路的链路标识以及所述第一链路参数,且所述链路信息的组数与第一蓝牙链路的数量相同。
  14. 一种在从设备中建立蓝牙链路的装置,所述装置包括:
    第一建立模块,用于与至少一个第一主设备建立至少一条第一蓝牙链路;
    参数提供模块,用于向第二主设备发送各条所述第一蓝牙链路的第一链路参数;
    请求接收模块,用于从所述第二主设备接收链路建立请求,所述链路建立请求用于请求与所述从设备建立第二蓝牙链路,所述链路建立请求中包含所述第二蓝牙链路的第二链路参数,所述第二链路参数由所述第二主设备基于所述第一链路参数确定得到;以及,
    第二建立模块,用于基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
  15. 根据权利要求14所述的装置,其中,所述参数提供模块,用于:
    广播单元,用于广播包含所述第一链路参数的数据包,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
  16. 根据权利要求15所述的装置,其中,所述广播单元,用于:
    获取各条所述第一蓝牙链路对应的第一调度间隔,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度从设备时,相邻调度时间点之间的时间间隔;
    确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;以及,
    将所述第一调度间隔和所述发送时序偏移确定为所述第一链路参数,并根据所述第一链路参数广播所述数据包。
  17. 根据权利要求16所述的装置,其中,所述确定所述数据包相对于各条所述第一蓝牙链路的发送时序偏移时,所述广播单元,具体用于:
    确定各条所述第一蓝牙链路各自对应的第一调度时间点;以及,
    基于各个所述第一调度时间点以及所述数据包的广播时间点,确定所述发送时序偏移。
  18. 根据权利要求16所述的装置,其中,所述根据所述第一链路参数广播所述数据包时,所述广播单元,具体用于:
    基于各条所述第一蓝牙链路的链路标识以及所述第一链路参数,生成至少一组链路信息;以及,
    广播包含至少一组所述链路信息的所述数据包,所述链路信息的组数与第一蓝牙链路的数量相同。
  19. 根据权利要求14至18任一所述的装置,其中,所述第二链路参数包括所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述调度偏移用于表征所述第二主设备的调度时间点与至少一个所述第一主设备对应的调度时间点之间的偏移。
  20. 根据权利要求14至18任一所述的装置,其中,所述第二建立模块,用于:
    基于所述第二链路参数以及所述第一链路参数,对所述第二蓝牙链路和所述第一蓝牙链 路进行调度冲突检测;以及,
    在不存在调度冲突的情况下,基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路。
  21. 一种在主设备中建立蓝牙链路的装置,所述装置包括:
    参数获取模块,用于从从设备接收各条第一蓝牙链路的第一链路参数,所述从设备与至少一个第一主设备建立至少一条所述第一蓝牙链路;
    第二参数确定模块,用于基于所述第一链路参数确定第二蓝牙链路的第二链路参数,所述第二蓝牙链路位于所述从设备和所述第二主设备之间;以及,
    请求发送模块,用于向所述从设备发送包括所述第二链路参数的链路建立请求,以便所述从设备基于所述第二链路参数与所述第二主设备建立所述第二蓝牙链路,其中,所述第二蓝牙链路上所述第二主设备的调度时间点不同于各条所述第一蓝牙链路上所述第一主设备的调度时间点。
  22. 根据权利要求21所述的装置,其中,所述参数获取模块,包括:
    接收单元,用于接收所述从设备广播的数据包,所述数据包中包含各条所述第一蓝牙链路的所述第一链路参数,其中,广播方式包括蓝牙广播、WiFi广播和NFC广播中的至少一种。
  23. 根据权利要求21所述的装置,其中,所述第二参数确定模块,包括:
    第一确定单元,用于基于所述第一链路参数确定所述第二蓝牙链路对应的第二调度间隔以及调度偏移,所述第二调度间隔为所述第二主设备根据调度时间点在所述第二蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述调度偏移用于表征所述第二主设备的调度时间点与所述第一主设备对应的调度时间点之间的偏移;以及,
    第二确定单元,用于将所述第二调度间隔和所述调度偏移确定为所述第二链路参数。
  24. 根据权利要求23所述的装置,其中,所述第一链路参数包括第一调度间隔以及发送时序偏移,所述第一调度间隔为所述第一主设备根据调度时间点在所述第一蓝牙链路上调度所述从设备时,相邻调度时间点之间的时间间隔,所述发送时序偏移用于表征所述从设备广播所述数据包的时刻与所述第一主设备对应调度时间点之间的偏移;
    所述第一确定单元,用于:
    基于所述数据包的广播时间点以及所述发送时序偏移,确定各条所述第一蓝牙链路对应的第一调度时间点;
    基于所述第一调度时间点以及所述第一调度间隔,确定各条所述第一蓝牙链路对应的第一调度时间点序列,所述第一调度时间点序列是以所述第一调度时间点为时间点起点,以所述第一调度间隔为间隔的时间点序列;以及,
    基于所述第一调度时间点序列,确定所述第二调度间隔以及所述调度偏移,其中,采用所述第二调度间隔以及所述调度偏移时,所述第二蓝牙链路对应的第二调度时间点序列与所述第一调度时间点序列不重叠。
  25. 根据权利要求24所述的装置,其中,
    所述第一调度时间点序列表示为:T1=T0+num1*Interval1;
    所述第二调度时间点序列表示为:T2=T1+Offset+num2*Interval2;
    T0为所述第一调度时间点,Interval1为所述第一调度间隔,Offset为所述调度偏移,Interval2为所述第二调度间隔,num1和num2为自然数。
  26. 根据权利要求22至25任一所述的装置,其中,所述第一链路参数包含在所述数据包中;
    所述装置还包括:
    读取模块,用于从所述数据包中读取至少一组链路信息,每组所述链路信息中包含所述第一蓝牙链路的链路标识以及所述第一链路参数,且所述链路信息的组数与第一蓝牙链路的数量相同。
  27. 一种蓝牙芯片,所述蓝牙芯片包括可编程逻辑电路和/或程序指令,当所述蓝牙芯片运行时,用于实现如权利要求1至7任一所述的在从设备中建立蓝牙链路的方法,或,如权利要求8至13任一所述的在主设备中建立蓝牙链路的方法。
  28. 一种具有蓝牙功能的电子设备,所述电子设备中设置有如权利要求27所述的蓝牙芯片。
  29. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由蓝牙芯片加载并执行以实现如权利要求1至7任一所述的在从设备中建立蓝牙链路的方法,或,如权利要求8至13任一所述的在主设备中建立蓝牙链路的方法。
  30. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如权利要求1至7任一所述的在从设备中建立蓝牙链路的方法,或,如权利要求8至13任一所述的在主设备中建立蓝牙链路的方法。
PCT/CN2022/091441 2021-06-03 2022-05-07 建立蓝牙链路的方法、装置、蓝牙芯片及设备 WO2022252917A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110621098.2A CN115442778A (zh) 2021-06-03 2021-06-03 建立蓝牙链路的方法、装置、蓝牙芯片及设备
CN202110621098.2 2021-06-03

Publications (1)

Publication Number Publication Date
WO2022252917A1 true WO2022252917A1 (zh) 2022-12-08

Family

ID=84240029

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091441 WO2022252917A1 (zh) 2021-06-03 2022-05-07 建立蓝牙链路的方法、装置、蓝牙芯片及设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (zh) * 2023-04-25 2023-11-28 荣耀终端有限公司 手写笔多连接场景的数据交互方法、手写笔及蓝牙系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100151791A1 (en) * 2008-12-15 2010-06-17 Samsung Electronics Co., Ltd. Audio data service provision method and system
CN106559734A (zh) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 蓝牙数据传输方法及装置
CN110972120A (zh) * 2018-09-29 2020-04-07 安凯(广州)微电子技术有限公司 一种低功耗蓝牙设备多链路管理方法、系统及装置
US20200196323A1 (en) * 2018-12-13 2020-06-18 Qualcomm Incorporated Network neighborhood alignment
CN111654845A (zh) * 2020-05-12 2020-09-11 南京中感微电子有限公司 一种蓝牙多终端链路切换方法、蓝牙音频设备及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2625693T3 (es) * 2012-10-30 2017-07-20 Nokia Technologies Oy Uso de energía baja de Bluetooth
KR102001366B1 (ko) * 2017-03-02 2019-07-19 어보브반도체 주식회사 복수 기기의 저전력블루투스 연결방법
US10149340B1 (en) * 2017-07-18 2018-12-04 Thales Avionics, Inc. Slave bluetooth device switching between active bluetooth connections with different master bluetooth devices
CN109314630B (zh) * 2018-09-06 2022-01-25 深圳市汇顶科技股份有限公司 链路处理方法、设备及存储介质
WO2021072573A1 (zh) * 2019-10-14 2021-04-22 深圳市汇顶科技股份有限公司 链路处理方法、设备及存储介质
CN111683354B (zh) * 2020-05-11 2023-05-12 杭州寰星电子科技有限公司 一种低功耗蓝牙连接中一主多从的事件调度方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100151791A1 (en) * 2008-12-15 2010-06-17 Samsung Electronics Co., Ltd. Audio data service provision method and system
CN106559734A (zh) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 蓝牙数据传输方法及装置
CN110972120A (zh) * 2018-09-29 2020-04-07 安凯(广州)微电子技术有限公司 一种低功耗蓝牙设备多链路管理方法、系统及装置
US20200196323A1 (en) * 2018-12-13 2020-06-18 Qualcomm Incorporated Network neighborhood alignment
CN111654845A (zh) * 2020-05-12 2020-09-11 南京中感微电子有限公司 一种蓝牙多终端链路切换方法、蓝牙音频设备及系统

Also Published As

Publication number Publication date
CN115442778A (zh) 2022-12-06

Similar Documents

Publication Publication Date Title
JP6530146B2 (ja) ソースデバイスがBluetooth等時性チャネルに関連する同期情報をブロードキャストすること
US10334508B2 (en) Systems and methods for implementing band service discovery
US10039123B2 (en) Device, system and method of scheduling communications with a group of wireless communication units
AU2015320663B2 (en) Method of communication and apparatus
EP3893109B1 (en) Method and device for connecting bluetooth devices
EP4152816A1 (en) Information transmission method and apparatus, and electronic device
US11991517B2 (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
CN111818659A (zh) sidelink信息发送方法、接收方法、终端和控制节点
WO2021138914A1 (zh) 传输数据的指示方法、装置、通信设备及存储介质
WO2022252917A1 (zh) 建立蓝牙链路的方法、装置、蓝牙芯片及设备
US20240129084A1 (en) Communication system, communication method, communication device, and medium with communication program stored thereon
US20240090049A1 (en) Method and apparatus for establishing bluetooth link, device, and storage medium
WO2024082906A1 (zh) 信息获取方法、装置、蓝牙设备、终端设备及存储介质
CN111954123B (zh) 无线音频设备信息同步的方法、系统、介质及无线音频设备
US8855693B2 (en) Method and apparatus for controlling wireless devices
WO2023165246A1 (zh) 蓝牙协议的通信方法、电子设备、装置、存储介质及产品
WO2022206270A1 (zh) 设备添加方法、装置、蓝牙芯片及设备
US20200196124A1 (en) Short range wireless communication device and method
CN113207114B (zh) 蓝牙音频主设备、从设备、蓝牙通信方法及系统
WO2024114241A1 (zh) 一种设备发现方法、设备及系统
WO2021179166A1 (zh) 数据传输方法、装置、通信设备及存储介质
WO2022134734A1 (zh) 无线通讯方法及系统
WO2023061217A1 (zh) 一种数据传输方法及装置
WO2021114149A1 (zh) 重关联指示方法、装置及通信设备
WO2020164584A1 (zh) 消息发送方法、消息接收方法、终端设备及网络设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22814964

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22814964

Country of ref document: EP

Kind code of ref document: A1