CN105490711B - Bluetooth automatic connection method and main equipment, from equipment and system - Google Patents

Bluetooth automatic connection method and main equipment, from equipment and system Download PDF

Info

Publication number
CN105490711B
CN105490711B CN201511031764.8A CN201511031764A CN105490711B CN 105490711 B CN105490711 B CN 105490711B CN 201511031764 A CN201511031764 A CN 201511031764A CN 105490711 B CN105490711 B CN 105490711B
Authority
CN
China
Prior art keywords
bluetooth
equipment
target
mac
devices
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.)
Active
Application number
CN201511031764.8A
Other languages
Chinese (zh)
Other versions
CN105490711A (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.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201511031764.8A priority Critical patent/CN105490711B/en
Publication of CN105490711A publication Critical patent/CN105490711A/en
Application granted granted Critical
Publication of CN105490711B publication Critical patent/CN105490711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The present invention provides a kind of realization bluetooth automatic connection method and main equipment, from equipment and system, solves the problems, such as have multiple bluetooths to need to manually select connection in the scene.The invention is related to a kind of connection realized between bluetooth equipment, and special bluetooth equipment is fast automatic connection.Realize that bluetooth automatic connection method includes step:First opening of device Bluetooth function, the title of bluetooth equipment in acquisition communication context and corresponding MAC, wherein the bluetooth equipment in communication context includes target Bluetooth devices, and the target Bluetooth devices encrypt the MAC of the target Bluetooth devices using the first Encryption Algorithm, obtains the first character string;The bluetooth title that target Bluetooth devices are arranged includes the first character string;Bluetooth device name in communication context is handled one by one using the first decipherment algorithm, obtains corresponding decryption character string respectively, and first Encryption Algorithm is corresponding with the first decipherment algorithm.

Description

Bluetooth automatic connection method and main equipment, from equipment and system
Technical field
The invention is related to a kind of connection realized between bluetooth equipment, and special bluetooth equipment is fast automatic connection.
Background technique
Bluetooth technology on electronic product instantly application be it is very universal, it is relatively conventional such as Bluetooth of mobile phone, bluetooth The wearable devices such as earphone, bluetooth bracelet.Also start the figure for bluetooth module occurred, bluetooth conduct on Mobile payment terminal A kind of communication connection mode completes the letter between Mobile payment terminal (such as POS machine) and communication terminal (such as mobile phone) Breath transmission.
In the implementation of the present invention, following problem exists in the prior art in inventor:In the field of mobile payment Jing Zhong, such as in cashier, the Bluetooth function that each customer opens mobile phone prepares the Mobile payment terminal of connection cashier, this When customer search for bluetooth equipment, it may be found that very more bluetooth equipment, therefore customer need recognizes these bluetooth equipments one by one, Can determine that the Mobile payment terminal which is cashier.This causes great inconvenience to the mobile payment of customer.
And bluetooth connection is point-to-point connection type, in the bluetooth equipment that bluetooth connection is used to and its Its bluetooth equipment carries out bluetooth connection, below existing mode of operation:Manual opened bluetooth function, the indigo plant on manual search periphery Tooth equipment finds the bluetooth equipment of bluetooth connection to be carried out, and information required for dynamic input is matched manually completes bluetooth connection. According to above-mentioned existing mode of operation it is found that its considerably complicated, poor user experience of operation.
Summary of the invention
It is given below and simplifying for one or more aspects is summarized to try hard to provide the basic comprehension to such aspect.This The extensive overview of the not all aspect contemplated is summarized, and is both not intended to identify in all aspects key or decisive The element also non-range attempted to define in terms of any or all.Its unique purpose be to provide in simplified form it is one or more Some concepts of a aspect are using the sequence as more specifical explanation given later.
Inventor provides a kind of bluetooth automatic connection method, including step
First opening of device Bluetooth function, obtain communication context in bluetooth equipment title and corresponding MAC;
Bluetooth device name in the communication context is handled one by one using the first decipherment algorithm, obtains corresponding decryption respectively Character string;
If the corresponding decryption character string of a certain bluetooth device name includes the corresponding MAC of the bluetooth equipment, which is set The standby corresponding bluetooth equipment of title is the target Bluetooth devices in communication context, the first equipment bluetooth connection target Bluetooth devices;
Target Bluetooth devices encrypt the MAC of the target Bluetooth devices using the first Encryption Algorithm, obtain the first character string;If The bluetooth title for setting target Bluetooth devices includes the first character string;
First Encryption Algorithm is corresponding with the first decipherment algorithm.
Further, in step " the corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context " Later, including step:
First equipment obtains the corresponding pin code of target Bluetooth devices from first server according to the MAC of target Bluetooth devices;
The step " the first equipment bluetooth connection target Bluetooth devices " is MAC of first equipment according to target Bluetooth devices With pin code bluetooth connection target Bluetooth devices.
Further, the bluetooth equipment information table that second server is generated according to the order or History Order of bluetooth equipment, and The bluetooth equipment information table of generation is sent to first server;First server receives and stores the bluetooth equipment information Table;
The attribute of the bluetooth equipment information table includes the pin code and MAC of bluetooth equipment.
Inventor also provides a kind of main equipment for realizing bluetooth automatic connection method, including link block, decryption mould Block, judgment module;
The link block obtains the title of the bluetooth equipment in communication context and corresponding for opening Bluetooth function MAC;For bluetooth connection target Bluetooth devices;
The deciphering module is used to handle bluetooth device name in the communication context one by one using the first decipherment algorithm, point Corresponding decryption character string is not obtained;
If the judgment module is corresponding comprising the bluetooth equipment for the corresponding decryption character string of a certain bluetooth device name MAC, then the corresponding bluetooth equipment of the bluetooth device name be communication context in target Bluetooth devices, triggering link block connect Connect target Bluetooth devices.
It further, further include network module;
The network module is used to obtain target Bluetooth devices from first server according to the mac of target Bluetooth devices corresponding Pin code;
The link block is used for mac the and pin code bluetooth connection target Bluetooth devices according to target Bluetooth devices.
Inventor also provides a kind of slave equipment for realizing bluetooth automatic connection method, including encrypting module, and mould is arranged Block, link block;
The encrypting module is used to obtain the first character string from the MAC of equipment using the encryption of the first Encryption Algorithm;
The setup module includes the first character string from the bluetooth title of equipment for being arranged.
Setup module described further is the first character string from the bluetooth title of equipment for being arranged.
The link block with the first equipment for connecting.
Inventor also provides a kind of system for realizing bluetooth automatic connection method, including main equipment, from equipment;
The main equipment is a kind of above-mentioned main equipment for realizing bluetooth automatic connection method;
It is described from equipment be the above-mentioned slave equipment for realizing bluetooth automatic connection method.
It further, further include server,
The server be include memory module and network module, the memory module is for storing bluetooth equipment information Table, the attribute of the bluetooth equipment information table include the pin code and MAC of bluetooth equipment;The network module is used for and main equipment Communication.
The prior art is distinguished, the first equipment handles the communication model according to the first decipherment algorithm one by one in above-mentioned technical proposal Interior bluetooth device name is enclosed, corresponding decryption character string is obtained, decrypts whether character string includes the bluetooth equipment pair by judging It is target Bluetooth devices that the MAC answered, which may rapidly find out which bluetooth equipment within the scope of Current communications, to actively initiate blue Tooth connection.The target that bluetooth connection is judged and selected without user, facilitates user to be connected to specific bluetooth equipment.
And the corresponding MAC of bluetooth equipment is difference for different Bluetooth devices, so as to avoid blue by simply modification The title disguise as target Bluetooth devices of tooth equipment, so that the first equipment accidentally connects.
Especially in mobile payment field, using the first equipment as mobile phone, target Bluetooth devices are used to illustrate for POS machine Family is when cashier is paid, it is only necessary to be automatically turned on mobile phone by clicking corresponding app or the corresponding function of triggering, mobile phone Bluetooth function, and obtain the list of the bluetooth equipment in current phone bluetooth communication scope;Mobile phone uses at the first decipherment algorithm The title for managing the bluetooth equipment within the scope of the communications access obtains corresponding decryption character string.If a certain bluetooth device name Corresponding decryption character string includes the corresponding MAC of the bluetooth equipment, then the bluetooth equipment is target POS terminal, then mobile phone active Bluetooth connection is initiated, the POS machine equipment is connected, needs to recognize search one by one so as to avoid in order to connect POS terminal user The bluetooth equipment arrived improves the experience of user to reduce the manual operation of user;On the other hand it also saves in cashier The waiting time of other users improves flowing water speed.
The invention is particularly suited to scenes used below:There are other bluetooth equipments in communication context, and target Bluetooth is set It is standby not have:Audio input-output device, character input output equipment and image input-output equipment.Audio input-output device Refer to earphone speaker etc., character input device is keyboard or the key for inputting character etc., character output equipment is for example to show Device, ink screen etc., image input device are video camera etc., and image output device is printer, display, projector etc..It is legal to step on The bluetooth equipment of note can not actively select bluetooth equipment connected to it by key.I.e. target Bluetooth devices are that user can only be from Third equipment knows the bluetooth pairing information of the target Bluetooth devices, or can only pass through third equipment active selection and target Bluetooth The bluetooth equipment of equipment interconnection.To which Automatic sieve selects the target Bluetooth devices in communication context by means of the present invention, and It is connect with its active, the quick connection of the target Bluetooth devices in the first equipment and communication context can be facilitated.
To address related purpose before capable of reaching, this one or more aspect, which is included in, to be hereinafter fully described and appended The feature particularly pointed out in claim.The following description and drawings illustrate certain explanations of this one or more aspect Property feature.But these features are only several in the various modes for indicate the principle that various aspects can be used, and This description is intended to cover all such aspects and its equivalent aspect.
Detailed description of the invention
Disclosed aspect is described below with reference to attached drawing, provide attached drawing be in order to illustrate and non-limiting disclosed side Face, similar label indicates similar elements in attached drawing, and wherein:
Fig. 1 is bluetooth automatic connection method step schematic diagram of the invention;
Fig. 2 a is described in specific embodiment for realizing the module diagram of the main equipment of bluetooth automatic connection method;
Fig. 2 b is described in specific embodiment for realizing the module diagram of the slave equipment of bluetooth automatic connection method;
Fig. 3 is mobile phone described in specific embodiment and pos machine connection schematic diagram.
Description of symbols:
10, for realizing the main equipment of bluetooth automatic connection method;
110, link block;
120, deciphering module;
130, judgment module;
140, network module;
20, for realizing the slave equipment of bluetooth automatic connection method;
210, link block;
220, encrypting module;
230, setup module.
Specific embodiment
Technology contents, construction feature, the objects and the effects for detailed description technical solution, below in conjunction with specific reality It applies example and attached drawing is cooperated to be explained in detail.In the following description, numerous details is elaborated for explanatory purposes to provide pair The thorough understanding of one or more aspects.It will be evident that such aspect can also be practiced without these details.
Acronym list
SN:Serial Number, sequence number.
MAC:Media Access Control or Medium Access Control, media access control, also known as physics Address or hardware address.
VPN:Virtual Private Network, function are:Dedicated network is established in common network, carries out encryption communication.
HTTPS:Full name:Hyper Text Transfer Protocol over Secure Socket Layer, be with Safety is the channel HTTP of target, is briefly the safe version of HTTP.
SHA:Secure Hash Algorithm, Secure Hash Algorithm.
AES:Advanced Encryption Standard, Advanced Encryption Standard.
MD5:Message Digest Algorithm MD5, Message Digest 5.
The present invention propose the bluetooth automatic connection method based on Encryption Algorithm, for efficiently establish communication terminal and Bluetooth connection between Mobile payment terminal.The communication terminal and Mobile payment terminal have bluetooth hardware module, can also Referred to as bluetooth equipment.Mobile payment terminal can be POS machine, and communication terminal can be mobile phone.
Please referring to figure Fig. 1-Fig. 3 inventor and providing includes step, and S101 the first opening of device Bluetooth function obtains communication model The title of bluetooth equipment in enclosing and corresponding MAC;
S102 handles bluetooth device name in the communication context using the first decipherment algorithm one by one, obtains respectively corresponding Decrypt character string;
If the corresponding decryption character string of a certain bluetooth device name of S103 includes the corresponding MAC of the bluetooth equipment, S105 The corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context, and the first equipment bluetooth connection target is blue Tooth equipment;
If bluetooth device name does not all include the corresponding MAC of the bluetooth equipment in any communication context, S104 first is set It is standby that connection does not connect bluetooth equipment automatically.
Target Bluetooth devices encrypt the MAC of the target Bluetooth devices using the first Encryption Algorithm, obtain the first character string;If The bluetooth title for setting target Bluetooth devices includes the first character string;
First Encryption Algorithm is corresponding with the first decipherment algorithm.
First equipment is that have the equipment of bluetooth hardware module, can be communication terminal, such as mobile phone.Target is blue Tooth equipment can be Mobile payment terminal, such as POS machine.After first opening of device Bluetooth function, the first equipment can search for surrounding Bluetooth equipment, and connection bluetooth equipment.Bluetooth equipment around search can be triggered manually by user, or timing is automatic Search, preferably after the application program of opening payment function, application program searches for the bluetooth equipment of surrounding automatically.It can search Bluetooth equipment, be the bluetooth equipment within the scope of first device talk.Generally there are two types of communication distances for bluetooth equipment, a kind of It is communication distance is 10 meters, another kind is that communication distance is 100 meters, and according to the difference of technique and usage scenario, it is actual logical News distance may also be different.Communication context refers generally to centered on the first equipment, using communication distance as the range of radius, because This communication distance determines communication context.
First equipment searches bluetooth device name list, and using the first decipherment algorithm to the title in name list by One processing, obtains corresponding decryption character string respectively;If the corresponding decryption character string of a certain bluetooth device name includes the bluetooth The corresponding MAC of equipment, then the corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context.To keep away The title disguise as target Bluetooth devices by simply modifying bluetooth equipment are exempted from, so that the first equipment accidentally connects.At other In embodiment, if such as include any setting character in decryption character string, such as " sdf3462 ", then the bluetooth device name pair The bluetooth equipment answered is the target Bluetooth devices in communication context.
The title in name list is handled one by one using the first decipherment algorithm, in some embodiments in taking-up title The character string for corresponding to encryption data, and it is decrypted, if successful decryption and to decrypt character string include the indigo plant The corresponding MAC of tooth equipment, then the corresponding bluetooth equipment of the bluetooth device name is target Bluetooth devices.In the title of bluetooth equipment Which character string correspond to encryption data be according to preset, such as set legal registration bluetooth equipment entitled " 6 Bit encryption data+other characters " then answer the character string of encryption data for first 6 in the title of bluetooth equipment.
If having multiple bluetooth equipments to meet in usage scenario, " the corresponding decryption character string of a certain bluetooth device name includes should The verification condition of the corresponding MAC " of bluetooth equipment then will preferably meet " the corresponding decryption character string of a certain bluetooth device name The bluetooth equipment of verification condition comprising the corresponding MAC " of the bluetooth equipment is sorted with Bluetooth signal power, and signal is most strong in sequence Bluetooth equipment be target Bluetooth devices.First equipment actively connects the target Bluetooth devices.It can also be will meet it is " a certain The corresponding decryption character string of bluetooth device name includes the bluetooth equipment of the verification condition of the corresponding MAC " of the bluetooth equipment to arrange The mode of table is shown on the first device, is set by the operator of the first equipment by triggering the corresponding bluetooth of corresponding instruction connection It is standby.
First Encryption Algorithm and the first decipherment algorithm are a pair of corresponding Encryption Algorithm.Its calculation that can be data encryption Method, it can one piece of data is encrypted by the first Encryption Algorithm, and restores the data using the first decipherment algorithm.Such as it can divide RSA cryptographic algorithms and RSA decipherment algorithm or AES encryption algorithm and AES decipherment algorithm are not corresponded to.
In further embodiments, the first Encryption Algorithm and the first decipherment algorithm can also be Digital Signature Algorithm, such as can To be that SHA Encryption Algorithm and SHA decipherment algorithm or md5 encryption algorithm or MD5 decryption are calculated respectively;It is corresponding, private key and the bluetooth The signed data that the corresponding MAC of equipment is obtained after the processing of the first Encryption Algorithm, the title of target device are set as number of signature According to, when the first equipment decrypts bluetooth device name, the title of bluetooth equipment is verified one by one using public key and the first decipherment algorithm, If the title of a certain bluetooth equipment is after public key and the decryption of the first decipherment algorithm, obtaining includes the bluetooth equipment in ciphertext data MAC then pass through verifying, then the bluetooth equipment be communication context in target Bluetooth devices.According to the above description, it should be appreciated that Other existing improved algorithms for encryption and decryption of the above method that are based on (can be for the algorithm of data encryption or for counting The algorithm of word signature) it is also feasible.It can be understood that the first Encryption Algorithm or the first decipherment algorithm need key to be used Random number can be pre-stored in the first equipment or the first equipment from first server obtain.It is understood that it is preferred that One Encryption Algorithm and the corresponding executable program of the second Encryption Algorithm are not public institute energy for what is encrypted in mobile phone or server It obtains.
The first equipment handles bluetooth equipment in the communication context according to the first decipherment algorithm one by one in above-mentioned technical proposal Title obtains corresponding decryption character string, decrypts whether character string includes that the corresponding MAC of the bluetooth equipment i.e. may by judging Rapidly finding out which bluetooth equipment within the scope of Current communications is target Bluetooth devices, to actively initiate bluetooth connection.To not It needs user to judge and select the target of bluetooth connection, user is facilitated to be connected to specific bluetooth equipment.
And the corresponding MAC of bluetooth equipment is difference for different Bluetooth devices, so as to avoid blue by simply modification The title disguise as target Bluetooth devices of tooth equipment, so that the first equipment accidentally connects.
Especially in mobile payment field, using the first equipment as mobile phone, target Bluetooth devices are used to illustrate for POS machine Family is when cashier is paid, it is only necessary to be automatically turned on mobile phone by clicking corresponding app or the corresponding function of triggering, mobile phone Bluetooth function, and obtain the list of the bluetooth equipment in current phone bluetooth communication scope;Mobile phone uses at the first decipherment algorithm The title for managing the bluetooth equipment within the scope of the communications access obtains corresponding decryption character string.If a certain bluetooth device name Corresponding decryption character string includes the corresponding MAC of the bluetooth equipment, then the bluetooth equipment is target POS terminal, then mobile phone active Bluetooth connection is initiated, the POS machine equipment is connected, needs to recognize search one by one so as to avoid in order to connect POS terminal user The bluetooth equipment arrived improves the experience of user to reduce the manual operation of user;On the other hand it also saves in cashier The waiting time of other users improves flowing water speed.
The invention is particularly suited to scenes used below:There are other bluetooth equipments in communication context, and target Bluetooth is set It is standby not have:Audio input-output device, character input output equipment and image input-output equipment.Audio input-output device Refer to earphone speaker etc., character input device is keyboard or the key for inputting character etc., character output equipment is for example to show Device, ink screen etc., image input device are video camera etc., and image output device is printer, display, projector etc..It is legal to step on The bluetooth equipment of note can not actively select bluetooth equipment connected to it by key.I.e. target Bluetooth devices are that user can only be from Third equipment knows the bluetooth pairing information of the target Bluetooth devices, or can only pass through third equipment active selection and target Bluetooth The bluetooth equipment of equipment interconnection.To which Automatic sieve selects the target Bluetooth devices in communication context by means of the present invention, and It is connect with its active, the quick connection of the target Bluetooth devices in the first equipment and communication context can be facilitated.
Some target Bluetooth devices are not need the input pin response of the first equipment can directly establish bluetooth connection, another A little target Bluetooth devices, which need the first equipment to input corresponding pin, just allows the first equipment to establish bluetooth connection with it.Therefore one In a little embodiments, first server also saves the pin code and MAC of bluetooth equipment, which is used for when connecting the bluetooth equipment It uses.After step " the corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context ", including Step:
First equipment obtains the corresponding pin code of target Bluetooth devices from first server according to the MAC of target Bluetooth devices;
First equipment is according to MAC the and pin code bluetooth connection target Bluetooth devices of target Bluetooth devices.
After determining target Bluetooth devices, the first equipment obtains the pin code of target Bluetooth devices from first server.When First equipment initiate bluetooth connection (for linking objective bluetooth equipment) after, then the first equipment in establishing Bluetooth connection process from It is dynamic to use the pin code response.It can guarantee the first equipment by this method and wait connect communication security between bluetooth equipment, and protect Demonstrate,proving above-mentioned bluetooth equipment to be connected (target Bluetooth devices) will not be occupied by other bluetooth equipments malice and influence the first equipment Connection.
The bluetooth equipment information table that second server is generated according to the order or History Order of bluetooth equipment, and by generation Bluetooth equipment information table is sent to first server;First server receives and stores the bluetooth equipment information table;
The attribute of the bluetooth equipment information table includes the pin code and MAC of bluetooth equipment.
The bluetooth equipment information table is the table of relational model;The attribute of the bluetooth equipment information table refers to that bluetooth equipment is believed The column of table are ceased, each attribute of table respectively corresponds a column of table.The attribute of the bluetooth equipment information table includes pin code and MAC, Refer to there are at least one column for having recorded pin code or MAC in bluetooth equipment information table.
First server is client server in some cases, and it is that the client has or related to save in client server Bluetooth equipment information, the information of these bluetooth equipments is the data in bluetooth equipment information table;Bluetooth equipment information table Attribute includes the MAC of bluetooth equipment, or can also be including SN, pin code or other with the bluetooth equipment unique corresponding mark, I.e. for a certain bluetooth equipment, can be obtained by the MAC or SN of the bluetooth equipment or with the unique corresponding mark of the bluetooth equipment The bluetooth equipment information of the bluetooth equipment, such as MAC or SN, pin code or other corresponding marks unique with the bluetooth equipment etc. Information.The bluetooth equipment information table saved in preferred first server is vendor server (also referred to as second server) root It generates according to the bluetooth equipment of client's purchase, is sent the facility information of above-mentioned generation to by secure communication means after generation In first server.Such as it is corresponding that the client is generated according to the order or order history of a certain client for POS machine manufacturer POS machine facility information (i.e. bluetooth equipment information table), and by these POS machine facility informations pass through VPN or HTTPS or its other party Formula is sent in first server.The facility information of POS machine includes at least MAC, and can also include below a kind of or more Kind:SN, MAC, ID, certificate produce date, customer name, Customer ID etc..Bluetooth equipment information is initialized by second server Table, reduces the workload of its bluetooth equipment information having of the management of client, while ensure that initial bluetooth equipment information The accuracy and validity of table.
A referring to fig. 2, inventor also provide a kind of main equipment 10 for realizing bluetooth automatic connection method, including connection Module 110, deciphering module 120, judgment module 130;
The link block 110 obtains the title and correspondence of the bluetooth equipment in communication context for opening Bluetooth function MAC;For bluetooth connection target Bluetooth devices;
The deciphering module 120 is used to handle bluetooth equipment name in the communication context one by one using the first decipherment algorithm Claim, obtains corresponding decryption character string respectively;
If the judgment module 130 includes the bluetooth equipment pair for the corresponding decryption character string of a certain bluetooth device name The MAC answered, then the corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context, and triggering passes through connection Module bluetooth connection target Bluetooth devices.
It in some embodiments, further include network module 140;
The network module is used to obtain target Bluetooth devices from first server according to the corresponding MAC of target Bluetooth devices Corresponding pin code;
The link block is used for according to the corresponding MAC and pin code bluetooth connection target Bluetooth devices of target Bluetooth devices.
B referring to fig. 2, inventor also provide a kind of slave equipment 20 for realizing bluetooth automatic connection method, including encryption Module 220, setup module 230, link block 210;
The encrypting module 220 is used to obtain the first character string from the MAC of equipment using the encryption of the first Encryption Algorithm;
The setup module 230 includes the first character string from the bluetooth title of equipment for being arranged;
The link block 210 with the first equipment for connecting.
Inventor also provides a kind of system for realizing bluetooth automatic connection method, including main equipment, from equipment;
The main equipment is the above-mentioned main equipment for realizing bluetooth automatic connection method;
It is described from equipment be the above-mentioned slave equipment for realizing bluetooth automatic connection method.
It in further embodiments, further include server;
The server be include memory module and network module, the memory module is for storing bluetooth equipment information Table, the attribute of the bluetooth equipment information table include the pin code and MAC of bluetooth equipment;The network module is used for and main equipment Communication.
Term herein preferentially uses it in the explanation in Bluetooth technology field, and bluetooth equipment is to have bluetooth hardware module Equipment, and the title of bluetooth equipment is also referred to as bluetooth title or abbreviation title, is the composition such as letter, number, for bluetooth discovery When be shown in character string in bluetooth equipment list, and two bluetooth equipments herein connect, and it is each to refer to that two bluetooth equipments pass through From bluetooth hardware module establish connection, alternatively referred to as bluetooth connection or referred to as connect.It is understood that " A includes herein B " or " A include B ", can be that A equals B in some embodiments.It is appreciated that main equipment all has herein from equipment The equipment of bluetooth hardware module, and main equipment and from equipment only just to which two entities are distinguished, in some scenes Middle main equipment is also possible to as from equipment, i.e., equipment A in one scenario is used as main equipment, equipment B from equipment, and In another scene, it can be equipment A and be used as from equipment, equipment B is as main equipment.It should be noted that, in this document, such as First and second or the like relational terms are used merely to distinguish an entity or operation with another entity or operation Come, without necessarily requiring or implying between these entities or operation, there are any actual relationship or orders.Moreover, The terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that including a series of Process, method, article or the terminal device of element not only include those elements, but also other including being not explicitly listed Element, or further include element inherent to the process, method, article, or terminal device.Do not limiting more In the case where, the element that is limited by sentence " including ... " or " including ... ", it is not excluded that include the element process, There is also other elements in method, article or terminal device.In addition, herein, " being greater than ", " being less than ", " being more than " etc. It is interpreted as not including this number;" more than ", " following ", " within " etc. be interpreted as including this number.
It should be understood by those skilled in the art that, the various embodiments described above can provide as method, apparatus or computer program production Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments Form.The all or part of the steps in method that the various embodiments described above are related to can be instructed by program relevant hardware come It completes, the program can store in the storage medium that computer equipment can be read, for executing the various embodiments described above side All or part of the steps described in method.The computer equipment, including but not limited to:Personal computer, server, general-purpose computations It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to:RAM, ROM, magnetic disk, tape, CD, sudden strain of a muscle It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are referring to the method according to embodiment, equipment (system) and computer program product Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers Program instruction generates a machine to the processor of computer equipment, so that the finger executed by the processor of computer equipment It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of function.
These computer program instructions, which may also be stored in, to be able to guide computer equipment computer operate in a specific manner and sets In standby readable memory, so that the instruction being stored in the computer equipment readable memory generates the manufacture including command device Product, command device realization refer in one or more flows of the flowchart and/or one or more blocks of the block diagram Fixed function.
These computer program instructions can also be loaded into computer equipment, so that executing on a computing device a series of Operating procedure is to generate computer implemented processing, so that the instruction executed on a computing device is provided for realizing in process The step of function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications can be made to these embodiments, so the above description is only an embodiment of the present invention, It is not intended to limit scope of patent protection of the invention, it is all to utilize equivalent structure made by description of the invention and accompanying drawing content Or equivalent process transformation, being applied directly or indirectly in other relevant technical fields, similarly includes in patent of the invention Within protection scope.

Claims (8)

1. a kind of bluetooth automatic connection method, which is characterized in that including step
First opening of device Bluetooth function, obtain communication context in bluetooth equipment title and corresponding MAC, wherein communicating model Bluetooth equipment in enclosing includes target Bluetooth devices, and the target Bluetooth devices encrypt the target Bluetooth using the first Encryption Algorithm The MAC of equipment obtains the first character string;The bluetooth title that target Bluetooth devices are arranged includes the first character string;
Bluetooth device name in communication context is handled one by one using the first decipherment algorithm, obtains corresponding decryption character string respectively, First Encryption Algorithm is corresponding with the first decipherment algorithm;
If the corresponding decryption character string of a certain bluetooth device name includes the corresponding MAC of the bluetooth equipment, the bluetooth equipment name Corresponding bluetooth equipment is referred to as the target Bluetooth devices in communication context, the first equipment bluetooth connection target Bluetooth devices.
2. a kind of bluetooth automatic connection method according to claim 1, which is characterized in that in step " bluetooth equipment name Corresponding bluetooth equipment is referred to as the target Bluetooth devices in communication context " after, including step:
First equipment obtains the corresponding pin code of target Bluetooth devices from first server according to the MAC of target Bluetooth devices;
The step " the first equipment bluetooth connection target Bluetooth devices " be the first equipment according to the MAC of target Bluetooth devices and Pin code bluetooth connection target Bluetooth devices.
3. a kind of bluetooth automatic connection method according to claim 1, which is characterized in that including step, second server It is sent according to the bluetooth equipment information table that the order of bluetooth equipment or History Order generate, and by the bluetooth equipment information table of generation To first server;First server receives and stores the bluetooth equipment information table;
The attribute of the bluetooth equipment information table includes the pin code and MAC of bluetooth equipment.
4. a kind of bluetooth automatic connection method according to claim 1, which is characterized in that first equipment is mobile logical Equipment is interrogated, the target Bluetooth devices are POS machine.
5. a kind of main equipment for realizing bluetooth automatic connection method, which is characterized in that including link block, deciphering module, Judgment module;
The link block obtains the bluetooth device name in communication context and corresponding MAC for opening Bluetooth function;For Bluetooth connection target Bluetooth devices;
The deciphering module is used to handle bluetooth device name in the communication context one by one using the first decipherment algorithm, obtains respectively Obtain corresponding decryption character string;
If the judgment module includes that the bluetooth equipment is corresponding for the corresponding decryption character string of a certain bluetooth device name MAC, then the corresponding bluetooth equipment of the bluetooth device name is the target Bluetooth devices in communication context, triggering link block connection Target Bluetooth devices.
6. a kind of main equipment for realizing bluetooth automatic connection method according to claim 5, which is characterized in that also wrap Include network module;
The network module is used to obtain target Bluetooth devices from first server according to the mac of target Bluetooth devices corresponding Pin code;
The link block is used for mac the and pin code bluetooth connection target Bluetooth devices according to target Bluetooth devices.
7. a kind of system for realizing bluetooth automatic connection method, which is characterized in that including main equipment, from equipment;
The main equipment is a kind of such as main equipment for realizing bluetooth automatic connection method described in claim 5 or 6;
It is described from equipment include encrypting module, setup module, link block;
The encrypting module is used to obtain the first character string from the MAC of equipment using the encryption of the first Encryption Algorithm;
The setup module includes the first character string from the bluetooth title of equipment for being arranged;
The link block with main equipment for connecting.
8. a kind of system for realizing bluetooth automatic connection method according to claim 7, which is characterized in that further include Server,
The server be include memory module and network module, the memory module is for storing bluetooth equipment information table, institute The attribute for stating bluetooth equipment information table includes the pin code and MAC of bluetooth equipment;The network module is used to communicate with main equipment.
CN201511031764.8A 2015-12-31 2015-12-31 Bluetooth automatic connection method and main equipment, from equipment and system Active CN105490711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511031764.8A CN105490711B (en) 2015-12-31 2015-12-31 Bluetooth automatic connection method and main equipment, from equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511031764.8A CN105490711B (en) 2015-12-31 2015-12-31 Bluetooth automatic connection method and main equipment, from equipment and system

Publications (2)

Publication Number Publication Date
CN105490711A CN105490711A (en) 2016-04-13
CN105490711B true CN105490711B (en) 2018-11-20

Family

ID=55677477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511031764.8A Active CN105490711B (en) 2015-12-31 2015-12-31 Bluetooth automatic connection method and main equipment, from equipment and system

Country Status (1)

Country Link
CN (1) CN105490711B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101981A (en) * 2016-05-27 2016-11-09 深圳市优必选科技有限公司 Bluetooth renaming module and Bluetooth renaming method of Bluetooth device
CN106209174B (en) * 2016-08-30 2018-12-25 长沙丰灼通讯科技有限公司 The information interacting method of plurality of Bluetooth equipments networking
CN106231542A (en) * 2016-08-30 2016-12-14 长沙丰灼通讯科技有限公司 A kind of passive method of attachment of bluetooth
CN106779677A (en) * 2016-11-21 2017-05-31 深圳付贝科技有限公司 A kind of method of payment and its device, electronic equipment and payment system
CN106792483A (en) * 2017-01-20 2017-05-31 北京信安世纪科技有限公司 Connection method of the mobile platform with bluetooth equipment and attachment means
CN108696844B (en) * 2017-03-07 2021-12-24 中移(杭州)信息技术有限公司 Information processing method, device and system
CN107659920A (en) * 2017-09-06 2018-02-02 北京小鸟看看科技有限公司 Bluetooth connecting method, bluetooth equipment, mobile terminal, wear display device system
CN107707686B (en) * 2017-10-09 2019-10-08 深圳市沃特沃德股份有限公司 Equipment identification method and device
CN108055654A (en) * 2017-12-07 2018-05-18 锐捷网络股份有限公司 A kind of classics bluetooth equipment authentication matching process and device
CN110177000A (en) * 2019-05-21 2019-08-27 重庆邮电大学 A kind of encrypted transmission method of wearable device
CN110381176A (en) * 2019-07-10 2019-10-25 中山优感科技有限公司 A kind of bluetooth title naming method and device for producing bluetooth equipment in batches
CN113115475A (en) * 2021-03-24 2021-07-13 福建新大陆自动识别技术有限公司 Wireless connection method and system
CN113473433B (en) * 2021-07-06 2023-03-17 巨翊科技(上海)有限公司 Quick-pairing Bluetooth networking communication system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521743A (en) * 2011-11-16 2012-06-27 赵启程 Mobile phone safety payment method and system on basis of wireless channel
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607710A (en) * 2013-12-02 2014-02-26 北京东方泰华投资有限公司 Quick connection method and device for wireless devices and intelligent terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521743A (en) * 2011-11-16 2012-06-27 赵启程 Mobile phone safety payment method and system on basis of wireless channel
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device

Also Published As

Publication number Publication date
CN105490711A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN105490711B (en) Bluetooth automatic connection method and main equipment, from equipment and system
EP3633913B1 (en) Provisioning a secure connection using a pre-shared key
EP3220573B1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
US9124419B2 (en) Method, device, and system of secure entry and handling of passwords
JP4866863B2 (en) Security code generation method and user device
US11210658B2 (en) Constructing a distributed ledger transaction on a cold hardware wallet
CN107733656A (en) A kind of cipher authentication method and device
CN107294709A (en) A kind of block chain data processing method, apparatus and system
US8495383B2 (en) Method for the secure storing of program state data in an electronic device
CN107786331B (en) Data processing method, device, system and computer readable storage medium
CN108347419A (en) Data transmission method and device
CN109672521B (en) Security storage system and method based on national encryption engine
CN106611310B (en) Data processing method, wearable electronic device and system
CN111615105A (en) Information providing method, information obtaining method, information providing device, information obtaining device and terminal
CN107248984A (en) Data exchange system, method and apparatus
CN105656669B (en) The remote repairing method of electronic equipment, is repaired equipment and system at equipment
AU2021271512A1 (en) Constructing a distributed ledger transaction on a cold hardware wallet
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN111178884A (en) Information processing method, device, equipment and readable storage medium
CN109687966A (en) Encryption method and its system
CN108199847A (en) Security processing method, computer equipment and storage medium
CN115242514B (en) Privacy set intersection method and system based on state secret, electronic equipment and storage medium
CN114465803A (en) Object authorization method, device, system and storage medium
KR20140017035A (en) Audio security storage system and method for managing certification using the same
CN105022965B (en) A kind of data ciphering method and device

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