CN116647827A - Bluetooth communication method, device, equipment, system and storage medium - Google Patents

Bluetooth communication method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN116647827A
CN116647827A CN202310705710.3A CN202310705710A CN116647827A CN 116647827 A CN116647827 A CN 116647827A CN 202310705710 A CN202310705710 A CN 202310705710A CN 116647827 A CN116647827 A CN 116647827A
Authority
CN
China
Prior art keywords
data packet
broadcast
bluetooth device
information
auxiliary
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
CN202310705710.3A
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.)
Shenzhen Zhongke Lanxun Technology Co ltd
Original Assignee
Shenzhen Zhongke Lanxun Technology Co 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 Shenzhen Zhongke Lanxun Technology Co ltd filed Critical Shenzhen Zhongke Lanxun Technology Co ltd
Priority to CN202310705710.3A priority Critical patent/CN116647827A/en
Publication of CN116647827A publication Critical patent/CN116647827A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a Bluetooth communication method, a device, equipment, a system and a storage medium, wherein the method comprises the following steps: the method comprises the steps that a main Bluetooth device sends an auxiliary broadcast data packet to a slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending of a broadcast synchronous group data packet; and the master Bluetooth device sends the broadcast synchronous group data packet to the slave Bluetooth device based on the first data packet information. The technical scheme can accelerate the synchronization of the sending related information of the synchronous group data packet and improve the synchronization efficiency.

Description

