CN116744264A - Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product - Google Patents

Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product Download PDF

Info

Publication number
CN116744264A
CN116744264A CN202210201987.8A CN202210201987A CN116744264A CN 116744264 A CN116744264 A CN 116744264A CN 202210201987 A CN202210201987 A CN 202210201987A CN 116744264 A CN116744264 A CN 116744264A
Authority
CN
China
Prior art keywords
electronic device
bluetooth
channel
bluetooth controller
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210201987.8A
Other languages
Chinese (zh)
Inventor
任凯
余庆华
王泷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210201987.8A priority Critical patent/CN116744264A/en
Priority to PCT/CN2022/143502 priority patent/WO2023165246A1/en
Publication of CN116744264A publication Critical patent/CN116744264A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Landscapes

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

Abstract

The application provides a communication method, electronic equipment, device, storage medium and product of Bluetooth protocol, belonging to the technical field of wireless network. The method is performed by a first electronic device, the method comprising: performing, by the first bluetooth controller, a scan of the first broadcast channel to receive a first data packet from the second electronic device; based on determining that the preset condition is met, maintaining a scan of the first broadcast channel by the first bluetooth controller and performing a scan of the first data channel by the second bluetooth controller to receive a second data packet from the second electronic device; the second bluetooth controller is different from the first bluetooth controller; therefore, under the condition that the first electronic equipment can obtain the second data packet sent through the first data channel, the scanning of the first broadcast channel can be kept, the condition that the scanning time of the first broadcast channel is short due to the fact that the first Bluetooth controller performs channel switching is avoided, and the scanning performance of the first broadcast channel through the first Bluetooth controller is improved.

