Method, device, terminal and storage medium for broadcasting and receiving bluetooth data packets

By introducing a synchronous feedback mechanism in version 5.2 of the Bluetooth protocol specification, the broadcast cycle and frequency of auxiliary data packets are used to solve the problem of high resource consumption caused by BIS technology, and the efficiency optimization and resource conservation of the Bluetooth broadcast system are achieved.

CN115379427BActive Publication Date: 2024-11-12GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202110560271.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-21
Publication Date
2024-11-12
Estimated Expiration
2041-05-21

AI Technical Summary

Technical Problem

In version 5.2 of Bluetooth protocol specification, broadcast synchronous streaming (BIS) technology causes excessive consumption of power, air interface resources and processing resources of the first wireless terminal, and lacks an effective synchronization feedback mechanism, resulting in unnecessary consumption of power and communication resources.

Method used

The auxiliary data packet is broadcast in the first wireless terminal, including a broadcast cycle and a transmission and reception frequency point, and the broadcast is stopped after receiving the synchronization message from the second wireless terminal, thereby realizing a synchronization feedback mechanism to reduce energy consumption and resource occupation.

Benefits of technology

Through the synchronous feedback mechanism, the power consumption and communication resource occupation of the first wireless terminal are reduced, the efficiency of the Bluetooth broadcasting system is optimized, and unnecessary power and resource consumption is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379427B_ABST
    Figure CN115379427B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, terminal and storage medium for broadcasting and receiving Bluetooth data packets, belonging to the field of wireless communication technology. The present application can broadcast auxiliary data packets to the surrounding through a first wireless terminal, and the auxiliary data packets are provided with a broadcast period and a transceiver frequency. The terminal broadcasts Bluetooth data packets on the transceiver frequency based on the broadcast period, and stops broadcasting the auxiliary data packets after receiving a first message indicating that the second wireless terminal has synchronized to the broadcast period of the Bluetooth data packet, and when a first preset condition is met. Since the first wireless terminal can receive feedback messages and confirm whether the Bluetooth broadcast has been synchronized according to the feedback messages, when the Bluetooth broadcast has been synchronized, the auxiliary data packets are stopped from being broadcast, thereby reducing the energy consumption of the wireless terminal and reducing the occupation of communication resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of wireless communication technology, and in particular to a method, device, terminal and storage medium for broadcasting and receiving Bluetooth data packets. Background Art

[0002] With the iteration of Bluetooth (BT) technology standards, Bluetooth Core Specification v5.2 can support broadcasting of a Bluetooth device to multiple other Bluetooth devices with relatively low power consumption.

[0003] In the Bluetooth protocol specification 5.2, a Broadcast Isochronous Stream (BIS) technology is announced. BIS is used to broadcast one or more synchronous data streams to all Bluetooth devices within the coverage range. For a scanning device that receives a BIS broadcast, it can receive the first bias information sent at any frequency from Bluetooth 37 to Bluetooth 39. According to the first bias information, the scanning device obtains a receiving window for receiving AUX (Auxiliary) data packets and receives the AUX data packets. The scanning device decodes the AUX data packets to obtain the second bias information, and according to the second bias information, obtains the receiving window for receiving periodic data packets and receives the periodic data packets. The scanning device decodes the periodic data packets to obtain the broadcast period and frequency of BIS, and synchronizes with the BIS. Summary of the invention

[0004] The embodiment of the present application provides a method, terminal and storage medium for broadcasting and receiving Bluetooth data packets. The technical solution is as follows:

[0005] According to one aspect of the present application, a method for broadcasting a Bluetooth data packet in a first wireless terminal is provided, the method comprising:

[0006] A broadcast auxiliary data packet, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency;

[0007] Based on the broadcast period, periodically broadcast Bluetooth data packets on the transmitting and receiving frequency points;

[0008] receiving a first message from a second wireless terminal, the first message being used to indicate that the second wireless terminal has synchronized to the broadcast period; and

[0009] When the first preset condition is met, the broadcasting of the auxiliary data packet is stopped.

[0010] According to another aspect of the present application, a method for receiving a Bluetooth data packet in a second wireless terminal is provided, the method comprising:

[0011] receiving an auxiliary data packet from a first wireless terminal, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency;

[0012] Determining a receiving window based on the broadcast period and the transmitting and receiving frequency;

[0013] Based on synchronization of the receiving window with the broadcasting period;

[0014] In response to the second wireless terminal being synchronized with the broadcast period, periodically receiving Bluetooth data packets from the first wireless terminal; and

[0015] A first message is sent to the first wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period.

[0016] According to another aspect of the present application, there is provided a device for broadcasting a Bluetooth data packet in a first wireless terminal, the device comprising:

[0017] A first broadcast module, used for broadcasting an auxiliary data packet, wherein the auxiliary data packet is used for providing a broadcast period and a transmitting and receiving frequency;

[0018] A second broadcast module, configured to periodically broadcast Bluetooth data packets on the transmitting and receiving frequency based on the broadcast period;

[0019] A first receiving module, configured to receive a first message from a second wireless terminal, wherein the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period;

[0020] The broadcast stopping module is used to stop broadcasting the auxiliary data packet when a first preset condition is met.

[0021] According to another aspect of the present application, a device for receiving a Bluetooth data packet in a second wireless terminal is provided, the device comprising:

[0022] A second receiving module, configured to receive an auxiliary data packet from the first wireless terminal, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency;

[0023] A window determination module, used to determine a receiving window based on the broadcast period and the receiving and transmitting frequency;

[0024] A cycle synchronization module, configured to synchronize with the broadcast cycle based on the receiving window;

[0025] A third receiving module, configured to periodically receive Bluetooth data packets in response to the second wireless terminal being synchronized with the broadcast period;

[0026] The first sending module is used to send a first message to the first wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period.

[0027] According to another aspect of the present application, a wireless terminal is provided, which includes a processor and a memory, and program instructions stored on the memory, wherein the program instructions are loaded and executed by the processor to implement a method for broadcasting Bluetooth data packets in a first wireless terminal as provided in various aspects of the present application.

[0028] According to another aspect of the present application, a wireless terminal is provided, which includes a processor and a memory, and program instructions stored on the memory, wherein the program instructions are loaded and executed by the processor to implement a method for receiving Bluetooth data packets in a second wireless terminal as provided in various aspects of the present application.

[0029] According to another aspect of the present application, a computer-readable storage medium is provided, wherein program instructions are stored in the storage medium, and the program instructions are loaded and executed by a processor to implement a method for broadcasting a Bluetooth data packet in a first wireless terminal as provided in various aspects of the present application.

[0030] According to another aspect of the present application, a computer-readable storage medium is provided, wherein program instructions are stored in the storage medium, and the instructions are loaded and executed by a processor to implement a method for receiving a Bluetooth data packet in a second wireless terminal as provided in various aspects of the present application.

[0031] According to one aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for broadcasting a Bluetooth data packet in a first wireless terminal provided in the present application.

[0032] According to one aspect of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for receiving a Bluetooth data packet in a second wireless terminal provided in the present application.

[0033] In an embodiment of the present application, the first wireless terminal is capable of broadcasting an auxiliary data packet to the surroundings, the auxiliary data packet includes a broadcast period and a transceiver frequency, the first wireless terminal broadcasts a Bluetooth data packet on the transceiver frequency based on the broadcast period, receives a first message indicating that the second wireless terminal has synchronized to the broadcast period of the Bluetooth data packet, and stops broadcasting the auxiliary data packet when a first preset condition is met. Since the first wireless terminal is capable of receiving a feedback message and confirming whether the Bluetooth broadcast has been synchronized based on the feedback message, when the Bluetooth broadcast has been synchronized, the auxiliary data packet is stopped from being broadcast, thereby reducing the energy consumption of the wireless terminal and reducing the occupation of communication resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly introduce the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 is a schematic diagram of an implementation environment of Bluetooth broadcasting;

