Method and device for searching master device in Bluetooth connectionless slave broadcast

By opening the visibility window immediately after the master device sends data in Bluetooth connectionless slave broadcast, and determining the opening time based on the flag bit, the problem of insufficient utilization of idle time in the CSB gap is solved, and the speed and communication efficiency of the slave device searching for the master device is improved.

CN115884316BActive Publication Date: 2025-05-16ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111149030.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2025-05-16
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

In Bluetooth connectionless slave broadcasting, the prior art cannot effectively utilize the idle time in the CSB gap, resulting in wasted time domain resources, and shortening the CSB gap will cause the slave to search the master device for too long or cannot be searched.

Method used

In Bluetooth connectionless slave broadcast, the master device immediately opens the visibility window after sending broadcast data, and sets flags in each CSB gap to decide whether to open the visibility window at the target moment, thereby making full use of the idle time of the CSB gap and extending the visibility window opening time.

Benefits of technology

By opening the visibility window immediately, the search speed of slave devices to the master devices is improved, the waste of time domain resources is reduced, and communication efficiency is improved without affecting the normal broadcast of CSB.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115884316B_ABST
    Figure CN115884316B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of Bluetooth communication, and provides a method and apparatus for searching a master device in a Bluetooth connectionless slave broadcast. Specifically, after the master device in a CSB sends the broadcast data, the visibility window is immediately opened, which can make full use of the idle time in the CSB gap and improve the utilization rate of time domain resources. Moreover, the visibility window is opened immediately after the broadcast data is sent, which can extend the start time of the visibility window, thereby increasing the search speed of the slave device for the master device to quickly receive the broadcast data, thereby improving the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Bluetooth communication technology, and in particular to a method and device for searching for a master device in a Bluetooth connectionless slave broadcast. Background Art

[0002] In Bluetooth Connectionless Slave Broadcast (CSB), the slave device searches for the master device through the Inquiry Scan Window in order to receive the broadcast data sent by the master device. The longer the visibility window is open, the shorter the time required for the slave device to search for the master device.

[0003] At present, the visibility window is generally opened regularly in the CSB interval. In this way, after the data broadcast is completed in a certain CSB interval, it may not be the time for the visibility window to be opened, resulting in a waste of time domain resources.

[0004] In order to reduce the waste of time domain resources, most of the time the visibility window is opened within the CSB gap is shortened. However, when the CSB gap is small (for example, 10ms), the visibility window is small, which may cause the slave device to take a long time to search for the master device, or even fail to search for the master device, thus failing to receive broadcast data. Summary of the invention

[0005] The present application provides a method and device for searching a master device in a Bluetooth connectionless slave broadcast, so as to improve the search speed of the slave device for the master device.

[0006] In a first aspect, the present application provides a method for searching a master device, which is applied to Bluetooth connectionless slave broadcasting, comprising:

[0007] Sending broadcast data to at least one slave device according to a preset CSB interval;

[0008] When the target time arrives, the visibility window is opened so that the at least one slave device receives the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

[0009] In the above-mentioned method for searching the master device, the master device in the Bluetooth CSB immediately opens the visibility window after sending the broadcast data to at least one slave device, making full use of the idle time of the CSB gap for sending the broadcast data and extending the opening time of the visibility window, thereby increasing the speed of searching the master device from the slave device and further improving the communication efficiency.

[0010] Optionally, a flag bit is set in each CSB gap, and the value of the flag bit is used to indicate whether to open the visibility window at the target time;

[0011] When the target time is reached, opening the visibility window includes:

[0012] Get the flag bit in each CSB gap;

[0013] If the value of the flag bit is the first value, the visibility window is opened when the target time is reached.

[0014] In the above method for searching the master device, the master device decides whether to open the visibility window immediately after sending the broadcast data according to the value of the flag bit. This improves the flexibility of opening the visibility window while making full use of the idle time of the CSB gap. While meeting the communication needs of the master device, the search speed of the slave device for the master device can be increased as much as possible, thereby improving the reception efficiency of the broadcast data.

[0015] Optionally, the method further includes:

[0016] If the duration of the second value of the flag bit is greater than a preset threshold, the visibility window is opened at a preset opening time, and the second value indicates that the visibility window is not opened at the target time.

[0017] In the above method for searching the master device, when the duration of the flag bit taking the second value is greater than the preset threshold, the visibility window is opened according to the preset opening time, ensuring that the slave device in the CSB can search for the master device for normal communication.

