CN113382393B - Bluetooth connection method and device, storage medium and electronic equipment - Google Patents

Bluetooth connection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113382393B
CN113382393B CN202010116961.4A CN202010116961A CN113382393B CN 113382393 B CN113382393 B CN 113382393B CN 202010116961 A CN202010116961 A CN 202010116961A CN 113382393 B CN113382393 B CN 113382393B
Authority
CN
China
Prior art keywords
bluetooth
bluetooth connection
event
message
connection
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.)
Active
Application number
CN202010116961.4A
Other languages
Chinese (zh)
Other versions
CN113382393A (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.)
Actions Technology Co Ltd
Original Assignee
Actions Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Actions Technology Co Ltd filed Critical Actions Technology Co Ltd
Priority to CN202010116961.4A priority Critical patent/CN113382393B/en
Publication of CN113382393A publication Critical patent/CN113382393A/en
Application granted granted Critical
Publication of CN113382393B publication Critical patent/CN113382393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The disclosure relates to a Bluetooth connection method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: alternately executing a first Bluetooth connection event and a second Bluetooth connection event; under the condition of executing the first Bluetooth connection event, if a Bluetooth connection response message sent by the second Bluetooth device is received, establishing Bluetooth connection with the second Bluetooth device; or under the condition of executing a second Bluetooth connection event, if a second Bluetooth connection message broadcast by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message. In this way, since the first bluetooth connection event and the second bluetooth connection event are alternately performed, a bluetooth connection can also be established for the same type of bluetooth device.

Description