[0036] Figure 2 It is a schematic diagram of a method for periodic synchronization of a Bluetooth data packet involved in an embodiment of the present application;

[0037] Figure 3 is a flowchart of a method for broadcasting a Bluetooth data packet in a first wireless terminal provided by an exemplary embodiment of the present application;

[0038] Figure 4 is based on Figure 3 A schematic diagram of the composition of an auxiliary data packet provided by the illustrated embodiment;

[0039] Figure 5 is a flow chart of a method for receiving a Bluetooth data packet in a second wireless terminal provided by an embodiment of the present application;

[0040] Figure 6 is a flow chart of a method for broadcasting and periodic synchronization of Bluetooth data packets provided by another exemplary embodiment of the present application;

[0041] Figure 7 is based on Figure 6 A schematic diagram of adding an identification list of a first wireless terminal provided by the illustrated embodiment;

[0042] Figure 8 is a schematic diagram of a second wireless terminal stopping broadcasting a first message provided by an embodiment of the present application;

[0043] Fig. 9It is a schematic diagram of a first wireless terminal stopping broadcasting an auxiliary data packet provided by the present application;

[0044] Fig.10 This is a schematic diagram of data packet scheduling based on a BIS service in a first wireless terminal provided in an embodiment of the present application;

[0045] Fig.11 is based on Figure 3 A flowchart of some steps provided by the method for broadcasting a Bluetooth data packet shown;

[0046] Fig.12 is a structural block diagram of an apparatus for broadcasting a Bluetooth data packet in a first wireless terminal provided by an exemplary embodiment of the present application;

[0047] Fig.13 is a structural block diagram of a broadcast synchronization device in a second wireless terminal provided by another exemplary embodiment of the present application;

[0048] Fig.14 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0050] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0051] In the description of the present application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0052] In order to facilitate the understanding of the scheme shown in the embodiments of the present application, several nouns appearing in the embodiments of the present application are introduced below.

[0053] PADV (Periodic Advertising);

[0054] BT (Bluetooth);

[0055] BLE (Bluetooth Low Energy);

[0056] Bluetooth Classic;

[0057] BLE Audio (Bluetooth Low Energy Audio);

[0058] Sync link (Synchronization link);

[0059] True Wireless Stereo (TWS);

[0060] AE Scan (Extended Scan, AE Scan);

[0061] AE Broadcast (Extended Advertising);

[0062] Tx (Transmit, send);

[0063] Rx(Receive, receive);

[0064] ACK (Acknowledge character);

[0065] BIS (Broadcast Isochronous Stream, broadcast synchronous stream);

[0066] BIG (Broadcast Isochronous Group);

[0067] SCAN_REQ (Scannable Request, broadcast confirmation packet).

[0068] Auxiliary data packet: a data packet used to provide the broadcast period and the transmit and receive frequencies. In one possible manner, the auxiliary data packet is a collective data packet including multiple data packets. The second wireless terminal can completely obtain the multiple data packets in the above auxiliary data packet. With the support of the complete multiple data packets, the second wireless terminal can obtain the broadcast period and the transmit and receive frequencies. If the auxiliary data packet is used to receive the Bluetooth data packet sent by the BIS, the auxiliary data packet may include a specified broadcast data packet, an AUX data packet, and a periodic data packet.

[0069] See also Figure 1 , Figure 1 is a schematic diagram of the implementation environment of Bluetooth broadcasting. Figure 1 In the embodiment, two types of wireless terminals are included. The first type of wireless terminal is a first wireless terminal 110 for broadcasting Bluetooth data packets to the surroundings. The second type of wireless terminal is a second wireless terminal 120 for scanning the surrounding Bluetooth signals and receiving Bluetooth data packets after scanning the Bluetooth signals. Schematically, Figure 1 , one first wireless terminal 110 and three second wireless terminals 120 are shown.

[0070] In this scenario, see Figure 1 , Figure 1 It is a schematic diagram of an auxiliary data packet and a Bluetooth data packet based on BIS broadcast. Figure 1 In the embodiment of the present invention, the first wireless terminal 110 can broadcast the auxiliary data packet to the surroundings. Subsequently, within the coverage of the broadcast signal of the first wireless terminal 110, the second wireless terminal 120 can receive the auxiliary data packet. The second wireless terminal 120 can decode the broadcast period and the transceiver frequency from the auxiliary data packet. Subsequently, the second wireless terminal 120 can start synchronizing to the broadcast period of the Bluetooth data packet broadcast by the first wireless terminal 110 from the transceiver frequency position after the first broadcast period after receiving the auxiliary data packet, so as to periodically receive Bluetooth data packets.

[0071] In a possible implementation, in Bluetooth protocol specification 5.2, the second wireless terminal 120 is also called a scanning device. In this application, devices with a scanning function are collectively referred to as second wireless terminals.

[0072] See also Figure 2 , Figure 2 Schematic diagram of a method for periodic synchronization of Bluetooth data packets involved in an embodiment of the present application. Figure 2In the example, the first wireless terminal 110 broadcasts the auxiliary data packet 210 to the surrounding at time t0. The second wireless terminal 120 receives the auxiliary data packet 210 at time t1, and obtains the broadcast period and the transceiver frequency by decoding the auxiliary data packet 210. As a result, the second wireless terminal 120 determines that the Bluetooth data packet is broadcast on the transceiver frequency, and the time when the next time window for receiving the Bluetooth data packet starts is t1+broadcast period. If T is used to represent the broadcast period, the second wireless terminal 120 determines that the next receiving window is (t1+T, transceiver frequency), and uses the next receiving window as a reference point to synchronize with the broadcast period of the Bluetooth data packet, so that the second wireless terminal 120 can periodically receive Bluetooth data packets.

[0073] It should be noted that the auxiliary data packets in the BIS mode specified in the Bluetooth protocol specification version 5.2 will be continuously sent, which consumes the power, air interface resources and processing resources of the first wireless terminal to a certain extent.

[0074] The present application discloses a method for broadcasting a Bluetooth data packet applied to a first wireless terminal, and a method for broadcasting and synchronizing a Bluetooth data packet applied to a second wireless terminal, which can stop the first wireless terminal from broadcasting an auxiliary data packet after the second wireless terminal has successfully synchronized to the broadcast period of the Bluetooth data packet, thereby reducing the power consumption of the first wireless terminal and the occupation of software and hardware resources, and at the same time reducing the occupation of communication resources by the auxiliary data packet. For details, please refer to the following introduction.

[0075] Please refer to Figure 3 , Figure 3 1 is a flowchart of a method for broadcasting a Bluetooth data packet in a first wireless terminal provided by an exemplary embodiment of the present application. Figure 3 In the method of broadcasting a Bluetooth data packet, the method includes:

[0076] Step 310: broadcast an auxiliary data packet, where the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency.

[0077] In the embodiment of the present application, the first wireless terminal is capable of broadcasting an auxiliary data packet to the surrounding space.

[0078] In a possible implementation, if the auxiliary data packet is a data packet, the first wireless terminal may choose to broadcast the auxiliary data packet in a channel supported by the Bluetooth protocol. For example, the first wireless terminal may broadcast the auxiliary data packet on frequency point 37, frequency point 38, or frequency point 39, so that the second wireless terminal receives the auxiliary data packet from any of the above frequency points.

