CN104811895A - Connection method and device of low-power-consumption Bluetooth - Google Patents

Connection method and device of low-power-consumption Bluetooth Download PDF

Info

Publication number
CN104811895A
CN104811895A CN201510152785.9A CN201510152785A CN104811895A CN 104811895 A CN104811895 A CN 104811895A CN 201510152785 A CN201510152785 A CN 201510152785A CN 104811895 A CN104811895 A CN 104811895A
Authority
CN
China
Prior art keywords
slave
master
bluetooth
time slice
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.)
Granted
Application number
CN201510152785.9A
Other languages
Chinese (zh)
Other versions
CN104811895B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201510152785.9A priority Critical patent/CN104811895B/en
Publication of CN104811895A publication Critical patent/CN104811895A/en
Priority to PCT/CN2016/074825 priority patent/WO2016155444A1/en
Application granted granted Critical
Publication of CN104811895B publication Critical patent/CN104811895B/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
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection 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 invention discloses a connection method of low-power-consumption Bluetooth, which comprises the conversion of a master device and a slave device; the conversion of the master device and the slave device includes: a. acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan slave equipment as master equipment; determining that no connection is established with the slave device within a master time slice of random length; acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as slave equipment; and c, determining that the connection with the master device is not established in the slave time slices with random lengths, and returning to the step a. The equipment is used as the master equipment and the slave equipment in turn in an automatic random time slice mode, the situation that a plurality of pieces of equipment cannot be scanned by the master equipment or the slave equipment at the same time is avoided, the time slice length is generated randomly, connection is established when the equipment circulates to be in different master-slave modes, the connection is more convenient, the complexity of user operation is simplified, and the user experience is improved.

Description

