CN113906773A - Channel selection method and device of low-power-consumption Bluetooth device - Google Patents

Channel selection method and device of low-power-consumption Bluetooth device Download PDF

Info

Publication number
CN113906773A
CN113906773A CN201980097046.0A CN201980097046A CN113906773A CN 113906773 A CN113906773 A CN 113906773A CN 201980097046 A CN201980097046 A CN 201980097046A CN 113906773 A CN113906773 A CN 113906773A
Authority
CN
China
Prior art keywords
bluetooth device
bluetooth
slave
master
request message
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.)
Granted
Application number
CN201980097046.0A
Other languages
Chinese (zh)
Other versions
CN113906773B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN113906773A publication Critical patent/CN113906773A/en
Application granted granted Critical
Publication of CN113906773B publication Critical patent/CN113906773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a channel selection method and device for a Bluetooth low energy device, wherein a master Bluetooth device receives first state information sent by a slave Bluetooth device to a plurality of Bluetooth low energy channels, each first state information is used for indicating whether a corresponding BLE channel is available to the slave Bluetooth device, the master Bluetooth device determines second state information of the plurality of BLE channels according to the first state information and channel quality information of the plurality of BLE channels detected by the master Bluetooth device, and each second state information is used for indicating whether the corresponding BLE channel is available to the master Bluetooth device and the slave Bluetooth device. In the method, the master Bluetooth device determines the available BLE channel by combining the channel quality of the BLE channel reported by the slave Bluetooth device and the channel quality information detected by the master Bluetooth device, and the difference of the channel environments of the master Bluetooth device and the slave Bluetooth device is considered, so that the determined channel state is more accurate, and the communication performance between the Bluetooth devices is improved.

Description