[0079] In another possible implementation, if the auxiliary data packet is a group of data packets, the first wireless terminal can broadcast the corresponding type of data packets according to the frequency and time requirements of each type of data packet in the group of data. For example, if the auxiliary data packet includes a first type of auxiliary data packet, a second type of auxiliary data packet and a third type of auxiliary data packet, the first wireless terminal can broadcast each type of auxiliary data packet separately according to the frequency and time required by each of the above three types of data packets. Optionally, the first wireless terminal can receive the first type of auxiliary data packet, the second type of auxiliary data packet and the third type of auxiliary data packet in sequence. The first type of auxiliary data packet can still be broadcast on frequency point 37, frequency point 38 or frequency point 39.

[0080] Correspondingly, the broadcast period and receiving and transmitting frequency for receiving Bluetooth data packets can be stored in the third type of data packets among the above three types of data. However, in order to receive the third type of data packets, the second wireless terminal needs to first obtain a receiving window for receiving the third type of data packets. The time-frequency information is stored in the second type of data packets. Similarly, in order to receive the second type of data packets, the second wireless terminal needs to receive the first type of data packets, and the first type of data packets store the time-frequency information for receiving the first type of data packets. For the first type of data packets, the first wireless terminal can broadcast the first type of data packets on the Bluetooth broadcast channel.

[0081] In other words, the first wireless terminal may continuously broadcast the first type of data packets, the second type of data packets, and the third type of data packets.

[0082] See also Figure 4 , Figure 4 is based on Figure 3 The embodiment shown in the figure provides a schematic diagram of the composition of an auxiliary data packet. Figure 4 , the first wireless terminal broadcasts a first type of data packet 410 at frequency 37, frequency 38 and frequency 39. The first type of data packet 410 includes first time-frequency information. The first wireless terminal sends a second type of data packet 420 in the sending window indicated by the first time-frequency information. The second type of data packet 420 includes second time-frequency information. The first wireless terminal sends a third type of data packet 430 in the sending window indicated by the second time-frequency information. The third type of data packet 430 includes the sending and receiving frequency and the broadcast period. Optionally, the second type of data packet 420 may be an AUX data packet; the third type of data packet 430 may be a Periodic data packet. Optionally, both the first time-frequency information and the second time-frequency information include the sending time point and frequency information.

[0083] Correspondingly, at the second wireless terminal, the second wireless terminal needs to first receive the first type of data packet 410, and receive the second type of data packet 420 according to the first time-frequency information in the first type of data packet 410. Subsequently, the second wireless terminal can receive the third type of data packet 430 according to the second time-frequency information in the second type of data packet 420, and finally obtain the transceiver frequency and broadcast period by decoding the third type of data packet 430.

[0084] Step 320: periodically broadcast Bluetooth data packets on the transmitting and receiving frequencies based on the broadcast period.

[0085] In the embodiment of the present application, the first wireless terminal can periodically broadcast Bluetooth data packets on the transceiver frequency point based on the above-mentioned broadcast period. It should be noted that the present application does not limit the execution order of step 320 and step 310. The first wireless terminal can either execute step 310 first and then step 320, or execute step 320 first and then step 310.

[0086] Optionally, each broadcast Bluetooth data packet can be either an initial data packet or a retransmitted data packet, which is not limited in the present application embodiment. The initial data packet is the Bluetooth data packet sent by the first wireless terminal for the first time; the retransmitted data packet refers to the data packet when the first wireless terminal has sent the Bluetooth data packet of the same type and sends the Bluetooth data packet again.

[0087] Step 330: Receive a first message from the second wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period.

[0088] In the embodiment of the present application, the first wireless terminal is capable of receiving a first message, and the first message may be a data packet sent via ADV broadcast.

[0089] In a possible implementation, the first wireless terminal can parse the first message, and the parsed first message is used to indicate that the second wireless terminal that sent the first message has synchronized to the broadcast period of the Bluetooth data packet. It should be noted that when the second wireless terminal has synchronized to the broadcast period of the Bluetooth data packet, it means that the second wireless terminal can receive each Bluetooth data packet sent by the first wireless terminal according to the broadcast period.

[0090] Step 340: When the first preset condition is met, stop broadcasting the auxiliary data packet.

[0091] In this example, the first wireless terminal can determine whether the current environment information meets the first preset condition. In a possible manner, whether the second wireless terminal receives the auxiliary data packet can be used as a kind of environment information.

[0092] Optionally, when the auxiliary data packet has been successfully broadcast to the second wireless terminal, and the second wireless terminal is the terminal to which the first wireless terminal wishes to send the auxiliary data packet, the first wireless terminal does not need to send the auxiliary data packet again. The first wireless terminal considers that the situation meets the first preset condition, and therefore stops broadcasting the auxiliary data packet.

[0093] It should be noted that the first preset condition is used to identify whether the second wireless terminal is a device that the first wireless terminal hopes to receive the auxiliary data packet.

[0094] Optionally, the first wireless terminal stops broadcasting the auxiliary data packet when the second wireless terminal indicated by the first message is a preset terminal. The first wireless terminal may pre-store the identifier of the second wireless terminal.

[0095] Optionally, the first wireless terminal can also obtain the identifier of the second wireless terminal from the first message and verify the identifier of the second wireless terminal locally. In a possible verification method, the first wireless terminal can maintain a list of identifiers locally, which can include the identifier of one device or multiple devices.

[0096] When the identifier of the second wireless terminal matches the identifier stored locally, the first wireless terminal stops broadcasting the auxiliary data packet. If the auxiliary data packet is a specified data packet, the first wireless terminal stops broadcasting the data packet. If the auxiliary data packet includes multiple types of data packets, the first wireless terminal stops broadcasting the multiple types of data packets.

[0097] In summary, the method for broadcasting a Bluetooth data packet in a first wireless terminal provided in this embodiment can broadcast an auxiliary data packet to the surrounding through the first wireless terminal, the auxiliary data packet provides a broadcast period and a transceiver frequency, the terminal broadcasts the Bluetooth data packet on the transceiver frequency based on the broadcast period, and after receiving a first message indicating that the second wireless terminal has synchronized to the broadcast period of the Bluetooth data packet, the auxiliary data packet is stopped from being broadcast when a first preset condition is met. Since the first wireless terminal can receive a feedback message from the second wireless terminal and confirm whether the Bluetooth broadcast has been synchronized based on the feedback message, the auxiliary data packet is stopped from being broadcast when the Bluetooth broadcast has been synchronized, thereby reducing the energy consumption of the first wireless terminal and reducing the occupation of communication resources.

[0098] The embodiment of the present application also provides a method for receiving a Bluetooth data packet in a second wireless terminal, which is a method applied in the second wireless terminal at the opposite end of the first wireless terminal. For details, please refer to the following embodiment.

[0099] See also Figure 5 , Figure 51 is a flow chart of a method for receiving a Bluetooth data packet in a second wireless terminal provided by an embodiment of the present application. Figure 5 In the method for broadcasting and synchronizing a Bluetooth data packet, the method comprises:

[0100] Step 510: Receive an auxiliary data packet from a first wireless terminal, where the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency.

[0101] In the embodiment of the present application, the second wireless terminal can receive the auxiliary data packet. After receiving the auxiliary data packet, the second wireless terminal will parse the auxiliary data packet to learn the source of the auxiliary data packet, thereby determining that the source of the auxiliary data packet is the first wireless terminal.