Bluetooth communication method, device, equipment, system and storage medium
Technical Field
The present application relates to the field of bluetooth communication, and in particular, to a bluetooth communication method, apparatus, device, system, and storage medium.
Background
Bluetooth is a standard wireless communication technology, which is used to exchange data between devices within a short distance, so as to simplify the data interaction process between electronic devices. With the continuous evolution of technology, bluetooth technology has iterated from early bluetooth 1.0 to bluetooth 5.2, and bluetooth 5.2 focuses on low energy Audio (LE Audio), which publishes multiple LE Audio specifications and a completely new low complexity communication codec (low complexity communication codec, LC 3), enhancing the bluetooth Audio experience.
In bluetooth 5.2, synchronous broadcast communication is introduced, and a broadcast synchronous stream (broadcast isochronous stream, BIS) is transmitted between a synchronous broadcaster and a synchronous receiver through a broadcast channel, and a plurality of BIS may form a broadcast synchronous group (broadcast isochronous group, BIG). Synchronous broadcast communication is one-to-many communication, and can only carry out unidirectional communication, and essentially belongs to a non-connection broadcast mode. Before sending BIG packets, the frequency point and time node of BIG packets need to be synchronized between the master bluetooth device (i.e. the synchronization broadcaster) and the slave bluetooth device (the synchronization receiver). The frequency point and the time node of the BIG packet are generally carried in a periodical broadcast data packet to be synchronized to the slave Bluetooth device, the synchronization process is complex, the required time is long, and the efficiency is low.
Disclosure of Invention
The application provides a Bluetooth communication method, a Bluetooth communication device, bluetooth communication equipment, bluetooth communication system and Bluetooth communication storage medium, and aims to solve the technical problem of long time required for synchronizing frequency points and time nodes of BIG packets.
In a first aspect, a bluetooth communication method is provided, and the bluetooth communication method is applied to a master bluetooth device in a bluetooth system, where the bluetooth system includes the master bluetooth device and a slave bluetooth device; the method comprises the following steps:
transmitting an auxiliary broadcast data packet to the slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to the transmission of a broadcast synchronous group data packet;
and transmitting the broadcast synchronization group data packet to the slave Bluetooth device based on the first data packet information.
In the technical scheme, a master Bluetooth device carries first data packet information in an auxiliary broadcast data packet and sends the first data packet information to a slave Bluetooth device, wherein the first data packet information is related information for sending a broadcast synchronous group data packet, and then the broadcast synchronous group data packet is sent to the slave Bluetooth device based on the first data packet information; because the main Bluetooth device directly carries the transmission related information of the broadcast synchronous group data packet in the auxiliary broadcast data packet and transmits the auxiliary broadcast data packet to the auxiliary Bluetooth device, the main Bluetooth device is used for completing the synchronization of the transmission related information of the synchronous group data packet, the step of periodically transmitting the broadcast data packet to the auxiliary Bluetooth device by the main Bluetooth device is omitted, the synchronization process is simplified, the synchronization of the transmission related information of the synchronous group data packet can be accelerated, and the synchronization efficiency is improved.
With reference to the first aspect, in a possible implementation manner, the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet. The transmission related information of the synchronous group data packet is directly carried in the additional control broadcast data segment in the auxiliary broadcast data packet, so that the synchronous flow can be simplified.
With reference to the first aspect, in a possible implementation manner, the first data packet information includes a channel hopping table of the main bluetooth device transmitting the broadcast synchronization group data packet; the transmitting the broadcast synchronization group packet to the slave bluetooth device based on the first packet information includes: and transmitting the broadcast synchronization group data packet to the slave Bluetooth equipment on a channel corresponding to the channel hopping table. The first data packet information carries a channel frequency hopping table, so that frequency point synchronization of BIG packets can be completed.
With reference to the first aspect, in a possible implementation manner, the sending an auxiliary broadcast data packet to the slave bluetooth device includes: transmitting a main broadcast data packet to the slave Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to transmission of the auxiliary broadcast data packet; and transmitting the auxiliary broadcast data packet to the slave Bluetooth device based on the second data packet information.
With reference to the first aspect, in a possible implementation manner, the second data packet information includes a secondary broadcast channel for the primary bluetooth to send the secondary broadcast data packet; the sending the auxiliary broadcast data packet to the slave bluetooth device based on the second data packet information includes: and transmitting the auxiliary broadcast data packet to the slave Bluetooth device on the auxiliary broadcast channel.
In a second aspect, a bluetooth communication method is provided, and the method is applied to a slave bluetooth device in a bluetooth system, where the bluetooth system includes a master bluetooth device and the slave bluetooth device; the method comprises the following steps:
receiving an auxiliary broadcast data packet sent by the main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending a broadcast synchronous group data packet;
and receiving the broadcast synchronous group data packet sent by the main Bluetooth device based on the first data packet information.
In the technical scheme, auxiliary broadcast data packets sent by a main Bluetooth device are received from the Bluetooth device, wherein the auxiliary broadcast data packets carry first data packet information, and the first data packet information is related information of sending of broadcast synchronous group data packets; and then, directly receiving the broadcast synchronous group data packet sent by the main Bluetooth device based on the first data packet information, thereby omitting the step of receiving the periodic broadcast data packet sent by the main Bluetooth device, simplifying the synchronous flow, accelerating the synchronization of the sending related information of the synchronous group data packet and improving the synchronous efficiency.
With reference to the second aspect, in a possible implementation manner, the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet; the method for receiving the broadcast synchronization group data packet sent by the master bluetooth device based on the first data packet information comprises the following steps: reading the additional control broadcast data segment from the auxiliary broadcast data packet; and analyzing the additional control broadcast data segment to obtain the first data packet information. And directly analyzing the additional control broadcast data segment in the auxiliary broadcast data packet to obtain the transmission related information of the synchronous group data packet, so that the synchronous flow can be simplified.
With reference to the second aspect, in one possible implementation manner, the first data packet information includes a channel hopping table of the master bluetooth device transmitting the broadcast synchronization group data packet; the receiving, based on the first packet information, the broadcast synchronization group packet sent by the master bluetooth device includes: and on a channel corresponding to the channel hopping table, intercepting the broadcast synchronous group data packet sent by the main Bluetooth device. The first data packet information carries a channel frequency hopping table, so that frequency point synchronization of BIG packets can be completed.
With reference to the second aspect, in one possible implementation manner, the receiving an auxiliary broadcast data packet sent by the main bluetooth device includes: receiving a main broadcast data packet sent by the main Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to the sending of the auxiliary broadcast data packet; and receiving the auxiliary broadcast data packet sent by the main Bluetooth device based on the second data packet information.
With reference to the second aspect, in a possible implementation manner, the second data packet information includes a secondary broadcast channel for the primary bluetooth to send the secondary broadcast data packet; the receiving, based on the second packet information, the auxiliary broadcast packet sent by the primary bluetooth device includes: and on the auxiliary broadcast channel, the auxiliary broadcast data packet sent by the main Bluetooth device is intercepted.
In a third aspect, a bluetooth communication apparatus is provided, which is applied to a master bluetooth device in a bluetooth system, where the bluetooth system includes the master bluetooth device and a slave bluetooth device; the device comprises:
the broadcast transmitting module is used for transmitting an auxiliary broadcast data packet to the slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to the transmission of a broadcast synchronous group data packet;
the broadcast transmitting module is further configured to transmit the broadcast synchronization group packet to the slave bluetooth device based on the first packet information.
In a fourth aspect, a bluetooth communication apparatus is provided, which is applied to a slave bluetooth device in a bluetooth system, wherein the bluetooth system includes a master bluetooth device and the slave bluetooth device; the device comprises:
the broadcast receiving module is used for receiving an auxiliary broadcast data packet sent by the main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending of a broadcast synchronous group data packet;
the broadcast receiving module is further configured to receive the broadcast synchronization group data packet sent by the master bluetooth device based on the first data packet information.
In a fifth aspect, there is provided a bluetooth device comprising a memory and one or more processors and a transceiver, the memory and the transceiver being connected to the one or more processors, the transceiver being for transmitting or receiving data, the one or more processors being for executing one or more computer programs stored in the memory, the one or more processors, when executing the one or more computer programs, causing the bluetooth device to implement the bluetooth communication method of the first or second aspect described above.
In a sixth aspect, there is provided a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the bluetooth communication method of the first or second aspect.
In a seventh aspect, a bluetooth system is provided, including a master bluetooth device for performing the bluetooth communication method of the first aspect and a slave bluetooth device for performing the bluetooth communication method of the second aspect.
The application can realize the following technical effects: the main Bluetooth device directly carries the transmission related information of the broadcast synchronous group data packet in the auxiliary broadcast data packet and transmits the auxiliary broadcast data packet to the auxiliary Bluetooth device to complete the synchronization of the transmission related information of the synchronous group data packet, so that the step that the main Bluetooth device transmits the periodic broadcast data packet to the auxiliary Bluetooth device is omitted, the synchronization process is simplified, the synchronization of the transmission related information of the synchronous group data packet can be accelerated, and the synchronization efficiency is improved.
Drawings
Fig. 1 is a synchronization flow of synchronization of sending related information of BIG data packets between a master bluetooth device and a slave bluetooth device;
fig. 2 is a schematic diagram of a bluetooth system according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a bluetooth communication method according to an embodiment of the present application;
fig. 4A is a data format of an auxiliary broadcast packet according to an embodiment of the present application;
FIG. 4B is a diagram illustrating a format and contents of information related to sending BIG packets according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a bluetooth communication device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another bluetooth communication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a bluetooth device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
The technical scheme of the application is suitable for a Bluetooth communication scene, in particular for a scene that a master Bluetooth device and a slave Bluetooth device carry out BIG communication in the Bluetooth communication scene, wherein the master Bluetooth device is the Bluetooth device which searches and actively establishes connection in the Bluetooth communication scene, and the master Bluetooth device can search surrounding Bluetooth devices and select the Bluetooth devices which need to be connected to carry out pairing connection; a slave bluetooth device refers to a device waiting to be searched for a connection by a master bluetooth device in a bluetooth communication scenario. Specifically, the main bluetooth device may be a mobile phone, a notebook computer, etc.; the slave bluetooth device may be an earphone, an intelligent sound, etc., and the present application is not limited. It should be appreciated that a bluetooth device may either initiate a communication connection as a master device or receive a communication connection as a slave device; a bluetooth device may also act as both a master and a slave. The master bluetooth device and the slave bluetooth device need to complete synchronization of information related to transmission of BIG data packets before BIG communication. The transmission related information of the BIG data packet may include a channel (i.e., a transmission frequency point) on which the BIG data packet is transmitted, a synchronization interval (i.e., a transmission time) on which the BIG data packet is transmitted, and the like. Synchronization of transmission related information of BIG data packets means that the master bluetooth device informs the slave bluetooth device of transmission related information of BIG data packets in advance so that the slave bluetooth device can receive BIG data packets based on the transmission related information.
In a possible technical solution, the master bluetooth device and the slave bluetooth device complete synchronization of information related to sending the BIG data packet through the flow shown in fig. 1. Referring to fig. 1, fig. 1 is a synchronization flow for synchronizing information related to transmission of BIG packets between a master bluetooth device and a slave bluetooth device, including the following steps:
s101, the master Bluetooth device sends a master broadcast data packet to the slave Bluetooth device, the master broadcast data packet carries second data packet information, and the slave Bluetooth device receives the master broadcast data packet.
The main broadcast packet may specifically be an adv_exit_ind packet.
The second data packet information is information related to transmission of an auxiliary broadcast data packet, and the auxiliary broadcast data packet may be an aux_adv_ind packet.
The transmission related information of the auxiliary broadcasting packet may include time information, channel information, etc. that the main bluetooth device transmits the auxiliary broadcasting packet. The time information here is used to characterize when the master bluetooth device transmits the aux_adv_ind message, and the channel information here is used to characterize on what channel the master bluetooth device transmits the aux_adv_ind message. Specifically, the second data packet information may include transmission related information such as a secondary broadcast channel on which the primary bluetooth device transmits the secondary broadcast data packet, an offset (offset) on which the primary bluetooth device transmits the secondary broadcast data packet, and a broadcast interval at which the primary bluetooth device transmits the secondary broadcast data packet. The secondary broadcast channel on which the primary bluetooth device transmits the secondary broadcast data packet may be any one of the 37 data channels.
In one possible implementation, the second packet information may be carried in an auxgtr data segment in the main broadcast packet and sent to the slave bluetooth device.
Specifically, when the broadcasting time of the broadcast data packet arrives, the main bluetooth device may broadcast an adv_exit_ind message on three main broadcast channels (37, 38, 39), where an AuxPtr data segment of the adv_exit_ind message carries an auxiliary broadcast channel of the main bluetooth device for sending an auxiliary broadcast data packet, an offset (offset) of the main bluetooth device for sending the auxiliary broadcast data packet, and a broadcasting interval of the main bluetooth device for sending the auxiliary broadcast data packet, so as to send related information, that is, carry second data packet information; the slave bluetooth device listens for adv_exit_ind messages on three primary broadcast channels (37, 38, 39), and when adv_ext_ind messages are detected on any one primary broadcast channel, broadcast data packets are received.
S102, acquiring second data packet information from the main broadcast data packet by the Bluetooth device.
Specifically, the slave bluetooth device may read the AuxPtr data segment from the main broadcast data packet, and parse the AuxPtr data segment to obtain the second data packet information.
S103, the main Bluetooth device sends an auxiliary broadcast data packet to the auxiliary Bluetooth device, the auxiliary broadcast data packet carries third data packet information, and the auxiliary broadcast data packet is received from the Bluetooth device.
Here, for the description of the auxiliary broadcasting packet, reference is made to the description of the aforementioned step S101.
The third packet information is information related to transmission of a periodic broadcast packet, and the periodic broadcast packet may be an aux_synic_ind packet.
The transmission related information of the periodic broadcast packet may include time information, channel information, etc. that the master bluetooth device transmits the periodic broadcast packet. The time information here is used to characterize when the master bluetooth device transmits the aux_synic_ind message, and the channel information here is used to characterize what data channel the master bluetooth device transmits the aux_synic_ind message. Specifically, the third packet information may include transmission related information such as a channel hopping table (channel_map) of the primary bluetooth device transmitting the periodic broadcast packet, an offset of the primary bluetooth device transmitting the periodic broadcast packet, and a periodic broadcast interval of the primary bluetooth device transmitting the periodic broadcast packet. The channel hopping table of the periodic broadcast data packet is used to designate a channel on which the master bluetooth device transmits the periodic broadcast data packet. The channels in the channel hopping table of the periodically broadcast data packet are data channels among 37 data channels.
The third packet information is carried in the syncifo data segment of the auxiliary broadcast packet and is sent to the slave bluetooth device.
Specifically, the main bluetooth device may broadcast, on the auxiliary broadcast channel, an aux_adv_ind packet when the broadcast time of the auxiliary broadcast packet arrives, where the Syncinfo data segment of the aux_adv_ind packet carries a channel hopping table of the main bluetooth device sending periodic broadcast packet, an offset of the main bluetooth device sending periodic broadcast packet, a periodic broadcast interval of the main bluetooth device sending periodic broadcast packet, and other sending related information, that is, carries third packet information; based on the second data packet information, the slave Bluetooth device listens to the aux_adv_ind message on the auxiliary broadcast channel when the broadcasting time of the auxiliary broadcast data packet arrives, and receives the auxiliary broadcast data packet when the aux_adv_ind message is intercepted on the auxiliary broadcast channel.
And S104, acquiring third data packet information from the auxiliary broadcast data packet by the Bluetooth device.
Specifically, the bluetooth device may read the syncifo data segment from the auxiliary broadcast data packet, and parse the syncifo data segment to obtain the third data packet information.
S105, the master Bluetooth device sends a periodical broadcast data packet to the slave Bluetooth device, the periodical broadcast data packet carries first data packet information, and the slave Bluetooth device receives the periodical broadcast data packet.
Here, for the description of the periodic broadcast packet, reference is made to the description of step S103.
The first packet information is information related to transmission of BIG packets, which are presented as one or more BIS.
The information related to the transmission of the BIG data packet includes time information, channel information, etc. of the main bluetooth device transmitting the BIG data packet. The time information here is used to characterize when the master bluetooth device transmits BIS and the channel information here is used to characterize what data channel the master bluetooth device transmits BIS. Specifically, the first packet information may include information about transmission such as a channel hopping table of a primary bluetooth device transmitting a BIG packet, an offset of the primary bluetooth device transmitting the BIG packet, and an ISO (ISO) interval of the primary bluetooth device transmitting the BIG packet. The channel hopping table of the BIG data packet is used to specify the channel on which the master bluetooth device transmits the BIG data packet. The channels in the channel hopping table of the BIG packet are the channels in the 37 data channels. The first data packet information carries a channel frequency hopping table, so that frequency point synchronization of BIG packets can be completed.
The first packet information is carried in an additional control broadcast data (additional controller advertising data, ACAD) segment of the periodic broadcast packet and transmitted to the slave bluetooth device.
Specifically, when the broadcasting time of the periodic broadcast data packet arrives, the main bluetooth device may broadcast an aux_synic_ind packet on a channel corresponding to the channel hopping table of the periodic broadcast data packet, where the ACAD segment of the aux_synic_ind packet carries a channel hopping table of the main bluetooth device for sending the BIG data packet, an offset of the main bluetooth device for sending the BIG data packet, and an ISO interval of the main bluetooth device for sending the BIG data packet, so as to send related information, that is, carry the first data packet information; based on the third data packet information, the slave Bluetooth device listens to the aux_synic_ind message on the channel corresponding to the channel hopping table of the periodic broadcast data packet when the broadcast time of the periodic broadcast data packet arrives, and receives the periodic broadcast data packet when the aux_synic_ind message is intercepted on the channel corresponding to the channel hopping table of the periodic broadcast data packet.
S106, acquiring first data packet information from the periodic broadcast data packet by the Bluetooth device.
Specifically, the bluetooth device may read the ACAD segment from the periodic broadcast data packet, and parse the ACAD segment to obtain the first data packet information.
S107, the master Bluetooth device sends BIG data packets to the slave Bluetooth device, and the slave Bluetooth device receives the BIG data packets.
Specifically, based on the first data packet information, the main Bluetooth device broadcasts BIS on a channel corresponding to a channel hopping table of the BIG data packet when the broadcasting time of the BIG data packet is reached; based on the first data packet information, the slave Bluetooth device listens to BIS on the channel corresponding to the channel hopping table of the BIG data packet when the broadcasting time of the BIG data packet is reached, and receives the BIS data packet when the BIS is intercepted on the channel corresponding to the channel hopping table of the BIG data packet.
As can be seen from fig. 1, the slave bluetooth device needs to monitor the main broadcast data packet first, acquire the second data packet information from the main broadcast data packet, monitor the auxiliary broadcast data packet according to the second data packet information, acquire the third data packet information from the auxiliary broadcast data packet, monitor the periodic broadcast data packet according to the third data packet information, acquire the first data packet information from the periodic broadcast data packet, and complete synchronization of information related to transmission of the BIG data packet.
In view of this, the present application proposes a new bluetooth communication scheme, which can reduce the synchronization flow, speed up the synchronization efficiency, and reduce the power consumption and bandwidth occupation of the master bluetooth device. The technical solution of the present application may be applied to the bluetooth system shown in fig. 2, and as shown in fig. 2, the bluetooth system 20 may include a master bluetooth device 201 and a slave bluetooth device 202, where the master bluetooth device 201 may simultaneously communicate with the plurality of slave bluetooth devices 202 and simultaneously transmit broadcast data packets to the plurality of slave bluetooth devices 202, where the broadcast data packets include, but are not limited to, the aforementioned master broadcast data packet, auxiliary broadcast data packet, broadcast synchronization group data packet, and so on.
The technical scheme of the application is specifically described below.
Referring to fig. 3, fig. 3 is a schematic flow chart of a bluetooth communication method according to an embodiment of the present application, where the method may be applied to a bluetooth system, and the bluetooth system may be as shown in fig. 2. As shown in fig. 3, the method comprises the steps of:
s301, the master Bluetooth device sends a master broadcast data packet to the slave Bluetooth device, the master broadcast data packet carries second data packet information, and the slave Bluetooth device receives the master broadcast data packet.
S302, the secondary Bluetooth device acquires second data packet information from the primary broadcast data packet.
For the specific implementation manner of steps S301 to S302, reference may be made to the descriptions of steps S101 to S102, and the description is omitted here.
S303, the main Bluetooth device sends an auxiliary broadcast data packet to the auxiliary Bluetooth device, the auxiliary broadcast data packet carries first data packet information, and the auxiliary broadcast data packet is received from the Bluetooth device.
Here, for the description of the auxiliary broadcasting packet, reference is made to the description of the aforementioned step S101; for the description of the first packet information, reference is made to the description of step S105.
The first packet information is carried in an ACAD segment of the auxiliary broadcast packet, and the data format of the auxiliary broadcast packet may be as shown in fig. 4A, where the ACAD segment is located in a protocol data unit (protocol data unit, PDU) of the auxiliary broadcast packet, and in an Extended Header (Extended Header) data segment of a Payload (Payload) of the PDU, and at the end of the Extended Header data segment. The format and content of the first packet information in the auxiliary broadcast packet may be as shown in fig. 4B.
Specifically, the main bluetooth device may broadcast, on the auxiliary broadcast channel, an aux_adv_ind packet when the broadcast time of the auxiliary broadcast packet arrives, where an ACAD segment of the aux_adv_ind packet carries a channel hopping table of the main bluetooth device for sending the BIG data packet, an offset of the main bluetooth device for sending the BIG data packet, and an ISO interval of the main bluetooth device for sending the BIG data packet, where the relevant information is sent, that is, carries the first data packet information; based on the second data packet information, the slave Bluetooth device listens to the aux_adv_ind message on the auxiliary broadcast channel when the broadcasting time of the auxiliary broadcast data packet is reached, and receives the auxiliary broadcast data packet when the aux_adv_ind message is detected on the auxiliary broadcast channel.
S304, acquiring first data packet information from the auxiliary broadcast data packet by the Bluetooth device.
Specifically, the bluetooth device may read the ACAD segment from the auxiliary broadcast data packet, and parse the ACAD segment to obtain the first data packet information.
S305, the master bluetooth device sends BIG data packets to the slave bluetooth device, and the slave bluetooth device receives BIG data packets.
Here, regarding the specific implementation of step S305, reference may be made to the description of step S107, which is not repeated here.
In the technical scheme corresponding to fig. 3, the master bluetooth device carries first data packet information in an auxiliary broadcast data packet and sends the first data packet information to the slave bluetooth device, wherein the first data packet information is related information for sending a broadcast synchronization group data packet, and then sends the broadcast synchronization group data packet to the slave bluetooth device based on the first data packet information; because the main Bluetooth device directly carries the transmission related information of the broadcast synchronous group data packet in the auxiliary broadcast data packet and transmits the auxiliary broadcast data packet to the auxiliary Bluetooth device to complete the synchronization of the transmission related information of the synchronous group data packet, the step that the main Bluetooth device transmits the periodic broadcast data packet to the auxiliary Bluetooth device is omitted, the synchronization process is simplified, the synchronization of the transmission related information of the synchronous group data packet can be accelerated, and the synchronization efficiency is improved.
The method of the present application is described above and the apparatus of the present application is described below.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a bluetooth communication device according to an embodiment of the present application, which is applied to a master bluetooth device in a bluetooth system, where the bluetooth system may be as shown in fig. 2. As shown in fig. 5, the bluetooth communication device 40 includes:
a broadcast transmitting module 401, configured to transmit an auxiliary broadcast data packet to the slave bluetooth device, where the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to transmission of a broadcast synchronization group data packet;
the broadcast transmitting module 401 is further configured to transmit the broadcast synchronization group packet to the slave bluetooth device based on the first packet information.
In one possible design, the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet.
In one possible design, the first packet information includes a channel hopping table of the primary bluetooth device transmitting the broadcast synchronization group packet; the broadcast transmitting module 401 specifically is configured to: and transmitting the broadcast synchronization group data packet to the slave Bluetooth equipment on a channel corresponding to the channel hopping table.
In one possible design, the broadcast transmitting module 401 is specifically configured to: transmitting a main broadcast data packet to the slave Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to transmission of the auxiliary broadcast data packet; and transmitting the auxiliary broadcast data packet to the slave Bluetooth device based on the second data packet information.
In one possible design, the second data packet information includes a secondary broadcast channel for the primary bluetooth to transmit the secondary broadcast data packet; the broadcast transmitting module 401 specifically is configured to: and transmitting the auxiliary broadcast data packet to the slave Bluetooth device on the auxiliary broadcast channel.
It should be noted that, in the embodiment corresponding to fig. 5, the details not mentioned in the foregoing description of the method embodiment may be referred to, and will not be repeated here.
The device carries first data packet information in an auxiliary broadcast data packet and sends the auxiliary broadcast data packet to the slave Bluetooth equipment, wherein the first data packet information is related information for sending a broadcast synchronous group data packet, and then the broadcast synchronous group data packet is sent to the slave Bluetooth equipment based on the first data packet information; because the main Bluetooth device directly carries the transmission related information of the broadcast synchronous group data packet in the auxiliary broadcast data packet and transmits the auxiliary broadcast data packet to the auxiliary Bluetooth device to complete the synchronization of the transmission related information of the synchronous group data packet, the step that the main Bluetooth device transmits the periodic broadcast data packet to the auxiliary Bluetooth device is omitted, the synchronization process is simplified, the synchronization of the transmission related information of the synchronous group data packet can be accelerated, and the synchronization efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another bluetooth communication apparatus according to an embodiment of the present application, which is applied to a slave bluetooth device in a bluetooth system, where the bluetooth system may be as shown in fig. 2. As shown in fig. 6, the bluetooth communication device 50 includes:
a broadcast receiving module 501, configured to receive an auxiliary broadcast packet sent by the primary bluetooth device, where the auxiliary broadcast packet carries first packet information, and the first packet information is related information of sending a broadcast synchronization group packet;
the broadcast receiving module 501 is further configured to receive the broadcast synchronization group packet sent by the master bluetooth device based on the first packet information.
In one possible design, the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet; the broadcast receiving module 501 is further configured to: reading the additional control broadcast data segment from the auxiliary broadcast data packet; and analyzing the additional control broadcast data segment to obtain the first data packet information.
In one possible design, the first packet information includes a channel hopping table of the primary bluetooth device transmitting the broadcast synchronization group packet; the broadcast receiving module 501 is specifically configured to: and on a channel corresponding to the channel hopping table, intercepting the broadcast synchronous group data packet sent by the main Bluetooth device.
In one possible design, the broadcast receiving module 501 is specifically configured to: receiving a main broadcast data packet sent by the main Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to the sending of the auxiliary broadcast data packet; and receiving the auxiliary broadcast data packet sent by the main Bluetooth device based on the second data packet information.
In one possible design, the second data packet information includes a secondary broadcast channel for the primary bluetooth to transmit the secondary broadcast data packet; the broadcast receiving module 501 is specifically configured to: and on the auxiliary broadcast channel, the auxiliary broadcast data packet sent by the main Bluetooth device is intercepted.
The device receives an auxiliary broadcast data packet sent by the main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending of a broadcast synchronous group data packet; and then, directly receiving the broadcast synchronous group data packet sent by the main Bluetooth device based on the first data packet information, thereby omitting the step of receiving the periodic broadcast data packet sent by the main Bluetooth device, simplifying the synchronous flow, accelerating the synchronization of the sending related information of the synchronous group data packet and improving the synchronous efficiency.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a bluetooth device according to an embodiment of the present application, where the bluetooth device 60 includes a processor 601, a memory 602, and a transceiver 603. The memory 602 is connected to the processor 601, for example via a bus.
The processor 601 is configured to support the bluetooth device 60 to perform the corresponding functions in the method embodiments described above. The processor 601 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip or any combination thereof. The hardware chip may be an application specific integrated circuit (application specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
The memory 602 is used for storing program codes and the like. The memory 602 may include Volatile Memory (VM), such as random access memory (random access memory, RAM); the memory 602 may also include a non-volatile memory (NVM), such as read-only memory (ROM), flash memory (flash memory), hard disk (HDD) or Solid State Drive (SSD); the memory 602 may also include a combination of the types of memory described above.
The transceiver 603 is used for transmitting data, in particular, the transceiver 603 is a bluetooth transceiver.
When the bluetooth device is used as the master bluetooth device, the processor 601 may call the program code to:
transmitting an auxiliary broadcast data packet to a slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to the transmission of a broadcast synchronous group data packet;
and transmitting the broadcast synchronization group data packet to the slave Bluetooth device based on the first data packet information.
When the bluetooth device is used as a slave bluetooth device, the processor 601 may call the program code to:
receiving an auxiliary broadcast data packet sent by a main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending a broadcast synchronous group data packet;
and receiving the broadcast synchronous group data packet sent by the main Bluetooth device based on the first data packet information.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of the previous embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs stored in a computer-readable storage medium, which when executed, may include the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only memory (ROM), a random-access memory (Random Access memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (15)

1. A bluetooth communication method, characterized by being applied to a master bluetooth device in a bluetooth system, the bluetooth system comprising the master bluetooth device and a slave bluetooth device; the method comprises the following steps:
transmitting an auxiliary broadcast data packet to the slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to the transmission of a broadcast synchronous group data packet;
and transmitting the broadcast synchronization group data packet to the slave Bluetooth device based on the first data packet information.
2. The method of claim 1, wherein the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet.
3. The method of claim 1, wherein the first packet information comprises a channel hopping table for the master bluetooth device to transmit the broadcast synchronization group packet;
the transmitting the broadcast synchronization group packet to the slave bluetooth device based on the first packet information includes:
and transmitting the broadcast synchronization group data packet to the slave Bluetooth equipment on a channel corresponding to the channel hopping table.
4. A method according to any of claims 1-3, wherein said transmitting auxiliary broadcast packets to said slave bluetooth device comprises:
transmitting a main broadcast data packet to the slave Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to transmission of the auxiliary broadcast data packet;
and transmitting the auxiliary broadcast data packet to the slave Bluetooth device based on the second data packet information.
5. The method of claim 4, wherein the second data packet information includes a secondary broadcast channel for the primary bluetooth to transmit the secondary broadcast data packet;
the sending the auxiliary broadcast data packet to the slave bluetooth device based on the second data packet information includes:
and transmitting the auxiliary broadcast data packet to the slave Bluetooth device on the auxiliary broadcast channel.
6. A bluetooth communication method, characterized by being applied to a slave bluetooth device in a bluetooth system, the bluetooth system comprising a master bluetooth device and the slave bluetooth device; the method comprises the following steps:
receiving an auxiliary broadcast data packet sent by the main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending a broadcast synchronous group data packet;
and receiving the broadcast synchronous group data packet sent by the main Bluetooth device based on the first data packet information.
7. The method of claim 6, wherein the first data packet information is carried in an additional control broadcast data segment in the auxiliary broadcast data packet;
the method for receiving the broadcast synchronization group data packet sent by the master bluetooth device based on the first data packet information comprises the following steps:
reading the additional control broadcast data segment from the auxiliary broadcast data packet;
and analyzing the additional control broadcast data segment to obtain the first data packet information.
8. The method of claim 6, wherein the first packet information comprises a channel hopping table for the master bluetooth device to transmit the broadcast synchronization group packet;
the receiving, based on the first packet information, the broadcast synchronization group packet sent by the master bluetooth device includes:
and on a channel corresponding to the channel hopping table, intercepting the broadcast synchronous group data packet sent by the main Bluetooth device.
9. The method according to any one of claims 6-8, wherein said receiving auxiliary broadcast data packets transmitted by said primary bluetooth device comprises:
receiving a main broadcast data packet sent by the main Bluetooth device, wherein the main broadcast data packet carries second data packet information, and the second data packet information is information related to the sending of the auxiliary broadcast data packet;
and receiving the auxiliary broadcast data packet sent by the main Bluetooth device based on the second data packet information.
10. The method of claim 9, wherein the second data packet information includes a secondary broadcast channel for the primary bluetooth to transmit the secondary broadcast data packet;
the receiving, based on the second packet information, the auxiliary broadcast packet sent by the primary bluetooth device includes:
and on the auxiliary broadcast channel, the auxiliary broadcast data packet sent by the main Bluetooth device is intercepted.
11. A bluetooth communication device, characterized by being applied to a master bluetooth device in a bluetooth system, the bluetooth system comprising the master bluetooth device and a slave bluetooth device; the device comprises:
the broadcast transmitting module is used for transmitting an auxiliary broadcast data packet to the slave Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is information related to the transmission of a broadcast synchronous group data packet;
the broadcast transmitting module is further configured to transmit the broadcast synchronization group packet to the slave bluetooth device based on the first packet information.
12. A bluetooth communication device, characterized by being applied to a slave bluetooth device in a bluetooth system, the bluetooth system comprising a master bluetooth device and the slave bluetooth device; the device comprises:
the broadcast receiving module is used for receiving an auxiliary broadcast data packet sent by the main Bluetooth device, wherein the auxiliary broadcast data packet carries first data packet information, and the first data packet information is related information of sending of a broadcast synchronous group data packet;
the broadcast receiving module is further configured to receive the broadcast synchronization group data packet sent by the master bluetooth device based on the first data packet information.
13. A bluetooth device comprising a memory, a processor and a transceiver, the memory and the transceiver being connected to the processor, the transceiver being for transmitting or receiving data, the processor being for executing one or more computer programs stored in the memory, the processor, when executing the one or more computer programs, causing the bluetooth device to implement the method of any of claims 1-5 or 6-10.
14. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-5 or any of claims 6-10.
15. A bluetooth system comprising a master bluetooth device for performing the method according to any of claims 1-5 and a slave bluetooth device for performing the method according to any of claims 6-10.
CN202310705710.3A 2023-06-14 2023-06-14 Bluetooth communication method, device, equipment, system and storage medium Pending CN116647827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310705710.3A CN116647827A (en) 2023-06-14 2023-06-14 Bluetooth communication method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310705710.3A CN116647827A (en) 2023-06-14 2023-06-14 Bluetooth communication method, device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN116647827A true CN116647827A (en) 2023-08-25

Family

ID=87639945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310705710.3A Pending CN116647827A (en) 2023-06-14 2023-06-14 Bluetooth communication method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN116647827A (en)

Similar Documents

Publication Publication Date Title
US11330650B2 (en) Wireless connection method and device
US20200213903A1 (en) Data transmission method and device
US8565672B2 (en) Communication
US20050157674A1 (en) Time-scheduled multichannel direct link
CN114666912B (en) Method, device, computer equipment and system for requesting uplink resource
EP4030846A1 (en) Method and device for multicasting network slice
EP3668201B1 (en) Signal detection method and apparatus, signal sending method and apparatus
KR101857019B1 (en) Apparatus and method for broadcasting in device to device communication system
CN116647827A (en) Bluetooth communication method, device, equipment, system and storage medium
WO2022242340A1 (en) Methods and apparatus for broadcasting and receiving bluetooth data packet, terminal, and storage medium
US20230079604A1 (en) Method for relay communication for user equipment and user equipment
EP4195784A1 (en) Wireless communication method and device
US10349456B2 (en) Video communication system, video transmission terminal, video reception terminal, communication method, and recording medium
CN115442778A (en) Method and device for establishing Bluetooth link, bluetooth chip and equipment
WO2016183730A1 (en) Data transmission method and apparatus
WO2022246838A1 (en) Indoor positioning method and apparatus, and device and storage medium
CN115580939A (en) Communication method, device, equipment and computer readable storage medium
WO2023207685A1 (en) Information transmission method and apparatus
CN114641062B (en) Information transmission method and device, storage medium and electronic equipment
JP2014099743A (en) Communication apparatus, and control method and program therefor
EP4351229A1 (en) Method and apparatus for determining energy-saving signal monitoring occasion, and terminal device
CN111224732B (en) Data distribution method and device for network equipment and data transmission system
CN112640495B (en) Configuration management method for multicast service and related product
CN116567551A (en) Bluetooth communication method, device, equipment, system and storage medium
CN115915027A (en) Low-power-consumption Bluetooth broadcasting method and device and electronic equipment

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