Connection method and device of low-power-consumption Bluetooth
Technical Field
The present invention relates to bluetooth low energy technology for wireless communication, and in particular, to a bluetooth low energy connection method and apparatus.
Background
The Bluetooth low energy (Bluetooth) is mainly used for realizing the continuous connection between mobile intelligent terminals or between a mobile intelligent terminal and peripheral accessories, is a short-distance wireless communication technology with extremely low power consumption, and the effective transmission distance is increased to more than 100 meters, however, a master-slave relationship needs to be established in the Bluetooth connection process, the slave device starts a Bluetooth broadcast signal, the master device scans the broadcast signal to start connection, so before Bluetooth application, the master-slave relationship must be established for connection communication, if the master device and the slave device are both changed into the master device or the slave device, the two parties cannot search for the other party, and cannot perform the next connection request. However, if the two parties have the same main body, for example, two watches, before the bluetooth connection needs to be established, the user must select the master-slave relationship of the bluetooth connection, and one more step of confirmation is required in the interaction, which adds a technical obstacle to the application who does not know the technology.
Disclosure of Invention
The embodiment of the invention provides a connection method and device of low-power-consumption Bluetooth, which do not need to manually and additionally select the master-slave relationship of equipment, are more convenient to connect, simplify the complexity of user operation and improve the user experience.
The embodiment of the invention adopts the following technical scheme:
in a first aspect, the present technical solution provides a connection method for bluetooth low energy, including switching between a master device and a slave device;
the conversion of the master device and the slave device includes:
a. acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan slave equipment as master equipment; determining that no connection is established with the slave device within a master time slice of random length; acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as slave equipment; determining that no connection is established with the master device in the slave time slices with random lengths, and returning to the step a; or,
c. acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as slave equipment; determining that no connection is established with the master device within a slave time slice of random length; acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan slave equipment as master equipment; and c, determining that no connection is established with the slave equipment in the master time slice with the random length, and returning to the step c.
The method further includes that after the acquiring the master time slice with random length is used as the master device to scan the slave device by using the bluetooth low energy protocol, the method further includes:
after determining that the master device is connected with the slave device and interrupted, acquiring a slave time slice with random length, and using a low-power-consumption Bluetooth protocol as the slave device to send out a Bluetooth broadcast signal; or,
and after determining that the master device is connected with the slave device and interrupted, acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan the slave device as the master device.
The further technical scheme is that after the slave time slice with the random length is obtained and used as slave equipment to send out the Bluetooth broadcast signal by using the low-power Bluetooth protocol, the method further comprises the following steps:
after determining that the slave device is connected with the master device and interrupted, acquiring a master time slice with random length, and scanning the slave device by using a low-power-consumption Bluetooth protocol as the master device; or,
and after determining that the slave device is connected with the master device and interrupted, acquiring a slave time slice with random length, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as the slave device.
The method further includes that after the acquiring the master time slice with random length is used as the master device to scan the slave device by using the bluetooth low energy protocol, the method further includes:
if at least two slave devices are detected, sequencing the Bluetooth signal intensity of the slave devices, and connecting the slave devices in sequence from strong to weak according to the Bluetooth signal intensity.
The technical scheme is that the master time slice with random length and the slave time slices with random length are random time slices obtained by a formula T2 ═ ((Rand ()% N) +1) × T1, wherein T1 is the minimum time unit for switching of the low power consumption Bluetooth device, and N is an integer greater than 1 and less than 20.
In a second aspect, the present technical solution provides a bluetooth low energy connection device, including:
a master time slice acquiring unit, configured to acquire a master time slice with a random length, as a master device, to scan a slave device using a bluetooth low energy protocol;
a first connection determination unit configured to determine that no connection is established with the slave device within a master time slice of a random length;
a first triggering unit, configured to trigger the slave time slice obtaining unit when no connection is established with the slave device within a master time slice of a random length;
a slave time slice acquiring unit for acquiring a slave time slice of a random length as a slave device for transmitting a Bluetooth broadcast signal using a Bluetooth low energy protocol;
a second connection confirming unit for determining that no connection is established with the master device within a slave time slice of random length;
and the second triggering unit is used for triggering the main time slice acquisition unit when the connection with the main equipment is not established in the slave time slices with random lengths.
The further technical scheme is that the method further comprises the following steps:
the first connection interruption unit is used for acquiring a slave time slice with random length and sending a Bluetooth broadcast signal as a slave device by using a low-power Bluetooth protocol after determining that the master device is connected with the slave device and interrupted; or, after determining that the master device is connected to the slave device and then is interrupted, acquiring a master time slice with a random length, and using a bluetooth low energy protocol to scan the slave device as the master device.
The further technical scheme is that the method further comprises the following steps:
the second connection interruption unit is used for acquiring a master time slice with random length after determining that the master device is connected with the slave device and interrupted, and the master device scans the slave device by using a low-power Bluetooth protocol; or, after determining that the slave device is connected with the master device and is interrupted, acquiring a slave time slice with a random length, and sending out a bluetooth broadcast signal by using a low-power-consumption bluetooth protocol as the slave device.
The further technical scheme is that the method further comprises the following steps:
and the signal intensity connecting unit is used for sequencing the Bluetooth signal intensities of the slave devices if at least two slave devices are detected, and sequentially connecting the slave devices according to the Bluetooth signal intensities from strong to weak.
The further technical scheme is that the random time acquiring unit is used for acquiring the master time slice with the random length and the slave time slice with the random length by a formula T2 ═ ((Rand ()% N) +1) × T1, wherein T1 is the minimum time unit for switching of the low power consumption Bluetooth device, and N is an integer greater than 1 and less than 20.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical scheme, the equipment is used as the master equipment and the slave equipment in turn in an automatic random time slice mode, the situation that the connection cannot be established between the other side because a plurality of pieces of equipment are simultaneously master equipment or simultaneously slave equipment is avoided, the time slice length is generated randomly, the connection is established when the equipment circulates to be in different master-slave modes, the connection is more convenient, the complexity of user operation is simplified, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a flowchart of a method according to a first embodiment of a connection method of bluetooth low energy according to an embodiment of the present invention.
Fig. 2 is a flowchart of a bluetooth low energy connection method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a method of a third embodiment of a connection method of bluetooth low energy according to an embodiment of the present invention.
Fig. 4 is a flowchart of a method of a fourth embodiment of a connection method of bluetooth low energy according to an embodiment of the present invention.
Fig. 5 is a flowchart of a method of a fifth embodiment of a connection method of bluetooth low energy according to an embodiment of the present invention.
Fig. 6 is a flowchart of a method of a sixth embodiment of a connection method of bluetooth low energy according to an embodiment of the present invention.
Fig. 7 is a block diagram of a first embodiment of a bluetooth low energy connection apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a flowchart illustrating a connection method of bluetooth low energy according to a first embodiment of the present invention. The low-power Bluetooth connection method comprises the following steps:
s100, acquiring a master time slice with a random length, and using a low-power-consumption Bluetooth protocol to scan the slave equipment as the master equipment.
The master time slice with random length is obtained by the formula T2 ═ ((Rand ()% N) +1) × T1, where T1 is the minimum time unit for switching of the bluetooth low energy device, and N is an integer greater than 1 and less than 20. In this embodiment, N is preferably 10.
The master time slice with random length is relatively short, but the time length is at least the time required for allowing the slave device to be received by other master devices, the master device can search for the time required by other slave devices, usually, a certain time is prolonged on the basis of the time, and the connection is established under the condition that the two sides are kept for several times of random, and then one master device and one slave device are respectively used.
S101, determining that no connection is established with the slave device in a master time slice with random length.
And if the Bluetooth signals of the slave devices are not scanned in the master time slice with random length, or the scanned Bluetooth signals are lower than the set value, the connection is not carried out.
And S102, acquiring a slave time slice with a random length, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as a slave device.
The method for acquiring the slave time slice with the random length is the same as the method for acquiring the master time slice with the random length, and is not described in detail. Since the slave time slice with the random length and the master time slice with the random length are random within a certain range, the length of the time slice is not a fixed value, and the device is converted from the master device state to the slave device state.
S103, determining that the connection with the master device is not established in the slave time slices with random lengths, and returning to the step S100.
If the device is in the slave state and no connection is established with the master device, scanning is performed again as the master device, and thus the master device state and the slave device state are cycled until a plurality of devices are not simultaneously the master device or simultaneously the slave device can establish a connection. The connection is typically established automatically over 1-3 cycles.
In summary, in this embodiment, after the bluetooth function is turned on, the device is in the master device state, and the device is alternately used as the master device and the slave device by means of the automatic random time slice, so that it is avoided that multiple devices are simultaneously the master device or the slave device and cannot be scanned, the time slice length is generated randomly, and when the device circulates to be in different master-slave modes, the connection is established, so that the connection is more convenient, the complexity of user operation is simplified, and the user experience is improved.
Please refer to fig. 2, which is a flowchart illustrating a bluetooth low energy connection method according to a second embodiment of the present invention. The difference between the connection method of bluetooth low energy and the method shown in fig. 1 is that the connection method of bluetooth low energy of this embodiment is first in a slave device state, and the connection method of bluetooth low energy includes:
and S200, acquiring a slave time slice with a random length, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as a slave device.
S201, determining that no connection is established with the master device in the slave time slices with random lengths.
S202, acquiring a master time slice with a random length, and using a low-power-consumption Bluetooth protocol to scan the slave equipment as the master equipment.
S203, determining that no connection is established with the slave device in the master time slice with the random length, and returning to the step S200.
The device is in the master state and does not scan to the slave device, or the scanned Bluetooth signal is lower than the set value and does not connect, then the device is scanned as the slave device again, and the scanning is cycled between the master state and the slave state until a plurality of devices are not the master device at the same time or the connection can be established for the slave device at the same time. The connection is typically established automatically over 1-3 cycles.
The method for acquiring the slave time slice with random length and the master time slice with random length refers to the related content of the method shown in fig. 1, and is not described herein again.
In summary, in this embodiment, after the bluetooth function is turned on, the device is in the slave device state, and the device is alternately used as the master device and the slave device by means of the automatic random time slice, so that it is avoided that multiple devices are simultaneously the master device or the slave device and cannot be scanned, the time slice length is generated randomly, and when the devices circulate to be in different master-slave modes, the connection is established, which is more convenient, simplifies the complexity of the user operation, and improves the user experience.
Please refer to fig. 3, which is a flowchart illustrating a method for bluetooth low energy connection according to a third embodiment of the present invention. The difference between this embodiment and the method shown in fig. 1 is that this embodiment performs processing after connection if it finds that the target device does not need to be connected.
The connection method of the low-power Bluetooth comprises the following steps:
s300, acquiring a master time slice with a random length, and using a low-power-consumption Bluetooth protocol to scan the slave equipment as the master equipment.
S301, after the connection between the master device and the slave device is determined and interrupted, the slave time slice with random length is obtained and used as the slave device to send out a Bluetooth broadcast signal by using a low-power Bluetooth protocol.
When the device is in the master device state, the slave device is scanned and connected with the device, at this time, the random time slice stops, after the connection, the device is confirmed not to be the target device needing to be connected through the identity information, and the device enters the slave device state.
When the identity is confirmed after the connection is established, the user can click and confirm through the touch screen, or can confirm through the body by using a preset action.
S302, determining that the connection with the master device is not established in the slave time slices with random lengths, and returning to the step S300.
To sum up, in this embodiment, after the bluetooth function is turned on, the device is in the master device state, and the device is made to alternately serve as the master device and the slave device in an automatic random time slice manner until the multiple devices are in different states to establish connection, and it is determined that the connected device is not the target device, and then the cycle of the random time slice is continued, so that the connection is more convenient, the complexity of the user operation is simplified, the user experience is improved, and the connection accuracy is ensured.
In this embodiment, preferably, when the device is in the master device state, if at least two slave devices are detected, the bluetooth signal strengths of the slave devices are sorted, and the slave devices are sequentially connected from strong to weak according to the bluetooth signal strengths. And when the connected slave equipment is not the target equipment, disconnecting and discarding the Bluetooth signal of the slave equipment, and connecting in sequence from strong to weak according to the strength of the Bluetooth signal. Ensure that the face-to-face users can successfully connect at one time when exchanging information.
Please refer to fig. 4, which is a flowchart illustrating a method for bluetooth low energy connection according to a fourth embodiment of the present invention. The difference between this embodiment and the method shown in fig. 3 is that, after connection, the present embodiment finds that the target device does not need to be connected, and then enters the master device state.
The connection method of the low-power Bluetooth comprises the following steps:
s400, acquiring a master time slice with a random length, and using a low-power-consumption Bluetooth protocol to scan the slave equipment as the master equipment.
S401, after the connection between the master device and the slave device is determined and interrupted, a master time slice with random length is obtained and used as the master device to scan the slave device by using a low-power-consumption Bluetooth protocol.
When the equipment is in the state of the master equipment, the slave equipment is scanned and connected with the slave equipment, at the moment, the random time slice stops, the slave equipment is confirmed not to be the target equipment needing to be connected through the identity information after connection, and the equipment enters the state of the master equipment.
When the identity is confirmed after the connection is established, the user can click and confirm through the touch screen, or can confirm through the body by using a preset action.
S402, determining that no connection is established with the slave device in the master time slice with the random length.
And S403, acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as a slave device.
S404, determining that the connection with the master device is not established in the slave time slices with random lengths, and returning to the step S400.
To sum up, in this embodiment, after the bluetooth function is turned on, the device is in the master device state, and the device is made to alternately serve as the master device and the slave device in an automatic random time slice manner until the multiple devices are in different states to establish connection, and it is determined that the connected device is not the target device, and then the cycle of the random time slice is continued, so that the connection is more convenient, the complexity of the user operation is simplified, the user experience is improved, and the connection accuracy is ensured.
Please refer to fig. 5, which is a flowchart illustrating a method for bluetooth low energy connection according to a fifth embodiment of the present invention. The present embodiment is different from the method shown in fig. 2 in that the present embodiment performs processing after connection if it finds that the target device does not need to be connected.
And S500, acquiring a slave time slice with a random length, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as a slave device.
S501, after the connection between the slave device and the master device is determined and interrupted, a master time slice with random length is obtained and used as the master device to scan the slave device by using a low-power-consumption Bluetooth protocol.
When the equipment is in the slave equipment state, connection is established with the master equipment, at the moment, the random time slice stops, after connection, the equipment is confirmed to be not the target equipment needing connection through the identity information, and the equipment enters the master equipment state.
When the identity is confirmed after the connection is established, the user can click and confirm through the touch screen, or can confirm through the body by using a preset action.
And S502, determining that the connection with the slave equipment is not established in the master time slice with the random length, and returning to the step S500.
To sum up, in this embodiment, after the bluetooth function is turned on, the device is in the slave device state, and the device is made to alternately serve as the master device and the slave device in an automatic random time slice manner until the multiple devices are in different states to establish connection, and it is determined that the connected device is not the target device, and then the cycle of the random time slice is continued, so that the connection is more convenient, the complexity of the user operation is simplified, the user experience is improved, and the connection accuracy is ensured.
Please refer to fig. 6, which is a flowchart illustrating a method for bluetooth low energy connection according to a sixth embodiment of the present invention. The difference between this embodiment and the method shown in fig. 5 is that, after connection, the present embodiment finds that the target device does not need to be connected, and then enters a slave device state.
S600, acquiring a slave time slice with a random length, and using the slave device to send out a Bluetooth broadcast signal by using a low-power Bluetooth protocol.
S601, after the connection between the slave device and the master device is established and interrupted, the slave time slice with random length is obtained and used as the slave device to send out Bluetooth broadcast signals by using a low-power-consumption Bluetooth protocol.
When the equipment is in the slave equipment state, connection is established with the master equipment, at this time, the random time slice stops, after connection, the equipment is confirmed to be not the target equipment needing connection through the identity information, and the equipment enters the slave equipment state.
When the identity is confirmed after the connection is established, the user can click and confirm through the touch screen, or can confirm through the body by using a preset action.
And S602, determining that no connection is established with the master device in the slave time slices with random lengths.
S603, acquiring a master time slice with a random length, and using a low-power-consumption Bluetooth protocol to scan the slave equipment as the master equipment.
S604, determining that the connection with the slave equipment is not established in the master time slice with the random length, and returning to the step S600.
To sum up, in this embodiment, after the bluetooth function is turned on, the device is in the slave device state, and the device is made to alternately serve as the master device and the slave device in an automatic random time slice manner until the multiple devices are in different states to establish connection, and it is determined that the connected device is not the target device, and then the cycle of the random time slice is continued, so that the connection is more convenient, the complexity of the user operation is simplified, the user experience is improved, and the connection accuracy is ensured.
Please refer to fig. 7, which is a flowchart illustrating a method of a bluetooth low energy connection apparatus according to a first embodiment of the present invention. This bluetooth low energy's connecting device includes:
a master time slice acquiring unit 10, configured to acquire a master time slice with a random length, as a master device, to scan a slave device using a bluetooth low energy protocol;
a first connection determination unit 20 for determining that no connection is established with the slave device within a master time slice of random length;
a first triggering unit 30 for triggering the slave time slice acquiring unit when no connection is established with the slave device within a master time slice of random length;
a slave slot acquiring unit 40 for acquiring a slave slot of a random length as a slave device for transmitting a bluetooth broadcast signal using a bluetooth low energy protocol;
a second connection confirming unit 50 for determining that no connection is established with the master device within a slave time slice of random length;
a second triggering unit 60, configured to trigger the master time slice obtaining unit when no connection is established with the master device within a slave time slice of a random length.
For details of the apparatus, please refer to the method described in fig. 1 and fig. 2, which is not described herein again.
In summary, in this embodiment, after the bluetooth function is turned on, the device is alternately used as the master device and the slave device by means of the automatic random time slice, so that it is avoided that multiple devices are simultaneously the master device or the slave device and cannot be scanned, the length of the time slice is randomly generated, and when the devices circulate to be in different master-slave modes, the connection is established, which is more convenient, simplifies the complexity of the user operation, and improves the user experience.
In other embodiments, the method further comprises:
the first connection interruption unit is used for acquiring a slave time slice with random length and sending a Bluetooth broadcast signal as a slave device by using a low-power Bluetooth protocol after determining that the master device is connected with the slave device and interrupted; or, after determining that the master device is connected to the slave device and then is interrupted, acquiring a master time slice with a random length, and using a bluetooth low energy protocol to scan the slave device as the master device.
Specifically, when the method shown in fig. 3 is used, the first connection interruption unit is configured to determine that the master device is connected to the slave device and then interrupt, and then obtain a slave time slice with a random length, and send out a bluetooth broadcast signal using a bluetooth low energy protocol as the slave device.
When the method shown in fig. 4 is used, the first connection interruption unit is configured to determine that the master device is connected to the slave device and then interrupts the connection, and then obtain a master time slice with a random length, which is used as the master device to scan the slave device by using the bluetooth low energy protocol. The accuracy of connection is improved by verifying whether the connected equipment is the target equipment.
In other embodiments, the method further comprises:
the second connection interruption unit is used for acquiring a master time slice with random length after determining that the master device is connected with the slave device and interrupted, and the master device scans the slave device by using a low-power Bluetooth protocol; or, after determining that the slave device is connected with the master device and is interrupted, acquiring a slave time slice with a random length, and sending out a bluetooth broadcast signal by using a low-power-consumption bluetooth protocol as the slave device.
Specifically, when the method shown in fig. 5 is used, the second connection interruption unit is configured to determine that the slave device is connected to the master device and then interrupts the connection, and then obtain a master time slice with a random length, and scan the slave device as the master device using the bluetooth low energy protocol.
When the method shown in fig. 6 is used, the second connection interruption unit is used for determining that the slave device is disconnected after establishing connection with the master device, and acquiring a slave time slice with random length as the slave device to send out a bluetooth broadcast signal by using a low-power bluetooth protocol. The accuracy of connection is improved by verifying whether the connected equipment is the target equipment.
Preferably, the method further comprises the following steps:
and the signal intensity connecting unit is used for sequencing the Bluetooth signal intensities of the slave devices if at least two slave devices are detected, and sequentially connecting the slave devices according to the Bluetooth signal intensities from strong to weak. Through being connected with the slave unit from strong to weak in proper order according to bluetooth signal strength, once realize connecting when guaranteeing face-to-face carrying out the information interaction, improve connection efficiency.
And a random time acquiring unit for acquiring the master time slice with the random length and the slave time slice with the random length by a formula T2 ═ ((Rand ()% N) +1) × T1, wherein T1 is a minimum time unit for switching of the low power consumption Bluetooth device, and N is an integer greater than 1 and less than 20. The master time slice with random length and the slave time slices with random length are both random time slices.
The above description is only a preferred embodiment of the present invention, and for those skilled in the art, the present invention should not be limited by the description of the present invention, which should be interpreted as a limitation.