[0018] Optionally, the broadcast data includes empty data packets.

[0019] In the above method for searching for a master device, when the broadcast data sent by the master device is an empty data packet, the visibility window is open for a longer time, and it is easier for the slave device to search for the master device.

[0020] In a second aspect, the present application provides a master device, applied to Bluetooth connectionless slave broadcast CSB, including:

[0021] A sending module, used for sending broadcast data to at least one slave device according to a preset CSB interval;

[0022] The opening module is used to open the visibility window when the target time arrives, so that the at least one slave device receives the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

[0023] Optionally, a flag bit is set in each CSB gap, and the value of the flag bit is used to indicate whether to open the visibility window at the target time;

[0024] The opening module is specifically used for:

[0025] Get the flag bit in each CSB gap;

[0026] If the value of the flag bit is the first value, the visibility window is opened when the target time is reached.

[0027] Optionally, the opening module is further used for:

[0028] If the duration of the second value of the flag bit is greater than a preset threshold, the visibility window is opened at a preset opening time, and the second value indicates that the visibility window is not opened at the target time.

[0029] Optionally, the broadcast data includes empty data packets.

[0030] In a third aspect, the present application provides an electronic device, applied to Bluetooth connectionless slave broadcast CSB, including a memory, a processor and at least one external communication interface, wherein:

[0031] The at least one external communication interface is used to perform Bluetooth communication with at least one slave device;

[0032] A computer program is stored in the memory, and the processor implements any one of the methods in the first aspect when executing the computer program.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0035] Figure 1 The system architecture diagram provided by the embodiment of the present application is exemplarily shown;

[0036] Figure 2 The flowchart of the method for searching the master device in the CSB provided by the embodiment of the present application is exemplarily shown;

[0037] Figure 3A The schematic diagram of the timeline for opening the visibility window provided in the embodiment of the present application is exemplarily shown;

[0038] Figure 3B The following is a schematic diagram of another timeline for opening a visibility window provided by an embodiment of the present application;

[0039] Figure 3C The schematic diagram of the timeline for opening the visibility window when an empty data packet is provided in an embodiment of the present application is exemplarily shown;

[0040] Figure 4 The schematic diagram of the timeline for opening the visibility window through the flag bit provided in the embodiment of the present application is exemplarily shown;

[0041] Figure 5 The functional structure diagram of the CSB master device provided in the embodiment of the present application is exemplarily shown;

[0042] Figure 6 The hardware structure diagram of the CSB master device provided in the embodiment of the present application is exemplified. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of this application clearer, this application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0045] It should be understood that the terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0046] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0047] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0048] Currently in Bluetooth CSB, the visibility window cannot be opened in time during the idle time of the CSB gap, resulting in a waste of time domain resources. While reducing the CSB gap to improve resource utilization, the visibility window is also reduced, affecting the search speed of the slave device for the master device.

[0049] In view of this, an embodiment of the present application provides a method and apparatus for searching for a master device in a Bluetooth connectionless slave broadcast, wherein a visibility window is opened immediately after the broadcast data is sent to improve resource utilization, and a visible window is opened immediately after the broadcast data is sent to extend the opening time of the visibility window without affecting the normal CSB broadcast, thereby improving the search speed of the slave device for the master device.

[0050] While ensuring the search speed of the CSB slave device for the master device, the embodiment of the present application sets a flag bit in each CSB gap. The master device determines whether to open the visibility window immediately after sending the broadcast data based on the value of the flag bit, thereby controlling the distribution of the visibility window to meet the needs of different scenarios.

[0051] In order to clearly describe the embodiments of the present application, the terms of the present application are explained below.

[0052] Connectionless slave broadcast: The master device broadcasts data to at least one slave device, so that the master device can communicate with multiple slave devices through Bluetooth.

[0053] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0054] Figure 1 The system architecture diagram provided by the embodiment of the present application is exemplarily shown; Figure 1 As shown, the wireless terminal 10 (including but not limited to Figure 1 101-107) communicate with each other through the Bluetooth protocol, wherein there is a master device 101 among multiple wireless terminals, and the other wireless terminals are slave devices (102-107). The slave devices receive broadcast data sent by the master device by searching for the master device.

