WO2016192356A1 - Method and system for terminal device pairing connection - Google Patents

Method and system for terminal device pairing connection Download PDF

Info

Publication number
WO2016192356A1
WO2016192356A1 PCT/CN2015/096852 CN2015096852W WO2016192356A1 WO 2016192356 A1 WO2016192356 A1 WO 2016192356A1 CN 2015096852 W CN2015096852 W CN 2015096852W WO 2016192356 A1 WO2016192356 A1 WO 2016192356A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth device
target
bluetooth
data
motion
Prior art date
Application number
PCT/CN2015/096852
Other languages
French (fr)
Chinese (zh)
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 WO2016192356A1 publication Critical patent/WO2016192356A1/en

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
    • 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 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 first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern to be the target Two Bluetooth devices;
  • 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: [0016] after establishing a connection with a target second Bluetooth device, the first Bluetooth device acquires according to a preset time interval Data collected by the second Bluetooth device through its own motion sensor;
  • the first Bluetooth device establishes a first motion curve according to data collected by the second Bluetooth device through its own motion sensor
  • the first Bluetooth device determines whether the first motion curve meets a predetermined mode
  • the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0021] 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 curve establishing unit configured to establish, according to data collected by the second Bluetooth device carried in the broadcast data packet by using a motion sensor that is included in the broadcast data packet, each of the second motion curves, where each second The Bluetooth device corresponds to a first motion curve;
  • a searching unit configured to search, from the plurality of first motion curves, a first motion curve that meets a predetermined pattern
  • the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode is found as the target second Bluetooth device;
  • connection unit configured to initiate a connection request to the target second Bluetooth device to establish a connection.
  • the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0026] a second data receiving unit, configured to: after establishing a connection with the target second Bluetooth device, according to the preset Daytime Obtaining data collected by the second Bluetooth device through its own motion sensor;
  • a fourth curve establishing unit configured to establish a first motion curve according to data collected by the second Bluetooth device through its own motion sensor
  • a fourth determining unit configured to determine whether the first motion curve meets a predetermined mode
  • 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 uses a second Bluetooth device corresponding to the first motion curve that meets the predetermined mode as the target second Bluetooth device, and The target second Bluetooth device initiates a connection request to establish a connection.
  • the pairing connection process in the embodiment of the present invention does not require the user to participate in the operations of selecting, inputting, confirming, etc., and under the premise of ensuring high security, the human operation is reduced, and the pairing connection of the terminal device is improved. Efficiency, enhanced user experience, strong ease of use and practicality.
  • 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 broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor (eg, a gyroscope, a gravity sensor, an acceleration sensor, etc.).
  • the first Bluetooth device 010 after the pairing connection, plays the Bluetooth, and receives the broadcast data packet broadcast by the plurality of second Bluetooth devices 020.
  • the first Bluetooth device 010 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 Device 020 corresponds to a first motion profile. Specifically, the plurality of pieces of motion data sent by each of the second Bluetooth devices 020 are acquired, and the plurality of pieces of motion data are acquired, and the first motion corresponding to the second Bluetooth device 020 is respectively established according to the plurality of pieces of motion data. curve.
  • the first Bluetooth device 010 searches for the first motion curve that meets the predetermined mode from the plurality of first motion curves, and searches for the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode. 020 as the target second Bluetooth device.
  • the first Bluetooth device 010 initiates a connection request to the target second Bluetooth device 020 to establish a connection.
  • the first Bluetooth device 010 may further acquire an indication of the strength of the received signal associated with the broadcast data packet. Received Signal Strength Indication (RSI) data.
  • RSSI Received Signal Strength Indication
  • the first Bluetooth device 010 calculates a corresponding RSSI value, and the RSSI value is updated at least once every 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 first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode to be found as
  • the target second Bluetooth device may specifically include:
  • the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and the second Bluetooth device corresponding to the first motion curve that matches the predetermined pattern is found.
  • the second Bluetooth device that finds the change of the RSSI data in a preset range, and finds the second Bluetooth device that is found as the target second Bluetooth device.
  • whether the motion curve meets the predetermined mode may be applied to the scenario where the second Bluetooth device 020 moves alone or the first Bluetooth device 010 and the second Bluetooth device 020 perform the same motion. .
  • determining that the change of the RSSI data is applicable to a scenario in which the first Bluetooth device 010 and the second Bluetooth device 020 perform the same motion together, for example, the first Bluetooth device is in the hand, and the target is Two Bluetooth devices are worn on the wrist.
  • FIG. 2 is a flowchart for implementing a method for pairing and connecting a terminal device according to an embodiment of the present invention, which mainly includes 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 broadcast data packet carries the second Bluetooth
  • the data collected by the device through its own motion sensor; the interval may be 20ms ⁇ 10.24s
  • 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 custom 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.
  • step S202 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, Acceleration (ordinate) - inter-turn (abscissa) and other curve forms.
  • step S203 the first Bluetooth device searches for the first motion curve that matches the predetermined pattern from the plurality of first motion curves, and searches for the second corresponding to the first motion curve that matches the predetermined pattern.
  • the Bluetooth device acts as the target second Bluetooth device.
  • the first motion curve conforming to the predetermined mode may be a curve in which the curve variation amplitude is within a preset range and/or the curve change period conforms to a specific rule or the like.
  • the first Bluetooth device collects data through its own motion sensor, establishes a corresponding motion curve according to the collected data, and uses the established motion curve as the predetermined mode. And searching for a first motion curve that matches the motion curve from the plurality of first motion curves, and using the second Bluetooth device corresponding to the matched first motion curve as the target second Bluetooth device.
  • the first motion curve is matched with the motion curve, and the change range, the change period, and the shape of the first motion curve and the motion curve (ie, the change trend of the different inter-turn points, the rate of change) are in a preset range.
  • the user may select any one of them or select the first condition that meets the preset condition (for example, the selection distance is the closest).
  • Two Bluetooth devices act as the target second Bluetooth device.
  • the embodiment may further include:
  • the first Bluetooth device acquires RSSI data associated with the broadcast data packet
  • the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode to be found as
  • the target second Bluetooth device can include:
  • the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and the second Bluetooth device corresponding to the first motion curve that matches the predetermined pattern is found.
  • the second Bluetooth device that finds the change of the RSSI data in a preset range, and finds the second Bluetooth device that is found as the target second Bluetooth device.
  • the user smashes the motion sensor by the app of the first Bluetooth device, and shakes the second Bluetooth device and the first Bluetooth device together, and the first Bluetooth device receives the broadcast data packet broadcast by the second Bluetooth device, and acquires the The data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor simultaneously records the RSSI data associated with the broadcast data packet.
  • the first Bluetooth device further needs to determine whether the change of the RSSI data is within a preset range and whether the RSSI data is always the largest.
  • step S204 the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
  • the manner of establishing the connection may be that the user selects the target second Bluetooth device, and then connects through the justwork mode, or may be connected through an 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: [0074] In the first Bluetooth device and/or the second Bluetooth device, the acknowledgment of the pairing connection and the unpairing connection are added. Specifically, the first Bluetooth device and/or the second Bluetooth device may be added to confirm the pairing connection and cancel.
  • Pairing 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,
  • the first Bluetooth device or the second Bluetooth device touches the touch screen to perform the confirming the pairing connection function, and the reverse button is swiped on the touch screen of the first Bluetooth device or the second Bluetooth device to perform the unpairing connection function.
  • 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 data collected by the second Bluetooth device through its own motion sensor according to the preset inter-turn interval;
  • the first Bluetooth device establishes a first motion curve according to data collected by the second Bluetooth device through its own motion sensor
  • the first Bluetooth device determines whether the first motion curve meets a predetermined mode
  • 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.
  • an implementation flow of a method for pairing a terminal device includes the following steps:
  • Step S301 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 S302 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 The device corresponds to a first motion curve;
  • Step S303 the first Bluetooth device searches for the first one that matches the predetermined pattern from the plurality of first motion curves. a motion curve, the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode is found as the target second Bluetooth device;
  • Step S304 the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
  • Step S305 the first Bluetooth device acquires at least two sets of data according to the preset inter-turn 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 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 S306 The first Bluetooth device establishes a corresponding curve according to the acquired data.
  • the RS of the first Bluetooth device according to the monitored Bluetooth signal of the target second Bluetooth device
  • the SI data establishes a second RSSI curve, according to the obtained RSS signal of the Bluetooth signal of the first Bluetooth device
  • the I data establishes a third RSSI curve
  • the method may further include: [0095] 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 S307 The first Bluetooth device determines whether the established curves are all matched. If the determination result is “Yes”, step S308 is performed; if the determination result is “No”, step S309 is performed.
  • determining, by the first Bluetooth device, whether the established curves are all matched may include: determining, by the first Bluetooth device, whether the second RSSI curve and the third RSSI curve are matched, 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 S308 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 S309 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.
  • the first Bluetooth device and the second Bluetooth device save the 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, steps S305-309 need not be performed.
  • the above examples of the present embodiment are only for explaining the present invention, and do not limit the scope of protection of the present invention.
  • the first Bluetooth device and the target second Bluetooth device can 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 that is 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 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 S403 the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and searches for the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode.
  • the target second Bluetooth device As the target second Bluetooth device;
  • Step S404 the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
  • Step S405 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 S406 The first Bluetooth device establishes a corresponding curve according to the acquired data.
  • Step S407 the first Bluetooth device determines whether the established curve meets the predetermined mode. If the determination result is “Yes”, step S408 is performed; if the determination result is “No”, step S409 is performed. [0117]
  • the curve conforming to the predetermined mode may be that the variation range 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 S409 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 S405-409.
  • 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
  • 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 meets 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 matches the motion curve, A scene applied to the motion of a Bluetooth device; determining whether the two 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 two Bluetooth The device does the same motion scene.
  • 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 paired 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 curve establishing unit
  • the first data receiving unit 51 is configured to receive a broadcast data packet that is broadcast by the multiple second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor;
  • the first curve establishing unit 52 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 searching unit 53 is configured to search, from the plurality of first motion curves, a first motion curve that meets a predetermined pattern, and use the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern to be found as Target second Bluetooth device;
  • connection unit 54 is configured to initiate a connection request to the target second Bluetooth device to establish a connection.
  • system further includes:
  • the first data acquiring unit 55 is configured to acquire, after receiving the broadcast data packet broadcast by the multiple second Bluetooth devices, the RSSI data associated with the broadcast data packet;
  • the searching unit 53 is configured to: search for a first motion curve that matches a predetermined pattern from the plurality of first motion curves, and select a first motion curve corresponding to the predetermined pattern that matches the predetermined pattern.
  • Two Bluetooth The second Bluetooth device in the device that finds that the RSSI data changes within a preset range, and the second Bluetooth device that is found is the target second Bluetooth device.
  • system further includes:
  • the second data obtaining unit 56 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;
  • a second curve establishing unit 57 configured to establish a corresponding curve according to the acquired data
  • the first determining unit 58 is configured to determine whether the established curves are all matched;
  • the first processing unit 59 is configured to: when the first determining unit 58 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • system further includes:
  • the third data acquiring unit 510 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 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 511 is configured to establish a corresponding curve according to the acquired data
  • the second determining unit 512 is configured to determine whether the established curves meet the predetermined mode.
  • the second processing unit 513 is configured to: when the second determining unit 512 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
  • system further includes:
  • the fourth data acquiring unit 514 is configured to acquire RSSI data of the Bluetooth signal of the target second Bluetooth device according to a preset inter-time interval and/or obtain the target after establishing a connection with the target second Bluetooth device.
  • the RSS signal of the Bluetooth signal of the first Bluetooth device monitored by the second Bluetooth device according to the preset inter-turn interval I data;
  • the third determining unit 515 is configured to determine whether the acquired change of the RSSI data is within a preset range.
  • the third processing unit 516 is configured to determine, in the third determining unit 515, that the result is no. ⁇ , disconnecting the connection with the target second Bluetooth device.
  • the broadcast data packet carries a vendor custom field
  • the system further includes:
  • the filtering unit is 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 a terminal device, the system being usable for further confirmation after the connection, the system comprising:
  • a second data receiving unit configured to acquire, after the connection with the target second Bluetooth device, the data collected by the second Bluetooth device through the motion sensor provided by the second Bluetooth device according to the preset time interval;
  • a fourth curve establishing unit configured to establish a first motion curve according to data collected by the second Bluetooth device through its own motion sensor
  • a fourth determining unit configured to determine whether the first motion curve meets a predetermined mode
  • 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 uses a second Bluetooth device corresponding to the first motion curve of the predetermined mode as the target second Bluetooth device, and initiates a connection request to the target second Bluetooth device, establish connection.
  • the pairing connection process in the embodiment of the present invention does not require the user to participate in the operations of selecting, inputting, confirming, etc., and under the premise of ensuring high security, the human operation is reduced, and the pairing connection of the terminal device is improved. Efficiency, enhanced user experience.
  • the embodiment of the present invention can further confirm the security of the connection in multiple 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 convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present application.
  • the disclosed systems and methods can be implemented in other ways.
  • 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, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the 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 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. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage.
  • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a method and system for a terminal device pairing connection, which is applicable to the technical field of communications. The method comprises: a first Bluetooth device receives a broadcasting data packet broadcast by a plurality of second Bluetooth devices, the broadcasting data packet carrying data collected by the second Bluetooth devices via a movement sensor thereof; the first Bluetooth device establishes a plurality of first movement curves according to the data carried in the broadcasting data packet and collected by the second Bluetooth devices via the movement sensor thereof, wherein each second Bluetooth device corresponds to one first movement curve; the first Bluetooth device searches for a first movement curve which conforms to a pre-set mode from the plurality of first movement curves, and takes the found second Bluetooth device corresponding to the first movement curve which conforms to the pre-set mode as a target second Bluetooth device; and the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection. The present invention improves the efficiency and security of a pairing connection.

