Embodiment
In below describing, in order to illustrate instead of in order to limit, propose the detail of such as particular system structure, technology and so on, understand the embodiment of the present invention thoroughly to cut.But, it will be clear to one skilled in the art that and also can realize the present invention in other embodiment not having these details.In other situation, omit the detailed description to well-known system, device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Refer to Fig. 1, be the realization flow of the terminal equipment pairing connection confirmation method that the embodiment of the present invention provides, it mainly comprises the following steps:
Step S101, the first bluetooth equipment obtains following at least one group of data according to prefixed time interval: the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that the data that the motion sensor that the RSSI data of the Bluetooth signal of described target second bluetooth equipment, described first bluetooth equipment carry collects, described target second bluetooth equipment monitor according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time.
In embodiments of the present invention, described target second bluetooth equipment is the second bluetooth equipment be connected with described first bluetooth equipment.Described first bluetooth equipment and target second bluetooth equipment (preferably have bluetooth low energy consumption (the Bluetooth Low Energy of bluetooth 4.0 agreement for having Bluetooth function, BLE) function) terminal equipment, such as smart mobile phone, panel computer etc.
Exemplary, after described first bluetooth equipment and described target second bluetooth equipment connect, every certain time interval (such as 7.5ms ~ 4s, preferred 20ms), described target second bluetooth equipment needs to send to described first bluetooth equipment the heartbeat packet maintaining and connect, and described first bluetooth equipment then needs response.
Because described first bluetooth equipment and described target second bluetooth equipment can receive and dispatch described heartbeat packet in each described time interval, therefore can upgrade once after described RSSI data each time interval.Based on this, the first bluetooth equipment described in the embodiment of the present invention and described target second bluetooth equipment are by monitoring the RSSI data of the Bluetooth signal of the other side, and the RSSI data obtaining the Bluetooth signal of self that the other side monitors confirm the fail safe of connection.
Another example, described first bluetooth equipment and described target second bluetooth equipment all carry motion sensor (such as, gyroscope, gravity sensor, acceleration transducer etc.), the motion sensor that described first bluetooth equipment and the second bluetooth equipment can also carry respectively by it gathers the exercise data of self, and confirms the fail safe of connection by obtaining the exercise data collected.
Step S102, the first bluetooth equipment sets up corresponding curve according to the described data obtained.
Exemplary, first bluetooth equipment according to described in the RSSI data of the Bluetooth signal of target second bluetooth equipment that monitor set up the 2nd RSSI change curve, set up the 3rd RSSI change curve according to the RSSI data of the Bluetooth signal of the first bluetooth equipment of described acquisition;
Further, can also comprise:
First bluetooth equipment obtains according to described prefixed time interval the data that its motion sensor collects, and sets up the second curve movement according to these data.
Another example, the data that first bluetooth equipment collects according to the motion sensor that carries of described first bluetooth equipment obtained set up the 3rd curve movement, and the data that the motion sensor carried according to described second bluetooth equipment obtained collects set up the 4th curve movement.
It should be noted that, curve described in the embodiment of the present invention can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve or acceleration (ordinate)-time (abscissa).
Step S408, the first bluetooth equipment judges whether the described curve set up all meets preassigned pattern, if judged result is "Yes", then performs step S409; If judged result is "No", then perform step S410.
In embodiments of the present invention, the curve meeting preassigned pattern described in can be the amplitude of variation of curve in preset range and/or the period of change of curve meet ad hoc rules etc.
Step S409, confirms to connect.
Step S410, disconnects the connection with described target second bluetooth equipment.
It should be noted that, in the present embodiment, judge whether curve movement meets preassigned pattern, can be applicable to the scene that a bluetooth equipment motion or two bluetooth equipments do same movement; Judge whether RSSI change curve meets preassigned pattern, can be applicable to the scene that a bluetooth equipment motion or two bluetooth equipments do same movement.
First bluetooth equipment described in the embodiment of the present invention is after connecting with described target second bluetooth equipment, described first bluetooth equipment and described target second bluetooth equipment are by monitoring the data of the other side, and the data of self that acquisition the other side monitors, and at least one group of data are selected from the described data (such as RSSI data, exercise data) obtained, described data according to selecting set up corresponding curve, by judging whether the described curve set up meets the fail safe that preassigned pattern confirms connection further.
In addition, the above-mentioned example of the present embodiment, only for explaining the present invention, does not limit protection scope of the present invention.
As another preferable examples of the present invention, after described first bluetooth equipment and described target second bluetooth equipment connect, the present invention can also comprise:
First bluetooth equipment obtains the RSSI data of the Bluetooth signal of described target second bluetooth equipment and/or obtains the RSSI data of Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval according to prefixed time interval;
First bluetooth equipment judges that the change of the described RSSI data obtained is whether in preset range;
If not, then the connection with described target second bluetooth equipment is disconnected.
This example can be applicable to following scene: the first bluetooth equipment does same movement together with described target second bluetooth equipment, such as the first bluetooth equipment takes, target second bluetooth equipment band is in wrist, because the first bluetooth equipment and described target second bluetooth equipment distance do not change, the change of described RSSI data is close to zero.
Refer to Fig. 2, be the realization flow of the terminal equipment pairing connection confirmation method that another embodiment of the present invention provides, it mainly comprises the following steps:
Step S201, the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, and obtains the RSSI data associated with described broadcast data packet.
In embodiments of the present invention, described multiple second bluetooth equipment can under BLE pattern, by the broadcast data packet of the time interval broadcast setting towards periphery of setting.Described first bluetooth equipment while the broadcast data packet receiving described multiple second bluetooth equipment broadcast, can obtain the RSSI data associated with described broadcast data packet.Wherein, described interval time can be 20ms ~ 10.24s.
As a preferable examples of the present invention, in order to reduce the quantity of candidate second bluetooth equipment, improve the fail safe that the first bluetooth equipment pairing connects, the embodiment of the present invention also comprises:
Described broadcast data packet carries manufacturer's custom field;
After the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, described first bluetooth equipment filters out the second bluetooth equipment of this manufacturer distribution according to manufacturer's custom field that described broadcast data packet is carried.Namely described first bluetooth equipment only needs the second bluetooth equipment paying close attention to the distribution of this manufacturer, and the manufacturer's custom field carried by broadcast data packet gets rid of the second bluetooth equipment of this manufacturer non-distribution.
In step S202, the first bluetooth equipment sets up a multiple RSSI change curve according to described RSSI data, wherein the corresponding RSSI change curve of each second bluetooth equipment.
In embodiments of the present invention, a described RSSI change curve can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve, acceleration (ordinate)-time (abscissa) or RSSI value (ordinate)-distance (abscissa).
The wherein corresponding RSSI change curve of each second bluetooth equipment.Particularly, according to multiple broadcast data packet that each second bluetooth equipment sends, obtain multiple RSSI value of association, set up a RSSI change curve corresponding with this second bluetooth equipment according to described multiple RSSI value.
In step S203, the first bluetooth equipment obtains the data that its motion sensor carried collects, and sets up the first curve movement according to described data.
In embodiments of the present invention, described first bluetooth equipment can while the described broadcast data packet of reception, and the motion sensor carried by it gathers the exercise data of the first bluetooth equipment, and sets up the first curve movement according to described exercise data.Described first curve movement can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve or acceleration (ordinate)-time (abscissa).
Optionally, described first bluetooth equipment can receive described broadcast data packet in motion process (described motion can make the distance between the first bluetooth equipment and the second bluetooth equipment change), obtain the RSSI data of described broadcast data packet association, the motion sensor simultaneously carried by it gathers the exercise data of the first bluetooth equipment.
Such as, user opens motion sensor by the app of the first bluetooth equipment, and near the second bluetooth equipment (as in 1 meter) along the second bluetooth equipment <-> first bluetooth equipment longitudinally rock the first bluetooth equipment (namely keep the second bluetooth equipment and the first bluetooth equipment space direction constant, only change distance, distance change in 1 meter between the second bluetooth equipment and the first bluetooth equipment can cause the significant change of RSSI value), first bluetooth equipment gathers the exercise data of the first bluetooth equipment by described motion sensor, and receive the broadcast data packet of the second bluetooth equipment broadcast simultaneously, record the RSSI data of described broadcast data packet association.
In step S204, the first bluetooth equipment searches target second bluetooth equipment that a described RSSI change curve and described first curve movement match.
Particularly, described first bluetooth equipment is according to described first curve movement, the RSSI change curve matched with described first curve movement is searched from a described multiple RSSI change curve, and using the second corresponding for the RSSI change curve that matches described in finding bluetooth equipment as described target second bluetooth equipment.
It should be noted that, a RSSI change curve described in the embodiment of the present invention and described first curve movement match and might not need that both are completely the same, and the amplitude of variation of a described RSSI change curve and described first curve movement, period of change, form (i.e. change trend, the rate of change of different time points) are in preset range.
In step S205, the first bluetooth equipment, after finding target second bluetooth equipment that a described RSSI change curve and described first curve movement match, initiates connection request, to connect to described target second bluetooth equipment.
In embodiments of the present invention, described in the mode that connects can be by after user's select target second bluetooth equipment, connected by justwork mode, also can be connected by existing matching method, not limit at this.
Further, in order to strengthen Consumer's Experience, be convenient to user and get more information about pairing connection procedure, the embodiment of the present invention also comprises:
Show the first bluetooth equipment and the second bluetooth equipment in patterned mode and match the process be connected.Exemplary, in the motion state of the display screen of the first bluetooth equipment and/or display screen display the other side of the second bluetooth equipment, such as at the display screen display one motion bead of the second bluetooth equipment, reflected motion conditions or the RSSI value situation of change of the first bluetooth equipment by described motion bead.
Optionally, for strengthening ease for use and practicality further, the embodiment of the present invention also comprises:
The function confirming that pairing connects and cancellation pairing connects is increased at the first bluetooth equipment and/or the second bluetooth equipment.Concrete can be, the button or default operating gesture that confirm that pairing connection and cancellation pairing connect is increased at the first bluetooth equipment and/or the second bluetooth equipment, to make user when triggering described button or described operating gesture, first bluetooth equipment or the second bluetooth equipment perform the corresponding function that confirmation pairing connects or cancellation pairing connects, such as on the touch-screen of the first bluetooth equipment or the second bluetooth equipment, slid clockwise performs and confirms pairing linkage function, the touch-screen of the first bluetooth equipment or the second bluetooth equipment slides counterclockwise perform and cancel pairing linkage function.
By this embodiment, make the pairing connection procedure of the first bluetooth equipment and the second bluetooth equipment simpler, more convenient and safer, improve Consumer's Experience greatly.
Step S206, first bluetooth equipment is after connecting with target second bluetooth equipment, following at least one group of data are obtained: the RSSI data of the Bluetooth signal of described target second bluetooth equipment according to prefixed time interval, the data that the motion sensor that described first bluetooth equipment carries collects, the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time,
Step S207, the first bluetooth equipment sets up corresponding curve according to the described data obtained;
Step S208, the first bluetooth equipment judges whether the described curve set up all meets preassigned pattern, if judged result is "Yes", then performs step S209; If judged result is "No", then perform step S210;
Step S209, confirms to connect;
Step S210, disconnects the connection with described target second bluetooth equipment.
The specific implementation process of embodiment of the present invention step S206 ~ step S210 with reference to the step S101 ~ step 105 in the corresponding embodiment of figure 1, can not repeat them here.
The embodiment of the present invention searches target second bluetooth equipment by being carried out mating with the curve movement of the first bluetooth equipment by the RSSI change curve of the second bluetooth equipment, make pairing connection procedure safely, simply, fast, do not need user to participate in the operations such as selection, input, confirmation, effectively improve Consumer's Experience.And, by the confirmation after connection, can further improve the fail safe of connection.
Refer to Fig. 3, be the realization flow of the terminal equipment pairing connection confirmation method that the embodiment of the present invention provides, it mainly comprises the following steps:
Step S301, the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, and described broadcast data packet carries the data that described second bluetooth equipment is collected by the motion sensor that it carries.
In embodiments of the present invention, described multiple second bluetooth equipment can under BLE pattern, by the broadcast data packet of the time interval broadcast setting towards periphery of setting.Described first bluetooth equipment while the broadcast data packet receiving described multiple second bluetooth equipment broadcast, can obtain the RSSI data associated with described broadcast data packet.Wherein, described interval time can be 20ms ~ 10.24s.
As a preferable examples of the present invention, in order to reduce the quantity of candidate second bluetooth equipment, improve the fail safe that the first bluetooth equipment pairing connects, the embodiment of the present invention also comprises:
Described broadcast data packet carries manufacturer's custom field;
After the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, described first bluetooth equipment filters out the second bluetooth equipment of this manufacturer distribution according to manufacturer's custom field that described broadcast data packet is carried.Namely described first bluetooth equipment only needs the second bluetooth equipment paying close attention to the distribution of this manufacturer, and the manufacturer's custom field carried by broadcast data packet gets rid of the second bluetooth equipment of this manufacturer non-distribution.
As another preferable examples of the present invention, described broadcast data packet also carries the data that described second bluetooth equipment is collected by the motion sensor that it carries.
In step s 302, the first bluetooth equipment obtains the RSSI data associated with described broadcast data packet, and the data that described second bluetooth equipment carried in described broadcast data packet is collected by the motion sensor that it carries.
In embodiments of the present invention, described first bluetooth equipment can in the process of moving together with the second bluetooth equipment, or the first bluetooth equipment is motionless, receive described broadcast data packet in the process of the second bluetooth equipment motion, obtain the data that in the RSSI data of described broadcast data packet association and described broadcast data packet, described second bluetooth equipment that carries is collected by the motion sensor that it carries.
In step S303, the first bluetooth equipment sets up a multiple RSSI change curve according to described RSSI data, wherein the corresponding RSSI change curve of each second bluetooth equipment.
In embodiments of the present invention, a described RSSI change curve can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve, acceleration (ordinate)-time (abscissa) or RSSI value (ordinate)-distance (abscissa).
The wherein corresponding RSSI change curve of each second bluetooth equipment.Particularly, according to multiple broadcast data packet that each second bluetooth equipment sends, obtain multiple RSSI value of association, set up a RSSI change curve corresponding with this second bluetooth equipment according to described multiple RSSI value.
In step s 304, first bluetooth equipment sets up multiple first curve movement according to described second bluetooth equipment carried in described broadcast data packet by the data that the motion sensor that it carries collects, wherein corresponding first curve movement of each second bluetooth equipment.
In embodiments of the present invention, described first curve movement can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve or acceleration (ordinate)-time (abscissa).
In step S305, the first bluetooth equipment searches target second bluetooth equipment that a described RSSI change curve and described first curve movement match.
A RSSI change curve described in the embodiment of the present invention and described first curve movement match and might not need that both are completely the same, and the amplitude of variation of a described RSSI change curve and described first curve movement, period of change, form (i.e. change trend, the rate of change of different time points) are in preset range.
In step S306, the first bluetooth equipment, after finding target second bluetooth equipment that a described RSSI change curve and described first curve movement match, initiates connection request, to connect to described target second bluetooth equipment.
In embodiments of the present invention, described in the mode that connects can be by after user's select target second bluetooth equipment, connected by justwork mode, also can be connected by existing matching method, not limit at this.
Further, in order to strengthen Consumer's Experience, be convenient to user and get more information about pairing connection procedure, the embodiment of the present invention also comprises:
Show the first bluetooth equipment and the second bluetooth equipment in patterned mode and match the process be connected.Exemplary, in the motion state of the display screen of the first bluetooth equipment and/or display screen display the other side of the second bluetooth equipment, such as at the display screen display one motion bead of the second bluetooth equipment, reflected motion conditions or the RSSI value situation of change of the first bluetooth equipment by described motion bead.
Optionally, for strengthening ease for use and practicality further, the embodiment of the present invention also comprises:
The function confirming that pairing connects and cancellation pairing connects is increased at the first bluetooth equipment and/or the second bluetooth equipment.Concrete can be, the button or default operating gesture that confirm that pairing connection and cancellation pairing connect is increased at the first bluetooth equipment and/or the second bluetooth equipment, to make user when triggering described button or described operating gesture, first bluetooth equipment or the second bluetooth equipment perform the corresponding function that confirmation pairing connects or cancellation pairing connects, such as on the touch-screen of the first bluetooth equipment or the second bluetooth equipment, slid clockwise performs and confirms pairing linkage function, the touch-screen of the first bluetooth equipment or the second bluetooth equipment slides counterclockwise perform and cancel pairing linkage function.
Step S307, first bluetooth equipment is after connecting with target second bluetooth equipment, following at least one group of data are obtained: the RSSI data of the Bluetooth signal of described target second bluetooth equipment according to prefixed time interval, the data that the motion sensor that described first bluetooth equipment carries collects, the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time,
Step S308, the first bluetooth equipment sets up corresponding curve according to the described data obtained;
Step S309, the first bluetooth equipment judges whether the described curve set up all meets preassigned pattern, if judged result is "Yes", then performs step S310; If judged result is "No", then perform step S311;
Step S310, confirms to connect;
Step S311, disconnects the connection with described target second bluetooth equipment.
The specific implementation process of embodiment of the present invention step S307 ~ step S311 with reference to the step S101 ~ step 105 in the corresponding embodiment of figure 1, can not repeat them here.
The embodiment of the present invention searches target second bluetooth equipment by being carried out mating with the curve movement of the second bluetooth equipment by the RSSI change curve of the second bluetooth equipment, make pairing connection procedure safely, simply, fast, do not need user to participate in the operations such as selection, input, confirmation, effectively improve Consumer's Experience.And, by the confirmation after connection, can further improve the fail safe of connection.
Refer to Fig. 4, be the realization flow of the terminal equipment pairing connection confirmation method that the embodiment of the present invention provides, it mainly comprises the following steps:
Step S401, the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, and obtains the RSSI data associated with described broadcast data packet.
In embodiments of the present invention, described multiple second bluetooth equipment can under BLE pattern, by the broadcast data packet of the time interval broadcast setting towards periphery of setting.Described first bluetooth equipment while the broadcast data packet receiving described multiple second bluetooth equipment broadcast, can obtain the RSSI data associated with described broadcast data packet.Wherein, described interval time can be 20ms ~ 10.24s.
As a preferable examples of the present invention, in order to reduce the quantity of candidate second bluetooth equipment, improve the fail safe that the first bluetooth equipment pairing connects, the embodiment of the present invention also comprises:
Described broadcast data packet carries manufacturer's custom field;
After the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, described first bluetooth equipment filters out the second bluetooth equipment of this manufacturer distribution according to manufacturer's custom field that described broadcast data packet is carried.Namely described first bluetooth equipment only needs the second bluetooth equipment paying close attention to the distribution of this manufacturer, and the manufacturer's custom field carried by broadcast data packet gets rid of the second bluetooth equipment of this manufacturer non-distribution.
Optionally, described first bluetooth equipment can receive described broadcast data packet in motion process (described motion can make the distance between the first bluetooth equipment and the second bluetooth equipment change), obtains the RSSI data of described broadcast data packet association.
In step S402, the first bluetooth equipment sets up a multiple RSSI change curve according to described RSSI data, wherein the corresponding RSSI change curve of each second bluetooth equipment.
In embodiments of the present invention, a described RSSI change curve can be the curve forms such as the distance form of (ordinate)-time (abscissa) curve, the form of speed (ordinate)-time (abscissa) curve, acceleration (ordinate)-time (abscissa) or RSSI value (ordinate)-distance (abscissa).
The wherein corresponding RSSI change curve of each second bluetooth equipment.Particularly, according to multiple broadcast data packet that each second bluetooth equipment sends, obtain multiple RSSI value of association, set up a RSSI change curve corresponding with this second bluetooth equipment according to described multiple RSSI value.
In step S403, first bluetooth equipment searches the RSSI change curve meeting preassigned pattern from a described multiple RSSI change curve, using the second corresponding for the RSSI change curve that meets preassigned pattern described in finding bluetooth equipment as target second bluetooth equipment.
In embodiments of the present invention, the RSSI change curve meeting preassigned pattern described in can be RSSI amplitude of variation in preset range and/or RSSI period of change meet the change curve of ad hoc rules etc.
It should be noted that, when to there is the second bluetooth equipment corresponding to multiple RSSI change curve meeting preassigned pattern simultaneously, therefrom can select any one or select the second bluetooth equipment meeting pre-conditioned (such as chosen distance is nearest) as described target second bluetooth equipment.
In step s 404, the first bluetooth equipment initiates connection request, to connect to described target second bluetooth equipment.
In embodiments of the present invention, described in the mode that connects can be by after user's select target second bluetooth equipment, connected by justwork mode, also can be connected by existing matching method, not limit at this.
Further, in order to strengthen Consumer's Experience, be convenient to user and get more information about pairing connection procedure, the embodiment of the present invention also comprises:
Show the first bluetooth equipment and the second bluetooth equipment in patterned mode and match the process be connected.Exemplary, in the motion state of the display screen of the first bluetooth equipment and/or display screen display the other side of the second bluetooth equipment, such as at the display screen display one motion bead of the second bluetooth equipment, reflected motion conditions or the RSSI value situation of change of the first bluetooth equipment by described motion bead.
Optionally, for strengthening ease for use and practicality further, the embodiment of the present invention also comprises:
The function confirming that pairing connects and cancellation pairing connects is increased at the first bluetooth equipment and/or the second bluetooth equipment.Concrete can be, the button or default operating gesture that confirm that pairing connection and cancellation pairing connect is increased at the first bluetooth equipment and/or the second bluetooth equipment, to make user when triggering described button or described operating gesture, first bluetooth equipment or the second bluetooth equipment perform the corresponding function that confirmation pairing connects or cancellation pairing connects, such as on the touch-screen of the first bluetooth equipment or the second bluetooth equipment, slid clockwise performs and confirms pairing linkage function, the touch-screen of the first bluetooth equipment or the second bluetooth equipment slides counterclockwise perform and cancel pairing linkage function.
Step S405, first bluetooth equipment is after connecting with target second bluetooth equipment, following at least one group of data are obtained: the RSSI data of the Bluetooth signal of described target second bluetooth equipment according to prefixed time interval, the data that the motion sensor that described first bluetooth equipment carries collects, the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time,
Step S406, the first bluetooth equipment sets up corresponding curve according to the described data obtained;
Step S407, the first bluetooth equipment judges whether the described curve set up all meets preassigned pattern, if judged result is "Yes", then performs step S408; If judged result is "No", then perform step S409;
Step S408, confirms to connect;
Step S409, disconnects the connection with described target second bluetooth equipment.
The specific implementation process of embodiment of the present invention step S405 ~ step S409 with reference to the step S101 ~ step 105 in the corresponding embodiment of figure 1, can not repeat them here.
The second corresponding for the RSSI change curve that meets preassigned pattern bluetooth equipment as described target second bluetooth equipment, is initiated connection request, to connect to described target second bluetooth equipment by the embodiment of the present invention.Compared with prior art, the connection procedure that matches described in the embodiment of the present invention does not need user to participate in the operations such as selection, input, confirmation, under the prerequisite ensureing higher-security, decreases manual operation, improve the efficiency that terminal equipment pairing connects, enhance Consumer's Experience.And, by the confirmation after connection, can further improve the fail safe of connection.
Refer to Fig. 5, be the realization flow of the terminal equipment pairing connection confirmation method that the embodiment of the present invention provides, it mainly comprises the following steps:
Step S501, the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, and described broadcast data packet carries the data that described second bluetooth equipment is collected by the motion sensor that it carries.
In embodiments of the present invention, described multiple second bluetooth equipment can under BLE pattern, by the broadcast data packet of the time interval broadcast setting towards periphery of setting.Wherein, described broadcast data packet carries the data that described second bluetooth equipment is collected by the motion sensor that it carries; Described interval time can be 20ms ~ 10.24s.
As a preferable examples of the present invention, in order to reduce the quantity of candidate second bluetooth equipment, improve the fail safe that the first bluetooth equipment pairing connects, the embodiment of the present invention also comprises:
Described broadcast data packet carries manufacturer's custom field;
After the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, described first bluetooth equipment filters out the second bluetooth equipment of this manufacturer distribution according to manufacturer's custom field that described broadcast data packet is carried.Namely described first bluetooth equipment only needs the second bluetooth equipment paying close attention to the distribution of this manufacturer, and the manufacturer's custom field carried by broadcast data packet gets rid of the second bluetooth equipment of this manufacturer non-distribution.
In step S502, first bluetooth equipment sets up multiple first curve movement according to described second bluetooth equipment carried in described broadcast data packet by the data that the motion sensor that it carries collects, wherein corresponding first curve movement of each second bluetooth equipment.
In embodiments of the present invention, described first curve movement can be the distance form of (ordinate)-time (abscissa) curve, the curve form such as form, acceleration (ordinate)-time (abscissa) of speed (ordinate)-time (abscissa) curve.
In step S503, first bluetooth equipment searches the first curve movement meeting preassigned pattern from described multiple first curve movement, using the second corresponding for the first curve movement of meeting preassigned pattern described in finding bluetooth equipment as target second bluetooth equipment.
In embodiments of the present invention, the first curve movement meeting preassigned pattern described in can be curvilinear motion amplitude in preset range and/or the curvilinear motion cycle meet the change curve of ad hoc rules etc.
It should be noted that, when to there is the second bluetooth equipment corresponding to multiple the first curve movement meeting preassigned pattern simultaneously, therefrom can select any one or select the second bluetooth equipment meeting pre-conditioned (such as chosen distance is nearest) as described target second bluetooth equipment.
Optionally, after the first bluetooth equipment receives the broadcast data packet of multiple second bluetooth equipment broadcast, the present embodiment can also comprise:
First bluetooth equipment obtains the RSSI data associated with described broadcast data packet;
Described first bluetooth equipment searches the first curve movement meeting preassigned pattern from described multiple first curve movement, can be comprised by the second corresponding for the first curve movement meeting preassigned pattern described in finding bluetooth equipment as target second bluetooth equipment:
Described first bluetooth equipment searches the first curve movement meeting preassigned pattern from described multiple first curve movement, and from the second bluetooth equipment corresponding to the first curve movement meeting preassigned pattern described in finding, search second bluetooth equipment of change in preset range of described RSSI data, using this second bluetooth equipment of finding as target second bluetooth equipment.
Such as, user opens motion sensor by the app of the first bluetooth equipment, rock together with second bluetooth equipment is held in the first bluetooth equipment, first bluetooth equipment receives the broadcast data packet of the second bluetooth equipment broadcast, obtain the data that described second bluetooth equipment that carries in described broadcast data packet is collected by the motion sensor that it carries, record the RSSI data of described broadcast data packet association simultaneously.First bluetooth equipment is when judging that the curve movement of described second bluetooth equipment meets preassigned pattern, and whether the change also needing to judge further described RSSI data is in preset range and whether described RSSI data are maximum all the time.
In step S504, the first bluetooth equipment initiates connection request, to connect to described target second bluetooth equipment.
In embodiments of the present invention, described in the mode that connects can be by after user's select target second bluetooth equipment, connected by justwork mode, also can be connected by existing matching method, not limit at this.
Further, in order to strengthen Consumer's Experience, be convenient to user and get more information about pairing connection procedure, the embodiment of the present invention also comprises:
Show the first bluetooth equipment and the second bluetooth equipment in patterned mode and match the process be connected.Exemplary, in the motion state of the display screen of the first bluetooth equipment and/or display screen display the other side of the second bluetooth equipment, such as at the display screen display one motion bead of the second bluetooth equipment, reflected motion conditions or the RSSI value situation of change of the first bluetooth equipment by described motion bead.
Optionally, for strengthening ease for use and practicality further, the embodiment of the present invention also comprises:
The function confirming that pairing connects and cancellation pairing connects is increased at the first bluetooth equipment and/or the second bluetooth equipment.Concrete can be, the button or default operating gesture that confirm that pairing connection and cancellation pairing connect is increased at the first bluetooth equipment and/or the second bluetooth equipment, to make user when triggering described button or described operating gesture, first bluetooth equipment or the second bluetooth equipment perform the corresponding function that confirmation pairing connects or cancellation pairing connects, such as on the touch-screen of the first bluetooth equipment or the second bluetooth equipment, slid clockwise performs and confirms pairing linkage function, the touch-screen of the first bluetooth equipment or the second bluetooth equipment slides counterclockwise perform and cancel pairing linkage function.
Step S505, first bluetooth equipment is after connecting with target second bluetooth equipment, following at least one group of data are obtained: the RSSI data of the Bluetooth signal of described target second bluetooth equipment according to prefixed time interval, the data that the motion sensor that described first bluetooth equipment carries collects, the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time,
Step S506, the first bluetooth equipment sets up corresponding curve according to the described data obtained;
Step S507, the first bluetooth equipment judges whether the described curve set up all meets preassigned pattern, if judged result is "Yes", then performs step S508; If judged result is "No", then perform step S509;
Step S508, confirms to connect;
Step S509, disconnects the connection with described target second bluetooth equipment.
The specific implementation process of embodiment of the present invention step S505 ~ step S509 with reference to the step S101 ~ step 105 in the corresponding embodiment of figure 1, can not repeat them here.
The second corresponding for the first curve movement of meeting preassigned pattern bluetooth equipment as described target second bluetooth equipment, and is initiated connection request, to connect to described target second bluetooth equipment by the embodiment of the present invention.Compared with prior art, the connection procedure that matches described in the embodiment of the present invention does not need user to participate in the operations such as selection, input, confirmation, under the prerequisite ensureing higher-security, decreases manual operation, improve the efficiency that terminal equipment pairing connects, enhance Consumer's Experience.And, by the confirmation after connection, can further improve the fail safe of connection.
It should be noted that, before the first bluetooth equipment and target second bluetooth equipment connect, both sides carry out data interaction in a broadcast manner; Upon establishment of a connection, both sides carry out data interaction by the Bluetooth link of foundation.
Need to further illustrate, when relating to broadcast capability, corresponding bluetooth equipment needs bluetooth low energy consumption (Bluetooth Low Energy, the BLE) function with bluetooth 4.0 agreement.
In addition, it should be understood that the size of the sequence number of each step in the corresponding embodiment of Fig. 1 to 5 and do not mean that the priority of execution sequence, the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
Referring to Fig. 6, is the composition structural representation of the terminal equipment pairing connection confirmation system that the embodiment of the present invention provides.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.
Described terminal equipment pairing connects the unit that confirmation system can be software unit, hardware cell or the software and hardware combining be built in the first bluetooth equipment.
Described terminal equipment pairing connects confirmation system and comprises: the first data capture unit 61, first curve sets up unit 62, first judging unit 63 and the first processing unit 64, and each unit concrete function is as follows:
First data capture unit 61, for after connecting with target second bluetooth equipment, following at least one group of data are obtained: the RSSI data of the Bluetooth signal of described target second bluetooth equipment according to prefixed time interval, the data that the motion sensor that described first bluetooth equipment carries collects, the data that the RSSI data of the Bluetooth signal of described first bluetooth equipment that described target second bluetooth equipment monitors according to described prefixed time interval and described target second bluetooth equipment are collected according to the motion sensor carried by described target second bluetooth equipment between described Preset Time,
First curve sets up unit 62, for setting up corresponding curve according to the described data obtained;
First judging unit 63, for judging whether the described curve set up all meets preassigned pattern;
First processing unit 64, for when described first judging unit 63 judged result is no, disconnects the connection with described target second bluetooth equipment.
Further, described system also comprises:
Second data capture unit 65, for receiving the broadcast data packet of multiple second bluetooth equipment broadcast, and obtains the RSSI data associated with described broadcast data packet;
Second curve sets up unit 66, for setting up a multiple RSSI change curve according to described RSSI data, and the wherein corresponding RSSI change curve of each second bluetooth equipment;
3rd curve sets up unit 67, the data that the motion sensor carried for obtaining it collects, and sets up the first curve movement according to described data;
First matching unit 68, for searching target second bluetooth equipment that a described RSSI change curve and described first curve movement match;
First linkage unit 69, for after finding target second bluetooth equipment that a described RSSI change curve and described first curve movement match, initiates connection request, to connect to described target second bluetooth equipment.
Further, described system also comprises:
First data receipt unit 610, for receiving the broadcast data packet of multiple second bluetooth equipment broadcast, described broadcast data packet carries the data that described second bluetooth equipment is collected by the motion sensor that it carries;
3rd data capture unit 611, for obtaining the RSSI data associated with described broadcast data packet, and the data that described second bluetooth equipment carried in described broadcast data packet is collected by the motion sensor that it carries;
4th curve sets up unit 612, for setting up a multiple RSSI change curve according to described RSSI data, and the wherein corresponding RSSI change curve of each second bluetooth equipment;
5th curve sets up unit 613, for setting up multiple first curve movement according to described second bluetooth equipment carried in described broadcast data packet by the data that the motion sensor that it carries collects, wherein corresponding first curve movement of each second bluetooth equipment;
Second matching unit 614, for searching target second bluetooth equipment that a described RSSI change curve and described first curve movement match;
Second linkage unit 615, for after finding target second bluetooth equipment that a described RSSI change curve and described first curve movement match, initiates connection request, to connect to described target second bluetooth equipment.
Further, described system also comprises:
4th data capture unit 616, for receiving the broadcast data packet of multiple second bluetooth equipment broadcast, and obtains the RSSI data associated with described broadcast data packet;
6th curve sets up unit 617, for setting up a multiple RSSI change curve according to described RSSI data, and the wherein corresponding RSSI change curve of each second bluetooth equipment;
First searches unit 618, for searching the RSSI change curve meeting preset mode from a described multiple RSSI change curve, using the second corresponding for the RSSI change curve that meets preassigned pattern described in finding bluetooth equipment as target second bluetooth equipment;
3rd linkage unit 619, for initiating connection request, to connect to described target second bluetooth equipment.
Further, described system also comprises:
Second data receipt unit 620, for receiving the broadcast data packet of multiple second bluetooth equipment broadcast, described broadcast data packet carries the data that described second bluetooth equipment is collected by the motion sensor that it carries;
7th curve sets up unit 621, for setting up multiple first curve movement according to described second bluetooth equipment carried in described broadcast data packet by the data that the motion sensor that it carries collects, wherein corresponding first curve movement of each second bluetooth equipment;
Second searches unit 622, for searching the first curve movement meeting preassigned pattern from described multiple first curve movement, using the second corresponding for the first curve movement of meeting preassigned pattern described in finding bluetooth equipment as target second bluetooth equipment;
4th linkage unit 623, for initiating connection request, to connect to described target second bluetooth equipment.
In sum, first bluetooth equipment described in the embodiment of the present invention is after connecting with described target second bluetooth equipment, described first bluetooth equipment and described target second bluetooth equipment are by monitoring the data of the other side, and the data of self that acquisition the other side monitors, and at least one group of data are selected from the described data (such as RSSI data, exercise data) obtained, described data according to selecting set up corresponding curve, by judging whether the described curve set up meets the fail safe that preassigned pattern confirms connection further.And can adopt multiple choices way selection target second bluetooth equipment, described selection mode does not need user to participate in the operations such as selection, input, confirmation, effectively improve the efficiency that terminal pairing connects, there is stronger ease for use and practicality.
Those skilled in the art can be well understood to, for convenience of description and succinctly, only be illustrated with the division of above-mentioned each functional unit, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional units, module, internal structure by described system is divided into different functional units or module, to complete all or part of function described above.Each functional unit in embodiment can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated, above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to the protection range of the application.The specific works process of unit in said system, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
In embodiment provided by the present invention, should be understood that disclosed system and method can realize by another way.Such as, system embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, it can be by some interfaces that shown or discussed coupling each other or direct-coupling or communication connect, and the indirect coupling of device or unit or communication connect, and can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the embodiment of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random AccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the embodiment of the present invention.