[0055] It should be noted that Figure 1 This is just an example. The embodiments of the present application do not impose any restrictions on the wireless device 10, and may include a cellular phone, a smart phone, a Session Initiation Protocol (SIP) phone, a mobile station (STA), a laptop computer, a personal computer (PC), a desktop computer, a personal digital assistant (PDA), a satellite radio, a global positioning system, a multimedia device, a video device, a digital audio player (e.g., an MP3 player), a camera, a game console, a tablet computer, a smart device, a wearable device (e.g., a smart watch, a wireless headset, etc.), a vehicle, an electric meter, a gas pump, a toaster, a thermostat, a hearing aid, a wearable blood glucose control unit, an Internet of Things (IoT) device, or any other similar functional device.

[0056] based on Figure 1 The system architecture diagram shown in the figure, Figure 2 The flowchart of the method for searching the master device provided by the embodiment of the present application is exemplarily shown, and is applied to Figure 1 In the Bluetooth CSB system shown in the figure, the process is executed by the master device in the system and mainly includes the following steps:

[0057] S201: Send broadcast data to at least one slave device according to a preset CSB interval.

[0058] The master device uses the Bluetooth protocol to send broadcast data according to the preset CSB interval. This application does not restrict the type of broadcast data, including but not limited to audio data, video data, text, pictures, etc.

[0059] S202: When the target time arrives, open the visibility window so that at least one slave device can receive the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

[0060] like Figure 3A As shown, it is a timeline diagram for opening the visibility window. In each CSB interval, the master device will send two data packets of broadcast data. When the two data packets are sent (that is, the target time is reached), the visibility window will be opened immediately without waiting for the preset opening time of the visibility window.

[0061] It should be noted that Figure 3A The number of packets of broadcast data in each CSB interval is only an example. In actual applications, 1 to N packets can be sent in each CSB interval, where N is an integer greater than 1, and the number of packets that can be sent in each CSB interval can be different, such as Figure 3B shown.

[0062] In some embodiments, when the broadcast data sent by the master device is invalid data, that is, a null data packet (NULL) is sent. Figure 3C As shown, at this time, the visibility window is open for a longer time in the CSB gap, and it is easier for the slave device to search for the master device.

[0063] In the above embodiment, after sending the broadcast data, the master device immediately opens the visibility window to make full use of the idle time in the CSB gap (i.e., the time when the broadcast data is not sent) to improve resource utilization. In addition, opening the visibility window immediately after sending the broadcast data can extend the start time of the visibility window, thereby increasing the search speed of the slave device for the master device, quickly receiving the broadcast data, and improving communication efficiency.

[0064] In some actual application scenarios, the broadcast data sent by the master device can be its own data or transmitted to the master device by other Bluetooth devices. That is to say, in the spare time of the CSB gap, in addition to opening the visibility window, the master device may also communicate with other Bluetooth devices to receive the data to be broadcast. At this time, it is necessary to reserve a part of the communication time for the master device during the idle time.

[0065] In order to adapt to the above scenario, the embodiment of the present application sets a flag bit in each CSB gap, denoted as scan_flag. When the master device communicates with other Bluetooth devices, the value of the flag bit is set to 0. When the master device does not communicate with other Bluetooth devices, the value of the flag bit is set to 1. Different values ​​of the flag bit can be used to indicate whether to open the visibility window at the target time.

[0066] In specific implementation, the master device obtains the flag bit in each CSB gap and determines the value of the flag bit. If the value of the flag bit is the first value (i.e. scan_flag=1), the visibility window is opened when the target time is reached. If the value of the flag bit is the second value (i.e. scan_flag=0), the visibility window is not opened when the target time is reached.

[0067] For example, Figure 4 As shown, when scan_flag=1, the master device opens the visibility window at the target time, and when scan_flag=0, the master device does not open the visibility window at the target time.

[0068] In some embodiments, if the duration of the flag taking the second value (i.e., scan_flag=0) is greater than a preset threshold, then within the CSB gap, the master device opens the visibility window according to the preset opening time of the visibility window to ensure that other slave devices in the CSB can search for the master device for normal communication.

[0069] It should be noted that the above-mentioned preset threshold value represents the lower limit of the time for opening the visibility window according to the preset opening time, and its size can be set according to actual needs. Among them, the preset opening time represents the time when the visibility window is opened in the CSB gap, and the preset opening time can be set according to the size of the CSB gap and the size of the data packet.

[0070] In the above embodiment, the flag bit is set according to the actual situation, and the master device decides whether to open the visibility window immediately after sending the broadcast data according to the value of the flag bit. On the basis of making full use of the idle time of the CSB gap, the flexibility of opening the visibility window is improved; while meeting the communication needs of the master device, the search speed of the slave device for the master device can be increased as much as possible, especially when the CSB gap is short. By setting the flag bit, communication time is reserved for the master device during the idle time, and the opening time of the visibility window is maximized, thereby reducing the time required for the slave device to search for the master device, and improving the search speed of the slave device for the master device, thereby improving the reception efficiency of the broadcast data and improving the user experience.

