CN105577688A - Binding method and apparatus based on Bluetooth device - Google Patents

Binding method and apparatus based on Bluetooth device Download PDF

Info

Publication number
CN105577688A
CN105577688A CN201610067798.0A CN201610067798A CN105577688A CN 105577688 A CN105577688 A CN 105577688A CN 201610067798 A CN201610067798 A CN 201610067798A CN 105577688 A CN105577688 A CN 105577688A
Authority
CN
China
Prior art keywords
module
white list
bluetooth
external equipment
judge module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610067798.0A
Other languages
Chinese (zh)
Other versions
CN105577688B (en
Inventor
陆舟
于华章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201610067798.0A priority Critical patent/CN105577688B/en
Publication of CN105577688A publication Critical patent/CN105577688A/en
Application granted granted Critical
Publication of CN105577688B publication Critical patent/CN105577688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a binding method and apparatus based on a Bluetooth device. The method comprises the steps that: S2, waiting for connection by an external Bluetooth device, judging whether receiving a connection request within a first preset time, if so, executing S3, otherwise, closing and ending; S3, analyzing the connection request, and obtaining device information; S4, judging whether a confirmation key is pressed within a fourth preset time, if so, executing S5, otherwise, returning connection refusal information, and returning to S2; S5, judging whether a white list is empty, if so, executing S6, otherwise, executing S7; S6, writing the obtained device information of a main Bluetooth device in the white list, returning connection reception information, and completing the connection; and S7, judging whether device information matched with the obtained device information exists in the white list, if so, returning the connection reception information and completing the connection, otherwise, returning the connection refusal information, and returning to S2.

Description

A kind of binding method based on bluetooth equipment and device
Technical field
The present invention relates to information security field, particularly relate to a kind of binding method based on bluetooth equipment and device.
Background technology
Bluetooth is that a kind of wireless short chain connects broadcast technology, can realize permanent plant, short-range data between mobile device and building personal area network exchanges.In prior art, bluetooth equipment is broadcasted in disclosed broadcasting channel with a kind of wireless signal, and other all bluetooth equipments all can find and initiate to connect, and causes bluetooth equipment to be connected by the bluetooth equipment of the unknown and uses, reduce the fail safe of bluetooth equipment.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of binding method based on bluetooth equipment and device are provided.
A kind of binding method based on bluetooth equipment provided by the invention, comprising:
Step S1: bluetooth external equipment power-up initializing;
Step S2: described bluetooth external equipment waits for that bluetooth master connects, judging whether the connection request receiving the transmission of described bluetooth master in the first Preset Time, is perform step S3, otherwise described bluetooth external equipment is closed, and terminates;
Step S3: described bluetooth external equipment is resolved described connection request, obtains the facility information of described bluetooth master;
Step S4: described bluetooth external equipment judges that whether acknowledgement key is pressed in the 4th Preset Time, is perform step S5, otherwise returns refusal link information to described bluetooth master, return step S2;
Step S5: described bluetooth external equipment judges whether white list is empty, is perform step S6, otherwise performs step S7;
Step S6: the facility information of the described bluetooth master got is write described white list by described bluetooth external equipment, returns to described bluetooth master and accepts link information, complete connection according to described facility information;
Step S7: described bluetooth external equipment judges whether there is the facility information mated with the facility information of the described bluetooth master got in described white list, return to described bluetooth master and accept link information, connection is completed according to described facility information, otherwise return refusal link information to described bluetooth master, return step S2.
The invention provides a kind of binding device based on bluetooth equipment, comprising: initialization module, the first judge module, receiver module, the second judge module, the first acquisition module, the 3rd judge module, memory module, the 4th judge module and sending module;
Described initialization module, for power-up initializing;
Described receiver module, for receiving the connection request that bluetooth master sends;
Described first judge module, for judging whether described receiver module receives the connection request of described bluetooth master transmission in the first Preset Time, if not, then closes bluetooth external equipment;
Described first acquisition module, during for judging that when described first judge module described receiver module receives the connection request of described bluetooth master transmission in the first Preset Time, the connection request that described receiver module receives is resolved, obtains the facility information of described bluetooth master;
Described second judge module, for judging whether acknowledgement key is pressed in the 4th Preset Time, if not, then triggering described first judge module and carrying out work;
Described 3rd judge module, for when described second judge module judges that acknowledgement key is pressed in the 4th Preset Time, judges whether white list is empty;
Described memory module, for judging that when described 3rd judge module described white list is for time empty, the facility information of the described bluetooth master got by described first acquisition module writes described white list;
Described 4th judge module, for judging described white list when described 3rd judge module not for time empty, judges whether there is the facility information mated with the facility information of the described bluetooth master got in described white list;
Described sending module, for when described second judge module judges that acknowledgement key is not pressed in the 4th Preset Time, then returns refusal link information to described bluetooth master; After described memory module work completes, return to described bluetooth master and accept link information; When described 4th judge module judges to there is the facility information mated with the facility information of the described bluetooth master got in described white list, return to described bluetooth master and accept link information; When described 4th judge module judges there is not the facility information mated with the facility information of the described bluetooth master got in described white list, return refusal link information to described bluetooth master.
The present invention compared with prior art, has the following advantages:
A kind of binding method based on bluetooth equipment provided by the invention and device; can be connected by specific bluetooth master with making bluetooth external equipment; prevent from the bluetooth equipment of other the unknowns from carrying out carrying out malice to bluetooth external equipment to connect, effectively protect the safe handling of bluetooth equipment.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of binding method based on bluetooth equipment that the embodiment of the present invention 1 provides;
Fig. 2 is the flow chart of the another kind that provides of the embodiment of the present invention 2 based on the binding method of bluetooth equipment;
Fig. 3 is another flow chart based on the binding method of bluetooth equipment that the embodiment of the present invention 3 provides;
Fig. 4 is the module map of a kind of binding device based on bluetooth equipment that the embodiment of the present invention 4 provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
Embodiments of the invention 1 provide a kind of binding method based on bluetooth equipment, as shown in Figure 1, comprising:
Step 101: bluetooth external equipment power-up initializing;
Step 102: bluetooth external equipment waits for that bluetooth master connects, and opens first timer;
Step 103: bluetooth external equipment judges that whether the timing of first timer is more than the first Preset Time, is that then bluetooth external equipment is closed, terminates; Otherwise perform step 104;
Such as, the first Preset Time is 60 seconds;
Step 104: bluetooth external equipment judges whether the connection request receiving bluetooth master transmission, is perform step 105, otherwise returns step 103;
Step 105: bluetooth external equipment is resolved connection request, obtains the facility information of bluetooth master;
Particularly, in the present embodiment, the facility information of bluetooth master can be the unique identification of bluetooth master, such as, and MAC Address or IMEI (InternationalMobileEquipmentIdentity, the international identification code of mobile device); Particularly, MAC Address is Medium/MediaAccessControl (media interviews control) address, or is called physical address, hardware address;
Such as, connection request is 0x01112233445566, and the MAC Address of the bluetooth master that bluetooth external equipment gets is 0x112233445566;
Step 106: bluetooth external equipment judges whether white list is empty, is perform step 107, otherwise performs step 108;
In the present embodiment, white list initial condition is empty;
Step 107: the facility information of the bluetooth master got is write white list by bluetooth external equipment, returns and accepts link information, complete connection according to facility information to bluetooth master;
Step 108: bluetooth external equipment judges whether there is the facility information mated with the facility information of the bluetooth master got in white list, return to bluetooth master and accept link information, connection is completed according to facility information, otherwise return refusal link information to bluetooth master, return step 102;
Such as, the MAC Address in white list is 0x665544332211, then there is not the MAC Address of mating with the MAC Address of the bluetooth master got in white list;
In the present embodiment, when bluetooth external equipment judges there is not the facility information mated with the facility information of the bluetooth master got in white list, also comprise:
Step 108-1: whether the display of bluetooth external equipment carries out the information connected, and opens second timer;
Step 108-2: bluetooth external equipment judges that whether the timing of second timer is more than the second Preset Time, is return refusal link information to bluetooth master, return step 102, otherwise perform step 108-3;
Such as, the second Preset Time is 3 minutes;
Step 108-3: bluetooth external equipment judges whether to receive user's confirmation, is perform step 108-4, otherwise returns step 108-2;
Such as, bluetooth external equipment judges whether for bluetooth external equipment, receiving user's confirmation can judge whether acknowledgement key is pressed, then step 108-3 can comprise:
Step 108-31: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 108-32, otherwise return step 108-2;
Step 108-32: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 108-4, otherwise returns refusal link information to bluetooth master, returns step 102;
Step 108-4: bluetooth external equipment is according to the facility information in the device information update white list of the bluetooth master got, and return to bluetooth master and accept link information, connection completes;
Such as, the MAC Address in the white list after renewal is 0x01112233445566;
In the present embodiment, can also comprise after bluetooth external equipment has connected:
Step 109: bluetooth external equipment judges whether the instruction receiving bluetooth master transmission, is perform corresponding operating, returns operating result to bluetooth master, return step 109, otherwise performs step 110;
Step 110: bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step 111, otherwise returns step 109;
Such as, default solution is tied up triggering and is comprised acknowledgement key and be long pressed; Bluetooth external equipment judges that the step whether acknowledgement key is long pressed comprises:
Step 110-1: bluetooth external equipment waits for user key-press;
Step 110-2: whether bluetooth external equipment detects acknowledgement key and be pressed, and is open the 3rd timer, performs step 110-3, otherwise returns step 110-1;
Step 110-3: bluetooth external equipment judges whether the timing of the 3rd timer reaches the 3rd Preset Time, is, determines that acknowledgement key is long pressed, otherwise perform step 110-4;
Such as, the 3rd Preset Time is 2 seconds;
Step 110-4: bluetooth external equipment judges whether acknowledgement key is pressed, and is, returns step 110-3, otherwise determines that acknowledgement key is not long pressed;
Step 111: bluetooth external equipment deletes the data in white list, returns step 109;
This step 111 can also comprise, and Explicit solutions ties up successful information.
In addition, can also comprise after bluetooth external equipment has connected:
Step 109 ': bluetooth external equipment judges whether the instruction receiving bluetooth master transmission, is perform step 110 ', otherwise return step 109 ';
Step 110 ': bluetooth external equipment is resolved the instruction received, and judges whether this instruction is that solution ties up instruction, is perform step 111 ', otherwise perform corresponding operating, return operating result to bluetooth master, return step 109 ';
Particularly, bluetooth external equipment obtains the data of the first character joint of the instruction received as instruction head, judges whether the instruction head got is the first preset data, is determine that this instruction is that solution ties up instruction, otherwise determine this instruction not for solution ties up instruction;
Such as, the instruction that bluetooth external equipment receives is 0xC000000000, and the first preset data is 0xC0, then bluetooth external equipment determines that this instruction is that solution ties up instruction;
Step 111 ': bluetooth external equipment removes the data in white list, returns solution and ties up successful information, return step 109 to bluetooth master ';
In addition, after in step 104, bluetooth external equipment judges not receive the connection request that bluetooth master sends, further comprising the steps of:
Step 104-1: bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step 104-2, otherwise returns step 103;
Such as, default solution is tied up triggering and is comprised acknowledgement key and be long pressed;
Step 104-2: bluetooth external equipment judges whether white list is empty, is return step 103, otherwise performs step 104-3;
When bluetooth external equipment judges that white list is as time empty, can also comprise and show non-binding information;
Step 104-3: bluetooth external equipment removes the data in white list, returns step 103;
When bluetooth external equipment judges white list not as time empty, Explicit solutions can also be comprised and tie up successful information;
In addition, facility information can also be preset by other interfaces in the white list of bluetooth external equipment, such as, when bluetooth external equipment judges the connection request not receiving bluetooth master transmission, perform following steps:
Step 112: bluetooth external equipment has judged whether other interface interrupt, is, performs step 113, otherwise returns step 103;
Particularly, other interface interrupt comprise USB enumerate interruption, audio interface interrupt or NFC interrupt;
Step 113: bluetooth external equipment is waited for and received the instruction of bluetooth master transmission, resolving, judging that whether this instruction is for arranging white list instruction to the instruction received, perform step 114, otherwise execution corresponding operating, returns operating result to bluetooth master, returns step 113;
Particularly, bluetooth external equipment obtains the data of the first character joint of the instruction received as instruction head, judge whether the instruction head got is the second preset data, is determine that this instruction is for arranging white list instruction, otherwise determine this instruction not for arranging white list instruction; Such as, the second preset data is 0xC1;
Such as, the instruction that bluetooth external equipment receives is 0xC100000006112233445566, then bluetooth external equipment determines that this instruction is for arranging white list instruction;
Step 114: bluetooth external equipment obtains the facility information arranged in white list instruction, by the facility information write white list got, returns to bluetooth master and arranges successful information, return step 113;
Such as, the MAC Address in the white list be provided with is 0x01112233445566;
A kind of binding method based on bluetooth equipment provided in the present embodiment; can be connected by specific bluetooth master with making bluetooth external equipment; prevent from the bluetooth equipment of other the unknowns from carrying out carrying out malice to bluetooth external equipment to connect, effectively protect the safe handling of bluetooth equipment.
Embodiment 2
Embodiments of the invention 2 provide a kind of binding method based on bluetooth equipment, as shown in Figure 2, comprising:
Step 201: bluetooth external equipment power-up initializing;
Step 202: bluetooth external equipment waits for that bluetooth master connects, and opens first timer;
Step 203: bluetooth external equipment judges that whether the timing of first timer is more than the first Preset Time, is that then bluetooth external equipment is closed, terminates; Otherwise perform step 204;
Such as, the first Preset Time is 60 seconds;
Step 204: bluetooth external equipment judges whether the connection request receiving bluetooth master transmission, is perform step 205, otherwise returns step 203;
Step 205: bluetooth external equipment is resolved connection request, obtains the MAC Address of bluetooth master;
Such as, connection request is 0x01112233445566, and the MAC Address of the bluetooth master that bluetooth external equipment gets is 0x112233445566;
Can also comprise after this step:
Step 205-1: bluetooth external equipment opens second timer;
Step 205-2: bluetooth external equipment judges that whether the timing of second timer is more than the 4th Preset Time, is that then bluetooth external equipment is closed, terminates, otherwise perform step 205-3;
Step 205-3: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 205-4, otherwise return step 205-2;
Step 205-4: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 206, otherwise returns refusal link information to bluetooth master, returns step 202;
Step 205 can also comprise: bluetooth external equipment is resolved connection request, obtains the device name of bluetooth master;
Step 205-1 also comprises: bluetooth external equipment display device title;
Step 206: bluetooth external equipment obtains white list mark, judging that white list identifies whether set, is perform step 207, otherwise execution step 210;
Particularly, the initial condition of white list mark is for resetting;
Step 207: bluetooth external equipment judges whether white list is empty, is perform step 208, otherwise performs step 209;
Step 208: the MAC Address of the bluetooth master got is write white list by bluetooth external equipment, and return to bluetooth master and accept link information, connection completes;
Step 209: bluetooth external equipment judges whether there is the MAC Address of mating with the MAC Address of the bluetooth master got in white list, return to bluetooth master and accept link information, connection completes, otherwise returns refusal link information to bluetooth master, returns step 202;
Such as, the MAC Address in white list is 0x665544332211, then there is not the MAC Address of mating with the MAC Address of the bluetooth master got in white list;
In the present embodiment, when bluetooth external equipment judges there is not the MAC Address of mating with the MAC Address of the bluetooth master got in white list, also comprise:
Step 209-1: whether the display of bluetooth external equipment carries out the information connected, and opens the 3rd timer;
Step 209-2: bluetooth external equipment judges that whether the timing of the 3rd timer is more than the second Preset Time, is return refusal link information to bluetooth master, return step 202, otherwise perform step 209-3;
Step 209-3: bluetooth external equipment judges whether to receive user's confirmation, is perform step 209-4, otherwise returns step 209-2;
Such as, bluetooth external equipment judges whether for bluetooth external equipment, receiving user's confirmation can judge whether acknowledgement key is pressed, then step 209-3 can comprise:
Step 209-31: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 209-32, otherwise return step 209-2;
Step 209-32: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 209-4, otherwise returns refusal link information to bluetooth master, returns step 202;
Step 209-4: bluetooth external equipment upgrades the MAC Address in white list according to the MAC Address of the bluetooth master got, and return to bluetooth master and accept link information, connection completes;
Step 210: whether the display of bluetooth external equipment carries out the information of binding, and opens the 4th timer;
Step 211: bluetooth external equipment judges that whether the timing of the 4th timer is more than the 4th Preset Time, is that then bluetooth external equipment is closed, terminates, otherwise perform step 212;
Such as, the 4th Preset Time is 3 minutes;
Step 212: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 213, otherwise return step 211;
Step 213: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 214, otherwise return to bluetooth master and accept link information, connection completes;
Step 214: white list is identified set by bluetooth external equipment, the MAC Address of the bluetooth master got is write white list, and return to bluetooth master and accept link information, connection completes;
Such as, the MAC Address in white list is 0x01112233445566;
In the present embodiment, can also comprise after bluetooth external equipment has connected:
Step 215: bluetooth external equipment judges whether the instruction receiving bluetooth master transmission, is perform corresponding operating, returns operating result to bluetooth master, return step 215, otherwise performs step 216;
Step 216: bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step 217, otherwise returns step 215;
Particularly, default solution is tied up triggering and is comprised acknowledgement key and be long pressed;
Step 217: bluetooth external equipment removes the data in white list, returns step 215;
This step can also comprise, and Explicit solutions ties up successful information.
In addition, can also comprise after bluetooth external equipment has connected:
Step 215 ': bluetooth external equipment judges whether the instruction receiving bluetooth master transmission, is perform step 216 ', otherwise return step 215 ';
Step 216 ': bluetooth external equipment is resolved the instruction received, and judges whether this instruction is that solution ties up instruction, is perform step 217 ', otherwise perform corresponding operating, return operating result to bluetooth master, return step 215 ';
Step 217 ': bluetooth external equipment removes the data in white list, returns solution and ties up successful information, return step 215 to bluetooth master ';
In addition, after in step 204, bluetooth external equipment judges not receive the connection request that bluetooth master sends, further comprising the steps of:
Step 204-1: bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step 204-2, otherwise returns step 203;
Particularly, default solution is tied up triggering and is comprised acknowledgement key and be long pressed;
Step 204-2: bluetooth external equipment judges whether white list is empty, is return step 203, otherwise performs step 204-3;
When bluetooth external equipment judges that white list is as time empty, can also comprise and show non-binding information;
Step 204-3: bluetooth external equipment removes the data in white list, returns step 203;
When bluetooth external equipment judges white list not as time empty, Explicit solutions can also be comprised and tie up successful information;
A kind of binding method based on bluetooth equipment provided in the present embodiment; can be connected by specific bluetooth master with making bluetooth external equipment; prevent from the bluetooth equipment of other the unknowns from carrying out carrying out malice to bluetooth external equipment to connect, effectively protect the safe handling of bluetooth equipment.
Embodiment 3
Embodiments of the invention 3 provide a kind of binding method based on bluetooth equipment, as shown in Figure 3, comprising:
Step 301: bluetooth external equipment power-up initializing;
Step 302: bluetooth external equipment waits for that bluetooth master connects, and opens first timer;
Step 303: bluetooth external equipment judges that whether the timing of first timer is more than the first Preset Time, is that then bluetooth external equipment is closed, terminates; Otherwise perform step 304;
Such as, the first Preset Time is 60 seconds;
Step 304: bluetooth external equipment judges whether the connection request receiving bluetooth master transmission, is perform step 305, otherwise returns step 303;
Step 305: bluetooth external equipment is resolved connection request, obtains the MAC Address of bluetooth master;
Such as, connection request is 0x01112233445566, and the MAC Address of the bluetooth master that bluetooth external equipment gets is 0x112233445566;
Step 306: bluetooth external equipment obtains white list mark, judging that white list identifies whether set, is perform step 307, otherwise execution step 312;
Particularly, the initial condition of white list mark is for resetting;
Step 307: bluetooth external equipment judges whether white list is empty, is perform step 308, otherwise performs step 309;
In the present embodiment, white list initial condition is empty;
Step 308: the MAC Address of the bluetooth master got is write white list by bluetooth external equipment, and upgrade white list number of addresses, return to bluetooth master and accept link information, connection completes;
Particularly, white list number of addresses initial value is 0;
Step 309: bluetooth external equipment judges whether there is the MAC Address of mating with the MAC Address of the bluetooth master got in white list, be, return to bluetooth master and accept link information, connection completes, otherwise perform step 310;
Step 310: bluetooth external equipment, according to the data length in white list, judges whether white list number of addresses reaches white list maximum quantity, is, returns refusal link information, return step 302 to bluetooth master; Otherwise perform step 311;
Such as, white list maximum quantity is 4, and white list is 0x110000000000220000000000330000000000440000000000, and white list data length is 24 bytes, then determine that white list number of addresses reaches white list maximum quantity;
In the present embodiment, when bluetooth external equipment judges there is not the MAC Address of mating with the MAC Address of the bluetooth master got in white list, and when white list number of addresses reaches white list maximum quantity, can also comprise:
Step 310-1: whether the display of bluetooth external equipment carries out the information connected, and opens second timer;
Step 310-2: bluetooth external equipment judges that whether the timing of second timer is more than the second Preset Time, is return refusal link information to bluetooth master, return step 302, otherwise perform step 310-3;
Step 310-3: bluetooth external equipment judges whether to receive user's confirmation, is perform step 310-4, otherwise returns step 310-2;
Such as, bluetooth external equipment judges whether for bluetooth external equipment, receiving user's confirmation can judge whether acknowledgement key is pressed, then step 310-3 can comprise:
Step 310-31: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 310-32, otherwise return step 310-2;
Step 310-32: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 310-4, otherwise returns refusal link information to bluetooth master, returns step 302;
Step 310-4: bluetooth external equipment according to the MAC Address of the bluetooth master got upgrade in white list the earliest stored in MAC Address, return to bluetooth master and accept link information, connection completes;
Particularly, bluetooth external equipment according to the MAC Address of the bluetooth master got upgrade in white list the earliest stored in MAC Address, can be: bluetooth external equipment deletes first MAC Address in white list, other MAC Address in white list are moved forward successively, the MAC Address of the bluetooth master got is stored sequentially in white list;
Such as, the white list before renewal is 0x110000000000220000000000330000000000440000000000, and the white list after renewal is 0x220000000000330000000000440000000000112233445566;
Step 311: the MAC Address of the bluetooth master got is sequentially written in white list by bluetooth external equipment, upgrade white list number of addresses, return to bluetooth master and accept link information, connection completes;
Such as, the white list before renewal is 0x110000000000220000000000330000000000, and the white list after renewal is 0x110000000000220000000000330000000000112233445566;
Step 312: whether the display of bluetooth external equipment carries out the information of binding, and opens the 3rd timer;
Step 313: bluetooth external equipment judges that whether the timing of the 3rd timer is more than the 4th Preset Time, is that then bluetooth external equipment is closed, terminates, otherwise perform step 314;
Step 314: bluetooth external equipment judges whether acknowledgement key or cancel key are pressed, and are perform step 315, otherwise return step 313;
Step 315: bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs step 316, otherwise return to bluetooth master and accept link information, connection completes;
Step 316: white list is identified set by bluetooth external equipment, the MAC Address of the bluetooth master got is write white list, and return to bluetooth master and accept link information, connection completes;
In addition, MAC Address can also be preset by other interfaces in the white list of bluetooth external equipment, such as, when bluetooth external equipment judges the connection request not receiving bluetooth master transmission, perform following steps:
Step 317: bluetooth external equipment has judged whether other interface interrupt, is, performs step 318, otherwise returns step 303;
Particularly, other interface interrupt comprise USB enumerate interruption, audio interface interrupt or NFC interrupt;
Step 318: bluetooth external equipment is waited for and received the instruction of bluetooth master transmission, resolving, judging that whether this instruction is for arranging white list instruction to the instruction received, perform step 319, otherwise execution corresponding operating, returns operating result to bluetooth master, returns step 318;
Step 319: bluetooth external equipment obtains the MAC Address arranged in white list instruction, by the MAC Address write white list got, returns to bluetooth master and arranges successful information, return step 318;
In the present embodiment, can also comprise before this step: bluetooth external equipment obtains the number of addresses arranged in white list instruction, judge whether the number of addresses got exceedes white list maximum quantity, is return to bluetooth master and arrange error message, return step 318; Otherwise perform step 319;
Such as, arranging white list instruction is: 0xC20000000C11223344556677889900AABB, bluetooth external equipment obtains the data of low 4 of the first character joint arranging white list instruction as number of addresses, namely number of addresses is 2, the number of addresses then got does not exceed white list maximum quantity, and the white list be provided with is 0x11223344556677889900AABB;
In addition, can also comprise before this step: bluetooth external equipment obtains the MAC Address total length arranged in white list instruction, judge whether the MAC Address total length got exceedes preset length, is return to bluetooth master and arrange error message, return step 318; Otherwise perform step 319;
Such as, preset length is 24 bytes, arranging white list instruction is: 0xC20000000C11223344556677889900AABB, the acquisition of bluetooth external equipment arranges the data of second byte of white list instruction as MAC Address total length, namely MAC Address total length is 0x0C, the MAC Address total length then got does not exceed preset length, and the white list be provided with is 0x11223344556677889900AABB;
In the present embodiment, can also comprise after bluetooth external equipment has connected:
Step 401: bluetooth external equipment is waited for and received the instruction of bluetooth master transmission;
Step 402: bluetooth external equipment is resolved the instruction received, decision instruction type, if check instruction then perform step 403, if other instructions then perform corresponding operating according to instruction, return operating result by blue tooth interface to bluetooth master, return step 401;
Step 403: bluetooth external equipment is resolved the message checked in instruction, obtains Transaction Information, the Transaction Information obtained is resolved in display;
Step 404: bluetooth external equipment is waited for and received user key-press, judges user key-press type, if acknowledgement key then performs step 405, if cancel key then performs step 406;
Step 405: the message that bluetooth external equipment is checked in instruction according to the double secret key of self is signed, returns signature result by blue tooth interface to bluetooth master, returns step 401;
Step 406: bluetooth external equipment returns cancellation information by blue tooth interface to bluetooth master, returns step 401.
Embodiment 4
Embodiments of the invention 4 provide a kind of binding device based on bluetooth equipment, as shown in Figure 4, comprising: initialization module 501, first judge module 502, receiver module 503, first acquisition module 504, second judge module 505, the 3rd judge module 506, memory module 507, the 4th judge module 508 and sending module 509;
Initialization module 501, for power-up initializing;
First judge module 502, for judging whether receiver module 503 receives the connection request of bluetooth master transmission in the first Preset Time, if not, then closes bluetooth external equipment;
Receiver module 503, for receiving the connection request that bluetooth master sends;
First acquisition module 504, during for judging that when the first judge module 502 receiver module 503 receives the connection request of bluetooth master transmission in the first Preset Time, the connection request that receiver module 503 receives is resolved, obtains the facility information of bluetooth master;
Second judge module 505, for judging whether acknowledgement key is pressed in the 4th Preset Time, if not, then triggers the first judge module 502 and carries out work;
3rd judge module 506, for when the second judge module 505 judges that acknowledgement key is pressed in the 4th Preset Time, judges whether white list is empty;
Memory module 507, for when the 3rd judge module 506 judges that white list is sky, the facility information write white list of the bluetooth master that the first acquisition module 504 is got;
4th judge module 508, for judging white list when the 3rd judge module 506 not for time empty, judges whether there is the facility information mated with the facility information of the bluetooth master got in white list;
Sending module 509, for when the second judge module 505 judges that acknowledgement key is not pressed in the 4th Preset Time, then returns refusal link information to bluetooth master; After memory module 507 has worked, return to bluetooth master and accepted link information; When the 4th judge module 508 judges to there is the facility information mated with the facility information of the bluetooth master got in white list, return to bluetooth master and accept link information; When the 4th judge module 508 judges there is not the facility information mated with the facility information of the bluetooth master got in white list, return refusal link information to bluetooth master.
Binding device also comprises: first detection module, the 5th judge module and first remove module;
First detection module, during for judging that when the first judge module 502 receiver module 503 does not receive the connection request of bluetooth master transmission in the first Preset Time, button is detected, judges whether that receiving default solution ties up triggering, otherwise triggering the first judge module 502 carries out work;
5th judge module, for receive when first detection module default solution tie up triggering time, judging that whether white list is empty, is trigger the first judge module 502 and carry out work;
First removes module, for judging white list when the 5th judge module not as time empty, removing the data in white list, triggering the first judge module 502 and carry out work.
Binding device also comprises: the 6th judge module, the 7th judge module and the second acquisition module;
6th judge module, during for judging that when the first judge module 502 receiver module 503 does not receive the connection request of bluetooth master transmission in the first Preset Time, has judged whether other interface interrupt, otherwise triggering the first judge module 502 carries out work;
Receiver module 503, time also for judging there are other interface interrupt when the 6th judge module, receives the instruction that bluetooth master sends;
7th judge module, resolves for the instruction received receiver module 503, and decision instruction whether for arranging white list instruction, otherwise performs corresponding operating;
Second acquisition module, for obtaining the facility information arranged in white list instruction;
Memory module 507, the facility information also for the bluetooth master got by the second acquisition module writes white list;
Sending module 509, also for returning the operating result of the 7th judge module to bluetooth master, after memory module 507 has worked, has returned to bluetooth master and has arranged successful information.
Binding device also comprises the 8th judge module, for obtaining the facility information quantity arranged in white list instruction, judge whether the facility information quantity got exceedes white list maximum quantity, otherwise triggering the second acquisition module carries out work;
Sending module 509, also for when the 8th judge module judges that the facility information quantity got exceedes white list maximum quantity, returns to bluetooth master and arranges error message.
Binding device also comprises the 9th judge module, for obtaining the facility information total length arranged in white list instruction, judge whether the facility information total length got exceedes preset length, otherwise triggering the second acquisition module carries out work;
Sending module 509, also for when the 9th judge module judges that the facility information total length got exceedes preset length, returns to bluetooth master and arranges error message.
First acquisition module 504, also for resolving connection request, obtains the device name of bluetooth master;
Second judge module 505, also for showing the device name that the first acquisition module 504 gets.
Binding device also comprises: the tenth judge module, the first display module, the 11 judge module, the 12 judge module and set module;
Tenth judge module, for obtaining white list mark, judging that white list identifies whether set, is trigger the 3rd judge module 506 and carry out work;
First display module, for when the tenth judge module judges that white list identifies non-set, whether display carries out the information of binding;
11 judge module, for judging whether acknowledgement key or cancel key are pressed in the 4th Preset Time, if not, then closes bluetooth external equipment;
12 judge module, for when the 11 judge module judges that acknowledgement key or cancel key are pressed, judges whether acknowledgement key is pressed, and is, triggers memory module 507 and carries out work;
Sending module 509, also for when the 12 judge module judges that acknowledgement key is not pressed, returns to bluetooth master and accepts link information; Also for when the 12 judge module judges that acknowledgement key is pressed, return to bluetooth master and accept link information;
Set module, for when the 12 judge module judges that acknowledgement key is pressed, identifies set by white list.
Binding device also comprises: the second display module, the 13 judge module and the first update module;
Second display module, during for judging there is not the facility information mated with the facility information of the bluetooth master got in white list when the 4th judge module 508, whether display carries out the information connected;
13 judge module, receives user's confirmation for judging whether in the second Preset Time;
Sending module 509, time also for judging when the 13 judge module not receive user's confirmation in the second Preset Time, returns refusal link information to bluetooth master;
First update module, during for judging to receive user's confirmation in the second Preset Time when the 13 judge module, the facility information in the device information update white list of the bluetooth master got according to the first acquisition module 504;
Sending module 509, also for when the 13 judge module is judged to receive user's confirmation, returns to bluetooth master and accepts link information.
Binding device also comprises: the second update module and the 14 judge module;
Second update module, for after memory module 507 has worked, has upgraded white list facility information quantity;
14 judge module, during for judging there is not the facility information mated with the facility information of the bluetooth master got in white list when the 4th judge module 508, according to the data length in white list, judge whether white list facility information quantity reaches white list maximum quantity;
Memory module 507, also for when the 14 judge module judges that white list facility information quantity does not reach white list maximum quantity, is sequentially written in white list by the facility information of the bluetooth master got;
Sending module 509, also for when the 14 judge module judges that white list facility information quantity reaches white list maximum quantity, returns refusal link information to bluetooth master.
Binding device also comprises: the 3rd display module, the 15 judge module and the 3rd update module;
3rd display module, for when the 14 judge module judges that white list facility information quantity reaches white list maximum quantity, whether display carries out the information connected;
15 judge module, receives user's confirmation for judging whether in the second Preset Time;
Sending module 509, time also for judging not receive user's confirmation in the second Preset Time when the 15 judge module, returns refusal link information to bluetooth master
3rd update module, during for judging to receive user's confirmation in the second Preset Time when the 15 judge module, according in the device information update white list of the bluetooth master got the earliest stored in facility information;
Sending module 509, time also for judging to receive user's confirmation in the second Preset Time when the 15 judge module, returning to bluetooth master and accepting link information.
Binding device also comprises: the 16 judge module, the second detection module and second remove module;
Receiver module 503, also for receiving the instruction that bluetooth master sends after completing connection according to facility information;
16 judge module, for judging whether receiver module 503 receives the instruction of bluetooth master transmission, is perform corresponding operating, returns operating result to bluetooth master;
Sending module 509, also for returning the operating result of the 16 judge module to bluetooth master;
Second detection module, during for judging that when the 16 judge module receiver module 503 does not receive the instruction of bluetooth master transmission, detecting button, judging whether that receiving default solution ties up triggering, otherwise triggering the 16 judge module carries out work;
Second remove module, for receive when the second detection module default solution tie up triggering time, removing white list in data.
Binding device also comprises: the 17 judge module, the 18 judge module and the 3rd remove module;
Receiver module 503, also for receiving the instruction that bluetooth master sends after completing connection according to facility information;
17 judge module, for judging whether receiver module 503 receives the instruction of bluetooth master transmission;
18 judge module, during for judging that when the 17 judge module receiver module 503 receives the instruction of bluetooth master transmission, the instruction received being resolved, judges whether this instruction is that solution ties up instruction, otherwise execution corresponding operating, returns operating result to bluetooth master;
Sending module 509, also for returning the operating result of the 18 judge module to bluetooth master;
3rd remove module, for judge when the 18 judge module instruction be solution tie up instruction time, removing white list in data;
Sending module 509, also for after the 3rd removing module is finished the work, returns solution to bluetooth master and ties up successful information.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (24)

1. based on a binding method for bluetooth equipment, it is characterized in that, described method comprises:
Step S1: bluetooth external equipment power-up initializing;
Step S2: described bluetooth external equipment waits for that bluetooth master connects, judging whether the connection request receiving the transmission of described bluetooth master in the first Preset Time, is perform step S3, otherwise described bluetooth external equipment is closed, and terminates;
Step S3: described bluetooth external equipment is resolved described connection request, obtains the facility information of described bluetooth master;
Step S4: described bluetooth external equipment judges that whether acknowledgement key is pressed in the 4th Preset Time, is perform step S5, otherwise returns refusal link information to described bluetooth master, return step S2;
Step S5: described bluetooth external equipment judges whether white list is empty, is perform step S6, otherwise performs step S7;
Step S6: the facility information of the described bluetooth master got is write described white list by described bluetooth external equipment, returns to described bluetooth master and accepts link information, complete connection according to described facility information;
Step S7: described bluetooth external equipment judges whether there is the facility information mated with the facility information of the described bluetooth master got in described white list, return to described bluetooth master and accept link information, connection is completed according to described facility information, otherwise return refusal link information to described bluetooth master, return step S2.
2. method according to claim 1, is characterized in that, when described bluetooth external equipment judges the connection request not receiving the transmission of described bluetooth master in the first Preset Time, also comprises:
Step S2-1: described bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step S2-2, otherwise returns step S2;
Step S2-2: described bluetooth external equipment judges whether described white list is empty, is return step S2, otherwise performs step S2-3;
Step S2-3: described bluetooth external equipment removes the data in described white list, returns step S2.
3. method according to claim 1, is characterized in that, when described bluetooth external equipment judges the connection request not receiving the transmission of described bluetooth master in the first Preset Time, also comprises:
Step S12: described bluetooth external equipment has judged whether other interface interrupt, is perform step S13, otherwise returns step S2;
Step S13: described bluetooth external equipment is waited for and received the instruction of described bluetooth master transmission, the instruction received is resolved, judge that whether described instruction is for arranging white list instruction, perform step S14, otherwise execution corresponding operating, return operating result to described bluetooth master, return step S13;
Step S14: described bluetooth external equipment obtains the described facility information arranged in white list instruction, by the facility information write white list got, returns to described bluetooth master and arranges successful information, return step S13.
4. method according to claim 3, it is characterized in that, also comprise before described step S14: described bluetooth external equipment obtains the described facility information quantity arranged in white list instruction, judge whether the facility information quantity got exceedes white list maximum quantity, return to described bluetooth master and error message is set, return step S13; Otherwise perform step S14.
5. method according to claim 3, it is characterized in that, also comprise before described step S14: described bluetooth external equipment obtains the described facility information total length arranged in white list instruction, judge whether the facility information total length got exceedes preset length, return to described bluetooth master and error message is set, return step S13; Otherwise perform step S14.
6. method according to claim 1, is characterized in that, described step S3 also comprises: described bluetooth external equipment is resolved described connection request, obtains the device name of described bluetooth master;
Described step S4 also comprises: described bluetooth external equipment shows described device name.
7. method according to claim 1, is characterized in that, comprises before described step S5:
Steps A 1: described bluetooth external equipment obtains white list mark, judges that described white list identifies whether set, is perform step S5, otherwise performs steps A 2;
Steps A 2: whether described bluetooth external equipment display carries out the information of binding;
Steps A 3: described bluetooth external equipment judges whether acknowledgement key or cancel key are pressed in the 4th Preset Time, is perform steps A 4, otherwise described bluetooth external equipment is closed, and terminates;
Steps A 4: described bluetooth external equipment judges whether acknowledgement key is pressed, and is, performs steps A 5, otherwise return to described bluetooth master and accept link information, complete connection according to described facility information;
Steps A 5: described bluetooth external equipment, by the set of described white list mark, by the facility information of the described bluetooth master got write white list, returns to described bluetooth master and accepts link information, complete connection according to described facility information.
8. method according to claim 1, is characterized in that, when described bluetooth external equipment judges there is not the facility information mated with the facility information of the described bluetooth master got in described white list, also comprises:
Step S7-1: whether described bluetooth external equipment display carries out the information connected;
Step S7-2: described bluetooth external equipment judges whether, in the second Preset Time, to receive user's confirmation, be, perform step S7-3, otherwise returns refusal link information to described bluetooth master, returns step S2;
Step S7-3: described bluetooth external equipment, according to the facility information in the device information update white list of the bluetooth master got, returns to described bluetooth master and accepts link information, complete connection according to described facility information.
9. method according to claim 1, is characterized in that, described step S6 also comprises: described bluetooth external equipment upgrades white list facility information quantity;
When described bluetooth external equipment judges there is not the facility information mated with the facility information of the described bluetooth master got in described white list, also comprise:
Step B1: described bluetooth external equipment, according to the data length in described white list, judges whether described white list facility information quantity reaches white list maximum quantity, is return refusal link information to described bluetooth master, return step S2; Otherwise perform step B2;
Step B2: the facility information of the described bluetooth master got is sequentially written in described white list by described bluetooth external equipment, upgrade described white list facility information quantity, return to described bluetooth master and accept link information, complete connection according to described facility information.
10. method according to claim 9, is characterized in that, described when bluetooth external equipment judges that described white list facility information quantity reaches white list maximum quantity, can also comprise:
Step B1-1: whether described bluetooth external equipment display carries out the information connected;
Step B1-2: described bluetooth external equipment judges whether to receive user's confirmation in the second Preset Time, is perform step B1-3, otherwise returns refusal link information to bluetooth master, return step S2;
Step B1-3: described bluetooth external equipment according to described in white list described in the device information update of bluetooth master that gets the earliest stored in facility information, return to described bluetooth master and accept link information, complete connection according to described facility information.
11. methods according to claim 1, is characterized in that, described bluetooth external equipment also comprises after completing connection:
Step S9: described bluetooth external equipment judges whether the instruction receiving the transmission of described bluetooth master, is perform corresponding operating, returns operating result, return step S9 to described bluetooth master, otherwise performs step S10;
Step S10: described bluetooth external equipment detects button, judges whether that receiving default solution ties up triggering, is perform step S11, otherwise returns step S9;
Step S11: described bluetooth external equipment removes the data in described white list, returns step S9.
12. methods according to claim 1, is characterized in that, described bluetooth external equipment also comprises after completing connection:
Step S9 ': described bluetooth external equipment judges whether the instruction receiving the transmission of described bluetooth master, is perform step S10 ', otherwise returns step S9 ';
Step S10 ': described bluetooth external equipment is resolved the instruction received, judges whether described instruction is that solution ties up instruction, is perform step S11 ', otherwise performs corresponding operating, returns operating result, return step S9 ' to described bluetooth master;
Step S11 ': described bluetooth external equipment removes the data in described white list, returns solution and ties up successful information, return step S9 ' to described bluetooth master.
13. 1 kinds of binding devices based on bluetooth equipment, it is characterized in that, described device comprises: initialization module, the first judge module, receiver module, the second judge module, the first acquisition module, the 3rd judge module, memory module, the 4th judge module and sending module;
Described initialization module, for power-up initializing;
Described receiver module, for receiving the connection request that bluetooth master sends;
Described first judge module, for judging whether described receiver module receives the connection request of described bluetooth master transmission in the first Preset Time, if not, then closes bluetooth external equipment;
Described first acquisition module, during for judging that when described first judge module described receiver module receives the connection request of described bluetooth master transmission in the first Preset Time, the connection request that described receiver module receives is resolved, obtains the facility information of described bluetooth master;
Described second judge module, for judging whether acknowledgement key is pressed in the 4th Preset Time, if not, then triggering described first judge module and carrying out work;
Described 3rd judge module, for when described second judge module judges that acknowledgement key is pressed in the 4th Preset Time, judges whether white list is empty;
Described memory module, for judging that when described 3rd judge module described white list is for time empty, the facility information of the described bluetooth master got by described first acquisition module writes described white list;
Described 4th judge module, for judging described white list when described 3rd judge module not for time empty, judges whether there is the facility information mated with the facility information of the described bluetooth master got in described white list;
Described sending module, for when described second judge module judges that acknowledgement key is not pressed in the 4th Preset Time, then returns refusal link information to described bluetooth master; After described memory module work completes, return to described bluetooth master and accept link information; When described 4th judge module judges to there is the facility information mated with the facility information of the described bluetooth master got in described white list, return to described bluetooth master and accept link information; When described 4th judge module judges there is not the facility information mated with the facility information of the described bluetooth master got in described white list, return refusal link information to described bluetooth master.
14. devices according to claim 13, is characterized in that, described device also comprises: first detection module, the 5th judge module and first remove module;
Described first detection module, during for judging that when described first judge module described receiver module does not receive the connection request of described bluetooth master transmission in the first Preset Time, button is detected, judge whether that receiving default solution ties up triggering, otherwise trigger described first judge module and carry out work;
Described 5th judge module, for receive when described first detection module default solution tie up triggering time, judging that whether described white list is empty, is trigger described first judge module and carry out work;
Described first removes module, for judging white list when described 5th judge module not as time empty, removing the data in white list, triggering described first judge module and carry out work.
15. devices according to claim 13, is characterized in that, described device also comprises: the 6th judge module, the 7th judge module and the second acquisition module;
Described 6th judge module, during for judging that when described first judge module described receiver module does not receive the connection request of described bluetooth master transmission in the first Preset Time, judge whether other interface interrupt, otherwise triggered described first judge module and carry out work;
Described receiver module, also for when described 6th judge module judges there are other interface interrupt, receives the instruction that described bluetooth master sends;
Described 7th judge module, resolves for the instruction received described receiver module, judges that whether described instruction is for arranging white list instruction, otherwise performs corresponding operating;
Described second acquisition module, for obtaining the described facility information arranged in white list instruction;
Described memory module, the facility information also for the described bluetooth master got by described second acquisition module writes described white list;
Described sending module, also for returning the operating result of described 7th judge module to described bluetooth master, returns arrange successful information when described memory module work completes backward described bluetooth master.
16. devices according to claim 15, it is characterized in that, described device also comprises the 8th judge module, for obtaining the described facility information quantity arranged in white list instruction, judge whether the facility information quantity that gets exceedes white list maximum quantity, otherwise trigger described second acquisition module and carry out work;
Described sending module, also for when described 8th judge module judges that the facility information quantity got exceedes white list maximum quantity, returns to described bluetooth master and arranges error message.
17. devices according to claim 15, it is characterized in that, described device also comprises the 9th judge module, for obtaining the described facility information total length arranged in white list instruction, judge whether the facility information total length that gets exceedes preset length, otherwise trigger described second acquisition module and carry out work;
Described sending module, also for when described 9th judge module judges that the facility information total length got exceedes preset length, returns to described bluetooth master and arranges error message.
18. devices according to claim 13, is characterized in that, described first acquisition module, also for resolving described connection request, obtain the device name of described bluetooth master;
Described second judge module, also for showing the described device name that described first acquisition module gets.
19. devices according to claim 13, is characterized in that, described device also comprises: the tenth judge module, the first display module, the 11 judge module, the 12 judge module and set module;
Described tenth judge module, for obtaining white list mark, judging that described white list identifies whether set, is trigger described 3rd judge module and carry out work;
Described first display module, for when described tenth judge module judges that white list identifies non-set, whether display carries out the information of binding;
Described 11 judge module, for judging whether acknowledgement key or cancel key are pressed in the 4th Preset Time, if not, then closes described bluetooth external equipment;
Described 12 judge module, for when described 11 judge module judges that acknowledgement key or cancel key are pressed, judges whether acknowledgement key is pressed, and is, triggers described memory module and carry out work;
Described sending module, also for when described 12 judge module judges that acknowledgement key is not pressed, returns to bluetooth master and accepts link information; Also for when described 12 judge module judges that acknowledgement key is pressed, return to described bluetooth master and accept link information;
Described set module, for when described 12 judge module judges that acknowledgement key is pressed, identifies set by white list.
20. devices according to claim 13, is characterized in that, described device also comprises: the second display module, the 13 judge module and the first update module;
Described second display module, during for judging there is not the facility information mated with the facility information of the described bluetooth master got in described white list when described 4th judge module, whether display carries out the information connected;
Described 13 judge module, receives user's confirmation for judging whether in the second Preset Time;
Described sending module, time also for judging not receive user's confirmation in the second Preset Time when described 13 judge module, returns refusal link information to described bluetooth master;
Described first update module, for when described 13 judge module is judged to receive user's confirmation in the second Preset Time, the facility information in the device information update white list of the bluetooth master got according to described first acquisition module;
Described sending module, also for when described 13 judge module is judged to receive user's confirmation, returns to described bluetooth master and accepts link information.
21. devices according to claim 13, is characterized in that, described device also comprises: the second update module and the 14 judge module;
Described second update module, for after described memory module work completes, upgrades white list facility information quantity;
Described 14 judge module, during for judging there is not the facility information mated with the facility information of the described bluetooth master got in described white list when described 4th judge module, according to the data length in described white list, judge whether described white list facility information quantity reaches white list maximum quantity;
Described memory module, also for when described 14 judge module judges that described white list facility information quantity does not reach white list maximum quantity, is sequentially written in described white list by the facility information of the bluetooth master got;
Described sending module, also for when described 14 judge module judges that white list facility information quantity reaches white list maximum quantity, returns refusal link information to described bluetooth master.
22. devices according to claim 21, is characterized in that, described device also comprises: the 3rd display module, the 15 judge module and the 3rd update module;
Described 3rd display module, for when described 14 judge module judges that described white list facility information quantity reaches white list maximum quantity, whether display carries out the information connected;
Described 15 judge module, receives user's confirmation for judging whether in the second Preset Time;
Described sending module, also for when described 15 judge module is judged not receive user's confirmation in the second Preset Time, returns refusal link information to bluetooth master;
Described 3rd update module, for when described 15 judge module is judged to receive user's confirmation in the second Preset Time, in white list according to the device information update of the described bluetooth master got the earliest stored in facility information;
Described sending module, also for when described 15 judge module is judged to receive user's confirmation in the second Preset Time, returns to described bluetooth master and accepts link information.
23. devices according to claim 13, is characterized in that, described device also comprises: the 16 judge module, the second detection module and second remove module;
Described receiver module, also for receiving the instruction that bluetooth master sends after completing connection according to described facility information;
Described 16 judge module, for judging whether described receiver module receives the instruction of bluetooth master transmission, is perform corresponding operating;
Described sending module, also for returning the operating result of described 16 judge module to described bluetooth master;
Described second detection module, during for judging that when described 16 judge module described receiver module does not receive the instruction of bluetooth master transmission, button is detected, judges whether that receiving default solution ties up triggering, otherwise trigger described 16 judge module and carry out work;
Described second remove module, for receive when described second detection module default solution tie up triggering time, removing white list in data.
24. devices according to claim 13, is characterized in that, described device also comprises: the 17 judge module, the 18 judge module and the 3rd remove module;
Described receiver module, also for receiving the instruction that bluetooth master sends after completing connection according to described facility information;
Described 17 judge module, for judging whether described receiver module receives the instruction of bluetooth master transmission;
Described 18 judge module, during for judging that when described 17 judge module described receiver module receives the instruction of bluetooth master transmission, resolving the instruction received, judging whether this instruction is that solution ties up instruction, otherwise perform corresponding operating;
Described sending module, also for returning the operating result of described 18 judge module to described bluetooth master;
Described 3rd remove module, for judge when described 18 judge module described instruction be solution tie up instruction time, remove the data in described white list;
Described sending module, also for after described 3rd removing module is finished the work, returns solution to described bluetooth master and ties up successful information.
CN201610067798.0A 2016-01-30 2016-01-30 A kind of binding method and device based on bluetooth equipment Active CN105577688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610067798.0A CN105577688B (en) 2016-01-30 2016-01-30 A kind of binding method and device based on bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610067798.0A CN105577688B (en) 2016-01-30 2016-01-30 A kind of binding method and device based on bluetooth equipment

Publications (2)

Publication Number Publication Date
CN105577688A true CN105577688A (en) 2016-05-11
CN105577688B CN105577688B (en) 2019-03-05

Family

ID=55887345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610067798.0A Active CN105577688B (en) 2016-01-30 2016-01-30 A kind of binding method and device based on bluetooth equipment

Country Status (1)

Country Link
CN (1) CN105577688B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211355A (en) * 2016-06-15 2016-12-07 飞天诚信科技股份有限公司 A kind of control the equipment of data interaction, system and method for work thereof
CN107678717A (en) * 2017-09-15 2018-02-09 维沃移动通信有限公司 A kind of multi-screen display method, mobile terminal and computer-readable recording medium
WO2018040043A1 (en) * 2016-08-31 2018-03-08 华为技术有限公司 Method for discovering bluetooth device and bluetooth device
CN110139261A (en) * 2019-06-06 2019-08-16 深圳诺康医疗设备股份有限公司 Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly
CN110557725A (en) * 2019-09-16 2019-12-10 飞天诚信科技股份有限公司 Method and device for setting Bluetooth working state
CN110602676A (en) * 2019-09-09 2019-12-20 飞天诚信科技股份有限公司 Method for preventing hardware wallet from being maliciously paired
WO2021047281A1 (en) * 2019-09-09 2021-03-18 飞天诚信科技股份有限公司 Hardware wallet binding authorization method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646221A (en) * 2008-08-08 2010-02-10 比亚迪股份有限公司 Method, system and mobile terminal for processing Bluetooth connection request
US20130249822A1 (en) * 2012-03-23 2013-09-26 Cheng-Ping DAI Electronic device and method for transmitting files using the same
EP2188903A4 (en) * 2007-08-31 2013-12-18 Motorola Mobility Llc Methods and devices for automatic multiple pairing of bluetooth devices
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN104540132A (en) * 2015-01-15 2015-04-22 天地融科技股份有限公司 Communication method of Bluetooth devices, mobile device, electronic signature device and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2188903A4 (en) * 2007-08-31 2013-12-18 Motorola Mobility Llc Methods and devices for automatic multiple pairing of bluetooth devices
CN101646221A (en) * 2008-08-08 2010-02-10 比亚迪股份有限公司 Method, system and mobile terminal for processing Bluetooth connection request
US20130249822A1 (en) * 2012-03-23 2013-09-26 Cheng-Ping DAI Electronic device and method for transmitting files using the same
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN104540132A (en) * 2015-01-15 2015-04-22 天地融科技股份有限公司 Communication method of Bluetooth devices, mobile device, electronic signature device and server

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211355A (en) * 2016-06-15 2016-12-07 飞天诚信科技股份有限公司 A kind of control the equipment of data interaction, system and method for work thereof
CN106211355B (en) * 2016-06-15 2019-12-20 飞天诚信科技股份有限公司 Equipment and system for controlling data interaction and working method thereof
CN108605371A (en) * 2016-08-31 2018-09-28 华为技术有限公司 It was found that the method and bluetooth equipment of bluetooth equipment
WO2018040043A1 (en) * 2016-08-31 2018-03-08 华为技术有限公司 Method for discovering bluetooth device and bluetooth device
CN108605371B (en) * 2016-08-31 2021-01-05 华为技术有限公司 Method for discovering Bluetooth device and Bluetooth device
US11343667B2 (en) 2016-08-31 2022-05-24 Huawei Technologies Co., Ltd. Method for discovering bluetooth device and bluetooth device
US11722877B2 (en) 2016-08-31 2023-08-08 Huawei Technologies Co., Ltd. Method for discovering Bluetooth device and Bluetooth device
CN107678717A (en) * 2017-09-15 2018-02-09 维沃移动通信有限公司 A kind of multi-screen display method, mobile terminal and computer-readable recording medium
CN110139261A (en) * 2019-06-06 2019-08-16 深圳诺康医疗设备股份有限公司 Bluetooth equipment, Bluetooth mobile terminal, bluetooth connect system and method fastly
CN110139261B (en) * 2019-06-06 2024-02-20 深圳诺康医疗设备股份有限公司 Bluetooth equipment, bluetooth mobile terminal, bluetooth quick connection system and Bluetooth quick connection method
CN110602676A (en) * 2019-09-09 2019-12-20 飞天诚信科技股份有限公司 Method for preventing hardware wallet from being maliciously paired
WO2021047110A1 (en) * 2019-09-09 2021-03-18 飞天诚信科技股份有限公司 Method for preventing hardware wallet from being maliciously paired
WO2021047281A1 (en) * 2019-09-09 2021-03-18 飞天诚信科技股份有限公司 Hardware wallet binding authorization method and apparatus
CN110557725A (en) * 2019-09-16 2019-12-10 飞天诚信科技股份有限公司 Method and device for setting Bluetooth working state
CN110557725B (en) * 2019-09-16 2021-07-30 飞天诚信科技股份有限公司 Method and device for setting Bluetooth working state

Also Published As

Publication number Publication date
CN105577688B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN105577688A (en) Binding method and apparatus based on Bluetooth device
CN103220182B (en) The system and method for intelligent terminal managing family gateway
CN100527738C (en) Method for handling discarding of a sequence of service data units and communication apparatus
CN104333844A (en) Interconnection method of vehicle-mounted terminal and smart phone
KR20010096543A (en) System and method for provisioning or updating a mobile station using over-the-air transfer of interpreted byte-code program
CN103744763A (en) Mobile terminal synchronous control method of PC (personal computer) end in automated testing
US20160227012A1 (en) Switching device and method for automatically connecting to nfc chip and switching security element
CN102395102A (en) Processing method of lost mobile terminal, related apparatus and communication system
CN109450949B (en) Method for unbinding numbers of multiple applications, mobile terminal and readable storage medium
CN106454713B (en) A kind of method and device that mobile device is synchronous with bluetooth equipment pairing
CN104023328A (en) Operator mobile cellular network access system and corresponding communication method
CN104469456A (en) Infrared remote control method based on mobile phone and infrared remote control system
CN103957037A (en) Method for automatic communication between PC side and Android mobile phone side based on Bluetooth
CN101635071A (en) Method, system and device for installing/updating e-wallet
CN102984578A (en) Method, video terminal and system for processing program channel list information
CN106535090A (en) Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN103780952A (en) Intelligent terminal message sending method and system
CN104461616A (en) Updating method and system of software of chip card
CN104918296A (en) Network connection assistance system and method
CN113242462B (en) Screen projection method and device for realizing convergence terminal
CN201608697U (en) Short-message interactive remote switch
CN100446590C (en) Processing terminal, method and tracing system for short message
CN103428701A (en) Communication method, system and equipment based on security gateway
CN104918230A (en) Card writing method, device and system
CN109002319B (en) LORA protocol-based patch upgrading method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
OL01 Intention to license declared
OL01 Intention to license declared