[0102] In a possible implementation, if the auxiliary data packet is a data packet, the auxiliary data packet can be sent in frequency point 37, frequency point 38 and frequency point 39, so that the second wireless terminal can quickly discover the auxiliary data packet. It should be noted that in the Bluetooth broadcast scenario, frequency point 37, frequency point 38 and frequency point 39 are commonly used frequencies for broadcasting control data packets.

[0103] In another possible implementation, if the auxiliary data packet is multiple data packets, the first type of data packet in the auxiliary data packet can be sent at frequency 37, frequency 38 and frequency 39, and the second wireless terminal parses the first type of data packet to obtain a receiving window for receiving the next type of data packet, and continues to parse the receiving window for receiving the next type of data packet after receiving the next type of data packet, until a type of data packet contains information that is the broadcast period and receiving and transmitting frequency for broadcasting Bluetooth data packets.

[0104] It should be noted that the embodiments of the present application do not limit the number or types of auxiliary data packets, and any form that can carry the broadcast period and the transmission and reception frequency in the auxiliary data packet can be implemented.

[0105] Step 520: Determine a receiving window based on the broadcast period and the transmitting and receiving frequency.

[0106] In this example, the second wireless terminal can determine the start time of the next receiving window based on the broadcast period. For example, the broadcast period can exist in the form of offset data. If the broadcast period is T, the second wireless terminal determines the time t1+T when the auxiliary data packet containing the broadcast period and the transceiver frequency is received as the start time of the next receiving window.

[0107] The second wireless terminal determines a window whose frequency domain is located at the transmitting and receiving frequency point and whose time domain starting point is t1+T as a receiving window for receiving the Bluetooth data packet.

[0108] Step 530: Synchronize with the broadcast cycle based on the receiving window.

[0109] In this example, the second wireless terminal can be synchronized with the broadcast cycle for broadcasting Bluetooth data packets based on the receiving window. After the second wireless terminal is synchronized to the broadcast cycle, the second wireless terminal can periodically receive Bluetooth data packets according to the broadcast cycle, thereby achieving the effect of synchronizing to the Bluetooth broadcast and continuously receiving the Bluetooth data packets sent by the first wireless terminal.

[0110] Step 540: In response to the second wireless terminal being synchronized with the broadcast period, periodically receive Bluetooth data packets from the first wireless terminal.

[0111] In this example, after the second wireless terminal has synchronized with the broadcast cycle, the second wireless terminal can periodically receive Bluetooth data packets from the first wireless terminal. Therefore, the second wireless terminal will be able to continuously receive Bluetooth data packets periodically broadcast by the first wireless terminal.

[0112] Step 550: Send a first message to the first wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period.

[0113] In this example, the second wireless terminal can send the first message to the first wireless terminal after synchronizing with the broadcast cycle for broadcasting the Bluetooth data packet. Since this example is described by taking the first wireless terminal sending the auxiliary data packet as an example, in this implementation scenario, the second wireless terminal sends the first message to the first wireless terminal.

[0114] It should be noted that the first message can play the role of an ACK message, realizing the notification of the first wireless terminal whether the auxiliary data packet broadcasted by it is successfully received. When the first wireless terminal receives the first message, the first wireless terminal will know that the second wireless terminal has successfully received the auxiliary data packet and is synchronized with the broadcast cycle of the broadcast Bluetooth data packet.

[0115] In summary, the scheme shown in the present application enables the second wireless terminal to parse the broadcast period and transceiver frequency of the received Bluetooth data packet by receiving the auxiliary data packet, and determine the receiving window according to the broadcast period and transceiver frequency, and synchronize the broadcast period of the broadcast Bluetooth data packet based on the receiving window and periodically receive the Bluetooth data packet. On this basis, the second wireless terminal can also feedback the first message to the first wireless terminal, and the first message is used to feedback to the first wireless terminal the information that it has been synchronized with the broadcast period, thereby improving the ability of the first wireless terminal to know the reception status of the auxiliary data packet broadcast by itself, thereby optimizing the efficiency of the Bluetooth broadcast system and reducing unnecessary power and communication resource consumption.

[0116] Based on the solution disclosed in the previous embodiment, the first wireless terminal can also notify the second wireless terminal to stop broadcasting, and receive the first message through other methods. Please refer to the following embodiment.

[0117] See also Figure 6 , Figure 6 FIG. 1 is a flowchart of a method for broadcasting and receiving a Bluetooth data packet provided by another exemplary embodiment of the present application. The method can be implemented by a first wireless terminal and a second wireless terminal in cooperation. Figure 6 The method comprises:

[0118] Step 611: The first wireless terminal broadcasts an auxiliary data packet.

[0119] In this example, the execution process of step 611 is the same as the execution process of step 310, which will not be repeated here.

[0120] Accordingly, the second wireless terminal receives the auxiliary data packet from the first wireless terminal.

[0121] In this example, the execution process of the second wireless terminal receiving the auxiliary data packet is the same as the execution process of step 510, which will not be repeated here.

[0122] Step 612: The second wireless terminal parses the auxiliary data packet to obtain a broadcast period and a transceiver frequency, and determines a next receiving window based on the broadcast period and the transceiver frequency.

[0123] In this example, the second wireless terminal can record the time when the auxiliary data packet is received, and add the broadcast period to the time to obtain the start time of the next receiving window, and determine the next receiving window for receiving the Bluetooth data packet in combination with the receiving and transmitting frequency.

[0124] Step 613: The second wireless terminal synchronizes with the broadcast cycle for broadcasting Bluetooth data packets based on the receiving window.

[0125] Optionally, after the second wireless terminal is synchronized with the broadcast cycle for broadcasting the Bluetooth data packet, the second wireless terminal will be able to receive the Bluetooth data packet in each subsequent receiving window for receiving the Bluetooth data packet starting from the determined receiving window.

[0126] Step 614: The first wireless terminal broadcasts Bluetooth data packets in the form of a broadcast synchronization stream BIS at the transmitting and receiving frequency according to the broadcast period.

[0127] In this example, the first wireless terminal periodically broadcasts Bluetooth data packets in the form of broadcast synchronization stream BIS at the transceiver frequency according to the broadcast period. It should be noted that the start point of step 614 may be earlier than step 611. Step 614 may also be started in response to the completion of step 611.

[0128] Correspondingly, the second wireless terminal periodically receives Bluetooth data packets in the form of broadcast synchronization stream BIS in the receiving window.

[0129] Step 615: The second wireless terminal sends a first message to the first wireless terminal.

[0130] Correspondingly, the first wireless terminal receives the first message sent by the second wireless terminal. In a possible implementation, the first wireless terminal may monitor the first message in the background.

[0131] In the embodiment of the present application, the first message may be broadcast via ADV.

[0132] Step 616: In response to the identifier of the second wireless terminal matching the identifier in the identifier list, mark the second wireless terminal as synchronized.

[0133] The first message includes the identifier of the second wireless terminal. The identifier may be information that is uniquely capable of identifying the terminal.

[0134] On the one hand, the identifier can be a hardware address such as a Bluetooth address or a MAC (Media Access Control Address). Since the corresponding hardware components are installed in the terminal, the hardware is generally not replaced. Therefore, the hardware address can more accurately represent the specified mobile terminal.

[0135] On the other hand, the identifier may also be a character string prepared by a standardization organization, for example, the identifier may be IMEI (International Mobile Equipment Identification Number), ESN (Electronic Serial Numbers) or MEID (Mobile Equipment Identifier).

[0136] Optionally, when the identifier is a Bluetooth address, the first wireless terminal can mark the second wireless terminal as synchronized in response to a Bluetooth address included in the first message matching a Bluetooth address in the identifier list of the first wireless terminal.

