CN103944723A - Bluetooth device authentication method and Bluetooth devices - Google Patents

Bluetooth device authentication method and Bluetooth devices Download PDF

Info

Publication number
CN103944723A
CN103944723A CN201410156413.9A CN201410156413A CN103944723A CN 103944723 A CN103944723 A CN 103944723A CN 201410156413 A CN201410156413 A CN 201410156413A CN 103944723 A CN103944723 A CN 103944723A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth equipment
equipment
audio signal
audio interface
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.)
Pending
Application number
CN201410156413.9A
Other languages
Chinese (zh)
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.)
Tendyron Technology Co Ltd
Original Assignee
Tendyron Technology 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 Tendyron Technology Co Ltd filed Critical Tendyron Technology Co Ltd
Priority to CN201410156413.9A priority Critical patent/CN103944723A/en
Publication of CN103944723A publication Critical patent/CN103944723A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a Bluetooth device authentication method and Bluetooth devices. The method comprises the steps that an audio interface of the first Bluetooth device is connected with an audio interface of the second Bluetooth device, and the first Bluetooth device receives a first audio signal through the audio interface of the first Bluetooth device and decoding the first audio signal to obtain decoding data, wherein the first audio signal is output by the second Bluetooth device; the first Bluetooth device obtains the Bluetooth address of the second Bluetooth device from the decoding data; the first Bluetooth device is connected with the second Bluetooth device according to the Bluetooth address of the second Bluetooth device; the first Bluetooth device sends first Bluetooth authentication information to the second Bluetooth device through the audio interface of the first Bluetooth device, and/or the second Bluetooth device sends second Bluetooth authentication information to the first Bluetooth device through the audio interface of the second Bluetooth device; authentication is completed on the basis of the first Bluetooth authentication information and/or the second Bluetooth authentication information. The Bluetooth address is obtained through the audio interfaces, a connection process is started, and rapid connection is achieved; authentication between the Bluetooth devices is carried out through the audio interfaces, and authentication safety is guaranteed.

Description