Claims (10)

1. A connection method of low power consumption Bluetooth is characterized by comprising the conversion of a master device and a slave device;
the conversion of the master device and the slave device includes:
a. acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan slave equipment as master equipment; determining that no connection is established with the slave device within a master time slice of random length; acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as slave equipment; determining that no connection is established with the master device in the slave time slices with random lengths, and returning to the step a; or,
c. acquiring slave time slices with random lengths, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as slave equipment; determining that no connection is established with the master device within a slave time slice of random length; acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan slave equipment as master equipment; and c, determining that no connection is established with the slave equipment in the master time slice with the random length, and returning to the step c.
2. The method of claim 1, wherein obtaining the master time slice of random length as the master device after scanning the slave devices using the bluetooth low energy protocol further comprises:
after determining that the master device is connected with the slave device and interrupted, acquiring a slave time slice with random length, and using a low-power-consumption Bluetooth protocol as the slave device to send out a Bluetooth broadcast signal; or,
and after determining that the master device is connected with the slave device and interrupted, acquiring a master time slice with random length, and using a low-power-consumption Bluetooth protocol to scan the slave device as the master device.
3. The method of claim 1, wherein obtaining the random-length slave time slice as a slave device after sending out the bluetooth broadcast signal using the bluetooth low energy protocol further comprises:
after determining that the slave device is connected with the master device and interrupted, acquiring a master time slice with random length, and scanning the slave device by using a low-power-consumption Bluetooth protocol as the master device; or,
and after determining that the slave device is connected with the master device and interrupted, acquiring a slave time slice with random length, and sending out a Bluetooth broadcast signal by using a low-power Bluetooth protocol as the slave device.
4. The method of claim 1, wherein obtaining the master time slice of random length as the master device after scanning the slave devices using the bluetooth low energy protocol further comprises:
if at least two slave devices are detected, sequencing the Bluetooth signal intensity of the slave devices, and connecting the slave devices in sequence from strong to weak according to the Bluetooth signal intensity.
5. The method according to any one of claims 1 to 4, wherein the master time-slice of random length and the slave time-slices of random length are random time-slices obtained by the formula T2 ((Rand ()% N) +1) × T1, wherein T1 is the minimum time unit for switching of the low power Bluetooth device, and N is an integer greater than 1 and less than 20.
6. A bluetooth low energy connection device, comprising:
a master time slice acquiring unit, configured to acquire a master time slice with a random length, as a master device, to scan a slave device using a bluetooth low energy protocol;
a first connection determination unit configured to determine that no connection is established with the slave device within a master time slice of a random length;
a first triggering unit, configured to trigger the slave time slice obtaining unit when no connection is established with the slave device within a master time slice of a random length;
a slave time slice acquiring unit for acquiring a slave time slice of a random length as a slave device for transmitting a Bluetooth broadcast signal using a Bluetooth low energy protocol;
a second connection confirming unit for determining that no connection is established with the master device within a slave time slice of random length;
and the second triggering unit is used for triggering the main time slice acquisition unit when the connection with the main equipment is not established in the slave time slices with random lengths.
7. The bluetooth low energy connection device according to claim 6, further comprising:
the first connection interruption unit is used for acquiring a slave time slice with random length and sending a Bluetooth broadcast signal as a slave device by using a low-power Bluetooth protocol after determining that the master device is connected with the slave device and interrupted; or, after determining that the master device is connected to the slave device and then is interrupted, acquiring a master time slice with a random length, and using a bluetooth low energy protocol to scan the slave device as the master device.
8. The bluetooth low energy connection device according to claim 6, further comprising:
the second connection interruption unit is used for acquiring a master time slice with random length after determining that the master device is connected with the slave device and interrupted, and the master device scans the slave device by using a low-power Bluetooth protocol; or, after determining that the slave device is connected with the master device and is interrupted, acquiring a slave time slice with a random length, and sending out a bluetooth broadcast signal by using a low-power-consumption bluetooth protocol as the slave device.
9. The bluetooth low energy connection device according to claim 6, further comprising:
and the signal intensity connecting unit is used for sequencing the Bluetooth signal intensities of the slave devices if at least two slave devices are detected, and sequentially connecting the slave devices according to the Bluetooth signal intensities from strong to weak.
10. The bluetooth low energy connection apparatus according to any one of claims 6 to 9, wherein the random time obtaining unit is configured to obtain the master time slice with the random length and the slave time slices with the random length according to a formula T2 ═ ((Rand ()% N) +1) × T1, where T1 is a minimum time unit for switching of the bluetooth low energy device, and N is an integer greater than 1 and less than 20.
CN201510152785.9A 2015-04-01 2015-04-01 Connection method and device of low-power-consumption Bluetooth Active CN104811895B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510152785.9A CN104811895B (en) 2015-04-01 2015-04-01 Connection method and device of low-power-consumption Bluetooth
PCT/CN2016/074825 WO2016155444A1 (en) 2015-04-01 2016-02-29 Low-power consumption bluetooth connecting method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510152785.9A CN104811895B (en) 2015-04-01 2015-04-01 Connection method and device of low-power-consumption Bluetooth