Description

Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product
Technical Field
The present application relates to the field of wireless networks, and in particular, to a communication method, an electronic device, an apparatus, a storage medium, and a product of bluetooth protocol.
Background
Currently, two electronic devices may perform data transmission through bluetooth low energy technology. Before the first electronic device and the second electronic device perform data transmission through the low-power consumption Bluetooth technology, the first electronic device and the second electronic device need to establish Bluetooth communication connection. When the first electronic device and the second electronic device establish Bluetooth communication connection, the first electronic device scans the broadcast channel, so that Bluetooth communication connection is established with the second electronic device based on scanned device information of the second electronic device, and data transmission is further achieved.
The bluetooth core specification protocol supports multi-channel data transmission, i.e. not only broadcasting channels (37, 38 and 39 channels) broadcast a first data packet comprising device information of the second electronic device, but also broadcasting (or transmitting) a second data packet comprising device information of the second electronic device or data to be transmitted via a data channel (0-36 channels or other channels). The first electronic device includes a bluetooth controller, and the bluetooth controller needs to switch between two channels, so as to implement the reception of the first data packet and the second data packet.
In the related art, frequent channel switching of the bluetooth controller of the first electronic device may result in short scanning time of the bluetooth controller in the broadcast channel, thereby affecting the scanning performance of the bluetooth controller in the broadcast channel.
Disclosure of Invention
The embodiment of the application provides a communication method, electronic equipment, device, storage medium and product of a Bluetooth protocol, which can improve the scanning performance of a first broadcast channel through a first Bluetooth controller. The technical scheme is as follows:
in one aspect, a communication method based on a bluetooth protocol is provided, which is executed by a first electronic device, and the method includes:
performing, by the first bluetooth controller, a scan of the first broadcast channel to receive a first data packet from the second electronic device;
maintaining a scan of the first broadcast channel by the first bluetooth controller and performing a scan of a first data channel by a second bluetooth controller to receive a second data packet from the second electronic device based on determining that a preset condition is satisfied;
wherein the second bluetooth controller is different from the first bluetooth controller.
In another aspect, an electronic device is provided that includes a bluetooth module, a first bluetooth controller, and a second bluetooth controller;
The Bluetooth module is configured to:
data communication based on a Bluetooth protocol is performed with one or more other electronic devices;
the first bluetooth controller is configured to:
performing a scan on a first broadcast channel to receive a first data packet from a second electronic device;
maintaining scanning of the first broadcast channel based on determining that a preset condition is met;
the second bluetooth controller is configured to:
based on knowing that the preset condition is met, scanning is performed on a first data channel to receive a second data packet from the second electronic device.
In another aspect, there is provided a communication apparatus of a bluetooth protocol, the apparatus comprising:
the first execution module is used for executing scanning on a first broadcast channel through the first Bluetooth controller so as to receive a first data packet from the second electronic device;
a second execution module for maintaining the scanning of the first broadcast channel by the first bluetooth controller and executing the scanning of the first data channel by the second bluetooth controller to receive the second data packet from the second electronic device based on determining that the preset condition is satisfied; wherein the second bluetooth controller is different from the first bluetooth controller.
In another aspect, an electronic device is provided that includes a processor and a memory; the memory stores at least one program code for execution by the processor to implement the communication method of the bluetooth protocol as described in the above aspects.
In another aspect, a computer readable storage medium is provided, the computer readable storage medium storing at least one program code for execution by a processor to implement a communication method of a bluetooth protocol as described in the above aspect.
In another aspect, a computer program product is provided, the computer program product storing at least one program code for execution by a processor to implement a communication method of a bluetooth protocol as described in any one of the above implementations.
In the embodiment of the application, when the first Bluetooth controller performs scanning on the first broadcast channel, the first Bluetooth controller can keep scanning on the first broadcast channel, and the second Bluetooth controller performs scanning on the first data channel under the condition that the preset condition is met; therefore, under the condition that the first electronic equipment can obtain the second data packet sent through the first data channel, the scanning of the first broadcast channel can be kept, the first data packet broadcast by the second electronic equipment through the first broadcast channel is obtained, the condition that the scanning time of the first broadcast channel is short due to the fact that the first Bluetooth controller is switched to the first data channel from the first broadcast channel is avoided, and scanning performance of the first Bluetooth controller on the first broadcast channel is improved.
Drawings
FIG. 1 illustrates a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
fig. 2 illustrates a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
fig. 3 illustrates a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
FIG. 4 illustrates a schematic diagram of a channel scan shown in accordance with an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic diagram of a first electronic device, according to an exemplary embodiment of the present application;
FIG. 6 illustrates a schematic diagram of a first electronic device, according to an exemplary embodiment of the present application;
fig. 7 illustrates a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
fig. 8 is a flowchart illustrating a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
fig. 9 is a flowchart illustrating a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
fig. 10 illustrates a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application;
FIG. 11 illustrates a block diagram of a communication device of the Bluetooth protocol shown in an exemplary embodiment of the present application;
FIG. 12 illustrates a block diagram of an electronic device, according to an exemplary embodiment of the present application;
FIG. 13 illustrates a block diagram of an electronic device, according to an exemplary embodiment of the present application;
fig. 14 is a block diagram showing the structure of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
References herein to "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, the related data related to the present application may be data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, a schematic diagram of an implementation environment of a communication method of a bluetooth protocol according to an exemplary embodiment of the application is shown. In the implementation environment, the implementation environment includes a first electronic device 100 and at least one second electronic device 200; the first electronic device 100 and each second electronic device 200 communicate via a corresponding bluetooth communication connection, respectively. The first electronic device 100 and the second electronic device 200 may be devices applying the bluetooth core specification 5.0 protocol or other bluetooth core specification protocols, and the other bluetooth core specification protocols may be the bluetooth core specification 6.0 protocol, the bluetooth core specification 7.0 protocol, or the like, but are not limited thereto, and the two electronic devices may perform data transmission through the bluetooth low energy technology. The first electronic device 100 and the second electronic device 200 may each be a terminal device or a wearable electronic device, for example, each of the first electronic device 100 and the second electronic device 200 may be at least one of a mobile phone, a tablet computer, a personal computer (Personal Computer, PC), an earphone, a watch, glasses, and the like.
Referring to fig. 2, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown. The execution main body in the embodiment of the application is a first electronic device, and the method comprises the following steps:
step 201: scanning is performed on the first broadcast channel by the first bluetooth controller to receive the first data packet from the second electronic device.
Step 202: based on determining that the preset condition is met, maintaining a scan of the first broadcast channel by the first bluetooth controller and performing a scan of the first data channel by the second bluetooth controller to receive a second data packet from the second electronic device; wherein the second bluetooth controller is different from the first bluetooth controller.
In some embodiments, the preset conditions include:
the second electronic device performs bluetooth broadcasting through the first data channel.
In some embodiments, the preset conditions include:
the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel.
In some embodiments, the first bluetooth controller is independent of the first electronic device.
In some embodiments, the second bluetooth controller is independent of the first electronic device.
In some embodiments, determining that the preset condition is met comprises:
If the first data packet is broadcast by the second electronic device and the first data packet includes auxiliary information, determining that the second electronic device performs bluetooth broadcast through the first data channel to send the second data packet, where the auxiliary information is used to instruct the second electronic device to perform bluetooth broadcast through the first data channel to send the second data packet.
In some embodiments, the auxiliary information includes a channel identification of a target sub-channel and a target time, the target sub-channel being a sub-channel for transmitting the second data packet, the target time being a time for transmitting the second data packet;
performing, by the second bluetooth controller, a scan of the first data channel to receive a second data packet from the second electronic device, comprising:
transmitting the channel identifier and the target time to a second Bluetooth controller;
and instructing the second Bluetooth controller to scan the target sub-channel corresponding to the channel identification at the target time to receive the second data packet from the second electronic device.
In some embodiments, the first bluetooth controller and the second bluetooth controller are electrically connected;
transmitting the channel identification and the target time to a second bluetooth controller, comprising:
and sending the channel identifier and the target time to a second Bluetooth controller through the first Bluetooth controller.
In some embodiments, the first electronic device includes a scheduling module electrically connected to the first bluetooth controller and the second bluetooth controller, respectively;
transmitting the channel identification and the target time to a second bluetooth controller, comprising:
and transmitting the channel identifier and the target time to a second Bluetooth controller through a scheduling module.
In some embodiments, the method further comprises:
based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of the second data channel by the first bluetooth controller to receive a third data packet from the third electronic device.
In some embodiments, the method further comprises:
based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of the bluetooth audio link by the first bluetooth controller to receive audio data from the fourth electronic device.
In some embodiments, the method further comprises:
based on determining that the preset condition is not satisfied, scanning of the first broadcast channel by the first bluetooth controller is maintained, and broadcasting is performed by the second bluetooth controller to broadcast the fourth data packet.
In the embodiment of the application, under the condition that the first Bluetooth controller performs scanning on the first broadcast channel, the first Bluetooth controller can keep scanning on the first broadcast channel, and the second Bluetooth controller performs scanning on the first data channel under the condition that the preset condition is met; therefore, under the condition that the first electronic equipment can obtain the second data packet sent through the first data channel, the scanning of the first broadcast channel can be kept, the first data packet broadcast by the second electronic equipment through the first broadcast channel is obtained, the condition that the scanning time of the first broadcast channel is short due to the fact that the first Bluetooth controller is switched to the first data channel from the first broadcast channel is avoided, and scanning performance of the first Bluetooth controller on the first broadcast channel is improved.
Referring to fig. 3, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown, where an execution subject of the embodiment is a first electronic device. The method comprises the following steps:
step 301: the first electronic device performs scanning of the first broadcast channel via the first bluetooth controller to receive the first data packet from the second electronic device.
In one implementation, the first electronic device includes two bluetooth controllers, a first bluetooth controller and a second bluetooth controller, respectively, the second bluetooth controller being different from the first bluetooth controller, through which the first electronic device can perform scanning of a broadcast channel or a data channel, respectively.
In another implementation manner, the first bluetooth controller and the second bluetooth controller are independent of the first electronic device, so that the first bluetooth controller and the second bluetooth controller can be multiplexed by a plurality of electronic devices respectively, and the utilization rate of the first bluetooth controller and the second bluetooth controller is improved. In another implementation, the first electronic device includes a first bluetooth controller, and the second bluetooth controller is independent of the first electronic device, so that the second bluetooth controller can be reused by multiple electronic devices, thereby improving the utilization rate of the second bluetooth controller. In another implementation, the first electronic device includes a second bluetooth controller, and the first bluetooth controller is independent of the first electronic device, so that the first bluetooth controller can be conveniently multiplexed by a plurality of electronic devices, thereby improving the utilization rate of the first bluetooth controller.
The first broadcast channel is used for broadcasting a first data packet, and the first data packet is used for establishing Bluetooth communication connection between a second electronic device broadcasting the first data packet and the first electronic device. Optionally, the second electronic device broadcasts the first data packet through the first broadcast channel, the first electronic device scans the first broadcast channel to obtain the first data packet broadcast by the second electronic device through the first broadcast channel, the second electronic device establishes a bluetooth communication connection with the first electronic device through the first data packet, and the bluetooth communication connection is used for data transmission between the first electronic device and the second electronic device. The first broadcast channel is a main broadcast channel, and includes at least one channel of a channel 37, a channel 38 and a channel 39, where the channel 37, the channel 38 and the channel 39 are channels with channel frequencies 2402MHz, 2426MHz and 2480MHz respectively. Optionally, the first broadcast channel further includes other channels than channel 37, channel 38, and channel 39; for example, the other channels are channel 57, channel 58, channel 59, or the like, and in the embodiment of the present application, this is not particularly limited.
It should be noted that, the first electronic device may further include a plurality of first bluetooth controllers and a plurality of second bluetooth controllers, and the number of the first bluetooth controllers and the number of the second bluetooth controllers may be set and changed according to the needs, which is not limited in the embodiment of the present application; optionally, the number of the first bluetooth controllers and the number of the second bluetooth controllers are two.
Step 302: the first electronic device maintains a scan of the first broadcast channel by the first bluetooth controller based on determining that the second electronic device is bluetooth broadcast over the first data channel.
The second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet to the first electronic device. The second data packet is used for establishing Bluetooth communication connection between the second electronic device and the first electronic device. The first data channel includes at least one of channels 0-36 for data transmission or broadcasting data packets. Optionally, the first data channel further comprises other channels than 0-36 channels; for example, the other channels are 40-56 channels, etc., and in the embodiment of the present application, this is not particularly limited.
It should be noted that, because the second electronic device can broadcast the second data packet to the first electronic device through the first data channel in an auxiliary manner, and the first data channel and the first broadcast channel are respectively different channels, one bluetooth controller cannot scan the first data channel and the first broadcast channel at the same time, and after determining that the second electronic device broadcasts the first data channel through the first data channel in the application, the first bluetooth controller keeps scanning the first broadcast channel, so that the first electronic device can be ensured to receive the first data packet broadcast by the second electronic device through the first broadcast channel, and the first electronic device can also be ensured to receive the second data packet broadcast by the second electronic device through the first data channel through the second bluetooth controller scanning the first data channel, thereby ensuring that the first electronic device can completely receive the data packet from the second electronic device.
In some embodiments, the process of determining, by the first electronic device, that the second electronic device is bluetooth broadcast over the first data channel is: if the first data packet is broadcast by the second electronic device and the first data packet includes auxiliary information, the first electronic device determines that the second electronic device performs bluetooth broadcast through the first data channel to send the second data packet.
The first electronic device determines whether the first data packet is broadcast by the second electronic device, if the first data packet is broadcast by the second electronic device, the first electronic device determines whether the first data packet includes auxiliary information, and if the first data packet includes auxiliary information, the first electronic device determines that the second electronic device performs bluetooth broadcast through the first data channel to send the second data packet. The auxiliary information is used for indicating the second electronic equipment to send the second data packet through the first data channel, the auxiliary information comprises a channel identifier of a target sub-channel and target time, the target sub-channel is a sub-channel for sending the second data packet, and the target time is the time for sending the second data packet. Optionally, referring to fig. 4, the first data packet sent by the second electronic device through the first broadcast channel includes auxiliary information corresponding to at least one auxiliary extension indication (auxiliary extended indication, aux_ext_ind) pointing to the first data channel, where the auxiliary information includes an auxiliary link indication (auxiliary CHAIN indication, aux_chan_ind) and an auxiliary synchronization indication (auxiliary synchronous indication, aux_sync_ind) pointing to the channel identifier and the target time of the target sub-channel, respectively. Optionally, the auxiliary information further includes a device name, a device identifier, and other coding information of the device of the second electronic device customized by the manufacturer, which is not specifically limited in the embodiment of the present application. In one implementation manner, the first electronic device can accurately find the second electronic device based on the device name, the device identifier, other coding information of the device and the like of the second electronic device included in the auxiliary information, so as to further realize bluetooth communication with the second electronic device.
It should be noted that, when the second electronic device broadcasts the second data packet to the first electronic device through the first data channel, the first data packet broadcast by the first broadcast channel carries the indication information of the second data packet sent by the second electronic device through the first data channel; in the embodiment of the application, the accuracy of determining whether the second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet can be improved by determining whether the first data packet is broadcasted by the second electronic device and determining whether the first data packet carries the auxiliary information indicating the first data channel.
Step 303: the first electronic device sends the channel identification and the target time to the second bluetooth controller.
In some embodiments, the number of second bluetooth controllers is at least two, and the second bluetooth controller in this step is one of the at least two bluetooth controllers included in the first electronic device or one of the at least two bluetooth controllers independent of the first electronic device; the first electronic device determines a target Bluetooth controller of the at least two second Bluetooth controllers, and sends the channel identification and the target time to the target Bluetooth controller. Optionally, the target bluetooth controller is a bluetooth controller for scanning a data channel among the plurality of second bluetooth controllers, or a bluetooth controller with the least number of scans performed among the plurality of second bluetooth controllers, or a bluetooth controller with the longest current time interval for performing a scan among the plurality of second bluetooth controllers, but is not limited thereto.
In some embodiments, the first bluetooth controller and the second bluetooth controller are electrically connected; the first electronic device sends the channel identifier and the target time to the second Bluetooth controller through the first Bluetooth controller.
Optionally, referring to fig. 5, the first bluetooth controller is electrically connected to the bluetooth module and the second bluetooth controller through a first interface and a second interface, respectively. The Bluetooth module is a Bluetooth host part and is used for controlling the first Bluetooth controller and the second Bluetooth controller; optionally, the first interface is a host controller interface (Host Controller Interface, HCI), and the bluetooth module is connected to the first bluetooth controller through the HCI interface. The Bluetooth module can send an instruction to the first Bluetooth controller through the first interface, and further scanning of the first broadcasting channel through the first Bluetooth controller is achieved. Optionally, the bluetooth module further instructs the second bluetooth controller to perform the scanning through the first bluetooth controller.
In one implementation, the first bluetooth controller performs scanning on a first broadcast channel to obtain a first data packet broadcast by the second electronic device through the first broadcast channel, obtains a channel identifier and a target time of a target sub-channel based on auxiliary information included in the first data packet, and sends the channel identifier and the target time to the second bluetooth controller. Optionally, the first bluetooth controller sends a scan instruction to the second bluetooth controller, the scan instruction carrying a channel identifier and a target time, and the scan instruction being for instructing the second bluetooth controller to perform a scan on the first data channel. In the embodiment of the application, the first Bluetooth controller is connected with the second Bluetooth controller, so that the first Bluetooth controller can directly send the channel identifier and the target time obtained by scanning the first broadcast channel to the second Bluetooth controller, and further the efficiency of transmitting the channel identifier and the target time is improved, and the efficiency of executing scanning by the subsequent second Bluetooth controller can be improved.
In another implementation manner, the first bluetooth controller sends a first data packet obtained by scanning the first broadcast channel to the bluetooth module, after the bluetooth module determines the auxiliary information in the first data packet, the bluetooth module sends a scanning instruction to the first bluetooth controller, the scanning instruction carries a channel identifier and a target time, and the scanning instruction is used for instructing the second bluetooth controller to execute scanning on the first data channel, and the first bluetooth controller forwards the scanning instruction to the second bluetooth controller. In the implementation mode, the auxiliary information in the first data packet is determined through the Bluetooth module, the scanning instruction is synthesized through the Bluetooth module, and the auxiliary information is forwarded only through the first Bluetooth controller, so that the task amount of the first Bluetooth controller is reduced, and the first Bluetooth controller can be guaranteed to stably and efficiently execute channel scanning.
In some embodiments, the first electronic device includes a scheduling module electrically connected to the first bluetooth controller and the second bluetooth controller, respectively. The first electronic device sends the channel identifier and the target time to the second Bluetooth controller through the scheduling module. Alternatively, referring to fig. 6, the scheduling module is connected with the bluetooth module through a third interface and connected with the first bluetooth controller and the second bluetooth controller through a fourth interface and a fifth interface, respectively. The Bluetooth module sends instructions to the first Bluetooth controller and the second Bluetooth controller respectively through the scheduling module, namely, the first Bluetooth controller or the second Bluetooth controller is scheduled through the scheduling module, and channel scanning is achieved through the first Bluetooth controller or the second Bluetooth controller. The interface types of the third interface, the fourth interface and the fifth interface may be set and changed according to needs, and in the embodiment of the present application, the interface types are not specifically limited.
In one implementation, the first bluetooth controller sends a first data packet obtained by scanning a first broadcast channel to the scheduling module, and after the scheduling module determines auxiliary information in the first data packet, the scheduling module sends a scanning instruction to the second bluetooth controller, where the scanning instruction carries a channel identifier and a target time, and the scanning instruction is used to instruct the second bluetooth controller to perform scanning on the first data channel. In the implementation mode, the scheduling module sends the channel identifier and the target time to the second Bluetooth controller, and the second Bluetooth controller can be instructed to execute scanning on the first data channel, so that the scheduling of the second Bluetooth controller is realized, the task amount of the first Bluetooth controller is reduced, and the first Bluetooth controller can be ensured to execute channel scanning stably and efficiently.
In another implementation manner, the first bluetooth controller sends a first data packet obtained by scanning a first broadcast channel to the bluetooth module through the scheduling module, and after the bluetooth module determines auxiliary information in the first data packet, the bluetooth module sends a scanning instruction to the second bluetooth controller through the scheduling module; and then can effectively realize controlling the second bluetooth controller to carry out the channel scanning through scheduling module for first bluetooth controller and second bluetooth controller can cooperate to carry out the scanning.
Step 304: the first electronic device instructs the second bluetooth controller to scan a target sub-channel corresponding to the channel identification at the target time to receive the second data packet from the second electronic device.
In some embodiments, the first electronic device sends a scan instruction carrying the channel identification and the target time to the second bluetooth controller, the scan instruction further for instructing the second bluetooth controller to scan the first data channel; specifically, the scanning instruction is used for instructing the second bluetooth controller to scan the target sub-channel corresponding to the channel identifier at the target time. Wherein the target sub-channel is at least one of the first data channels 0-36. Optionally, the target sub-channel can also be other channels than the 0-36 channel for transmitting the second data packet; for example, the other channel is at least one channel among 40-56 channels, which is not particularly limited in the embodiment of the present application. Optionally, the channel identifier is a channel sequence number or a channel frequency, etc.; in the embodiment of the present application, the channel identifier is not particularly limited.
In one implementation, after the first electronic device instructs the second bluetooth controller to receive the channel identifier and the target time, a scanning action is formulated based on the channel identifier and the target time, and the second bluetooth controller performs scanning based on the scanning action, that is, scans a target sub-channel corresponding to the channel identifier at the target time. The first electronic device scans the first data channel through the second Bluetooth controller to obtain a second data packet sent by the second electronic device through the first data channel.
Optionally, the first electronic device, the second electronic device and the like provided by the embodiment of the application are electronic devices applying the bluetooth low energy technology, and are very important for bluetooth broadcasting and scanning of the electronic devices applying the bluetooth low energy technology, so that basic guarantee is provided for device discovery and quick connection between the electronic devices. And along with the rapid development of the low-power consumption Bluetooth audio technology applied to the electronic equipment, the application of the method for broadcasting the data packets through the data channel is wider and wider, and the method provided by the embodiment of the application can support the broadcasting of the data packets through the data channel to the maximum extent under the condition of ensuring the basic Bluetooth broadcasting and scanning performance of the electronic equipment, so that the overall performance of the electronic equipment for broadcasting and scanning the data packets through the data channel can be improved.
With continued reference to fig. 4, fig. 4 is a schematic diagram of the first electronic device scanning a first broadcast channel and a first data channel through a first bluetooth controller and a second bluetooth controller, respectively; the first Bluetooth controller always keeps scanning the first broadcast channel, and the second Bluetooth controller scans the first data channel. The first electronic device performs periodic scanning on a broadcast channel, that is, scans the first broadcast channel once every preset time interval to generate a scanning window. In the figure, it can be seen that even if the second electronic device broadcasts the second data packet to the first electronic device through the first data channel, the first electronic device needs to acquire the auxiliary information pointing to the first data channel from the first data packet broadcast through the first broadcast channel, so that ensuring the scanning duration of the first broadcast channel is very important for acquiring the complete data packet.
In the embodiment of the application, the first electronic device can keep the first Bluetooth controller to scan the first broadcast channel under the condition that the second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet, and can also keep the first broadcast channel to obtain the first data packet broadcast through the first broadcast channel under the condition that the first electronic device can obtain the second data packet sent through the first data channel by performing scanning through the second Bluetooth controller, so that the condition that the first Bluetooth controller switches from the first broadcast channel to other channels to cause the first broadcast channel to have short scanning time is avoided, and the scanning performance of the first Bluetooth controller to the first broadcast channel is improved.
Referring to fig. 7, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown, where an execution subject of the embodiment is a first electronic device. The method comprises the following steps:
step 701: the first electronic device performs scanning of the first broadcast channel via the first bluetooth controller to receive the first data packet from the second electronic device.
This step is similar to step 301 and will not be described again here.
Step 702: the first electronic device maintains a scan of the first broadcast channel by the first bluetooth controller based on determining that the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel, and performs a scan of the first data channel by the second bluetooth controller to receive second data packets from the second electronic device.
Optionally, the process of establishing the bluetooth communication connection between the first electronic device and the second electronic device is: after the first electronic device performs scanning on the first broadcast channel through the first Bluetooth controller to receive a first data packet of the second electronic device, the first electronic device establishes Bluetooth communication connection with the second electronic device based on the first data packet, and after the first electronic device establishes Bluetooth communication connection with the second electronic device, data transmission between the first electronic device and the second electronic device is performed by using the first data channel.
In the embodiment of the application, because the first electronic device uses the two Bluetooth controllers, when the second electronic device and the first electronic device are connected in a Bluetooth communication mode to use the first data channel, the second Bluetooth controller can receive the second data packet from the second electronic device, and the first Bluetooth controller can keep scanning the first broadcast channel to receive the first data packet broadcasted by the second electronic device through the first broadcast channel, so that the condition that the scanning time of the first broadcast channel is short due to the fact that the first Bluetooth controller is switched from the first broadcast channel to other channels is avoided, and the scanning performance of the first Bluetooth controller on the first broadcast channel is further improved.
Referring to fig. 8, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown, where an execution subject of the embodiment is a first electronic device. The method comprises the following steps:
step 801: the first electronic device performs scanning of the first broadcast channel via the first bluetooth controller to receive the first data packet from the second electronic device.
Step 801 is the same as step 301 and will not be described again.
Step 802: the first electronic device maintains a scan of the first broadcast channel by the first bluetooth controller and performs a scan of the first data channel by the second bluetooth controller to receive second data packets from the second electronic device based on determining that the preset condition is satisfied.
If the preset condition is that the second electronic device performs bluetooth broadcasting through the first data channel, step 802 performs scanning on the first data channel through the second bluetooth controller to receive the second data packet from the second electronic device, which is the same as steps 302-304, and will not be described herein. If the preset condition is that the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel, step 802 is similar to step 702, and will not be repeated here.
Step 803: the first electronic device performs a scan on the second data channel to receive a third data packet from the third electronic device via the first bluetooth controller based on determining that the second bluetooth controller is performing a scan on the first data channel to receive the second data packet.
The second data channel is used for broadcasting a third data packet, and the third data packet is used for establishing Bluetooth communication connection between the third electronic device and the first electronic device. The second data channel includes at least one of 0-36 channels for data transmission or broadcasting data packets. Optionally, the second data channel further comprises other channels than 0-36 channels; for example, the other channels are 40-56 channels, etc., and in the embodiment of the present application, this is not particularly limited. Optionally, the channels of the first data channel and the second data channel are the same or different; for example, the first data channel is channel 36 and the second data channel is channel 36, or the first data channel is channel 36 and the second data channel is channel 35, which is not particularly limited in the present application.
In some embodiments, before the first electronic device performs step 803, it is determined whether the third electronic device performs bluetooth broadcasting over the second data channel to transmit the third data packet. In one implementation, if the first electronic device performs scanning on the first broadcast channel through the first bluetooth controller to receive the first data packet from the second electronic device, and scans for a data packet including indication information that the third electronic device broadcasts the third data packet through the second data channel, the first electronic device determines that the third electronic device performs bluetooth broadcasting on the second data channel to transmit the third data packet, and the first electronic device performs step 803.
In the embodiment of the application, when two electronic devices broadcast data packets through a data channel, the first electronic device controls the scanning channel of the first Bluetooth controller to switch to the data channel and also scans the data channel, namely, the first electronic device respectively scans the data channels corresponding to the two electronic devices through the first Bluetooth controller and the second Bluetooth controller to obtain second data packets which are respectively sent by the two electronic devices through the data channel. Therefore, the first electronic device scans the data channels through the two Bluetooth controllers respectively, and further the efficiency of acquiring data packets broadcast by other electronic devices through the data channels can be improved.
Referring to fig. 9, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown, where an execution subject of the embodiment is a first electronic device. The method comprises the following steps:
step 901: the first electronic device performs scanning of the first broadcast channel via the first bluetooth controller to receive the first data packet from the second electronic device.
This step is similar to step 301 and will not be described again here.
Step 902: the first electronic device maintains a scan of the first broadcast channel by the first bluetooth controller and performs a scan of the first data channel by the second bluetooth controller to receive second data packets from the second electronic device based on determining that the preset condition is satisfied.
This step is similar to step 802 and will not be described again.
Step 903: the first electronic device performs a scan of the bluetooth audio link to receive audio data from the fourth electronic device via the first bluetooth controller based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet.
The Bluetooth audio link is a link established between the fourth electronic device and the first electronic device and used for transmitting audio data. Optionally, the bluetooth audio link is a data channel, and the fourth electronic device sends the second data packet through the data channel, where the data channel includes at least one of channels 0-36 for data transmission or broadcasting the data packet. Optionally, the data channels further include other channels than 0-36 channels; for example, the other channels are 40-56 channels, etc., and in the embodiment of the present application, this is not particularly limited.
In some embodiments, before the first electronic device performs step 903, it is determined whether the fourth electronic device is transmitting audio data over a bluetooth audio link. In one implementation, if the first electronic device determines that the fourth electronic device establishes a bluetooth audio link with the first electronic device, the first electronic device determines that the fourth electronic device transmits audio data through the bluetooth audio link, and the first electronic device performs step 903 to receive the audio data from the fourth electronic device.
In one implementation manner, if the first electronic device scans to obtain the fifth data packet of the fourth electronic device through the first bluetooth controller, a bluetooth audio link is established with the fourth electronic device, and data transmission is performed through the first bluetooth controller and the fourth electronic device through the established bluetooth audio link, so that the first electronic device receives the second data packet through the second bluetooth controller, and the first electronic device can perform audio data transmission in a frequency division multiplexing mode while receiving the second data packet.
In the embodiment of the application, under the condition that the first electronic device can scan the first data channel through the second Bluetooth controller to receive the second data packet from the second electronic device, the first Bluetooth controller can also scan the Bluetooth audio link to receive the audio data sent by the fourth electronic device through the Bluetooth audio link, so that the first electronic device can receive the second data packet from the second electronic device and the audio data from the fourth electronic device through the two Bluetooth controllers respectively, and the efficiency of receiving the data by the first electronic device is further improved.
Referring to fig. 10, a flowchart of a communication method of a bluetooth protocol according to an exemplary embodiment of the present application is shown, where an execution subject of the embodiment is a first electronic device. The method comprises the following steps:
Step 1001: the first electronic device performs scanning of the first broadcast channel via the first bluetooth controller to receive the first data packet from the second electronic device.
This step is similar to step 301 and will not be described again here.
Step 1002: the first electronic device maintains scanning of the first broadcast channel by the first bluetooth controller and performs broadcasting to broadcast the fourth data packet by the second bluetooth controller based on determining that the preset condition is not satisfied.
The preset conditions comprise that the second electronic equipment performs Bluetooth broadcasting through the first data channel, and the second electronic equipment establishes Bluetooth communication connection with the first electronic equipment so as to use at least one of the first data channel, and the first electronic equipment determines that the preset conditions are not met in response to the fact that the two preset conditions are not met.
The fourth data packet is used for establishing Bluetooth communication connection between the electronic device receiving the fourth data packet and the first electronic device. Optionally, the first electronic device broadcasts the fourth data packet through a broadcast channel or a data channel, which is not particularly limited in the present application.
In the embodiment of the application, as the first electronic equipment can broadcast the data packet through the second Bluetooth controller when the first Bluetooth controller is used for scanning the first broadcast channel, when the first electronic equipment can keep scanning the first broadcast channel, bluetooth communication connection is established with other electronic equipment through Bluetooth broadcasting, so that the condition that the scanning time of the first Bluetooth controller for the first broadcast channel is short due to the fact that the first Bluetooth controller is used for switching the scanning of the first broadcast channel to the broadcasting is avoided, and the scanning performance of the first Bluetooth controller for the first broadcast channel is improved.
In some embodiments, the number of bluetooth controllers corresponding to the first electronic device is three, and each of the three bluetooth controllers may be a bluetooth controller included in the first electronic device or a bluetooth controller independent of the first electronic device. The first electronic device performs scanning for the first broadcast channel through the first bluetooth controller. Optionally, if the second electronic device performs bluetooth broadcasting through the first data channel to send the second data packet and the third electronic device performs bluetooth broadcasting through the second data channel to send the third data packet, the first electronic device maintains the scanning of the first broadcast channel by the first bluetooth controller, performs scanning of the first data channel by the second bluetooth controller, and performs scanning of the second data channel by the third bluetooth controller. Optionally, if the second electronic device performs bluetooth broadcasting through the first data channel to send the second data packet and the fourth electronic device sends the audio data through the bluetooth audio link, the first electronic device keeps the first bluetooth controller scanning the first broadcasting channel, performs scanning through the second bluetooth controller on the first data channel, and scans the bluetooth audio link through the third bluetooth controller to perform audio data transmission with the fourth electronic device. Optionally, if the second electronic device performs bluetooth broadcasting through the second broadcast channel and the third electronic device performs bluetooth broadcasting through the third broadcast channel, the first electronic device maintains the scanning of the first broadcast channel by the first bluetooth controller, performs scanning of the second broadcast channel by the second bluetooth controller, and performs scanning of the third broadcast channel by the third bluetooth controller.
In some embodiments, the number of bluetooth controllers corresponding to the first electronic device is four, and each of the four bluetooth controllers may be a bluetooth controller included in the first electronic device or a bluetooth controller independent of the first electronic device. The first electronic device performs scanning for the first broadcast channel through the first bluetooth controller. Optionally, if the second electronic device performs bluetooth broadcasting through the first data channel to send the second data packet, and the third electronic device performs bluetooth broadcasting through the second data channel to send the third data packet, and the fourth electronic device sends the audio data through the bluetooth audio link, the first electronic device maintains the scanning of the first broadcast channel by the first bluetooth controller, performs scanning of the first data channel by the second bluetooth controller, performs scanning of the second data channel by the third bluetooth controller, and performs scanning of the bluetooth audio link by the fourth bluetooth controller. Optionally, if the second electronic device performs bluetooth broadcasting through the first data channel to send the second data packet, and the third electronic device broadcasts the second data packet through the second broadcasting channel, the first bluetooth controller keeps scanning the first broadcasting channel, performs scanning on the first data channel through the second bluetooth controller, performs scanning on the second broadcasting channel through the third bluetooth controller, and performs bluetooth broadcasting through the fourth bluetooth controller.
It should be noted that the foregoing is merely an alternative embodiment of the present application, and is not intended to limit the present application, and the number of bluetooth controllers and the tasks performed by each bluetooth controller may be set and changed as needed.
Referring to fig. 11, which is a block diagram illustrating a communication apparatus of a bluetooth protocol according to an exemplary embodiment of the present application, the apparatus includes:
a first executing module 1101, configured to execute, by using a first bluetooth controller, scanning a first broadcast channel to receive a first data packet from a second electronic device;
a second execution module 1102, configured to maintain scanning of the first broadcast channel by the first bluetooth controller and execute scanning of the first data channel by the second bluetooth controller to receive a second data packet from the second electronic device based on determining that the preset condition is satisfied; wherein the second bluetooth controller is different from the first bluetooth controller.
In some embodiments, the preset conditions include:
the second electronic device performs bluetooth broadcasting through the first data channel.
In some embodiments, the preset conditions include:
the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel.
In some embodiments, the first bluetooth controller is independent of the first electronic device.
In some embodiments, the second bluetooth controller is independent of the first electronic device.
In some embodiments, the apparatus further comprises:
and the determining module is configured to determine that the second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet if the first data packet is broadcasted by the second electronic device and the first data packet comprises auxiliary information, wherein the auxiliary information is used for indicating the second electronic device to perform Bluetooth broadcasting through the first data channel to send the second data packet.
In some embodiments, the auxiliary information includes a channel identification of a target sub-channel and a target time, the target sub-channel being a sub-channel for transmitting the second data packet, the target time being a time for transmitting the second data packet;
a second execution module 1102 configured to send the channel identification and the target time to a second bluetooth controller; and instructing the second Bluetooth controller to scan the target sub-channel corresponding to the channel identification at the target time to receive the second data packet from the second electronic device.
In some embodiments, the first bluetooth controller and the second bluetooth controller are electrically connected;
The second execution module 1102 is configured to send, via the first bluetooth controller, the channel identification and the target time to the second bluetooth controller.
In some embodiments, the first electronic device includes a scheduling module electrically connected to the first bluetooth controller and the second bluetooth controller, respectively;
the second execution module 1102 is configured to send, via the scheduling module, the channel identification and the target time to the second bluetooth controller.
In some embodiments, the apparatus further comprises:
and a third execution module configured to, based on determining that the second bluetooth controller is executing a scan on the first data channel to receive the second data packet, execute a scan on the second data channel by the first bluetooth controller to receive a third data packet from the third electronic device.
In some embodiments, the apparatus further comprises:
and a fourth execution module configured to perform a scan of the bluetooth audio link by the first bluetooth controller to receive audio data from the fourth electronic device based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet.
In some embodiments, the apparatus further comprises:
and a fifth execution module configured to maintain scanning of the first broadcast channel by the first bluetooth controller and to perform broadcasting by the second bluetooth controller to broadcast the fourth data packet based on the determination that the preset condition is not satisfied.
Referring to fig. 12, a block diagram of an electronic device according to an exemplary embodiment of the present application is shown, the electronic device including a bluetooth module, a first bluetooth controller, and a second bluetooth controller; the Bluetooth module is configured to: data communication based on a Bluetooth protocol is performed with one or more other electronic devices; the first bluetooth controller is configured to: performing a scan on a first broadcast channel to receive a first data packet from a second electronic device; maintaining scanning of the first broadcast channel based on determining that the preset condition is satisfied; the second bluetooth controller is configured to: based on knowing that the preset condition is met, a scan is performed on the first data channel to receive a second data packet from the second electronic device.
In some embodiments, the preset conditions include:
the second electronic device performs bluetooth broadcasting through the first data channel.
In some embodiments, the preset conditions include:
the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel.
In some embodiments, the first bluetooth controller is independent of the first electronic device.
In some embodiments, the second bluetooth controller is independent of the first electronic device.
In some embodiments, the bluetooth module is further configured to: if the first data packet is broadcast by the second electronic device and the first data packet includes auxiliary information, determining that the second electronic device performs bluetooth broadcast through the first data channel to send the second data packet, where the auxiliary information is used to instruct the second electronic device to perform bluetooth broadcast through the first data channel to send the second data packet.
In some embodiments, the auxiliary information includes a channel identification of a target sub-channel and a target time, the target sub-channel being a sub-channel for transmitting the second data packet, the target time being a time for transmitting the second data packet; bluetooth module, still configured to: transmitting the channel identifier and the target time to a second Bluetooth controller; and instructing the second Bluetooth controller to scan the target sub-channel corresponding to the channel identification at the target time to receive the second data packet from the second electronic device.
In some embodiments, the first bluetooth controller and the second bluetooth controller are electrically connected; the first bluetooth controller is further configured to: the channel identification and the target time are sent to a second bluetooth controller.
Referring to fig. 13, a block diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device includes a bluetooth module, a first bluetooth controller, a second bluetooth controller, and a scheduling module, where the scheduling module is electrically connected to the bluetooth module, the first bluetooth controller, and the second bluetooth controller, respectively; a scheduling module configured to: the channel identification and the target time are sent to a second bluetooth controller.
In some embodiments, the bluetooth module is further configured to: based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of the second data channel by the first bluetooth controller to receive a third data packet from the third electronic device.
In some embodiments, the bluetooth module is further configured to: based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of the bluetooth audio link by the first bluetooth controller to receive audio data from the fourth electronic device.
In some embodiments, the bluetooth module is further configured to: based on determining that the preset condition is not satisfied, scanning of the first broadcast channel by the first bluetooth controller is maintained, and broadcasting is performed by the second bluetooth controller to broadcast the fourth data packet.
In the embodiment of the application, the first Bluetooth controller and the second Bluetooth controller are controllers applying the Bluetooth low energy technology, and the first Bluetooth controller and the second Bluetooth controller cooperate to perform scanning work, so that the scanning performance of the electronic equipment applying the Bluetooth low energy technology on a data channel is improved through the control of the first Bluetooth controller and the second Bluetooth.
In the embodiment of the application, the electronic equipment comprises a first Bluetooth controller and a second Bluetooth controller, when the electronic equipment scans a first broadcast channel through the first Bluetooth controller, the electronic equipment can keep the first Bluetooth controller to scan the first broadcast channel and perform scanning on a first data channel through the second Bluetooth controller under the condition that a preset condition is met; therefore, under the condition that the first electronic equipment can obtain the second data packet sent through the first data channel, the scanning of the first broadcast channel can be kept, the first data packet broadcast by the second electronic equipment through the first broadcast channel is obtained, the condition that the scanning time of the first broadcast channel is short due to the fact that the first Bluetooth controller is switched to the first data channel from the first broadcast channel is avoided, and scanning performance of the first Bluetooth controller on the first broadcast channel is improved.
Referring to fig. 14, a block diagram of an electronic device according to an exemplary embodiment of the present application is shown. The structural block diagram may be a structural block diagram of the first electronic device or a structural block diagram of the second electronic device. The electronic device 1400 includes one or more of the following components: processor 1410, memory 1420, first bluetooth controller 1430, second bluetooth controller 1440, scheduling module 1450, and bluetooth module 1460.
In some embodiments, processor 1410 may include one or more processing cores. The processor 1410, using various interfaces and lines to connect various portions of the overall electronic device 1400, performs various functions of the electronic device 1400 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1420, and invoking data stored in the memory 1420. Alternatively, the processor 1410 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1410 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processing unit (Graphics Processing Unit, GPU), a Neural network processing unit (Neural-network Processing Unit, NPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the NPU is used to implement artificial intelligence (Artificial Intelligence, AI) functionality; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1410, but may be implemented by a single chip.
In some embodiments, memory 1420 includes random access Memory (Random Access Memory, RAM), and may also include Read-Only Memory (ROM). Optionally, the memory 1420 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 1420 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 1420 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data (e.g., audio data, phonebook) created according to the use of the electronic device 1400, and the like.
In some embodiments, the first bluetooth controllers 1430 are at least one, the at least one first bluetooth controller 1430 being configured to scan broadcast channels. The second bluetooth controller 1440 is at least one, and the at least one second bluetooth controller 1440 is configured to scan the first data channel to receive the second data packet from the second electronic device when the electronic device satisfies the preset condition while scanning the broadcast channel through the first bluetooth controller 1430, so as to keep the first bluetooth controller 1430 scanning the broadcast channel. In some embodiments, the scheduling module 1450 is configured to schedule the first bluetooth controller 1430 and the second bluetooth controller 1440. In some embodiments, bluetooth module 1460 is used for bluetooth protocol-based data communication with one or more other electronic devices.
In some embodiments, electronic device 1400 also includes a display screen. The display screen is a display component for displaying a user interface. Optionally, the display screen is a display screen with a touch function, and through the touch function, a user can perform touch operation on the display screen by using any one of a finger and a touch pen. The display screen is typically disposed on a front panel of the electronic device 1400. The display screen may be designed as a full screen, a curved screen, a contoured screen, a double-sided screen, or a folded screen. The display screen can also be designed into a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, and the like, which is not limited in this embodiment.
In addition, those skilled in the art will appreciate that the configuration of the electronic device 1400 illustrated in the above figures does not constitute a limitation of the electronic device 1400, and the electronic device 1400 may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the electronic device 1400 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, wi-Fi) module, a power supply, and the like, which are not described herein.
Embodiments of the present application also provide a computer readable medium storing at least one instruction that is loaded and executed by a processor to implement the communication method of the bluetooth protocol as shown in the above embodiments.
Embodiments of the present application also provide a computer program product storing at least one instruction that is loaded and executed by a processor to implement the communication method of the bluetooth protocol as shown in the above embodiments.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims. It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals related to the present application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of the related data is required to comply with the relevant laws and regulations and standards of the relevant countries and regions.