[0071] Based on the same technical concept, an embodiment of the present application provides a master device, which is applied to Bluetooth CSB. The display device can execute the search method of the master device in the above embodiment and can achieve the same technical effect.

[0072] See also Figure 5 , the main device includes a sending module 501 and an opening module 502;

[0073] The sending module 501 is used to send broadcast data to at least one slave device according to a preset CSB interval;

[0074] The opening module 502 is used to open the visibility window when the target time arrives, so that the at least one slave device receives the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

[0075] Optionally, a flag bit is set in each CSB gap, and the value of the flag bit is used to indicate whether to open the visibility window at the target time;

[0076] The opening module 502 is specifically used for:

[0077] Get the flag bit in each CSB gap;

[0078] If the value of the flag bit is the first value, the visibility window is opened when the target time is reached.

[0079] Optionally, the opening module 502 is further used for:

[0080] If the duration of the second value of the flag bit is greater than a preset threshold, the visibility window is opened at a preset opening time, and the second value indicates that the visibility window is not opened at the target time.

[0081] Optionally, the broadcast data includes empty data packets.

[0082] Based on the same technical concept, the embodiment of the present application provides a main device, such as Figure 6 As shown, the master device includes a processor 601, a memory 602, and at least one external communication interface 603; the processor 601, the memory 602, and the external communication interface 603 are connected via a bus 604. The at least one external communication interface 603 is used to perform Bluetooth communication with at least one slave device; the memory 602 stores a computer program, and the processor 601 implements the aforementioned master device search method when executing the computer program, and can achieve the same technical effect.

[0083] As an embodiment, the number of processors 601 may be one or more, and the processor 801 and the memory 602 may be coupled or relatively independently configured.

[0084] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the above-mentioned computer instructions are executed on a computer, the computer executes the search method for the main device as discussed above.

[0085] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0086] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0089] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for searching a master device, characterized in that: Applicable to the master device in Bluetooth connectionless slave broadcast CSB, including: Sending broadcast data to at least one slave device according to a preset CSB interval; When the target time arrives, the visibility window is opened so that the at least one slave device receives the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

2. The method according to claim 1, characterized in that A flag bit is set in each CSB gap, and the value of the flag bit is used to indicate whether the visibility window is opened at the target time; When the target time is reached, opening the visibility window includes: Get the flag bit in each CSB gap; If the value of the flag bit is the first value, the visibility window is opened when the target time is reached.

3. The method according to claim 2, characterized in that The method further comprises: If the duration of the second value of the flag bit is greater than a preset threshold, the visibility window is opened at a preset opening time, and the second value indicates that the visibility window is not opened at the target time.

4. The method according to any one of claims 1 to 3, characterized in that The broadcast data includes a null data packet.

5. A master device, characterized in that: Applicable to Bluetooth connectionless slave broadcast CSB, including: A sending module, used for sending broadcast data to at least one slave device according to a preset CSB interval; The opening module is used to open the visibility window when the target time arrives, so that the at least one slave device receives the broadcast data after searching for the master device through the visibility window; wherein the target time is the time when the broadcast data is sent.

6. The main device according to claim 5, characterized in that: A flag bit is set in each CSB gap, and the value of the flag bit is used to indicate whether the visibility window is opened at the target time; The opening module is specifically used for: Get the flag bit in each CSB gap; If the value of the flag bit is the first value, the visibility window is opened when the target time is reached.

7. The master device according to claim 6, characterized in that: The opening module is also used for: If the duration of the second value of the flag bit is greater than a preset threshold, the visibility window is opened at a preset opening time, and the second value indicates that the visibility window is not opened at the target time.

8. The main device according to any one of claims 5 to 7, characterized in that: The broadcast data includes a null data packet.

9. An electronic device comprising a memory, a processor and at least one external communication interface, characterized in that: Applicable to the master device in Bluetooth connectionless slave broadcast CSB: The at least one external communication interface is used to perform Bluetooth communication with at least one slave device; The memory stores a computer program, and the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Bluetooth device and mutual searching method thereof

    CN107172717A

  • Data retransmission method, bluetooth slave equipment and wireless communication system

    CN108616818A