Publications (2)

Publication Number Publication Date
CN104811895A true CN104811895A (en) 2015-07-29
CN104811895B CN104811895B (en) 2018-04-20

Family

ID=53696300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510152785.9A Active CN104811895B (en) 2015-04-01 2015-04-01 Connection method and device of low-power-consumption Bluetooth

Country Status (2)

Country Link
CN (1) CN104811895B (en)
WO (1) WO2016155444A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490712A (en) * 2015-12-31 2016-04-13 中科创达软件股份有限公司 Bluetooth device connection method and bluetooth device
CN105813010A (en) * 2016-05-05 2016-07-27 广东小天才科技有限公司 NFC-based connection establishing method and system and NFC equipment
WO2016155444A1 (en) * 2015-04-01 2016-10-06 石姗姗 Low-power consumption bluetooth connecting method and apparatus
CN106060962A (en) * 2016-06-22 2016-10-26 杭州华三通信技术有限公司 Communication method and device
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
CN107926073A (en) * 2015-09-21 2018-04-17 尼科创业控股有限公司 The transmission that data pass through mesh network topology structure
CN108541079A (en) * 2017-03-02 2018-09-14 现代单片机有限公司 The low electric power Bluetooth connecting method of multiple equipment
CN108632791A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Bluetooth master and business collocation method
CN108811185A (en) * 2018-06-08 2018-11-13 东华大学 A kind of multi-client based on BLE and single peripheral hardware node session keeping method
CN110769406A (en) * 2019-10-31 2020-02-07 拉扎斯网络科技(上海)有限公司 Communication control method, communication control device, storage medium and electronic equipment
CN110830976A (en) * 2018-08-10 2020-02-21 炬新(珠海)微电子有限公司 Communication connection establishing method and device
US10630777B2 (en) 2015-09-21 2020-04-21 Nicoventures Holdings Limited Topology formed by electronic nicotine delivery devices
CN111083746A (en) * 2018-10-18 2020-04-28 北京轩辕联科技有限公司 Mode-switchable Bluetooth device, Bluetooth connection system and Bluetooth connection method
CN113382393A (en) * 2020-02-25 2021-09-10 炬芯科技股份有限公司 Bluetooth connection method, device, storage medium and electronic equipment
US11510040B2 (en) 2017-05-03 2022-11-22 Nicoventures Trading Limited Method and an aerosol delivery device for transmitting aerosol delivery device information
US11871321B2 (en) 2017-12-29 2024-01-09 Nicoventures Trading Limited Device identification method
US12004574B2 (en) 2017-12-29 2024-06-11 Nicoventures Trading Limited Data capture across devices

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1223715A1 (en) * 2001-01-05 2002-07-17 Samsung Electronics Co., Ltd. Temporary master-slave switching in a Piconet in a Bluetooth communication system
CN101800575A (en) * 2009-11-19 2010-08-11 中南大学 Method and device for reducing document transmission energy consumption of bluetooth equipment
CN101938298A (en) * 2009-06-29 2011-01-05 上海易狄欧电子科技有限公司 Bluetooth equipment networking method, Bluetooth system and Bluetooth master equipment
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1629643B1 (en) * 2003-06-02 2008-02-06 Matsushita Electric Industrial Co., Ltd. Device, method, and program for performing master/slave switching process
CN104811895B (en) * 2015-04-01 2018-04-20 石姗姗 Connection method and device of low-power-consumption Bluetooth

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1223715A1 (en) * 2001-01-05 2002-07-17 Samsung Electronics Co., Ltd. Temporary master-slave switching in a Piconet in a Bluetooth communication system
CN101938298A (en) * 2009-06-29 2011-01-05 上海易狄欧电子科技有限公司 Bluetooth equipment networking method, Bluetooth system and Bluetooth master equipment
CN101800575A (en) * 2009-11-19 2010-08-11 中南大学 Method and device for reducing document transmission energy consumption of bluetooth equipment
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨心强: "《计算机网络》", 31 May 2010 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016155444A1 (en) * 2015-04-01 2016-10-06 石姗姗 Low-power consumption bluetooth connecting method and apparatus
US10630777B2 (en) 2015-09-21 2020-04-21 Nicoventures Holdings Limited Topology formed by electronic nicotine delivery devices
CN107926073A (en) * 2015-09-21 2018-04-17 尼科创业控股有限公司 The transmission that data pass through mesh network topology structure
US10567946B2 (en) 2015-09-21 2020-02-18 Nicoventures Holdings Limited Transmission of data through a mesh network topology
CN107926073B (en) * 2015-09-21 2020-11-27 尼科创业控股有限公司 Transmission of data through a mesh network topology
CN106559734B (en) * 2015-09-28 2020-03-20 展讯通信(上海)有限公司 Bluetooth data transmission method and device
CN106559734A (en) * 2015-09-28 2017-04-05 展讯通信(上海)有限公司 Bluetooth data transfer method and device
CN105490712A (en) * 2015-12-31 2016-04-13 中科创达软件股份有限公司 Bluetooth device connection method and bluetooth device
CN105813010A (en) * 2016-05-05 2016-07-27 广东小天才科技有限公司 NFC-based connection establishing method and system and NFC equipment
CN105813010B (en) * 2016-05-05 2019-07-05 广东小天才科技有限公司 NFC-based connection establishing method and system and NFC equipment
CN106060962A (en) * 2016-06-22 2016-10-26 杭州华三通信技术有限公司 Communication method and device
CN106060962B (en) * 2016-06-22 2020-01-03 新华三技术有限公司 Communication method and device
CN108541079A (en) * 2017-03-02 2018-09-14 现代单片机有限公司 The low electric power Bluetooth connecting method of multiple equipment
CN108632791A (en) * 2017-03-23 2018-10-09 展讯通信(上海)有限公司 Bluetooth master and business collocation method
US11510040B2 (en) 2017-05-03 2022-11-22 Nicoventures Trading Limited Method and an aerosol delivery device for transmitting aerosol delivery device information
US12096327B2 (en) 2017-05-03 2024-09-17 Nicoventures Trading Limited Method and aerosol delivery device for transmitting aerosol delivery device information
US12047855B2 (en) 2017-05-03 2024-07-23 Nicoventures Trading Limited Method and aerosol delivery device for transmitting aerosol delivery device information
US11924728B2 (en) 2017-05-03 2024-03-05 Nicoventures Trading Limited Method and an aerosol delivery device for transmitting aerosol delivery
US12004574B2 (en) 2017-12-29 2024-06-11 Nicoventures Trading Limited Data capture across devices
US11871321B2 (en) 2017-12-29 2024-01-09 Nicoventures Trading Limited Device identification method
CN108811185A (en) * 2018-06-08 2018-11-13 东华大学 A kind of multi-client based on BLE and single peripheral hardware node session keeping method
CN108811185B (en) * 2018-06-08 2021-10-26 东华大学 BLE-based session keeping method for multiple clients and single peripheral node
CN110830976B (en) * 2018-08-10 2022-08-12 炬力(珠海)微电子有限公司 Communication connection establishing method and device
CN110830976A (en) * 2018-08-10 2020-02-21 炬新(珠海)微电子有限公司 Communication connection establishing method and device
CN111083746A (en) * 2018-10-18 2020-04-28 北京轩辕联科技有限公司 Mode-switchable Bluetooth device, Bluetooth connection system and Bluetooth connection method
CN110769406A (en) * 2019-10-31 2020-02-07 拉扎斯网络科技(上海)有限公司 Communication control method, communication control device, storage medium and electronic equipment
CN113382393A (en) * 2020-02-25 2021-09-10 炬芯科技股份有限公司 Bluetooth connection method, device, storage medium and electronic equipment
CN113382393B (en) * 2020-02-25 2024-05-03 炬芯科技股份有限公司 Bluetooth connection method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN104811895B (en) 2018-04-20
WO2016155444A1 (en) 2016-10-06