Bluetooth equipment authentication method and bluetooth equipment
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of bluetooth equipment authentication method and bluetooth equipment.
Background technology
Bluetooth technology, as the short-distance wireless communication technology of global general-use, provides in-plant data communication means, has very large advantage at aspects such as low cost, low-power consumption, relative two-forties.When two bluetooth equipments connect, one as main equipment, and another is as from equipment.Generally possess the equipment of blue tooth communication function, both can be used as main equipment, also can be used as from equipment, that is to say, bluetooth equipment is operated at ordinary times from pattern (conduct is from equipment), waits for that other main equipments connect; While needs, be converted to holotype (as main equipment), initiate to other from equipment to connect (also referred to as paging or calling).
While using Bluetooth technology, between different bluetooth equipments, initiate the process of connection, be generally divided into two parts: discovering device (inquiry) and connection device (page).At present, the flow process of bluetooth equipment first connection is as follows:
1, as be set to discoverable mode (discoverable) from the bluetooth equipment of equipment.Bluetooth equipment as main equipment can be set to discoverable mode, also can not be set to discoverable mode.
2, main equipment is initiated discovering device (inquiry) process, near the information from equipment in discoverable mode obtaining.
3, with the form of list, the implementor name from equipment obtaining is presented at the screen of main equipment, user finds target device (want to connect from equipment, for example, Zhang San, Nokia-5230 etc.) by implementor name, selects this equipment by button.If there is no target device in list, repeated execution of steps 2.
4,, after user's select target equipment, main equipment obtains the Bluetooth address (corresponding with device name) of target device, and uses this address to be connected with target device.
5,, after successful connection, two bluetooth equipments can carry out communication by bluetooth.
Due to bluetooth use is frequency hopping, conventionally need the time about 10 seconds could occur the situation that scanning frequency is identical with search rate, therefore, the process of discovering device (being above-mentioned steps 1 and 2) is more consuming time, thereby it is longer to have caused connecting the required time.From equipment, determine target device more loaded down with trivial details (being above-mentioned steps 3) from multiple, when near main equipment, exist in a large number in discoverable mode from equipment time, may need the time of more growing just can find target device.In addition, target device is that user selects by implementor name, if there are identical multiple from equipment (Bluetooth address difference) of implementor name, what may cause connecting is not target device.In addition, bluetooth equipment, in the time carrying out transfer of data, is wireless technology due to what adopt, and therefore, transfer of data is easy to be blocked or monitor, and while particularly certification between bluetooth equipment, owing to also not producing encrypted tunnel, its fail safe has much room for improvement.
Summary of the invention
The invention provides a kind of bluetooth equipment authentication method and bluetooth equipment, at least one of to address the above problem.
According to an aspect of the present invention, a kind of bluetooth equipment authentication method is provided, comprise: the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, described the first bluetooth equipment receives the first audio signal of described the second bluetooth equipment output by its audio interface, and described the first audio signal is decoded and obtained decoded data; Described the first bluetooth equipment obtains the Bluetooth address of described the second bluetooth equipment from described decoded data; Described the first bluetooth equipment is connected with described the second bluetooth equipment according to the Bluetooth address of described the second bluetooth equipment; Described the first bluetooth equipment sends the first bluetooth authentication information by described audio interface to described the second bluetooth equipment, and/or described the second bluetooth equipment sends the second bluetooth authentication information by described audio interface to described the first bluetooth equipment; Based on described the first bluetooth authentication information and/or described the second bluetooth authentication information, between described the first bluetooth equipment and described the second bluetooth equipment, authenticate.
In addition, receive the first audio signal of described the second bluetooth equipment output by its audio interface at described the first bluetooth equipment before, described method also comprises: described the second bluetooth equipment to the Bluetooth address of the second bluetooth equipment described in major general is converted to data to be encoded, described data to be encoded are encoded and obtained described the first audio signal, and export described the first audio signal by the audio interface of described the second bluetooth equipment; Or described the second bluetooth equipment obtains pre-stored described the first audio signal, and export by the audio interface of described the second bluetooth equipment described the first audio signal of obtaining.
In addition, receive the first audio signal of described the second bluetooth equipment output by its audio interface at described the first bluetooth equipment after, described method also comprises: described the first bluetooth equipment sends the second audio signal by its audio interface to described the second bluetooth equipment, wherein, described the second audio signal carries response message.
In addition, after described the first bluetooth equipment is connected with described the second bluetooth equipment according to the Bluetooth address of described the second bluetooth equipment, described method also comprises: described the second bluetooth equipment sends the 3rd audio signal by its audio interface to described the first bluetooth equipment, wherein, described the 3rd audio signal carries and is used to indicate described the first bluetooth equipment and described the second bluetooth equipment by the confirmation of bluetooth successful connection.
In addition, before the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, described method also comprises: described the first bluetooth equipment finds pre-stored Bluetooth address, and initiate to connect according to described pre-stored Bluetooth address, wherein, described pre-stored Bluetooth address is to be stored in described the first bluetooth equipment after its corresponding bluetooth equipment and described the first bluetooth equipment first connection; If described the first bluetooth equipment is not connected to described the second bluetooth equipment according to described pre-stored Bluetooth address, the audio interface of described the first bluetooth equipment is connected with the audio interface of described the second bluetooth equipment, and described the first bluetooth equipment receives the first audio signal of described the second bluetooth equipment output by its audio interface; If described the first bluetooth equipment is connected to described the second bluetooth equipment according to described pre-stored Bluetooth address, described the first bluetooth equipment and described the second bluetooth equipment communicate by bluetooth.
According to another aspect of the present invention, provide a kind of bluetooth equipment, having comprised: audio interface, for being connected with target bluetooth equipment; Receiver module, for receiving the first audio signal of described target bluetooth equipment output by described audio interface; Decoder module, for decoding and obtain decoded data described the first audio signal; Acquisition module, for obtaining the Bluetooth address of described target bluetooth equipment from described decoded data; Link block, for being connected with described target bluetooth equipment according to the Bluetooth address of described target bluetooth equipment; Transceiver module, for sending the first bluetooth authentication information by described audio interface to described target bluetooth equipment, and/or receives the second bluetooth authentication information that described target bluetooth equipment sends by described audio interface; Authentication module, for based on described the first bluetooth authentication information and/or described the second bluetooth authentication information, completes certification with described target bluetooth equipment.
In addition, described bluetooth equipment also comprises: the first sending module, for receive the first audio signal of described target bluetooth equipment output by described audio interface at described receiver module after, send the second audio signal by described audio interface to described target bluetooth equipment, wherein, described the second audio signal carries response message.
In addition, described bluetooth equipment also comprises: search module, for searching the pre-stored Bluetooth address of described bluetooth equipment, wherein, described pre-stored Bluetooth address is to store after the bluetooth equipment first connection that described bluetooth equipment is corresponding with described pre-stored Bluetooth address; Described link block, also for initiating to connect according to described pre-stored Bluetooth address; Described receiver module, also for not being connected to described target bluetooth equipment according to described pre-stored Bluetooth address at described bluetooth equipment, receives the first audio signal of described target bluetooth equipment output by described audio interface; Communication module, for being connected to described target bluetooth equipment according to described pre-stored Bluetooth address at described bluetooth equipment, communicates by bluetooth with described target bluetooth equipment.
In addition, described bluetooth equipment also comprises: modular converter, for being converted to data to be encoded to the Bluetooth address of bluetooth equipment described in major general; Coding module, obtains the 3rd audio signal for described data to be encoded are encoded; Output module, for exporting described the 3rd audio signal by described audio interface.
In addition, described bluetooth equipment also comprises: the second sending module, for after described bluetooth equipment is connected by bluetooth with the opposite end bluetooth equipment that receives described the 3rd audio signal, send the 4th audio signal by described audio interface to described opposite end bluetooth equipment, wherein, described the 4th audio signal carries and is used to indicate described bluetooth equipment and described opposite end bluetooth equipment by the confirmation of bluetooth successful connection.
Can be found out by technique scheme, the invention provides a kind of bluetooth equipment authentication method and bluetooth equipment.Need two bluetooth equipments that connect to be connected by the audio interface of coupling, send the audio signal that comprises self Bluetooth address by audio interface from equipment, the audio signal that main equipment decoding receives, obtain the Bluetooth address from equipment, directly enter the process of connection device according to this Bluetooth address, can avoid like this process of discovering device more consuming time, thereby shorten the time that completes connection, realize the quick connection between bluetooth equipment.In addition, carry out the certification between bluetooth equipment by the mode of this wire transmission certification of audio interface, can avoid the information in verification process illegally to be intercepted, ensure the fail safe authenticating between bluetooth equipment.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the flow chart of the bluetooth equipment authentication method that provides of the embodiment of the present invention 1;
Fig. 2 is the schematic diagram of the bluetooth equipment authentication method that provides of the embodiment of the present invention 1;
Fig. 3 is another flow chart of the bluetooth equipment authentication method that provides of the embodiment of the present invention 1;
Fig. 4 is the schematic diagram one of the bluetooth equipment that provides of the embodiment of the present invention 2;
Fig. 5 is the schematic diagram two of the bluetooth equipment that provides of the embodiment of the present invention 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to protection scope of the present invention.In description of the invention, it should be noted that, term " first ", " second " be only for describing object, and can not be interpreted as instruction or hint relative importance or quantity or position.
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in further detail.
Embodiment 1
The present embodiment provides a kind of bluetooth equipment authentication method, in the present embodiment, the first bluetooth equipment is as main equipment, the second bluetooth equipment is as from equipment, the two is except bluetooth enable, (receiving audio signal is not to play immediately also to have audio interface and audio frequency broadcasting and audio sound-recording, but to processing after its recording) function, for example, the mobile terminals such as mobile phone, computer, intelligent watch, intelligent glasses, there is the intelligent cipher key equipment of signature function, or there is E-token dynamic password card of password generated function etc.
Fig. 1 is the flow chart of the bluetooth equipment authentication method that provides of the embodiment of the present invention 1, and as shown in Figure 1, the method comprises that following step S101 is to step S105.
Step S101, the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, and the first bluetooth equipment receives the first audio signal of the second bluetooth equipment output by its audio interface, and the first audio signal is decoded and obtained decoded data.
Audio interface can be audio jack, can be also audio socket.The audio interface that need to carry out two bluetooth equipments of bluetooth connection needs coupling, and one is audio jack, and another is the audio socket matching.
Receive the first audio signal of the second bluetooth equipment output by its audio interface at step S101 the first bluetooth equipment before, the second bluetooth equipment at least can use its audio interface to export the first audio signal in the following manner:
(1) second bluetooth equipment to the Bluetooth address of major general's the second bluetooth equipment is converted to data to be encoded, data to be encoded is encoded and is obtained the first audio signal, and export the first audio signal by the audio interface of the second bluetooth equipment.This implementation can the second bluetooth equipment detect audio interface have equipment to insert or receive the instruction that user sends by button (can be the module that hardware button, tangibly virtual key or other forms can realize keypress function) after execution.In addition, after the second bluetooth equipment detects that audio interface has equipment insertion, output audio signal, user is without controlling bluetooth equipment output audio signal, easy to use.Wherein, data to be encoded are digital signals, for example, and binary zero 101011.
(2) second bluetooth equipments obtain the first pre-stored audio signal, and export by the audio interface of the second bluetooth equipment the first audio signal of obtaining.The second bluetooth equipment to its Bluetooth address of major general obtains corresponding audio signal by conversion, coding, and store this audio signal, the audio interface that measures to be checked has equipment to insert or receives after the instruction that user sends by button (can be the module that hardware button, tangibly virtual key or other forms can realize keypress function), obtains and send this audio signal.In this kind of implementation, all to repeat the process of conversion, coding without each connection, more save the time that bluetooth connects cost.
Certainly; the mode of bluetooth equipment in the present invention (from equipment) output audio signal is not limited to above-mentioned several implementation; other implementations that can realize the quick connection of bluetooth equipment also belong to protection scope of the present invention; for example; the second bluetooth equipment can be after detecting that audio interface has equipment insertion first; obtain corresponding audio signal by conversion, coding to its Bluetooth address of major general; store and send this audio signal; have equipment insertion to audio interface in subsequent detection after, directly send the audio signal of storage.
In addition, can be found out by foregoing, in the present embodiment, need to carry out to need between two bluetooth equipments of bluetooth connection the protocol of encode and decode of digital signal to audio signal and audio signal to digital signal.
Step S102, the first bluetooth equipment obtains the Bluetooth address of the second bluetooth equipment from decoded data.
Consider that the audio signal that the second bluetooth equipment sends may not be the audio signal that the first bluetooth equipment is wanted the Bluetooth address that includes the second bluetooth equipment receiving, for example, the music that user's operating mistake is play.For this situation, the first bluetooth equipment can not obtain the Bluetooth address of the second bluetooth equipment from decoded data corresponding to the audio signal of reception, and then cannot carry out bluetooth connection, now, the first bluetooth equipment can send miscue to the second bluetooth equipment, the audio signal of pointing out the second bluetooth equipment to resend the Bluetooth address that comprises the second bluetooth equipment, makes the first bluetooth equipment can obtain in time the Bluetooth address of the second bluetooth equipment.
Step S103, the first bluetooth equipment is connected with the second bluetooth equipment according to the Bluetooth address of the second bluetooth equipment.
When connection, can be set to input password, also can be set to not need to input password; In addition, main equipment and all can ask to disconnect from equipment.Concrete identical with prior art, repeat no more herein.
Step S104, the first bluetooth equipment sends the first bluetooth authentication information by audio interface to the second bluetooth equipment, and/or the second bluetooth equipment sends the second bluetooth authentication information by audio interface to the first bluetooth equipment.In this step, between the first bluetooth equipment and the second bluetooth equipment, sending bluetooth authentication information can be unidirectional transmission, also can two-wayly send.Concrete, bluetooth equipment can be audio signal bluetooth authentication information coding to be sent, by audio interface, this audio signal is sent to target bluetooth equipment, and target bluetooth equipment receives this audio signal of decoding after audio signal and obtains bluetooth authentication information.Bluetooth authentication information can be the parameter such as random number, Bluetooth address, and bluetooth authentication information can be for generating key, and this key can, for transfer of data, ensure the fail safe of transfer of data.
Step S105, based on the first bluetooth authentication information and/or the second bluetooth authentication information, has authenticated between the first bluetooth equipment and the second bluetooth equipment.According in step S104 being unidirectional transmission bluetooth authentication information or two-way transmission bluetooth authentication information, in this step, can complete certification based on the first bluetooth authentication information, also can complete certification based on the second bluetooth authentication information, can also complete certification based on the first bluetooth authentication information and the second bluetooth authentication information.After having authenticated, between bluetooth equipment, can utilize the key obtaining to be encrypted data to be transmitted, and by the data after the encryption of bluetooth channel transfer, ensure the fail safe of transfer of data.
Can be found out by technique scheme, the bluetooth equipment authentication method that the present embodiment provides, send the audio signal that comprises self Bluetooth address to main equipment by audio interface from equipment, the audio signal that main equipment decoding receives, obtain from the Bluetooth address of equipment, the process that directly enters connection device according to this Bluetooth address, can avoid the process of discovering device more consuming time like this, thereby shorten the time that completes connection, realized the quick connection between bluetooth equipment.Knowing that, from the prerequisite of equipment Bluetooth address, page process is very simple, speed is also very fast, is greater than about 2 seconds and can completes.And, main equipment be directly connected by audio interface from equipment, without judging whether from equipment be target device, determine by implementor name with user in prior art compared with the method for target device, without artificial interference, improved connection speed.In addition, carry out the certification between bluetooth equipment by audio interface, can avoid the information in verification process illegally to be intercepted, ensure the fail safe authenticating between bluetooth equipment.
Fig. 2 is the schematic diagram of the bluetooth equipment authentication method that provides of the embodiment of the present invention 1, as shown in Figure 2, the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, the second bluetooth equipment is by audio interface output audio signal, wherein, this audio signal is that its Bluetooth address is converted to data to be encoded (digital signaling zero 101 as shown in Figure 2) by the second bluetooth equipment, data to be encoded is carried out to audio coding obtains.The first bluetooth equipment receives this audio signal by audio interface, and decode and obtain decoded data (being above-mentioned data to be encoded), from decoded data, obtain the Bluetooth address of the second bluetooth equipment, the first bluetooth equipment initiates to connect by bluetooth module, after successful connection, the first bluetooth equipment and the second bluetooth equipment can communicate.
The second bluetooth equipment can be both-way communication to the communication mechanism of the first bluetooth equipment transmission of audio signal, can be also one-way communication.Both-way communication can be as follows: receive the first audio signal of the second bluetooth equipment output by its audio interface at the first bluetooth equipment after, the first bluetooth equipment can send the second audio signal to the second bluetooth equipment by its audio interface, wherein, the second audio signal carries response message.Response message can be the information for confirming to receive the first audio signal, can be also the information that carries valid data.The in the situation that of one-way communication, only have the second bluetooth equipment to send audio signal to the first equipment, the first equipment does not send response message to the second equipment.The mechanism of both-way communication can avoid the second bluetooth equipment to carry out unnecessary repeating sending the operation of audio signal.
After the first bluetooth equipment is connected with the second bluetooth equipment according to the Bluetooth address of the second bluetooth equipment, said method can also comprise: the second bluetooth equipment sends the 3rd audio signal by its audio interface to the first bluetooth equipment, wherein, the 3rd audio signal carries and is used to indicate the first bluetooth equipment and the second bluetooth equipment by the confirmation of bluetooth successful connection.What can determine thus the first bluetooth equipment connection is not other bluetooth equipments.
Described above is the process of bluetooth equipment first connection.In actual applications, each connection of bluetooth equipment all can be carried out according to the method described above.In addition, the present embodiment also provides one preferred embodiment, and after first connection success, both sides' equipment is all remembered the historical informations such as the other side's Bluetooth address, follow-up connection does not need the process of repetition first connection, has simplified to a certain extent the process of non-first connection.But, for some reason, if one of both sides' equipment has been lost historical information, need to carry out the process identical with first connection.Taking mobile phone and bluetooth key as example, if be non-first connection, mobile phone for example, at the Bluetooth address of lower this bluetooth key that can find storage of the application of having logined (, Mobile banking), in the situation that bluetooth key has opened Bluetooth function, mobile phone connects according to this Bluetooth address; In like manner, bluetooth key is as main equipment, and mobile phone is similar to the above as the connection from equipment, repeats no more herein.
Concrete, if the first bluetooth equipment and the second bluetooth equipment are non-first connections, may be without the flow process shown in execution graph 1, before the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, said method also comprises: the first bluetooth equipment finds pre-stored Bluetooth address, and initiate to connect according to pre-stored Bluetooth address, wherein, pre-stored Bluetooth address is to be stored in the first bluetooth equipment after its corresponding bluetooth equipment and the first bluetooth equipment first connection; If the first bluetooth equipment is not connected to the second bluetooth equipment according to pre-stored Bluetooth address, the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, and the first bluetooth equipment receives first audio signal (according to the process operation of first connection) of the second bluetooth equipment output by its audio interface; If the first bluetooth equipment is connected to the second bluetooth equipment according to pre-stored Bluetooth address, the first bluetooth equipment and the second bluetooth equipment communicate by bluetooth.
Be elaborated below in conjunction with Fig. 3, in Fig. 3, above-mentioned related content is shown in the detailed explanation of each step, repeats no more herein.As shown in Figure 3, comprise the steps:
Step S301, whether the first bluetooth equipment finds pre-stored Bluetooth address.If so, perform step S302; If not, perform step S304.
Step S302, the first bluetooth equipment initiates to connect according to pre-stored Bluetooth address.
Step S303, whether the first bluetooth equipment is connected to the second bluetooth equipment according to pre-stored Bluetooth address.If so, perform step S307; If not, perform step S304.
Step S304, the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, and the first bluetooth equipment receives the audio signal of the second bluetooth equipment output by its audio interface, and this audio signal decoding is obtained to decoded data.
Step S305, the first bluetooth equipment obtains the Bluetooth address of the second bluetooth equipment from decoded data.
Step S306, the first bluetooth equipment is connected with the second bluetooth equipment according to the Bluetooth address of the second bluetooth equipment.
Step S307, the first bluetooth equipment and the second bluetooth equipment communicate by bluetooth.
Below, the process authenticating by audio interface after connecting in connection with concrete two bluetooth equipments of example explanation, in this example, describes as an example of two-way authentication example.
The first bluetooth equipment sends the PKI PK1 of the first bluetooth equipment to the second bluetooth equipment by bluetooth passage;
The second bluetooth equipment sends the PKI PK2 of the second bluetooth equipment to the first bluetooth equipment by bluetooth passage;
The first bluetooth equipment calculates PK1, PK2, R1 and 0 according to formula 1, obtains C1; Wherein, R1 is the random number that the first bluetooth equipment generates; Formula 1 is the computing formula that the first bluetooth equipment and the second bluetooth equipment are consulted in advance.
The second bluetooth equipment calculates PK1, PK2, R2 and 0 according to formula 1, obtains C2; Wherein, R2 is the random number that the second bluetooth equipment generates;
The first bluetooth equipment sends C1, R1 and MAC1 by audio interface to the second bluetooth equipment; Wherein, MAC1 is the Bluetooth address of the first bluetooth equipment;
The second bluetooth equipment sends C2, R2 and MAC2 by audio interface to the first bluetooth equipment; Wherein, MAC2 is the Bluetooth address of the second bluetooth equipment;
The first bluetooth equipment all calculates identical parameter according to formula 2 with the second bluetooth equipment, obtain key, authentication authorization and accounting completes, the parameter using in this step can be one or more in above-mentioned parameter, as long as the parameter of two bluetooth equipment uses is identical, identical with the key that ensures to obtain.
Between the first bluetooth equipment and the second bluetooth equipment, utilize the key obtaining to be encrypted data to be transmitted, and by the data after the encryption of bluetooth channel transfer, because the important parameter that generates key transmits by audio interface, even if the data of transmitting by bluetooth are by illicit interception, interceptor also cannot access authentication information, or acquisition encryption key, therefore, can ensure to the full extent like this fail safe of follow-up blue-teeth data transmission.
In addition, if unilateral authentication, for example, the first bluetooth equipment sends authentication information to the second bluetooth equipment, while calculating C1, C2 and key, the first bluetooth equipment is not also known random number or the C2 that the second bluetooth equipment produces, therefore,, when calculating, both sides are all designated as default value by the ignorant parameter of the second bluetooth equipment, for example 0, be consistent with the result that ensures to calculate.
Certainly, in said process, also can not transmit Bluetooth address, when calculating, also just not use this parameter of Bluetooth address.
In addition, in above-mentioned example, also can use both sides to exchange random number and replace both sides to exchange PKI, subsequent calculations does not use public-key.
Embodiment 2
The present embodiment provides a kind of bluetooth equipment, the operation that can carry out for realizing the first bluetooth equipment in embodiment 1 or the second bluetooth equipment.Fig. 4 is the schematic diagram one of the bluetooth equipment that provides of the embodiment of the present invention 2, and as shown in Figure 4, bluetooth equipment comprises:
Audio interface 41(can be audio jack or audio socket), for being connected with target bluetooth equipment;
Receiver module 42, is connected to audio interface 41, for the first audio signal of exporting by audio interface receiving target bluetooth equipment;
Decoder module 43, is connected to receiver module 42, for the first audio signal is decoded and obtained decoded data;
The first acquisition module 44, is connected to decoder module 43, for obtain the Bluetooth address of target bluetooth equipment from decoded data;
Link block 45(is equivalent to the bluetooth module shown in Fig. 2), be connected to the first acquisition module 44, for being connected with target bluetooth equipment according to the Bluetooth address of target bluetooth equipment;
Transceiver module 46, is connected to link block 45, for sending the first bluetooth authentication information by audio interface to target bluetooth equipment, and/or the second bluetooth authentication information of sending by audio interface of receiving target bluetooth equipment;
Authentication module 47, is connected to transceiver module 46, for based on the first bluetooth authentication information and/or the second bluetooth authentication information, completes certification with target bluetooth equipment.
Above-mentioned bluetooth equipment can also comprise: the first sending module, after the first audio signal by the output of audio interface receiving target bluetooth equipment at receiver module, send the second audio signal by audio interface to target bluetooth equipment, wherein, the second audio signal carries response message.
Above-mentioned bluetooth equipment can also comprise: search module, for searching the pre-stored Bluetooth address of bluetooth equipment, wherein, pre-stored Bluetooth address is to store after the bluetooth equipment first connection that bluetooth equipment is corresponding with pre-stored Bluetooth address; Link block 45, also initiates to connect for the Bluetooth address according to pre-stored; Receiver module 42, also for not being connected to target bluetooth equipment according to pre-stored Bluetooth address at bluetooth equipment, by the first audio signal of audio interface receiving target bluetooth equipment output; Communication module, for being connected to target bluetooth equipment according to pre-stored Bluetooth address at bluetooth equipment, communicates by bluetooth with target bluetooth equipment.
Above-mentioned module is bluetooth equipment required use during as main equipment.Certainly, the bluetooth equipment in the present embodiment can also comprise module as shown in Figure 5, the required use when from equipment that is bluetooth equipment of the module shown in Fig. 5.The module that in Fig. 5, solid line connects can realize in embodiment 1 bluetooth equipment by the mode (1) of its audio interface output audio signal, the module that dotted line connects can embodiment 1 in bluetooth equipment by the implementation (2) of its audio interface output audio signal.
As shown in Figure 5, bluetooth equipment can also comprise:
Modular converter 51, for being converted to data to be encoded to the Bluetooth address of major general's bluetooth equipment;
Coding module 52, is connected to modular converter 51, obtains the 3rd audio signal for data to be encoded are encoded;
Memory module 53, is connected to coding module 52, for storing the 3rd audio signal obtaining through conversion, coding; Memory module 53 can also be used for storing the Bluetooth address of the equipment being connected by bluetooth with this bluetooth equipment, can after first connection, store;
The second acquisition module 54, is connected to memory module 53, the 3rd audio signal of storing for obtaining memory module 53;
Output module 55, is connected to coding module 52 and the second acquisition module 54, the 3rd audio signal that the 3rd audio signal obtaining for encoding by audio interface output encoder module 52 or the second acquisition module 54 obtain.
Above-mentioned bluetooth equipment can also comprise: the second sending module, for after bluetooth equipment is connected by bluetooth with the opposite end bluetooth equipment that receives the 3rd audio signal, send the 4th audio signal by audio interface to opposite end bluetooth equipment, wherein, the 4th audio signal carries and is used to indicate bluetooth equipment and opposite end bluetooth equipment by the confirmation of bluetooth successful connection.
In the present embodiment, between bluetooth equipment, transmit Bluetooth address by audio interface, complete connection according to this Bluetooth address, thereby avoided the process of discovering device consuming time, realize fast and connecting.In addition, carry out the certification between bluetooth equipment by audio interface, can avoid the information in verification process illegally to be intercepted, ensure the fail safe authenticating between bluetooth equipment.
Certainly, above-mentioned Module Division just a kind of signal is divided, and the present invention is not limited thereto.For example, bluetooth equipment (as main equipment) can only comprise: audio interface, receiver module and link block, receiver module is carried out and received, decodes, obtains relevant function.As long as can realize the Module Division of object of the present invention, all should belong to protection scope of the present invention.
In addition, for both can be used as main equipment, also can be used as the bluetooth equipment from equipment, need to comprise and in the present embodiment, realize the modules of master device functionality and realize the modules from functions of the equipments.Certainly, if some equipment only needs as main equipment, this equipment can only comprise the module that realizes master device functionality, and in like manner, if some equipment only needs as from equipment, this equipment can only comprise the module realizing from functions of the equipments.
Any process of otherwise describing in flow chart or at this or method are described and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with being stored in software or the firmware carried out in memory and by suitable instruction execution system.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic for data-signal being realized to the logic gates of logic function, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment within the scope of the invention in the situation that not departing from principle of the present invention and aim, amendment, replacement and modification.Scope of the present invention is by claims and be equal to and limit.

