CN105490711A - Bluetooth automatic connection method, master device, slave device, and system - Google Patents

Bluetooth automatic connection method, master device, slave device, and system Download PDF

Info

Publication number
CN105490711A
CN105490711A CN201511031764.8A CN201511031764A CN105490711A CN 105490711 A CN105490711 A CN 105490711A CN 201511031764 A CN201511031764 A CN 201511031764A CN 105490711 A CN105490711 A CN 105490711A
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.)
Granted
Application number
CN201511031764.8A
Other languages
Chinese (zh)
Other versions
CN105490711B (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 invention provides a bluetooth automatic connection method, a master device, a slave device, and a system, solving the problem that multiple bluetooths need to be selected and connected manually in a condition. The invention relates to the connection between the bluetooth devices, and particularly the rapid and automatic connection of the bluetooth devices. The bluetooth automatic connection method includes the steps that a first device starts the bluetooth function to obtain the names of the bluetooth devices in the communication range and corresponding MACs, the bluetooth devices in the communication range include a target bluetooth device, the MAC of the target bluetooth device is encrypted by a first encryption algorithm to obtain a first string, the bluetooth name of the target bluetooth device includes the first string, the names of the bluetooth devices in the communication range are processed by a first decryption algorithm one by one, and the corresponding decryption strings can be obtained. The first encryption algorithm is corresponding to the first decryption algorithm.

Description

Bluetooth automatic connection method and main equipment, from equipment and system
Technical field
The invention relates to a kind of connection realized between bluetooth equipment, and special bluetooth equipment is fast automatic connection.
Background technology
The application of Bluetooth technology on electronic product is instantly very general, comparatively common as wearable devices such as Bluetooth of mobile phone, bluetooth earphone, bluetooth bracelets.Mobile payment terminal also starts the figure having occurred bluetooth module, and bluetooth, as a kind of communication connected mode, completes the information transmission between Mobile payment terminal (such as POS) and communication terminal (such as mobile phone).
Realizing in process of the present invention, inventor finds that in prior art, there are the following problems: in the scene of mobile payment, such as in cashier, each client opens the Mobile payment terminal of the Bluetooth function preparation connection cashier of mobile phone, now client searches for bluetooth equipment, to find very many bluetooth equipments, therefore customer need these bluetooth equipments of identification one by one, could determine which is the Mobile payment terminal of cashier.This causes great inconvenience to the mobile payment of client.
And bluetooth connection is point-to-point connected mode, be in the bluetooth equipment using bluetooth to connect to want to carry out bluetooth connection with other bluetooth equipment, below its existing mode of operation: manual unlocking Bluetooth function, the bluetooth equipment of manual search periphery, find the bluetooth equipment that will carry out bluetooth connection, information manually required for dynamic input pairing, completes bluetooth and connects.According to above-mentioned existing mode of operation, its operation is quite complicated, poor user experience.
Summary of the invention
Below provide and the simplification of one or more aspect is summarized to try hard to provide the basic comprehension to this type of aspect.Detailed the combining of this not all aspect contemplated of general introduction is look at, and both not intended to be pointed out out the scope of key or decisive any or all aspect of elements nor delineate of all aspects.Its unique object is some concepts that will provide one or more aspect in simplified form using as the more specifically bright sequence provided after a while.
Inventor provides a kind of bluetooth automatic connection method, comprises step
First opening of device Bluetooth function, obtains the title of the bluetooth equipment in communication context and corresponding MAC;
Use the first decipherment algorithm to process bluetooth device name in described communication context one by one, obtain corresponding deciphering character string respectively;
If deciphering character string corresponding to a certain bluetooth device name comprises MAC corresponding to this bluetooth equipment, then the bluetooth equipment that this bluetooth device name is corresponding is the target Bluetooth devices in communication context, the first equipment bluetooth linking objective bluetooth equipment;
Target Bluetooth devices uses the first cryptographic algorithm to encrypt the MAC of this target Bluetooth devices, obtains the first character string; The bluetooth title of Offered target bluetooth equipment comprises the first character string;
Described first cryptographic algorithm is corresponding with the first decipherment algorithm.
Further, after step " bluetooth equipment corresponding to this bluetooth device name is the target Bluetooth devices in communication context ", step is comprised:
First equipment obtains pin code corresponding to target Bluetooth devices according to the MAC of target Bluetooth devices from first server;
Described step " the first equipment bluetooth linking objective bluetooth equipment " is MAC and the pin code bluetooth linking objective bluetooth equipment of the first equipment according to target Bluetooth devices.
Further, the bluetooth equipment information table that second server generates according to the order of bluetooth equipment or History Order, and the bluetooth equipment information table of generation is sent to first server; First server receives and stores described bluetooth equipment information table;
The attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment.
Inventor also provides a kind of main equipment for realizing bluetooth automatic connection method, comprises link block, deciphering module, judge module;
Described link block, for opening Bluetooth function, obtains the title of the bluetooth equipment in communication context and corresponding MAC; For bluetooth linking objective bluetooth equipment;
Described deciphering module processes bluetooth device name in described communication context one by one for using the first decipherment algorithm, obtains corresponding deciphering character string respectively;
If the deciphering character string that described judge module is used for a certain bluetooth device name corresponding comprises MAC corresponding to this bluetooth equipment, the bluetooth equipment that then this bluetooth device name is corresponding is the target Bluetooth devices in communication context, triggers link block linking objective bluetooth equipment.
Further, also mixed-media network modules mixed-media is comprised;
Described mixed-media network modules mixed-media is used for obtaining pin code corresponding to target Bluetooth devices according to the mac of target Bluetooth devices from first server;
Described link block is used for mac and the pin code bluetooth linking objective bluetooth equipment according to target Bluetooth devices.
Inventor also provide a kind of for realize bluetooth automatic connection method from equipment, comprise encrypting module, module be set, link block;
Described encrypting module, for using the first cryptographic algorithm encryption from the MAC of equipment, obtains the first character string;
The described module that arranges comprises the first character string for arranging from the bluetooth title of equipment.
The described module that arranges is called the first character string for arranging from the bluetooth name of equipment further.
Described link block is used for and the first equipment connection.
Inventor also provides a kind of system for realizing bluetooth automatic connection method, comprises main equipment, from equipment;
Described main equipment is above-mentioned a kind of main equipment for realizing bluetooth automatic connection method;
Described from equipment be above-mentioned for realize bluetooth automatic connection method from equipment.
Further, also comprise server,
Described server is for comprising memory module and mixed-media network modules mixed-media, and described memory module is for storing bluetooth equipment information table, and the attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment; Described mixed-media network modules mixed-media is used for and main equipment communication.
Difference prior art, in technique scheme, the first equipment processes bluetooth device name in described communication context one by one according to the first decipherment algorithm, obtain corresponding deciphering character string, by judging deciphering character string whether to comprise MAC corresponding to this bluetooth equipment, namely may to find out which bluetooth equipment within the scope of Current communications be fast target Bluetooth devices, thus initiatively initiate bluetooth connection.Thus do not need user to judge, with the target selecting bluetooth to be connected, to facilitate user to be connected to specific bluetooth equipment.
And MAC corresponding to bluetooth equipment is different for different Bluetooth devices, thus avoid the title disguise as target Bluetooth devices by simply revising bluetooth equipment, the first equipment is connected by mistake.
Particularly in mobile payment field, with the first equipment for mobile phone, target Bluetooth devices is POS is example explanation, user is when cashier pays, only need on mobile phone by clicking corresponding app or triggering corresponding function, mobile phone opens Bluetooth function automatically, and obtains the list of the bluetooth equipment within the scope of current phone bluetooth communication; Mobile phone uses the title of the bluetooth equipment within the scope of communications access described in the first decipherment algorithm process, obtains corresponding deciphering character string.If deciphering character string corresponding to a certain bluetooth device name comprises MAC corresponding to this bluetooth equipment, then this bluetooth equipment is target P OS equipment, then bluetooth connection initiatively initiated by mobile phone, connect this POS equipment, thus avoid the bluetooth equipment needing identification one by one to search to connect this POS terminal user, thus decrease the manual operation of user, improve the experience of user; Also save the stand-by period of other users in cashier on the other hand, improve flowing water speed.
The present invention is particularly suitable for following use scenes: there are other bluetooth equipments in communication context, and target Bluetooth devices does not have: audio input-output device, character input-output equipment and image input-output equipment.Audio input-output device refers to earphone audio amplifier etc., character input device be keyboard or for the button etc. of input character, character output equipment for such as display, ink screen etc., image input device be video camera etc., image output device is printer, display, projecting apparatus etc.The bluetooth equipment of legal registration cannot initiatively select connected bluetooth equipment by button.Namely target Bluetooth devices is user can only know this target Bluetooth devices Bluetooth pairing information from the 3rd equipment, maybe can only pass through the bluetooth equipment that the 3rd equipment is initiatively selected to dock with target Bluetooth devices.Thus the target Bluetooth devices selected by method Automatic sieve of the present invention in communication context, and be initiatively connected with it, the first equipment can be facilitated to be connected with the quick of the target Bluetooth devices in communication context.
Before reaching, address relevant object, this one or more aspect is included in and hereinafter fully describes and the feature particularly pointed out in the following claims.The following description and drawings illustrate some illustrative aspects of this one or more aspect.But these features are only indicate that can to adopt in the various modes of the principle of various aspect several, and this description is intended to contain this type of aspects all and equivalent aspect thereof.
Accompanying drawing explanation
Describe disclosed aspect below with reference to accompanying drawing, provide accompanying drawing to be non-limiting disclosed aspect in order to illustrate, label similar in accompanying drawing indicates similar elements, and wherein:
Fig. 1 is bluetooth automatic connection method step schematic diagram of the present invention;
Fig. 2 a for described in embodiment for realizing the module diagram of the main equipment of bluetooth automatic connection method;
Fig. 2 b for described in embodiment for realizing the module diagram from equipment of bluetooth automatic connection method;
Fig. 3 is the mobile phone described in embodiment and pos machine connection diagram.
Description of reference numerals:
10, for realizing the main equipment of bluetooth automatic connection method;
110, link block;
120, deciphering module;
130, judge module;
140, mixed-media network modules mixed-media;
20, for realize bluetooth automatic connection method from equipment;
210, link block;
220, encrypting module;
230, module is set.
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.In the following description, numerous details is set forth for explanatory purposes providing the thorough understanding to one or more aspect.But it is evident that do not have these details also can put into practice this type of aspect.
Acronym list
SN:SerialNumber, sequence number.
MAC:MediaAccessControl or MediumAccessControl, media interviews control, also known as physical address or hardware address.
VPN: VPN (virtual private network), its function is: in common network, set up dedicated network, is encrypted communication.
HTTPS: full name: HyperTextTransferProtocoloverSecureSocketLayer, being take safety as the HTTP passage of target, is briefly the safe version of HTTP.
SHA:SecureHashAlgorithm, Secure Hash Algorithm.
AES:AdvancedEncryptionStandard, Advanced Encryption Standard.
MD5:MessageDigestAlgorithmMD5, Message Digest 5.
The present invention proposes the bluetooth automatic connection method based on cryptographic algorithm, connects for the bluetooth set up efficiently between communication terminal and Mobile payment terminal.This communication terminal and Mobile payment terminal have bluetooth hardware module, also can be described as bluetooth equipment.Mobile payment terminal can be POS, and communication terminal can be mobile phone.
Refer to figure Fig. 1-Fig. 3 inventor to provide and comprise step, S101 first opening of device Bluetooth function, obtain the title of the bluetooth equipment in communication context and corresponding MAC;
S102 uses the first decipherment algorithm to process bluetooth device name in described communication context one by one, obtains corresponding deciphering character string respectively;
If deciphering character string corresponding to a certain bluetooth device name of S103 comprises MAC corresponding to this bluetooth equipment, then the bluetooth equipment that this bluetooth device name of S105 is corresponding is the target Bluetooth devices in communication context, the first equipment bluetooth linking objective bluetooth equipment;
If bluetooth device name does not comprise MAC corresponding to this bluetooth equipment in arbitrary communication context, then S104 first equipment is from being dynamically connected connection bluetooth equipment.
Target Bluetooth devices uses the first cryptographic algorithm to encrypt the MAC of this target Bluetooth devices, obtains the first character string; The bluetooth title of Offered target bluetooth equipment comprises the first character string;
Described first cryptographic algorithm is corresponding with the first decipherment algorithm.
First equipment is the equipment possessing bluetooth hardware module, and it can be communication terminal, such as mobile phone.Target Bluetooth devices can be Mobile payment terminal, such as POS.After first opening of device Bluetooth function, the first equipment can search for the bluetooth equipment of surrounding, and connects bluetooth equipment.Search bluetooth equipment around can pass through user's manual triggers, or timing automatic search, after preferably opening the application program of payment function, and the bluetooth equipment around application program automatic search.Namely the bluetooth equipment that can search is the bluetooth equipment within the scope of this first device talk.Bluetooth equipment generally has two kinds of communication distances, and one is communication distance is 10 meters, and another kind is communication distance is 100 meters, and according to the difference of technique and use scenes, actual communication distance also may be different.Communication context refers generally to centered by the first equipment, take communication distance as the scope of radius, and therefore communication distance determines communication context.
First equipment searches bluetooth device name list, and uses the first decipherment algorithm to process one by one the title in name list, obtains corresponding deciphering character string respectively; If deciphering character string corresponding to a certain bluetooth device name comprises MAC corresponding to this bluetooth equipment, then the bluetooth equipment that this bluetooth device name is corresponding is the target Bluetooth devices in communication context.Thus the title disguise as target Bluetooth devices avoided by simply revising bluetooth equipment, the first equipment is connected by mistake.In further embodiments, set character arbitrarily, such as " sdf3462 " if such as decipher in character string to comprise, then the bluetooth equipment that this bluetooth device name is corresponding is the target Bluetooth devices in communication context.
The first decipherment algorithm is used to process one by one the title in name list, in certain embodiments for taking out the character string that correspond to enciphered data in title, and process is decrypted to it, if successful decryption and decipher character string and comprise MAC corresponding to this bluetooth equipment, then the bluetooth equipment that this bluetooth device name is corresponding is target Bluetooth devices.In the title of bluetooth equipment, which character string correspond to enciphered data is according to presetting, and the name such as setting the bluetooth equipment of legal registration is called " 6 bit encryption data+other characters " then answers the character string of enciphered data to be in the title of bluetooth equipment first 6.
If there is multiple bluetooth equipment to meet the verification condition of " a certain bluetooth device name corresponding deciphering character string comprise MAC corresponding to this bluetooth equipment " in use scenes, the bluetooth equipment that then preferably will meet the verification condition of " a certain bluetooth device name corresponding deciphering character string comprise MAC corresponding to this bluetooth equipment " sorts so that Bluetooth signal is strong and weak, and the bluetooth equipment that in sequence, signal is the strongest is target Bluetooth devices.First equipment initiatively connects this target Bluetooth devices.It can also be that the bluetooth equipment of the verification condition of by meeting " a certain bluetooth device name corresponding deciphering character string comprise MAC corresponding to this bluetooth equipment " shows on the first device in the mode of list, connects corresponding bluetooth equipment by the operator of the first equipment by triggering corresponding instruction.
First cryptographic algorithm and the first decipherment algorithm are the cryptographic algorithm of a pair correspondence.It can be the algorithm of data encryption, namely can by the first cryptographic algorithm encryption one piece of data, and use the first decipherment algorithm to reduce these data.Such as it can distinguish corresponding RSA cryptographic algorithms and RSA decipherment algorithm, or AES encryption algorithm and AES decipherment algorithm.
In further embodiments, the first cryptographic algorithm and the first decipherment algorithm may also be Digital Signature Algorithm, such as, can be SHA cryptographic algorithm and SHA decipherment algorithm respectively, or md5 encryption algorithm or MD5 deciphering calculate; Corresponding, the signed data that the MAC that private key is corresponding with this bluetooth equipment obtains after the first cryptographic algorithm process, the title of target device is set to signed data, during the first device decrypts bluetooth device name, use public-key and the title of the first decipherment algorithm to bluetooth equipment verify one by one, if the title of a certain bluetooth equipment is after PKI and the deciphering of the first decipherment algorithm, obtain the MAC comprising this bluetooth equipment in data decryption and then pass through checking, then this bluetooth equipment is the target Bluetooth devices in communication context.According to the above description, should understand, other the existing algorithms for encryption and decryption (can be the algorithm for data encryption or the algorithm for digital signature) improved based on said method is also feasible.Be understandable that the key that the first cryptographic algorithm or the first decipherment algorithm need to use or random number can be pre-stored in the first equipment, or the first equipment obtains from first server.Be understandable that, preferably the first cryptographic algorithm and executable program corresponding to the second cryptographic algorithm in mobile phone or server for encryption not for the public can obtain.
In technique scheme, the first equipment processes bluetooth device name in described communication context one by one according to the first decipherment algorithm, obtain corresponding deciphering character string, by judging deciphering character string whether to comprise MAC corresponding to this bluetooth equipment, namely may to find out which bluetooth equipment within the scope of Current communications be fast target Bluetooth devices, thus initiatively initiate bluetooth connection.Thus do not need user to judge, with the target selecting bluetooth to be connected, to facilitate user to be connected to specific bluetooth equipment.
And MAC corresponding to bluetooth equipment is different for different Bluetooth devices, thus avoid the title disguise as target Bluetooth devices by simply revising bluetooth equipment, the first equipment is connected by mistake.
Particularly in mobile payment field, with the first equipment for mobile phone, target Bluetooth devices is POS is example explanation, user is when cashier pays, only need on mobile phone by clicking corresponding app or triggering corresponding function, mobile phone opens Bluetooth function automatically, and obtains the list of the bluetooth equipment within the scope of current phone bluetooth communication; Mobile phone uses the title of the bluetooth equipment within the scope of communications access described in the first decipherment algorithm process, obtains corresponding deciphering character string.If deciphering character string corresponding to a certain bluetooth device name comprises MAC corresponding to this bluetooth equipment, then this bluetooth equipment is target P OS equipment, then bluetooth connection initiatively initiated by mobile phone, connect this POS equipment, thus avoid the bluetooth equipment needing identification one by one to search to connect this POS terminal user, thus decrease the manual operation of user, improve the experience of user; Also save the stand-by period of other users in cashier on the other hand, improve flowing water speed.
The present invention is particularly suitable for following use scenes: there are other bluetooth equipments in communication context, and target Bluetooth devices does not have: audio input-output device, character input-output equipment and image input-output equipment.Audio input-output device refers to earphone audio amplifier etc., character input device be keyboard or for the button etc. of input character, character output equipment for such as display, ink screen etc., image input device be video camera etc., image output device is printer, display, projecting apparatus etc.The bluetooth equipment of legal registration cannot initiatively select connected bluetooth equipment by button.Namely target Bluetooth devices is user can only know this target Bluetooth devices Bluetooth pairing information from the 3rd equipment, maybe can only pass through the bluetooth equipment that the 3rd equipment is initiatively selected to dock with target Bluetooth devices.Thus the target Bluetooth devices selected by method Automatic sieve of the present invention in communication context, and be initiatively connected with it, the first equipment can be facilitated to be connected with the quick of the target Bluetooth devices in communication context.
Some target Bluetooth devices connect for not needing the first equipment input pin response directly can set up bluetooth, and other target Bluetooth devices need the first equipment to input corresponding pin just to allow the first equipment and its to set up bluetooth to be connected.Therefore in certain embodiments, first server also preserves pin code and the MAC of bluetooth equipment, and this pin code is used for using when connecting this bluetooth equipment.After step " bluetooth equipment corresponding to this bluetooth device name is the target Bluetooth devices in communication context ", comprise step:
First equipment obtains pin code corresponding to target Bluetooth devices according to the MAC of target Bluetooth devices from first server;
First equipment is according to MAC and the pin code bluetooth linking objective bluetooth equipment of target Bluetooth devices.
After determining target Bluetooth devices, the first equipment obtains the pin code of target Bluetooth devices from first server.Initiate bluetooth when the first equipment to connect after (in order to linking objective bluetooth equipment), then the first equipment uses this pin code to reply setting up in Bluetooth connection process automatically.Communication security between the first equipment and bluetooth equipment to be connected can be ensured by the method, and ensure that above-mentioned bluetooth equipment to be connected (target Bluetooth devices) can not be taken by other bluetooth equipment malice and affect the first equipment and its connection.
The bluetooth equipment information table that second server generates according to the order of bluetooth equipment or History Order, and the bluetooth equipment information table of generation is sent to first server; First server receives and stores described bluetooth equipment information table;
The attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment.
Described bluetooth equipment information table is the table of relational model; The attribute of described bluetooth equipment information table refers to the row of bluetooth equipment information table, each attribute corresponding row shown respectively of table.The attribute of described bluetooth equipment information table comprises pin code and MAC, refers in bluetooth equipment information table and has at least one row for have recorded pin code or MAC.
First server is client server in some cases, and preserve the information of that this client has or relevant bluetooth equipment in client server, the information of these bluetooth equipments is the data in bluetooth equipment information table; The attribute of bluetooth equipment information table comprises the MAC of bluetooth equipment, can also be maybe comprise SN, pin code or other corresponding marks unique with this bluetooth equipment, namely for a certain bluetooth equipment, by MAC or SN of this bluetooth equipment or obtain the bluetooth equipment information of this bluetooth equipment with the unique corresponding mark of this bluetooth equipment, the such as information of MAC or SN, pin code or other marks uniquely corresponding with this bluetooth equipment etc.The bluetooth equipment information table preserved in preferred first server is that the bluetooth equipment that vendor server (also referred to as second server) is bought according to client generates, and is sent in first server after generation by the facility information of secure communication means by above-mentioned generation.Such as POS manufacturer, it is according to the order of a certain client or order history, generate POS facility information corresponding to this client (i.e. bluetooth equipment information table), and these POS facility informations are sent in first server by VPN or HTTPS or other modes.The facility information of POS at least comprises MAC, and can also comprise following one or more: SN, MAC, ID, certificate, produces date, customer name, Customer ID etc.By second server initialize Bluetooth facility information table, decrease the workload of its bluetooth equipment information had of management of client, ensure that accuracy and the validity of initial bluetooth equipment information table simultaneously.
See Fig. 2 a, inventor also provides a kind of main equipment 10 for realizing bluetooth automatic connection method, comprises link block 110, deciphering module 120, judge module 130;
Described link block 110, for opening Bluetooth function, obtains the title of the bluetooth equipment in communication context and corresponding MAC; For bluetooth linking objective bluetooth equipment;
Described deciphering module 120 processes bluetooth device name in described communication context one by one for using the first decipherment algorithm, obtains corresponding deciphering character string respectively;
If described judge module 130 comprises MAC corresponding to this bluetooth equipment for the deciphering character string that a certain bluetooth device name is corresponding, the bluetooth equipment that then this bluetooth device name is corresponding is the target Bluetooth devices in communication context, triggers by link block bluetooth linking objective bluetooth equipment.
In certain embodiments, mixed-media network modules mixed-media 140 is also comprised;
Described mixed-media network modules mixed-media is used for the MAC corresponding according to target Bluetooth devices and obtains pin code corresponding to target Bluetooth devices from first server;
Described link block is used for MAC and the pin code bluetooth linking objective bluetooth equipment corresponding according to target Bluetooth devices.
See Fig. 2 b, inventor also provide a kind of for realize bluetooth automatic connection method from equipment 20, comprise encrypting module 220, module 230 be set, link block 210;
Described encrypting module 220, for using the first cryptographic algorithm encryption from the MAC of equipment, obtains the first character string;
The described module 230 that arranges comprises the first character string for arranging from the bluetooth title of equipment;
Described link block 210 for the first equipment connection.
Inventor also provides a kind of system for realizing bluetooth automatic connection method, comprises main equipment, from equipment;
Described main equipment is the above-mentioned main equipment for realizing bluetooth automatic connection method;
Described from equipment be above-mentioned for realize bluetooth automatic connection method from equipment.
In further embodiments, also server is comprised;
Described server is for comprising memory module and mixed-media network modules mixed-media, and described memory module is for storing bluetooth equipment information table, and the attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment; Described mixed-media network modules mixed-media is used for and main equipment communication.
Term herein preferentially adopts it in the explanation in Bluetooth technology field, bluetooth equipment is the equipment possessing bluetooth hardware module, and the title of bluetooth equipment is also referred to as bluetooth title, or abbreviation title, for the composition such as alphabetical, digital, for being presented at the character string in bluetooth equipment list during bluetooth discovery, and two bluetooth equipments connect herein, refer to that two bluetooth equipments are connected by respective bluetooth hardware module, also can be described as bluetooth and connect or be called for short connection.Being understandable that, herein " A comprises B " or " A comprises B ", can be that A equals B in certain embodiments.Be appreciated that, herein from equipment, main equipment is all the equipment with bluetooth hardware module, and main equipment and from equipment just just to two entities are made a distinction, in some scenes, main equipment also can as from equipment, namely in one scenario device A as main equipment, equipment B is as from equipment, and in another scene, can be device A as from equipment, equipment B be as main equipment.It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.

Claims (9)

1. a bluetooth automatic connection method, is characterized in that, comprises step
First opening of device Bluetooth function, obtain the title of the bluetooth equipment in communication context and corresponding MAC, bluetooth equipment wherein in communication context comprises target Bluetooth devices, and described target Bluetooth devices uses the first cryptographic algorithm to encrypt the MAC of this target Bluetooth devices, obtains the first character string; The bluetooth title of Offered target bluetooth equipment comprises the first character string;
Use the first decipherment algorithm to process bluetooth device name in communication context one by one, obtain corresponding deciphering character string respectively, described first cryptographic algorithm is corresponding with the first decipherment algorithm;
If deciphering character string corresponding to a certain bluetooth device name comprises MAC corresponding to this bluetooth equipment, then the bluetooth equipment that this bluetooth device name is corresponding is the target Bluetooth devices in communication context, the first equipment bluetooth linking objective bluetooth equipment.
2. a kind of bluetooth automatic connection method according to claim 1, is characterized in that, after step " bluetooth equipment corresponding to this bluetooth device name is the target Bluetooth devices in communication context ", comprises step:
First equipment obtains pin code corresponding to target Bluetooth devices according to the MAC of target Bluetooth devices from first server;
Described step " the first equipment bluetooth linking objective bluetooth equipment " is MAC and the pin code bluetooth linking objective bluetooth equipment of the first equipment according to target Bluetooth devices.
3. a kind of bluetooth automatic connection method according to claim 1, it is characterized in that, comprise step, the bluetooth equipment information table that second server generates according to the order of bluetooth equipment or History Order, and the bluetooth equipment information table of generation is sent to first server; First server receives and stores described bluetooth equipment information table;
The attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment.
4. a kind of bluetooth automatic connection method according to claim 1, is characterized in that, described first equipment is mobile communication equipment, and described target Bluetooth devices is POS.5, for realizing a main equipment for bluetooth automatic connection method, it is characterized in that, comprising link block, deciphering module, judge module;
Described link block, for opening Bluetooth function, obtains the bluetooth device name in communication context and corresponding MAC; For bluetooth linking objective bluetooth equipment;
Described deciphering module processes bluetooth device name in described communication context one by one for using the first decipherment algorithm, obtains corresponding deciphering character string respectively;
If the deciphering character string that described judge module is used for a certain bluetooth device name corresponding comprises MAC corresponding to this bluetooth equipment, the bluetooth equipment that then this bluetooth device name is corresponding is the target Bluetooth devices in communication context, triggers link block linking objective bluetooth equipment.
5. a kind of main equipment for realizing bluetooth automatic connection method according to claim 4, is characterized in that, also comprise mixed-media network modules mixed-media;
Described mixed-media network modules mixed-media is used for obtaining pin code corresponding to target Bluetooth devices according to the mac of target Bluetooth devices from first server;
Described link block is used for mac and the pin code bluetooth linking objective bluetooth equipment according to target Bluetooth devices.
6. for realize bluetooth automatic connection method from an equipment, it is characterized in that, comprise encrypting module, module is set, link block;
Described encrypting module, for using the first cryptographic algorithm encryption from the MAC of equipment, obtains the first character string;
The described module that arranges comprises the first character string for arranging from the bluetooth title of equipment;
Described link block is used for and the first equipment connection.
7. according to claim 6 for realize bluetooth automatic connection method from equipment, it is characterized in that, the described module that arranges is called the first character string for arranging from the bluetooth name of equipment.
8. for realizing a system for bluetooth automatic connection method, it is characterized in that, comprising main equipment, from equipment;
Described main equipment is a kind of main equipment for realizing bluetooth automatic connection method as described in claim 4 or 6;
Described from equipment be according to claim 7 for realize bluetooth automatic connection method from equipment.
9. a kind of system for realizing bluetooth automatic connection method according to claim 7, is characterized in that, also comprise server,
Described server is for comprising memory module and mixed-media network modules mixed-media, and described memory module is for storing bluetooth equipment information table, and the attribute of described bluetooth equipment information table comprises pin code and the MAC of bluetooth equipment; Described mixed-media network modules mixed-media is used for and main equipment communication.
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 true CN105490711A (en) 2016-04-13
CN105490711B 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)