[0137] In this example, the first wireless terminal can implement pre-establishing the identification list of the first wireless terminal by executing step (a1), step (a2) and step (a3). Optionally, the identification list can be a white list.

[0138] Step (a1), scanning the feature information of the surrounding devices to be matched.

[0139] Optionally, the first wireless terminal can scan the characteristic information of the surrounding devices to be matched, wherein the characteristic information can be any one of the device model, IMEI (International Mobile Equipment Identity), MAC (Media Access Control Address) address or Bluetooth address.

[0140] Step (a2): in response to the characteristic information meeting the second preset condition, obtaining an identification of the device to be matched.

[0141] Optionally, a second preset condition may be stored in the first wireless terminal. The second preset condition is used to identify a second wireless terminal that matches the first wireless terminal. In an actual application scenario, the first wireless terminal and the second wireless terminal may be a set of devices used in conjunction with each other. For example, the first wireless terminal is a smart TV, and the second wireless terminal is a plurality of Bluetooth speakers. Alternatively, the first wireless terminal is a smart phone, and the second wireless terminal is a plurality of Bluetooth speakers.

[0142] 1) The second preset condition is that the characteristic information contains a specified character string.

[0143] For example, the specified string is 14:77:40:? ? :? ? :? ? . When the first 6 characters of the characteristic information are the same as the specified string, the first wireless terminal determines that the characteristic information meets the second preset condition. It should be noted that the last 6 characters are not required in terms of value. Therefore, the last six characters of the string are represented by question marks "?".

[0144] 2) The second preset condition is that the characteristic information is within a preset interval.

[0145] For example, the preset interval is 14:77:40:74:34:00-14:77:40:74:34:EE. When the characters of the characteristic information fall into the preset interval, the first wireless terminal determines that the characteristic information meets the second preset condition.

[0146] In response to the characteristic information meeting the second preset condition, the first wireless terminal obtains the Bluetooth address of the device to be matched.

[0147] Step (a3), saving the identifier of the device to be matched into the identifier list of the first wireless terminal.

[0148] Please refer to Figure 7 , Figure 7 is based on Figure 6 The illustrated embodiment provides a schematic diagram of adding an identification list of a first wireless terminal. Figure 7In the example, the identifier is a Bluetooth address. The first wireless terminal scans the surrounding devices to be matched, and the devices to be matched include a first device to be matched 71, a second device to be matched 72, a third device to be matched 73, and a fourth device to be matched 74. After the first wireless terminal verifies the above four devices and confirms that the first device to be matched 71, the second device to be matched 72, and the third device to be matched 73 meet the preset conditions, the first device to be matched 71, the second device to be matched 72, and the third device to be matched 73 are obtained. The Bluetooth addresses of the respective Bluetooth addresses are added to the identifier list of the first wireless terminal.

[0149] Optionally, the first wireless terminal adds the acquired Bluetooth address to a whitelist of the first wireless terminal.

[0150] As another possible adding method, the first wireless terminal may provide a user manual adding operation interface so that the user manually adds the Bluetooth address of the device to be added to the identification list. Schematically, the operation interface may be a user interface provided by an application installed in the first wireless terminal. Optionally, the Bluetooth address in the identification list may also be added via a serial port.

[0151] In this example, the first wireless terminal can pre-add the Bluetooth address of the second wireless terminal to the locally maintained identification list. If there are multiple second wireless terminals, the first wireless terminal can add the Bluetooth addresses of the multiple second wireless terminals to the identification list. For example, if there are three second wireless terminals, the first wireless terminal can add the Bluetooth addresses of the three second wireless terminals to the identification list. Please refer to Table 1, which shows data that may be stored in an identification list.

[0152]

[0153] Table 1

[0154] Step 617: In response to each identifier in the identifier list being marked as synchronized, the first wireless terminal stops broadcasting the auxiliary data packet.

[0155] In this example, the first wireless terminal can stop broadcasting the auxiliary data packet in response to each identifier in the identifier list being marked as synchronized. The first wireless terminal can also stop broadcasting the auxiliary data packet after the system duration after receiving the first message exceeds the preset threshold by setting the preset threshold. For example, the preset threshold can be a value such as 1 minute, 2 minutes or 5 minutes.

[0156] It should be noted that if a plurality of second wireless terminals are maintained in the identification list of the first wireless terminal, and the plurality of second wireless terminals are all operating normally, the first wireless terminal can stop broadcasting the auxiliary data packet after each identification in the identification list is marked as synchronized. However, when some of the second wireless terminals in the identification list are offline due to a fault or being outside the broadcast range of the first wireless terminal, the first wireless terminal can control the broadcast of the auxiliary data packet by the duration of a preset threshold, thereby stopping the broadcast of the auxiliary data packet in time to reduce the energy consumption of the first wireless terminal and the unnecessary consumption of communication resources.

[0157] Illustratively, the above steps 616 and 617 may be replaced by whitelist filtering specified in Bluetooth protocol specification version 5.2 to achieve the same function.

[0158] Step 618: In response to stopping broadcasting the auxiliary data packet, the first wireless terminal sends a second message to the second wireless terminal, where the second message is used to instruct the second wireless terminal to stop sending the first message.

[0159] In this example, the first wireless terminal can first determine the frequency corresponding to the first message, that is, the frequency at which the first message is received. After determining the frequency, the first wireless terminal stops broadcasting the auxiliary packet and then sends the second message to the second wireless terminal at the frequency. It should be noted that the second message may carry the device identifier of the second wireless terminal. That is, the communication form in which the first wireless terminal sends the second message to the second wireless terminal may be unicast.

[0160] In the present application, the frequency point is a reused frequency point. After determining the frequency point, the first wireless terminal will reuse the frequency point to send the second message to the second wireless terminal.

[0161] Correspondingly, the second wireless terminal receives the second message sent by the first wireless terminal, and the second message is used to indicate that the first wireless terminal has received the first message.

[0162] Illustratively, the second message may be a SCAN_REQ confirmation packet.

[0163] Step 619: The second wireless terminal stops broadcasting the first message.

[0164] In this example, the second wireless terminal will periodically send the first message to the first wireless terminal before the first wireless terminal receives the first message. The present application notifies the second wireless terminal by introducing the second message returned by the first wireless terminal so that the second wireless terminal stops sending the first message that is no longer needed.

[0165] In a possible application manner, if the first wireless terminal and the second wireless terminal support Bluetooth protocol specification version 5.2 at the same time, the second wireless terminal may stop broadcasting the first message after sending the SCAN_RSP data packet.

[0166] For illustration, please refer to Figure 8 , Figure 8 1 is a schematic diagram of a second wireless terminal stopping broadcasting a first message provided by an embodiment of the present application. Figure 8 In the embodiment, the first wireless terminal 810 sends an auxiliary data packet to the second wireless terminal 820 through AE broadcast (extended broadcast) and PADV periodic broadcast. At the same time, the first wireless terminal 810 sends a Bluetooth data packet by broadcasting the synchronization stream BIS. After the second wireless terminal 820 broadcasts the synchronization stream BIS synchronously according to the auxiliary data packet, it confirms that the reception of the Bluetooth data packet is normal, has synchronized to the broadcast cycle of BIS and periodically receives the Bluetooth data packet, and then sends the first message to the first wireless terminal 810 through AE broadcast. The first wireless terminal 810 receives the first message by scanning. After the first wireless terminal 810 confirms that the second wireless terminal 820 has synchronized to the broadcast cycle of BIS according to the first message, it sends the second message to the second wireless terminal 820, that is, the SCAN_REQ (scan request) message. Accordingly, after receiving the second message, the second wireless terminal 820 confirms that the stop condition is met and stops sending the first message through AE broadcast.