Bluetooth connection method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of bluetooth, and in particular relates to a bluetooth connection method, a device, a storage medium and electronic equipment.
Background
With the continuous development of electronic technology, particularly the rapid development of bluetooth technology, more and more devices have bluetooth functions, and short-distance data transmission and synchronization are realized through the bluetooth functions. The bluetooth with low power consumption is adopted by more and more intelligent devices because of the characteristic of ultra-low power consumption, for example, the bluetooth technology can wirelessly connect a bluetooth sound box with a user terminal (mobile phone, bracelet, tablet computer, etc.) within a short distance range, and play music.
In the related art, in two bluetooth devices for establishing bluetooth connection, if one bluetooth device is a master device, the other bluetooth device is a slave device. In the process of Bluetooth connection, the master device is in a scanning state, and the slave device is in a broadcasting state, so that the connection success of the two Bluetooth devices can be ensured. However, if two bluetooth devices are the same type of device (e.g., both master devices or both slave devices), then no bluetooth connection can be established.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a bluetooth connection method, a device, a storage medium, and an electronic apparatus.
In a first aspect, the present disclosure provides a bluetooth connection method, applied to a first bluetooth device, the method including: alternately executing a first Bluetooth connection event and a second Bluetooth connection event; wherein the first bluetooth connection event comprises broadcasting a first bluetooth connection message and the second bluetooth connection event comprises scanning a second bluetooth connection message; the event execution time of each execution of the first Bluetooth connection event and the second Bluetooth connection event is randomly determined; under the condition of executing the first Bluetooth connection event, if a Bluetooth connection response message sent by a second Bluetooth device is received, establishing Bluetooth connection with the second Bluetooth device; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message.
Optionally, the establishing a bluetooth connection with the second bluetooth device according to the second bluetooth connection message includes: determining whether the second Bluetooth device meets preset Bluetooth connection conditions according to the second Bluetooth connection message; and if the second Bluetooth device meets the preset Bluetooth connection condition, sending a Bluetooth connection establishment message to the second Bluetooth device, so that the second Bluetooth device establishes Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
Optionally, the second bluetooth connection message includes at least one of signal strength and device information; in the case that the second bluetooth connection message includes the signal strength, the preset bluetooth connection condition includes: the signal intensity is larger than a preset intensity threshold value; and/or, in the case that the second bluetooth connection message includes the device information, the preset bluetooth connection condition includes: the device information is the same as the preset pairing device information.
Optionally, before the alternately executing the first bluetooth connection event and the second bluetooth connection event, the method further comprises: receiving a connection event selection instruction, wherein the connection event selection instruction is used for indicating to execute the first Bluetooth connection event or the second Bluetooth connection event; and executing the first Bluetooth connection event or the second Bluetooth connection event according to the connection event selection instruction.
Optionally, after the alternately executing the first bluetooth connection event and the second bluetooth connection event, the method further comprises: and stopping alternately executing the first Bluetooth connection event and the second Bluetooth connection event after a preset stopping condition is met.
Optionally, the preset stop condition includes any one of the following: receiving an event stopping instruction, wherein the event stopping instruction is used for indicating stopping alternately executing the first Bluetooth connection event and the second Bluetooth connection event; establishing a Bluetooth connection with the second Bluetooth device; and when the preset time is reached, the Bluetooth connection with the second Bluetooth device is not established.
In a second aspect, the present disclosure provides a bluetooth connection apparatus for use with a first bluetooth device, the apparatus comprising: the connection event execution module is used for alternately executing a first Bluetooth connection event and a second Bluetooth connection event; wherein the first bluetooth connection event includes broadcasting a first bluetooth connection message and the second bluetooth connection event includes scanning a second bluetooth connection message; the event execution time of each execution of the first Bluetooth connection event and the second Bluetooth connection event is randomly determined; the Bluetooth connection establishment module is used for establishing Bluetooth connection with the second Bluetooth device if a Bluetooth connection response message sent by the second Bluetooth device is received under the condition of executing the first Bluetooth connection event; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message.
Optionally, the bluetooth connection establishment module is specifically configured to: determining whether the second Bluetooth device meets preset Bluetooth connection conditions according to the second Bluetooth connection message; and if the second Bluetooth device meets the preset Bluetooth connection condition, sending a Bluetooth connection establishment message to the second Bluetooth device, so that the second Bluetooth device establishes Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
In a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides an electronic device comprising: a memory having a computer program stored thereon; a processor for executing the computer program in the memory to implement the steps of the method of the first aspect of the disclosure.
Through the technical scheme, the first Bluetooth device receives the Bluetooth connection request message; in response to receiving the bluetooth connection request message, alternately executing a first bluetooth connection event and a second bluetooth connection event; wherein the first bluetooth connection event comprises broadcasting a first bluetooth connection message and the second bluetooth connection event comprises scanning a second bluetooth connection message; the event execution time of each execution of the first Bluetooth connection event and the second Bluetooth connection event is randomly determined; under the condition of executing the first Bluetooth connection event, if a Bluetooth connection response message sent by a second Bluetooth device is received, establishing Bluetooth connection with the second Bluetooth device; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message. In this way, since the first bluetooth connection event and the second bluetooth connection event are alternately performed, a bluetooth connection can also be established for the same type of bluetooth device.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
Fig. 1 is a flowchart of a bluetooth connection method provided in an embodiment of the present disclosure;
fig. 2 is a flowchart of a second bluetooth connection method provided by an embodiment of the present disclosure;
fig. 3 is a flowchart of a third bluetooth connection method provided by an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a bluetooth connection device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a second bluetooth connection device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a third bluetooth connection device according to an embodiment of the present disclosure;
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
In the following description, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying a relative importance or order.
First, an application scenario of the present disclosure will be described. The Bluetooth connection establishment method and device can be applied to the scene that Bluetooth devices establish Bluetooth connection, in the related technology, two Bluetooth devices establishing Bluetooth connection are different types of Bluetooth devices, namely one Bluetooth device is a master device, and the other Bluetooth device is a slave device. In the Bluetooth connection process, the slave device is used for broadcasting a Bluetooth connection message, and the master device is used for scanning the Bluetooth connection message broadcast by the slave device and establishing Bluetooth connection with the slave device according to the Bluetooth connection message after scanning the Bluetooth connection message broadcast by the slave device. However, the inventor finds that, in the case that both bluetooth devices are master devices or slave devices, the two bluetooth devices cannot establish bluetooth connection, for example, if both bluetooth devices are master devices, since both the two master devices can only scan bluetooth connection messages and cannot broadcast bluetooth connection messages, both the two master devices cannot scan bluetooth connection messages, and thus cannot establish bluetooth connection of the two master devices; for another example, if both bluetooth devices are slave devices, both slave devices cannot scan bluetooth connection messages because both slave devices can only broadcast bluetooth connection messages, and therefore, both slave devices cannot scan bluetooth connection messages, so that bluetooth connection of both slave devices cannot be established.
In order to solve the above problems, the present disclosure provides a bluetooth connection method, apparatus, storage medium, and electronic device, where a first bluetooth device alternately executes a first bluetooth connection event and a second bluetooth connection event, and if a bluetooth connection response message sent by the second bluetooth device is received in the case of executing the first bluetooth connection event, establishes a bluetooth connection with the second bluetooth device; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message. Thus, since the first bluetooth connection event and the second bluetooth connection event are alternately performed, a bluetooth connection can be established for the same type of bluetooth device; in addition, when establishing bluetooth connection, need not the master-slave identity of fixed bluetooth equipment to the operational complexity when having simplified bluetooth equipment and connected has improved bluetooth connection's speed.
The bluetooth device mentioned in the present disclosure may be a bluetooth speaker, a smart phone, a bluetooth headset, a smart desk lamp, etc. capable of bluetooth connection, and of course, the above devices are only examples, which are not limited in this disclosure. The first bluetooth device and the second bluetooth device in the present disclosure may be the same type of device, or may be different types of devices.
Fig. 1 is a flowchart of a bluetooth connection method according to an embodiment of the present disclosure, where the method is applied to a first bluetooth device. As shown in fig. 1, the method may include:
s101, alternately executing a first Bluetooth connection event and a second Bluetooth connection event.
Wherein the first bluetooth connection event includes broadcasting a first bluetooth connection message and the second bluetooth connection event includes scanning for a second bluetooth connection message; the event execution time of the first bluetooth connection event and the second bluetooth connection event at each execution is randomly determined.
It should be noted that the first bluetooth device may receive the bluetooth connection request message, and alternately perform the first bluetooth connection event and the second bluetooth connection event in response to receiving the bluetooth connection request message. One possible implementation manner is that when the first bluetooth device is turned on, the first bluetooth device receives the bluetooth connection request message, for example, a switch key is provided on the first bluetooth device, when the first bluetooth device is turned off, if the switch key is triggered, the first bluetooth device is turned on, at this time, the first bluetooth device receives the bluetooth connection request message, so that after the first bluetooth device is turned on, the first bluetooth device can automatically enter a bluetooth connection mode without manual operation, thereby making the operation of bluetooth connection simpler.
Another possible implementation manner is that a bluetooth switch is provided on the first bluetooth device, where the bluetooth switch is used to turn on a bluetooth connection mode, and after the bluetooth switch is triggered, the first bluetooth device may receive the bluetooth connection request message, so that a user may control whether to turn on the bluetooth connection mode according to needs, so that the controllability of the first bluetooth device is stronger.
In this step, after receiving the bluetooth connection request message, the first bluetooth device may determine a first event execution time for executing the first bluetooth connection event, and execute the first bluetooth connection event at the first event execution time; thereafter, the first bluetooth device may determine a second event execution time at which a second bluetooth connection event is executed, and execute the second bluetooth connection event at the second event execution time. If the first bluetooth device does not establish a bluetooth connection at the first event execution time and the second event execution time, the first bluetooth device may redetermine a new first event execution time and execute the first bluetooth connection event at the new first event execution time, and then the first bluetooth device may redetermine a new second event execution time and execute the second bluetooth connection event at the new second event execution time.
It should be noted that, the first bluetooth device may determine a first event execution time before executing the first bluetooth connection event, and determine a second event execution time before executing the second bluetooth connection event; the first event execution time and the second event execution time may also be determined simultaneously before the first bluetooth connection event and the second bluetooth connection event are executed, and after the first bluetooth connection event is executed at the first event execution time, the second bluetooth connection event is executed at the second event execution time, which is not limited in the present disclosure.
The first event execution time and the second event execution time may be any values within a preset time interval, for example, the preset time interval may be 300ms to 3s, and the first bluetooth device may determine that the first event execution time is 300ms and determine that the second event execution time is 450ms; the first bluetooth device may also determine that the first event execution time is 1.5s, and determine that the second event execution time is 2s; the first bluetooth device may also determine that the first event execution time is 3s and the second event execution time is 2.5s, which is not limited by the present disclosure.
Taking two bluetooth speakers as an example, if a first bluetooth speaker determines that the execution time of a first event is 500ms after receiving a bluetooth connection request message, determines that the execution time of a second event is 800ms, broadcasts the first bluetooth connection message at the execution time of the first event, and scans the second bluetooth connection message at the execution time of the second event; if the second bluetooth speaker receives the bluetooth connection request message, it also determines that the execution time of the first event is 500ms, determines that the execution time of the second event is 800ms, broadcasts the second bluetooth connection message at the execution time of the first event, and scans the first bluetooth connection message at the execution time of the second event. If the first bluetooth speaker and the second bluetooth speaker receive the bluetooth connection request message simultaneously, the first bluetooth speaker and the second bluetooth speaker cannot scan the bluetooth connection message broadcasted by the opposite side at the first event execution time and the second event execution time, and the first bluetooth speaker and the second bluetooth speaker cannot establish bluetooth connection.
Further, the first bluetooth speaker may re-determine that the new first event execution time is 700ms, determine that the new second event execution time is 1s, broadcast the first bluetooth connection message at the new first event execution time, and scan the second bluetooth connection message at the new second event execution time; the second bluetooth speaker may also re-determine the new first event execution time to be 1s, determine the new second event execution time to be 500ms, and broadcast the second bluetooth connection message at the new first event execution time, and scan the first bluetooth connection message at the new second event execution time. Because the first bluetooth speaker starts to scan the second bluetooth connection message at the new second event execution time, the second bluetooth speaker also broadcasts the second bluetooth connection message at the new first event execution time, and thus the first bluetooth speaker can scan the second bluetooth connection message broadcast by the second bluetooth speaker.
In one possible implementation, the first bluetooth device may also receive a connection event selection instruction, where the connection event selection instruction may be used to instruct to execute the first bluetooth connection event or the second bluetooth connection event, and after receiving the connection event selection instruction, the first bluetooth device executes the first bluetooth connection event or the second bluetooth connection event according to the connection event selection instruction.
For example, the connection event selection instruction may include a first connection event selection instruction for instructing the first bluetooth device to broadcast the first bluetooth connection message and a second connection event selection instruction for instructing the first bluetooth device to scan for the second bluetooth connection message. The first bluetooth device may receive a connection event selection instruction triggered by a user through an instruction switch, for example, the instruction switch may include a first position and a second position, and when the instruction switch is switched to the first position, the first bluetooth device may receive the first connection event selection instruction; the first bluetooth device may receive a second connection event selection instruction when the instruction switch is switched to the second position. The first bluetooth device may broadcast a first bluetooth connection message after receiving the first connection event selection instruction, and the first bluetooth device may scan for a second bluetooth connection message after receiving the second connection event selection instruction.
In addition, if the first bluetooth device can only broadcast the first bluetooth connection message or scan the second bluetooth connection message, a bluetooth connection event allowed to be executed by the first bluetooth device may be preset, and after the first bluetooth device receives the bluetooth connection request message, the first bluetooth device starts to execute the preset bluetooth connection event; if the second bluetooth device can broadcast the second bluetooth connection message or scan the first bluetooth connection message, the second bluetooth device can determine a bluetooth connection event to be executed through the received connection event selection instruction. For example, if the first bluetooth device can only broadcast the first bluetooth connection message, the first bluetooth device may broadcast the first bluetooth connection message after receiving the bluetooth connection request message; if the second bluetooth device can broadcast the second bluetooth connection message or scan the first bluetooth connection message, the instruction switch of the second bluetooth device can be switched to the second position, and the second bluetooth device can scan the first bluetooth connection message broadcast by the first bluetooth device after receiving the second connection event selection instruction. In this way, when the bluetooth device establishes a bluetooth connection, a bluetooth connection event that the bluetooth device is allowed to perform can be determined according to the hardware configuration of the bluetooth device, so that more bluetooth devices can be adapted.
It should be noted that, the execution sequence of the first bluetooth connection event and the second bluetooth connection event may be random, for example, the first bluetooth device may randomly determine the execution sequence of the first bluetooth connection event and the second bluetooth connection event when determining the execution time of the first event and the execution time of the second event; the execution order of the first bluetooth connection event and the second bluetooth connection event may also be preset, for example, the first bluetooth device preset to execute the second bluetooth connection event at the first event execution time, and then execute the first bluetooth connection event at the second event execution time.
S102, under the condition of executing the first Bluetooth connection event, if a Bluetooth connection response message sent by the second Bluetooth device is received, establishing Bluetooth connection with the second Bluetooth device.
In this step, in the process that the first bluetooth device broadcasts the first bluetooth connection message during the execution time of the first event, if the second bluetooth device receives the first bluetooth connection message and determines that the first bluetooth device meets the bluetooth connection condition preset by the second bluetooth device according to the first bluetooth connection message, a bluetooth connection response message may be sent to the first bluetooth device. After receiving the bluetooth connection response message sent by the second bluetooth device, the first bluetooth device may establish a bluetooth connection with the second bluetooth device according to the bluetooth connection response message.
For example, if the first bluetooth device is a bluetooth speaker a, the second bluetooth device is a bluetooth speaker B, and the bluetooth speaker a needs to team with the bluetooth speaker B closest to the bluetooth speaker a, a device identifier of the bluetooth speaker allowed to team with the bluetooth speaker a may be preset, for example, may be "speaker B". After receiving the Bluetooth connection message, the Bluetooth sound box A can determine whether the equipment identifier in the Bluetooth connection message is a sound box B, and if the equipment identifier is the sound box B, the Bluetooth connection response message can be sent to the Bluetooth sound box B.
And S103, under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message.
In this step, in the process that the first bluetooth device scans the second bluetooth connection message at the execution time of the second event, if the second bluetooth connection message broadcasted by the second bluetooth device is scanned, it may be determined whether the second bluetooth device meets a preset bluetooth connection condition according to the second bluetooth connection message. If the second Bluetooth device meets the preset Bluetooth connection condition, a Bluetooth connection establishment message can be sent to the second Bluetooth device, and after the second Bluetooth device receives the Bluetooth connection establishment message sent by the first Bluetooth device, the second Bluetooth device can establish Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
Wherein the second bluetooth connection message may include at least one of signal strength and device information, which may include a device type, a device name, a bluetooth address, etc. If the signal intensity in the second Bluetooth connection message is larger than a preset intensity threshold value under the condition that the second Bluetooth connection message comprises the signal intensity, determining that the second Bluetooth device meets preset Bluetooth connection conditions; if the second Bluetooth connection message comprises equipment information, if the equipment information in the second Bluetooth connection message is the same as the preset pairing equipment information, determining that the second Bluetooth equipment meets the preset Bluetooth connection condition; and under the condition that the second Bluetooth connection message comprises signal intensity and equipment information, if the signal intensity in the second Bluetooth connection message is larger than a preset intensity threshold value and the equipment information in the second Bluetooth connection message is the same as the preset pairing equipment information, determining that the second Bluetooth equipment meets the preset Bluetooth connection condition.
Here, the preset intensity threshold may be determined according to a distance between two bluetooth devices that need to establish bluetooth connection, for example, bluetooth speaker a needs to team with bluetooth speaker B closest to bluetooth speaker a, and then may obtain a signal intensity of bluetooth speaker B received by bluetooth speaker a at a current distance, and use the signal intensity as the preset intensity threshold. The preset pairing device information may be a device type, a device name, a bluetooth address, or other information customized by a user, for example, a customized device name, etc., and the content of the preset pairing device information is not limited in this disclosure.
For example, if the first bluetooth device is a bluetooth speaker a, the second bluetooth device is a bluetooth speaker B, and the bluetooth speaker a needs to be formed with the bluetooth speaker B closest to the bluetooth speaker a, then a preset bluetooth connection condition of the bluetooth speaker a may be preset to be that the signal strength is greater than a preset strength threshold. The preset intensity threshold may be determined according to a distance between the bluetooth speaker a and the bluetooth speaker B, for example, a distance between the bluetooth speaker a and the bluetooth speaker B may be obtained, and the signal intensity of the bluetooth speaker B received by the bluetooth speaker a may be determined according to the distance, and if the distance is 10cm, and the signal intensity may be received by the bluetooth speaker a from-20 db to-30 db, the preset intensity threshold may be set to-30 db. After receiving the second Bluetooth connection message, the Bluetooth sound box A can determine whether the signal intensity in the second Bluetooth connection message is greater than-30 db, and if the signal intensity in the second Bluetooth connection message is greater than-30 db, the Bluetooth sound box B is determined to meet the preset Bluetooth connection condition of the Bluetooth sound box A. The bluetooth speaker a may send a bluetooth connection establishment message to the bluetooth speaker B, and the bluetooth speaker B may establish a bluetooth connection with the bluetooth speaker a according to the bluetooth connection establishment message after receiving the bluetooth connection establishment message sent by the bluetooth speaker a.
In addition, if the first bluetooth device does not establish bluetooth connection at the first event execution time and the second event execution time, the first bluetooth device may redetermine a new first event execution time and a new second event execution time, and alternately execute the first bluetooth connection event and the second bluetooth connection event until a preset stop condition is satisfied, and stop alternately executing the first bluetooth connection event and the second bluetooth connection event.
In one possible implementation manner, if the first bluetooth device receives the event stopping instruction, for example, when the first bluetooth device is turned on, if a switch key of the first bluetooth device is triggered, the first bluetooth device is turned off, at this time, the first bluetooth device receives the event stopping instruction, and stops alternately executing the first bluetooth connection event and the second bluetooth connection event.
In another possible implementation, if the first bluetooth device establishes a bluetooth connection with the second bluetooth device, or the first bluetooth device does not establish a bluetooth connection with the second bluetooth device when a preset time is reached, the alternating execution of the first bluetooth connection event and the second bluetooth connection event is stopped. The preset time may be a preset bluetooth connection duration, for example, 3s, 5s, etc., which is not limited in this disclosure.
It should be noted that, before the first bluetooth device alternately executes the first bluetooth connection event and the second bluetooth connection event, the device state of the first bluetooth device may be obtained, and if the first bluetooth device has the second bluetooth device that is successfully paired, the first bluetooth device may directly establish bluetooth connection with the second bluetooth device, without alternately executing the first bluetooth connection event and the second bluetooth connection event.
By adopting the method, after the first Bluetooth device receives the Bluetooth connection request message, the first Bluetooth connection event and the second Bluetooth connection event are alternately executed, and if the Bluetooth connection response message sent by the second Bluetooth device is received under the condition of executing the first Bluetooth connection event, the Bluetooth connection with the second Bluetooth device is established; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message. Thus, since the first bluetooth connection event and the second bluetooth connection event are alternately performed, a bluetooth connection can be established for the same type of bluetooth device; in addition, when establishing bluetooth connection, need not the master-slave identity of fixed bluetooth equipment to the operational complexity when having simplified bluetooth equipment and connected has improved bluetooth connection's speed.
The above bluetooth connection method will be described by taking a bluetooth speaker as an example.
Example one:
As shown in fig. 2, the first bluetooth device is a first bluetooth speaker, the second bluetooth device is a second bluetooth speaker, and after the switch keys of the first bluetooth speaker and the second bluetooth speaker are triggered, the first bluetooth speaker and the second bluetooth speaker can receive a bluetooth connection request message. After receiving the bluetooth connection request message, the first bluetooth speaker may randomly determine an order of executing bluetooth connection events, for example, execute the first bluetooth connection event first, then execute the second bluetooth connection event, and determine that an execution time of the first event for executing the first bluetooth connection event is 1.2s; after receiving the bluetooth connection request message, the second bluetooth speaker may also randomly determine the order of executing the bluetooth connection events, for example, execute the second bluetooth connection event first, then execute the first bluetooth connection event, and determine that the execution time of the first event for executing the second bluetooth connection event is 1s.
If the time that the switch keys of the first Bluetooth sound box and the second Bluetooth sound box are triggered is the same, when the first Bluetooth sound box starts broadcasting the first Bluetooth connection message, the second Bluetooth sound box starts scanning the first Bluetooth connection message at the same time. Because the duration of the second bluetooth speaker for scanning the first bluetooth connection message is 1s, and the duration of the first bluetooth speaker for broadcasting the first bluetooth connection message is 1.2s, the second bluetooth speaker is also always broadcasting the first bluetooth connection message in the process of scanning the first bluetooth connection message, so that the second bluetooth speaker can scan the first bluetooth connection message broadcasted by the first bluetooth speaker. After the second bluetooth speaker scans the first bluetooth connection message broadcasted by the first bluetooth speaker, it may be determined whether the device identifier in the first bluetooth connection message is the same as a device identifier preset by the second bluetooth speaker and allowed to establish bluetooth connection. If the equipment identifier in the first Bluetooth connection message is the same as the preset equipment identifier allowing Bluetooth connection to be established, the second Bluetooth sound box sends a Bluetooth connection response message to the first Bluetooth sound box; if the device identifier in the first bluetooth connection message is different from the device identifier preset by the second bluetooth speaker and allowing bluetooth connection to be established, the second bluetooth speaker can continue to scan the first bluetooth connection message. After the first Bluetooth sound box receives the Bluetooth connection response message sent by the second Bluetooth sound box, bluetooth connection can be established with the second Bluetooth sound box according to the Bluetooth connection response message.
Example two:
As shown in fig. 3, the first bluetooth device is a first bluetooth speaker, the second bluetooth device is a second bluetooth speaker, and after the bluetooth switches of the first bluetooth speaker and the second bluetooth speaker are triggered, the first bluetooth speaker and the second bluetooth speaker receive a bluetooth connection request message. The first bluetooth speaker may acquire a preset execution sequence of the first bluetooth connection event and the second bluetooth connection event, for example, execute the second bluetooth connection event first, then execute the first bluetooth connection event, and then, the first bluetooth speaker may determine that the execution time of the first event for executing the second bluetooth connection event is 1.2s, and determine that the execution time of the second event for executing the first bluetooth connection event is 500ms; the second bluetooth speaker may acquire a preset execution sequence of the first bluetooth connection event and the second bluetooth connection event, for example, execute the second bluetooth connection event first, then execute the first bluetooth connection event, and then, the second bluetooth speaker may determine that the execution time of the first event for executing the second bluetooth connection event is 1s, and determine that the execution time of the second event for executing the first bluetooth connection event is 2s.
If the time that the Bluetooth switch of the first Bluetooth sound box and the second Bluetooth sound box is triggered is the same, when the first Bluetooth sound box starts to scan the second Bluetooth connection message, the second Bluetooth sound box also starts to scan the first Bluetooth connection message. Because the duration of the first bluetooth speaker scanning the second bluetooth connection message is 1.2s, and the duration of the second bluetooth speaker scanning the first bluetooth connection message is 1s, after the duration of the second bluetooth speaker scanning the first bluetooth connection message reaches 1s, the second bluetooth connection message starts to be broadcasted 2s, and at the moment, the first bluetooth speaker also needs to scan the second bluetooth connection message for 200ms, and in the 200ms time period, the first bluetooth speaker can scan the second bluetooth connection message broadcasted by the second bluetooth speaker. After the first Bluetooth sound box scans the second Bluetooth connection message broadcast by the second Bluetooth sound box, whether the equipment information in the first Bluetooth connection message is the same as the preset paired equipment information preset by the second Bluetooth sound box can be determined. For example, if the device name in the preset paired device information is "B sound box", and the device name in the device information in the first bluetooth connection message is also "B sound box", it is determined that the device information in the first bluetooth connection message is the same as the preset paired device information, the first bluetooth sound box may send a bluetooth connection establishment message to the second bluetooth sound box, and after receiving the bluetooth connection establishment message sent by the first bluetooth sound box, the second bluetooth sound box may establish bluetooth connection with the first bluetooth sound box according to the bluetooth connection establishment message.
It should be noted that, if the first bluetooth speaker does not scan the second bluetooth connection message broadcasted by the second bluetooth speaker within 1.2s due to network anomaly or other reasons, the first bluetooth speaker may broadcast the first bluetooth connection message for 500ms. Because the second bluetooth speaker is also broadcasting the second bluetooth connection message all the time within 500ms of the first bluetooth speaker broadcasting the first bluetooth connection message, the first bluetooth speaker and the second bluetooth speaker cannot establish a bluetooth connection. The first bluetooth speaker may redetermine the new first event execution time and the second event execution time and alternately execute the second bluetooth connection event and the first bluetooth connection event.
Fig. 4 is a schematic structural diagram of a bluetooth connection device according to an embodiment of the present disclosure, where the device is applied to a first bluetooth device. As shown in fig. 4, the apparatus includes:
A connection event execution module 401 for alternately executing a first bluetooth connection event and a second bluetooth connection event; wherein the first bluetooth connection event comprises broadcasting a first bluetooth connection message and the second bluetooth connection event comprises scanning for a second bluetooth connection message; the event execution time of each execution of the first bluetooth connection event and the second bluetooth connection event is randomly determined;
a bluetooth connection establishment module 402, configured to, in case of executing the first bluetooth connection event, establish a bluetooth connection with the second bluetooth device if a bluetooth connection response message sent by the second bluetooth device is received; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message.
Optionally, the bluetooth connection establishment module 402 is specifically configured to: determining whether the second Bluetooth device meets preset Bluetooth connection conditions according to the second Bluetooth connection message; and if the second Bluetooth device meets the preset Bluetooth connection condition, sending a Bluetooth connection establishment message to the second Bluetooth device so that the second Bluetooth device establishes Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
Optionally, the second bluetooth connection message includes at least one of signal strength and device information; in the case that the second bluetooth connection message includes signal strength, the preset bluetooth connection condition includes: the signal strength is greater than a preset strength threshold; and/or, in the case that the second bluetooth connection message includes device information, the preset bluetooth connection condition includes: the device information is identical to the preset pairing device information.
Optionally, as shown in fig. 5, the apparatus further includes:
A selection instruction receiving module 403, configured to receive a connection event selection instruction, where the connection event selection instruction is configured to instruct to execute a first bluetooth connection event or a second bluetooth connection event;
the selection instruction execution module 404 is configured to execute the first bluetooth connection event or the second bluetooth connection event according to the connection event selection instruction.
Optionally, as shown in fig. 6, the apparatus further includes:
And the stopping module 405 is configured to stop alternately executing the first bluetooth connection event and the second bluetooth connection event after the preset stopping condition is satisfied.
Optionally, the preset stop condition includes any one of: receiving an event stopping instruction, wherein the event stopping instruction is used for indicating stopping alternately executing a first Bluetooth connection event and a second Bluetooth connection event; establishing a Bluetooth connection with a second Bluetooth device; and when the preset time is reached, the Bluetooth connection with the second Bluetooth device is not established.
By the device, after the first Bluetooth device receives the Bluetooth connection request message, the first Bluetooth connection event and the second Bluetooth connection event are alternately executed, and if the Bluetooth connection response message sent by the second Bluetooth device is received under the condition of executing the first Bluetooth connection event, the Bluetooth connection with the second Bluetooth device is established; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message. Thus, since the first bluetooth connection event and the second bluetooth connection event are alternately performed, a bluetooth connection can be established for the same type of bluetooth device; in addition, when establishing bluetooth connection, need not the master-slave identity of fixed bluetooth equipment to the operational complexity when having simplified bluetooth equipment and connected has improved bluetooth connection's speed.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram of an electronic device 700, according to an example embodiment. As shown in fig. 7, the electronic device 700 may include: a processor 701, a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700 to perform all or part of the steps in the bluetooth connection method described above. The memory 702 is used to store various types of data to support operation on the electronic device 700, which may include, for example, instructions for any application or method operating on the electronic device 700, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 702 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 703 can include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 702 or transmitted through the communication component 705. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC) for short, 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 705 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic device 700 may be implemented by one or more Application-specific integrated circuits (ASIC), digital signal Processor (DIGITAL SIGNAL Processor, DSP), digital signal processing device (DIGITAL SIGNAL Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable GATE ARRAY, FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the bluetooth connection method described above.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the bluetooth connection method described above. For example, the computer readable storage medium may be the memory 702 including program instructions described above, which are executable by the processor 701 of the electronic device 700 to perform the bluetooth connection method described above.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above described bluetooth connection method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the embodiments described above, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure. In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.