Claims (27)

1. A method of communication based on a bluetooth protocol, performed by a first electronic device, the method comprising:
performing, by the first bluetooth controller, a scan of the first broadcast channel to receive a first data packet from the second electronic device;
maintaining a scan of the first broadcast channel by the first bluetooth controller and performing a scan of a first data channel by a second bluetooth controller to receive a second data packet from the second electronic device based on determining that a preset condition is satisfied;
Wherein the second bluetooth controller is different from the first bluetooth controller.
2. The method of claim 1, wherein the preset conditions include:
the second electronic device performs Bluetooth broadcasting through the first data channel.
3. The method of claim 1, wherein the preset conditions include:
the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel.
4. A method according to any of claims 1-3, wherein the first bluetooth controller is independent of the first electronic device.
5. A method according to any of claims 1-3, wherein the second bluetooth controller is independent of the first electronic device.
6. The method of claim 2, wherein determining that the preset condition is met comprises:
and if the first data packet is broadcast by the second electronic device and the first data packet comprises auxiliary information, determining that the second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet, wherein the auxiliary information is used for indicating the second electronic device to perform Bluetooth broadcasting through the first data channel to send the second data packet.
7. The method of claim 6, wherein the auxiliary information includes a channel identification of a target sub-channel and a target time, the target sub-channel being a sub-channel on which the second data packet is transmitted, the target time being a time at which the second data packet is transmitted;
the performing, by the second bluetooth controller, a scan of the first data channel to receive a second data packet from the second electronic device, comprising:
transmitting the channel identifier and the target time to the second Bluetooth controller;
and indicating the second Bluetooth controller to scan a target sub-channel corresponding to the channel identifier at the target time to receive the second data packet from the second electronic device.
8. The method of claim 7, wherein the first bluetooth controller and the second bluetooth controller are electrically connected;
the sending the channel identifier and the target time to the second bluetooth controller includes:
and transmitting the channel identifier and the target time to the second Bluetooth controller through the first Bluetooth controller.
9. The method of claim 7, wherein the first electronic device comprises a scheduling module electrically connected to the first bluetooth controller and the second bluetooth controller, respectively;
The sending the channel identifier and the target time to the second bluetooth controller includes:
and transmitting the channel identifier and the target time to the second Bluetooth controller through a scheduling module.
10. The method according to claim 1, wherein the method further comprises:
based on determining that the second bluetooth controller is performing a scan on the first data channel to receive the second data packet, performing a scan on the second data channel by the first bluetooth controller to receive a third data packet from a third electronic device.
11. The method according to claim 1, wherein the method further comprises:
based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of a bluetooth audio link by the first bluetooth controller to receive audio data from a fourth electronic device.
12. The method according to claim 1, wherein the method further comprises:
based on determining that the preset condition is not satisfied, scanning of the first broadcast channel by the first bluetooth controller is maintained and broadcasting is performed by the second bluetooth controller to broadcast a fourth data packet.
13. An electronic device, characterized in that the electronic device comprises a Bluetooth module, a first Bluetooth controller and a second Bluetooth controller;
the Bluetooth module is configured to:
data communication based on a Bluetooth protocol is performed with one or more other electronic devices;
the first bluetooth controller is configured to:
performing a scan on a first broadcast channel to receive a first data packet from a second electronic device;
maintaining scanning of the first broadcast channel based on determining that a preset condition is met;
the second bluetooth controller is configured to:
based on knowing that the preset condition is met, scanning is performed on a first data channel to receive a second data packet from the second electronic device.
14. The electronic device of claim 13, wherein the preset condition comprises:
the second electronic device performs Bluetooth broadcasting through the first data channel.
15. The electronic device of claim 13, wherein the preset condition comprises:
the second electronic device establishes a bluetooth communication connection with the first electronic device to use the first data channel.
16. The electronic device of any of claims 13-15, wherein the first bluetooth controller is independent of the first electronic device.
17. The electronic device of any of claims 13-15, wherein the second bluetooth controller is independent of the first electronic device.
18. The electronic device of claim 13, wherein the electronic device comprises a memory device,
the bluetooth module is further configured to:
and if the first data packet is broadcast by the second electronic device and the first data packet comprises auxiliary information, determining that the second electronic device performs Bluetooth broadcasting through the first data channel to send the second data packet, wherein the auxiliary information is used for indicating the second electronic device to perform Bluetooth broadcasting through the first data channel to send the second data packet.
19. The electronic device of claim 18, wherein the auxiliary information comprises a channel identification of a target sub-channel and a target time, the target sub-channel being a sub-channel on which the second data packet is transmitted, the target time being a time at which the second data packet is transmitted;
the bluetooth module is further configured to:
transmitting the channel identifier and the target time to the second Bluetooth controller;
and indicating the second Bluetooth controller to scan a target sub-channel corresponding to the channel identifier at the target time to receive the second data packet from the second electronic device.
20. The electronic device of claim 19, wherein the first bluetooth controller and the second bluetooth controller are electrically connected;
the first bluetooth controller is further configured to:
and sending the channel identifier and the target time to the second Bluetooth controller.
21. The electronic device of claim 19, further comprising a scheduling module electrically connected to the bluetooth module, the first bluetooth controller, and the second bluetooth controller, respectively;
the scheduling module is configured to:
and sending the channel identifier and the target time to the second Bluetooth controller.
22. The electronic device of claim 13, wherein the electronic device comprises a memory device,
the bluetooth module is further configured to:
based on determining that the second bluetooth controller is performing a scan on the first data channel to receive the second data packet, performing a scan on the second data channel by the first bluetooth controller to receive a third data packet from a third electronic device.
23. The electronic device of claim 13, wherein the electronic device comprises a memory device,
the bluetooth module is further configured to:
Based on determining that the second bluetooth controller is performing a scan of the first data channel to receive the second data packet, performing a scan of a bluetooth audio link by the first bluetooth controller to receive audio data from a fourth electronic device.
24. The electronic device of claim 13, wherein the electronic device comprises a memory device,
the bluetooth module is further configured to:
based on determining that the preset condition is not satisfied, scanning of the first broadcast channel by the first bluetooth controller is maintained and broadcasting is performed by the second bluetooth controller to broadcast a fourth data packet.
25. A communication device of the bluetooth protocol, the device comprising:
the first execution module is used for executing scanning on a first broadcast channel through the first Bluetooth controller so as to receive a first data packet from the second electronic device;
a second execution module for maintaining the scanning of the first broadcast channel by the first bluetooth controller and executing the scanning of the first data channel by the second bluetooth controller to receive the second data packet from the second electronic device based on determining that the preset condition is satisfied; wherein the second bluetooth controller is different from the first bluetooth controller.
26. A computer readable storage medium storing at least one program code for execution by a processor of an electronic device to implement a method of communication of the bluetooth protocol of any one of claims 1 to 12.
27. A computer program product, characterized in that it stores at least one program code for execution by a processor of an electronic device for implementing the communication method of the bluetooth protocol according to any one of claims 1 to 12.
CN202210201987.8A 2022-03-03 2022-03-03 Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product Pending CN116744264A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210201987.8A CN116744264A (en) 2022-03-03 2022-03-03 Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product
PCT/CN2022/143502 WO2023165246A1 (en) 2022-03-03 2022-12-29 Bluetooth protocol communication method, electronic device, apparatus, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210201987.8A CN116744264A (en) 2022-03-03 2022-03-03 Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product