[0167] Please refer to Fig. 9 , Fig. 9 1 is a schematic diagram of a first wireless terminal stopping broadcasting an auxiliary data packet provided by the present application. Fig. 9 In the example, the first wireless terminal 810 is included, and the second wireless terminal includes a first second wireless terminal 821, a second second wireless terminal 822, and a third second wireless terminal 823. It should be noted that the information interaction logic and process between the first wireless terminal 810 and the above three second wireless terminals are the same. The first second wireless terminal 821 is taken as an example for introduction. The interaction process between the first wireless terminal 810 and the first second wireless terminal 821 is the same as Figure 8 Similar to the process shown in Figure 8 Based on the process shown, after receiving the second message sent by the first wireless terminal 810, that is, the SCAN_REQ (scan request) message, the first second wireless terminal 821 will also send a SCAN_RSP (scan reply) data packet to the first wireless terminal 810. Fig. 9In the scenario shown, after the first second wireless terminal 821, the second second wireless terminal 822 and the third second wireless terminal 823 all send SCAN_RSP data packets to the first wireless terminal 810, that is, after all Bluetooth addresses in the identification list are marked as synchronized, the first wireless terminal 810 stops broadcasting auxiliary data packets.

[0168] Please refer to Fig.10 , Fig.10 1 is a schematic diagram of a data packet scheduling based on a BIS service in a first wireless terminal provided by an embodiment of the present application. Fig.10 In the process, a first scheduling stage 1010 and a second scheduling stage 1020 are included.

[0169] In the first scheduling stage 1010, the PADV service and the BIS service conflict at time t11 and time t13. The first wireless terminal selects the service with higher priority to send or sends a data packet corresponding to one of the services using a preset sending strategy. Fig.10 During the execution of the first wireless terminal, the first wireless terminal sends a Bluetooth data packet based on the BIS service at time t11, and sends a periodic broadcast data packet of the PADV service at time t13. The AE broadcast (extended broadcast) and the BIS service conflict at time t12, and the first wireless terminal also selects the service with a higher priority to send through the priority setting. The first wireless terminal sends a data packet of the BIS service at time t12.

[0170] Optionally, the demarcation point between the first scheduling phase 1010 and the second scheduling phase 1020 is an anchor point. After the anchor point, the first wireless terminal stops sending the auxiliary data packet. Fig.10 In the scenario shown, the periodic broadcast data packets, data packets broadcast from frequency point 37 to frequency point 39 and assistance data packets as part of the auxiliary data packets will stop broadcasting. Therefore, in the second scheduling stage 1020, the first wireless terminal only broadcasts Bluetooth data packets of the BIS service.

[0171] To sum up, the broadcast and broadcast synchronization method of the Bluetooth data packet provided in this embodiment can, on the basis of the existing Bluetooth broadcast specification, add a feedback channel between the first wireless terminal and the second wireless terminal, and promptly stop the broadcast auxiliary data packet in the first wireless terminal by means of feedback, and can promptly stop the first message sent in the second wireless terminal, while optimizing the energy consumption of the first wireless terminal and the second wireless terminal and the occupation of communication resources, while optimizing the resource consumption at both ends of the first wireless terminal and the second wireless terminal in the Bluetooth broadcast scenario, and reducing the probability of conflict caused by the first wireless terminal broadcasting multiple services in parallel.

[0172] Based on the method shown in the above embodiment, the embodiment of the present application also provides a method for broadcasting a Bluetooth data packet, which can be Figure 4 Based on the illustrated embodiment, the first message is received in a variety of ways. Please refer to the following embodiments.

[0173] Please refer to Fig.11 , Fig.11 is based on Figure 3 The method for broadcasting a Bluetooth data packet shown in the flowchart provides some steps. Fig.11 In the embodiment, after the terminal completes step 320, it can execute step 1110. After step 1110 is completed, the first wireless terminal continues to execute step 340. The execution process of step 1110 is described as follows:

[0174] Step 1110: Receive a first message via a short-range wireless communication protocol, where the short-range wireless communication protocol includes one of a Bluetooth protocol, a WiFi protocol, and a ZigBee protocol.

[0175] In this example, the first wireless terminal can receive the first message through a short-range wireless communication protocol. It should be noted that the short-range wireless communication protocol can be any one of the Bluetooth protocol, the Wireless Fidelity WiFi protocol and the ZigBee protocol. The first wireless terminal and the second wireless terminal can support the above short-range wireless communication protocols at the same time.

[0176] It should be noted that if there are other communication protocols that can send the first message from the second wireless terminal to the first wireless terminal, they are also within the protection scope of the solution shown in this application, and this application does not limit this.

[0177] Optionally, when the short-range wireless communication protocol is the Bluetooth protocol, the first wireless terminal may also replace step 1110 by executing steps (b1) and (b2).

[0178] Step (b1), establishing a Bluetooth physical link ACL with the second wireless terminal.

[0179] In this example, the first wireless terminal can send a signal through a radio frequency component to pre-establish a Bluetooth physical link ACL with the second wireless terminal. On this basis, the first wireless terminal and the second wireless terminal can exchange information via the Bluetooth physical link ACL.

[0180] Step (b2), receiving a first message via the Bluetooth physical link ACL.

[0181] In this example, in a scenario where a Bluetooth physical link ACL is established between the first wireless terminal and the second wireless terminal, the first wireless terminal can receive the first message sent by the second wireless terminal via the Bluetooth physical link ACL.

[0182] To sum up, the Bluetooth data packet broadcasting method provided in this embodiment can enable the first wireless terminal and the second wireless terminal to obtain the first message shown in this application through a variety of possible methods, so that the first wireless terminal can promptly stop broadcasting auxiliary data packets that no longer need to be broadcast, thereby reducing the energy and communication resources that are wasted unnecessarily by the first wireless terminal in Bluetooth broadcasting, optimizing the resource utilization efficiency of the first wireless terminal in Bluetooth broadcasting, and reducing the probability of conflict among various services involved in the broadcast.

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

[0184] Please refer to Fig.12 , Fig.12 1 is a structural block diagram of an apparatus for broadcasting a Bluetooth data packet in a first wireless terminal provided by an exemplary embodiment of the present application. The apparatus for broadcasting a Bluetooth data packet can be implemented as all or part of the first wireless terminal through software, hardware, or a combination of both. The apparatus includes:

[0185] The first broadcast module 1210 is used to broadcast an auxiliary data packet, where the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency.

[0186] The second broadcast module 1220 is configured to periodically broadcast Bluetooth data packets on the transmitting and receiving frequency based on the broadcast period.

[0187] The first receiving module 1230 is configured to receive a first message from a second wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast cycle.

[0188] The broadcast stopping module 1240 is configured to stop broadcasting the auxiliary data packet when a first preset condition is met.

[0189] In an optional embodiment, the second broadcast module 1220 is used to broadcast the Bluetooth data packet in the form of a broadcast synchronization stream BIS at the transmitting and receiving frequency according to the broadcast period.

[0190] In an optional embodiment, the apparatus further includes a second sending module, configured to send a second message to the second wireless terminal in response to stopping broadcasting the auxiliary data packet, wherein the second message is used to instruct the second wireless terminal to stop periodically sending the first message. The first message is periodically sent by the second wireless terminal.

[0191] In an optional embodiment, the second sending module is used to determine a frequency at which the first message is received; in response to stopping broadcasting the auxiliary data packet, send the second message to the second wireless terminal at the frequency.