Claims (9)

1. A bluetooth connection method, applied to a first bluetooth device, the method comprising:
Receiving a Bluetooth connection request message, and alternately executing a first Bluetooth connection event and a second Bluetooth connection event in response to receiving the Bluetooth connection request message; wherein the first bluetooth connection event comprises broadcasting a first bluetooth connection message and the second bluetooth connection event comprises scanning a second bluetooth connection message; the event execution time of each execution of the first Bluetooth connection event and the second Bluetooth connection event is randomly determined;
Under the condition of executing the first Bluetooth connection event, if a Bluetooth connection response message sent by a second Bluetooth device is received, establishing Bluetooth connection with the second Bluetooth device; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message;
Before the alternately executing the first bluetooth connection event and the second bluetooth connection event, the method further comprises:
receiving a connection event selection instruction, wherein the connection event selection instruction is used for indicating to execute the first Bluetooth connection event or the second Bluetooth connection event;
Executing the first Bluetooth connection event or the second Bluetooth connection event according to the connection event selection instruction;
The executing the first bluetooth connection event or the second bluetooth connection event according to the connection event selection instruction includes:
Under the condition that the first Bluetooth device can only broadcast a first Bluetooth connection message or scan a second Bluetooth connection message, presetting a Bluetooth connection event supported by the first Bluetooth device, and starting to execute the preset Bluetooth connection event after the first Bluetooth device receives a Bluetooth connection request message;
Under the condition that the second Bluetooth equipment supports broadcasting of the second Bluetooth connection message and scanning of the first Bluetooth connection message, determining a Bluetooth connection event to be executed through the received connection event selection instruction;
The method further comprises the steps of:
If the first Bluetooth device and the second Bluetooth device simultaneously receive the Bluetooth connection request message, the first Bluetooth device redetermines the new first event execution time and the new second event execution time; the first event execution time is the execution time of executing the first bluetooth connection event, and the second event execution time is the execution time of executing the second bluetooth connection event, wherein the time length of the first event execution time redetermined by the first bluetooth device is smaller than the time length of the first event execution time determined by the second bluetooth device.
2. The method of claim 1, wherein said establishing a bluetooth connection with said second bluetooth device in accordance with said second bluetooth connection message comprises:
determining whether the second Bluetooth device meets preset Bluetooth connection conditions according to the second Bluetooth connection message;
And if the second Bluetooth device meets the preset Bluetooth connection condition, sending a Bluetooth connection establishment message to the second Bluetooth device, so that the second Bluetooth device establishes Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
3. The method of claim 2, wherein the second bluetooth connection message includes at least one of signal strength and device information;
In the case that the second bluetooth connection message includes the signal strength, the preset bluetooth connection condition includes: the signal intensity is larger than a preset intensity threshold value; and/or the number of the groups of groups,
In the case that the second bluetooth connection message includes the device information, the preset bluetooth connection condition includes: the device information is the same as the preset pairing device information.
4. The method of claim 1, wherein after the alternating execution of the first bluetooth connection event and the second bluetooth connection event, the method further comprises:
and stopping alternately executing the first Bluetooth connection event and the second Bluetooth connection event after a preset stopping condition is met.
5. The method of claim 4, wherein the preset stop condition comprises any one of:
receiving an event stopping instruction, wherein the event stopping instruction is used for indicating stopping alternately executing the first Bluetooth connection event and the second Bluetooth connection event;
establishing a Bluetooth connection with the second Bluetooth device;
and when the preset time is reached, the Bluetooth connection with the second Bluetooth device is not established.
6. A bluetooth connection apparatus for use with a first bluetooth device, the apparatus comprising:
The connection event execution module is used for receiving a Bluetooth connection request message and responding to the received Bluetooth connection request message to alternately execute a first Bluetooth connection event and a second Bluetooth connection event; wherein the first bluetooth connection event comprises broadcasting a first bluetooth connection message and the second bluetooth connection event comprises scanning a second bluetooth connection message; the event execution time of each execution of the first Bluetooth connection event and the second Bluetooth connection event is randomly determined;
The Bluetooth connection establishment module is used for establishing Bluetooth connection with the second Bluetooth device if a Bluetooth connection response message sent by the second Bluetooth device is received under the condition of executing the first Bluetooth connection event; or under the condition of executing the second Bluetooth connection event, if the second Bluetooth connection message broadcasted by the second Bluetooth device is scanned, establishing Bluetooth connection with the second Bluetooth device according to the second Bluetooth connection message;
The apparatus further comprises:
The selection instruction receiving module is used for receiving a connection event selection instruction, wherein the connection event selection instruction is used for indicating to execute the first Bluetooth connection event or the second Bluetooth connection event;
The selection instruction execution module is used for executing the first Bluetooth connection event or the second Bluetooth connection event according to the connection event selection instruction;
The selection instruction execution module is used for presetting a Bluetooth connection event supported by the first Bluetooth device to be executed under the condition that the first Bluetooth device can only broadcast a first Bluetooth connection message or scan a second Bluetooth connection message, and starting to execute the preset Bluetooth connection event after the first Bluetooth device receives a Bluetooth connection request message;
Under the condition that the second Bluetooth equipment supports broadcasting of the second Bluetooth connection message and scanning of the first Bluetooth connection message, determining a Bluetooth connection event to be executed through the received connection event selection instruction;
The device is further configured to, if the first bluetooth device and the second bluetooth device receive the bluetooth connection request message at the same time, re-determine a new first event execution time and a new second event execution time by the first bluetooth device; the first event execution time is the execution time of executing the first bluetooth connection event, and the second event execution time is the execution time of executing the second bluetooth connection event, wherein the time length of the first event execution time redetermined by the first bluetooth device is smaller than the time length of the first event execution time determined by the second bluetooth device.
7. The device according to claim 6, wherein the bluetooth connection establishment module is specifically configured to:
determining whether the second Bluetooth device meets preset Bluetooth connection conditions according to the second Bluetooth connection message;
And if the second Bluetooth device meets the preset Bluetooth connection condition, sending a Bluetooth connection establishment message to the second Bluetooth device, so that the second Bluetooth device establishes Bluetooth connection with the first Bluetooth device according to the Bluetooth connection establishment message.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1-5.
9. An electronic device, comprising:
A memory having a computer program stored thereon;
A processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-5.
CN202010116961.4A 2020-02-25 2020-02-25 Bluetooth connection method and device, storage medium and electronic equipment Active CN113382393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010116961.4A CN113382393B (en) 2020-02-25 2020-02-25 Bluetooth connection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010116961.4A CN113382393B (en) 2020-02-25 2020-02-25 Bluetooth connection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113382393A CN113382393A (en) 2021-09-10
CN113382393B true CN113382393B (en) 2024-05-03