Description

终端设备配对连接的方法及系统 技术领域  Method and system for pairing and connecting terminal devices
[0001] 本发明属于通信技术领域, 尤其涉及一种终端设备配对连接的方法及系统。  [0001] 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.
背景技术  Background technique
[0002] 在现有技术中, 终端设备 (如第一蓝牙设备与第二蓝牙设备) 配对连接的流程 一般包括以下步骤:  [0002] In the prior art, the process of pairing a terminal device (such as a first Bluetooth device with a second Bluetooth device) generally includes the following steps:
[0003] 步骤 1, 第一蓝牙设备扫描第二蓝牙设备; [0003] Step 1, the first Bluetooth device scans the second Bluetooth device;
[0004] 步骤 2, 用户从扫描到的第二蓝牙设备中选择目标第二蓝牙设备;  [0004] Step 2: The user selects a target second Bluetooth device from the scanned second Bluetooth device;
[0005] 步骤 3, 如果第一蓝牙设备与目标第二蓝牙设备已经配对过, 则直接建立蓝牙 连接; [0005] Step 3: If the first Bluetooth device and the target second Bluetooth device have been paired, the Bluetooth connection is directly established;
[0006] 步骤 4, 如果第一蓝牙设备与目标第二蓝牙设备未配对过, 则触发配对流程。  [0006] Step 4: If the first Bluetooth device is not paired with the target second Bluetooth device, the pairing process is triggered.
如果目标第二蓝牙设备是 Justwork配对模式, 则配对过程不需要用户参与, 但是 该配对模式安全性较低; 如果目标第二蓝牙设备使用输入配对码的配对模式, 则配对过程需要用户输入 4至 6位的配对码; 如果目标第二蓝牙设备使用数字比 对的配对模式, 则用户需要比较第一蓝牙设备和第二蓝牙设备各自屏幕上显示 的 6位比对数字是否一样, 如果一样则双方通过点击确认键来完成配对;  If the target second Bluetooth device is Justwork pairing mode, 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;
[0007] 步骤 5, 配对完成后, 第一蓝牙设备与目标第二蓝牙设备建立蓝牙连接。 [0007] Step 5: After the pairing is completed, the first Bluetooth device establishes a Bluetooth connection with the target second Bluetooth device.
[0008] 由上可知, 如果需要保证较高的安全性, 现有第一蓝牙设备与第二蓝牙设备的 配对连接需要用户参与选择、 输入、 确认等, 操作复杂, 配对连接效率较低, 影响用户体验。 [0008] It can be seen from the above that if a higher security is required, the existing connection between the first Bluetooth device and the second Bluetooth device requires the user to participate in selection, input, confirmation, etc., the operation is complicated, and the pairing connection efficiency is low, affecting user experience.
技术问题  technical problem
[0009] 鉴于此, 本发明实施例提供一种终端设备配对连接的方法及系统, 旨在保证较 高安全性的前提下, 减少人为操作, 提高终端设备配对连接的效率。  In view of this, 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.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0010] 第一方面, 本发明提供了一种终端设备配对连接的方法, 所述方法包括: [0011] 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播数据包携带 有所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0010] In a first aspect, 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;
[0012] 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过其自带的运 动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设备对应一 个第一运动曲线;  [0012] 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;
[0013] 第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备作为目标第 二蓝牙设备;  [0013] the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern to be the target Two Bluetooth devices;
[0014] 第一蓝牙设备向所述目标第二蓝牙设备发起连接请求, 以建立连接。  [0014] The first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
[0015] 第二方面, 本发明提供了一种终端设备配对连接的方法, 所述方法包括: [0016] 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔获取所述 第二蓝牙设备通过其自带的运动传感器采集到的数据; [0015] In a second aspect, the present invention provides a method for pairing and connecting a terminal device, where the method includes: [0016] after establishing a connection with a target second Bluetooth device, the first Bluetooth device acquires according to a preset time interval Data collected by the second Bluetooth device through its own motion sensor;
[0017] 第一蓝牙设备根据所述第二蓝牙设备通过其自带的运动传感器采集到的数据建 立第一运动曲线;  [0017] the first Bluetooth device establishes a first motion curve according to data collected by the second Bluetooth device through its own motion sensor;
[0018] 第一蓝牙设备判断所述第一运动曲线是否符合预定模式; [0018] the first Bluetooth device determines whether the first motion curve meets a predetermined mode;
[0019] 若否, 则断幵与所述目标第二蓝牙设备的连接。 [0019] If no, the connection with the target second Bluetooth device is broken.
[0020] 第三方面, 本发明提供了一种终端设备配对连接的系统, 所述系统包括: [0021] 第一数据接收单元, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;  [0020] In a third aspect, the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0021] 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;
[0022] 第一曲线建立单元, 用于根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线; [0022] a first curve establishing unit, configured to establish, according to data collected by the second Bluetooth device carried in the broadcast data packet by using a motion sensor that is included in the broadcast data packet, each of the second motion curves, where each second The Bluetooth device corresponds to a first motion curve;
[0023] 査找单元, 用于从所述多个第一运动曲线中査找符合预定模式的第一运动曲线[0023] a searching unit, configured to search, from the plurality of first motion curves, a first motion curve that meets a predetermined pattern
, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备作为目标 第二蓝牙设备; And the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode is found as the target second Bluetooth device;
[0024] 连接单元, 用于向所述目标第二蓝牙设备发起连接请求, 以建立连接。  [0024] a connection unit, configured to initiate a connection request to the target second Bluetooth device to establish a connection.
[0025] 第四方面, 本发明提供了一种终端设备配对连接的系统, 所述系统包括: [0026] 第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间间 隔获取所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0025] In a fourth aspect, the present invention provides a system for pairing and connecting a terminal device, where the system includes: [0026] a second data receiving unit, configured to: after establishing a connection with the target second Bluetooth device, according to the preset Daytime Obtaining data collected by the second Bluetooth device through its own motion sensor;
[0027] 第四曲线建立单元, 用于根据所述第二蓝牙设备通过其自带的运动传感器采集 到的数据建立第一运动曲线; [0027] a fourth curve establishing unit, configured to establish a first motion curve according to data collected by the second Bluetooth device through its own motion sensor;
[0028] 第四判断单元, 用于判断所述第一运动曲线是否符合预定模式; [0028] a fourth determining unit, configured to determine whether the first motion curve meets a predetermined mode;
[0029] 第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所述目标第 二蓝牙设备的连接。 [0029] 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.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0030] 本发明实施例与现有技术相比存在的有益效果是: 本发明实施例将符合预定模 式的第一运动曲线对应的第二蓝牙设备作为所述目标第二蓝牙设备, 并向所述 目标第二蓝牙设备发起连接请求, 以建立连接。 与现有技术相比, 本发明实施 例所述配对连接过程不需要用户参与选择、 输入、 确认等操作, 在保证较高安 全性的前提下, 减少了人为操作, 提高了终端设备配对连接的效率, 增强了用 户体验, 具有较强的易用性和实用性。  [0030] The beneficial effects of the embodiment of the present invention compared with the prior art are: the embodiment of the present invention uses a second Bluetooth device corresponding to the first motion curve that meets the predetermined mode as the target second Bluetooth device, and The target second Bluetooth device initiates a connection request to establish a connection. Compared with the prior art, the pairing connection process in the embodiment of the present invention does not require the user to participate in the operations of selecting, inputting, confirming, etc., and under the premise of ensuring high security, the human operation is reduced, and the pairing connection of the terminal device is improved. Efficiency, enhanced user experience, strong ease of use and practicality.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0031] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。  [0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the skilled artisan.
[0032] 图 1是本发明实施例提供的终端设备配对连接方法的应用场景图; 1 is an application scenario diagram of a method for pairing and connecting terminal devices according to an embodiment of the present invention;
[0033] 图 2是本发明实施例提供的终端设备配对连接方法的实现流程示意图; 2 is a schematic flowchart of an implementation process of a terminal device pairing connection method according to an embodiment of the present invention;
[0034] 图 3是本发明另一实施例提供的终端设备配对连接方法的实现流程示意图; [0035] 图 4是本发明另一实施例提供的终端设备配对连接方法的实现流程示意图; [0036] 图 5是本发明实施例提供的终端设备配对连接系统的组成结构示意图。 3 is a schematic flowchart of an implementation process of a terminal device pairing connection method according to another embodiment of the present invention; [0035] 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; [0036] FIG. 5 is a schematic structural diagram of a terminal device pairing connection system according to an embodiment of the present invention.
本发明的实施方式 [0037] 以下描述中, 为了说明而不是为了限定, 提出了诸如特定系统结构、 技术之类 的具体细节, 以便透切理解本发明实施例。 然而, 本领域的技术人员应当清楚 , 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省 略对众所周知的系统、 装置、 电路以及方法的详细说明, 以免不必要的细节妨 碍本发明的描述。 Embodiments of the invention [0037] In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the invention.
[0038] 为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。  [0038] In order to explain the technical solutions described in the present invention, the following description will be made by way of specific embodiments.
[0039] 图 1示出了本发明实施例提供的终端设备配对连接方法的应用场景, 为了便于 说明, 仅示出了与本发明实施例相关的部分。  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.
[0040] 如图 1所示, 所述应用场景包括一个第一蓝牙设备 010以及多个第二蓝牙设备 02[0040] As shown in FIG. 1, the application scenario includes a first Bluetooth device 010 and a plurality of second Bluetooth devices.
0; 0;
[0041] 其中, 所述第一蓝牙设备 010和第二蓝牙设备 020为具有蓝牙功能 (优选具有蓝 牙 4.0协议的蓝牙低能耗 (Bluetooth Low Energy , BLE) 功能) 的终端设备, 例 如智能手机、 平板电脑等。  [0041] wherein, 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.
[0042] 在该应用场景中, 所述多个第二蓝牙设备 020在 BLE模式下, 按设定的吋间间 隔向周围广播设定的广播数据包。 例如, 间隔吋间可以为 20mS~10.24s。 其中, 所述广播数据包携带有所述第二蓝牙设备通过其自带的运动传感器 (例如, 陀 螺仪、 重力传感器、 加速度传感器等) 采集到的数据。 [0042] In the application scenario, 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. For example, the interval between the two can be 20m S ~ 10.24s. The broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor (eg, a gyroscope, a gravity sensor, an acceleration sensor, etc.).
[0043] 所述第一蓝牙设备 010在配对连接前, 打幵蓝牙, 接收所述多个第二蓝牙设备 0 20广播的广播数据包。  [0043] The first Bluetooth device 010, after the pairing connection, plays the Bluetooth, and receives the broadcast data packet broadcast by the plurality of second Bluetooth devices 020.
[0044] 所述第一蓝牙设备 010根据所述广播数据包中携带的所述第二蓝牙设备通过其 自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设 备 020对应一个第一运动曲线。 具体的是, 根据每一个第二蓝牙设备 020发送的 多个广播数据包, 获取关联的多个运动数据, 根据所述多个运动数据分别建立 与该第二蓝牙设备 020相对应的第一运动曲线。  [0044] The first Bluetooth device 010 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 Device 020 corresponds to a first motion profile. Specifically, the plurality of pieces of motion data sent by each of the second Bluetooth devices 020 are acquired, and the plurality of pieces of motion data are acquired, and the first motion corresponding to the second Bluetooth device 020 is respectively established according to the plurality of pieces of motion data. curve.
[0045] 所述第一蓝牙设备 010从所述多个第一运动曲线中査找符合预定模式的第一运 动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备 020 作为目标第二蓝牙设备。  [0045] the first Bluetooth device 010 searches for the first motion curve that meets the predetermined mode from the plurality of first motion curves, and searches for the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode. 020 as the target second Bluetooth device.
[0046] 第一蓝牙设备 010向所述目标第二蓝牙设备 020发起连接请求, 以建立连接。 [0047] 可选的是, 所述第一蓝牙设备 010在接收所述多个第二蓝牙设备 020广播的广播 数据包之后, 还可以进一步获取与所述广播数据包关联的接收信号的强度指示 值 (Received Signal Strength Indication, RSSI) 数据。 [0046] The first Bluetooth device 010 initiates a connection request to the target second Bluetooth device 020 to establish a connection. [0047] Optionally, after receiving the broadcast data packet broadcast by the multiple second Bluetooth devices 020, the first Bluetooth device 010 may further acquire an indication of the strength of the received signal associated with the broadcast data packet. Received Signal Strength Indication (RSI) data.
[0048] 需要说明的是, 所述所述第一蓝牙设备 010在接收到一个广播数据包后, 会计 算出一个对应的 RSSI值, 该 RSSI值至少每个连接间隔后更新 1次。 该 RSSI值与第 二蓝牙设备 020的发射功率、 第一蓝牙设备 010的接收灵敏度成正相关, 与第一 蓝牙设备 010与第二蓝牙设备 020的距离成反相关 (一般信号强度随着距离增大 大致按指数衰减) 。  [0048] It should be noted that, after receiving the first data packet, the first Bluetooth device 010 calculates a corresponding RSSI value, and the RSSI value is updated at least once every 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).
[0049] 所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运动曲 线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备作为目 标第二蓝牙设备具体可以包括:  [0049] the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode to be found as The target second Bluetooth device may specifically include:
[0050] 所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运动曲 线, 并从査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备中査 找所述 RSSI数据的变化在预设范围内的第二蓝牙设备, 将査找到的该第二蓝牙 设备作为目标第二蓝牙设备。  [0050] the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and the second Bluetooth device corresponding to the first motion curve that matches the predetermined pattern is found. The second Bluetooth device that finds the change of the RSSI data in a preset range, and finds the second Bluetooth device that is found as the target second Bluetooth device.
[0051] 需要说明的是, 本发明实施例所述判断运动曲线是否符合预定模式的, 可应用 于第二蓝牙设备 020单独运动或者第一蓝牙设备 010和第二蓝牙设备 020做相同运 动的场景。 本发明实施例所述判断 RSSI数据的变化在预设范围内可应用于第一 蓝牙设备 010和第二蓝牙设备 020在一起做相同运动的场景, 例如第一蓝牙设备 拿在手上, 目标第二蓝牙设备带在手腕上。  [0051] It should be noted that, in the embodiment of the present invention, whether the motion curve meets the predetermined mode may be applied to the scenario where the second Bluetooth device 020 moves alone or the first Bluetooth device 010 and the second Bluetooth device 020 perform the same motion. . In the embodiment of the present invention, determining that the change of the RSSI data is applicable to a scenario in which the first Bluetooth device 010 and the second Bluetooth device 020 perform the same motion together, for example, the first Bluetooth device is in the hand, and the target is Two Bluetooth devices are worn on the wrist.
[0052] 需要说明的是, 本实施例提供的所述应用场景只是一种示例, 只用于解释本发 明, 并不限定本发明的保护范围。  [0052] It should be noted that the application scenario provided by this embodiment is only an example, and is only used to explain the present invention, and does not limit the scope of protection of the present invention.
[0053] 请参阅图 2, 为本发明实施例提供的终端设备配对连接方法的实现流程, 其主 要包括以下步骤:  [0053] Please refer to FIG. 2, which is a flowchart for implementing a method for pairing and connecting a terminal device according to an embodiment of the present invention, which mainly includes the following steps:
[0054] 步骤 S201 , 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据。  [0054] 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.
[0055] 在本发明实施例中, 所述多个第二蓝牙设备可在 BLE模式下, 按设定的吋间间 隔向周围广播设定的广播数据包。 其中, 所述广播数据包携带有所述第二蓝牙 设备通过其自带的运动传感器采集到的数据; 所述间隔吋间可以为 20ms~10.24s [0055] In the embodiment of the present invention, 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 broadcast data packet carries the second Bluetooth The data collected by the device through its own motion sensor; the interval may be 20ms~10.24s
[0056] 作为本发明的一较佳示例, 为了减少候选第二蓝牙设备的数量, 提高第一蓝牙 设备配对连接的安全性, 本发明实施例还包括: [0056] As a preferred example 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, the embodiment of the present invention further includes:
[0057] 所述广播数据包携带有厂商自定义字段; [0057] the broadcast data packet carries a vendor custom field;
[0058] 在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后, 所述第一蓝牙 设备根据所述广播数据包携带的厂商自定义字段过滤出该厂商发行的第二蓝牙 设备。 即所述第一蓝牙设备只需要关注该厂商发行的第二蓝牙设备, 通过广播 数据包携带的厂商自定义字段排除非该厂商发行的第二蓝牙设备。  [0058] after the first Bluetooth device receives the broadcast data packet broadcast by the plurality of second Bluetooth devices, the first Bluetooth device filters out the second Bluetooth device issued by the vendor according to the vendor custom 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.
[0059] 在步骤 S202中, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备 通过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二 蓝牙设备对应一个第一运动曲线。  [0059] In step S202, 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.
[0060] 在本发明实施例中, 所述第一运动曲线可以为距离 (纵坐标) -吋间 (横坐标)曲 线的形式、 速度 (纵坐标) -吋间 (横坐标)曲线的形式、 加速度 (纵坐标) -吋间 ( 横坐标)等曲线形式。  [0060] In the embodiment of the present invention, 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, Acceleration (ordinate) - inter-turn (abscissa) and other curve forms.
[0061] 在步骤 S203中, 第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的 第一运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙 设备作为目标第二蓝牙设备。  [0061] In step S203, the first Bluetooth device searches for the first motion curve that matches the predetermined pattern from the plurality of first motion curves, and searches for the second corresponding to the first motion curve that matches the predetermined pattern. The Bluetooth device acts as the target second Bluetooth device.
[0062] 在本发明实施例中, 所述符合预定模式的第一运动曲线可以是曲线变化幅度在 预设范围内和 /或曲线变化周期符合特定规则等的变化曲线。 或者第一蓝牙设备 通过其自带的运动传感器采集数据, 根据采集的所述数据建立相应的运动曲线 , 并将建立的该运动曲线作为所述预定模式。 从所述多个第一运动曲线中査找 与该运动曲线相匹配的第一运动曲线, 并将所述相匹配的第一运动曲线对应的 第二蓝牙设备作为目标第二蓝牙设备。 所述第一运动曲线与该运动曲线相匹配 是指, 所述第一运动曲线与该运动曲线的变化幅度、 变化周期、 形态 (即不同 吋间点的变化走向、 变化率) 在预设范围内。  In the embodiment of the present invention, the first motion curve conforming to the predetermined mode may be a curve in which the curve variation amplitude is within a preset range and/or the curve change period conforms to a specific rule or the like. Or the first Bluetooth device collects data through its own motion sensor, establishes a corresponding motion curve according to the collected data, and uses the established motion curve as the predetermined mode. And searching for a first motion curve that matches the motion curve from the plurality of first motion curves, and using the second Bluetooth device corresponding to the matched first motion curve as the target second Bluetooth device. The first motion curve is matched with the motion curve, and the change range, the change period, and the shape of the first motion curve and the motion curve (ie, the change trend of the different inter-turn points, the rate of change) are in a preset range. Inside.
[0063] 需要说明的是, 当同吋存在多个符合预定模式的第一运动曲线对应的第二蓝牙 设备, 可从中选择任意一个或者选择符合预设条件 (例如选择距离最近) 的第 二蓝牙设备作为所述目标第二蓝牙设备。 [0063] It should be noted that, when there are a plurality of second Bluetooth devices corresponding to the first motion curve that meet the predetermined mode, the user may select any one of them or select the first condition that meets the preset condition (for example, the selection distance is the closest). Two Bluetooth devices act as the target second Bluetooth device.
[0064] 可选的, 在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后, 本实 施例还可以包括:  [0064] Optionally, after the first Bluetooth device receives the broadcast data packet that is broadcast by the multiple second Bluetooth devices, the embodiment may further include:
[0065] 第一蓝牙设备获取与所述广播数据包关联的 RSSI数据; [0065] the first Bluetooth device acquires RSSI data associated with the broadcast data packet;
[0066] 所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运动曲 线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备作为目 标第二蓝牙设备可以包括:  [0066] the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode to be found as The target second Bluetooth device can include:
[0067] 所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运动曲 线, 并从査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备中査 找所述 RSSI数据的变化在预设范围内的第二蓝牙设备, 将査找到的该第二蓝牙 设备作为目标第二蓝牙设备。  [0067] the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and the second Bluetooth device corresponding to the first motion curve that matches the predetermined pattern is found. The second Bluetooth device that finds the change of the RSSI data in a preset range, and finds the second Bluetooth device that is found as the target second Bluetooth device.
[0068] 例如, 用户通过第一蓝牙设备的 app打幵运动传感器, 将第二蓝牙设备和第一 蓝牙设备拿在一起晃动, 第一蓝牙设备接收第二蓝牙设备广播的广播数据包, 获取所述广播数据包中携带的所述第二蓝牙设备通过其自带的运动传感器采集 到的数据, 同吋记录所述广播数据包关联的 RSSI数据。 第一蓝牙设备在判断出 所述第二蓝牙设备的运动曲线符合预定模式吋, 还需要进一步判断所述 RSSI数 据的变化是否在预设范围内且所述 RSSI数据是否始终最大。  [0068] For example, the user smashes the motion sensor by the app of the first Bluetooth device, and shakes the second Bluetooth device and the first Bluetooth device together, and the first Bluetooth device receives the broadcast data packet broadcast by the second Bluetooth device, and acquires the The data collected by the second Bluetooth device carried in the broadcast data packet through its own motion sensor simultaneously records the RSSI data associated with the broadcast data packet. After determining that the motion curve of the second Bluetooth device conforms to the predetermined mode, the first Bluetooth device further needs to determine whether the change of the RSSI data is within a preset range and whether the RSSI data is always the largest.
[0069] 在步骤 S204中, 第一蓝牙设备向所述目标第二蓝牙设备发起连接请求, 以建立 连接。  [0069] In step S204, the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
[0070] 在本发明实施例中, 所述建立连接的方式可以是由用户选择目标第二蓝牙设备 后, 通过 justwork方式连接, 也可以通过现有的配对方式连接, 在此不做限制。  [0070] In the embodiment of the present invention, the manner of establishing the connection may be that the user selects the target second Bluetooth device, and then connects through the justwork mode, or may be connected through an existing pairing manner, and is not limited herein.
[0071] 进一步的, 为了增强用户体验, 便于用户更直观的了解配对连接过程, 本发明 实施例还包括:  [0071] Further, in order to enhance the user experience, the user is more intuitively aware of the pairing connection process, and the embodiment of the present invention further includes:
[0072] 以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的过程。 示例性的 , 在第一蓝牙设备的显示屏和 /或第二蓝牙设备的显示屏上显示对方的运动状态 , 例如在第二蓝牙设备的显示屏上显示一运动小球, 通过所述运动小球反映第 一蓝牙设备的运动情况或者 RSSI值变化情况。  [0072] The process of pairing the first Bluetooth device with the second Bluetooth device is displayed in a graphical manner. Exemplarily, 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.
[0073] 可选的, 为进一步增强易用性和实用性, 本发明实施例还包括: [0074] 在第一蓝牙设备和 /或第二蓝牙设备增加确认配对连接以及取消配对连接的功 育^ 具体的可以是, 在第一蓝牙设备和 /或第二蓝牙设备增加确认配对连接以及 取消配对连接的按键或者预设的操作手势, 以使得用户在触发所述按键或所述 操作手势吋, 第一蓝牙设备或第二蓝牙设备执行对应的确认配对连接或取消配 对连接的功能, 例如在第一蓝牙设备或第二蓝牙设备的触摸屏上顺吋针滑动执 行确认配对连接功能, 在第一蓝牙设备或第二蓝牙设备的触摸屏上逆吋针滑动 执行取消配对连接功能。 [0073] Optionally, in order to further enhance the ease of use and the utility, the embodiment of the present invention further includes: [0074] In the first Bluetooth device and/or the second Bluetooth device, the acknowledgment of the pairing connection and the unpairing connection are added. Specifically, the first Bluetooth device and/or the second Bluetooth device may be added to confirm the pairing connection and cancel. Pairing 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, The first Bluetooth device or the second Bluetooth device touches the touch screen to perform the confirming the pairing connection function, and the reverse button is swiped on the touch screen of the first Bluetooth device or the second Bluetooth device to perform the unpairing connection function.
[0075] 通过本发实施例, 使得第一蓝牙设备与第二蓝牙设备的配对连接过程更简单、 更方便以及更安全, 极大的提升了用户体验。  [0075] With the embodiment of the present invention, 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.
[0076] 另外, 作为本发明的一优选实例, 本发明还可以将上述某些步骤作为连接后的 确认, 具体可以是:  [0076] In addition, as a preferred example of the present invention, the present invention may also use some of the above steps as the confirmation after the connection, and specifically may be:
[0077] 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔获取所述 第二蓝牙设备通过其自带的运动传感器采集到的数据;  [0077] after establishing a connection with the target second Bluetooth device, the first Bluetooth device acquires data collected by the second Bluetooth device through its own motion sensor according to the preset inter-turn interval;
[0078] 第一蓝牙设备根据所述第二蓝牙设备通过其自带的运动传感器采集到的数据建 立第一运动曲线;  [0078] the first Bluetooth device establishes a first motion curve according to data collected by the second Bluetooth device through its own motion sensor;
[0079] 第一蓝牙设备判断所述第一运动曲线是否符合预定模式; [0079] the first Bluetooth device determines whether the first motion curve meets a predetermined mode;
[0080] 若否, 则断幵与所述目标第二蓝牙设备的连接。 [0080] If no, the connection with the target second Bluetooth device is broken.
[0081] 需要说明的是, 在第一蓝牙设备与目标第二蓝牙设备建立连接前, 双方是以广 播的方式进行数据交互; 在建立连接后, 双方是通过建立的蓝牙链路进行数据 交互。  [0081] It should be noted that before the first Bluetooth device establishes a connection with the target second Bluetooth device, 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.
[0082] 请参阅图 3, 为本发明另一实施例提供的终端设备配对连接方法的实现流程, 其主要包括以下步骤:  Referring to FIG. 3, an implementation flow of a method for pairing a terminal device according to another embodiment of the present invention includes the following steps:
[0083] 步骤 S301, 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;  [0083] Step S301: 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.
[0084] 步骤 S302, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线;  [0084] Step S302, 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 The device corresponds to a first motion curve;
[0085] 步骤 S303, 第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一 运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备 作为目标第二蓝牙设备; [0085] Step S303, the first Bluetooth device searches for the first one that matches the predetermined pattern from the plurality of first motion curves. a motion curve, the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode is found as the target second Bluetooth device;
[0086] 步骤 S304, 第一蓝牙设备向所述目标第二蓝牙设备发起连接请求, 以建立连接  [0086] Step S304, the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
[0087] 本发明实施例步骤 S301〜步骤 S304的具体实施过程可参考图 2对应实施例中的步 骤 S201〜步骤 204, 在此不再赘述。 For the specific implementation of the steps S301 to S304 in the embodiment of the present invention, reference may be made to the steps S201 to 204 in the corresponding embodiment of FIG. 2, and details are not described herein again.
[0088] 步骤 S305, 第一蓝牙设备根据预设吋间间隔获取以下至少两组数据: 所述目标 第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采 集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述预设吋间 间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据。  [0088] Step S305, the first Bluetooth device acquires at least two sets of data according to the preset inter-turn 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.
[0089] 示例性的, 当所述第一蓝牙设备与所述目标第二蓝牙设备建立连接后, 每隔一 定的吋间间隔 (例如 7.5ms~4s, 优选 20ms) , 所述目标第二蓝牙设备需要向所 述第一蓝牙设备发送维持连接的心跳包, 所述第一蓝牙设备则需要应答。  [0089] Illustratively, after the first Bluetooth device establishes a connection with the target second Bluetooth device, at a certain interval (for example, 7.5ms~4s, preferably 20ms), the target second Bluetooth 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.
[0090] 由于所述第一蓝牙设备与所述目标第二蓝牙设备在每个所述吋间间隔会收发所 述心跳包, 因此所述 RSSI数据每个吋间间隔后会更新一次。 基于此, 本发明实 施例所述第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的蓝牙信号的 R SSI数据, 以及获取对方监测到的自身的蓝牙信号的 RSSI数据来确认连接的安全 性。  [0090] Since 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.
[0091] 另一示例, 所述第一蓝牙设备和所述目标第二蓝牙设备均自带有运动传感器 ( 例如, 陀螺仪、 重力传感器、 加速度传感器等) , 所述第一蓝牙设备和第二蓝 牙设备可分别通过其自带的运动传感器采集自身的运动数据, 并通过获取采集 到的运动数据来确认连接的安全性。  [0091] In another example, 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.
[0092] 步骤 S306, 第一蓝牙设备根据获取的所述数据建立相应的曲线。 [0092] Step S306: The first Bluetooth device establishes a corresponding curve according to the acquired data.
[0093] 示例性的, 第一蓝牙设备根据所述监测到的目标第二蓝牙设备的蓝牙信号的 RS[0093] Exemplarily, the RS of the first Bluetooth device according to the monitored Bluetooth signal of the target second Bluetooth device
SI数据建立第二 RSSI变化曲线, 根据所述获取的第一蓝牙设备的蓝牙信号的 RSSThe SI data establishes a second RSSI curve, according to the obtained RSS signal of the Bluetooth signal of the first Bluetooth device
I数据建立第三 RSSI变化曲线; The I data establishes a third RSSI curve;
[0094] 进一步的, 还可以包括: [0095] 第一蓝牙设备根据所述预设吋间间隔获取其运动传感器采集到的数据, 并根据 该数据建立第二运动曲线。 [0094] Further, the method may further include: [0095] 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.
[0096] 另一示例, 第一蓝牙设备根据获取的所述第一蓝牙设备自带的运动传感器采集 到的数据建立第三运动曲线, 根据获取的所述第二蓝牙设备自带的运动传感器 采集到的数据建立第四运动曲线。 [0096] In another example, 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.
[0097] 需要说明的是, 本发明实施例所述曲线可以为距离 (纵坐标) -吋间 (横坐标)曲 线的形式、 速度 (纵坐标) -吋间 (横坐标)曲线的形式或者加速度 (纵坐标) -吋间 (横坐标)等曲线形式。 [0097] It should be noted that, in the embodiment of the present invention, 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).
[0098] 步骤 S307, 第一蓝牙设备判断建立的所述曲线是否都相匹配, 若判断结果为" 是", 则执行步骤 S308; 若判断结果为"否", 则执行步骤 S309。  [0098] Step S307: The first Bluetooth device determines whether the established curves are all matched. If the determination result is “Yes”, step S308 is performed; if the determination result is “No”, step S309 is performed.
[0099] 示例性的, 第一蓝牙设备判断建立的所述曲线是否都相匹配可以包括: 第一蓝 牙设备判断所述第二 RSSI变化曲线与所述第三 RSSI变化曲线是否相匹配, 以及 所述第二 RSSI变化曲线与所述第二运动曲线是否相匹配。  [0099] Exemplarily, determining, by the first Bluetooth device, whether the established curves are all matched may include: determining, by the first Bluetooth device, whether the second RSSI curve and the third RSSI curve are matched, and Whether the second RSSI curve matches the second motion curve.
[0100] 需要说明的是, 本发明实施例所述曲线相匹配并不一定需要两者完全一致, 所 述曲线的变化幅度、 变化周期、 形态 (即不同吋间点的变化走向、 变化率) 在 预设范围内即可。  [0100] It should be noted that 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.
[0101] 步骤 S308, 确认连接。  [0101] Step S308, confirming the connection.
[0102] 示例性的, 第一蓝牙设备可以在所述第二 RSSI变化曲线与所述第三 RSSI变化曲 线相匹配, 且所述第二 RSSI变化曲线与所述第二运动曲线相匹配吋, 确认连接  [0102] Exemplarily, 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
[0103] 步骤 S309, 断幵与所述目标第二蓝牙设备的连接。 [0103] Step S309, disconnecting the connection with the target second Bluetooth device.
[0104] 示例性的, 第一蓝牙设备在所述第二 RSSI变化曲线与所述第三 RSSI变化曲线不 相匹配, 和 /或所述第二 RSSI变化曲线与所述第二运动曲线不相匹配吋, 断幵与 所述目标第二蓝牙设备的连接, 配对连接终止。  [0104] Exemplarily, 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.
[0105] 需要说明的是, 所述第一蓝牙设备和所述第二蓝牙设备在每次配对连接完成后 , 都会保存配对连接信息。 如果所述第一蓝牙设备和所述第二蓝牙设备在下次 的配对连接过程中, 检测到所述已保存的配对连接信息, 则无需执行步骤 S305~ 309。 [0106] 另外, 本实施例上述示例只用于解释本发明, 并不限定本发明的保护范围。 [0105] It should be noted that, the first Bluetooth device and the second Bluetooth device save the 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, steps S305-309 need not be performed. In addition, the above examples of the present embodiment are only for explaining the present invention, and do not limit the scope of protection of the present invention.
[0107] 本发明实施例所述第一蓝牙设备在与所述目标第二蓝牙设备建立连接后, 所述 第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的数据, 以及获取对方 监测到的自身的数据, 并根据获取的所述数据 (例如 RSSI数据、 运动数据) 建 立对应的曲线 (例如 RSSI变化曲线、 运动曲线) , 通过比较所述曲线来进一步 确认连接的安全性。 After the first Bluetooth device is connected to the target second Bluetooth device, the first Bluetooth device and the target second Bluetooth device can 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.
[0108] 请参阅图 4, 为本发明另一实施例提供的终端设备配对连接方法的实现流程, 其主要包括以下步骤:  [0108] Please refer to FIG. 4, which 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:
[0109] 步骤 S401 , 第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播 数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据;  [0109] Step S401: The first Bluetooth device receives a broadcast data packet that is broadcast by multiple second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor.
[0110] 步骤 S402, 第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过 其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙 设备对应一个第一运动曲线; [0110] Step S402, 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;
[0111] 步骤 S403 , 第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一 运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备 作为目标第二蓝牙设备; [0111] Step S403, the first Bluetooth device searches for the first motion curve that matches the predetermined mode from the plurality of first motion curves, and searches for the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode. As the target second Bluetooth device;
[0112] 步骤 S404, 第一蓝牙设备向所述目标第二蓝牙设备发起连接请求, 以建立连接 [0112] Step S404, the first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
[0113] 本发明实施例步骤 S401〜步骤 S404的具体实施过程可参考图 2对应实施例中的步 骤 S201〜步骤 204, 在此不再赘述。 For the specific implementation of the steps S401 to S404 in the embodiment of the present invention, reference may be made to the steps S201 to 204 in the corresponding embodiment of FIG. 2, and details are not described herein again.
[0114] 步骤 S405 , 第一蓝牙设备根据预设吋间间隔获取以下至少一组数据: 所述目标 第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采 集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述预设吋间 间通过所述目标第二蓝牙设备自带的运动传感器采集到的数据。  [0114] Step S405: 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.
[0115] 步骤 S406, 第一蓝牙设备根据获取的所述数据建立相应的曲线。  [0115] Step S406: The first Bluetooth device establishes a corresponding curve according to the acquired data.
[0116] 步骤 S407, 第一蓝牙设备判断建立的所述曲线是否都符合预定模式, 若判断结 果为"是", 则执行步骤 S408; 若判断结果为"否", 则执行步骤 S409。 [0117] 在本发明实施例中, 所述符合预定模式的曲线可以是曲线的变化幅度在预设范 围内和 /或曲线的变化周期符合特定规则等。 [0116] Step S407, the first Bluetooth device determines whether the established curve meets the predetermined mode. If the determination result is “Yes”, step S408 is performed; if the determination result is “No”, step S409 is performed. [0117] In the embodiment of the present invention, the curve conforming to the predetermined mode may be that the variation range of the curve is within a preset range and/or the change period of the curve conforms to a specific rule or the like.
[0118] 步骤 S408 , 确认连接。 [0118] Step S408, confirming the connection.
[0119] 步骤 S409, 断幵与所述目标第二蓝牙设备的连接。  [0119] Step S409, disconnecting the connection with the target second Bluetooth device.
[0120] 另外, 需要说明的是, 所述第一蓝牙设备和所述第二蓝牙设备在每次配对连接 完成后, 都会保存配对连接信息。 如果所述第一蓝牙设备和所述第二蓝牙设备 在下次的配对连接过程中, 检测到所述已保存的配对连接信息, 则无需执行步 骤 S405~409。  [0120] In addition, 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, it is not necessary to perform steps S405-409.
[0121] 本发明实施例所述第一蓝牙设备在与所述目标第二蓝牙设备建立连接后, 所述 第一蓝牙设备和所述目标第二蓝牙设备可通过监测对方的数据, 以及获取对方 监测到的自身的数据, 并从获取的所述数据 (例如 RSS擞据、 运动数据) 中选 择至少一组数据, 根据选择的所述数据建立对应的曲线, 通过判断建立的所述 曲线是否符合预定模式来进一步确认连接的安全性。  After the first Bluetooth device is connected to the target second Bluetooth device, 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.
[0122] 作为本发明的另一较佳示例, 在所述第一蓝牙设备与所述目标第二蓝牙设备建 立连接之后, 本发明还可以包括: [0122] As another preferred example of the present invention, after the first Bluetooth device establishes a connection with the target second Bluetooth device, the present invention may further include:
[0123] 第一蓝牙设备根据预设吋间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI 数据和 /或获取所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据; [0123] 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;
[0124] 第一蓝牙设备判断获取的所述 RSSI数据的变化是否在预设范围内; [0124] the first Bluetooth device determines whether the acquired change of the RSSI data is within a preset range;
[0125] 若否, 则断幵与所述目标第二蓝牙设备的连接。 [0125] If no, the connection with the target second Bluetooth device is broken.
[0126] 该实例可应用于如下场景: 第一蓝牙设备和所述目标第二蓝牙设备在一起做相 同运动, 例如第一蓝牙设备拿在手上, 目标第二蓝牙设备带在手腕上, 由于第 一蓝牙设备和所述目标第二蓝牙设备距离没有改变, 所述 RSSI数据的变化接近 为零。  [0126] 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.
[0127] 另外, 还需要说明的是, 上述图 3以及图 4对应实施例中, 判断运动曲线是否符 合预定模式的, 可应用于一个蓝牙设备运动或者两个蓝牙设备做相同运动的场 景; 判断 RSSI变化曲线是否符合预定模式的, 可应用于一个蓝牙设备运动或者 两个蓝牙设备做相同运动的场景; 判断 RSSI变化曲线与运动曲线是否匹配, 可 应用于一个蓝牙设备运动的场景; 判断两个运动曲线是否匹配, 可应用于两个 蓝牙设备做相同运动的场景; 判断两个 RSSI变化曲线是否匹配, 可应用于一个 蓝牙设备运动或者两个蓝牙设备做相同运动的场景。 [0127] In addition, it should be noted that, in the foregoing embodiments of FIG. 3 and FIG. 4, determining whether the motion curve meets 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 matches the motion curve, A scene applied to the motion of a Bluetooth device; determining whether the two 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 two Bluetooth The device does the same motion scene.
[0128] 需要进一步说明的是, 涉及广播功能吋, 相应的蓝牙设备需要具有蓝牙 4.0协议 的蓝牙低能耗 (Bluetooth Low Energy, BLE) 功能。 [0128] It should be further noted that, in connection with the broadcast function, the corresponding Bluetooth device needs the Bluetooth Low Energy (BLE) function with the Bluetooth 4.0 protocol.
[0129] 另外, 应理解, 图 2、 图 3以及图 4对应实施例中各步骤的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对 本发明实施例的实施过程构成任何限定。 [0129] In addition, it should be understood that the size of the sequence numbers of the steps in the corresponding embodiments in FIG. 2, FIG. 3, and FIG. 4 does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic. The implementation of the embodiments of the present invention should not be construed as limiting.
[0130] 请参阅图 5, 为本发明实施例提供的终端设备的配对连接系统的组成结构示意 图。 为了便于说明, 仅示出了与本发明实施例相关的部分。 [0130] Please refer to FIG. 5, which is a schematic structural diagram of a paired 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.
[0131] 所述终端设备的配对连接系统可以是内置于第一蓝牙设备中的软件单元、 硬件 单元或者是软硬件结合的单元。 [0131] 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.
[0132] 所述终端设备的配对连接系统包括: 第一数据接收单元 51、 第一曲线建立单元[0132] The paired connection system of the terminal device includes: a first data receiving unit 51, a first curve establishing unit
52、 査找单元 53以及连接单元 54, 各单元具体功能如下: 52, the search unit 53 and the connection unit 54, the specific functions of each unit are as follows:
[0133] 第一数据接收单元 51, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广 播数据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0134] 第一曲线建立单元 52, 用于根据所述广播数据包中携带的所述第二蓝牙设备通 过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝 牙设备对应一个第一运动曲线; [0133] The first data receiving unit 51 is configured to receive a broadcast data packet that is broadcast by the multiple second Bluetooth devices, where the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor; [0134] The first curve establishing unit 52 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;
[0135] 査找单元 53, 用于从所述多个第一运动曲线中査找符合预定模式的第一运动曲 线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙设备作为目 标第二蓝牙设备; [0135] The searching unit 53 is configured to search, from the plurality of first motion curves, a first motion curve that meets a predetermined pattern, and use the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern to be found as Target second Bluetooth device;
[0136] 连接单元 54, 用于向所述目标第二蓝牙设备发起连接请求, 以建立连接。  [0136] The connection unit 54 is configured to initiate a connection request to the target second Bluetooth device to establish a connection.
[0137] 进一步的, 所述系统还包括: [0137] Further, the system further includes:
[0138] 第一数据获取单元 55, 用于在接收多个第二蓝牙设备广播的广播数据包之后, 获取与所述广播数据包关联的 RSSI数据;  [0138] The first data acquiring unit 55 is configured to acquire, after receiving the broadcast data packet broadcast by the multiple second Bluetooth devices, the RSSI data associated with the broadcast data packet;
[0139] 所述査找单元 53具体用于, 从所述多个第一运动曲线中査找符合预定模式的第 一运动曲线, 并从査找到的所述符合预定模式的第一运动曲线对应的第二蓝牙 设备中査找所述 RSSI数据的变化在预设范围内的第二蓝牙设备, 将査找到的该 第二蓝牙设备作为目标第二蓝牙设备。 [0139] The searching unit 53 is configured to: search for a first motion curve that matches a predetermined pattern from the plurality of first motion curves, and select a first motion curve corresponding to the predetermined pattern that matches the predetermined pattern. Two Bluetooth The second Bluetooth device in the device that finds that the RSSI data changes within a preset range, and the second Bluetooth device that is found is the target second Bluetooth device.
[0140] 进一步的, 所述系统还包括: [0140] Further, the system further includes:
[0141] 第二数据获取单元 56, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间 间隔获取以下至少两组数据: 所述目标第二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据、 所述目标第二蓝牙设备根 据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所 述目标第二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据;  [0141] The second data obtaining unit 56 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;
[0142] 第二曲线建立单元 57, 用于根据获取的所述数据建立相应的曲线; [0142] a second curve establishing unit 57, configured to establish a corresponding curve according to the acquired data;
[0143] 第一判断单元 58, 用于判断建立的所述曲线是否都相匹配; [0143] The first determining unit 58 is configured to determine whether the established curves are all matched;
[0144] 第一处理单元 59, 用于在所述第一判断单元 58判断结果为否吋, 断幵与所述目 标第二蓝牙设备的连接。 [0144] The first processing unit 59 is configured to: when the first determining unit 58 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
[0145] 进一步的, 所述系统还包括: [0145] Further, the system further includes:
[0146] 第三数据获取单元 510, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋 间间隔获取以下至少一组数据: 所述目标第二蓝牙设备的蓝牙信号的 RSSI数据 、 所述第一蓝牙设备自带的运动传感器采集到的数据、 所述目标第二蓝牙设备 根据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及 所述目标第二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的 运动传感器采集到的数据;  [0146] The third data acquiring unit 510 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 collects data according to the motion sensor that is carried by the target second Bluetooth device according to the preset time;
[0147] 第三曲线建立单元 511, 用于根据获取的所述数据建立相应的曲线; [0147] The third curve establishing unit 511 is configured to establish a corresponding curve according to the acquired data;
[0148] 第二判断单元 512, 用于判断建立的所述曲线是否都符合预定模式; [0148] The second determining unit 512 is configured to determine whether the established curves meet the predetermined mode.
[0149] 第二处理单元 513, 用于在所述第二判断单元 512判断结果为否吋, 断幵与所述 目标第二蓝牙设备的连接。 [0149] The second processing unit 513 is configured to: when the second determining unit 512 determines that the result is negative, disconnect the connection with the target second Bluetooth device.
[0150] 进一步的, 所述系统还包括: [0150] Further, the system further includes:
[0151] 第四数据获取单元 514, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋 间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据和 /或获取所述目标第 二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝牙设备的蓝牙信号的 RSS I数据; [0151] The fourth data acquiring unit 514 is configured to acquire RSSI data of the Bluetooth signal of the target second Bluetooth device according to a preset inter-time interval and/or obtain the target after establishing a connection with the target second Bluetooth device. The RSS signal of the Bluetooth signal of the first Bluetooth device monitored by the second Bluetooth device according to the preset inter-turn interval I data;
[0152] 第三判断单元 515, 用于判断获取的所述 RSSI数据的变化是否在预设范围内; [0153] 第三处理单元 516, 用于在所述第三判断单元 515判断结果为否吋, 断幵与所述 目标第二蓝牙设备的连接。  [0152] The third determining unit 515 is configured to determine whether the acquired change of the RSSI data is within a preset range. [0153] The third processing unit 516 is configured to determine, in the third determining unit 515, that the result is no.吋, disconnecting the connection with the target second Bluetooth device.
[0154] 进一步的, 所述广播数据包携带有厂商自定义字段; [0154] Further, the broadcast data packet carries a vendor custom field;
[0155] 所述系统还包括: [0155] The system further includes:
[0156] 过滤单元, 用于在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后 , 根据所述广播数据包携带的厂商自定义字段过滤出该厂商发行的第二蓝牙设 备。  [0156] The filtering unit is 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.
[0157] 进一步的, 所述系统还包括:  [0157] Further, the system further includes:
[0158] 显示单元, 用于以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的 过程。  [0158] The display unit is configured to graphically display a process of pairing the first Bluetooth device with the second Bluetooth device.
[0159] 作为本发明的另一较佳实例, 本发明还提供一种终端设备配对连接的系统, 该 系统可用于连接后的进一步确认, 所述系统包括:  [0159] As another preferred example of the present invention, the present invention further provides a system for pairing a terminal device, the system being usable for further confirmation after the connection, the system comprising:
[0160] 第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预设吋间间 隔获取所述第二蓝牙设备通过其自带的运动传感器采集到的数据; [0160] a second data receiving unit, configured to acquire, after the connection with the target second Bluetooth device, the data collected by the second Bluetooth device through the motion sensor provided by the second Bluetooth device according to the preset time interval;
[0161] 第四曲线建立单元, 用于根据所述第二蓝牙设备通过其自带的运动传感器采集 到的数据建立第一运动曲线; [0161] a fourth curve establishing unit, configured to establish a first motion curve according to data collected by the second Bluetooth device through its own motion sensor;
[0162] 第四判断单元, 用于判断所述第一运动曲线是否符合预定模式; [0162] a fourth determining unit, configured to determine whether the first motion curve meets a predetermined mode;
[0163] 第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所述目标第 二蓝牙设备的连接。 [0163] 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.
[0164] 综上所述, 本发明实施例将符合预定模式的第一运动曲线对应的第二蓝牙设备 作为所述目标第二蓝牙设备, 并向所述目标第二蓝牙设备发起连接请求, 以建 立连接。 与现有技术相比, 本发明实施例所述配对连接过程不需要用户参与选 择、 输入、 确认等操作, 在保证较高安全性的前提下, 减少了人为操作, 提高 了终端设备配对连接的效率, 增强了用户体验。 而且, 本发明实施例在所述第 一蓝牙设备与所述目标第二蓝牙设备建立连接后, 还可以通过多种方式进一步 确认连接的安全性, 具有较强的易用性和实用性。 [0165] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 仅以上述各 功能单元的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分配 由不同的功能单元、 模块完成, 即将所述系统的内部结构划分成不同的功能单 元或模块, 以完成以上描述的全部或者部分功能。 实施例中的各功能单元可以 集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个 以上单元集成在一个单元中, 上述集成的单元既可以采用硬件的形式实现, 也 可以采用软件功能单元的形式实现。 另外, 各功能单元的具体名称也只是为了 便于相互区分, 并不用于限制本申请的保护范围。 上述系统中单元的具体工作 过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。 [0164] In summary, the embodiment of the present invention uses a second Bluetooth device corresponding to the first motion curve of the predetermined mode as the target second Bluetooth device, and initiates a connection request to the target second Bluetooth device, establish connection. Compared with the prior art, the pairing connection process in the embodiment of the present invention does not require the user to participate in the operations of selecting, inputting, confirming, etc., and under the premise of ensuring high security, the human operation is reduced, and the pairing connection of the terminal device is improved. Efficiency, enhanced 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 multiple manners, and has strong ease of use and practicability. [0165] It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is completed, that is, the internal structure of the system is divided into different functional units or modules to complete all or part of the functions described above. 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. In addition, the specific names of the functional units are only for convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit in the foregoing system, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
[0166] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。  [0166] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
[0167] 在本发明所提供的实施例中, 应该理解到, 所揭露的系统和方法, 可以通过其 它的方式实现。 例如, 以上所描述的系统实施例仅仅是示意性的, 例如, 所述 单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽 略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通讯连 接可以是通过一些接口, 装置或单元的间接耦合或通讯连接, 可以是电性, 机 械或其它的形式。  [0167] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiment described above is merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the 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 electrical, mechanical or other form.
[0168] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0168] 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.
[0169] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明实施 例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部 或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介 质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor) 执行本发明实施例各个实施例所述方法 的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (R 0M, Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。 [0169] In addition, 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. Based on such understanding, the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage. 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.
以上所述实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参照前述 实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本发明实 施例各实施例技术方案的精神和范围。  The above described embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the examples are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.

Claims

权利要求书 Claim
[权利要求 1] 一种终端设备配对连接的方法, 其特征在于, 所述方法包括:  [Claim 1] A method for pairing and connecting a terminal device, the method comprising:
第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包, 所述广播数 据包携带有所述第二蓝牙设备通过其自带的运动传感器采集到的数据  The first Bluetooth device receives a broadcast data packet broadcast by a plurality of second Bluetooth devices, and the broadcast data packet carries data collected by the second Bluetooth device through its own motion sensor.
第一蓝牙设备根据所述广播数据包中携带的所述第二蓝牙设备通过其 自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第 二蓝牙设备对应一个第一运动曲线; 第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第一运 动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二蓝 牙设备作为目标第二蓝牙设备; 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 the motion sensor provided by the second Bluetooth device, where each second Bluetooth device corresponds to a first motion a first Bluetooth device searches for the first motion curve that matches the predetermined pattern from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern as the target second Bluetooth device;
第一蓝牙设备向所述目标第二蓝牙设备发起连接请求, 以建立连接。  The first Bluetooth device initiates a connection request to the target second Bluetooth device to establish a connection.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 在第一蓝牙设备接收多个第 二蓝牙设备广播的广播数据包之后, 还包括:  [Claim 2] The method according to claim 1, wherein after the first Bluetooth device receives the broadcast data packet broadcast by the plurality of second Bluetooth devices, the method further includes:
第一蓝牙设备获取与所述广播数据包关联的 RSSI数据;  The first Bluetooth device acquires RSSI data associated with the broadcast data packet;
所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第 一运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第 二蓝牙设备作为目标第二蓝牙设备包括:  The first Bluetooth device searches for the first motion curve that meets the predetermined pattern from the plurality of first motion curves, and uses the second Bluetooth device corresponding to the first motion curve that meets the predetermined pattern as the target second. Bluetooth devices include:
所述第一蓝牙设备从所述多个第一运动曲线中査找符合预定模式的第 一运动曲线, 并从査找到的所述符合预定模式的第一运动曲线对应的 第二蓝牙设备中査找所述 RSSI数据的变化在预设范围内的第二蓝牙 设备, 将査找到的该第二蓝牙设备作为目标第二蓝牙设备。  The first Bluetooth device searches for a first motion curve that matches a predetermined pattern from the plurality of first motion curves, and searches for a location in the second Bluetooth device corresponding to the first motion curve that matches the predetermined pattern. The second Bluetooth device that changes the RSSI data within a preset range, and the second Bluetooth device that is found is the target second Bluetooth device.
[权利要求 3] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括: [Claim 3] The method according to claim 1, wherein after the first Bluetooth device establishes a connection with the target second Bluetooth device, the method further includes:
第一蓝牙设备根据预设吋间间隔获取以下至少两组数据: 所述目标第 二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动 传感器采集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔 监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第 二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据; The first Bluetooth device acquires 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, data collected by the motion sensor of the first Bluetooth device, and the target The RSSI data of the Bluetooth signal of the first Bluetooth device monitored by the second Bluetooth device according to the preset inter-turn interval and the target number The data collected by the second Bluetooth device according to the motion sensor carried by the target second Bluetooth device according to the preset time;
第一蓝牙设备根据获取的所述数据建立相应的曲线; 第一蓝牙设备判断建立的所述曲线是否都相匹配; 若否, 则断幵与所述目标第二蓝牙设备的连接。  The first Bluetooth device establishes a corresponding curve according to the acquired data; the first Bluetooth device determines whether the established curves match, and if not, disconnects the target second Bluetooth device.
[权利要求 4] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括:  [Claim 4] The method of claim 1, wherein after the first Bluetooth device establishes a connection with the target second Bluetooth device, the method further includes:
第一蓝牙设备根据预设吋间间隔获取以下至少一组数据: 所述目标第 二蓝牙设备的蓝牙信号的 RSSI数据、 所述第一蓝牙设备自带的运动 传感器采集到的数据、 所述目标第二蓝牙设备根据所述预设吋间间隔 监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据以及所述目标第 二蓝牙设备根据所述预设吋间间通过所述目标第二蓝牙设备自带的运 动传感器采集到的数据;  The first Bluetooth device acquires the following 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, data collected by the motion sensor of the first Bluetooth device, and the target The second Bluetooth device monitors the RSSI data of the Bluetooth signal of the first Bluetooth device according to the preset interval, and the target second Bluetooth device passes the target second Bluetooth according to the preset time interval. The data collected by the motion sensor that comes with the device;
第一蓝牙设备根据获取的所述数据建立相应的曲线;  The first Bluetooth device establishes a corresponding curve according to the acquired data;
第一蓝牙设备判断建立的所述曲线是否都符合预定模式;  Determining, by the first Bluetooth device, whether the established curve conforms to a predetermined mode;
若否, 则断幵与所述目标第二蓝牙设备的连接。  If not, the connection with the target second Bluetooth device is broken.
[权利要求 5] 如权利要求 1所述的方法, 其特征在于, 在所述第一蓝牙设备与所述 目标第二蓝牙设备建立连接之后, 所述方法还包括:  [Claim 5] The method of claim 1, wherein after the first Bluetooth device establishes a connection with the target second Bluetooth device, the method further includes:
第一蓝牙设备根据预设吋间间隔获取所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据和 /或获取所述目标第二蓝牙设备根据所述预设吋间间 隔监测到的所述第一蓝牙设备的蓝牙信号的 RSSI数据;  Obtaining, by the first Bluetooth device, RSSI data of the Bluetooth signal of the target second Bluetooth device according to the preset inter-turn interval and/or acquiring the first monitored by the target second Bluetooth device according to the preset inter-turn interval RSSI data of the Bluetooth signal of the Bluetooth device;
第一蓝牙设备判断获取的所述 RSSI数据的变化是否在预设范围内; 若否, 则断幵与所述目标第二蓝牙设备的连接。  The first Bluetooth device determines whether the acquired change of the RSSI data is within a preset range; if not, disconnects the connection with the target second Bluetooth device.
[权利要求 6] 如权利要求 1至 5任一项所述的方法, 其特征在于, 所述广播数据包携 带有厂商自定义字段;  [Claim 6] The method according to any one of claims 1 to 5, wherein the broadcast data packet carries a vendor-defined field;
在第一蓝牙设备接收多个第二蓝牙设备广播的广播数据包之后, 还包 括:  After the first Bluetooth device receives the broadcast data packets broadcast by the plurality of second Bluetooth devices, the method further includes:
所述第一蓝牙设备根据所述广播数据包携带的厂商自定义字段过滤出 该厂商发行的第二蓝牙设备。 The first Bluetooth device filters out according to a vendor custom field carried by the broadcast data packet. The second Bluetooth device issued by the manufacturer.
如权利要求 1至 6任一项所述的方法, 其特征在于, 所述方法还包括: 以图形化的方式显示第一蓝牙设备与第二蓝牙设备配对连接的过程。 一种终端设备配对连接的方法, 其特征在于, 所述方法包括: 第一蓝牙设备在与目标第二蓝牙设备建立连接后, 根据预设吋间间隔 获取所述第二蓝牙设备通过其自带的运动传感器采集到的数据; 第一蓝牙设备根据所述第二蓝牙设备通过其自带的运动传感器采集到 的数据建立第一运动曲线; The method according to any one of claims 1 to 6, wherein the method further comprises: displaying a process of pairing the first Bluetooth device with the second Bluetooth device in a graphical manner. A method for pairing and connecting a terminal device, wherein the method includes: after establishing a connection with a target second Bluetooth device, the first Bluetooth device acquires the second Bluetooth device according to the preset time interval. Data collected by the motion sensor; the first Bluetooth device establishes a first motion profile according to data collected by the second Bluetooth device through its own motion sensor;
第一蓝牙设备判断所述第一运动曲线是否符合预定模式; Determining, by the first Bluetooth device, whether the first motion curve meets a predetermined mode;
若否, 则断幵与所述目标第二蓝牙设备的连接。 If not, the connection with the target second Bluetooth device is broken.
一种终端设备配对连接的系统, 其特征在于, 所述系统包括: 第一数据接收单元, 用于接收多个第二蓝牙设备广播的广播数据包, 所述广播数据包携带有所述第二蓝牙设备通过其自带的运动传感器采 集到的数据; A system for pairing and connecting a terminal device, the system comprising: a first data receiving unit, configured to receive a broadcast data packet broadcast by a plurality of second Bluetooth devices, where the broadcast data packet carries the second Data collected by a Bluetooth device through its own motion sensor;
第一曲线建立单元, 用于根据所述广播数据包中携带的所述第二蓝牙 设备通过其自带的运动传感器采集到的数据建立多个第一运动曲线, 其中每个第二蓝牙设备对应一个第一运动曲线; a first 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 that is included in the broadcast data packet, a plurality of first motion curves, where each second Bluetooth device corresponds to a first motion curve;
査找单元, 用于从所述多个第一运动曲线中査找符合预定模式的第一 运动曲线, 将査找到的所述符合预定模式的第一运动曲线对应的第二 蓝牙设备作为目标第二蓝牙设备; a searching unit, configured to search a first motion curve that matches the predetermined mode from the plurality of first motion curves, and use the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode to be the target second Bluetooth Equipment
连接单元, 用于向所述目标第二蓝牙设备发起连接请求, 以建立连接 如权利要求 9所述的系统, 其特征在于, 所述系统还包括: 第一数据获取单元, 用于在接收多个第二蓝牙设备广播的广播数据包 之后, 获取与所述广播数据包关联的 RSSI数据; a connection unit, configured to initiate a connection request to the target second Bluetooth device, to establish a connection, according to the system of claim 9, wherein the system further comprises: a first data acquisition unit, configured to receive Obtaining RSSI data associated with the broadcast data packet after the broadcast data packet broadcast by the second Bluetooth device;
所述査找单元具体用于, 从所述多个第一运动曲线中査找符合预定模 式的第一运动曲线, 并从査找到的所述符合预定模式的第一运动曲线 对应的第二蓝牙设备中査找所述 RSSI数据的变化在预设范围内的第 二蓝牙设备, 将査找到的该第二蓝牙设备作为目标第二蓝牙设备。 The searching unit is configured to: search, from the plurality of first motion curves, a first motion curve that meets a predetermined pattern, and from the second Bluetooth device corresponding to the first motion curve that meets the predetermined mode. Finding the change of the RSSI data within the preset range The two Bluetooth devices, the second Bluetooth device that is found is the target second Bluetooth device.
[权利要求 11] 如权利要求 9所述的系统, 其特征在于, 所述系统还包括: [Claim 11] The system of claim 9, wherein the system further comprises:
第二数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取以下至少两组数据: 所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据 、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝 牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述 预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数 据;  a second data acquiring unit, configured to acquire at least two sets of data according to a preset inter-time interval after establishing a connection with the target second Bluetooth device: RSSI data of the Bluetooth signal of the target second Bluetooth device, the first The data collected by the motion sensor of the 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 second Bluetooth device And collecting data collected by the motion sensor provided by the target second Bluetooth device according to the preset time;
第二曲线建立单元, 用于根据获取的所述数据建立相应的曲线; 第一判断单元, 用于判断建立的所述曲线是否都相匹配;  a second curve establishing unit, configured to establish a corresponding curve according to the acquired data; a first determining unit, configured to determine whether the established curves are all matched;
第一处理单元, 用于在所述第一判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。  The first processing unit is configured to: when the first determining unit determines that the result is negative, disconnect the connection with the target second Bluetooth device.
[权利要求 12] 如权利要求 9所述的系统, 其特征在于, 所述系统还包括: [Claim 12] The system of claim 9, wherein the system further comprises:
第三数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取以下至少一组数据: 所述目标第二蓝牙设备的蓝牙信 号的 RSSI数据、 所述第一蓝牙设备自带的运动传感器采集到的数据 、 所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一蓝 牙设备的蓝牙信号的 RSSI数据以及所述目标第二蓝牙设备根据所述 预设吋间间通过所述目标第二蓝牙设备自带的运动传感器采集到的数 据;  a third data acquiring unit, configured to acquire at least one set of data according to a preset inter-time interval after establishing a connection with the target second Bluetooth device: RSSI data of the Bluetooth signal of the target second Bluetooth device, the first The data collected by the motion sensor of the 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 second Bluetooth device And collecting data collected by the motion sensor provided by the target second Bluetooth device according to the preset time;
第三曲线建立单元, 用于根据获取的所述数据建立相应的曲线; 第二判断单元, 用于判断建立的所述曲线是否都符合预定模式; 第二处理单元, 用于在所述第二判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。  a third curve establishing unit, configured to establish a corresponding curve according to the acquired data; a second determining unit, configured to determine whether the established curve meets a predetermined mode; and a second processing unit, configured to be in the second The determining unit determines that the result is negative, and disconnects the connection with the target second Bluetooth device.
[权利要求 13] 如权利要求 9所述的系统, 其特征在于, 所述系统还包括: [Claim 13] The system of claim 9, wherein the system further comprises:
第四数据获取单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取所述目标第二蓝牙设备的蓝牙信号的 RSSI数据和 /或 获取所述目标第二蓝牙设备根据所述预设吋间间隔监测到的所述第一 蓝牙设备的蓝牙信号的 RSSI数据; a fourth data acquiring unit, configured to acquire RSSI data of a Bluetooth signal of the target second Bluetooth device according to a preset inter-time interval after establishing a connection with the target second Bluetooth device, and/or Obtaining RSSI data of the Bluetooth signal of the first Bluetooth device that is monitored by the target second Bluetooth device according to the preset interval;
第三判断单元, 用于判断获取的所述 RSSI数据的变化是否在预设范 围内;  a third determining unit, configured to determine whether the acquired change of the RSSI data is within a preset range;
第三处理单元, 用于在所述第三判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。  And a third processing unit, configured to: when the third determining unit determines that the result is negative, disconnect the connection with the target second Bluetooth device.
[权利要求 14] 如权利要求 9至 13任一项所述的系统, 其特征在于, 所述广播数据包 携带有厂商自定义字段;  [Claim 14] The system according to any one of claims 9 to 13, wherein the broadcast data packet carries a vendor-defined field;
所述系统还包括:  The system also includes:
过滤单元, 用于在第一蓝牙设备接收多个第二蓝牙设备广播的广播数 据包之后, 根据所述广播数据包携带的厂商自定义字段过滤出该厂商 发行的第二蓝牙设备。  And 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.
[权利要求 15] 如权利要求 9至 14任一项所述的系统, 其特征在于, 所述系统还包括 显示单元, 用于以图形化的方式显示第一蓝牙设备与第二蓝牙设备配 对连接的过程。  [Claim 15] The system according to any one of claims 9 to 14, wherein the system further comprises a display unit, configured to graphically display the first Bluetooth device to be paired with the second Bluetooth device. the process of.
[权利要求 16] —种终端设备配对连接的系统, 其特征在于, 所述系统包括:  [Claim 16] A system for pairing and connecting a terminal device, wherein the system comprises:
第二数据接收单元, 用于在与目标第二蓝牙设备建立连接后, 根据预 设吋间间隔获取所述第二蓝牙设备通过其自带的运动传感器采集到的 数据;  a second data receiving unit, configured to acquire, after establishing a connection with the target second Bluetooth device, the data collected by the second Bluetooth device through its own motion sensor according to the preset inter-turn interval;
第四曲线建立单元, 用于根据所述第二蓝牙设备通过其自带的运动传 感器采集到的数据建立第一运动曲线;  a fourth curve establishing unit, configured to establish a first motion curve according to data collected by the second Bluetooth device through its own motion sensor;
第四判断单元, 用于判断所述第一运动曲线是否符合预定模式; 第四处理单元, 用于在所述第四判断单元判断结果为否吋, 断幵与所 述目标第二蓝牙设备的连接。  a fourth determining unit, configured to determine whether the first motion curve meets a predetermined mode; and a fourth processing unit, configured to: after the fourth determining unit determines that the result is negative, disconnecting the target and the second Bluetooth device connection.
PCT/CN2015/096852 2015-06-02 2015-12-09 Method and system for terminal device pairing connection WO2016192356A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510295847.1A CN104936134B (en) 2015-06-02 2015-06-02 The method and system of terminal device pairing connection
CN201510295847.1 2015-06-02

Publications (1)

Publication Number Publication Date
WO2016192356A1 true WO2016192356A1 (en) 2016-12-08

Family

ID=54123040

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096852 WO2016192356A1 (en) 2015-06-02 2015-12-09 Method and system for terminal device pairing connection

Country Status (2)

Country Link
CN (1) CN104936134B (en)
WO (1) WO2016192356A1 (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936134B (en) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN105050029B (en) * 2015-06-02 2019-06-18 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN104967970B (en) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN105007104B (en) * 2015-06-02 2017-08-29 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN104936135B (en) * 2015-06-02 2019-02-01 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection confirmation
CN105007560B (en) * 2015-06-02 2018-09-11 深圳市文鼎创数据科技有限公司 The method and system that terminal device pairing connection confirms
CN105246024B (en) * 2015-09-02 2019-05-24 深圳市文鼎创数据科技有限公司 The method and system of terminal device pairing connection
CN105636161B (en) * 2016-01-25 2019-10-22 中科创达软件股份有限公司 Access method, apparatus, communication terminal and the wireless network access point of wireless network
CN105791409B (en) * 2016-03-30 2020-12-18 北京小米移动软件有限公司 Remote connection establishing method and device
CN106075839A (en) * 2016-06-08 2016-11-09 深圳市元征科技股份有限公司 Workout data monitoring method, Apparatus and system
CN105959480B (en) * 2016-06-08 2020-01-31 联想(北京)有限公司 control method and electronic equipment
CN106559740A (en) * 2016-10-13 2017-04-05 上海斐讯数据通信技术有限公司 A kind of mobile terminal and its control method of communication
CN108271141A (en) * 2017-12-29 2018-07-10 青岛真时科技有限公司 A kind of method, apparatus and smart machine for improving Bluetooth pairing efficiency
CN108540968A (en) * 2018-03-30 2018-09-14 成都心吉康科技有限公司 Matching method, pair system and the electronic equipment of electronic equipment
CN108601002A (en) * 2018-03-30 2018-09-28 成都心吉康科技有限公司 The matching method and pair system of mobile terminal and electronic equipment
CN108616655A (en) * 2018-03-30 2018-10-02 成都心吉康科技有限公司 Mobile terminal and electronic equipment for Bluetooth pairing
CN108901010B (en) * 2018-08-01 2020-11-24 飞天诚信科技股份有限公司 Bluetooth device and Bluetooth connection method
CN111372206A (en) * 2018-12-25 2020-07-03 上海辛格林纳新时达电机有限公司 Communication method, system and equipment
CN110322238B (en) * 2019-08-28 2019-12-20 深圳市融纳海川科技有限公司 Method, device and system for receiving payment information of merchant
CN111882846B (en) * 2020-03-05 2021-07-06 珠海市杰理科技股份有限公司 Wireless control method and device, BLE equipment, chip and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179168A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 Electronic device and method for sharing data through Bluetooth
CN103713736A (en) * 2013-10-16 2014-04-09 惠州紫旭科技有限公司 Device movement track based information recognition method
CN104104414A (en) * 2014-06-18 2014-10-15 深圳市警豹电子科技有限公司 Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information
CN104936134A (en) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 Method and system for pairing connection of terminal equipment
CN104936135A (en) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 Terminal device pairing connection confirmation method and system
CN104967970A (en) * 2015-06-02 2015-10-07 深圳市文鼎创数据科技有限公司 Terminal equipment pairing and connecting method and system
CN105007104A (en) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 Method and system for pairing connection of terminal equipment
CN105007560A (en) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 Method and system for confirming pairing connection of terminal equipment
CN105050029A (en) * 2015-06-02 2015-11-11 深圳市文鼎创数据科技有限公司 Pairing connection method and system of terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570168B2 (en) * 2009-10-08 2013-10-29 Bringrr Systems, Llc System, method and device to interrogate for the presence of objects
CN103687050A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Connection method of mobile terminal and vehicle-mounted equipment, mobile terminal and vehicle-mounted connection system
CN103746758B (en) * 2014-01-09 2017-09-05 北京智谷睿拓技术服务有限公司 A kind of monitoring method and equipment
CN104159188B (en) * 2014-08-28 2018-08-14 吴宇 A kind of matching method of wireless device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179168A (en) * 2011-12-26 2013-06-26 鸿富锦精密工业(深圳)有限公司 Electronic device and method for sharing data through Bluetooth
CN103713736A (en) * 2013-10-16 2014-04-09 惠州紫旭科技有限公司 Device movement track based information recognition method
CN104104414A (en) * 2014-06-18 2014-10-15 深圳市警豹电子科技有限公司 Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information
CN104936134A (en) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 Method and system for pairing connection of terminal equipment
CN104936135A (en) * 2015-06-02 2015-09-23 深圳市文鼎创数据科技有限公司 Terminal device pairing connection confirmation method and system
CN104967970A (en) * 2015-06-02 2015-10-07 深圳市文鼎创数据科技有限公司 Terminal equipment pairing and connecting method and system
CN105007104A (en) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 Method and system for pairing connection of terminal equipment
CN105007560A (en) * 2015-06-02 2015-10-28 深圳市文鼎创数据科技有限公司 Method and system for confirming pairing connection of terminal equipment
CN105050029A (en) * 2015-06-02 2015-11-11 深圳市文鼎创数据科技有限公司 Pairing connection method and system of terminal equipment

Also Published As

Publication number Publication date
CN104936134A (en) 2015-09-23
CN104936134B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2016192356A1 (en) Method and system for terminal device pairing connection
WO2016192350A1 (en) Pairing connection method and system for terminal devices
WO2016192357A1 (en) Method and system for terminal device pairing connection
WO2016192353A1 (en) Method and system for terminal device pairing connection
WO2017035978A1 (en) Pairing connection method and system for terminal devices
WO2016192355A1 (en) Method and system for confirming terminal device pairing connection
WO2016192352A1 (en) Method and system for confirming pairing connection of terminal devices
CN106951767B (en) Unlocking control method and related product
US11055547B2 (en) Unlocking control method and related products
WO2017035977A1 (en) Method and system for confirming pairing connection of terminal devices
CN104618873B (en) Access-in point information sharing method and device
CN109445577B (en) Virtual room switching method and device, electronic equipment and storage medium
CN109768810A (en) A kind of signal processing circuit, terminal device and signal processing method
CN109074443A (en) A kind of unlocking method and device
CN112134758B (en) Method and device for monitoring weak network environment and reconnecting communication session
WO2016169107A1 (en) Method and device for answering incoming call
WO2019019837A1 (en) Biological identification method and related product
CN106611152A (en) User identity determination method and apparatus
CN109075856A (en) flight path configuration method and device
CN111357245A (en) Information searching method, terminal, network equipment and system
WO2016061249A1 (en) Methods and systems for sharing contact information between mobile devices
CN107103221B (en) Unlocking control method and related product
CN106066953B (en) Fingerprint unlocking control method and terminal equipment
CN110535754B (en) Image sharing method and device
CN108632822B (en) Wireless access point detection method and device and mobile terminal

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: 15894000

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: 15894000

Country of ref document: EP

Kind code of ref document: A1