Claims (10)

1. a bluetooth equipment authentication method, is characterized in that, comprising:
The audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, described the first bluetooth equipment receives the first audio signal of described the second bluetooth equipment output by its audio interface, and described the first audio signal is decoded and obtained decoded data;
Described the first bluetooth equipment obtains the Bluetooth address of described the second bluetooth equipment from described decoded data;
Described the first bluetooth equipment is connected with described the second bluetooth equipment according to the Bluetooth address of described the second bluetooth equipment;
Described the first bluetooth equipment sends the first bluetooth authentication information by described audio interface to described the second bluetooth equipment, and/or described the second bluetooth equipment sends the second bluetooth authentication information by described audio interface to described the first bluetooth equipment;
Based on described the first bluetooth authentication information and/or described the second bluetooth authentication information, between described the first bluetooth equipment and described the second bluetooth equipment, authenticate.
2. method according to claim 1, is characterized in that, receive the first audio signal of described the second bluetooth equipment output by its audio interface at described the first bluetooth equipment before, described method also comprises:
Described the second bluetooth equipment to the Bluetooth address of the second bluetooth equipment described in major general is converted to data to be encoded, described data to be encoded are encoded and obtained described the first audio signal, and export described the first audio signal by the audio interface of described the second bluetooth equipment; Or,
Described the second bluetooth equipment obtains pre-stored described the first audio signal, and exports by the audio interface of described the second bluetooth equipment described the first audio signal of obtaining.
3. method according to claim 1, it is characterized in that, receive the first audio signal of described the second bluetooth equipment output by its audio interface at described the first bluetooth equipment after, described method also comprises: described the first bluetooth equipment sends the second audio signal by its audio interface to described the second bluetooth equipment, wherein, described the second audio signal carries response message.
4. according to the method in any one of claims 1 to 3, it is characterized in that, after described the first bluetooth equipment is connected with described the second bluetooth equipment according to the Bluetooth address of described the second bluetooth equipment, described method also comprises:
Described the second bluetooth equipment sends the 3rd audio signal by its audio interface to described the first bluetooth equipment, wherein, described the 3rd audio signal carries and is used to indicate described the first bluetooth equipment and described the second bluetooth equipment by the confirmation of bluetooth successful connection.
5. according to the method in any one of claims 1 to 3, it is characterized in that, before the audio interface of the first bluetooth equipment is connected with the audio interface of the second bluetooth equipment, described method also comprises:
Described the first bluetooth equipment finds pre-stored Bluetooth address, and initiate to connect according to described pre-stored Bluetooth address, wherein, described pre-stored Bluetooth address is to be stored in described the first bluetooth equipment after its corresponding bluetooth equipment and described the first bluetooth equipment first connection;
If described the first bluetooth equipment is not connected to described the second bluetooth equipment according to described pre-stored Bluetooth address, the audio interface of described the first bluetooth equipment is connected with the audio interface of described the second bluetooth equipment, and described the first bluetooth equipment receives the first audio signal of described the second bluetooth equipment output by its audio interface;
If described the first bluetooth equipment is connected to described the second bluetooth equipment according to described pre-stored Bluetooth address, described the first bluetooth equipment and described the second bluetooth equipment communicate by bluetooth.
6. a bluetooth equipment, is characterized in that, comprising:
Audio interface, for being connected with target bluetooth equipment;
Receiver module, for receiving the first audio signal of described target bluetooth equipment output by described audio interface;
Decoder module, for decoding and obtain decoded data described the first audio signal;
Acquisition module, for obtaining the Bluetooth address of described target bluetooth equipment from described decoded data;
Link block, for being connected with described target bluetooth equipment according to the Bluetooth address of described target bluetooth equipment;
Transceiver module, for sending the first bluetooth authentication information by described audio interface to described target bluetooth equipment, and/or receives the second bluetooth authentication information that described target bluetooth equipment sends by described audio interface;
Authentication module, for based on described the first bluetooth authentication information and/or described the second bluetooth authentication information, completes certification with described target bluetooth equipment.
7. bluetooth equipment according to claim 6, is characterized in that, described bluetooth equipment also comprises:
The first sending module, for receive the first audio signal of described target bluetooth equipment output by described audio interface at described receiver module after, send the second audio signal by described audio interface to described target bluetooth equipment, wherein, described the second audio signal carries response message.
8. according to the bluetooth equipment described in claim 6 or 7, it is characterized in that, described bluetooth equipment also comprises:
Search module, for searching the pre-stored Bluetooth address of described bluetooth equipment, wherein, described pre-stored Bluetooth address is to store after the bluetooth equipment first connection that described bluetooth equipment is corresponding with described pre-stored Bluetooth address;
Described link block, also for initiating to connect according to described pre-stored Bluetooth address;
Described receiver module, also for not being connected to described target bluetooth equipment according to described pre-stored Bluetooth address at described bluetooth equipment, receives the first audio signal of described target bluetooth equipment output by described audio interface;
Communication module, for being connected to described target bluetooth equipment according to described pre-stored Bluetooth address at described bluetooth equipment, communicates by bluetooth with described target bluetooth equipment.
9. according to the bluetooth equipment described in claim 6 or 7, it is characterized in that, described bluetooth equipment also comprises:
Modular converter, for being converted to data to be encoded to the Bluetooth address of bluetooth equipment described in major general;
Coding module, obtains the 3rd audio signal for described data to be encoded are encoded;
Output module, for exporting described the 3rd audio signal by described audio interface.
10. bluetooth equipment according to claim 9, is characterized in that, described bluetooth equipment also comprises:
The second sending module, for after described bluetooth equipment is connected by bluetooth with the opposite end bluetooth equipment that receives described the 3rd audio signal, send the 4th audio signal by described audio interface to described opposite end bluetooth equipment, wherein, described the 4th audio signal carries and is used to indicate described bluetooth equipment and described opposite end bluetooth equipment by the confirmation of bluetooth successful connection.
CN201410156413.9A 2014-04-18 2014-04-18 Bluetooth device authentication method and Bluetooth devices Pending CN103944723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410156413.9A CN103944723A (en) 2014-04-18 2014-04-18 Bluetooth device authentication method and Bluetooth devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410156413.9A CN103944723A (en) 2014-04-18 2014-04-18 Bluetooth device authentication method and Bluetooth devices