Family

ID=77569211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010116961.4A Active CN113382393B (en) 2020-02-25 2020-02-25 Bluetooth connection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113382393B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Low-power Bluetooth connecting method and device
CN106793007A (en) * 2016-12-05 2017-05-31 爱国者电子科技有限公司 The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router
CN107071701A (en) * 2017-03-13 2017-08-18 广州视源电子科技股份有限公司 A kind of Bluetooth slave devices find the method and Bluetooth slave devices of target Bluetooth slave unit
CN107864469A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Wireless connection method and equipment
US10149340B1 (en) * 2017-07-18 2018-12-04 Thales Avionics, Inc. Slave bluetooth device switching between active bluetooth connections with different master bluetooth devices
CN109345813A (en) * 2018-11-30 2019-02-15 深圳创维数字技术有限公司 The matching method of playback equipment and blue Tooth remote controller, equipment and readable storage medium storing program for executing
CN110753334A (en) * 2019-10-25 2020-02-04 华为技术有限公司 Bluetooth communication method, device and equipment with Bluetooth communication function
CN110784830A (en) * 2019-09-18 2020-02-11 华为技术有限公司 Data processing method, Bluetooth module, electronic device and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL2009801C2 (en) * 2012-11-13 2014-05-14 Lely Patent Nv Network expansion method for a bluetooth network.
US9420407B2 (en) * 2014-06-06 2016-08-16 Em Microelectronic Marin S.A. Method and system for bidirectional communications via a bluetooth low energy advertise link
US9635690B2 (en) * 2014-06-24 2017-04-25 Nokia Technologies Oy Method, apparatus, and computer program product for improving security for wireless communication
US10917920B2 (en) * 2015-05-14 2021-02-09 Lg Electronics Inc. Method and apparatus for connecting alternative communication means using bluetooth low energy (LE)
US10044601B2 (en) * 2015-11-13 2018-08-07 Avago Technologies General Ip (Singapore) Pte. Ltd. Transmission of broadcast communication

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811895A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Low-power Bluetooth connecting method and device
CN106793007A (en) * 2016-12-05 2017-05-31 爱国者电子科技有限公司 The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router
CN107071701A (en) * 2017-03-13 2017-08-18 广州视源电子科技股份有限公司 A kind of Bluetooth slave devices find the method and Bluetooth slave devices of target Bluetooth slave unit
US10149340B1 (en) * 2017-07-18 2018-12-04 Thales Avionics, Inc. Slave bluetooth device switching between active bluetooth connections with different master bluetooth devices
CN107864469A (en) * 2017-10-31 2018-03-30 青岛海信电器股份有限公司 Wireless connection method and equipment
CN109345813A (en) * 2018-11-30 2019-02-15 深圳创维数字技术有限公司 The matching method of playback equipment and blue Tooth remote controller, equipment and readable storage medium storing program for executing
CN110784830A (en) * 2019-09-18 2020-02-11 华为技术有限公司 Data processing method, Bluetooth module, electronic device and readable storage medium
CN110753334A (en) * 2019-10-25 2020-02-04 华为技术有限公司 Bluetooth communication method, device and equipment with Bluetooth communication function