Cited By (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
CN106209174A (en) * 2016-08-30 2016-12-07 长沙丰灼通讯科技有限公司 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
CN106792483A (en) * 2017-01-20 2017-05-31 北京信安世纪科技有限公司 Connection method of the mobile platform with bluetooth equipment and attachment means
CN106779677A (en) * 2016-11-21 2017-05-31 深圳付贝科技有限公司 A kind of method of payment and its device, electronic equipment and payment system
CN107659920A (en) * 2017-09-06 2018-02-02 北京小鸟看看科技有限公司 Bluetooth connecting method, bluetooth equipment, mobile terminal, wear display device system
CN108055654A (en) * 2017-12-07 2018-05-18 锐捷网络股份有限公司 A kind of classics bluetooth equipment authentication matching process and device
CN108696844A (en) * 2017-03-07 2018-10-23 中移(杭州)信息技术有限公司 Information processing method and device, system
WO2019071722A1 (en) * 2017-10-09 2019-04-18 深圳市沃特沃德股份有限公司 Device identification method, apparatus, and electronic 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
CN113473433A (en) * 2021-07-06 2021-10-01 巨翊科技(上海)有限公司 Quick-pairing Bluetooth networking communication system and method

Citations (3)

* 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
CN103607710A (en) * 2013-12-02 2014-02-26 北京东方泰华投资有限公司 Quick connection method and device for wireless devices and intelligent terminal
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device

Patent Citations (3)

* 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
CN103607710A (en) * 2013-12-02 2014-02-26 北京东方泰华投资有限公司 Quick connection method and device for wireless devices and intelligent terminal
CN104159226A (en) * 2014-07-24 2014-11-19 小米科技有限责任公司 Network connection method and device

Cited By (14)

* 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
CN106209174A (en) * 2016-08-30 2016-12-07 长沙丰灼通讯科技有限公司 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
CN108696844A (en) * 2017-03-07 2018-10-23 中移(杭州)信息技术有限公司 Information processing method and device, system
CN107659920A (en) * 2017-09-06 2018-02-02 北京小鸟看看科技有限公司 Bluetooth connecting method, bluetooth equipment, mobile terminal, wear display device system
WO2019071722A1 (en) * 2017-10-09 2019-04-18 深圳市沃特沃德股份有限公司 Device identification method, apparatus, and electronic 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
CN113473433A (en) * 2021-07-06 2021-10-01 巨翊科技(上海)有限公司 Quick-pairing Bluetooth networking communication system and method

Also Published As

Publication number Publication date
CN105490711B (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN105490711A (en) Bluetooth automatic connection method, master device, slave device, and system
EP3255832B1 (en) Dynamic encryption method, terminal and server
EP3220573B1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
WO2017113792A1 (en) Bluetooth automatic connection method, master device, slave device, and system
CN109564598B (en) Terminal detection method and terminal
CN111241569B (en) Information processing method, device and equipment
EP4150879A1 (en) Constructing a distributed ledger transaction on a cold hardware wallet
CN105554908A (en) Method, master device, slave device and system for achieving code scanning automatic bluetooth connection
CN106817346A (en) Data transmission method and device and electronic equipment
CN105656669A (en) Remote reparation method of electronic device, device, repaired device and system
CN106375990A (en) Encryption and decryption system and encryption and decryption method for private data of mobile phone
CN108347629A (en) Video file processing method, device, server and storage medium
EP3041188B1 (en) Method, device and system for controlling presentation of application
CN111327561B (en) Authentication method, system, authentication server, and computer-readable storage medium
CN107992760B (en) Key writing method, device, equipment and storage medium
CN114254390A (en) Sensitive data desensitization processing method and device
WO2017113791A1 (en) Bluetooth automatic connection method, master device, slave device, and system
CN111767550B (en) Data storage method and device
CN113794706B (en) Data processing method and device, electronic equipment and readable storage medium
CN114124469B (en) Data processing method, device and equipment
CN104978502A (en) System and method for encrypting local file of intelligent terminal
CN106911625B (en) Text processing method, device and system for safe input method
CN111130788B (en) Data processing method and system, data reading method and iSCSI server
CN110022483B (en) Hidden gift information processing method, electronic equipment and readable storage medium
JP6718466B2 (en) Dynamic data encryption method and related method for controlling decryption right

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