Similar Documents

Publication Publication Date Title
CN104811895B (en) Connection method and device of low-power-consumption Bluetooth
CN113490218B (en) Pairing method, pairing device, bluetooth remote controller, intelligent device and storage medium
KR101743777B1 (en) Method for wireless charging and apparatus for the same
CN103941664A (en) Method and system for binding user terminal and household appliance control device
EP2732606B1 (en) Transferring a voice call
WO2005101746A1 (en) Radio communication device and radio communication method
CN112311753A (en) Information interaction method and device and electronic equipment
CN111147188A (en) Transmission feedback method and user equipment
CN112152887A (en) Network distribution method and device of household appliance, electronic device and storage medium
JP2009182444A (en) Information communication device, method, and program
CN107785951B (en) Power receiving device, power transmitting device, power supply system, and power receiving method
JP6942585B2 (en) Power supply equipment, control method of power supply equipment, program
CN103152839A (en) System and method for quickly pairing industrial wireless communication equipment
CN109479008B (en) Conference system
CN110574402A (en) Low energy beacon configuration by tapping beacons with another device
KR20130081812A (en) Wireless charging device and method for certifying charging target terminal
US10356666B2 (en) Communication device and communication control method
US20220329104A1 (en) Wireless charging method, transmit end device, and wireless charging device
RU2010148790A (en) METHOD FOR INDICATING A CALL PROGRESS, CONFERENCE COMMUNICATION CONTROL DEVICE AND CONFERENCE COMMUNICATION SYSTEM
CN211320996U (en) Wireless charging transmitting terminal device and related system
CN115529574A (en) Bluetooth pairing processing method, electric equipment, terminal and server
CN114980044A (en) Bluetooth connection method, storage medium and related equipment
US8750182B2 (en) Wireless communication terminal
CN111316681A (en) File transmission method and system
CN111988864A (en) Data transmission method and device based on wireless charging equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160111

Address after: 523860 Guangdong Province, Dongguan city Changan Town Road No. 126 building two usha BBK

Applicant after: Shi Shanshan

Address before: 523860 Guangdong Province, Dongguan city Changan Town Road No. 126 building two usha BBK

Applicant before: Guangdong GENIUS Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190531

Address after: 523860 No. 168 Dongmen Middle Road, Xiaobian Community, Chang'an Town, Dongguan City, Guangdong Province

Patentee after: Guangdong GENIUS Technology Co., Ltd.

Address before: 523860 Second Floor, 126 Wushabugao Avenue, Chang'an Town, Dongguan City, Guangdong Province

Patentee before: Shi Shanshan