CN104348524A - Binding method, center equipment and peripheral equipment - Google Patents
- ️Wed Feb 11 2015
Embodiment
The embodiment of the present invention provides a kind of binding method, central apparatus and ancillary equipment, simply and efficiently can complete binding.
Please refer to Fig. 1, in the embodiment of the present invention, binding method embodiment comprises:
101, the distance between central apparatus detection and ancillary equipment;
In the present embodiment, when user needs a binding ancillary equipment, can by close for the ancillary equipment of central apparatus and required binding, and guarantee there is no miscellaneous equipment between central apparatus and ancillary equipment, central apparatus can by distance detector or the distance passed through between the intensity detection of signal and ancillary equipment.
102, central apparatus judges whether the distance detected meets distance condition, if meet distance condition, then performs step 103, if do not meet distance condition, then turns back to step 101;
In the present embodiment, central apparatus judges whether the distance detected meets distance condition, meet certain distance condition can be pre-stored within central apparatus, also can User Defined, in actual applications, make central apparatus and the spacing less (that is, the value of distance condition is less) needing the ancillary equipment bound, the accurate probability of binding is high.
103, central apparatus searches the pre-binding ancillary equipment of satisfied binding condition in the targeted peripheral device meeting distance condition;
In the present embodiment, search the targeted peripheral device of satisfied binding condition as pre-binding ancillary equipment in targeted peripheral device, in actual applications, pre-binding ancillary equipment is here an ancillary equipment.
104, central apparatus and the pre-binding ancillary equipment that finds are bound.
In the present embodiment, after step 103, central apparatus can be bound with the pre-binding ancillary equipment found, in actual applications, central apparatus can be bound based on bluetooth and pre-binding ancillary equipment, also can custom protocol, central apparatus and ancillary equipment is made all to meet this self-defining agreement, central apparatus is bound based on this self-defining agreement and pre-binding ancillary equipment, certain those skilled in the art can also according to above-mentioned bluetooth and self-defining agreement other information that can obviously know.
In the present embodiment, distance between central apparatus detection and ancillary equipment, central apparatus judges whether the distance detected meets distance condition, if meet distance condition, then central apparatus searches the pre-binding ancillary equipment of satisfied binding condition in the targeted peripheral device meeting distance condition, central apparatus and the pre-binding ancillary equipment found are bound, central apparatus can by judging whether to meet distance condition and binding condition determines that user wants the ancillary equipment controlled, the physical distance achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding.
For the ease of understanding, be embodied as example with central apparatus and ancillary equipment based on bluetooth below, be described the binding method in the embodiment of the present invention, refer to Fig. 2, in the embodiment of the present invention, another embodiment of binding method comprises:
201, ancillary equipment judges whether list of bindings is blank, if blank, then performs step 203, if not blank, then performs step 202;
In the present embodiment, list of bindings is provided with in ancillary equipment, list of bindings is for storing the central apparatus bound, in actual applications, can store and can show the mark of central apparatus by only table, such as, when central apparatus is mobile phone, handset serial (the IMEI of this mobile phone can be stored, international mobile equipment identity), also can centered by the medium access control (MAC of Bluetooth chip in equipment, media access control) address, it can also be self-defining numbering, those skilled in the art can according to above-mentioned handset serial or self-defining numbering other information that can obviously know, do not limit herein, ancillary equipment judges whether this list of bindings is blank, if list of bindings is blank, then perform step 203, if not blank, then perform step 202.
202, ancillary equipment judges whether list of bindings is locking binding state, if non-locking binding state, then performs step 203, if locking binding state, then performs step 215;
In the present embodiment, when ancillary equipment judges that list of bindings is not blank in step 201, ancillary equipment judges whether list of bindings is locking binding state, if non-locking binding state, then perform step 203 peripheral devices broadcasting equipment information, if locking binding state, then perform step 215.
203, ancillary equipment broadcasting equipment information;
In the present embodiment, when ancillary equipment judges that list of bindings is as time blank in step 201, ancillary equipment broadcasting equipment information, wherein this facility information comprises: the one in the state of the product type of ancillary equipment, the kind of ancillary equipment, ancillary equipment and manufacturer or combine arbitrarily, in actual applications, ancillary equipment is to all central apparatus broadcasting equipment information, and that is, any one central apparatus opening bluetooth all can detect the facility information that ancillary equipment is broadcasted.
204, central apparatus detects the facility information of ancillary equipment broadcast;
In the present embodiment, after step 203 ancillary equipment broadcasting equipment information, central apparatus can detect the facility information of ancillary equipment broadcast, wherein this facility information comprises: the product type of ancillary equipment, the kind of ancillary equipment, one in the state of ancillary equipment and manufacturer or combine arbitrarily, in actual applications, central apparatus can be mobile terminal, such as mobile phone, panel computer etc., central apparatus can also be remote control device, such as remote controller etc., ancillary equipment can be air-conditioning, the household electrical appliance such as the switch of lamp, for the switch of lamp, this facility information comprises: the product type of the switch of lamp, the state of switch (as, open, close), the kind of switch (as, one-way switch, variable connector, dimming switch), the production firm of the switch of lamp, those skilled in the art can according to the state of the said goods model or ancillary equipment other information that can obviously know, do not limit herein.
205, the distance between central apparatus detection and ancillary equipment;
In the present embodiment, when central apparatus can by the distance between the intensity detection of distance detector or signal and ancillary equipment, the distance how between inspection center's equipment and ancillary equipment, does not limit herein.
206, central apparatus judges whether the distance detected meets distance condition, if meet distance condition, then performs step 207, if do not meet distance condition, then returns and performs step 205;
In the present embodiment, central apparatus judges whether the distance detected meets distance condition, meet certain distance condition in actual applications can be pre-stored within central apparatus, also can User Defined, such as, meet distance condition can be set to be less than 10cm, it should be noted that, the value of this distance condition is under the condition being less than Bluetooth communication distance, make central apparatus and need the spacing of the ancillary equipment bound less (namely, the value of distance condition is less), the accurate probability of binding is high.
207, central apparatus is connected with the targeted peripheral device meeting distance condition;
In the present embodiment, meet the ancillary equipment of distance condition as targeted peripheral device, then central apparatus is connected with targeted peripheral device.
208, central apparatus receives the binding instruction that user sends;
In the present embodiment, after step 207, central apparatus can receive the binding instruction that user sends, this binding instruction can be an entity or virtual button, also can be phonetic order, it can also be slip gesture, do not limit herein, in actual applications, when central apparatus is mobile terminal, an APP(Application can be preset) carry out binding control operation to user, when central apparatus is remote control device, can set a binding module, user carries out binding control operation by the button of specifying.
209, central apparatus scans the targeted peripheral device meeting distance condition;
In the present embodiment, after central apparatus receives binding instruction, central apparatus scans the targeted peripheral device meeting distance condition, and in actual applications, this binding instruction is trigger central apparatus to perform the operation scanned the targeted peripheral device meeting distance condition.
210, central apparatus obtains the facility information of the targeted peripheral device broadcast meeting distance condition by scanning;
211, according to the facility information of the targeted peripheral device broadcast got, central apparatus judges whether the targeted peripheral device meeting distance condition belongs to default product type, if belong to default product type, then perform step 212, if do not belong to default product type, then determine Bind Failed;
In the present embodiment, first central apparatus obtains the facility information of the targeted peripheral device broadcast meeting distance condition by scanning, then judge whether the targeted peripheral device meeting distance condition belongs to default product type according to the facility information of the targeted peripheral device broadcast got, if belong to default product type, then perform step 212, in actual applications, more than one of the targeted peripheral device meeting distance condition here.
Whether the distance that 212, central apparatus judges to belong between the targeted peripheral device of default product type and central apparatus is less than first threshold, if be less than first threshold, then perform step 213, if be greater than first threshold, then determines Bind Failed;
In the present embodiment, whether the distance that central apparatus belongs between the targeted peripheral device of default product type and central apparatus except judgement is less than first threshold, whether the signal strength signal intensity that can also judge to belong between the targeted peripheral device of default product type and central apparatus is greater than default numerical value, in actual applications, when this distance equals first threshold, also step 213 can be performed.
213, central apparatus searches the targeted peripheral device nearest with central apparatus apart as pre-binding ancillary equipment in the targeted peripheral device being less than first threshold;
In the present embodiment, here the targeted peripheral device nearest with central apparatus is searched apart as pre-binding ancillary equipment in satisfied being less than in the targeted peripheral device of first threshold, in actual applications, nearest targeted peripheral device can be judged by the size of signal strength signal intensity, the maximum targeted peripheral device of signal strength signal intensity is as pre-binding ancillary equipment, in actual applications, the pre-binding ancillary equipment found only has one, when being greater than the pre-binding ancillary equipment of one if find, central apparatus can inform the result that user finds, user can close the facility information of the ancillary equipment broadcast except needing the pre-binding ancillary equipment of binding.
214, central apparatus and the pre-binding ancillary equipment that finds are bound;
In the present embodiment, central apparatus and the pre-binding ancillary equipment found are bound.
215, the central apparatus broadcasting equipment information that stores in list of bindings of ancillary equipment.
In the present embodiment, when judging list of bindings in step 202. as locking, ancillary equipment is only to the central apparatus broadcasting equipment information stored in list of bindings, in actual applications, when list of bindings is for locking binding state, the ancillary equipment that the central apparatus that stores in list of bindings could be corresponding with this list of bindings is only had to bind, the central apparatus of non-memory in list of bindings is the facility information that can't detect ancillary equipment broadcast corresponding to this list of bindings, the central apparatus stored in list of bindings can unlock the list of bindings of locking binding state, the central apparatus of non-memory in list of bindings can not unlock this list of bindings.
In the present embodiment, ancillary equipment is by judging that whether list of bindings is blank and lock binding state, when list of bindings is in locking binding state, except the central apparatus stored in list of bindings, other central apparatus can not be bound with this ancillary equipment, can effectively prevent not clear central apparatus from adding binding like this, improve fail safe, then the distance between central apparatus detection and ancillary equipment, central apparatus judges whether the distance detected meets distance condition, when meeting distance condition, central apparatus judges the product type of ancillary equipment, binding condition whether is met with the distance of central apparatus, then central apparatus finds the pre-binding ancillary equipment of satisfied binding condition, central apparatus and pre-binding ancillary equipment, central apparatus can by judging whether to meet distance condition and binding condition determines that user wants to bind the ancillary equipment controlled, the physical distance achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding.
For the ease of understanding, be embodied as example with central apparatus and ancillary equipment based on bluetooth below, be described the binding method in the embodiment of the present invention, refer to Fig. 3, in the embodiment of the present invention, another embodiment of binding method comprises:
301, central apparatus detects the facility information of ancillary equipment broadcast;
In the present embodiment, this facility information comprises: the product type of ancillary equipment, the kind of ancillary equipment, one in the state of ancillary equipment and manufacturer or combine arbitrarily, in actual applications, central apparatus can be mobile terminal, such as mobile phone, panel computer etc., central apparatus can also be remote control device, such as remote controller etc., ancillary equipment can be air-conditioning, the household electrical appliance such as the switch of lamp, for the switch of lamp, this facility information comprises: the product type of the switch of lamp, the state of switch (as, open, close), the kind of switch (as, one-way switch, variable connector and dimming switch), the production firm of the switch of lamp, certainly, those skilled in the art can according to the state of the said goods model or ancillary equipment other information that can obviously know, do not limit herein.
302, the distance between central apparatus detection and ancillary equipment;
In the present embodiment, when central apparatus can by the distance between the intensity detection of distance detector or signal and ancillary equipment, the distance how between inspection center's equipment and ancillary equipment, does not limit herein.
303, central apparatus judges whether the distance detected meets distance condition, if meet distance condition, then performs step 304, if do not meet distance condition, then returns and performs step 302;
In the present embodiment, central apparatus judges whether the distance detected meets distance condition, meet certain distance condition can be pre-stored within central apparatus, also can User Defined, such as, meet distance condition can be set to be less than 10cm, in actual applications, the value of this distance condition, under the condition being less than Bluetooth communication distance, makes central apparatus and needs the spacing of the ancillary equipment bound less (namely, the value of distance condition is less), the accurate probability of binding is high.
304, central apparatus is connected with the targeted peripheral device meeting distance condition;
In the present embodiment, meet the ancillary equipment of distance condition as targeted peripheral device, then central apparatus is connected with targeted peripheral device, in actual applications, meets more than one of the targeted peripheral device of distance condition.
305, central apparatus searches the pre-binding ancillary equipment of satisfied binding condition in the targeted peripheral device meeting distance condition;
In the present embodiment, the targeted peripheral device of satisfied binding condition is searched as pre-binding ancillary equipment in the targeted peripheral device meeting distance condition, whether the targeted peripheral device that the pre-binding ancillary equipment that central apparatus searches satisfied binding condition can pass through to judge to meet distance condition belongs to default product type, and when belonging to default product type, central apparatus judges whether the distance belonged between the targeted peripheral device of default product type and central apparatus is less than the signal strength signal intensity that first threshold or judgement belong between the targeted peripheral device of default product type and central apparatus and whether is greater than default numerical value, then search in the targeted peripheral device being less than first threshold with central apparatus at a distance of nearest targeted peripheral device as pre-binding ancillary equipment or be greater than default numerical value in signal strength signal intensity targeted peripheral device in search the maximum targeted peripheral device of signal strength signal intensity as pre-binding ancillary equipment, in actual applications, the pre-binding ancillary equipment found only has one, when being greater than the pre-binding ancillary equipment of one if find, central apparatus can inform the result that user finds, user can close the facility information of the broadcast of the equipment except needing the pre-binding ancillary equipment of binding.
It should be noted that, central apparatus can obtain the facility information of the targeted peripheral device broadcast meeting distance condition by scanning, from facility information, then get the product type of this targeted peripheral device.
306, central apparatus sends request binding message to pre-binding ancillary equipment;
307, the request binding message of pre-binding ancillary equipment receiving center equipment transmission;
In the present embodiment, first central apparatus sends request binding message to ask to bind with pre-binding ancillary equipment to pre-binding ancillary equipment, and then pre-binding ancillary equipment receives this request binding message.
308, pre-binding ancillary equipment judges whether be greater than Second Threshold with central apparatus connection signal intensity, if be greater than Second Threshold, then performs step 309, if be less than Second Threshold, then performs step 323;
In the present embodiment, after pre-binding ancillary equipment receives request binding message in step 307, pre-binding ancillary equipment judges whether be greater than Second Threshold with central apparatus connection signal intensity, if be greater than Second Threshold, then perform step 309, if be less than Second Threshold, then determine Bind Failed, in actual applications, when connection signal intensity equals Second Threshold, also step 309 can be performed.
309, pre-binding ancillary equipment sends the confirmation of connection signal intensity to central apparatus;
310, central apparatus receives the confirmation of the connection signal intensity that pre-binding ancillary equipment sends;
In the present embodiment, pre-binding ancillary equipment in step 308 connection signal intensity is greater than Second Threshold, then, pre-binding ancillary equipment sends the confirmation of connection signal intensity to central apparatus, in actual applications, this confirmation represents that pre-binding ancillary equipment accepts the bind request of central apparatus.
311, central apparatus and the pre-binding ancillary equipment that finds are bound;
In the present embodiment, after step 310 receives the confirmation information, central apparatus and the pre-binding ancillary equipment found are bound.
312, when central apparatus is mobile terminal, central apparatus is according to the facility information display control interface of described pre-binding ancillary equipment;
In the present embodiment, central apparatus can be mobile terminal, such as mobile phone, panel computer etc., central apparatus can also be remote control device, such as remote controller, the present embodiment is take central apparatus as mobile terminal or remote control device for example is described, when central apparatus is mobile terminal, central apparatus is according to the facility information display control interface of described pre-binding ancillary equipment, in actual applications, user can be controlled the pre-binding ancillary equipment bound by the control inerface of display, such as, pre-binding ancillary equipment is the switch of lamp, facility information comprises this switch to be had out, close, adjustment brightness three kinds of functions, user can be opened lamp by control inerface, close and adjustment brightness three kinds operation, user can be operated control inerface by pressing mode, also by the mode of sliding, control inerface can be operated, can also be operated control inerface by the mode of voice, do not limit herein.
313, central apparatus informs user and pre-binding ancillary equipment binding success;
In the present embodiment, central apparatus can eject information and inform user's binding success in the control inerface of display, also can pass through voice informing user binding success, be not construed as limiting herein.
314, when central apparatus is remote control device, central apparatus is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding according to the facility information of pre-binding ancillary equipment;
In the present embodiment, when central apparatus be remote control device (such as, remote controller) time, central apparatus is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding according to the facility information of pre-binding ancillary equipment, such as, pre-binding ancillary equipment is the switch of lamp, it is one-way switch that facility information comprises this switch, have out, close two kinds of functions, central apparatus has 5 buttons, the function that central apparatus can distribute the first button and the second button to one-way switch is respectively Kai Heguan, central apparatus also can distribute a button to one-way switch, and by long by button with shortly distinguish and close two kinds of functions by button, certain those skilled in the art can also according to above-mentioned two kinds of methods of salary distribution other information that can obviously know, do not limit herein.
315, central apparatus judges whether pre-binding ancillary equipment also needs to distribute button, if desired distributes, then perform step 316, distributes, then perform step 318 if do not need;
In the present embodiment, central apparatus judges whether pre-binding ancillary equipment also needs to distribute button, if desired distributes, then perform step 316, distributes, then perform step 318 if do not need.
Whether the quantity of unallocated button that 316, central apparatus judges on central apparatus meets quantity term, if meet quantity term, then performs step 317, if do not meet quantity term, then determines Bind Failed;
In the present embodiment, because central apparatus is as remote control device, so the button on central apparatus is limited, in actual applications, when pre-binding ancillary equipment is variable connector, each road all needs to distribute button, such as, pre-binding ancillary equipment is three-way switch, and each road all comprises out and closes two kinds of functions, central apparatus has 5 buttons, the distribution first via and the second tunnel all need 4 buttons, when distributing the first via and the second tunnel, the quantity term distributing the 3rd tunnel is 2 buttons, and remaining button does not meet quantity term.
317, central apparatus continues according to the facility information of pre-binding ancillary equipment is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding;
In the present embodiment, if the quantity of unallocated button meets quantity term, then central apparatus continues according to the facility information of pre-binding ancillary equipment is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding.
318, central apparatus informs user and pre-binding ancillary equipment binding success;
In the present embodiment, after central apparatus distributes button, central apparatus informs user and pre-binding ancillary equipment binding success, the mode of informing does not limit, central apparatus can inform user's binding success by indicator light, also can inform user's binding success by presetting specific music, in actual applications, after binding success, user can control pre-binding ancillary equipment by central apparatus.
319, central apparatus is stored in list of bindings by pre-binding ancillary equipment, and locks list of bindings;
In the present embodiment, list of bindings is provided with in ancillary equipment, list of bindings is for storing the central apparatus bound, then pre-binding ancillary equipment locking list of bindings, in actual applications, can store and can show the mark of central apparatus by only table, such as, when central apparatus is mobile phone, the IMEI of this mobile phone can be stored, also can centered by the MAC Address of Bluetooth chip in equipment, it can also be self-defining numbering, those skilled in the art can according to above-mentioned handset serial or self-defining numbering other information that can obviously know, do not limit herein.
320, pre-binding ancillary equipment sends binding open command to central apparatus;
321, central apparatus receives binding open command;
322, central apparatus disconnects according to binding open command and pre-binding ancillary equipment and binding;
In the present embodiment, pre-binding ancillary equipment is after user has controlled, binding open command is sent to central apparatus, after central apparatus receives binding open command, disconnect according to binding open command and pre-binding ancillary equipment and binding, in actual applications, after user has controlled, by central apparatus away from pre-binding ancillary equipment, distance now between central apparatus and pre-binding ancillary equipment becomes large, when distance when between central apparatus and pre-binding ancillary equipment does not meet distance condition, pre-binding ancillary equipment can send binding open command.
In the present embodiment, central apparatus is by distance condition and bind conditional search to pre-binding ancillary equipment, then central apparatus and pre-binding ancillary equipment are bound, after binding, under respectively central apparatus being mobile terminal and remote control device two kinds of situations, how to control the pre-binding ancillary equipment after binding to be described, when such central apparatus is mobile terminal, user is controlled by the control inerface of display, when central apparatus is remote control device, can be controlled by the button on device, the physical distance not only achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding, and achieve user and just can not control this pre-binding ancillary equipment by central apparatus near pre-binding ancillary equipment, further enhancing convenience.
Be described the central apparatus of the embodiment of the present invention for performing above-mentioned binding method below, its basic logical structure is with reference to figure 4, and in the embodiment of the present invention, central apparatus embodiment comprises:
First detecting unit 401, judging unit 402, search unit 403 and binding unit 404;
First detecting unit 401, for the distance detected and between ancillary equipment;
Judging unit 402, for judging whether the distance detected meets distance condition;
Searching unit 403, for when meeting distance condition, in the targeted peripheral device meeting distance condition, searching the pre-binding ancillary equipment of satisfied binding condition;
Binding unit 404, for binding with the pre-binding ancillary equipment found.
In the present embodiment, first detecting unit 401, for the distance detected and between ancillary equipment, judging unit 402, for judging whether the distance detected meets distance condition, search unit 403, for when meeting described distance condition, the pre-binding ancillary equipment of satisfied binding condition is searched in the targeted peripheral device meeting distance condition, binding unit 404, for binding with the pre-binding ancillary equipment found, central apparatus can by judging whether to meet distance condition and binding condition determines that user wants the ancillary equipment controlled, the physical distance achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding.
In order to better understand the above embodiments, be embodied as example below with central apparatus and ancillary equipment based on bluetooth, mutual between the modules that central apparatus comprises and unit is described the data interactive mode in central apparatus, refers to Fig. 5, comprising:
Second detecting unit 501, first detecting unit 502, judging unit 503, communication unit 504, search unit 505, transmitting element 506, first receiving element 507, binding unit 508, processing unit 509, second receiving element 510, performance element 511;
Search unit 505 to comprise: receiver module 5051, scan module 5052, acquisition module 5053, first judge module 5054, second judge module 5055, search module 5056;
Second detecting unit 501 detects the facility information of ancillary equipment broadcast, wherein this facility information comprises: the product type of ancillary equipment, the kind of ancillary equipment, one in the state of ancillary equipment and manufacturer or combine arbitrarily, in actual applications, central apparatus can be mobile terminal, such as mobile phone, panel computer etc., central apparatus can also be remote control device, such as remote controller etc., ancillary equipment can be air-conditioning, the household electrical appliance such as the switch of lamp, for the switch of lamp, this facility information comprises: the product type of the switch of lamp, the state of switch (as, open, close), the kind of switch (as, one-way switch, variable connector and dimming switch), the production firm of the switch of lamp, those skilled in the art can according to the state of the said goods model or ancillary equipment other information that can obviously know, do not limit herein, and inform that the first detecting unit 502 detects the facility information that ancillary equipment is broadcasted,
First detecting unit 502 detects and distance between ancillary equipment, can by the distance between the intensity detection of distance detector or signal and ancillary equipment, and the method for detecting distance does not limit herein, and the distance detected is sent to judging unit 503;
Judging unit 503 judges whether the distance detected meets distance condition, if meet distance condition, then inform that communication unit 504 meets the targeted peripheral device of distance condition, if do not meet distance condition, then inform that the first detecting unit 502 does not have ancillary equipment to meet distance condition, and trigger the first detecting unit 502 and re-start detection, meet certain distance condition can be pre-stored within central apparatus, also can User Defined, such as, meet distance condition can be set to be less than 10cm, in actual applications, the value of this distance condition is under the condition being less than Bluetooth communication distance, make central apparatus and need the spacing of the ancillary equipment bound less (namely, the value of distance condition is less), the accurate probability of binding is high,
Communication unit 504 is connected with the targeted peripheral device meeting distance condition;
Receiver module 5051 receives the binding instruction that user sends, and this binding instruction can be an entity or virtual button, also can be phonetic order, it can also be slip gesture, do not limit, in actual applications, this binding instruction may be used for driver sweep module 5052 herein;
Scan module 5052 scans the targeted peripheral device meeting distance condition;
Acquisition module 5053 obtains the facility information of the targeted peripheral device broadcast meeting distance condition by scanning, and the facility information got is sent to the first judge module 5054;
According to the facility information of the targeted peripheral device broadcast got, first judge module 5054 judges whether the targeted peripheral device meeting distance condition belongs to default product type, if belong to default product type, then trigger the second judge module 5055, if do not belong to default product type, then determine Bind Failed, in actual applications, more than one of the targeted peripheral device of distance condition is met;
Whether the distance that the second judge module 5055 can judge to belong between the targeted peripheral device of default product type and central apparatus is less than first threshold, if be less than first threshold, then triggering lookup module 5056, if be greater than first threshold, then determine Bind Failed, in actual applications, whether the second judge module 5055 signal strength signal intensity that can also judge to belong between the targeted peripheral device of default product type and central apparatus is greater than default numerical value to replace the distance between judgment device, when this distance equals first threshold, also can triggering lookup module 5056;
Search module 5056 and can search the targeted peripheral device nearest with central apparatus apart as pre-binding ancillary equipment in the targeted peripheral device being less than first threshold, in actual applications, nearest targeted peripheral device can be judged by the size of signal strength signal intensity, the pre-binding ancillary equipment found as pre-binding ancillary equipment, and is informed to transmitting element 506 by the maximum targeted peripheral device of signal strength signal intensity;
Transmitting element 506 sends request binding message and binds with request and pre-binding ancillary equipment to pre-binding ancillary equipment;
First receiving element 507 receives the confirmation of the connection signal intensity that pre-binding ancillary equipment sends, and in actual applications, this confirmation represents that pre-binding ancillary equipment accepts the bind request of central apparatus, and this confirmation is forwarded to binding unit 508;
Binding unit 508 is bound with the pre-binding ancillary equipment found, then the facility information of the pre-binding ancillary equipment of binding is sent to display module 5091 or the first distribution module 5093 after receiving the confirmation of the first receiving element 507 transmission;
When central apparatus is mobile terminal, please consult Fig. 6 further, processing unit 509 comprises: display module 5091 and the first Executive Module 5092;
Display module 5091 is according to the facility information display control interface of the pre-binding ancillary equipment received, in actual applications, user can be controlled the pre-binding ancillary equipment bound by the control inerface of display, such as, pre-binding ancillary equipment is the switch of lamp, facility information comprises this switch to be had out, close, adjustment brightness three kinds of functions, user can be opened lamp by control inerface, close or adjustment brightness three kinds operation, user can be operated control inerface by pressing mode, also by the mode of sliding, control inerface can be operated, can also be operated control inerface by the mode of voice, do not limit herein,
First Executive Module 5092 informs user and pre-binding ancillary equipment binding success, in actual applications, first Executive Module 5092 can eject information and inform user's binding success in the control inerface of display, also can pass through voice informing user binding success, be not construed as limiting herein;
When central apparatus is remote control device, please consult Fig. 7 further, processing unit 509 comprises: the first distribution module 5093, the 3rd judge module 5094, the 4th judge module 5095, second distribution module 5096 and the second Executive Module 5097;
First distribution module 5093 is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding according to the facility information of pre-binding ancillary equipment, such as, pre-binding ancillary equipment is the switch of lamp, it is one-way switch that facility information comprises this switch, have out, close two kinds of functions, the function that first distribution module 5093 can distribute the first button and the second button to one-way switch is respectively Kai Heguan, first distribution module 5093 also can distribute a button to this one-way switch, and by long by button with shortly distinguish and close two kinds of functions by button, certain those skilled in the art can also according to above-mentioned two kinds of methods of salary distribution other information that can obviously know, do not limit herein, then the first distribution module 5093 will be assigned message and be sent to the 3rd judge module 5094,
After 3rd judge module 5094 receives and is assigned message, judge whether pre-binding ancillary equipment also needs to distribute button, if desired distributes, then trigger the 4th judge module 5095, distribute if do not need, then trigger the second Executive Module 5097;
When also needing to distribute button, whether the quantity of the unallocated button that the 4th judge module 5095 judges on central apparatus meets quantity term, if meet quantity term, then trigger the second distribution module 5096, if do not meet quantity term, then determine Bind Failed, in actual applications, central apparatus is as remote control device, button on central apparatus is limited, when pre-binding ancillary equipment is variable connector, each road all needs to distribute button, such as pre-binding ancillary equipment is three-way switch, each road all comprises out and closes two kinds of functions, central apparatus there are 5 buttons, the distribution first via and the second tunnel all need 4 buttons, when distributing the first via and the second tunnel, the quantity term distributing the 3rd tunnel is 2 buttons, remaining button does not meet quantity term,
When meeting quantity term, it is the functional mode that the button of pre-binding ancillary equipment distributing center equipment and button are corresponding that second distribution module 5096 continues according to the facility information of pre-binding ancillary equipment, and then the second distribution module 5096 triggers the second Executive Module 5097;
Second Executive Module 5097 informs user and pre-binding ancillary equipment binding success, the mode of informing does not limit, second Executive Module 5097 can inform user's binding success by indicator light, and the second Executive Module 5097 also can inform user's binding success by presetting specific music;
Second receiving element 510 receives the binding open command that pre-binding ancillary equipment sends, in actual applications, after user has controlled, by central apparatus away from pre-binding ancillary equipment, distance now between central apparatus and pre-binding ancillary equipment becomes large, when distance when between central apparatus and pre-binding ancillary equipment does not meet distance condition, pre-binding ancillary equipment can send binding open command;
Performance element 511 disconnects according to binding open command and pre-binding ancillary equipment to be bound.
In the present embodiment, central apparatus is by the second detecting unit 501, first detecting unit 502, judging unit 503 and search the pre-binding ancillary equipment that unit 505 determines to meet distance condition and binding condition, then by processing unit 509 under being mobile terminal and remote control device two kinds of situations to central apparatus respectively, how to control the pre-binding ancillary equipment after binding to be described, when such central apparatus is mobile terminal, user is controlled by the control inerface of display, when central apparatus is remote control device, can be controlled by the button on device, the physical distance not only achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding, and achieve user and just can not control this pre-binding ancillary equipment by central apparatus near pre-binding ancillary equipment, further enhancing convenience.
Be described the ancillary equipment of the embodiment of the present invention below, its basic logical structure is with reference to figure 8, and embodiment of the present invention peripheral devices embodiment comprises:
First transmitting element 601 and binding unit 602;
First transmitting element 601, finds satisfied binding condition and the ancillary equipment that meets distance condition to make central apparatus according to facility information for the facility information of broadcasting ancillary equipment;
Binding unit 602, for binding with central apparatus.
In the present embodiment, the facility information that first transmitting element 601 broadcasts ancillary equipment finds satisfied binding condition and the ancillary equipment meeting distance condition to make central apparatus according to facility information, binding unit 602 is bound with central apparatus, such ancillary equipment makes central apparatus judge whether to meet distance condition and binding condition to determine that user wants the ancillary equipment controlled according to facility information by the facility information that the first transmitting element 601 is broadcasted, the physical distance achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding.
In order to better understand the above embodiments, be embodied as example below with central apparatus and ancillary equipment based on bluetooth, mutual between the modules that ancillary equipment comprises and unit is described the data interactive mode in ancillary equipment, refers to Fig. 9, comprising:
Second judging unit 701, the 3rd judging unit 702, the 3rd transmitting element 703, first transmitting element 704, second receiving element 705, communication unit 706, first receiving element 707, first judging unit 708, second transmitting element 709, binding unit 710, memory cell 711 and the 4th transmitting element 712;
Second judging unit 701 judges that whether the list of bindings in ancillary equipment is blank, if list of bindings is blank, then trigger the first transmitting element 704, if not blank, then trigger the 3rd judging unit 702, list of bindings is provided with in ancillary equipment, list of bindings is for storing the central apparatus bound, in actual applications, can store and can show the mark of central apparatus by only table, such as, when central apparatus is mobile phone, the IMEI of this mobile phone can be stored, also can centered by the MAC Address of Bluetooth chip in equipment, it can also be self-defining numbering, those skilled in the art can according to above-mentioned handset serial or self-defining numbering other information that can obviously know, do not limit herein,
When list of bindings is not blank, the 3rd judging unit 702 judges whether list of bindings is locking binding state, if non-locking binding state, then triggers the first transmitting element 704, if locking binding state, then triggers the 3rd transmitting element 703;
After the 3rd judging unit 702 judges that list of bindings is locking binding state, the central apparatus broadcasting equipment information that 3rd transmitting element 703 stores in list of bindings, in actual applications, when list of bindings is for locking binding state, the ancillary equipment that the central apparatus that stores in list of bindings could be corresponding with this list of bindings is only had to bind, the central apparatus of non-memory in list of bindings is the facility information that can't detect ancillary equipment broadcast corresponding to this list of bindings, the central apparatus stored in list of bindings can unlock the list of bindings of locking binding state, the central apparatus of non-memory in list of bindings can not unlock this list of bindings,
The facility information that first transmitting element 704 broadcasts ancillary equipment finds satisfied binding condition and the ancillary equipment meeting distance condition to make central apparatus according to facility information, in actual applications, first transmitting element 704 is to all central apparatus broadcasting equipment information, that is, any one opens bluetooth central apparatus all can detect the facility information that the first transmitting element 704 is broadcasted, wherein this facility information comprises the product type of ancillary equipment, the kind of ancillary equipment, one in the state of ancillary equipment and manufacturer or combine arbitrarily, in actual applications, ancillary equipment can be air-conditioning, the household electrical appliance such as the switch of lamp, for the switch of lamp, this facility information comprises: the product type of the switch of lamp, the state of switch (as, open, close), the kind of switch (as, one-way switch, variable connector and dimming switch), the production firm of the switch of lamp, those skilled in the art can according to the state of the said goods model or ancillary equipment other information that can obviously know, do not limit herein, it should be noted that, the ancillary equipment of the needs binding that central apparatus finds only has one, when being greater than the ancillary equipment of needs binding of one if find, central apparatus can inform the result that user finds, user can close the facility information of the broadcast of the equipment except needing the ancillary equipment of binding,
Second receiving element 705 central apparatus according to distance condition and binding conditional search to when being greater than the ancillary equipment of one, receive out code that user sends with the facility information of going off the air;
Communication unit 706 is connected with central apparatus, and in actual applications, central apparatus can send connection request message and be connected with ancillary equipment with request, and then communication unit 706 is connected with central apparatus;
After central apparatus is according to distance condition and binding conditional search to the ancillary equipment of required binding, first receiving element 707 receives the request binding message that central apparatus sends, and then the first receiving element 707 informs that the first judging unit 708 receives request binding message;
First judging unit 708 judges whether be greater than first threshold with central apparatus connection signal intensity, if be greater than first threshold, then trigger the second transmitting element 709, if be less than first threshold, then determine Bind Failed, in actual applications, when connection signal intensity equals first threshold, also can trigger the second transmitting element 709;
When being greater than first threshold, the confirmation that second transmitting element 709 sends connection signal intensity to central apparatus to inform that central apparatus is bound, in actual applications, this confirmation is for representing that ancillary equipment accepts the bind request of central apparatus, and then confirmation is forwarded to binding unit 710 by the second transmitting element 709;
After binding unit 710 receives the confirmation of the second transmitting element 709 transmission, binding unit 710 is bound with central apparatus, and informs that memory cell 711 executes bindings;
After memory cell 711 executes bindings, central apparatus is stored in list of bindings by memory cell 711, then list of bindings is locked, list of bindings is provided with in ancillary equipment, in actual applications, can store and can show the mark of central apparatus by only table, such as, when central apparatus is mobile phone, the IMEI of this mobile phone can be stored, also can centered by the MAC Address of Bluetooth chip in equipment, it can also be self-defining numbering, those skilled in the art can according to above-mentioned handset serial or self-defining numbering other information that can obviously know, do not limit herein,
4th transmitting element 712 sends binding open command to central apparatus, disconnect to make central apparatus binding according to binding open command and ancillary equipment, in actual applications, after user has controlled, by central apparatus away from pre-binding ancillary equipment, distance now between central apparatus and pre-binding ancillary equipment becomes greatly, and when the distance when between central apparatus and pre-binding ancillary equipment does not meet distance condition, pre-binding ancillary equipment can send binding open command.
In the present embodiment, ancillary equipment is by the second judging unit 701, 3rd judging unit 702 judges that whether list of bindings is blank and lock binding state, when list of bindings is in locking binding state, the central apparatus broadcasting equipment information that 3rd transmitting element 703 stores in list of bindings, central apparatus like this except storing in list of bindings, other central apparatus can not be bound with this ancillary equipment, can effectively prevent not clear central apparatus from adding binding like this, improve fail safe, the facility information of being broadcasted ancillary equipment again by the first transmitting element 704 finds satisfied binding condition and the ancillary equipment meeting distance condition to make central apparatus according to facility information, then ancillary equipment is confirmed whether as needing the central apparatus bound by the first judging unit 708 and the second transmitting element 709 further, and bound with central apparatus by binding unit 710 after validation, the physical distance achieved by furthering between ancillary equipment and central apparatus can complete binding procedure automatically, and then simply and efficiently can complete binding.
The above, 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 equivalent replacement is carried out 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 various embodiments of the present invention technical scheme.