WO2016192357A1 - 终端设备配对连接的方法及系统 - Google Patents

终端设备配对连接的方法及系统 Download PDF

Info

Publication number
WO2016192357A1
WO2016192357A1 PCT/CN2015/096854 CN2015096854W WO2016192357A1 WO 2016192357 A1 WO2016192357 A1 WO 2016192357A1 CN 2015096854 W CN2015096854 W CN 2015096854W WO 2016192357 A1 WO2016192357 A1 WO 2016192357A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth device
target
bluetooth
data
curve
Prior art date
Application number
PCT/CN2015/096854
Other languages
English (en)
French (fr)
Inventor
陈柳章
Original Assignee
深圳市文鼎创数据科技有限公司
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 深圳市文鼎创数据科技有限公司 filed Critical 深圳市文鼎创数据科技有限公司
Publication of WO2016192357A1 publication Critical patent/WO2016192357A1/zh

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/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for pairing and connecting a terminal device.
  • the process of pairing a terminal device (such as a first Bluetooth device with a second Bluetooth device) generally includes the following steps:
  • Step 1 the first Bluetooth device scans the second Bluetooth device
  • Step 2 The user selects a target second Bluetooth device from the scanned second Bluetooth device;
  • Step 3 If the first Bluetooth device and the target second Bluetooth device have been paired, the Bluetooth connection is directly established;
  • Step 4 If the first Bluetooth device is not paired with the target second Bluetooth device, the pairing process is triggered.
  • the pairing process does not require user participation, but the pairing mode is less secure; if the target second Bluetooth device uses the pairing mode of the input pairing code, the pairing process requires user input 4 to 6-bit pairing code; if the target second Bluetooth device uses the pairing mode of the digital comparison, the user needs to compare whether the 6-digit comparison number displayed on the respective screens of the first Bluetooth device and the second Bluetooth device is the same, if the same, both sides Complete the pairing by clicking the confirmation button;
  • Step 5 After the pairing is completed, the first Bluetooth device establishes a Bluetooth connection with the target second Bluetooth device.
  • the embodiments of the present invention provide a method and system for pairing and connecting terminal devices, which are designed to reduce human operations and improve the efficiency of paired connection of terminal devices under the premise of ensuring high security.
  • the present invention provides a method for pairing and connecting a terminal device, where the method includes: [0011] The first Bluetooth device receives a broadcast data packet broadcast by the plurality of second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor;
  • the first Bluetooth device acquires RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor;
  • the first Bluetooth device establishes a plurality of first RSSI curves according to the RSSI data, where each second Bluetooth device corresponds to a first RSSI curve;
  • the first Bluetooth device establishes a plurality of first motion curves according to the data collected by the second Bluetooth device carried in the broadcast data packet by using the built-in motion sensor, where each second Bluetooth device corresponds to one First motion curve;
  • the first Bluetooth device searches for the target second Bluetooth device that matches the first RSSI curve with the first motion curve
  • the first Bluetooth device After the first Bluetooth device finds the target second Bluetooth device whose first RSSI curve matches the first motion curve, the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
  • the present invention provides a method for pairing and connecting a terminal device, where the method includes:
  • the first Bluetooth device acquires RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset time interval, and the target second Bluetooth device according to the Presetting data collected by the motion sensor provided by the target second Bluetooth device;
  • the first Bluetooth device establishes a first RSSI curve according to the RSS data
  • the first Bluetooth device establishes a first motion curve according to data collected by the target second Bluetooth device through its own motion sensor
  • the first Bluetooth device determines whether the first RSSI curve matches the first motion curve
  • the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0024] a first data receiving unit, configured to receive a broadcast data packet broadcast by multiple second Bluetooth devices, where The broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor;
  • a first data acquiring unit configured to acquire RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet by a motion sensor that is included in the broadcast data packet;
  • a first curve establishing unit configured to establish, according to the RSS data, a plurality of first RSSI curves, where Each second Bluetooth device corresponds to a first RSSI curve;
  • a second curve establishing unit configured to establish, according to the data collected by the second Bluetooth device carried in the broadcast data packet by the motion sensor provided by the second Bluetooth device, a plurality of first motion curves, wherein each second The Bluetooth device corresponds to a first motion curve;
  • a matching unit configured to search for the target second Bluetooth device that matches the first RSSI curve with the first motion curve
  • connection unit configured to initiate a connection request to the target second Bluetooth device after finding the target second Bluetooth device that matches the first RSSI curve and the first motion curve to establish a connection .
  • the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0031] a second data receiving unit, configured to: after establishing a connection with the target second Bluetooth device, according to the preset Obtaining RSSI data of the Bluetooth signal of the target second Bluetooth device, and collecting, by the target second Bluetooth device, the motion sensor that is carried by the target second Bluetooth device according to the preset Data
  • a fifth curve establishing unit configured to establish a first RSSI curve according to the RSS data
  • a sixth curve establishing unit configured to establish a first motion curve according to data collected by the target second Bluetooth device through its own motion sensor
  • a fourth determining unit configured to determine whether the first RSSI curve matches the first motion curve
  • the fourth processing unit is configured to: when the fourth determining unit determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • the beneficial effects of the embodiment of the present invention compared with the prior art are:
  • the embodiment of the present invention searches for the target second Bluetooth device by matching the RSSI curve of the second Bluetooth device with the motion curve of the second Bluetooth device.
  • the connection and connection process is safe, simple, and fast, and does not require the user to participate in selection, input, confirmation, etc., thereby effectively improving the user experience, and has strong usability and practicability.
  • FIG. 1 is an application scenario diagram of a method for pairing and connecting terminal devices according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of an implementation process of a terminal device pairing connection method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of an implementation process of a terminal device pairing connection method according to another embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of an implementation process of a terminal device pairing connection method according to another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device pairing connection system according to an embodiment of the present invention.
  • FIG. 1 shows an application scenario of a method for pairing a terminal device according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the application scenario includes a first Bluetooth device 010 and a plurality of second Bluetooth devices.
  • the first Bluetooth device 010 and the second Bluetooth device 020 are terminal devices having a Bluetooth function (preferably a Bluetooth Low Energy (BLE) function with a Bluetooth 4.0 protocol, such as a smart phone or a tablet) Computer, etc.
  • a Bluetooth function preferably a Bluetooth Low Energy (BLE) function with a Bluetooth 4.0 protocol, such as a smart phone or a tablet) Computer, etc.
  • BLE Bluetooth Low Energy
  • the plurality of second Bluetooth devices 020 broadcast the set broadcast data packets to the surroundings at the set time interval in the BLE mode.
  • the interval between the two can be 20m S ⁇ 10.24s.
  • the first Bluetooth device 010 before the pairing connection, dials the Bluetooth, and receives the plurality of second Bluetooth devices.
  • RSSI Received Signal Strength Indication
  • the first Bluetooth device 010 calculates a corresponding RSSI value, and the RSSI value is updated at least once after each connection interval.
  • the RSSI value is positively correlated with the transmit power of the second Bluetooth device 020 and the receive sensitivity of the first Bluetooth device 010, and inversely related to the distance between the first Bluetooth device 010 and the second Bluetooth device 020 (general signal strength increases with distance) Roughly exponentially decays).
  • the broadcast data packet of the embodiment of the present invention carries data collected by the second Bluetooth device through its own motion sensor (eg, gyroscope, gravity sensor, acceleration sensor, etc.).
  • its own motion sensor eg, gyroscope, gravity sensor, acceleration sensor, etc.
  • the first Bluetooth device 010 After acquiring the RSSI data, the first Bluetooth device 010 establishes a plurality of first RSSI curves according to the RSSI data, and according to the second Bluetooth device carried in the broadcast data packet, The data collected by the built-in motion sensor establishes a plurality of first motion curves, wherein each second Bluetooth device 0 20 corresponds to a first RSSI curve and a first motion curve. Specifically, acquiring, according to the multiple broadcast data packets sent by each second Bluetooth device 020, the associated multiple RSSI values and the motion data of the second Bluetooth device, and establishing, according to the multiple RSSI values and the motion data distribution. The second Bluetooth device 020 corresponds to a first RSSI curve and a first motion curve.
  • the first Bluetooth device 010 searches for the second Bluetooth device 020 that matches the first RSSI curve from the plurality of second Bluetooth devices, and finds the found The second Bluetooth device acts as the target second Bluetooth device (ie, the second Bluetooth device to be paired), and initiates a connection request to the target second Bluetooth device to establish a connection.
  • the matching of the first RSSI curve to the first motion curve in the embodiment of the present invention refers to a change range, a change period, and a shape of the first RSSI curve and the first motion curve (ie, The change trend and rate of change of different time points are within the preset range.
  • the embodiment of the present invention is applicable to a scenario in which the second Bluetooth device 020 moves or the first Bluetooth device and the second Bluetooth device perform the same motion.
  • FIG. 2 is a flowchart for implementing a method for pairing and connecting a terminal device according to an embodiment of the present invention. To include the following steps:
  • Step S201 The first Bluetooth device receives a broadcast data packet broadcast by a plurality of second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor.
  • the plurality of second Bluetooth devices may broadcast the set broadcast data packet to the surroundings according to the set time interval in the BLE mode.
  • the first Bluetooth device may acquire RSSI data associated with the broadcast data packet after receiving the broadcast data packet broadcast by the plurality of second Bluetooth devices.
  • the interval between the intervals may be 20 ms to 10.24 s.
  • the embodiment of the present invention in order to reduce the number of candidate second Bluetooth devices and improve the security of the first Bluetooth device pairing connection, further includes:
  • the broadcast data packet carries a vendor custom field
  • the first Bluetooth device filters out the second Bluetooth device issued by the vendor according to the vendor customization field carried by the broadcast data packet. . That is, the first Bluetooth device only needs to pay attention to the second Bluetooth device issued by the manufacturer, and excludes the second Bluetooth device that is not issued by the vendor through the vendor customization field carried in the broadcast data packet.
  • the broadcast data packet further carries data collected by the second Bluetooth device through its own motion sensor.
  • step S202 the first Bluetooth device acquires RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor. .
  • the first Bluetooth device may receive the broadcast data during the process of moving together with the second Bluetooth device, or the first Bluetooth device does not move, and the second Bluetooth device moves. And obtaining, by the packet, RSSI data associated with the broadcast data packet and data collected by the second Bluetooth device carried in the broadcast data packet by a motion sensor that is included in the broadcast data packet.
  • step S203 the first Bluetooth device establishes a plurality of first RSSI curves according to the RSSI data, where each second Bluetooth device corresponds to a first RSSI curve.
  • the first RSSI curve may be in the form of a distance (ordinate) - an inter-turn (abscissa) curve, a velocity (ordinate) - an inter-turn (abscissa) curve. , acceleration (ordinate) - inter-turn (abscissa) or RSSI value (ordinate) - distance (abscissa) and other curve forms.
  • each second Bluetooth device corresponds to a first RSSI curve.
  • the multiple RSSI values are obtained according to the multiple broadcast data packets sent by each second Bluetooth device, and the first RSSI curve corresponding to the second Bluetooth device is established according to the multiple RSSI values. .
  • step S204 the first Bluetooth device establishes a plurality of first motion curves according to data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor, where each The two Bluetooth devices correspond to a first motion curve.
  • the first motion curve may be in the form of a distance (ordinate) - an inter-turn (abscissa) curve, a speed (ordinate) - an inter-turn (abscissa) curve, or Acceleration (ordinate) - inter-turn (abscissa) and other curve forms.
  • step S205 the first Bluetooth device searches for the target second Bluetooth device whose first RSSI curve matches the first motion curve.
  • the first RSSI variation curve of the embodiment of the present invention does not necessarily need to be completely consistent with the first motion curve, and the first RSSI variation curve and the first motion curve change the amplitude,
  • the period of change, the shape ie, the change trend of different points in the day, the rate of change
  • the period of change, the shape ie, the change trend of different points in the day, the rate of change
  • step S206 the first Bluetooth device initiates a connection request to the target second Bluetooth device after finding the target second Bluetooth device that matches the first RSSI curve with the first motion curve. To establish a connection.
  • the method for establishing a connection may be that the user selects the target second Bluetooth device, and then connects through the justwork method, or may be connected through the existing pairing manner, and is not limited herein.
  • the embodiment of the present invention further includes:
  • the process of pairing the first Bluetooth device with the second Bluetooth device is displayed in a graphical manner.
  • the motion state of the other party is displayed on the display screen of the first Bluetooth device and/or the display screen of the second Bluetooth device, for example, a moving ball is displayed on the display screen of the second Bluetooth device, and the motion is small.
  • the ball reflects the motion of the first Bluetooth device or the change in RSSI value.
  • the embodiment of the present invention further includes:
  • the first Bluetooth device and/or the second Bluetooth device may increase the confirmation of the pairing connection and the cancellation of the pairing connection.
  • the first Bluetooth device and/or the second Bluetooth device may be added to confirm the pairing connection and Undoing the connected button or the preset operation gesture, so that the user triggers the button or the operation gesture, and the first Bluetooth device or the second Bluetooth device performs a corresponding function of confirming the pairing connection or canceling the pairing connection, for example, Performing the confirming the pairing connection function by swiping on the touch screen of the first Bluetooth device or the second Bluetooth device, and performing the unpairing connection function by performing a reverse stitching on the touch screen of the first Bluetooth device or the second Bluetooth device.
  • the pairing connection process between the first Bluetooth device and the second Bluetooth device is made simpler, more convenient, and more secure, and the user experience is greatly improved.
  • the present invention may also use some of the above steps as the confirmation after the connection, and specifically may be:
  • the first Bluetooth device acquires RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset time interval, and the target second Bluetooth device according to the Presetting data collected by the motion sensor provided by the target second Bluetooth device;
  • the first Bluetooth device establishes a first RSSI curve according to the RSS data
  • the first Bluetooth device establishes a first motion curve according to data collected by the target second Bluetooth device through its own motion sensor
  • the first Bluetooth device determines whether the first RSSI curve matches the first motion curve
  • the two parties perform data interaction in a broadcast manner; after the connection is established, the two parties perform data interaction through the established Bluetooth link.
  • FIG. 3 is a flowchart of an implementation process of a terminal device pairing connection method according to another embodiment of the present invention, which mainly includes the following steps:
  • Step S301 The first Bluetooth device receives a broadcast data packet broadcast by a plurality of second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor.
  • Step S302 the first Bluetooth device acquires RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor;
  • Step S303 the first Bluetooth device establishes a plurality of first RSSI curves according to the RSSI data, where each second Bluetooth device corresponds to a first RSSI curve;
  • Step S304 the first Bluetooth device establishes a plurality of first motion curves according to data collected by the second Bluetooth device carried in the broadcast data packet by using the built-in motion sensor, where each second Bluetooth The device corresponds to a first motion curve;
  • Step S305 The first Bluetooth device searches for a target second Bluetooth device that matches the first RSSI curve with the first motion curve.
  • Step S306 after the first Bluetooth device finds the target second Bluetooth device that matches the first RSSI curve and the first motion curve, initiates a connection request to the target second Bluetooth device, to establish connection.
  • Step S307 the first Bluetooth device acquires the following two sets of data according to the preset inter-time interval: the RSSI data of the Bluetooth signal of the target second Bluetooth device, and the motion sensor of the first Bluetooth device are collected. Data, the RSSI data of the Bluetooth signal of the first Bluetooth device monitored by the target second Bluetooth device according to the preset interval, and the target second Bluetooth device passing according to the preset time interval The data collected by the motion sensor carried by the target second Bluetooth device.
  • the target second Bluetooth is at a certain interval (for example, 7.5ms ⁇ 4s, preferably 20ms).
  • the device needs to send a heartbeat packet that maintains the connection to the first Bluetooth device, and the first Bluetooth device needs to respond.
  • the first Bluetooth device and the target second Bluetooth device transmit and receive the heartbeat packet at each of the time intervals, the RSSI data is updated once every time interval. Based on this, the first Bluetooth device and the target second Bluetooth device in the embodiment of the present invention can confirm the connection by monitoring the R SSI data of the Bluetooth signal of the other party and acquiring the RSSI data of the Bluetooth signal detected by the other party. safety.
  • the first Bluetooth device and the target second Bluetooth device each have a motion sensor (eg, a gyroscope, a gravity sensor, an acceleration sensor, etc.), the first Bluetooth device and the second The Bluetooth device can collect its own motion data through its own motion sensor, and confirm the security of the connection by acquiring the collected motion data.
  • a motion sensor eg, a gyroscope, a gravity sensor, an acceleration sensor, etc.
  • Step S308 the first Bluetooth device establishes a corresponding curve according to the acquired data.
  • the first Bluetooth device establishes a second RSSI curve according to the monitored RS SI data of the Bluetooth signal of the target second Bluetooth device, according to the acquired RSS signal of the Bluetooth signal of the first Bluetooth device.
  • the I data establishes a third RSSI curve;
  • the method may further include:
  • the first Bluetooth device acquires data collected by its motion sensor according to the preset inter-turn interval, and establishes a second motion curve according to the data.
  • the first Bluetooth device establishes a third motion curve according to the acquired data collected by the motion sensor of the first Bluetooth device, and collects the motion sensor according to the acquired motion sensor of the second Bluetooth device.
  • the data obtained establishes a fourth motion curve.
  • the curve may be in the form of a distance (ordinate) - an inter-turn (abscissa) curve, a velocity (ordinate) - an inter-turn (abscissa) curve, or an acceleration. (ordinate) - the form of a curve such as the daytime (abscissa).
  • Step S309 the first Bluetooth device determines whether the established curves match, and if the determination result is "Yes”, then step S310 is performed; if the determination result is "No", then step S311 is performed.
  • the first Bluetooth device determines whether the established curves are all matched.
  • the first Bluetooth device determines whether the second RSSI curve matches the third RSSI curve, and Whether the second RSSI curve matches the second motion curve.
  • the matching of the curves in the embodiments of the present invention does not necessarily require the two to be completely consistent, and the variation range, the change period, and the shape of the curve (ie, the change trend and the change rate of different inter-turn points). It can be within the preset range.
  • Step S310 confirming the connection.
  • the first Bluetooth device may match the second RSSI curve with the third RSSI curve, and the second RSSI curve matches the second motion curve, Confirm connection
  • Step S31 disconnecting the connection with the target second Bluetooth device.
  • the first Bluetooth device does not match the second RSSI curve and the third RSSI curve, and/or the second RSSI curve does not match the second motion curve. Matching, disconnecting the connection with the target second Bluetooth device, and the pairing connection is terminated. [0112] It should be noted that the first Bluetooth device and the second Bluetooth device save pairing connection information after each pairing connection is completed. If the first Bluetooth device and the second Bluetooth device detect the saved pairing connection information during the next pairing connection process, steps S307-311 need not be performed.
  • the first Bluetooth device and the target second Bluetooth device may monitor the data of the other party and obtain the other party.
  • the monitored data is self-generated, and corresponding curves (for example, RSSI curve, motion curve) are established according to the acquired data (for example, RSSI data, motion data), and the security of the connection is further confirmed by comparing the curves.
  • FIG. 4 is a flowchart of an implementation process of a terminal device pairing connection method according to another embodiment of the present invention, which mainly includes the following steps:
  • Step S401 The first Bluetooth device receives a broadcast data packet broadcast by multiple second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor.
  • Step S402 the first Bluetooth device acquires RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor; Step S403, the first Bluetooth device establishes a plurality of first RSSI curves according to the RSSI data, where each second Bluetooth device corresponds to a first RSSI curve;
  • Step S404 the first Bluetooth device establishes a plurality of first motion curves according to data collected by the second Bluetooth device carried in the broadcast data packet by using the built-in motion sensor, where each second Bluetooth The device corresponds to a first motion curve;
  • Step S405 The first Bluetooth device searches for the target second Bluetooth device that matches the first RSSI curve with the first motion curve.
  • step S406 after the first Bluetooth device finds the target second Bluetooth device that matches the first RSSI curve and the first motion curve, initiate a connection request to the target second Bluetooth device, to establish connection.
  • Step S407 the first Bluetooth device acquires the following at least one set of data according to the preset inter-time interval: the RSSI data of the Bluetooth signal of the target second Bluetooth device, and the motion sensor of the first Bluetooth device are collected. Data, the RSSI data of the Bluetooth signal of the first Bluetooth device monitored by the target second Bluetooth device according to the preset interval, and the target second Bluetooth device passing according to the preset time interval The data collected by the motion sensor carried by the target second Bluetooth device.
  • Step S408 The first Bluetooth device establishes a corresponding curve according to the acquired data.
  • Step S409 the first Bluetooth device determines whether the established curve conforms to the predetermined mode. If the determination result is “Yes”, step S410 is performed; if the determination result is “No”, step S411 is performed.
  • the curve conforming to the predetermined mode may be that the variation width of the curve is within a preset range and/or the change period of the curve conforms to a specific rule or the like.
  • Step S410 confirming the connection.
  • Step S41 disconnecting the connection with the target second Bluetooth device.
  • first Bluetooth device and the second Bluetooth device save pairing connection information after each pairing connection is completed. If the first Bluetooth device and the second Bluetooth device detect the saved pairing connection information during the next pairing connection, it is not necessary to perform steps S407-411.
  • the first Bluetooth device and the target second Bluetooth device may monitor the data of the other party and obtain the other party. Detecting the own data, and selecting at least one set of data from the obtained data (for example, RSS data, motion data), establishing a corresponding curve according to the selected data, and determining whether the established curve conforms A predetermined mode to further confirm the security of the connection.
  • data for example, RSS data, motion data
  • the present invention may further include:
  • the first Bluetooth device acquires RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset inter-time interval and/or acquires the monitored location of the target second Bluetooth device according to the preset inter-turn interval The RSSI data of the Bluetooth signal of the first Bluetooth device;
  • the first Bluetooth device determines whether the acquired change of the RSSI data is within a preset range; [0135] If no, the connection with the target second Bluetooth device is broken.
  • This example can be applied to the following scenario: the first Bluetooth device and the target second Bluetooth device do the same motion together, for example, the first Bluetooth device is held on the hand, and the target second Bluetooth device is on the wrist, due to The distance between the first Bluetooth device and the target second Bluetooth device does not change, and the change of the RSSI data is close to zero.
  • determining whether the motion curve conforms to a predetermined mode may be applied to a Bluetooth device motion or a scene in which two Bluetooth devices perform the same motion; Whether the RSSI curve conforms to the predetermined mode, and can be applied to a Bluetooth device motion or a scene in which two Bluetooth devices perform the same motion; determining whether the RSSI curve and the motion curve match, can be applied to a scene of a Bluetooth device motion; Whether the motion curves match can be applied to scenes where two Bluetooth devices do the same motion; determining whether the two RSSI curves match, can be applied to a Bluetooth device motion or a scene in which two Bluetooth devices do the same motion.
  • the corresponding Bluetooth device needs the Bluetooth Low Energy (BLE) function with the Bluetooth 4.0 protocol.
  • BLE Bluetooth Low Energy
  • FIG. 5 is a schematic structural diagram of a pairing connection system of a terminal device according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the pairing connection system of the terminal device may be a software unit, a hardware unit, or a combination of software and hardware built in the first Bluetooth device.
  • the paired connection system of the terminal device includes: a first data receiving unit 51, a first data acquiring unit 52, a first curve establishing unit 53, a second curve establishing unit 54, a matching unit 55, and a connecting unit 56, each The specific functions of the unit are as follows:
  • a first data receiving unit 51 configured to receive a broadcast data packet broadcast by a plurality of second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor;
  • the first data acquiring unit 52 is configured to acquire RSSI data associated with the broadcast data packet, and data collected by the second Bluetooth device carried in the broadcast data packet by using the motion sensor that is included in the broadcast data packet.
  • the first curve establishing unit 53 is configured to establish, according to the RSSI data, a plurality of first RSSI curves, where each second Bluetooth device corresponds to a first RSSI curve;
  • the second curve establishing unit 54 is configured to establish, according to the data collected by the second Bluetooth device carried in the broadcast data packet by the motion sensor that is included in the broadcast data packet, a plurality of first motion curves, where each The second Bluetooth device corresponds to a first motion curve;
  • the matching unit 55 is configured to find a target second Bluetooth device that matches the first RSSI curve with the first motion curve;
  • the connecting unit 56 is configured to: after finding the target second Bluetooth device that matches the first RSSI curve with the first motion curve, initiate a connection request to the target second Bluetooth device to establish Connection
  • system further includes:
  • the second data acquiring unit 57 is configured to: after establishing a connection with the target second Bluetooth device, acquire at least two sets of data according to the preset inter-time interval: RSSI data of the Bluetooth signal of the target second Bluetooth device, The data collected by the motion sensor of the first Bluetooth device, the RSSI data of the Bluetooth signal of the first Bluetooth device monitored by the target second Bluetooth device according to the preset interval, and the target The second Bluetooth device collects data according to the motion sensor that is carried by the target second Bluetooth device according to the preset time;
  • the third curve establishing unit 58 is configured to establish a corresponding curve according to the acquired data
  • the first determining unit 59 is configured to determine whether the established curves are all matched
  • the first processing unit 510 is configured to: when the first determining unit 59 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • system further includes:
  • the third data obtaining unit 511 is configured to: after establishing a connection with the target second Bluetooth device, acquire at least one set of data according to the preset inter-time interval: RSSI data of the Bluetooth signal of the target second Bluetooth device, The data collected by the motion sensor of the first Bluetooth device, the RSSI data of the Bluetooth signal of the first Bluetooth device monitored by the target second Bluetooth device according to the preset interval, and the target The second Bluetooth device is provided by the target second Bluetooth device according to the preset time interval. Data collected by the motion sensor;
  • the fourth curve establishing unit 512 is configured to establish a corresponding curve according to the acquired data
  • the second determining unit 513 is configured to determine whether the established curves meet the predetermined mode.
  • the second processing unit 514 is configured to: when the second determining unit 513 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • system further includes:
  • the fourth data acquiring unit 515 is configured to: after establishing a connection with the target second Bluetooth device, acquire RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset inter-time interval and/or obtain the target The RSS I data of the Bluetooth signal of the first Bluetooth device monitored by the second Bluetooth device according to the preset inter-turn interval;
  • the third determining unit 516 is configured to determine whether the acquired change of the RSSI data is within a preset range.
  • the third processing unit 517 is configured to determine, in the third determining unit 516, that the result is no. ⁇ , disconnecting the connection with the target second Bluetooth device.
  • the broadcast data packet carries a vendor-defined field
  • the system further includes:
  • a filtering unit configured to filter, after the first Bluetooth device receives the broadcast data packet broadcast by the plurality of second Bluetooth devices, the second Bluetooth device issued by the vendor according to the vendor customization field carried by the broadcast data packet.
  • system further includes:
  • the display unit is configured to graphically display a process of pairing the first Bluetooth device with the second Bluetooth device.
  • the present invention further provides a system for pairing and connecting terminal devices, the system being usable for further confirmation after connection, the system comprising:
  • a second data receiving unit configured to acquire, after the connection with the target second Bluetooth device, the RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset inter-time interval, and the target second Bluetooth The device collects data according to the motion sensor provided by the target second Bluetooth device according to the preset time;
  • a fifth curve establishing unit configured to establish a first RSSI curve according to the RSSI data
  • a sixth curve establishing unit configured to establish a first motion curve according to data collected by the target second Bluetooth device through its own motion sensor
  • a fourth determining unit configured to determine whether the first RSSI curve matches the first motion curve
  • the fourth processing unit is configured to: when the fourth determining unit determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • the embodiment of the present invention searches for the target second Bluetooth device by matching the RSSI curve of the second Bluetooth device with the motion curve of the second Bluetooth device, so that the pairing connection process is safe, simple, and fast. Users are not required to participate in selection, input, confirmation, etc., which effectively enhances the user experience. Moreover, after the first Bluetooth device establishes a connection with the target second Bluetooth device, the embodiment of the present invention can further confirm the security of the connection in a plurality of manners, and has strong ease of use and practicability.
  • each functional unit in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented in the form of hardware. , can also be implemented in the form of software functional units.
  • the specific names of the functional units are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application.
  • the disclosed systems and methods may be implemented in other manners.
  • the system embodiment described above is merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner.
  • multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (R 0M, Read-Only Memory), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. medium.

Landscapes

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

Abstract

本发明适用于通信技术领域,提供了一种终端设备配对连接的方法及系统。所述方法包括:第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包,第一蓝牙设备获取与所述广播数据包关联的RSSI数据,以及所述广播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据;第一蓝牙设备根据所述RSSI数据建立多个第一RSSI变化曲线;第一蓝牙设备根据所述第二蓝牙设备的运动传感器采集到的数据建立多个第一运动曲线;第一蓝牙设备查找所述第一RSSI变化曲线与所述第一运动曲线相匹配的目标第二蓝牙设备;第一蓝牙设备向所述目标第二蓝牙设备发起连接请求,以建立连接。本发明提高了配对连接的效率以及安全性,增强了用户体验。

Description

终端设备配对连接的方法及系统 技术领域
[0001] 本发明属于通信技术领域, 尤其涉及一种终端设备配对连接的方法及系统。
背景技术
[0002] 在现有技术中, 终端设备 (如第一蓝牙设备与第二蓝牙设备) 配对连接的流程 一般包括以下步骤:
[0003] 步骤 1, 第一蓝牙设备扫描第二蓝牙设备;
[0004] 步骤 2, 用户从扫描到的第二蓝牙设备中选择目标第二蓝牙设备;
[0005] 步骤 3, 如果第一蓝牙设备与目标第二蓝牙设备已经配对过, 则直接建立蓝牙 连接;
[0006] 步骤 4, 如果第一蓝牙设备与目标第二蓝牙设备未配对过, 则触发配对流程。
如果目标第二蓝牙设备是 Justwork配对模式, 则配对过程不需要用户参与, 但是 该配对模式安全性较低; 如果目标第二蓝牙设备使用输入配对码的配对模式, 则配对过程需要用户输入 4至 6位的配对码; 如果目标第二蓝牙设备使用数字比 对的配对模式, 则用户需要比较第一蓝牙设备和第二蓝牙设备各自屏幕上显示 的 6位比对数字是否一样, 如果一样则双方通过点击确认键来完成配对;
[0007] 步骤 5, 配对完成后, 第一蓝牙设备与目标第二蓝牙设备建立蓝牙连接。
[0008] 由上可知, 如果需要保证较高的安全性, 现有第一蓝牙设备与第二蓝牙设备的 配对连接需要用户参与选择、 输入、 确认等, 操作复杂, 配对连接效率较低, 影响用户体验。
技术问题
[0009] 鉴于此, 本发明实施例提供一种终端设备配对连接的方法及系统, 旨在保证较 高安全性的前提下, 减少人为操作, 提高终端设备配对连接的效率。
问题的解决方案
技术解决方案
[0010] 第一方面, 本发明提供了一种终端设备配对连接的方法, 所述方法包括: [0011] 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播数据包携带 有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0012] 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据, 以及所述广播数据包中 携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0013] 第一蓝牙设备根据所述 RSSI数据建立多个第一 RSSI变化曲线, 其中每个第二蓝 牙设备对应一个第一 RSSI变化曲线;
[0014] 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过其自带的运 动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设备对应一 个第一运动曲线;
[0015] 第一蓝牙设备査找所述第一 RSSI变化曲线与所述第一运动曲线相匹配的目标第 二蓝牙设备;
[0016] 第一蓝牙设备在査找到所述第一 RSSI变化曲线与所述第一运动曲线相匹配的目 标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建立连接。
[0017] 第二方面, 本发明提供了一种终端设备配对连接的方法, 所述方法包括:
[0018] 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔获取所述 目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以及所述目标第二蓝牙设备根据所 述预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据;
[0019] 第一蓝牙设备根据所述 RSS擞据建立第一 RSSI变化曲线;
[0020] 第一蓝牙设备根据所述目标第二蓝牙设备通过其自带的运动传感器采集到的数 据建立第一运动曲线;
[0021] 第一蓝牙设备判断所述第一 RSSI变化曲线与所述第一运动曲线是否相匹配;
[0022] 若否, 则断幵与所述目标第二蓝牙设备的连接。
[0023] 第三方面, 本发明提供了一种终端设备配对连接的系统, 所述系统包括: [0024] 第一数据接收单元, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0025] 第一数据获取单元, 用于获取与所述广播数据包关联的 RSSI数据, 以及所述广 播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0026] 第一曲线建立单元, 用于根据所述 RSS擞据建立多个第一 RSSI变化曲线, 其中 每个第二蓝牙设备对应一个第一 RSSI变化曲线;
[0027] 第二曲线建立单元, 用于根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线;
[0028] 匹配单元, 用于査找所述第一 RSSI变化曲线与所述第一运动曲线相匹配的目标 第二蓝牙设备;
[0029] 连接单元, 用于在査找到所述第一 RSSI变化曲线与所述第一运动曲线相匹配的 目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建立连接。
[0030] 第四方面, 本发明提供了一种终端设备配对连接的系统, 所述系统包括: [0031] 第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间间 隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以及所述目标第二蓝牙 设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到 的数据;
[0032] 第五曲线建立单元, 用于根据所述 RSS擞据建立第一 RSSI变化曲线;
[0033] 第六曲线建立单元, 用于根据所述目标第二蓝牙设备通过其自带的运动传感器 采集到的数据建立第一运动曲线;
[0034] 第四判断单元, 用于判断所述第一 RSSI变化曲线与所述第一运动曲线是否相匹 配;
[0035] 第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所述目标第 二蓝牙设备的连接。
发明的有益效果
有益效果
[0036] 本发明实施例与现有技术相比存在的有益效果是: 本发明实施例通过将第二蓝 牙设备的 RSSI变化曲线与第二蓝牙设备的运动曲线进行匹配来査找目标第二蓝 牙设备, 使得配对连接过程安全、 简单、 快捷, 不需要用户参与选择、 输入、 确认等操作, 有效提升了用户体验, 具有较强的易用性和实用性。
对附图的简要说明
附图说明 [0037] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。
[0038] 图 1是本发明实施例提供的终端设备配对连接方法的应用场景图;
[0039] 图 2是本发明实施例提供的终端设备配对连接方法的实现流程示意图;
[0040] 图 3是本发明另一实施例提供的终端设备配对连接方法的实现流程示意图; [0041] 图 4是本发明另一实施例提供的终端设备配对连接方法的实现流程示意图; [0042] 图 5是本发明实施例提供的终端设备配对连接系统的组成结构示意图。
本发明的实施方式
[0043] 以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 技术之类 的具体细节, 以便透切理解本发明实施例。 然而, 本领域的技术人员应当清楚 , 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省 略对众所周知的系统、 装置、 电路以及方法的详细说明, 以免不必要的细节妨 碍本发明的描述。
[0044] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。
[0045] 图 1示出了本发明实施例提供的终端设备配对连接方法的应用场景, 为了便于 说明, 仅示出了与本发明实施例相关的部分。
[0046] 如图 1所示, 所述应用场景包括一个第一蓝牙设备 010以及多个第二蓝牙设备 02
0;
[0047] 其中, 所述第一蓝牙设备 010和第二蓝牙设备 020为具有蓝牙功能 (优选具有蓝 牙 4.0协议的蓝牙低能耗 (Bluetooth Low Energy , BLE) 功能) 的终端设备, 例 如智能手机、 平板电脑等。
[0048] 在该应用场景中, 所述多个第二蓝牙设备 020在 BLE模式下, 按设定的吋间间 隔向周围广播设定的广播数据包。 例如, 间隔吋间可以为 20mS~10.24s。
[0049] 所述第一蓝牙设备 010在配对连接前, 打幵蓝牙, 接收所述多个第二蓝牙设备 0
20广播的广播数据包, 并获取与所述广播数据包关联的接收信号的强度指示值 (Received Signal Strength Indication, RSSI) 数据。
[0050] 需要说明的是, 所述所述第一蓝牙设备 010在接收到一个广播数据包后, 会计 算出一个对应的 RSSI值, 该 RSSI值至少每个连接间隔后更新 1次。 该 RSSI值与第 二蓝牙设备 020的发射功率、 第一蓝牙设备 010的接收灵敏度成正相关, 与第一 蓝牙设备 010与第二蓝牙设备 020的距离成反相关 (一般信号强度随着距离增大 大致按指数衰减) 。
[0051] 优选的是, 本发明实施例所述广播数据包携带有所述第二蓝牙设备通过其自带 的运动传感器 (例如, 陀螺仪、 重力传感器、 加速度传感器等) 采集到的数据
[0052] 所述第一蓝牙设备 010在获取所述 RSSI数据后, 根据所述 RSSI数据建立多个第 一 RSSI变化曲线, 并根据所述广播数据包中携带的所述第二蓝牙设备通过其自 带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设备 0 20对应一个第一 RSSI变化曲线以及第一运动曲线。 具体的是, 根据每一个第二 蓝牙设备 020发送的多个广播数据包, 获取关联的多个 RSSI值以及第二蓝牙设备 的运动数据, 根据所述多个 RSSI值、 运动数据分布建立与该第二蓝牙设备 020相 对应的第一 RSSI变化曲线以及第一运动曲线。
[0053] 所述第一蓝牙设备 010从所述多个第二蓝牙设备中査找所述第一 RSSI变化曲线 与所述第一运动曲线相匹配的第二蓝牙设备 020, 并将査找到的该第二蓝牙设备 作为目标第二蓝牙设备 (即待配对的第二蓝牙设备) , 向所述目标第二蓝牙设 备发起连接请求, 以建立连接。
[0054] 本发明实施例所述第一 RSSI变化曲线与所述第一运动曲线相匹配是指, 所述第 一 RSSI变化曲线与所述第一运动曲线的变化幅度、 变化周期、 形态 (即不同吋 间点的变化走向、 变化率) 在预设范围内。
[0055] 需要说明的是, 本发明实施例可应用于第二蓝牙设备 020运动或者第一蓝牙设 备和第二蓝牙设备做相同运动的场景。
[0056] 另外, 本实施例提供的所述应用场景只是一种示例, 只用于解释本发明, 并不 限定本发明的保护范围。
[0057] 请参阅图 2, 为本发明实施例提供的终端设备配对连接方法的实现流程, 其主 要包括以下步骤:
[0058] 步骤 S201, 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据。
[0059] 在本发明实施例中, 所述多个第二蓝牙设备可在 BLE模式下, 按设定的吋间间 隔向周围广播设定的广播数据包。 所述第一蓝牙设备可在接收到所述多个第二 蓝牙设备广播的广播数据包的同吋, 获取与所述广播数据包关联的 RSSI数据。 其中, 所述间隔吋间可以为 20ms~10.24s。
[0060] 作为本发明的一较佳示例, 为了减少候选第二蓝牙设备的数量, 提高第一蓝牙 设备配对连接的安全性, 本发明实施例还包括:
[0061] 所述广播数据包携带有厂商自定义字段;
[0062] 在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后, 所述第一蓝牙 设备根据所述广播数据包携带的厂商自定义字段过滤出该厂商发行的第二蓝牙 设备。 即所述第一蓝牙设备只需要关注该厂商发行的第二蓝牙设备, 通过广播 数据包携带的厂商自定义字段排除非该厂商发行的第二蓝牙设备。
[0063] 作为本发明的另一较佳示例, 所述广播数据包还携带有所述第二蓝牙设备通过 其自带的运动传感器采集到的数据。
[0064] 在步骤 S202中, 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据, 以及所 述广播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数 据。
[0065] 在本发明实施例中, 所述第一蓝牙设备可在与第二蓝牙设备一起运动的过程中 , 或者第一蓝牙设备不动, 第二蓝牙设备运动的过程中接收所述广播数据包, 获取所述广播数据包关联的 RSSI数据以及所述广播数据包中携带的所述第二蓝 牙设备通过其自带的运动传感器采集到的数据。
[0066] 在步骤 S203中, 第一蓝牙设备根据所述 RSSI数据建立多个第一 RSSI变化曲线 , 其中每个第二蓝牙设备对应一个第一 RSSI变化曲线。
[0067] 在本发明实施例中, 所述第一 RSSI变化曲线可以为距离 (纵坐标) -吋间 (横坐 标)曲线的形式、 速度 (纵坐标) -吋间 (横坐标)曲线的形式、 加速度 (纵坐标) - 吋间 (横坐标)或者 RSSI值 (纵坐标) -距离 (横坐标)等曲线形式。 [0068] 其中每个第二蓝牙设备对应一个第一 RSSI变化曲线。 具体的是, 根据每一个第 二蓝牙设备发送的多个广播数据包, 获取关联的多个 RSSI值, 根据所述多个 RSS I值建立与该第二蓝牙设备相对应的第一 RSSI变化曲线。
[0069] 在步骤 S204中, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备 通过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二 蓝牙设备对应一个第一运动曲线。
[0070] 在本发明实施例中, 所述第一运动曲线可以为距离 (纵坐标) -吋间 (横坐标)曲 线的形式、 速度 (纵坐标) -吋间 (横坐标)曲线的形式或者加速度 (纵坐标) -吋间 (横坐标)等曲线形式。
[0071] 在步骤 S205中, 第一蓝牙设备査找所述第一 RSSI变化曲线与所述第一运动曲线 相匹配的目标第二蓝牙设备。
[0072] 本发明实施例所述第一 RSSI变化曲线与所述第一运动曲线相匹配并不一定需要 两者完全一致, 所述第一 RSSI变化曲线与所述第一运动曲线的变化幅度、 变化 周期、 形态 (即不同吋间点的变化走向、 变化率) 在预设范围内即可。
[0073] 在步骤 S206中, 第一蓝牙设备在査找到所述第一 RSSI变化曲线与所述第一运动 曲线相匹配的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建立连接。
[0074] 在本发明实施例中, 所述建立连接的方式可以是由用户选择目标第二蓝牙设备 后, 通过 justwork方式连接, 也可以通过现有的配对方式连接, 在此不做限制。
[0075] 进一步的, 为了增强用户体验, 便于用户更直观的了解配对连接过程, 本发明 实施例还包括:
[0076] 以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的过程。 示例性的 , 在第一蓝牙设备的显示屏和 /或第二蓝牙设备的显示屏上显示对方的运动状态 , 例如在第二蓝牙设备的显示屏上显示一运动小球, 通过所述运动小球反映第 一蓝牙设备的运动情况或者 RSSI值变化情况。
[0077] 可选的, 为进一步增强易用性和实用性, 本发明实施例还包括:
[0078] 在第一蓝牙设备和 /或第二蓝牙设备增加确认配对连接以及取消配对连接的功 育^ 具体的可以是, 在第一蓝牙设备和 /或第二蓝牙设备增加确认配对连接以及 取消配对连接的按键或者预设的操作手势, 以使得用户在触发所述按键或所述 操作手势吋, 第一蓝牙设备或第二蓝牙设备执行对应的确认配对连接或取消配 对连接的功能, 例如在第一蓝牙设备或第二蓝牙设备的触摸屏上顺吋针滑动执 行确认配对连接功能, 在第一蓝牙设备或第二蓝牙设备的触摸屏上逆吋针滑动 执行取消配对连接功能。
[0079] 通过本发实施例, 使得第一蓝牙设备与第二蓝牙设备的配对连接过程更简单、 更方便以及更安全, 极大的提升了用户体验。
[0080] 另外, 作为本发明的一优选实例, 本发明还可以将上述某些步骤作为连接后的 确认, 具体可以是:
[0081] 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔获取所述 目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以及所述目标第二蓝牙设备根据所 述预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据;
[0082] 第一蓝牙设备根据所述 RSS擞据建立第一 RSSI变化曲线;
[0083] 第一蓝牙设备根据所述目标第二蓝牙设备通过其自带的运动传感器采集到的数 据建立第一运动曲线;
[0084] 第一蓝牙设备判断所述第一 RSSI变化曲线与所述第一运动曲线是否相匹配;
[0085] 若否, 则断幵与所述目标第二蓝牙设备的连接。
[0086] 需要说明的是, 在第一蓝牙设备与目标第二蓝牙设备建立连接前, 双方是以广 播的方式进行数据交互; 在建立连接后, 双方是通过建立的蓝牙链路进行数据 交互。
[0087] 请参阅图 3, 为本发明另一实施例提供的终端设备配对连接方法的实现流程, 其主要包括以下步骤:
[0088] 步骤 S301, 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0089] 步骤 S302, 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据, 以及所述广 播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0090] 步骤 S303, 第一蓝牙设备根据所述 RSSI数据建立多个第一 RSSI变化曲线, 其 中每个第二蓝牙设备对应一个第一 RSSI变化曲线; [0091] 步骤 S304, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线;
[0092] 步骤 S305, 第一蓝牙设备査找所述第一 RSSI变化曲线与所述第一运动曲线相匹 配的目标第二蓝牙设备;
[0093] 步骤 S306, 第一蓝牙设备在査找到所述第一 RSSI变化曲线与所述第一运动曲线 相匹配的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建 立连接。
[0094] 本发明实施例步骤 S301〜步骤 S306的具体实施过程可参考图 2对应实施例中的步 骤 S201〜步骤 206, 在此不再赘述。
[0095] 步骤 S307, 第一蓝牙设备根据预设吋间间隔获取以下至少两组数据: 所述目标 第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采 集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述预设吋间 间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据。
[0096] 示例性的, 当所述第一蓝牙设备与所述目标第二蓝牙设备建立连接后, 每隔一 定的吋间间隔 (例如 7.5ms~4s, 优选 20ms) , 所述目标第二蓝牙设备需要向所 述第一蓝牙设备发送维持连接的心跳包, 所述第一蓝牙设备则需要应答。
[0097] 由于所述第一蓝牙设备与所述目标第二蓝牙设备在每个所述吋间间隔会收发所 述心跳包, 因此所述 RSSI数据每个吋间间隔后会更新一次。 基于此, 本发明实 施例所述第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的蓝牙信号的 R SSI数据, 以及获取对方监测到的自身的蓝牙信号的 RSSI数据来确认连接的安全 性。
[0098] 另一示例, 所述第一蓝牙设备和所述目标第二蓝牙设备均自带有运动传感器 ( 例如, 陀螺仪、 重力传感器、 加速度传感器等) , 所述第一蓝牙设备和第二蓝 牙设备可分别通过其自带的运动传感器采集自身的运动数据, 并通过获取采集 到的运动数据来确认连接的安全性。
[0099] 步骤 S308, 第一蓝牙设备根据获取的所述数据建立相应的曲线。 [0100] 示例性的, 第一蓝牙设备根据所述监测到的目标第二蓝牙设备的蓝牙信号的 RS SI数据建立第二 RSSI变化曲线, 根据所述获取的第一蓝牙设备的蓝牙信号的 RSS I数据建立第三 RSSI变化曲线;
[0101] 进一步的, 还可以包括:
[0102] 第一蓝牙设备根据所述预设吋间间隔获取其运动传感器采集到的数据, 并根据 该数据建立第二运动曲线。
[0103] 另一示例, 第一蓝牙设备根据获取的所述第一蓝牙设备自带的运动传感器采集 到的数据建立第三运动曲线, 根据获取的所述第二蓝牙设备自带的运动传感器 采集到的数据建立第四运动曲线。
[0104] 需要说明的是, 本发明实施例所述曲线可以为距离 (纵坐标) -吋间 (横坐标)曲 线的形式、 速度 (纵坐标) -吋间 (横坐标)曲线的形式或者加速度 (纵坐标) -吋间 (横坐标)等曲线形式。
[0105] 步骤 S309, 第一蓝牙设备判断建立的所述曲线是否都相匹配, 若判断结果为" 是", 则执行步骤 S310; 若判断结果为"否", 则执行步骤 S311。
[0106] 示例性的, 第一蓝牙设备判断建立的所述曲线是否都相匹配可以包括: 第一蓝 牙设备判断所述第二 RSSI变化曲线与所述第三 RSSI变化曲线是否相匹配, 以及 所述第二 RSSI变化曲线与所述第二运动曲线是否相匹配。
[0107] 需要说明的是, 本发明实施例所述曲线相匹配并不一定需要两者完全一致, 所 述曲线的变化幅度、 变化周期、 形态 (即不同吋间点的变化走向、 变化率) 在 预设范围内即可。
[0108] 步骤 S310, 确认连接。
[0109] 示例性的, 第一蓝牙设备可以在所述第二 RSSI变化曲线与所述第三 RSSI变化曲 线相匹配, 且所述第二 RSSI变化曲线与所述第二运动曲线相匹配吋, 确认连接
[0110] 步骤 S311, 断幵与所述目标第二蓝牙设备的连接。
[0111] 示例性的, 第一蓝牙设备在所述第二 RSSI变化曲线与所述第三 RSSI变化曲线不 相匹配, 和 /或所述第二 RSSI变化曲线与所述第二运动曲线不相匹配吋, 断幵与 所述目标第二蓝牙设备的连接, 配对连接终止。 [0112] 需要说明的是, 所述第一蓝牙设备和所述第二蓝牙设备在每次配对连接完成后 , 都会保存配对连接信息。 如果所述第一蓝牙设备和所述第二蓝牙设备在下次 的配对连接过程中, 检测到所述已保存的配对连接信息, 则无需执行步骤 S307~ 311。
[0113] 另外, 本实施例上述示例只用于解释本发明, 并不限定本发明的保护范围。
[0114] 本发明实施例所述第一蓝牙设备在与所述目标第二蓝牙设备建立连接后, 所述 第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的数据, 以及获取对方 监测到的自身的数据, 并根据获取的所述数据 (例如 RSSI数据、 运动数据) 建 立对应的曲线 (例如 RSSI变化曲线、 运动曲线) , 通过比较所述曲线来进一步 确认连接的安全性。
[0115] 请参阅图 4, 为本发明另一实施例提供的终端设备配对连接方法的实现流程, 其主要包括以下步骤:
[0116] 步骤 S401 , 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0117] 步骤 S402, 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据, 以及所述广 播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0118] 步骤 S403 , 第一蓝牙设备根据所述 RSSI数据建立多个第一 RSSI变化曲线, 其 中每个第二蓝牙设备对应一个第一 RSSI变化曲线;
[0119] 步骤 S404, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线;
[0120] 步骤 S405 , 第一蓝牙设备査找所述第一 RSSI变化曲线与所述第一运动曲线相匹 配的目标第二蓝牙设备;
[0121] 步骤 S406, 第一蓝牙设备在査找到所述第一 RSSI变化曲线与所述第一运动曲线 相匹配的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建 立连接。
[0122] 本发明实施例步骤 S401〜步骤 S406的具体实施过程可参考图 2对应实施例中的步 骤 S201〜步骤 206, 在此不再赘述。 [0123] 步骤 S407, 第一蓝牙设备根据预设吋间间隔获取以下至少一组数据: 所述目标 第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采 集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述预设吋间 间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据。
[0124] 步骤 S408 , 第一蓝牙设备根据获取的所述数据建立相应的曲线。
[0125] 步骤 S409, 第一蓝牙设备判断建立的所述曲线是否都符合预定模式, 若判断结 果为"是", 则执行步骤 S410; 若判断结果为"否", 则执行步骤 S411。
[0126] 在本发明实施例中, 所述符合预定模式的曲线可以是曲线的变化幅度在预设范 围内和 /或曲线的变化周期符合特定规则等。
[0127] 步骤 S410, 确认连接。
[0128] 步骤 S411 , 断幵与所述目标第二蓝牙设备的连接。
[0129] 另外, 需要说明的是, 所述第一蓝牙设备和所述第二蓝牙设备在每次配对连接 完成后, 都会保存配对连接信息。 如果所述第一蓝牙设备和所述第二蓝牙设备 在下次的配对连接过程中, 检测到所述已保存的配对连接信息, 则无需执行步 骤 S407~411。
[0130] 本发明实施例所述第一蓝牙设备在与所述目标第二蓝牙设备建立连接后, 所述 第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的数据, 以及获取对方 监测到的自身的数据, 并从获取的所述数据 (例如 RSS擞据、 运动数据) 中选 择至少一组数据, 根据选择的所述数据建立对应的曲线, 通过判断建立的所述 曲线是否符合预定模式来进一步确认连接的安全性。
[0131]
[0132] 作为本发明的另一较佳示例, 在所述第一蓝牙设备与所述目标第二蓝牙设备建 立连接之后, 本发明还可以包括:
[0133] 第一蓝牙设备根据预设吋间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI 数据和 /或获取所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据;
[0134] 第一蓝牙设备判断获取的所述 RSSI数据的变化是否在预设范围内; [0135] 若否, 则断幵与所述目标第二蓝牙设备的连接。
[0136] 该实例可应用于如下场景: 第一蓝牙设备和所述目标第二蓝牙设备在一起做相 同运动, 例如第一蓝牙设备拿在手上, 目标第二蓝牙设备带在手腕上, 由于第 一蓝牙设备和所述目标第二蓝牙设备距离没有改变, 所述 RSSI数据的变化接近 为零。
[0137] 另外, 还需要说明的是, 上述图 3以及图 4对应实施例中, 判断运动曲线是否符 合预定模式的, 可应用于一个蓝牙设备运动或者两个蓝牙设备做相同运动的场 景; 判断 RSSI变化曲线是否符合预定模式的, 可应用于一个蓝牙设备运动或者 两个蓝牙设备做相同运动的场景; 判断 RSSI变化曲线与运动曲线是否匹配, 可 应用于一个蓝牙设备运动的场景; 判断两个运动曲线是否匹配, 可应用于两个 蓝牙设备做相同运动的场景; 判断两个 RSSI变化曲线是否匹配, 可应用于一个 蓝牙设备运动或者两个蓝牙设备做相同运动的场景。
[0138] 需要进一步说明的是, 涉及广播功能吋, 相应的蓝牙设备需要具有蓝牙 4.0协议 的蓝牙低能耗 (Bluetooth Low Energy, BLE) 功能。
[0139] 另外, 应理解, 图 2、 图 3以及图 4对应实施例中各步骤的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对 本发明实施例的实施过程构成任何限定。
[0140] 请参阅图 5, 为本发明实施例提供的终端设备的配对连接系统的组成结构示意 图。 为了便于说明, 仅示出了与本发明实施例相关的部分。
[0141] 所述终端设备的配对连接系统可以是内置于第一蓝牙设备中的软件单元、 硬件 单元或者是软硬件结合的单元。
[0142] 所述终端设备的配对连接系统包括: 第一数据接收单元 51、 第一数据获取单元 52、 第一曲线建立单元 53、 第二曲线建立单元 54、 匹配单元 55以及连接单元 56 , 各单元具体功能如下:
[0143] 第一数据接收单元 51, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广 播数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;
[0144] 第一数据获取单元 52, 用于获取与所述广播数据包关联的 RSSI数据, 以及所述 广播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到的数据 [0145] 第一曲线建立单元 53, 用于根据所述 RSSI数据建立多个第一 RSSI变化曲线, 其 中每个第二蓝牙设备对应一个第一 RSSI变化曲线;
[0146] 第二曲线建立单元 54, 用于根据所述广播数据包中携带的所述第二蓝牙设备通 过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝 牙设备对应一个第一运动曲线;
[0147] 匹配单元 55, 用于査找所述第一 RSSI变化曲线与所述第一运动曲线相匹配的目 标第二蓝牙设备;
[0148] 连接单元 56, 用于在査找到所述第一 RSSI变化曲线与所述第一运动曲线相匹配 的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请求, 以建立连接
[0149] 进一步的, 所述系统还包括:
[0150] 第二数据获取单元 57, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间 间隔获取以下至少两组数据: 所述目标第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据、 所述目标第二蓝牙设备根 据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所 述目标第二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据;
[0151] 第三曲线建立单元 58, 用于根据获取的所述数据建立相应的曲线;
[0152] 第一判断单元 59, 用于判断建立的所述曲线是否都相匹配;
[0153] 第一处理单元 510, 用于在所述第一判断单元 59判断结果为否吋, 断幵与所述 目标第二蓝牙设备的连接。
[0154] 进一步的, 所述系统还包括:
[0155] 第三数据获取单元 511, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋 间间隔获取以下至少一组数据: 所述目标第二蓝牙设备的蓝牙信号的 RSSI数据 、 所述第一蓝牙设备自带的运动传感器采集到的数据、 所述目标第二蓝牙设备 根据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及 所述目标第二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的 运动传感器采集到的数据;
[0156] 第四曲线建立单元 512, 用于根据获取的所述数据建立相应的曲线;
[0157] 第二判断单元 513, 用于判断建立的所述曲线是否都符合预定模式;
[0158] 第二处理单元 514, 用于在所述第二判断单元 513判断结果为否吋, 断幵与所述 目标第二蓝牙设备的连接。
[0159] 进一步的, 所述系统还包括:
[0160] 第四数据获取单元 515, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋 间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据和 /或获取所述目标第 二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSS I数据;
[0161] 第三判断单元 516, 用于判断获取的所述 RSSI数据的变化是否在预设范围内; [0162] 第三处理单元 517, 用于在所述第三判断单元 516判断结果为否吋, 断幵与所述 目标第二蓝牙设备的连接。
[0163] 进一步的, 所述广播数据包携带有厂商自定义字段;
[0164] 所述系统还包括:
[0165] 过滤单元, 用于在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后 , 根据所述广播数据包携带的厂商自定义字段过滤出该厂商发行的第二蓝牙设 备。
[0166] 进一步的, 所述系统还包括:
[0167] 显示单元, 用于以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的 过程。
[0168] 作为本发明的另一较佳实例, 本发明还提供一种终端设备配对连接的系统, 该 系统可用于连接后的进一步确认, 所述系统包括:
[0169] 第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间间 隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以及所述目标第二蓝牙 设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到 的数据;
[0170] 第五曲线建立单元, 用于根据所述 RSSI数据建立第一 RSSI变化曲线; [0171] 第六曲线建立单元, 用于根据所述目标第二蓝牙设备通过其自带的运动传感器 采集到的数据建立第一运动曲线;
[0172] 第四判断单元, 用于判断所述第一 RSSI变化曲线与所述第一运动曲线是否相匹 配;
[0173] 第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所述目标第 二蓝牙设备的连接。
[0174] 综上所述, 本发明实施例通过将第二蓝牙设备的 RSSI变化曲线与第二蓝牙设备 的运动曲线进行匹配来査找目标第二蓝牙设备, 使得配对连接过程安全、 简单 、 快捷, 不需要用户参与选择、 输入、 确认等操作, 有效提升了用户体验。 而 且, 本发明实施例在所述第一蓝牙设备与所述目标第二蓝牙设备建立连接后, 还可以通过多种方式进一步确认连接的安全性, 具有较强的易用性和实用性。
[0175] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各 功能单元的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配 由不同的功能单元、 模块完成, 即将所述系统的内部结构划分成不同的功能单 元或模块, 以完成以上描述的全部或者部分功能。 实施例中的各功能单元可以 集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个 以上单元集成在一个单元中, 上述集成的单元既可以采用硬件的形式实现, 也 可以采用软件功能单元的形式实现。 另外, 各功能单元的具体名称也只是为了 便于相互区分, 并不用于限制本申请的保护范围。 上述系统中单元的具体工作 过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。
[0176] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。
[0177] 在本发明所提供的实施例中, 应该理解到, 所揭露的系统和方法, 可以通过其 它的方式实现。 例如, 以上所描述的系统实施例仅仅是示意性的, 例如, 所述 单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽 略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通讯连 接可以是通过一些接口, 装置或单元的间接耦合或通讯连接, 可以是电性, 机 械或其它的形式。
[0178] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。
[0179] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 实现。
[0180] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施 例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部 或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介 质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor) 执行本发明实施例各个实施例所述方法 的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (R 0M, Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
[0181] 以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明实 施例各实施例技术方案的精神和范围。

Claims

权利要求书
[权利要求 1] 一种终端设备配对连接的方法, 其特征在于, 所述方法包括:
第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播数 据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据, 以及所述广 播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集到 的数据;
第一蓝牙设备根据所述 RSS擞据建立多个第一 RSSI变化曲线, 其中 每个第二蓝牙设备对应一个第一 RSSI变化曲线; 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过其 自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第 二蓝牙设备对应一个第一运动曲线;
第一蓝牙设备査找所述第一 RSSI变化曲线与所述第一运动曲线相匹 配的目标第二蓝牙设备;
第一蓝牙设备在査找到所述第一 RSSI变化曲线与所述第一运动曲线 相匹配的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接请 求, 以建立连接。
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括:
第一蓝牙设备根据预设吋间间隔获取以下至少两组数据: 所述目标第 二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动 传感器采集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔 监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第 二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据;
第一蓝牙设备根据获取的所述数据建立相应的曲线; 第一蓝牙设备判断建立的所述曲线是否都相匹配; 若否, 则断幵与所述目标第二蓝牙设备的连接。
[权利要求 3] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括:
第一蓝牙设备根据预设吋间间隔获取以下至少一组数据: 所述目标第 二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动 传感器采集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔 监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第 二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据;
第一蓝牙设备根据获取的所述数据建立相应的曲线;
第一蓝牙设备判断建立的所述曲线是否都符合预定模式;
若否, 则断幵与所述目标第二蓝牙设备的连接。
[权利要求 4] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括:
第一蓝牙设备根据预设吋间间隔获取所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据和 /或获取所述目标第二蓝牙设备根据所述预设吋间间 隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据;
第一蓝牙设备判断获取的所述 RSSI数据的变化是否在预设范围内; 若否, 则断幵与所述目标第二蓝牙设备的连接。
[权利要求 5] 如权利要求 1至 4任一项所述的方法, 其特征在于, 所述广播数据包携 带有厂商自定义字段;
在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后, 还包 括:
所述第一蓝牙设备根据所述广播数据包携带的厂商自定义字段过滤出 该厂商发行的第二蓝牙设备。
[权利要求 6] 如权利要求 1至 5任一项所述的方法, 其特征在于, 所述方法还包括: 以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的过程。
[权利要求 7] —种终端设备配对连接的方法, 其特征在于, 所述方法包括: 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔 获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以及所述目标 第二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的 运动传感器采集到的数据;
第一蓝牙设备根据所述 RSSI数据建立第一 RSSI变化曲线;
第一蓝牙设备根据所述目标第二蓝牙设备通过其自带的运动传感器采 集到的数据建立第一运动曲线;
第一蓝牙设备判断所述第一 RSSI变化曲线与所述第一运动曲线是否 相匹配;
若否, 则断幵与所述目标第二蓝牙设备的连接。
[权利要求 8] —种终端设备配对连接的系统, 其特征在于, 所述系统包括:
第一数据接收单元, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广播数据包携带有所述第二蓝牙设备通过其自带的运动传感器采 集到的数据;
第一数据获取单元, 用于获取与所述广播数据包关联的 RSSI数据, 以及所述广播数据包中携带的所述第二蓝牙设备通过其自带的运动传 感器采集到的数据;
第一曲线建立单元, 用于根据所述 RSS擞据建立多个第一 RSSI变化 曲线, 其中每个第二蓝牙设备对应一个第一 RSSI变化曲线; 第二曲线建立单元, 用于根据所述广播数据包中携带的所述第二蓝牙 设备通过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设备对应一个第一运动曲线; 匹配单元, 用于査找所述第一 RSSI变化曲线与所述第一运动曲线相 匹配的目标第二蓝牙设备;
连接单元, 用于在査找到所述第一 RSSI变化曲线与所述第一运动曲 线相匹配的目标第二蓝牙设备后, 向所述目标第二蓝牙设备发起连接 请求, 以建立连接。
[权利要求 9] 如权利要求 8所述的系统, 其特征在于, 所述系统还包括: 第二数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取以下至少两组数据: 所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据 、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝 牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述 预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数 据;
第三曲线建立单元, 用于根据获取的所述数据建立相应的曲线; 第一判断单元, 用于判断建立的所述曲线是否都相匹配;
第一处理单元, 用于在所述第一判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。
[权利要求 10] 如权利要求 8所述的系统, 其特征在于, 所述系统还包括:
第三数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取以下至少一组数据: 所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据 、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝 牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述 预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数 据;
第四曲线建立单元, 用于根据获取的所述数据建立相应的曲线; 第二判断单元, 用于判断建立的所述曲线是否都符合预定模式; 第二处理单元, 用于在所述第二判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。
[权利要求 11] 如权利要求 8所述的系统, 其特征在于, 所述系统还包括:
第四数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据和 /或 获取所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据; 第三判断单元, 用于判断获取的所述 RSSI数据的变化是否在预设范 围内;
第三处理单元, 用于在所述第三判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。
[权利要求 12] 如权利要求 8至 11任一项所述的系统, 其特征在于, 所述广播数据包 携带有厂商自定义字段;
所述系统还包括:
过滤单元, 用于在第一蓝牙设备接收多个第二蓝牙设备广播的广播数 据包之后, 根据所述广播数据包携带的厂商自定义字段过滤出该厂商 发行的第二蓝牙设备。
[权利要求 13] 如权利要求 8至 12任一项所述的系统, 其特征在于, 所述系统还包括 显示单元, 用于以图形化的方式显示第一蓝牙设备与第二蓝牙设备配 对连接的过程。
[权利要求 14] 一种终端设备配对连接的系统, 其特征在于, 所述系统包括:
第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据, 以 及所述所述目标第二蓝牙设备根据所述预设吋间间通过所述目标第二 蓝牙设备自带的运动传感器采集到的数据;
第五曲线建立单元, 用于根据所述 RSSI数据建立第一 RSSI变化曲线 第六曲线建立单元, 用于根据所述目标第二蓝牙设备通过其自带的运 动传感器采集到的数据建立第一运动曲线;
第四判断单元, 用于判断所述第一 RSSI变化曲线与所述第一运动曲 线是否相匹配;
第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。
PCT/CN2015/096854 2015-06-02 2015-12-09 终端设备配对连接的方法及系统 WO2016192357A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510296706.1 2015-06-02
CN201510296706.1A CN104967970B (zh) 2015-06-02 2015-06-02 终端设备配对连接的方法及系统

Publications (1)

Publication Number Publication Date
WO2016192357A1 true WO2016192357A1 (zh) 2016-12-08

Family

ID=54221891

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096854 WO2016192357A1 (zh) 2015-06-02 2015-12-09 终端设备配对连接的方法及系统

Country Status (2)

Country Link
CN (1) CN104967970B (zh)
WO (1) WO2016192357A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007104B (zh) * 2015-06-02 2017-08-29 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN104936135B (zh) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105007560B (zh) * 2015-06-02 2018-09-11 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105050029B (zh) * 2015-06-02 2019-06-18 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN104936134B (zh) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN104967970B (zh) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105246024B (zh) * 2015-09-02 2019-05-24 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
US10517129B2 (en) 2016-08-23 2019-12-24 Huawei Technologies Co., Ltd. Bluetooth pairing method and bluetooth device
CN106507278A (zh) * 2016-11-01 2017-03-15 佳禾智能科技股份有限公司 耳机社交互动方法
CN108271141A (zh) * 2017-12-29 2018-07-10 青岛真时科技有限公司 一种提高蓝牙配对效率的方法、装置和智能设备
CN110021156A (zh) * 2018-01-10 2019-07-16 金宝电子工业股份有限公司 遥控系统以及遥控方法
CN114726949B (zh) * 2022-04-18 2022-11-22 深圳市丰禾原电子科技有限公司 一种来电接听方法及蓝牙耳机

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523556A (zh) * 2011-12-15 2012-06-27 百度在线网络技术(北京)有限公司 移动终端的配对方法及系统、移动终端及服务器
US20130029607A1 (en) * 2011-07-26 2013-01-31 Plantronics, Inc. Decreasing RSSI Settling Time in Low-Power Mode Systems
CN103687050A (zh) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 移动终端与车载设备连接方法、移动终端及车载连接系统
CN104936135A (zh) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN104936134A (zh) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN104967970A (zh) * 2015-06-02 2015-10-07 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105007560A (zh) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105007104A (zh) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105050029A (zh) * 2015-06-02 2015-11-11 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105208513A (zh) * 2015-09-02 2015-12-30 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105246024A (zh) * 2015-09-02 2016-01-13 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023540B (zh) * 2012-12-28 2014-12-03 广东欧珀移动通信有限公司 通过蓝牙传输文件的方法和装置
CN103605701A (zh) * 2013-11-07 2014-02-26 北京智谷睿拓技术服务有限公司 通信对象的确定方法及确定装置
CN104159188B (zh) * 2014-08-28 2018-08-14 吴宇 一种无线设备的配对方法

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130029607A1 (en) * 2011-07-26 2013-01-31 Plantronics, Inc. Decreasing RSSI Settling Time in Low-Power Mode Systems
CN102523556A (zh) * 2011-12-15 2012-06-27 百度在线网络技术(北京)有限公司 移动终端的配对方法及系统、移动终端及服务器
CN103687050A (zh) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 移动终端与车载设备连接方法、移动终端及车载连接系统
CN104936135A (zh) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN104936134A (zh) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN104967970A (zh) * 2015-06-02 2015-10-07 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105007560A (zh) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105007104A (zh) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105050029A (zh) * 2015-06-02 2015-11-11 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统
CN105208513A (zh) * 2015-09-02 2015-12-30 深圳市文鼎创数据科技有限公司 终端设备配对连接确认的方法及系统
CN105246024A (zh) * 2015-09-02 2016-01-13 深圳市文鼎创数据科技有限公司 终端设备配对连接的方法及系统

Also Published As

Publication number Publication date
CN104967970A (zh) 2015-10-07
CN104967970B (zh) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2016192356A1 (zh) 终端设备配对连接的方法及系统
WO2016192357A1 (zh) 终端设备配对连接的方法及系统
WO2016192350A1 (zh) 终端设备配对连接的方法及系统
WO2016192353A1 (zh) 终端设备配对连接的方法及系统
WO2016192355A1 (zh) 终端设备配对连接确认的方法及系统
WO2016192352A1 (zh) 终端设备配对连接确认的方法及系统
WO2017035978A1 (zh) 终端设备配对连接的方法及系统
EP2945136B1 (en) Mobile terminal and method for controlling the mobile terminal
CN104518875B (zh) 一种身份验证及账号获取的方法、移动终端
CN108702602B (zh) 分享图像的方法、电子设备及系统
CN106534072B (zh) 用户信息授权方法、装置、设备及系统
WO2017035977A1 (zh) 终端设备配对连接确认的方法及系统
US11055547B2 (en) Unlocking control method and related products
US10003944B2 (en) Electronic device and method for providing emergency video call service
CN107566980B (zh) 一种移动终端的定位方法和移动终端
CN109074443A (zh) 一种解锁方法及装置
CN112134758B (zh) 弱网环境监测和通信会话重连的方法和装置
KR20160003399A (ko) 스미싱 알림 방법 및 장치
WO2016169107A1 (zh) 来电接听方法及装置
CN111357245B (zh) 一种信息搜索的方法、终端、网络设备和系统
CN108235237B (zh) 数据上报方法、装置、移动终端及计算机可读介质
CN109388238A (zh) 一种电子设备的控制方法及装置
EP3342180B1 (en) Method of detecting external devices and electronic device for processing same
CN111479219A (zh) 移动通信方法、装置、终端及存储介质
CN114760321B (zh) 设备数据同步方法、装置、终端设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15894001

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15894001

Country of ref document: EP

Kind code of ref document: A1