Publications (1)

Publication Number Publication Date
CN116744264A true CN116744264A (en) 2023-09-12

Family

ID=87883036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210201987.8A Pending CN116744264A (en) 2022-03-03 2022-03-03 Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product

Country Status (2)

Country Link
CN (1) CN116744264A (en)
WO (1) WO2023165246A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395615A (en) * 2023-12-12 2024-01-12 辽宁科大物联科技有限公司 Device and method for bluetooth stable broadcasting in vehicle system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150289124A1 (en) * 2014-04-08 2015-10-08 Nokia Corporation Method, apparatus, and computer program product for seamless switching of communication connection
CN104717603B (en) * 2014-12-25 2018-05-08 惠州Tcl移动通信有限公司 A kind of Bluetooth Low Energy networking simultaneously supports the method and system of convenient interconnection
CN106412804B (en) * 2016-10-08 2022-09-20 奥康有限公司 Bidirectional communication system for logistics tracking
CN107197445B (en) * 2017-05-16 2019-12-10 北京千丁互联科技有限公司 Memory, Bluetooth intelligent terminal, distance calculation method and door opening control method
WO2020248924A1 (en) * 2019-06-10 2020-12-17 海信视像科技股份有限公司 Display device, and method for scanning external bluetooth device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395615A (en) * 2023-12-12 2024-01-12 辽宁科大物联科技有限公司 Device and method for bluetooth stable broadcasting in vehicle system