Channel selection method and device of low-power-consumption Bluetooth device Technical Field
The present disclosure relates to communications technologies, and in particular, to a method and an apparatus for selecting a channel of a Bluetooth Low Energy (BLE) device.
Background
Bluetooth technology is divided into bluetooth low energy and classic bluetooth (also called as traditional bluetooth), and bluetooth low energy is widely applied to various industries, such as smart homes, wearable devices, and small electronic devices (e.g., mice, earphones, etc.), due to its advantages of low power consumption and long standby time.
In the prior art, in order to improve the anti-interference capability of the low power consumption bluetooth devices in the bluetooth channels, available bluetooth channels are selected among 37 bluetooth channels through an Adaptive Frequency Hopping (AFH) mechanism between the bluetooth devices. However, the current bluetooth Protocol clearly specifies that, when two bluetooth devices (one of which is a master bluetooth device and the other is a slave bluetooth device) that establish a bluetooth low energy connection select an available channel, the master bluetooth device can only send an available channel list to the slave bluetooth device through a Logical Link Control Protocol (LLCP) message, and the slave bluetooth device unconditionally receives the available channel list and performs data transmission according to the available channel list.
However, the interference received by the master bluetooth device and the slave bluetooth device may be greatly different, and the available channel determined by the master device according to the interference detected by the master device is not accurate, thereby affecting the communication performance between the bluetooth devices.
Disclosure of Invention
The application provides a channel selection method and a channel selection device for low-power-consumption Bluetooth equipment, which can improve the communication performance between the Bluetooth equipment.
A first aspect of the present application provides a channel selection method for a bluetooth low energy device, including:
the method comprises the steps that a master Bluetooth device receives a channel quality reporting message sent by a slave Bluetooth device, wherein the channel quality reporting message comprises first state information of a plurality of low-power-consumption Bluetooth channels detected by the slave Bluetooth device, and each piece of first state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel is available for the slave Bluetooth device;
the master Bluetooth device determines second state information of the plurality of Bluetooth low energy channels according to the first state information and the channel quality information of the plurality of Bluetooth low energy channels detected by the master Bluetooth device, wherein each piece of second state information is used for indicating whether the corresponding Bluetooth low energy channel is available for the master Bluetooth device and the slave Bluetooth device;
and the master Bluetooth device selects an available channel from the plurality of low-power Bluetooth channels to communicate with the slave Bluetooth device according to the second state information.
In the method, when determining the available channel, the master bluetooth device considers the difference of the channel environments of the master bluetooth device and the slave bluetooth device by combining the channel quality of the BLE channel reported by the slave bluetooth device and the available BLE channel determined by the channel quality information detected by the master bluetooth device, so that the determined channel state is more accurate, and the communication performance between the bluetooth devices is improved.
In an exemplary manner, the method further comprises: the master bluetooth device sends the second status information to the slave bluetooth device to instruct the slave bluetooth device to select an available channel from the plurality of bluetooth low energy channels to communicate with the master bluetooth device.
In an exemplary manner, the determining, by the master bluetooth device, second state information of the bluetooth low energy channels according to the first state information and the channel quality information of the bluetooth low energy channels detected by the master bluetooth device includes:
and the master Bluetooth device determines second state information of the plurality of low-power Bluetooth channels according to the first state information, the channel quality information of the plurality of low-power Bluetooth devices and the type of the current Bluetooth service.
When determining the available channel, the master Bluetooth device determines the available channel by combining with the type of the current Bluetooth service, so that the determined available channel meets the requirement of the Bluetooth service, and the communication performance between the Bluetooth devices is further improved.
In an exemplary manner, the determining, by the master bluetooth device, second state information of the bluetooth low energy channels according to the first state information, the channel quality information of the bluetooth low energy channels, and the type of the current bluetooth service includes:
the master Bluetooth device determines the channel quality requirement of a low-power Bluetooth channel according to the type of the current Bluetooth service;
the master Bluetooth device determines a candidate Bluetooth low energy channel with channel quality meeting the channel quality requirement from the plurality of Bluetooth low energy channels according to the first state information and the channel quality information of the plurality of Bluetooth low energy channels;
when the number of the candidate Bluetooth low energy channels is larger than the preset number, determining that the channel which is indicated by the first state information and available by the Bluetooth low energy channels is an available Bluetooth low energy channel from the candidate Bluetooth low energy channels;
when the number of the candidate Bluetooth low energy channels is not more than the preset number, determining the candidate Bluetooth low energy channels as available Bluetooth low energy channels;
and determining the channels except the available low-power-consumption Bluetooth channels in the plurality of low-power-consumption Bluetooth channels as unavailable low-power-consumption Bluetooth channels.
In an exemplary manner, before the master bluetooth device receives the channel quality reporting message sent by the slave bluetooth device, the method further includes:
the master Bluetooth device sends a first request message to the slave Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
In an exemplary manner, after the master bluetooth device sends the first request message to the slave bluetooth device, the method further includes:
and the master Bluetooth device receives a response message of the first request message sent by the slave Bluetooth device, wherein the response message of the first request message is used for informing the slave Bluetooth device that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the method further comprises:
and the master Bluetooth device sends a second request message to the slave Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
In an exemplary manner, after the master bluetooth device sends the second request message to the slave bluetooth device, the method further includes:
and the master Bluetooth device receives a response message of the second request message sent by the slave Bluetooth device, wherein the response message of the second request message is used for informing that the slave Bluetooth device agrees to close or refuses to close the channel quality reporting function.
In an exemplary manner, before the master bluetooth device receives the channel quality reporting message sent by the slave bluetooth device, the method further includes:
and the master Bluetooth device receives a third request message sent by the slave Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device of starting a channel quality reporting function.
In an exemplary manner, after the master bluetooth device receives the third request message sent by the slave bluetooth device, the method further includes:
and the master Bluetooth device sends a response message of the third request message to the slave Bluetooth device, wherein the response message of the third request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the method further comprises:
and the master Bluetooth device receives a fourth request message sent by the slave Bluetooth device, wherein the fourth request message is used for informing the slave Bluetooth device of closing the channel quality reporting function.
In an exemplary manner, after the master bluetooth device receives the fourth request message sent by the slave bluetooth device, the method further includes:
and the master Bluetooth device sends a response message of a fourth request message to the slave Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the master bluetooth device establishes a bluetooth low energy connection with the slave bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
In another exemplary manner, the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device is a broadcaster, and the slave bluetooth device is a scanner.
The method of the embodiment of the application is also suitable for the Bluetooth equipment which communicates in a broadcasting mode, and the application range is wider.
A second aspect of the present application provides a channel selection method for a bluetooth low energy device, including:
the method comprises the steps that a slave Bluetooth device sends a channel quality reporting message to a master Bluetooth device, wherein the channel quality reporting message comprises first state information of a plurality of low-power-consumption Bluetooth channels detected by the slave Bluetooth device, and each piece of first state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel is available for the slave Bluetooth device;
the slave Bluetooth device receives second state information of the plurality of Bluetooth low energy channels sent by the master Bluetooth device, wherein each second state information is used for indicating whether the corresponding Bluetooth low energy channel can be used by the master Bluetooth device and the slave Bluetooth device;
the slave Bluetooth device communicates with the master Bluetooth device using an available Bluetooth low energy channel according to the second state information of the plurality of Bluetooth low energy channels.
In the method, the slave Bluetooth equipment reports the state information of the plurality of Bluetooth channels to the master Bluetooth equipment, so that when the master Bluetooth equipment determines the available channel, the master Bluetooth equipment considers the difference of the channel environments of the master Bluetooth equipment and the slave Bluetooth equipment by combining the channel quality of the BLE channel reported by the slave Bluetooth equipment and the available BLE channel determined by the channel quality information detected by the slave Bluetooth equipment, thereby ensuring that the determined channel state is more accurate and improving the communication performance between the Bluetooth equipment.
In an exemplary manner, before the sending, by the slave bluetooth device, the channel quality reporting message to the master bluetooth device, the method further includes:
the slave Bluetooth device receives a first request message sent by the master Bluetooth device, where the first request message is used to instruct the slave Bluetooth device to start a channel quality reporting function.
In an exemplary manner, after receiving the first request message sent by the master bluetooth device, the slave bluetooth device further includes:
and the slave Bluetooth equipment sends a response message of the first request message to the master Bluetooth equipment, wherein the response message of the first request message is used for informing that the slave Bluetooth equipment agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the method further comprises:
and the slave Bluetooth equipment receives a second request message sent by the master Bluetooth equipment, wherein the second request message is used for indicating the slave Bluetooth equipment to close the channel quality reporting function.
In an exemplary manner, after receiving the second request message sent by the master bluetooth device, the slave bluetooth device further includes:
and the slave Bluetooth equipment sends a response message of the second request message to the master Bluetooth equipment, wherein the response message of the second request message is used for informing that the slave Bluetooth equipment agrees or refuses to close the channel quality reporting function.
In an exemplary manner, before the sending, by the slave bluetooth device, the channel quality reporting message to the master bluetooth device, the method further includes:
and the slave Bluetooth equipment sends a third request message to the master Bluetooth equipment, wherein the third request message is used for informing the slave Bluetooth equipment of starting a channel quality reporting function.
In an exemplary manner, after the slave bluetooth device sends the third request message to the master bluetooth device, the method further includes:
and the slave Bluetooth device receives a response message of the third request message sent by the master Bluetooth device, wherein the response message of the third request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the method further comprises:
and the slave Bluetooth equipment sends a fourth request message to the master Bluetooth equipment, wherein the fourth request message is used for informing the slave Bluetooth equipment of closing the channel quality reporting function.
In an exemplary manner, after receiving the fourth request message sent by the master bluetooth device, the slave bluetooth device further includes:
and the slave Bluetooth equipment receives a response message of a fourth request message sent by the master Bluetooth equipment, wherein the response message of the fourth request message is used for informing that the slave Bluetooth equipment agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the slave bluetooth device establishes a bluetooth low energy connection with the master bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
In an exemplary manner, the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device is a broadcaster, and the slave bluetooth device is a scanner.
A third aspect of the present application provides a master bluetooth device comprising:
a receiving module, configured to receive a channel quality report message sent by a slave bluetooth device, where the channel quality report message includes first state information of multiple bluetooth low energy channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding bluetooth low energy channel is available for the slave bluetooth device;
a determining module, configured to determine second state information of the multiple bluetooth low energy channels according to the first state information and the channel quality information of the multiple bluetooth low energy channels detected by the master bluetooth device, where each second state information is used to indicate whether a corresponding bluetooth low energy channel is available for the master bluetooth device and the slave bluetooth device;
a use module for selecting an available channel from the plurality of Bluetooth Low energy channels to communicate with the slave Bluetooth device based on the second status information.
In an exemplary manner, the method further comprises:
a sending module, configured to send the second status information to the slave bluetooth device to instruct the slave bluetooth device to select an available channel from the multiple bluetooth low energy channels to communicate with the master bluetooth device.
In an exemplary manner, the determining module is specifically configured to:
and determining second state information of the plurality of Bluetooth low energy channels according to the first state information, the channel quality information of the plurality of Bluetooth low energy channels and the type of the current Bluetooth service.
In an exemplary manner, the determining module is specifically configured to:
determining the channel quality requirement of a low-power-consumption Bluetooth channel according to the type of the current Bluetooth service;
determining candidate Bluetooth low energy channels with channel quality meeting the channel quality requirement from the plurality of Bluetooth low energy channels according to the first state information and the channel quality information of the plurality of Bluetooth low energy channels;
when the number of the candidate Bluetooth low energy channels is larger than the preset number, determining that the channel which is indicated by the first state information and available by the Bluetooth low energy channels is an available Bluetooth low energy channel from the candidate Bluetooth low energy channels;
when the number of the candidate Bluetooth low energy channels is not more than the preset number, determining the candidate Bluetooth low energy channels as available Bluetooth low energy channels;
and determining the channels except the available low-power-consumption Bluetooth channels in the plurality of low-power-consumption Bluetooth channels as unavailable low-power-consumption Bluetooth channels.
In an exemplary manner, the method further comprises:
a sending module, configured to send a first request message to the slave bluetooth device, where the first request message is used to instruct the slave bluetooth device to start a channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a response message of the first request message sent by the slave Bluetooth equipment, wherein the response message of the first request message is used for informing that the slave Bluetooth equipment agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the sending module is further configured to:
and sending a second request message to the slave Bluetooth equipment, wherein the second request message is used for indicating the slave Bluetooth equipment to close the channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a response message of the second request message sent by the slave Bluetooth device, wherein the response message of the second request message is used for informing that the slave Bluetooth device agrees to close or refuses to close the channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a third request message sent by the slave Bluetooth device, where the third request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be started.
In an exemplary manner, the method further comprises:
a sending module, configured to send a response message of the third request message to the slave bluetooth device, where the response message of the third request message is used to notify that the slave bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a fourth request message sent by the slave Bluetooth device, where the fourth request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be closed.
In an exemplary manner, the method further comprises:
a sending module, configured to send a response message of a fourth request message to the slave bluetooth device, where the response message of the fourth request message is used to notify that the slave bluetooth device agrees to or refuses to close a channel quality reporting function.
In an exemplary manner, the master bluetooth device establishes a bluetooth low energy connection with the slave bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
In an exemplary manner, the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device is a broadcaster, and the slave bluetooth device is a scanner.
A fourth aspect of the present application provides a slave bluetooth device, comprising:
a sending module, configured to send a channel quality report message to a master bluetooth device, where the channel quality report message includes first state information of multiple low power consumption bluetooth channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding bluetooth low power consumption channel is available for the slave bluetooth device;
the receiving module is used for receiving second state information of the plurality of low-power-consumption Bluetooth channels sent by the master Bluetooth device, wherein each piece of second state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel can be used by the master Bluetooth device and the slave Bluetooth device;
and the using module is used for communicating with the main Bluetooth device by using the available low-power-consumption Bluetooth channels according to the second state information of the plurality of low-power-consumption Bluetooth channels.
In an exemplary manner, the receiving module is further configured to:
and receiving a first request message sent by the master Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
In an exemplary manner, the sending module is further configured to:
and sending a response message of the first request message to the master Bluetooth device, wherein the response message of the first request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a second request message sent by the master Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
In an exemplary manner, the sending module is further configured to:
and sending a response message of the second request message to the master Bluetooth device, wherein the response message of the second request message is used for informing the slave Bluetooth device that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the sending module is further configured to:
and sending a third request message to the master Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device of starting a channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a response message of the third request message sent by the master bluetooth device, wherein the response message of the third request message is used for informing that the slave bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the sending module is further configured to:
and sending a fourth request message to the master Bluetooth device, wherein the fourth request message is used for notifying the slave Bluetooth device of closing the channel quality reporting function.
In an exemplary manner, the receiving module is further configured to:
and receiving a response message of a fourth request message sent by the master Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the slave bluetooth device establishes a bluetooth low energy connection with the master bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
In an exemplary manner, the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device is a broadcaster, and the slave bluetooth device is a scanner.
A fifth aspect of the present application provides a master bluetooth device, comprising a processor, a memory and a transceiver, wherein the memory is configured to store instructions and the transceiver is configured to communicate with other devices, and wherein the processor is configured to execute the instructions stored in the memory to cause the master bluetooth device to perform the method according to the first aspect of the present application and any one of the exemplary methods.
A sixth aspect of the present application provides a slave bluetooth device comprising a processor, a memory for storing instructions, and a transceiver for communicating with other devices, the processor being configured to execute the instructions stored in the memory to cause the slave bluetooth device to perform the method according to the second aspect of the present application and any one of the exemplary manners.
A seventh aspect of the present application provides a computer-readable storage medium having stored thereon instructions that, when executed, cause a computer to perform the method according to the first aspect of the present application in any of its exemplary manners.
An eighth aspect of the present application provides a computer-readable storage medium storing instructions that, when executed, cause a computer to perform the method according to the second aspect of the present application and any one of the exemplary manners.
A ninth aspect of the present application provides a computer program product comprising instructions which, when executed, cause a computer to perform the method of the first aspect and any of the example approaches.
A tenth aspect of the present application provides a computer program product comprising instructions that, when executed, cause a computer to perform the method of the second aspect and any of the exemplary manners.
An eleventh aspect of the present application provides a system-on-chip or system-on-chip, the system-on-chip or system-on-chip being applicable to a main bluetooth device, the system-on-chip or system-on-chip comprising: at least one communication interface, at least one processor, at least one memory, the communication interface, the memory, and the processor are interconnected by a bus, and the processor executes instructions stored in the memory to enable the first network element to perform the method according to the first aspect of the present application and any one of the exemplary methods.
A twelfth aspect of the present application provides a system-on-chip or system-on-chip, the system-on-chip or system-on-chip being applicable to a slave bluetooth device, the system-on-chip or system-on-chip comprising: at least one communication interface, at least one processor, at least one memory, the communication interface, the memory, and the processor being interconnected by a bus, the processor causing the first network element to perform the method according to the second aspect of the present application and any one of the exemplary methods by executing instructions stored in the memory.
A thirteenth aspect of the present application provides a bluetooth system comprising a master bluetooth device for performing the method according to the first aspect of the present application and any one of the exemplary manners, and a slave bluetooth device for performing the method according to the second aspect of the present application and any one of the exemplary manners.
The channel selection method and device for the low-power-consumption Bluetooth device provided by the embodiment of the application comprise the following steps: the master Bluetooth device receives a channel quality reporting message sent by the slave Bluetooth device, the channel quality reporting message includes first state information of a plurality of BLE channels detected by the slave Bluetooth device, each first state information is used for indicating whether the corresponding BLE channel is available for the slave Bluetooth device, the master Bluetooth device determines second state information of the plurality of BLE channels according to the first state information and the channel quality information of the plurality of BLE channels detected by the master Bluetooth device, each second state information is used for indicating whether the corresponding BLE channel is available for the master Bluetooth device and the slave Bluetooth device, and the master Bluetooth device selects an available channel from the plurality of BLE channels to communicate with the slave Bluetooth device according to the second state information. In the method, when determining the available channel, the master bluetooth device considers the difference of the channel environments of the master bluetooth device and the slave bluetooth device by combining the channel quality of the BLE channel reported by the slave bluetooth device and the available BLE channel determined by the channel quality information detected by the master bluetooth device, so that the determined channel state is more accurate, and the communication performance between the bluetooth devices is improved.
Drawings
FIG. 1 is a schematic diagram of a network architecture suitable for use in the present application;
figure 2 is an architectural schematic diagram of a BLE device;
fig. 3 is a flowchart of a channel selection method of a bluetooth low energy device according to an embodiment of the present application;
fig. 4 is a signaling flowchart of a channel selection method of a bluetooth low energy device according to a second embodiment of the present application;
fig. 5 is a signaling flowchart of a channel selection method for a bluetooth low energy device according to a third embodiment of the present application;
fig. 6 is a signaling flowchart of a channel selection method of a bluetooth low energy device according to a fourth embodiment of the present application;
fig. 7 is a signaling flowchart of a channel selection method of a bluetooth low energy device according to a fifth embodiment of the present application;
fig. 8 is a schematic structural diagram of a master bluetooth device according to a sixth embodiment of the present application;
fig. 9 is a schematic structural diagram of a slave bluetooth device according to a seventh embodiment of the present application;
fig. 10 is a schematic structural diagram of a bluetooth device according to an eighth embodiment of the present application;
fig. 11 is a schematic structural diagram of a bluetooth system according to a tenth embodiment of the present application.
Detailed Description
An embodiment of the present application provides a channel selection method for a bluetooth low energy device, where the method is applied to BLE devices, fig. 1 is a schematic diagram of a network architecture applicable to the present application, and as shown in fig. 1, the network architecture includes two BLE devices: a first bluetooth device and a second bluetooth device. In the structure shown in fig. 1, the first bluetooth device is a mobile phone, the second bluetooth device is a bluetooth headset, and the mobile phone and the bluetooth headset communicate with each other through bluetooth connection.
It is to be understood that the first bluetooth device is not limited to a handset, nor is the second bluetooth device limited to a bluetooth headset. The first bluetooth device and the second bluetooth device can be any electronic device with a BLE function. For example, the first bluetooth device and the second bluetooth device may be a mobile phone, a tablet Computer, a handheld Computer, a notebook Computer, an Ultra-mobile Personal Computer (UMPC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), a wearable device (such as a smart band, a smart watch, smart glasses, a smart helmet, etc.), an in-vehicle device, a smart speaker, an Augmented Reality (AR) \ Virtual Reality (VR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like.
Fig. 2 is an architecture diagram of a BLE device, and as shown in fig. 2, the BLE device includes: a bluetooth host (bluetooth host) and a bluetooth module (bluetooth module). The bluetooth host includes an application (application), a high layer protocol (high layer), and a Host Controller Interface (HCI). The bluetooth module includes a host controller (host controller), a link manager (link manager) module, bluetooth audio (audio), a baseband and link controller (baseband and link controller), and a radio frequency (radio) module.
The Bluetooth host carries out data interaction with the Bluetooth module through the HCI, and the BLE equipment carries out data transmission with other Bluetooth equipment through the Bluetooth module.
Current bluetooth calls, file transfers and bluetooth music playback are also based on classical bluetooth (also known as traditional bluetooth). At present, in the bluetooth version 5.0, the maximum transmission rate of BLE can reach 2Mbps, and a physical capability foundation is provided for supporting file fast transmission or music playing. If BLE is used for transmitting audio, due to the fact that real-time requirements of the audio on data are high, under the condition that interference exists, if data transmission is lost or delayed greatly, the situations of stutter, interruption, tone variation and the like in music playing or communication can occur, and user experience is affected.
BLE uses AFH mechanism as classic Bluetooth, and the Bluetooth device selects available BLE Bluetooth channels for data transmission among 37 BLE Bluetooth channels. However, in the current BLE, only the master bluetooth device (i.e., master) can send the available channel list to the slave bluetooth device (i.e., slave) through the LLCP message, the slave bluetooth device unconditionally accepts the available channel list, and the available BLE bluetooth channel in the available channel list is selected for data transmission. However, the interference received by the master bluetooth device and the slave bluetooth device may have a large difference, and the available channel determined by the master bluetooth device according to the interference detected by the master bluetooth device is not accurate, thereby affecting the communication performance between the bluetooth devices.
For example, the mobile phone is used as a master, the bluetooth headset is used as a slave, the bluetooth headset is usually worn on the head, the mobile phone is placed in a pocket, the interference environment where the mobile phone and the bluetooth headset are located is greatly different, and the receiving performance of the mobile phone and the bluetooth headset to wireless signals is greatly different, so that only the mobile phone is allowed to determine an available channel, which is very unfavorable for audio transmission between the mobile phone and the bluetooth headset, and in a complex interference environment, the tone quality in audio playing is likely to be seriously reduced, thereby affecting the user experience.
In order to solve the problems in the prior art, an embodiment of the present invention provides a channel selection method for a BLE device, where the method allows a slave bluetooth device to report channel quality, and a master bluetooth device determines an available BLE channel according to state information of the BLE channel reported by the slave device and the channel quality of the BLE channel detected by the master bluetooth device, so that the determined available BLE channel is more accurate.
It should be noted that the role definitions of the master and the slave involved in the embodiments of the present application are different from those in the prior art. In the prior art, roles of a master and a slave are defined based on a BLE connection state, a bluetooth device initiating creation of a BLE connection is the master, and a bluetooth device accepting creation of a BLE connection is the slave.
In this embodiment of the present application, the roles of master and slave may be defined based on a BLE connected state, or may be defined in a BLE unconnected state. Wherein, in the BLE connection state, the role definition of master and slave is the same as that of the prior art. Under BLE non-connection state, communicate through the broadcast mode between the bluetooth equipment, the broadcaster is master, and the scanning party is slave.
The master bluetooth device and the slave bluetooth device are only a logical relationship, and for a certain bluetooth device, it can be used as both the master bluetooth device and the slave bluetooth device.
Fig. 3 is a flowchart of a channel selection method of a bluetooth low energy device according to an embodiment of the present invention, and as shown in fig. 3, the method according to the embodiment includes the following steps:
s101, the master Bluetooth device receives a channel quality reporting message sent by the slave Bluetooth device, wherein the channel quality reporting message includes first state information of a plurality of Bluetooth channels detected by the slave Bluetooth device, and each piece of first state information is used for indicating whether a corresponding BLE channel is available for the slave Bluetooth device.
The master Bluetooth device and the slave Bluetooth devices are low-power Bluetooth devices. The master Bluetooth device and the slave Bluetooth device can establish a master and slave relationship by establishing BLE connection, wherein the Bluetooth device initiating the establishment of the BLE connection is the master, and the Bluetooth device accepting the establishment of the BLE connection is the slave.
The master Bluetooth device and the slave Bluetooth device can also establish a master and slave relationship through BLE broadcasting and BLE scanning, wherein the broadcasting party is the master, and the scanning party is the slave.
In this embodiment, the protocol may specify that the slave bluetooth device reports the channel quality to the master bluetooth device, or the network device or the management system pre-configures the slave bluetooth device to report the channel quality to the master bluetooth device. The slave bluetooth device may report the channel quality to the master bluetooth device periodically, or when detecting that the change in the channel quality of the BLE channel exceeds a preset condition, the slave bluetooth device reports the channel quality to the master bluetooth device.
For example, the master bluetooth device may also dynamically instruct the slave bluetooth device to turn on or turn off the channel quality reporting function through a message. The slave Bluetooth device starts or closes a channel quality reporting function according to the indication message sent by the master Bluetooth device, and if the slave Bluetooth device starts the channel quality reporting function, the slave Bluetooth device can report the channel quality to the master Bluetooth device periodically, or when detecting that the channel quality change of the BLE channel exceeds a preset condition, the slave Bluetooth device reports the channel quality to the master Bluetooth device.
For example, the slave bluetooth device may determine whether to turn on or turn off the channel quality reporting function, and dynamically notify the master bluetooth device through a message. If the slave bluetooth device starts the channel quality reporting function, the slave bluetooth device may periodically report the channel quality to the master bluetooth device, or when detecting that the change of the channel quality of the BLE channel exceeds a preset condition, the slave bluetooth device reports the channel quality to the master bluetooth device.
The reporting period of the channel quality may be configured in advance. Similarly, the preset condition may also be configured in advance, and the preset condition is, for example: when a conversion value of Received Signal Strength Indication (RSSI) of one or more Bluetooth channels is larger than a preset value, the slave Bluetooth equipment reports the channel quality to the master Bluetooth equipment. Or when the preset condition is that the packet loss rate or the retransmission times of one or more bluetooth channels is greater than a preset value, the slave bluetooth device reports the channel quality to the master bluetooth device. Of course, it may also be determined whether to report the channel quality by combining multiple parameters in the RSSI, the packet loss rate, and the retransmission times of the bluetooth channel, which is only illustrated in this embodiment and does not limit the preset condition.
The reporting of the channel quality refers to that the slave bluetooth device sends first state information of a plurality of BLE channels to the master bluetooth device, and the first state information of the plurality of BLE channels is carried in a reporting message of the channel quality. The channel quality reporting message may be an LMP _ channel _ classification, where the LMP _ channel _ classification includes a channel quality parameter for indicating first state information of a BLE bluetooth channel.
The first status information of the BLE channel may be indicated by one bit, for example, when the value of the first status information of the BLE channel is 1, it indicates that the BLE channel is available for the slave bluetooth device, and when the value of the first status information of the BLE channel is 0, it indicates that the BLE channel is not available for the bluetooth device.
At present, there are 37 BLE channels that can be used between the master bluetooth device and the slave bluetooth device, and the slave bluetooth device needs to detect the first status information of the 37 BLE channels and send the first status information of the 37 BLE channels to the master bluetooth device. It is understood that as the bluetooth technology develops, the number of BLE channels may vary, and the number of BLE channels may be more or less, and the method of the embodiment of the present application may be used no matter how many BLE channels are.
And S102, the master Bluetooth device determines second state information of the plurality of BLE channels according to the first state information and the detected channel quality information of the plurality of BLE channels, wherein each piece of second state information is used for indicating whether the corresponding BLE channel is available for the master Bluetooth device and the slave Bluetooth device.
The BLE channel detected by the master bluetooth device is the same as the BLE channel detected by the slave bluetooth device, i.e. the master bluetooth device also needs to detect the channel quality information of 37 BLE channels. Illustratively, the channel quality information for the BLE channel may include one or more of the following parameters: received Signal Strength Indication (RSSI), packet retransmission rate, and packet error rate of the packet. For example only, the channel quality information may be other parameters capable of indicating the signal quality of the BLE channel.
In an exemplary manner, the master bluetooth device determines a candidate BLE channel according to the channel quality requirement of the BLE channel and the channel quality information of the plurality of BLE channels, wherein the candidate BLE channel is a BLE channel whose channel quality meets the channel quality requirement. Then, second state information of the plurality of BLE channels is determined according to the candidate BLE channel and the first state information of the plurality of BLE channels.
The channel quality requirement is, for example, an RSSI threshold, a packet retransmission rate threshold, or a packet error rate threshold of a packet, and corresponds to the channel quality information of the BLE channel. The channel quality requirements may be preconfigured into the master bluetooth devices.
Taking the channel quality requirement as the RSSI threshold as an example, the master bluetooth device compares the RSSI of each BLE channel with the RSSI threshold, and if the RSSI of a certain BLE channel is greater than the RSSI threshold, the BLE channel is determined to be a candidate BLE channel.
After determining the candidate BLE channels, determining, from the first state information of the plurality of BLE channels, that the first state information indicates a channel available for the BLE channels as an available BLE channel. If the first status information of a certain candidate BLE channel indicates that the BLE channel is an unavailable channel, the master Bluetooth device determines that the candidate BLE channel is the unavailable channel, and in addition, the BLE channels outside the candidate BLE channel in the plurality of BLE channels are all the unavailable channels. I.e., none of the channels of the plurality of BLE except the available BLE channel.
In another exemplary manner, the master bluetooth device determines the second state information of the BLE channels according to the first state information, the channel quality information of the BLE channels and the type of current bluetooth traffic.
Optionally, the master bluetooth device determines the channel quality requirement of the BLE channel according to the type of the current bluetooth service. For example, for a bluetooth service (for example, a bluetooth call or a music playing service) with a high real-time requirement, the channel quality requirement corresponding to the bluetooth service is higher. For the bluetooth service with low real-time requirement but high stability requirement, the requirement of the channel quality corresponding to the bluetooth service may be reduced. Taking the channel quality requirement as the RSSI threshold as an example, the RSSI thresholds corresponding to different bluetooth services are different.
After determining the channel quality requirements of the BLE channels, the master bluetooth device may determine candidate BLE channels from the channel quality requirements of the BLE channels and the channel quality information of the plurality of BLE channels, and determine second state information of the plurality of BLE channels from the candidate BLE channels and the first state information of the plurality of BLE channels. The detailed description refers to the methods described in the preceding exemplary manner.
Optionally, the master bluetooth device may further determine the second status information of the plurality of BLE channels according to the following manner: and the master Bluetooth device determines a candidate BLE channel with the channel quality meeting the channel quality requirement from the plurality of BLE channels according to the first state information and the channel quality information of the plurality of BLE devices. When the number of the candidate BLE channels is greater than the preset number, determining that the channel available for the BLE channel is the available BLE channel according to the first status information. When the number of the candidate BLE channels is not more than the preset number, determining all the candidate BLE channels as available BLE channels, and determining the channels except the available BLE channels in the plurality of BLE channels as unavailable BLE channels.
The number of the candidate BLE channels is less than the preset number, which indicates that the number of the candidate BLE channels is small, and at this time, if the first status information is selected from the candidate BLE channels and indicates that the channels available for the BLE channels are available BLE channels, the finally determined number of the available BLE channels is too small to meet the transmission requirement, so all the candidate BLE channels are taken as the available BLE channels.
In this manner, the number of available BLE channels determined by the master bluetooth device is related to the requirement of the bluetooth traffic on the channel quality, if the requirement of the bluetooth traffic on the channel quality is high, the number of available BLE channels finally determined is smaller, and if the requirement of the bluetooth traffic on the channel quality is low, the number of available BLE channels finally determined is larger.
And S103, the master Bluetooth device selects an available channel from the plurality of BLE channels to communicate with the slave Bluetooth device according to the second state information.
Since the second status information is used to indicate whether the corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device, both the master bluetooth device and the slave bluetooth device may select the used BLE channel from the available BLE channels indicated by the second status information to transmit data.
The second status information of the BLE channel may be indicated by one bit, for example, when the value of the second status information of the BLE channel is 1, the BLE channel is available, and when the value of the second status information of the BLE channel is 0, the BLE channel is unavailable. Here, BLE channel available means that BLE channel is available for the master bluetooth device and the slave bluetooth device.
Optionally, the master bluetooth device sends the second status information to the slave bluetooth device to instruct the slave bluetooth device to select an available channel from the plurality of BLE channels to communicate with the master bluetooth device. The second status information may be carried in an update message, and the update message may further include effective time information of the second status information of the BLE channel, where the effective time information is used to indicate when the second status information of the BLE channel is effective.
In this embodiment, the master bluetooth device receives a channel quality reporting message sent by the slave bluetooth device, where the channel quality reporting message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, each piece of the first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device, the master bluetooth device determines second state information of the plurality of BLE channels according to the first state information and the channel quality information of the plurality of BLE channels detected by the master bluetooth device, each piece of the second state information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device, and the master bluetooth device selects an available channel from the plurality of BLE channels according to the second state information to communicate with the slave bluetooth device. In the method, when determining the available channel, the master bluetooth device considers the difference of the channel environments of the master bluetooth device and the slave bluetooth device by combining the channel quality of the BLE channel reported by the slave bluetooth device and the available BLE channel determined by the channel quality information detected by the master bluetooth device, so that the determined channel state is more accurate, and the communication performance between the bluetooth devices is improved.
Fig. 4 is a signaling flowchart of a channel selection method for a bluetooth low energy device according to a second embodiment of the present application, where in this embodiment, a master bluetooth device triggers a slave bluetooth device to start a channel quality reporting function, and as shown in fig. 4, the method according to the second embodiment includes the following steps:
s201, master Bluetooth equipment and slave Bluetooth equipment establish master-slave relation.
The specific implementation manner of this step refers to the description of the above embodiments, and is not described herein again.
S202, the master Bluetooth device sends a first request message to the slave Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
After the master Bluetooth device and the slave Bluetooth device establish Bluetooth connection, a host of the master Bluetooth device sends an HCI BLE Channel Classification command to a link management layer, and informs the link management layer to start a Channel quality reporting function of the slave Bluetooth device. The main parameters carried by the HCI BLE Channel Classification Enable command are shown in table one:
watch 1
Figure PCTCN2019092152-APPB-000001
And the link management layer of the master Bluetooth device sends a first request message to the slave Bluetooth device according to the HCI BLE Channel Classification command, and informs the slave Bluetooth device of enabling the Channel quality reporting function. The first request message may be a newly defined message or an existing message. Illustratively, the first request message is an LL _ channel _ classification _ req message, and main parameters carried by the LL _ channel _ classification _ req message are shown in table one.
S203, the slave Bluetooth device sends a response message of the first request message to the master Bluetooth device.
The step is an optional step, and the response message of the first request message is used for notifying the slave bluetooth device that the channel quality reporting function is approved or refused to be started.
And after receiving the first request message from the Bluetooth equipment, starting or refusing to start a channel quality reporting function according to the first request message. In one mode, after receiving the first request message, the slave bluetooth device unconditionally starts a channel quality reporting function according to an indication of the master bluetooth device. In another mode, after receiving the first request message from the bluetooth device, the bluetooth device may determine to start or refuse to start the channel quality reporting function according to its own requirement.
After the channel quality reporting function is started, the slave bluetooth device may send a response message of the first request message to the master bluetooth device, or may not send the response message. And if the slave Bluetooth equipment does not send a response message of the first request message to the master Bluetooth equipment, the master Bluetooth equipment defaults that the slave Bluetooth equipment receives the first request message and starts a channel quality reporting function according to the indication.
If the slave bluetooth device unconditionally starts the channel quality reporting function according to the indication of the master bluetooth device, the master bluetooth device can determine that the slave bluetooth device starts the channel quality reporting function as long as receiving the response message sent by the slave bluetooth device.
If the slave bluetooth device can determine to start or stop the channel quality reporting function according to its own requirement, after receiving the response message sent by the slave bluetooth device, the master bluetooth device may determine to start or refuse to start the channel quality reporting function according to the indication information in the response message, for example, indicate to start or refuse to start the channel quality reporting function by one bit in the response message. Or the slave Bluetooth equipment uses different types of response messages to inform the master Bluetooth equipment to start or refuse to start the channel quality reporting function.
S204, the slave bluetooth device sends a channel quality report message to the master bluetooth device, where the channel quality report message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device.
And after the slave Bluetooth equipment starts a channel quality reporting function, monitoring the quality of the BLE channel, and when the change of the channel quality of the BLE channel exceeds a preset condition, sending a channel quality reporting message to the master Bluetooth equipment.
If the BLE connection is established between the master bluetooth device and the slave bluetooth device, for example, the channel quality reporting message may be an LL _ channel _ classification _ report message, and the main parameters carried by the LL _ channel _ classification _ report message are shown in table two:
watch two
Figure PCTCN2019092152-APPB-000002
If the master bluetooth device and the slave bluetooth device do not establish a BLE connection but communicate in a broadcast manner, for example, the CHANNEL quality REPORT message may be an MSG _ CHANNEL _ CLASSIFICATION _ REPORT message, and the main parameters carried by the MSG _ CHANNEL _ CLASSIFICATION _ REPORT message are shown in table three:
watch III
Figure PCTCN2019092152-APPB-000003
In table two and table three, the state of the BLE channel being in the unavailable state means that the BLE channel is not available for the slave bluetooth device, and the state of the BLE channel being in the available state means that the BLE channel is available for the slave bluetooth device.
It should be noted that the slave bluetooth device may send the MSG _ CHANNEL _ CLASSIFICATION _ REPORT message to the master bluetooth device in various ways, such as: a connection-less Slave Broadcast (CSB) mode, etc. through BLE Broadcast.
S205, the master bluetooth device determines second state information of the BLE channels according to the first state information and the detected channel quality information of the BLE channels, where each second state information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device.
S206, the master bluetooth device sends an update message to the slave bluetooth device, where the update message includes second status information of a plurality of BLE channels.
The specific implementation manner of steps S205 and S206 refers to the related description of steps S102 and S103 in the first embodiment, and is not described herein again.
If the master bluetooth device and the slave bluetooth device establish a BLE connection, the update message may be LL _ CHANNEL _ MAP _ IND, for example, with the following parameters included therein: channel _ Map and Instant, the definition of each parameter is shown in table four:
watch four
Figure PCTCN2019092152-APPB-000004
In table four, the state of the BLE channel being in the unavailable state means that the BLE channel is not available for the slave bluetooth device and the master bluetooth device, and the state of the BLE channel being in the available state means that the BLE channel is available for the slave bluetooth device and the master bluetooth device.
For example, when the master bluetooth device and the slave bluetooth device do not establish a connection but communicate in a broadcast manner, the update message may be AUX _ SYNC _ IND, the AUX _ SYNC _ IND is a periodic broadcast packet, a SyncInfo field in the AUX _ SYNC _ IND is used for channel mapping, and the second state information may be carried in the SyncInfo field.
And S207, the master Bluetooth device and the slave Bluetooth device select an available channel from the plurality of BLE channels for communication according to the second state information.
After the slave Bluetooth device receives the second state information of the plurality of BLE channels, the state information of the plurality of BLE channels stored before the slave Bluetooth device is updated locally, and the subsequent slave Bluetooth device selects an available channel to communicate with the master Bluetooth device by using the updated state information of the plurality of BLE channels.
S208, the master Bluetooth device sends a second request message to the slave Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
Illustratively, the second request message is an LL _ channel _ classification _ req message, a value of a parameter enable in the LL _ channel _ classification _ req message is 0, and the value of the parameter enable is 0, which indicates that the channel quality reporting function of the slave bluetooth device is turned off.
And S209, the slave Bluetooth device sends a response message of the second request message to the master Bluetooth device.
The step is an optional step, and after receiving the second request message from the bluetooth device, the channel quality reporting function is closed or refused to be closed according to the first request message. In one mode, after receiving the second request message, the slave bluetooth device unconditionally turns off the channel quality reporting function according to the indication of the master bluetooth device. In another mode, after receiving the second request message from the bluetooth device, the bluetooth device may decide to turn off or refuse to turn off the channel quality reporting function according to its own requirement.
After the channel quality reporting function is closed, the slave bluetooth device may send a response message of the second request message to the master bluetooth device, or may not send the response message. And if the slave Bluetooth equipment does not send a response message of the second request message to the master Bluetooth equipment, the master Bluetooth equipment defaults that the slave Bluetooth equipment receives the second request message and closes the channel quality reporting function according to the indication.
If the slave bluetooth device unconditionally starts the channel quality reporting function according to the indication of the master bluetooth device, the master bluetooth device can determine that the slave bluetooth device closes the channel quality reporting function as long as receiving the response message sent by the slave bluetooth device.
If the slave bluetooth device can decide to turn off or decide to turn off the channel quality reporting function according to its own requirements, after receiving the response message sent by the slave bluetooth device, the master bluetooth device can determine to turn off or refuse to turn off the channel quality reporting function according to the indication information in the response message. Or the slave Bluetooth equipment uses different types of response messages to inform the master Bluetooth equipment to close or refuse to close the channel quality reporting function.
In this embodiment, the master bluetooth device sends a first request message to the slave bluetooth device to instruct the slave bluetooth device to start a channel quality reporting function, the slave bluetooth device starts the channel quality reporting function according to the instruction of the master bluetooth device and detects a channel state, and the slave bluetooth device sends the detected first state information of the plurality of BLE channels to the master bluetooth device, so that when the master bluetooth device determines an available channel, the difference between the channel environments of the master bluetooth device and the slave bluetooth device is considered in combination with the first state information of the BLE channels reported by the slave bluetooth device and the available BLE channel determined by the channel quality information detected by the slave bluetooth device, thereby ensuring that the determined channel state is more accurate, and improving the communication performance between the bluetooth devices.
Fig. 5 is a signaling flowchart of a channel selection method for a bluetooth low energy device according to a third embodiment of the present application, where in this embodiment, a slave bluetooth device determines to start a channel quality reporting function, and as shown in fig. 5, the method provided in this embodiment includes the following steps:
s301, master Bluetooth equipment and slave Bluetooth equipment establish master-slave relation.
The specific implementation manner of this step refers to the description of the above embodiments, and is not described herein again.
S302, the slave Bluetooth device sends a third request message to the master Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device to start a channel quality reporting function.
The slave bluetooth device may trigger the transmission of the third request message after the HCI command sent by the bluetooth host, or may trigger the slave bluetooth device to send the third request message autonomously by a bluetooth control chip of the slave bluetooth device. For example, when detecting that the bluetooth channel quality variation exceeds a preset condition, the bluetooth host of the slave bluetooth device sends an HCI command to the link management layer of the slave bluetooth device: and the HCI BLE Slave Channel Classification informs the Slave Bluetooth equipment to start a Channel quality reporting function, and the link management layer of the Slave Bluetooth equipment sends a third request message to the master Bluetooth equipment according to the HCI BLE Slave Channel Classification.
The step is an optional step, after the link management layer of the slave bluetooth device determines to start the channel quality reporting function, the slave bluetooth device may directly start the channel quality reporting function without sending any notification message to the master bluetooth device, and check the state of each bluetooth channel.
And S303, the master Bluetooth device sends a response message of a third request message to the slave Bluetooth device, wherein the response message of the third request message is used for informing that the slave Bluetooth device agrees to or refuses to start the channel quality reporting function.
And after the slave Bluetooth equipment receives the response message of the third request message, if the master Bluetooth equipment agrees to start the channel quality reporting function, the slave Bluetooth equipment starts the channel quality reporting function, and if the master Bluetooth equipment refuses to start the channel quality reporting function, the slave Bluetooth equipment does not start the channel quality reporting function.
When step S302 exists, the step is an optional step, after receiving the third request message, the master bluetooth device may not send a response message of the third request message to the slave bluetooth device, and the slave bluetooth device defaults that the master bluetooth device has received the third request message and agrees to start the channel quality reporting function. When step S302 does not exist, this step does not exist either.
The third request message and the response message of the third request message may be existing messages or newly defined messages, and the parameters carried in the third request message and the response message of the third request message may refer to the first request message and the response message of the first request message.
S304, the slave bluetooth device sends a channel quality report message to the master bluetooth device, where the channel quality report message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device.
And after the slave Bluetooth equipment starts a channel quality reporting function, monitoring the quality of the BLE channel, and when the change of the channel quality of the BLE channel exceeds a preset condition, sending a channel quality reporting message to the master Bluetooth equipment.
S305, the master bluetooth device determines second status information of the BLE channels according to the first status information and the detected channel quality information of the BLE channels, where each second status information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device.
S306, the master bluetooth device sends an update message to the slave bluetooth device, where the update message includes second status information of a plurality of BLE channels.
And S307, the master Bluetooth device and the slave Bluetooth device select an available channel from the plurality of BLE channels for communication according to the second state information.
After the slave Bluetooth device receives the second state information of the plurality of BLE channels, the state information of the plurality of BLE channels stored before the slave Bluetooth device is updated locally, and the subsequent slave Bluetooth device selects an available channel to communicate with the master Bluetooth device by using the updated state information of the plurality of BLE channels.
S308, the slave Bluetooth device sends a fourth request message to the master Bluetooth device, wherein the fourth request message is used for informing the slave Bluetooth device of closing the channel quality reporting function.
S309, the master Bluetooth device sends a response message of a fourth request message to the slave Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees to or refuses to close the channel quality reporting function.
Step S309 is an optional step.
In this embodiment, the slave bluetooth device determines to start a channel quality reporting function, and notifies the master bluetooth device, and the slave bluetooth device sends the detected first state information of the plurality of BLE channels to the master bluetooth device, so that when the master bluetooth device determines an available channel, the master bluetooth device considers a difference between channel environments of the master bluetooth device and the slave bluetooth device in combination with the first state information of the BLE channels reported by the slave bluetooth device and the available BLE channel determined by the channel quality information detected by the master bluetooth device, thereby ensuring that the determined channel state is more accurate, and improving communication performance between the bluetooth devices.
Fig. 6 is a signaling flowchart of a channel selection method for a bluetooth low energy device according to a fourth embodiment of the present application, where the embodiment takes an example that a master bluetooth device and a slave bluetooth device establish a BLE connection, and the master bluetooth device triggers the slave bluetooth device to start a channel quality reporting function, as shown in fig. 6, the method provided in this embodiment includes the following steps:
s401, the main Bluetooth device and the auxiliary Bluetooth device establish BLE connection.
S402, the master Bluetooth device sends a first request message to the slave Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
Illustratively, the first request message is an LL _ channel _ classification _ req message.
S403, the slave bluetooth device sends a channel quality reporting message to the master bluetooth device, where the channel quality reporting message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device.
For example, the channel quality reporting message may be an LL _ channel _ classification _ report message.
S404, the master bluetooth device determines second state information of the BLE channels according to the first state information and the detected channel quality information of the BLE channels, where each second state information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device.
S405, the master Bluetooth device sends an update message to the slave Bluetooth device, wherein the update message comprises second state information of a plurality of BLE channels.
Illustratively, the update message may be an LL _ CHANNEL _ MAP _ IND message.
And S406, the master Bluetooth device and the slave Bluetooth device select an available channel from the plurality of BLE channels for communication according to the second state information.
S407, the master Bluetooth device sends a second request message to the slave Bluetooth device, where the second request message is used to instruct the slave Bluetooth device to close the channel quality reporting function.
Illustratively, the second request message is an LL _ channel _ classification _ req message.
Fig. 7 is a signaling flowchart of a channel selection method for a bluetooth low energy device according to a fifth embodiment of the present application, where this embodiment takes an example that a master bluetooth device and a slave bluetooth device establish a BLE connection, and the master bluetooth device triggers the slave bluetooth device to start a channel quality reporting function, as shown in fig. 7, the method provided in this embodiment includes the following steps:
s501, synchronizing the periodic broadcast state of the slave Bluetooth device to the master Bluetooth device.
The master bluetooth device is in a periodic broadcast state, the slave bluetooth device synchronizes to the state of the master bluetooth device, and the synchronization process refers to the existing process, which is not described herein again.
S502, the slave bluetooth device sends a channel quality report message to the master bluetooth device, where the channel quality report message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device.
Illustratively, the CHANNEL quality REPORT message may be an MSG _ CHANNEL _ CLASSIFICATION _ REPORT message.
And after the slave Bluetooth equipment starts a channel quality reporting function, monitoring the state information of the BLE channel, and when the monitored channel quality change of the BLE channel exceeds a preset condition, sending a channel quality reporting message to the master Bluetooth equipment.
S503, the master bluetooth device determines second state information of the BLE channels according to the first state information and the detected channel quality information of the BLE channels, where each second state information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device.
And S504, the master Bluetooth device sends an update message to the slave Bluetooth device, wherein the update message comprises second state information of a plurality of BLE channels.
Illustratively, the update message may be an AUX _ SYNC _ IND message.
S505, the master Bluetooth device and the slave Bluetooth device select an available channel from a plurality of BLE channels to communicate according to the second state information
It should be noted that, for periodic broadcast, multiple slave bluetooth devices may be synchronized to the master bluetooth device at the same time, so that the master bluetooth device may receive the channel quality information reported by multiple slave bluetooth devices at the same time. Correspondingly, the master bluetooth device determines second state information of the BLE channels according to the first state information of the BEL channels reported by the slave bluetooth devices and the channel quality information of the BLE channels detected by the master bluetooth device.
Fig. 8 is a schematic structural diagram of a master bluetooth device according to a sixth embodiment of the present application, and as shown in fig. 8, the master bluetooth device according to this embodiment may include:
a receiving module 11, configured to receive a channel quality report message sent by a slave bluetooth device, where the channel quality report message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device;
a determining module 12, configured to determine second state information of the plurality of BLE channels according to the first state information and the channel quality information of the plurality of BLE channels detected by the master bluetooth device, where each second state information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device;
a using module 13, configured to select an available channel from the plurality of BLE channels to communicate with the slave bluetooth device according to the second status information.
Optionally, a sending module 14 is further included, configured to send the second status information to the slave bluetooth device, so as to instruct the slave bluetooth device to select an available channel from the plurality of BLE channels to communicate with the master bluetooth device.
In an exemplary manner, the determining module 12 is specifically configured to:
and determining second state information of the plurality of BLE channels according to the first state information, the plurality of low-power Bluetooth low-energy device channel quality information and the type of the current Bluetooth service.
In an exemplary manner, the determining module 12 is specifically configured to:
determining the channel quality requirement of a BLE channel according to the type of the current Bluetooth service;
determining candidate BLE channels with channel quality meeting the channel quality requirement from the plurality of BLE channels according to the first state information and the plurality of Bluetooth low energy device channel quality information;
determining, from the candidate BLE channels, that a channel available for a BLE channel is an available BLE channel, when the number of candidate BLE channels is greater than a preset number;
determining that the candidate BLE channel is an available BLE channel when the number of the candidate BLE channels is not greater than a preset number;
determining that channels of the plurality of BLE channels other than an available BLE channel are unavailable BLE channels.
In an exemplary manner, the sending module 14 is further configured to send a first request message to the slave bluetooth device, where the first request message is used to instruct the slave bluetooth device to start a channel quality reporting function.
In an exemplary manner, the receiving module 11 is further configured to: and receiving a response message of the first request message sent by the slave Bluetooth equipment, wherein the response message of the first request message is used for informing that the slave Bluetooth equipment agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the sending module 14 is further configured to: and sending a second request message to the slave Bluetooth equipment, wherein the second request message is used for indicating the slave Bluetooth equipment to close the channel quality reporting function.
In an exemplary manner, the receiving module 11 is further configured to: and receiving a response message of the second request message sent by the slave Bluetooth device, wherein the response message of the second request message is used for informing that the slave Bluetooth device agrees to close or refuses to close the channel quality reporting function.
In an exemplary manner, the receiving module 11 is further configured to: and receiving a third request message sent by the slave Bluetooth device, where the third request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be started.
In an exemplary manner, the sending module 14 is further configured to send a response message of the third request message to the slave bluetooth device, where the response message of the third request message is used to notify that the slave bluetooth device is granted or denied to start the channel quality reporting function.
In an exemplary manner, the receiving module 11 is further configured to: and receiving a fourth request message sent by the slave Bluetooth device, where the fourth request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be closed.
In an exemplary manner, the sending module 14 is further configured to: and sending a response message of a fourth request message to the slave Bluetooth equipment, wherein the response message of the fourth request message is used for informing that the slave Bluetooth equipment agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the master bluetooth device establishes a bluetooth low energy connection with the slave bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
In an exemplary manner, the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device is a broadcaster, and the slave bluetooth device is a scanner.
The master bluetooth device of this embodiment may be configured to execute the method executed by the master bluetooth device in any of the method embodiments, and the specific implementation manner and the technical effect are similar and will not be described herein again.
Fig. 9 is a schematic structural diagram of a slave bluetooth device according to a seventh embodiment of the present application, and as shown in fig. 9, the slave bluetooth device according to the present embodiment may include:
a sending module 21, configured to send a channel quality report message to a master bluetooth device, where the channel quality report message includes first state information of a plurality of BLE channels detected by the slave bluetooth device, and each piece of first state information is used to indicate whether a corresponding BLE channel is available for the slave bluetooth device;
a receiving module 22, configured to receive second status information of the plurality of BLE channels sent by the master bluetooth device, where each second status information is used to indicate whether a corresponding BLE channel is available for the master bluetooth device and the slave bluetooth device;
a using module 23, configured to communicate with the master bluetooth device using an available BLE channel according to the second status information of the plurality of BLE channels.
In an exemplary manner, the receiving module 22 is further configured to: and receiving a first request message sent by the master Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
In an exemplary manner, the sending module 21 is further configured to: and sending a response message of the first request message to the master Bluetooth device, wherein the response message of the first request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the receiving module 22 is further configured to: and receiving a second request message sent by the master Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
In an exemplary manner, the sending module 21 is further configured to: and sending a response message of the second request message to the master Bluetooth device, wherein the response message of the second request message is used for informing the slave Bluetooth device that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the sending module 21 is further configured to: and sending a third request message to the master Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device of starting a channel quality reporting function.
In an exemplary manner, the receiving module 22 is further configured to: and receiving a response message of the third request message sent by the master bluetooth device, wherein the response message of the third request message is used for informing that the slave bluetooth device agrees to or refuses to start a channel quality reporting function.
In an exemplary manner, the sending module 21 is further configured to: and sending a fourth request message to the master Bluetooth device, wherein the fourth request message is used for notifying the slave Bluetooth device of closing the channel quality reporting function.
In an exemplary manner, the receiving module 22 is further configured to: and receiving a response message of a fourth request message sent by the master Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
In an exemplary manner, the slave bluetooth device establishes a bluetooth low energy connection with the master bluetooth device, wherein the bluetooth device initiating creation of the bluetooth low energy connection is the master bluetooth device, and the bluetooth device accepting creation of the bluetooth low energy connection is the slave bluetooth device.
The master Bluetooth device and the slave Bluetooth device communicate in a broadcasting mode, the master Bluetooth device is a broadcasting party, and the slave Bluetooth device is a scanning party.
The slave bluetooth device of this embodiment may be configured to execute the method executed by the slave bluetooth device in any of the above method embodiments, and the specific implementation manner and the technical effect are similar and will not be described herein again.
Fig. 10 is a schematic structural diagram of a bluetooth device according to an eighth embodiment of the present application, and as shown in fig. 10, the bluetooth device 300 includes: the processor 31, the memory 32, and the transceiver 33, where the memory 32 and the transceiver 33 are connected to and communicate with the processor 31 through a bus, the memory 32 is used to store instructions, the transceiver 33 is used to communicate with other devices, and the processor 31 is used to execute the instructions stored in the memory, so that the bluetooth device 300 executes the method executed by the master bluetooth device or the slave bluetooth device in any of the above method embodiments, and specific implementation and technical effects are similar, and are not described herein again.
An embodiment ninth of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the method executed by the master bluetooth device or the slave bluetooth device in the foregoing method embodiment, and specific implementation and technical effects are similar, and are not described herein again.
Fig. 11 is a schematic structural diagram of a bluetooth system provided in a tenth embodiment of the present application, and as shown in fig. 11, the bluetooth system includes a master bluetooth device 400 and a slave bluetooth device 500, where the master bluetooth device 400 is configured to execute a method executed by the master bluetooth device in any one of the above method embodiments, and the slave bluetooth device 400 is configured to execute a method executed by the slave bluetooth device in any one of the above method embodiments, and specific implementation manners and technical effects are similar, and are not described again here.
It is understood that the processor used in the bluetooth device in the embodiments of the present application may be a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others.
The bus described in the embodiments of the present application may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced industrial Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (53)

  1. A method for channel selection for a bluetooth low energy device, comprising:
    the method comprises the steps that a master Bluetooth device receives a channel quality reporting message sent by a slave Bluetooth device, wherein the channel quality reporting message comprises first state information of a plurality of low-power-consumption Bluetooth channels detected by the slave Bluetooth device, and each piece of first state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel is available for the slave Bluetooth device;
    the master Bluetooth device determines second state information of the plurality of Bluetooth low energy channels according to the first state information and the channel quality information of the plurality of Bluetooth low energy channels detected by the master Bluetooth device, wherein each piece of second state information is used for indicating whether the corresponding Bluetooth low energy channel is available for the master Bluetooth device and the slave Bluetooth device;
    and the master Bluetooth device selects an available channel from the plurality of low-power Bluetooth channels to communicate with the slave Bluetooth device according to the second state information.
  2. The method of claim 1, further comprising:
    the master bluetooth device sends the second status information to the slave bluetooth device to instruct the slave bluetooth device to select an available channel from the plurality of bluetooth low energy channels to communicate with the master bluetooth device.
  3. The method of claim 1 or 2, wherein the master bluetooth device determines second state information of the plurality of bluetooth low energy channels according to the first state information and the channel quality information of the plurality of bluetooth low energy channels detected by the master bluetooth device, and comprises:
    and the master Bluetooth device determines second state information of the plurality of low-power Bluetooth channels according to the first state information, the channel quality information of the plurality of low-power Bluetooth channels and the type of the current Bluetooth service.
  4. The method of claim 3, wherein the determining, by the master Bluetooth device, the second state information of the plurality of Bluetooth low energy channels according to the first state information, the channel quality information of the plurality of Bluetooth low energy channels, and the type of current Bluetooth service comprises:
    the master Bluetooth device determines the channel quality requirement of a low-power Bluetooth channel according to the type of the current Bluetooth service;
    the master Bluetooth device determines a candidate Bluetooth low energy channel with channel quality meeting the channel quality requirement from the plurality of Bluetooth low energy channels according to the first state information and the channel quality information of the plurality of Bluetooth low energy channels;
    when the number of the candidate Bluetooth low energy channels is larger than the preset number, determining that the channel which is indicated by the first state information and available by the Bluetooth low energy channels is an available Bluetooth low energy channel from the candidate Bluetooth low energy channels;
    when the number of the candidate Bluetooth low energy channels is not more than the preset number, determining the candidate Bluetooth low energy channels as available Bluetooth low energy channels;
    and determining the channels except the available low-power-consumption Bluetooth channels in the plurality of low-power-consumption Bluetooth channels as unavailable low-power-consumption Bluetooth channels.
  5. The method according to any of claims 1-4, wherein before the master Bluetooth device receives the channel quality report message sent from the Bluetooth device, the method further comprises:
    the master Bluetooth device sends a first request message to the slave Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
  6. The method of claim 5, wherein after the master Bluetooth device sends the first request message to the slave Bluetooth device, further comprising:
    and the master Bluetooth device receives a response message of the first request message sent by the slave Bluetooth device, wherein the response message of the first request message is used for informing the slave Bluetooth device that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
  7. The method of claim 5 or 6, further comprising:
    and the master Bluetooth device sends a second request message to the slave Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
  8. The method of claim 7, wherein after the master Bluetooth device sends the second request message to the slave Bluetooth device, further comprising:
    and the master Bluetooth device receives a response message of the second request message sent by the slave Bluetooth device, wherein the response message of the second request message is used for informing that the slave Bluetooth device agrees to close or refuses to close the channel quality reporting function.
  9. The method according to any of claims 1-4, wherein before the master Bluetooth device receives the channel quality report message sent from the Bluetooth device, the method further comprises:
    and the master Bluetooth device receives a third request message sent by the slave Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device of starting a channel quality reporting function.
  10. The method of claim 9, wherein after the master bluetooth device receives the third request message sent by the slave bluetooth device, further comprising:
    and the master Bluetooth device sends a response message of the third request message to the slave Bluetooth device, wherein the response message of the third request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
  11. The method of claim 9 or 10, further comprising:
    and the master Bluetooth device receives a fourth request message sent by the slave Bluetooth device, wherein the fourth request message is used for informing the slave Bluetooth device of closing the channel quality reporting function.
  12. The method of claim 11, wherein after the master bluetooth device receives the fourth request message sent by the slave bluetooth device, further comprising:
    and the master Bluetooth device sends a response message of a fourth request message to the slave Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
  13. The method of any of claims 1-12, wherein the master bluetooth device establishes a bluetooth low energy connection with the slave bluetooth device, wherein the bluetooth device that initiated the creation of the bluetooth low energy connection is the master bluetooth device, and wherein the bluetooth device that accepted the creation of the bluetooth low energy connection is the slave bluetooth device.
  14. The method of any of claims 1-12, wherein the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, wherein the master bluetooth device is a broadcaster and the slave bluetooth device is a scanner.
  15. A method for channel selection for a bluetooth low energy device, comprising:
    the method comprises the steps that a slave Bluetooth device sends a channel quality reporting message to a master Bluetooth device, wherein the channel quality reporting message comprises first state information of a plurality of low-power-consumption Bluetooth channels detected by the slave Bluetooth device, and each piece of first state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel is available for the slave Bluetooth device;
    the slave Bluetooth device receives second state information of the plurality of Bluetooth low energy channels sent by the master Bluetooth device, wherein each second state information is used for indicating whether the corresponding Bluetooth low energy channel can be used by the master Bluetooth device and the slave Bluetooth device;
    the slave Bluetooth device communicates with the master Bluetooth device using an available Bluetooth low energy channel according to the second state information of the plurality of Bluetooth low energy channels.
  16. The method of claim 15, wherein before the slave bluetooth device sends the channel quality reporting message to the master bluetooth device, the method further comprises:
    the slave Bluetooth device receives a first request message sent by the master Bluetooth device, where the first request message is used to instruct the slave Bluetooth device to start a channel quality reporting function.
  17. The method of claim 16, wherein after receiving the first request message sent by the master bluetooth device, the slave bluetooth device further comprises:
    and the slave Bluetooth equipment sends a response message of the first request message to the master Bluetooth equipment, wherein the response message of the first request message is used for informing that the slave Bluetooth equipment agrees to or refuses to start a channel quality reporting function.
  18. The method of claim 16 or 17, further comprising:
    and the slave Bluetooth equipment receives a second request message sent by the master Bluetooth equipment, wherein the second request message is used for indicating the slave Bluetooth equipment to close the channel quality reporting function.
  19. The method of claim 18, wherein after receiving the second request message sent by the master bluetooth device, the slave bluetooth device further comprises:
    and the slave Bluetooth equipment sends a response message of the second request message to the master Bluetooth equipment, wherein the response message of the second request message is used for informing that the slave Bluetooth equipment agrees or refuses to close the channel quality reporting function.
  20. The method of claim 15, wherein before the slave bluetooth device sends the channel quality reporting message to the master bluetooth device, the method further comprises:
    and the slave Bluetooth equipment sends a third request message to the master Bluetooth equipment, wherein the third request message is used for informing the slave Bluetooth equipment of starting a channel quality reporting function.
  21. The method of claim 20, wherein after the slave bluetooth device sends the third request message to the master bluetooth device, further comprising:
    and the slave Bluetooth device receives a response message of the third request message sent by the master Bluetooth device, wherein the response message of the third request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
  22. The method of claim 20 or 21, further comprising:
    and the slave Bluetooth equipment sends a fourth request message to the master Bluetooth equipment, wherein the fourth request message is used for informing the slave Bluetooth equipment of closing the channel quality reporting function.
  23. The method of claim 22, wherein after receiving the fourth request message sent by the master bluetooth device, the slave bluetooth device further comprises:
    and the slave Bluetooth equipment receives a response message of a fourth request message sent by the master Bluetooth equipment, wherein the response message of the fourth request message is used for informing that the slave Bluetooth equipment agrees or refuses to close the channel quality reporting function.
  24. The method of any of claims 15-23, wherein the slave bluetooth device establishes a bluetooth low energy connection with the master bluetooth device, wherein the bluetooth device that initiated the creation of the bluetooth low energy connection is the master bluetooth device, and wherein the bluetooth device that accepted the creation of the bluetooth low energy connection is the slave bluetooth device.
  25. The method of any of claims 15-23, wherein the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, wherein the master bluetooth device is a broadcaster and the slave bluetooth device is a scanner.
  26. A master bluetooth device, comprising:
    a receiving module, configured to receive a channel quality report message sent by a slave bluetooth device, where the channel quality report message includes first state information of multiple bluetooth low energy channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding bluetooth low energy channel is available for the slave bluetooth device;
    a determining module, configured to determine second state information of the multiple bluetooth low energy channels according to the first state information and the channel quality information of the multiple bluetooth low energy channels detected by the master bluetooth device, where each second state information is used to indicate whether a corresponding bluetooth low energy channel is available for the master bluetooth device and the slave bluetooth device;
    a use module for selecting an available channel from the plurality of Bluetooth Low energy channels to communicate with the slave Bluetooth device based on the second status information.
  27. The apparatus of claim 26, further comprising:
    a sending module, configured to send the second status information to the slave bluetooth device to instruct the slave bluetooth device to select an available channel from the multiple bluetooth low energy channels to communicate with the master bluetooth device.
  28. The device according to claim 26 or 27, wherein the determining module is specifically configured to:
    and determining second state information of the plurality of low-power Bluetooth channels according to the first state information, the channel quality information of the plurality of low-power Bluetooth devices and the type of the current Bluetooth service.
  29. The device of claim 28, wherein the determination module is specifically configured to:
    determining the channel quality requirement of a low-power-consumption Bluetooth channel according to the type of the current Bluetooth service;
    determining candidate Bluetooth low energy channels with channel quality meeting the channel quality requirement from the plurality of Bluetooth low energy channels according to the first state information and the plurality of Bluetooth low energy device channel quality information;
    when the number of the candidate Bluetooth low energy channels is larger than the preset number, determining that the channel which is indicated by the first state information and available by the Bluetooth low energy channels is an available Bluetooth low energy channel from the candidate Bluetooth low energy channels;
    when the number of the candidate Bluetooth low energy channels is not more than the preset number, determining the candidate Bluetooth low energy channels as available Bluetooth low energy channels;
    and determining the channels except the available low-power-consumption Bluetooth channels in the plurality of low-power-consumption Bluetooth channels as unavailable low-power-consumption Bluetooth channels.
  30. The apparatus of any one of claims 26-29, further comprising:
    a sending module, configured to send a first request message to the slave bluetooth device, where the first request message is used to instruct the slave bluetooth device to start a channel quality reporting function.
  31. The device of claim 30, wherein the receiving module is further configured to:
    and receiving a response message of the first request message sent by the slave Bluetooth equipment, wherein the response message of the first request message is used for informing that the slave Bluetooth equipment agrees to or refuses to start a channel quality reporting function.
  32. The apparatus of claim 30 or 31, wherein the sending module is further configured to:
    and sending a second request message to the slave Bluetooth equipment, wherein the second request message is used for indicating the slave Bluetooth equipment to close the channel quality reporting function.
  33. The device of claim 32, wherein the receiving module is further configured to:
    and receiving a response message of the second request message sent by the slave Bluetooth device, wherein the response message of the second request message is used for informing that the slave Bluetooth device agrees to close or refuses to close the channel quality reporting function.
  34. The apparatus of any one of claims 26-29, wherein the receiving module is further configured to:
    and receiving a third request message sent by the slave Bluetooth device, where the third request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be started.
  35. The apparatus of claim 34, further comprising:
    a sending module, configured to send a response message of the third request message to the slave bluetooth device, where the response message of the third request message is used to notify that the slave bluetooth device agrees to or refuses to start a channel quality reporting function.
  36. The apparatus of claim 34 or 35, wherein the receiving module is further configured to:
    and receiving a fourth request message sent by the slave Bluetooth device, where the fourth request message is used to notify the slave Bluetooth device that a channel quality reporting function is to be closed.
  37. The apparatus of claim 36, further comprising:
    a sending module, configured to send a response message of a fourth request message to the slave bluetooth device, where the response message of the fourth request message is used to notify that the slave bluetooth device agrees to or refuses to close a channel quality reporting function.
  38. The device of any of claims 26-37, wherein the master bluetooth device establishes a bluetooth low energy connection with the slave bluetooth device, wherein the bluetooth device that initiated the creation of the bluetooth low energy connection is the master bluetooth device, and wherein the bluetooth device that accepted the creation of the bluetooth low energy connection is the slave bluetooth device.
  39. The device of any of claims 26-37, wherein the master bluetooth device and the slave bluetooth device communicate in a broadcast manner, the master bluetooth device being a broadcaster and the slave bluetooth device being a scanner.
  40. A slave bluetooth device, comprising:
    a sending module, configured to send a channel quality report message to a master bluetooth device, where the channel quality report message includes first state information of multiple low power consumption bluetooth channels detected by the slave bluetooth device, and each piece of the first state information is used to indicate whether a corresponding bluetooth low power consumption channel is available for the slave bluetooth device;
    the receiving module is used for receiving second state information of the plurality of low-power-consumption Bluetooth channels sent by the master Bluetooth device, wherein each piece of second state information is used for indicating whether the corresponding low-power-consumption Bluetooth channel can be used by the master Bluetooth device and the slave Bluetooth device;
    and the using module is used for communicating with the main Bluetooth device by using the available low-power-consumption Bluetooth channels according to the second state information of the plurality of low-power-consumption Bluetooth channels.
  41. The device of claim 40, wherein the receiving module is further configured to:
    and receiving a first request message sent by the master Bluetooth device, wherein the first request message is used for indicating the slave Bluetooth device to start a channel quality reporting function.
  42. The device of claim 41, wherein the sending module is further configured to:
    and sending a response message of the first request message to the master Bluetooth device, wherein the response message of the first request message is used for informing that the slave Bluetooth device agrees to or refuses to start a channel quality reporting function.
  43. The device of claim 41 or 42, wherein the receiving module is further configured to:
    and receiving a second request message sent by the master Bluetooth device, wherein the second request message is used for indicating the slave Bluetooth device to close the channel quality reporting function.
  44. The device of claim 43, wherein the sending module is further configured to:
    and sending a response message of the second request message to the master Bluetooth device, wherein the response message of the second request message is used for informing the slave Bluetooth device that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
  45. The device of claim 40, wherein the sending module is further configured to:
    and sending a third request message to the master Bluetooth device, wherein the third request message is used for informing the slave Bluetooth device of starting a channel quality reporting function.
  46. The device of claim 45, wherein the receiving module is further configured to:
    and receiving a response message of the third request message sent by the master bluetooth device, wherein the response message of the third request message is used for informing that the slave bluetooth device agrees to or refuses to start a channel quality reporting function.
  47. The device of claim 45 or 46, wherein the sending module is further configured to:
    and sending a fourth request message to the master Bluetooth device, wherein the fourth request message is used for notifying the slave Bluetooth device of closing the channel quality reporting function.
  48. The device of claim 47, wherein the receiving module is further configured to:
    and receiving a response message of a fourth request message sent by the master Bluetooth device, wherein the response message of the fourth request message is used for informing that the slave Bluetooth device agrees or refuses to close the channel quality reporting function.
  49. The device of any of claims 40-48, wherein the slave Bluetooth device establishes a Bluetooth low energy connection with the master Bluetooth device, wherein the Bluetooth device that initiated the creation of the Bluetooth low energy connection is the master Bluetooth device, and wherein the Bluetooth device that accepted the creation of the Bluetooth low energy connection is the slave Bluetooth device.
  50. The device of any of claims 40-48, wherein the master Bluetooth device and the slave Bluetooth device communicate in a broadcast manner, the master Bluetooth device being a broadcaster and the slave Bluetooth device being a scanner.
  51. A master bluetooth device, comprising a processor, a memory for storing instructions, and a transceiver for communicating with other devices, the processor being configured to execute the instructions stored in the memory to cause the master bluetooth device to perform the method of any one of claims 1-14.
  52. A slave bluetooth device comprising a processor, a memory for storing instructions, and a transceiver for communicating with other devices, the processor being configured to execute the instructions stored in the memory to cause the slave bluetooth device to perform the method of any one of claims 15-25.
  53. A bluetooth system comprising a master bluetooth device for performing the method of any one of claims 1-14 and a slave bluetooth device for performing the method of any one of claims 15-25.
CN201980097046.0A 2019-06-20 2019-06-20 Channel selection method and device for low-power consumption Bluetooth equipment Active CN113906773B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/092152 WO2020252755A1 (en) 2019-06-20 2019-06-20 Channel selection method and apparatus of bluetooth low energy device

Publications (2)

Publication Number Publication Date
CN113906773A true CN113906773A (en) 2022-01-07
CN113906773B CN113906773B (en) 2023-11-28

Family

ID=74037134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980097046.0A Active CN113906773B (en) 2019-06-20 2019-06-20 Channel selection method and device for low-power consumption Bluetooth equipment

Country Status (2)

Country Link
CN (1) CN113906773B (en)
WO (1) WO2020252755A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499037A (en) * 2022-09-09 2022-12-20 安克创新科技股份有限公司 Bluetooth device, equipment system and channel switching method thereof

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490190A (en) * 2021-06-21 2021-10-08 合肥星空物联信息科技有限公司 Method and system for alleviating earphone recording and audio transmission bandwidth
CN115767490A (en) * 2022-07-19 2023-03-07 珠海市杰理科技股份有限公司 True wireless Bluetooth headset and communication method, device and system thereof
CN115278625A (en) * 2022-07-26 2022-11-01 哲库科技(上海)有限公司 Method, device, equipment and system for transmitting Bluetooth multimedia packet
CN115038051B (en) * 2022-08-12 2022-11-08 北京智芯微电子科技有限公司 Information reporting method, receiving method, device, equipment and medium based on Bluetooth

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391477A (en) * 2015-12-15 2016-03-09 小米科技有限责任公司 A communication method and device between bluetooth devices
CN105916177A (en) * 2016-05-30 2016-08-31 北京小米移动软件有限公司 Method and device for wireless communication
CN109076035A (en) * 2016-09-30 2018-12-21 华为技术有限公司 A kind of information uploading method and device
WO2019013683A1 (en) * 2017-07-14 2019-01-17 Telefonaktiebolaget Lm Ericsson (Publ) Method and device for connection-less advertising in bluetooth low energy

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878926B (en) * 2017-02-08 2020-11-06 泰凌微电子(上海)有限公司 Data transmission method based on low-power-consumption Bluetooth, slave master device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391477A (en) * 2015-12-15 2016-03-09 小米科技有限责任公司 A communication method and device between bluetooth devices
CN105916177A (en) * 2016-05-30 2016-08-31 北京小米移动软件有限公司 Method and device for wireless communication
CN109076035A (en) * 2016-09-30 2018-12-21 华为技术有限公司 A kind of information uploading method and device
WO2019013683A1 (en) * 2017-07-14 2019-01-17 Telefonaktiebolaget Lm Ericsson (Publ) Method and device for connection-less advertising in bluetooth low energy

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499037A (en) * 2022-09-09 2022-12-20 安克创新科技股份有限公司 Bluetooth device, equipment system and channel switching method thereof

Also Published As

Publication number Publication date
WO2020252755A1 (en) 2020-12-24
CN113906773B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN113906773A (en) Channel selection method and device of low-power-consumption Bluetooth device
CN110557777B (en) Network connection control method, terminal and storage medium
JP2021517434A (en) Information reporting method, terminals and network equipment
CN101668350B (en) Mobile-terminal state-switching method and mobile terminal
CN107820723B (en) Frequency selection method, random access method and device
CN111818503B (en) Voice communication method, system, chip, electronic equipment and storage medium
KR100917555B1 (en) Electronic apparatus, presence communication device, and computer-readable recording medium
CN103458125A (en) High-grade privacy smart phone and method for protecting private information thereof
WO2006052560A2 (en) System and method for dynamic power savings for short range wireless systems
CN112821963B (en) Method and device for reducing interference to loudspeaker and electronic equipment
TW201944817A (en) Mobile terminal and method of controlling power consumption in a computing device
CN104065832A (en) Method and device for preventing mobile terminals from missing calls
CN103516719A (en) Providing presence information in a personal communication system comprising an interface unit
US20230209519A1 (en) Wireless communication method and apparatus, terminal, and storage medium
US20170034779A1 (en) Call processing method and apparatus thereof
JP5675669B2 (en) Access point device and wireless communication method
JP2005051416A (en) Wireless communication terminal
CN110621022A (en) Resource indication method, device and system
WO2021128925A1 (en) Information processing method and apparatus, and device and computer readable storage medium
CN104468955A (en) Information processing method and electronic equipment
CN111757381B (en) Transmission method, network equipment and terminal
CN113271385A (en) Call forwarding method
CN114269003A (en) AI terminal equipment for realizing broadband and narrowband integrated communication
WO2018201988A1 (en) System information transmission method, terminal and base station
WO2022257926A1 (en) Sidelink-based relay service method and apparatus, terminal, and network-side device

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
GR01 Patent grant
GR01 Patent grant