Publications (1)

Publication Number Publication Date
CN103944723A true CN103944723A (en) 2014-07-23

Family

ID=51192223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410156413.9A Pending CN103944723A (en) 2014-04-18 2014-04-18 Bluetooth device authentication method and Bluetooth devices

Country Status (1)

Country Link
CN (1) CN103944723A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016202205A1 (en) * 2015-06-16 2016-12-22 阿里巴巴集团控股有限公司 Device connection method, apparatus, and system
CN106354618A (en) * 2016-08-31 2017-01-25 桂林创研科技有限公司 Computer communication control system and method
CN107454878A (en) * 2015-03-27 2017-12-08 欧文股份有限公司 A kind of ecad beacon cigarette lighter
CN108353277A (en) * 2015-09-30 2018-07-31 福西尔集团公司 Systems, devices and methods for exchanging message simultaneously between low-consumption wireless electric installation and multiple communication devices
CN104579435B (en) * 2015-01-26 2018-09-21 河北循证医疗科技股份有限公司 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health
CN108769974A (en) * 2018-09-11 2018-11-06 深圳市沃特沃德股份有限公司 The method and system of bluetooth connection
CN108810697A (en) * 2018-06-14 2018-11-13 歌尔科技有限公司 A kind of method, apparatus and wireless headset of wireless headset pairing
CN111585987A (en) * 2020-04-25 2020-08-25 中信银行股份有限公司 Identity authentication method and device, electronic equipment and computer readable storage medium
CN111615090A (en) * 2020-04-27 2020-09-01 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111629366A (en) * 2020-04-27 2020-09-04 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572636A (en) * 2012-02-03 2012-07-11 杨晓东 Bluetooth system and bluetooth headset
CN102595643A (en) * 2010-11-19 2012-07-18 罗技欧洲股份有限公司 System and method used for connection and pairing of wireless devices
CN103595448A (en) * 2013-10-31 2014-02-19 宇龙计算机通信科技(深圳)有限公司 Bluetooth pairing method and device
CN103716072A (en) * 2013-12-20 2014-04-09 天地融科技股份有限公司 Bluetooth device connection method, master bluetooth device and slave bluetooth device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595643A (en) * 2010-11-19 2012-07-18 罗技欧洲股份有限公司 System and method used for connection and pairing of wireless devices
CN102572636A (en) * 2012-02-03 2012-07-11 杨晓东 Bluetooth system and bluetooth headset
CN103595448A (en) * 2013-10-31 2014-02-19 宇龙计算机通信科技(深圳)有限公司 Bluetooth pairing method and device
CN103716072A (en) * 2013-12-20 2014-04-09 天地融科技股份有限公司 Bluetooth device connection method, master bluetooth device and slave bluetooth device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579435B (en) * 2015-01-26 2018-09-21 河北循证医疗科技股份有限公司 It is a kind of to check more masters of integrated box mostly from Bluetooth communication method for portable health
CN107454878A (en) * 2015-03-27 2017-12-08 欧文股份有限公司 A kind of ecad beacon cigarette lighter
CN106332075A (en) * 2015-06-16 2017-01-11 阿里巴巴集团控股有限公司 Equipment connection method, device and system
WO2016202205A1 (en) * 2015-06-16 2016-12-22 阿里巴巴集团控股有限公司 Device connection method, apparatus, and system
CN108353277A (en) * 2015-09-30 2018-07-31 福西尔集团公司 Systems, devices and methods for exchanging message simultaneously between low-consumption wireless electric installation and multiple communication devices
CN106354618A (en) * 2016-08-31 2017-01-25 桂林创研科技有限公司 Computer communication control system and method
CN108810697A (en) * 2018-06-14 2018-11-13 歌尔科技有限公司 A kind of method, apparatus and wireless headset of wireless headset pairing
CN108769974A (en) * 2018-09-11 2018-11-06 深圳市沃特沃德股份有限公司 The method and system of bluetooth connection
CN108769974B (en) * 2018-09-11 2021-09-21 深圳市沃特沃德信息有限公司 Bluetooth connection method and system
CN111585987A (en) * 2020-04-25 2020-08-25 中信银行股份有限公司 Identity authentication method and device, electronic equipment and computer readable storage medium
CN111585987B (en) * 2020-04-25 2022-10-25 中信银行股份有限公司 Identity authentication method and device, electronic equipment and computer readable storage medium
CN111615090A (en) * 2020-04-27 2020-09-01 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device
CN111629366A (en) * 2020-04-27 2020-09-04 Oppo(重庆)智能科技有限公司 Interaction method and device between Bluetooth devices, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN103944723A (en) Bluetooth device authentication method and Bluetooth devices
US11050615B2 (en) Apparatus and method for seamless commissioning of wireless devices
US9521642B2 (en) Configuration of a new enrollee device for use in a communication network
CN104602364B (en) The method and wireless device, intelligent terminal of wireless device connection wireless access point
US9628585B2 (en) Systems and methods for cross-layer secure connection set up
CN102387501B (en) Secure wireless link between two devices using probes
CN103812536A (en) Bluetooth equipment connecting method and Bluetooth equipment
US11757874B2 (en) Mutual authentication system
CN110235424A (en) For providing the device and method with managing security information in a communications system
EP3058694B1 (en) Establishing a secure connection between a master device and a slave device
CN111554008B (en) Digital key binding method, digital key verification method, mobile electronic equipment and near field communication device
US20070116293A1 (en) Method for establishing a communication key between subscribers of a wirelessly operating communication system
CN104427501A (en) Network access method, device and system
CN104427471A (en) Method for automatically establishing connection of mobile network and terminal
CN103716072A (en) Bluetooth device connection method, master bluetooth device and slave bluetooth device
WO2018049892A1 (en) Data transmission method and apparatus, and terminal
TW201636862A (en) Data transmission method and device
CN103812535A (en) Bluetooth equipment connecting method and Bluetooth equipment
CN112260780B (en) Network access method, device and system
WO2014156100A1 (en) Method for providing wireless communication access, first device and medium
CN104754580A (en) Smart household device connecting method and smart terminal
CN105306197B (en) Method and device for coupling two communication partners
CN112954655A (en) Bluetooth device authentication method and Bluetooth device
KR20190047557A (en) Earphone Device for Providing OTP by using Asynchronous Local Area Radio Communication
KR101070388B1 (en) Wireless data telecom method using received signal strength indicator and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140723

RJ01 Rejection of invention patent application after publication