Also Published As

Publication number Publication date
CN113382393A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN110996405B (en) Earphone connection method, terminal, earphone box and computer readable storage medium
US11381948B2 (en) Connection switching for Bluetooth headsets
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
CN111462746B (en) TWS earphone-based control method, system, device and equipment
CN109379773B (en) Switching method, first output device and second output device
US20210360489A1 (en) Methods and devices for reducing temperature for user equipment
WO2023284454A1 (en) Bluetooth connection prompting method and apparatus, device, storage medium, and program product
US20180020497A1 (en) Communication system, communication device, and method for reconnecting communication system
CN110856086A (en) Method and device for controlling sound system and readable storage medium
JP7173956B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM
CN109041145B (en) Communication method, communication device, terminal and storage medium
US10595265B2 (en) Communication system, control terminal, and method for managing communication system
CN113382393B (en) Bluetooth connection method and device, storage medium and electronic equipment
KR20210114312A (en) Method, device and storage medium for processing paging collision in dual sim card mobile phone
CN109286544B (en) NAN-based intelligent management method and related product
WO2023020617A1 (en) Bluetooth-based device connection method and apparatus, electronic device, and storage medium
CN115665671A (en) Audio data sharing method and device, electronic equipment and storage medium
CN111800836B (en) Communication method, device, electronic equipment and storage medium
CN113342370A (en) Configuration updating method and device, electronic equipment and storage medium
CN107396384B (en) Wireless connection establishing method and device
CN114786058B (en) Multimedia data display method, device, terminal and storage medium
CN114363994B (en) Method, device and system for node network access, electronic equipment and storage medium
CN114585077B (en) Network registration method and device
CN108347375B (en) Instant messaging message playing method and system, intelligent sound box device and platform terminal
CN115022957A (en) Method and device for synchronizing states of earphone equipment, earphone equipment and storage medium

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