[0192] In an optional embodiment, the stop broadcasting module 1240 is used to mark the second wireless terminal as synchronized if the identifier of the second wireless terminal matches the identifier in the identifier list, and the first message includes the identifier of the second wireless terminal; in response to each of the identifiers in the identifier list of the first wireless terminal being marked as synchronized, stop broadcasting the auxiliary data packet.

[0193] In an optional embodiment, the identifier involved in the device is a Bluetooth address.

[0194] In an optional embodiment, the broadcast stopping module 1240 is further configured to stop broadcasting the auxiliary data packet in response to a time length after receiving the first message being greater than a preset threshold.

[0195] In an optional embodiment, the device further includes a list adding module for scanning feature information of surrounding wireless terminals to be matched; in response to the feature information meeting a second preset condition, saving the identifier of the wireless terminal to be matched into the identifier list of the first wireless terminal.

[0196] In an optional embodiment, the first receiving module 1230 is used to receive the first message through a short-range wireless communication protocol, where the short-range wireless communication protocol includes one of a Bluetooth protocol, a WiFi protocol, and a ZigBee protocol.

[0197] In an optional embodiment, the first receiving module 1230 is configured to establish a Bluetooth physical link ACL with the second wireless terminal in response to the short-range wireless communication protocol being the Bluetooth protocol; and receive the first message via the Bluetooth physical link ACL.

[0198] In an optional embodiment, the first wireless terminal is at least one of a mobile terminal, a tablet computer, a smart TV and a Bluetooth speaker.

[0199] In summary, in the device provided by the embodiment of the present application, the first wireless terminal can broadcast auxiliary data packets to the surroundings, the auxiliary data packets provide a broadcast period and a transceiver frequency, the terminal broadcasts a Bluetooth data packet on the transceiver frequency based on the broadcast period, and after receiving a first message indicating that the second wireless terminal has synchronized to the broadcast period of the Bluetooth data packet, when the first preset condition is met, the auxiliary data packet is stopped from being broadcast. Since the first wireless terminal can receive feedback messages and confirm whether the Bluetooth broadcast has been synchronized according to the feedback messages, when the Bluetooth broadcast has been synchronized, the auxiliary data packet is stopped from being broadcast, thereby reducing energy consumption and reducing the occupation of communication resources.

[0200] Please refer to Fig.13 , Fig.13 This is a structural block diagram of a broadcast synchronization device in a second wireless terminal provided by another exemplary embodiment of the present application. The broadcast synchronization device for the Bluetooth data packet can be implemented as all or part of the second wireless terminal through software, hardware or a combination of both. The device includes:

[0201] The second receiving module 1310 is used to receive an auxiliary data packet from the first wireless terminal, where the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency;

[0202] A window determination module 1320, configured to determine a receiving window based on the broadcast period and the transmitting and receiving frequency;

[0203] A cycle synchronization module 1330, configured to synchronize with the broadcast cycle based on the receiving window;

[0204] A third receiving module 1340 is configured to periodically receive Bluetooth data packets in response to the second wireless terminal being synchronized with the broadcast period;

[0205] The first sending module 1350 is used to send a first message to the first wireless terminal, where the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period.

[0206] Optionally, the third receiving module 1340 is used to periodically receive the Bluetooth data packet from the first wireless terminal in the form of a broadcast synchronization stream BIS during the receiving window.

[0207] Optionally, the device further includes a second stopping module, configured to receive a second message from the first wireless terminal, wherein the second message is used to indicate that the second wireless terminal has received the first message; and stop broadcasting the first message.

[0208] Optionally, the second wireless terminal is at least one of a Bluetooth speaker, a mobile terminal and a wireless headset.

[0209] To summarize, the device for receiving Bluetooth data packets in the second wireless terminal provided by the present application can, on the basis of the existing Bluetooth broadcast specifications, add a feedback channel between the first wireless terminal and the second wireless terminal, and promptly stop the broadcast auxiliary data packets in the first wireless terminal by means of feedback, and can promptly stop the first message sent in the second wireless terminal, while optimizing the energy consumption of the first wireless terminal and the second wireless terminal and the occupation of communication resources, while optimizing the resource consumption of both ends of the first wireless terminal and the second wireless terminal in the Bluetooth broadcast scenario, and reducing the probability of the first wireless terminal having multiple services.

[0210] Exemplarily, the first wireless terminal and the second wireless terminal shown in the embodiment of the present application can both be constituted as a terminal, and the terminal has a Bluetooth function. The terminal can include a mobile phone, a tablet computer, a laptop computer, a desktop computer, an all-in-one computer, a server, a workstation, a television, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 player terminal, an MP5 player terminal, a learning machine, a point-reading machine, an electronic paper book, an electronic dictionary, a vehicle terminal, a virtual reality (VR) player terminal or an augmented reality (AR) player terminal, etc.

[0211] In a possible implementation of the present application, the first wireless terminal and the second wireless terminal may be a group of devices used in conjunction with each other. The first wireless terminal may be one of a mobile terminal, a tablet computer, a smart TV, and a Bluetooth speaker. Correspondingly, the second wireless terminal may be at least one of a Bluetooth speaker, a mobile terminal, and a wireless headset.

[0212] Fig.14 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application, such as Fig.14 As shown, the terminal includes a processor 1420, a memory 1440 and a Bluetooth module 1460, wherein the memory 1440 stores at least one instruction, and the instruction is loaded and executed by the processor 1420 to implement the method of broadcasting Bluetooth data packets in the first wireless terminal as described in the various method embodiments of the present application, or the instruction is loaded and executed by the processor 1420 to implement the method of receiving Bluetooth data packets in the second wireless terminal as described in the various method embodiments of the present application.

[0213] The processor 1420 may include one or more processing cores. The processor 1420 uses various interfaces and lines to connect various parts of the entire terminal 1400, and executes various functions and processes data of the terminal 1400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1440, and calling data stored in the memory 1440. Optionally, the processor 1420 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1420 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1420, but may be implemented separately through a chip.

[0214] The memory 1440 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1440 includes a non-transitory computer-readable storage medium. The memory 1440 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1440 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 for implementing the following various method embodiments, etc.; the data storage area may store data involved in the following various method embodiments, etc.

[0215] The Bluetooth module 1460 is used to support data communication via the Bluetooth standard, wherein the Bluetooth standard may be any version of the standard released by the Bluetooth standards organization.

[0216] An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the method of broadcasting a Bluetooth data packet in a first wireless terminal as described in the above embodiments.

[0217] An embodiment of the present application further provides a computer-readable medium storing at least one instruction, wherein the at least one instruction is loaded and executed by the processor to implement the method for receiving a Bluetooth data packet in the second wireless terminal as described in the above embodiments.

[0218] It should be noted that: the broadcasting device for Bluetooth data packets provided in the above embodiment only uses the division of the above functional modules as an example when executing the broadcasting method for Bluetooth data packets. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the broadcasting device for Bluetooth data packets provided in the above embodiment and the broadcasting method embodiment for Bluetooth data packets belong to the same concept. The specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0219] It should be noted that: the broadcast synchronization device for Bluetooth data packets provided in the above embodiment only uses the division of the above functional modules as an example when executing the broadcast synchronization method for Bluetooth data packets. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the broadcast synchronization device for Bluetooth data packets provided in the above embodiment and the broadcast synchronization method for Bluetooth data packets are of the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0220] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0221] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0222] The above description is only an illustrative embodiment that can be implemented in the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A method for broadcasting a Bluetooth data packet in a first wireless terminal, characterized in that: The method comprises: A broadcast auxiliary data packet, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency; Based on the broadcast period, periodically broadcast Bluetooth data packets on the transmitting and receiving frequency points; receiving a first message from a second wireless terminal, wherein the first message includes an identifier of the second wireless terminal; the identifier is a Bluetooth address; and the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period; and If the identifier of the second wireless terminal matches an identifier in the identifier list locally maintained by the first wireless terminal, marking the identifier of the second wireless terminal as synchronized; In response to each identifier in the identifier list being marked as synchronized, broadcasting the auxiliary data packet is stopped.