Also Published As

Publication number Publication date
WO2023165246A1 (en) 2023-09-07

Similar Documents

Publication Publication Date Title
CN111757410A (en) Receiving method, sending method, terminal and base station of downlink channel
CN110650405A (en) Wireless earphone control system, method, device and storage medium
CN109450851B (en) Device connection method, electronic device, and computer-readable medium
CN111817831B (en) Transmission method and communication equipment
CN110830970B (en) Audio transmission method, device, equipment and storage medium between Bluetooth equipment
RU2765682C1 (en) Detection method, subscriber equipment and network device
CN108377157B (en) Control method and device of Wi-Fi antenna
CN112954796B (en) Transmitting method, receiving method, network equipment and terminal
CN111836266B (en) SRS sending method, SRS configuration method, terminal and network equipment
CN116744264A (en) Communication method of Bluetooth protocol, electronic equipment, device, storage medium and product
CN111615197B (en) Resource adjustment method and equipment
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN110890942A (en) Side link information feedback method and terminal
KR101222132B1 (en) method and system of one-to-one and group communication simultaneously in wireless IP network
CN110475367B (en) Transmission method, mobile communication terminal and network side equipment
JP2004312721A (en) Portable telephone set and its communication system selection method
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device
CN115278624A (en) Information updating method and device, audio sharing method and system and electronic equipment
CN113038416B (en) Channel measurement reference signal transmission method and terminal
CN115442778A (en) Method and device for establishing Bluetooth link, bluetooth chip and equipment
CN111491278B (en) Method and terminal for playing audio through Bluetooth device
CN110365454B (en) Carrier selection method, terminal and network equipment
CN113271385A (en) Call forwarding method
KR100383593B1 (en) Remote controlling method of wireless communication terminal

Legal Events

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