2. The method according to claim 1, characterized in that The periodically broadcasting the Bluetooth data packet on the transmitting and receiving frequency point based on the broadcast period includes: The Bluetooth data packet is broadcasted in the form of a broadcast synchronization stream BIS at the transmitting and receiving frequency according to the broadcast period.

3. The method according to claim 2, characterized in that The first message is periodically sent by the second wireless terminal, and the method further includes: In response to stopping broadcasting the auxiliary data packet, a second message is sent to the second wireless terminal, wherein the second message is used to instruct the second wireless terminal to stop periodically sending the first message.

4. The method according to claim 3, characterized in that: In response to stopping broadcasting the auxiliary data packet, sending a second message to the second wireless terminal comprises: determining a frequency at which the first message is received; and In response to stopping broadcasting the auxiliary data packet, sending the second message to the second wireless terminal at the frequency.

5. The method according to claim 1, characterized in that The method further comprises: In response to a time length after receiving the first message being greater than a preset threshold, broadcasting the auxiliary data packet is stopped.

6. The method according to claim 1, characterized in that The method further comprises: Scan the characteristic information of the surrounding wireless terminals to be matched; In response to the characteristic information meeting the second preset condition, the identifier of the wireless terminal to be matched is saved in the identifier list of the first wireless terminal.

7. The method according to any one of claims 1 to 6, characterized in that: The receiving of the first message comprises: The first message is received through a short-range wireless communication protocol, where the short-range wireless communication protocol includes one of a Bluetooth protocol, a WiFi protocol, and a ZigBee protocol.

8. The method according to claim 7, characterized in that The short-range wireless communication protocol is a Bluetooth protocol, and receiving the first message through the short-range wireless communication protocol includes: Establishing a Bluetooth physical link ACL with the second wireless terminal; and The first message is received via the Bluetooth physical link ACL.

9. The method according to claim 1, characterized in that: The first wireless terminal is at least one of a mobile terminal, a tablet computer, a smart TV and a Bluetooth speaker.

10. A method for receiving a Bluetooth data packet in a second wireless terminal, characterized in that: The method comprises: receiving an auxiliary data packet from a first wireless terminal, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency; Determining a receiving window based on the broadcast period and the transmitting and receiving frequency; Based on synchronization of the receiving window with the broadcasting period; In response to the second wireless terminal being synchronized with the broadcast period, periodically receiving Bluetooth data packets from the first wireless terminal; and A first message is sent to the first wireless terminal, wherein the first message includes an identifier of the second wireless terminal; the identifier is a Bluetooth address; the first message is used to indicate that the second wireless terminal has been synchronized to the broadcast cycle, so that the first wireless terminal marks the identifier of the second wireless terminal as synchronized when the identifier of the second wireless terminal matches an identifier in an identifier list locally maintained by the first wireless terminal, and stops broadcasting the auxiliary data packet when every identifier in the identifier list is marked as synchronized.

11. The method according to claim 10, characterized in that The periodically receiving a Bluetooth data packet from the first wireless terminal includes: The Bluetooth data packet is periodically received from the first wireless terminal in the form of a broadcast synchronization stream BIS on the receiving window.

12. The method according to claim 10, characterized in that The method further comprises: receiving a second message from the first wireless terminal, the second message being used to indicate that the second wireless terminal has received the first message; and Stop broadcasting the first message.

13. The method according to claim 10, characterized in that The second wireless terminal is at least one of a Bluetooth speaker, a mobile terminal and a wireless headset.

14. A device for broadcasting a Bluetooth data packet in a first wireless terminal, characterized in that: The device comprises: A first broadcast module, used for broadcasting an auxiliary data packet, wherein the auxiliary data packet is used for providing a broadcast period and a transmitting and receiving frequency; A second broadcast module, configured to periodically broadcast Bluetooth data packets on the transmitting and receiving frequency based on the broadcast period; A first receiving module, configured to receive a first message from a second wireless terminal, wherein the first message includes an identifier of the second wireless terminal; the identifier is a Bluetooth address; and the first message is used to indicate that the second wireless terminal has synchronized to the broadcast period; A stop broadcast module is used to mark the identifier of the second wireless terminal as synchronized if the identifier of the second wireless terminal matches the identifier in the identifier list locally maintained by the first wireless terminal; in response to each identifier in the identifier list being marked as synchronized, stop broadcasting the auxiliary data packet.

15. A device for receiving a Bluetooth data packet in a second wireless terminal, characterized in that: The device comprises: A second receiving module, configured to receive an auxiliary data packet from the first wireless terminal, wherein the auxiliary data packet is used to provide a broadcast period and a transmitting and receiving frequency; A window determination module, used to determine a receiving window based on the broadcast period and the receiving and transmitting frequency; A cycle synchronization module, configured to synchronize with the broadcast cycle based on the receiving window; A third receiving module, configured to periodically receive Bluetooth data packets in response to the second wireless terminal being synchronized with the broadcast period; A first sending module is used to send a first message to the first wireless terminal, wherein the first message includes an identifier of the second wireless terminal; the identifier is a Bluetooth address; the first message is used to indicate that the second wireless terminal has been synchronized to the broadcast cycle, so that the first wireless terminal marks the identifier of the second wireless terminal as synchronized when the identifier of the second wireless terminal matches an identifier in an identifier list locally maintained by the first wireless terminal, and stops broadcasting the auxiliary data packet when every identifier in the identifier list is marked as synchronized.

16. A wireless terminal, characterized in that: The wireless terminal includes a processor, a memory connected to the processor, and program instructions stored in the memory. When the processor executes the program instructions, the method for broadcasting Bluetooth data packets in the first wireless terminal as described in any one of claims 1 to 9 is implemented.

17. A wireless terminal, characterized in that: The wireless terminal includes a processor, a memory connected to the processor, and program instructions stored in the memory. When the processor executes the program instructions, the method for receiving Bluetooth data packets in the second wireless terminal as described in any one of claims 10 to 13 is implemented.

18. A computer-readable storage medium, wherein program instructions are stored in the storage medium, characterized in that: When the program instructions are executed by the processor, the method for broadcasting Bluetooth data packets in the first wireless terminal as claimed in any one of claims 1 to 9 is implemented.

19. A computer-readable storage medium, wherein program instructions are stored in the storage medium, characterized in that: When the program instructions are executed by the processor, the method for receiving a Bluetooth data packet in a second wireless terminal as claimed in any one of claims 10 to 13 is implemented.

20. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method for broadcasting Bluetooth data packets in a first wireless terminal as described in any one of claims 1 to 9.

21. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method of broadcasting Bluetooth data packets in the second wireless terminal as described in any one of claims 10 to 13.

Citation Information

Patent Citations

  • Data transmission method and equipment

    CN109327808A

  • Intelligent toothbrush connection method and device, storage medium and terminal

    CN110213753A

  • Data acquisition method and system based on BLE broadcast technology

    CN110913349A

  • Broadcast channel evaluation method and related products

    CN112260778A

  • Bluetooth search method, system and related device

    CN112449328A