CN103595448A - Bluetooth pairing method and device - Google Patents

Bluetooth pairing method and device Download PDF

Info

Publication number
CN103595448A
CN103595448A CN 201310533894 CN201310533894A CN103595448A CN 103595448 A CN103595448 A CN 103595448A CN 201310533894 CN201310533894 CN 201310533894 CN 201310533894 A CN201310533894 A CN 201310533894A CN 103595448 A CN103595448 A CN 103595448A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
bluetooth
device
pairing
bluetooth device
according
Prior art date
Application number
CN 201310533894
Other languages
Chinese (zh)
Inventor
苏志广
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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

Links

Abstract

The invention is suitable for the technical field of communications, and provides a Bluetooth pairing method. The Bluetooth pairing method comprises the steps that a sending terminal converts a Bluetooth pairing interaction signal into a sound wave of the corresponding frequency to be sent; after receiving the sound wave, a receiving terminal converts the sound wave into an interaction signal; the receiving terminal searches a Bluetooth device which can be paired according to the interaction signal. The invention further provides a Bluetooth pairing device correspondingly. By means of the Bluetooth pairing method and device, Bluetooth terminals can be paired rapidly under the situation of not additionally arranging peripheral units, and operation is easy.

Description

蓝牙配对方法及装置技术领域 Bluetooth pairing method and apparatus TECHNICAL FIELD

[0001] 本发明涉及通信技术领域,尤其涉及一种蓝牙配对方法及装置。 [0001] The present invention relates to communication technologies, and particularly to a method and apparatus for Bluetooth pairing.

背景技术 Background technique

[0002] 随着通信技术的发展,各种移动终端之间的交互、数据传输业务已相当普及,而这些应用离不开短距离配对通信技术。 [0002] With the development of communication technology, the interaction between the various mobile terminals, the data transmission service has become quite common, and these applications can not be separated a short distance communication technology pairing. 现有的移动终端配对的方法有NFC(NearField Communication,近距离无线通讯)快速配对,及界面输入PIN码(PersonalIdentification Number,个人识别密码)配对。 Conventional pairing method of a mobile terminal with a NFC (NearField Communication, NFC) fast matching, and the interface enter the PIN code (PersonalIdentification Number, personal identification code) pair.

[0003] 对于NFC的配对方式,需两台移动终端都具有NFC设备,增加成本;而对于PIN码的输入配对则速度相对缓慢,用户体验不高。 [0003] For the NFC pairing, the mobile terminal needs to have two NFC devices, an increase in cost; for a PIN code input match the relatively slow speed, the user experience is not high.

[0004] 综上可知,现有的终端配对的方法,在实际使用上显然存在不便与缺陷,所以有必要加以改进。 [0004] To sum up, the conventional method of mating terminals, there is clearly problems and disadvantages in practical use, it is necessary to be improved.

发明内容 SUMMARY

[0005] 针对上述的缺陷,本发明的目的在于提供一种蓝牙配对方法及装置,其可以在不增加外围设备的情况下,完成快速配对,且操作简单。 [0005] In view of the above drawbacks, an object of the present invention is to provide a method and apparatus for Bluetooth pairing, which can be increased without the peripheral device, the pairing is completed quickly, and easy to operate.

[0006] 为了实现上述目的,本发明提供一种蓝牙配对方法,所述方法包括: [0006] To achieve the above object, the present invention provides a Bluetooth pairing, the method comprising:

[0007] 发送端将蓝牙配对交互信令转换为对应频率的声波进行发送; [0007] The Bluetooth pairing interactions transmitting side transmits a signaling convert sound waves corresponding to frequencies;

[0008]接收端接收到所述声波后将所述声波转换为交互信令; [0008] The receiving end receives the sound wave after the sound wave is converted to a signaling interaction;

[0009] 所述接收端根据所述交互信令搜索可以配对的蓝牙设备。 [0009] The receiving end of the signaling interaction Bluetooth device can be paired based search.

[0010] 根据本发明的蓝牙配对方法,所述交互信令包括所述发送端的PIN码和MAC地址。 [0010] The Bluetooth pairing method of the present invention, the interaction of signaling comprises the sending end and the MAC address of the PIN code.

[0011] 根据权本发明的蓝牙配对方法,所述接收端根据所述交互信令搜索可以配对的蓝牙设备步骤包括: [0011] The Bluetooth pairing method of the present invention is right, according to the receiving end of the signaling interaction step Bluetooth device pairing search may include:

[0012] 所述接收端遍历搜索到的蓝牙设备列表,获取匹配的所述MAC地址; [0012] The receiving end of the traversal list of the searched Bluetooth devices, matching the MAC address acquired;

[0013] 通过所述PIN码与匹配的MAC地址蓝牙设备配对。 [0013] By matching the PIN code matching MAC address and Bluetooth devices.

[0014] 根据权本发明的蓝牙配对方法,所述发送端将蓝牙配对交互信令按编码规则转换为对应频率的声波步骤之前进一步包括: [0014] The Bluetooth pairing method of the present invention, the right, the sending end converts the Bluetooth pairing interaction signaling according to a coding rule before the corresponding acoustic frequency further comprises the step of:

[0015] 根据预设设置检测所述蓝牙设备为发送端或接收端。 [0015] According to the preset setting detecting Bluetooth device to transmit or receiver.

[0016] 根据权本发明的蓝牙配对方法,所述根据预设设置检测所述蓝牙设备为发送端或接收端步骤包括: [0016] The Bluetooth pairing method of the present invention, the right, the predetermined detection provided according to the Bluetooth device to transmit or a receiver comprising the step of:

[0017] 至少两台所述蓝牙设备均通过第一信号进行播放和侦听,且侦听时间为随机长度的连续时间; [0017] The at least two Bluetooth devices are listening for the first signal and playback, and the sense time of continuous random length of time;

[0018] 若第一蓝牙设备先进入侦听状态,且所述第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间超过预定时间,则确定所述第一蓝牙设备为所述接收端,所述第二蓝牙设备为所述发送端。 [0018] When the first Bluetooth device first enters the listening state, and the first Bluetooth device listens to the duration of the first signal of the second Bluetooth device exceeds the predetermined time, determining that the first device is a Bluetooth a receiving end, the second Bluetooth device to the sending end.

[0019] 本发明还提供一种蓝牙配对装置,包括作为发送端和接收端的至少两个蓝牙设备,所述蓝牙设备至少包括: [0019] The present invention also provides a Bluetooth pairing means comprising at least two Bluetooth devices as a transmitting end and a receiving end, the Bluetooth device comprising at least:

[0020] 数据转换模块,用于将蓝牙配对交互信令转换为对应频率的声波,或将所述声波转换为对应的蓝牙配对交互信令; [0020] The data conversion module, Bluetooth pairing interaction signaling for converting sound waves corresponding to frequencies, or converting the sound waves into corresponding signaling Bluetooth pairing interactions;

[0021] 声波收发模块,用于接收或发送所述声波; [0021] wave transceiver module for transmitting or receiving said acoustic wave;

[0022] 蓝牙配对模块,用于根据所述交互信令搜索可以配对的蓝牙设备。 [0022] Bluetooth pairing module, configured to search, according to the interaction signaling paired Bluetooth devices.

[0023] 根据本发明的蓝牙配对装置,所述交互信令包括所述发送端的PIN码和MAC地址。 [0023] Bluetooth pairing apparatus according to the present invention, the interaction signaling comprises the sending end and the MAC address of the PIN code.

[0024] 根据本发明的蓝牙配对装置,所述蓝牙配对模块包括: [0024] Bluetooth pairing device according to the invention, the Bluetooth pairing module comprising:

[0025] 搜索子模块,用于遍历搜索蓝牙设备列表,获取匹配的所述MAC地址; [0025] searching sub-module, configured to traverse search for Bluetooth device list matches the MAC address acquired;

[0026] 配对子模块,用于通过所述PIN码与匹配的MAC地址蓝牙设备配对。 [0026] The paired sub-module, the MAC address for Bluetooth pairing by the PIN code matching device.

[0027] 根据本发明的蓝牙配对装置,所述蓝牙设备包括: [0027] Bluetooth pairing device according to the invention, the Bluetooth device comprising:

[0028] 检测模块,用于根据预设设置检测所述蓝牙设备为发送端或接收端。 [0028] detection means for detecting the preset setting according to the Bluetooth device to transmit or receiver.

[0029] 根据本发明的蓝牙配对装置,所述声波收发模块进一步用于通过第一信号进行播放和侦听,且侦听时间为随机长度的连续时间; [0029] Bluetooth pairing device according to the invention, the sound wave transceiver module is further used for playing and listening through the first signal, and the sense time of continuous random length of time;

[0030] 所述检测模块进一步用于检测先进入侦听状态的第一蓝牙设备的侦听时间,若所述第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间超过预定时间,则确定所述第一蓝牙设备为所述接收端,所述第二蓝牙设备为所述发送端。 [0030] the listening time detecting module for detecting a further first enters listen state a first Bluetooth device, when the first Bluetooth device listens to the duration of the first signal exceeds a second predetermined time Bluetooth device determining that the first Bluetooth device to the receiving end, the second Bluetooth device to the sending end.

[0031] 本发明通过发送端将蓝牙配对的交互信令转换为声波进行播放,接收端收到该声波后再将其转换为交互信令,并根据交互信念搜索可以配对的蓝牙设备。 [0031] The present invention, by pairing a Bluetooth terminal transmitting signaling interaction converted to acoustic playing, the receiver receives the acoustic wave and then converts it to interact with signaling, and according to the interaction belief can search paired Bluetooth devices. 优选的是,所述交互信令包括发送端生成的PIN码及MAC地址,所述接收端遍历搜索到的蓝牙设备列表,获取匹配的所述MAC地址,通过所述PIN码与匹配的MAC地址蓝牙设备配对。 Preferably, the interaction includes sending end signaling generated PIN code and the MAC address, to the receiving end of traversal search list of Bluetooth devices, matching the acquired MAC address, the MAC address and PIN code match Bluetooth device pairing. 借此,本发明可以在不增加外围设备的情况下,完成快速配对,且操作简单。 Accordingly, the present invention can be made without increasing the peripheral device, the pairing is completed quickly, and easy to operate.

附图说明 BRIEF DESCRIPTION

[0032] 图1是本发明一实施例的蓝牙配对装置的结构示意图; [0032] FIG. 1 is a schematic structural diagram of a Bluetooth device according to an embodiment of the present invention, pairing;

[0033] 图2是本发明另一实施例的蓝牙配对装置的结构示意图; [0033] FIG. 2 is another embodiment of the present invention, Bluetooth device pairing structural diagram;

[0034] 图3是本发明一实施例的信号播放及接收波形示意图; [0034] FIG. 3 is a signal reception and play embodiment of the present invention is a waveform diagram illustrating an embodiment;

[0035] 图4是本发明另一实施例的信号播放及接收波形示意图; [0035] FIG 4 is a signal player according to another embodiment of the present invention and received waveform diagram;

[0036] 图5是本发明一实施例的蓝牙配对方法流程图; [0036] FIG. 5 is a Bluetooth pairing method of the present invention, an embodiment of a flow chart;

[0037] 图6是本发明一实施例的蓝牙配对前的握手方法流程图。 [0037] FIG. 6 is a handshake method for pairing a Bluetooth former embodiment of the present invention a flowchart.

具体实施方式 Detailed ways

[0038] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 [0038] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0039] 参见图1,本发明提供了一种蓝牙配对装置,其包括至少两个蓝牙设备:发送端10和接收端20。 [0039] Referring to Figure 1, the present invention provides a Bluetooth pairing device, which comprises at least two Bluetooth devices: sending end and a receiving end 10 20. 需要说明的是,本发明所述的发送端10和接收端20,可以是具有相同蓝牙功能移动终端,发送端10不仅仅可以发送信号,也可以进行接收,同样的,接收端20也不仅仅用于接收信号,其也可以作为发送方发送信号。 Incidentally, the sending end and the receiving end 10 of the present invention 20, the same may be a Bluetooth-enabled mobile terminal, the transmit end can not transmit a signal 10, may receive the same, the receiver 20 may not It means for receiving a signal, which may be the sender as a transmission signal. 具体的,本发明所述的蓝牙设备包括数据转换模块30、声波收发模块40以及蓝牙配对模块50,其中:[0040] 数据转换模块30,用于将蓝牙配对交互信令转换为对应频率的声波,或将所述声波转换为对应的蓝牙配对交互信令。 Specifically, the present invention includes a data conversion module Bluetooth device 30, the sound wave transceiver module 40 and pairing a Bluetooth module 50, in which: [0040] The data conversion module 30 for Bluetooth pairing interaction signaling into corresponding acoustic frequency, or the acoustic waves into corresponding signaling Bluetooth pairing interactions.

[0041] 本实施例所述的蓝牙配对交互信令包括发送端10的PIN码及MAC地址,其中,PIN码可以由发送端10自动随机生成,也可以由用户设置,本发明优选采用发送端10自动生成四位随机的PIN码。 [0041] Bluetooth pairing interaction of the present embodiment comprises a signaling the transmission end 10 of the PIN code and the MAC address, wherein, the PIN code 10 may be automatically generated randomly by the sender may be provided by the user, the present invention preferably uses the transmitting end 10 automatically generates four random PIN code. 本发明所述的声波频率为20KHZ以上,本实施例中可以选定16个声波频率比如20KHz~35KHz,分别对应OxO-OxF的数字,如下表所示,表格第二行单位均为KHz。 The acoustic frequency of 20KHZ present invention above, the present embodiment 16 can be selected such acoustic frequency 20KHz ~ 35KHz, digital OxO-OxF respectively, as shown in the table below, the second line of the table units are KHz.

[0042] [0042]

Figure CN103595448AD00051

[0043] 发送端10发送交互信令之前,随机生成4位PIN码,数据转换模块30按预设规则把PIN码转换为对应频率的声波,同时也将发送端10的MAC地址转换为对应频率的声波。 Before [0043] 10 transmitting side transmits a signaling interaction, four randomly generated PIN code, the data conversion module 30 according to a preset rule to convert the PIN code corresponding to the acoustic wave frequency, while the MAC address 10 is converted to a frequency corresponding to the transmitting end sound waves. 比如,在一具体实施例中,发送端生成的PIN码为3685,则将转换为频率23ΚΗζ、26ΚΗζ、28ΚΗζ、25ΚΗζ的几组频率的声波。 For example, in one particular embodiment, the transmitting end is generated PIN code 3685, a frequency, 26ΚΗζ, several groups of acoustic frequency 28ΚΗζ, 25ΚΗζ the 23ΚΗζ will be converted. 发送端MAC地址为00:58:27:43:2Α:3Β则对应转换的声波频率:20Κ 20Κ:25Κ 28Κ:22Κ 27Κ:24Κ 23Κ:22Κ 30Κ:23Κ 31Κ,二者组合后为:3685005827432Α3Β。 Sender MAC address is 00: 58: 27: 43: 2Α: 3Β corresponding to the acoustic frequency conversion: 20Κ 20Κ: 25Κ 28Κ: 22Κ 27Κ: 24Κ 23Κ: 22Κ 30Κ: 23Κ 31Κ, the combination of both: 3685005827432Α3Β.

[0044] 接收端20接收到声波后进行数据转换,将其转换为PIN码及MAC地址,该过程为上述转换的逆过程,故在此不再赘述。 After [0044] receiving terminal 20 receives the acoustic data conversion, converts it to the MAC address and PIN code, the conversion process is the reverse process of the above, it is not repeated here.

[0045] 声波收发模块40,用于接收或发送所述声波。 [0045] The wave transceiver module 40, for transmitting or receiving the acoustic wave.

[0046] 发送端10通过该声波收发模块40发送声波时,其对于PIN码及MAC地址对应的频率声波,每个数字频率发送播放持续一段时间,结合图3,两个频率之间设置Ims短静音作为分割区分。 When [0046] 10 40 transmit sound waves through the sound wave transceiver module sends the terminal, the PIN code for frequency sound waves and the MAC address corresponding to the transmission frequency of each digital playback period of time, in conjunction with FIG. 3, is provided between the two frequencies is short Ims mute distinguished as a division. 当声波收发模块40播放完PIN码和MAC地址后,有5ms长静音,表示一次数据传输完成,然后开始下一次传送,如此循环完成交互信令的发送。 When the wave transceiver module 40 finishes playing the PIN and MAC address, there is 5ms long silence, showing a data transfer is completed, then the next transfer begins, so the cycle is completed transmitting signaling interaction. 接收端20通过声波收发模块侦听到声音后,持续进行录音,并对录音进行音频分析。 After listening to the receiving end 20 through the sound wave transceiver module for recording, and recording of audio analysis. 因为每个码率之间有Ims短静音,每次传完PIN和MAC也有5ms长静音,因此很易将PIN码和MAC地址分离出来,然后而经数据转换模块30的频谱分析,把声波转为数字,即得到PIN码和MAC地址。 Because there Ims short silence between each code rate, PIN and MAC After each pass there 5ms long silence, so it is easy to separate the PIN and MAC addresses, then the data is converted by the spectrum analysis module 30, the acoustic transfer digital, i.e., to obtain a MAC address and PIN code.

[0047] 蓝牙配对模块50,用于根据所述交互信令搜索可以配对的蓝牙设备。 [0047] Bluetooth pairing module 50, according to the signaling interaction can search paired Bluetooth devices.

[0048] 实际应用中,该蓝牙配对模块50包括搜索子模块51及配对子模块52,其中: [0048] In practice, the Bluetooth pairing module 50 includes a search and matching sub-module 51 sub-module 52, wherein:

[0049] 搜索子模块51,用于遍历搜索蓝牙设备列表,获取匹配的所述MAC地址。 [0049] The search sub-module 51, configured to traverse the list to search for Bluetooth devices, matching the acquired MAC address.

[0050] 配对子模块52,用于通过所述PIN码与匹配的MAC地址蓝牙设备配对。 [0050] The sub-module 52 match, the PIN code for pairing with the matching MAC address of the Bluetooth device.

[0051 ] 接收端20从自身的蓝牙设备列表中查找到与获取的MAC地址对应的蓝牙设备,然后接收端20将自身的MAC地址以及从发送端10获取的PIN码,以送到发送端10,借此建立连接完成蓝牙配对,如果发送端10的环境具有多个接收端20,则可以根据各个接收端20不同的MAC地址区分并建立连接。 [0051] from the receiving end 20 to find their own list of Bluetooth devices to acquire the MAC address corresponding to the Bluetooth device 20 then receives the own MAC address and PIN code acquired from the transmission side terminal 10 to terminal 10 to the transmission and to establish a connection completion Bluetooth pairing, if the transmission environment 10 having a plurality of terminal receiving end 20, according to the respective receiving end to distinguish between 20 different MAC address and establish a connection.

[0052] 本发明利用声音(声波频段,人耳不可听)进行蓝牙配对,可完成快速配对,操作简单,而且不增加硬件成本,低端手机甚至非智能手机平台都可以实现。 [0052] The present invention utilizes sound (acoustic band, the human ear can not hear) Bluetooth pairing, pairing can be done fast, simple, and no additional hardware cost, low-end mobile phones and even non-smart phone platform can be achieved.

[0053] 再参见图2,本发明的另一实施例中,蓝牙设备还包括: [0053] Referring again to Figure 2, another embodiment of the present invention, the Bluetooth device further comprising:

[0054] 检测模块60,用于根据预设设置检测所述蓝牙设备为发送端10或接收端20。 [0054] The detection module 60 for detecting the preset setting according to the Bluetooth device 10 is a transmitting end or receiving end 20. 具体的,各蓝牙设备通过检测模块60进行配对前握手处理,借此确定当前蓝牙设备是作为发送端10或接收端20。 Specifically, each of the Bluetooth device pairing handshake process before a detection module 60, thereby to determine the current Bluetooth terminal device 10 as a transmitting or receiving end 20.

[0055] 本发明通过首先播放声音一段时间,然后停止播放,并进入侦听状态。 [0055] The present invention is made by first playing a sound period of time, then stops, and enters the listening state. 侦听持续时间是随机性的,本实施例在I〜50ms之间进行随机选择。 Listening duration random, the present embodiment randomly selects between I~50ms. 如果蓝牙设备在侦听期间没发现有声波,则进入播放声音状态,如此不断循环播放和侦听的动作,如图4所示,由于侦听时间是随机性的,所以两台蓝牙设备总会找到一个侦听的时间段,侦听到对方发出的声音,具体过程描述如下: If the Bluetooth device not found during the listening sound waves, then enter the state to play a sound, so the cycle of movement of players and listeners, shown in Figure 4, because the listening time is random, so there is always two Bluetooth devices find a period of time listening, listening to the sound emitted by the other party, specifically described as follows:

[0056] 本实施例中,各蓝牙设备的声波收发模块40通过第一信号(本实施例中采用频率为36KHz的Request信号)进行播放和侦听,且侦听时间为随机长度的连续时间;检测模块60检测先进入侦听状态的第一蓝牙设备的侦听时间,若第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间超过预定时间(本实施例中为1ms),则确定所述第一蓝牙设备为接收端20,所述第二蓝牙设备为发送端10。 [0056] In this embodiment, the Bluetooth devices of each wave transceiver module 40 (in this embodiment Request signal with a frequency of 36KHz) play and listening, listening time and continuous-time random length by a first signal; first detecting module 60 detects a state of listening to the listening time of the first Bluetooth device, when the first Bluetooth device listens to the duration of the first signal of the second Bluetooth device exceeds a predetermined time (in this embodiment as 1ms), determining that the first Bluetooth device is the receiver 20, the second Bluetooth device 10 to the transmitting end. 第一蓝牙设备发现自己为接收端20后,持续播第二信号(本实施例中为37KHz的Response信号)一段时间通知第二蓝牙设备,然后进入侦听状态,等待第二蓝牙设备发送PIN码和MAC地址,第二蓝牙设备侦听到第二信号后,准备发送PIN码和MAC地址,此时配对前握手完成。 The first Bluetooth device found themselves receiving end 20 for a second broadcast signal (Response signal 37KHz embodiment of the present embodiment) second Bluetooth device notification period, and then enters the listening state, waiting for the second Bluetooth device transmits a PIN and the MAC address, the second Bluetooth apparatus after listening to the second signal, is ready to send the PIN and MAC address pair handshake is completed before this time.

[0057] 参见图5,本发明提供了一种蓝牙配对方法,其可以通过如图1所示的蓝牙配对装置100实现,该方法包括: [0057] Referring to Figure 5, the present invention provides a method for Bluetooth pairing, which can be a Bluetooth pairing device 100 is implemented as shown in FIG. 1, the method comprising:

[0058] 步骤S501,发送端10将蓝牙配对交互信令转换为对应频率的声波进行发送。 [0058] step S501, the terminal 10 transmits the Bluetooth pairing interaction signaling into sound waves corresponding to the transmission frequency.

[0059] 本实施例所述的蓝牙配对交互信令包括发送端10的PIN码及MAC地址,其中,PIN码可以由发送端10自动随机生成,也可以由用户设置,本发明优选采用发送端10自动生成四位随机的PIN码。 Bluetooth pairing interaction signaling [0059] Example of the present embodiment includes a transmitting terminal 10 of the PIN code and the MAC address, wherein, the PIN code 10 may be automatically generated randomly by the sender may be provided by the user, the present invention preferably uses the transmitting end 10 automatically generates four random PIN code. 发送端10发送交互信令之前,随机生成4位PIN码,并按预设规则把PIN码转换为对应频率的声波,同时也将发送端10的MAC地址转换为对应频率的声波,然后进行发送播放。 Before transmitting side 10 transmits a signaling interaction, four randomly generated PIN code, according to a preset rule, the PIN code into sound waves corresponding to frequencies, but also transmits the MAC address 10 is converted into sound waves corresponding to a frequency, then transmitted play.

[0060] 步骤S502,接收端20接收到所述声波后将所述声波转换为交互信令。 [0060] step S502, the receiving terminal 20 receives the sound wave after the sound wave is converted to a signaling interaction. 接收端20具有数据转换模块,可以将接收到的声波信号转换为原始的PIN码和MAC地址,借此获取到发送端10的信息。 Receiving end 20 has a data conversion module may convert the received acoustic signals into original MAC address and PIN code, thereby obtaining the information of the transmitting side 10. 需要说明的是,本发明所述的PIN码和MAC地址与声波之间的转换规则可以人为设定,转换频率不影响数据的接收,但本发明考虑到噪声问题,采用20KHz以上的声波进行传输,不会造成声音污染。 Incidentally, the conversion rule between the PIN code of the present invention and the MAC address may be manually set the acoustic wave, the switching frequency does not affect the data received, the present invention contemplates the noise problem, a sound wave transmission above 20KHz will not cause sound pollution.

[0061] 步骤S503,接收端20根据所述交互信令搜索可以配对的蓝牙设备。 [0061] step S503, the Bluetooth device 20 may search based on the interaction signaling pair receiving end.

[0062] 实际应用中,接收端20接收到交互信令后,遍历搜索蓝牙设备列表,获取匹配的所述MAC地址,然后通过所述PIN码与匹配的MAC地址蓝牙设备配对。 After [0062] In practice, the receiver 20 receives signaling interactions, traversal search list of Bluetooth devices, the acquired MAC address matches, then the PIN code by pairing with the matching MAC address of the Bluetooth device. 具体的,接收端20从自身的蓝牙设备列表中查找到与获取的MAC地址对应的蓝牙设备,然后接收端20将自身的MAC地址以及从发送端10获取的PIN码,以送到发送端10,借此建立连接完成蓝牙配对,如果发送端10的环境具有多个接收端20,则可以根据各个接收端20不同的MAC地址区分并建立连接。 Specifically, from the receiving end 20 to find their own list of Bluetooth devices to acquire the MAC address corresponding to the Bluetooth device 20 then receives the own MAC address and PIN code acquired from the transmission side terminal 10 to terminal 10 to the transmission and to establish a connection completion Bluetooth pairing, if the transmission environment 10 having a plurality of terminal receiving end 20, according to the respective receiving end to distinguish between 20 different MAC address and establish a connection.

[0063] 本发明利用声音(声波频段,人耳不可听)进行蓝牙配对,可完成快速配对,操作简单,而且不增加硬件成本,低端手机甚至非智能手机平台都可以实现。 [0063] The present invention utilizes sound (acoustic band, the human ear can not hear) Bluetooth pairing, pairing can be done fast, simple, and no additional hardware cost, low-end mobile phones and even non-smart phone platform can be achieved.

[0064] 参见图6,本发明提供了一种蓝牙配对前的握手方法,该方法是根据预设设置检测蓝牙设备为发送端或接收端,其具体包括:[0065] 步骤S601,各蓝牙设备通过第一信号(本实施例中采用频率为36KHz的Request信号)进行播放和侦听,且侦听时间为随机长度的连续时间,本发明设置为Ims〜50ms。 [0064] Referring to Figure 6, the present invention provides a method of handshake before a Bluetooth pairing, which is set according to a preset detection Bluetooth device to transmit or receiver, which comprises: [0065] step S601, the Bluetooth devices of each through the first signal (in this embodiment Request signal with a frequency of 36KHz) play and listening, listening time and continuous-time random length, the present invention is to Ims~50ms.

[0066] 步骤S602,检测先进入侦听状态的第一蓝牙设备的侦听时间。 [0066] step S602, the listener enters the listening state to the detection time of the first Bluetooth device.

[0067] 步骤S603,判断所述第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间是否超过预定时间(本实施例中为1ms),若是则执行步骤S604,否则返回继续侦听与播放。 [0067] step S603, the first Bluetooth device determines the duration of the first listens to the signal of the second Bluetooth device exceeds a predetermined time (in this embodiment as 1ms), if yes, perform step S604, the continued investigation otherwise listen to and play.

[0068] 步骤S604,确定第一蓝牙设备为接收端,并且该接收端20持续播第二信号(本实施例中为37KHz的Response信号)一段时间通知第二蓝牙设备,然后进入侦听状态。 [0068] step S604, the Bluetooth device determining a first receiving end, the receiving end 20 and a second continuous broadcast signal (Response signal 37KHz embodiment of the present embodiment) second Bluetooth device notification period, and then enters the listening state.

[0069] 步骤S605,第二蓝牙设备侦听到第二信号后,准备发送PIN码和MAC地址。 [0069] step S605, the second Bluetooth apparatus after listening to the second signal, is ready to send the PIN and MAC address.

[0070] 完成上述过程后,即确定了发送端10和接收端20,然后进入图5所示实施例的蓝牙配对过程。 After [0070] completing the above process, i.e., it determines the transmission terminal 10 and the receiving end 20, and then enters the Bluetooth pairing process embodiment of Example 5 shown in FIG.

[0071] 综上所述,本发明通过发送端将蓝牙配对的交互信令转换为声波进行播放,接收端收到该声波后再将其转换为交互信令,并根据交互信念搜索可以配对的蓝牙设备。 [0071] In summary, the present invention is the transmitting side by the Bluetooth pairing interactions play acoustic signaling is converted, after the receiver receives the acoustic wave to convert it to interact with signaling, and can be paired in accordance with the interactive search belief Bluetooth devices. 优选的是,所述交互信令包括发送端生成的PIN码及MAC地址,所述接收端遍历搜索到的蓝牙设备列表,获取匹配的所述MAC地址,通过所述PIN码与匹配的MAC地址蓝牙设备配对。 Preferably, the interaction includes sending end signaling generated PIN code and the MAC address, to the receiving end of traversal search list of Bluetooth devices, matching the acquired MAC address, the MAC address and PIN code match Bluetooth device pairing. 借此,本发明可以在不增加外围设备的情况下,完成快速配对,且操作简单。 Accordingly, the present invention can be made without increasing the peripheral device, the pairing is completed quickly, and easy to operate.

[0072]当然,本发明还可有其它多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 [0072] Of course, the present invention may have a variety of other embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding modifications and variations according to the present invention, but these corresponding changes and variations should fall within the scope of the appended claims.

Claims (10)

1.一种蓝牙配对方法,其特征在于,所述方法包括: 发送端将蓝牙配对交互信令转换为对应频率的声波进行发送; 接收端接收到所述声波后将所述声波转换为交互信令; 所述接收端根据所述交互信令搜索可以配对的蓝牙设备。 CLAIMS 1. A method for Bluetooth pairing, wherein the method comprises: sending end converts the Bluetooth pairing interaction signaling is transmitted corresponding to the acoustic frequency; receiving end receives the sound wave after the sound wave is converted into the interaction channel order; Bluetooth signaling search apparatus according to the interaction of the receiving end can be paired.
2.根据权利要求1所述的蓝牙配对方法,其特征在于,所述交互信令包括所述发送端的PIN码和MAC地址。 2. The method according to Bluetooth pairing according to claim 1, wherein the signaling interaction comprises the transmitting side MAC address and PIN code.
3.根据权利要求2所述的蓝牙配对方法,其特征在于,所述接收端根据所述交互信令搜索可以配对的蓝牙设备步骤包括: 所述接收端遍历搜索到的蓝牙设备列表,获取匹配的所述MAC地址; 通过所述PIN码与匹配的MAC地址蓝牙设备配对。 The Bluetooth pairing method according to claim 2, wherein said step of receiving terminal according to a Bluetooth device can search the signaling interaction pair comprises: receiving the end of the traversal list of the searched Bluetooth devices, access match the MAC address; paired by matching the PIN code and the MAC address of the Bluetooth device.
4.根据权利要求1所述的蓝牙配对方法,其特征在于,所述发送端将蓝牙配对交互信令按编码规则转换为对应频率的声波步骤之前进一步包括: 根据预设设置检测所述蓝牙设备为发送端或接收端。 4. Bluetooth pairing method of claim 1, wherein the sending end signaling by the Bluetooth pairing interaction is converted to the coding rule before the corresponding acoustic frequency further comprises the step of: setting the Bluetooth device according to a preset detection to transmit or receiver.
5.根据权利要求4所述的蓝牙配对方法,其特征在于,所述根据预设设置检测所述蓝牙设备为发送端或接收端步骤包括: 至少两台所述蓝牙设备均通过第一信号进行播放和侦听,且侦听时间为随机长度的连续时间; 若第一蓝牙设备先进入侦听状态,且所述第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间超过预定时间,则确定所述第一蓝牙设备为所述接收端,所述第二蓝牙设备为所述发送端。 The Bluetooth pairing method according to claim 4, characterized in that, to transmit or a receiver comprising the step of detecting the preset settings according to the Bluetooth device: at least two Bluetooth devices are performed through the first signal play and listening, listening time and continuous-time random length; if the first Bluetooth device first into the listening state, and the first Bluetooth device listens to the duration of the first signal exceeds the predetermined second Bluetooth device time, determining that the first Bluetooth device to the receiving end, the second Bluetooth device to the sending end.
6.一种蓝牙配对装置,包括作为发送端和接收端的至少两个蓝牙设备,其特征在于,所述蓝牙设备至少包括: 数据转换模块,用于将蓝牙配对交互信令转换为对应频率的声波,或将所述声波转换为对应的蓝牙配对交互信令; 声波收发模块,用于接收或发送所述声波; 蓝牙配对模块,用于根据所述交互信令搜索可以配对的蓝牙设备。 A Bluetooth pairing means comprising at least two Bluetooth devices as a transmitting end and a receiving end, characterized in that said Bluetooth device at least comprising: a data conversion module for converting the Bluetooth pairing interaction is a signaling frequency corresponding to the sound wave or the acoustic waves into corresponding signaling Bluetooth pairing interaction; wave transceiver module for transmitting or receiving said acoustic wave; Bluetooth pairing module, a Bluetooth device for signaling according to the interaction of the search can be paired.
7.根据权利要求6所述的蓝牙配对装置,其特征在于,所述交互信令包括所述发送端的PIN码和MAC地址。 7. The Bluetooth pairing device according to claim 6, wherein the signaling interaction comprises the transmitting side MAC address and PIN code.
8.根据权利要求7所述的蓝牙配对装置,其特征在于,所述蓝牙配对模块包括: 搜索子模块,用于遍历搜索蓝牙设备列表,获取匹配的所述MAC地址; 配对子模块,用于通过所述PIN码与匹配的MAC地址蓝牙设备配对。 8. The Bluetooth pairing device according to claim 7, wherein the Bluetooth pairing module comprising: a search sub-module, configured to traverse search for Bluetooth device list matches the MAC address acquired; paired sub-module, configured to by pairing the PIN code matching MAC address of the Bluetooth device.
9.根据权利要求6所述的蓝牙配对装置,其特征在于,所述蓝牙设备包括: 检测模块,用于根据预设设置检测所述蓝牙设备为发送端或接收端。 9. The Bluetooth pairing device according to claim 6, characterized in that, the Bluetooth device comprising: detecting means for detecting the preset setting according to the Bluetooth device to transmit or receiver.
10.根据权利要求9所述的蓝牙配对装置,其特征在于,所述声波收发模块进一步用于通过第一信号进行播放和侦听,且侦听时间为随机长度的连续时间; 所述检测模块进一步用于检测先进入侦听状态的第一蓝牙设备的侦听时间,若所述第一蓝牙设备侦听到第二蓝牙设备的第一信号的持续时间超过预定时间,则确定所述第一蓝牙设备为所述接收端,所述第二蓝牙设备为所述发送端。 10. The Bluetooth pairing device according to claim 9, wherein said wave transceiver module is further used for playing and listening through the first signal, and the sense time of continuous-time random length; the detection module sense time for detecting a further first enters listen state a first Bluetooth device, when the first Bluetooth device listens to the duration of the first signal of the second Bluetooth device exceeds the predetermined time, determining that the first Bluetooth device to the receiving end, the second Bluetooth device to the sending end.
CN 201310533894 2013-10-31 2013-10-31 Bluetooth pairing method and device CN103595448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310533894 CN103595448A (en) 2013-10-31 2013-10-31 Bluetooth pairing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310533894 CN103595448A (en) 2013-10-31 2013-10-31 Bluetooth pairing method and device

Publications (1)

Publication Number Publication Date
CN103595448A true true CN103595448A (en) 2014-02-19

Family

ID=50085450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310533894 CN103595448A (en) 2013-10-31 2013-10-31 Bluetooth pairing method and device

Country Status (1)

Country Link
CN (1) CN103595448A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN104156066A (en) * 2014-07-29 2014-11-19 杨松 Method, device and system for wirelessly receiving upload data by smart mobile terminal
CN104735607A (en) * 2015-02-26 2015-06-24 广东欧珀移动通信有限公司 Data transmission method, mobile terminal and system
CN104764139A (en) * 2015-03-03 2015-07-08 广东美的暖通设备有限公司 Air conditioning and mobile terminal and matching method and system thereof
CN105262727A (en) * 2015-04-10 2016-01-20 威盛电子股份有限公司 Information converting apparatus for converting sound wave information and bluetooth information
CN105577239A (en) * 2015-04-24 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110612A (en) * 2006-07-17 2008-01-23 中兴通讯股份有限公司 Method for long-distance voice communication using blue tooth voice equipment
CN102412869A (en) * 2010-09-21 2012-04-11 国民技术股份有限公司 System and method for fast accessing near field communication with controllable communication range
CN102595643A (en) * 2010-11-19 2012-07-18 罗技欧洲股份有限公司 System and method used for connection and pairing of wireless devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110612A (en) * 2006-07-17 2008-01-23 中兴通讯股份有限公司 Method for long-distance voice communication using blue tooth voice equipment
CN102412869A (en) * 2010-09-21 2012-04-11 国民技术股份有限公司 System and method for fast accessing near field communication with controllable communication range
CN102595643A (en) * 2010-11-19 2012-07-18 罗技欧洲股份有限公司 System and method used for connection and pairing of wireless devices

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944723A (en) * 2014-04-18 2014-07-23 天地融科技股份有限公司 Bluetooth device authentication method and Bluetooth devices
CN104156066A (en) * 2014-07-29 2014-11-19 杨松 Method, device and system for wirelessly receiving upload data by smart mobile terminal
CN104735607A (en) * 2015-02-26 2015-06-24 广东欧珀移动通信有限公司 Data transmission method, mobile terminal and system
CN104735607B (en) * 2015-02-26 2018-05-29 广东欧珀移动通信有限公司 Kinds of data transmission method, a mobile terminal and system
CN104764139A (en) * 2015-03-03 2015-07-08 广东美的暖通设备有限公司 Air conditioning and mobile terminal and matching method and system thereof
CN104764139B (en) * 2015-03-03 2018-03-20 广东美的暖通设备有限公司 The method of pairing a mobile terminal with an air conditioner system, an air conditioner and a mobile terminal
CN105262727A (en) * 2015-04-10 2016-01-20 威盛电子股份有限公司 Information converting apparatus for converting sound wave information and bluetooth information
CN105577239A (en) * 2015-04-24 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
US20100188212A1 (en) Applications for a Two-Way Wireless Speaker System
US20110316664A1 (en) Remote control for sound system
US20080171536A1 (en) System and method for broadcasting an alert
US20140256260A1 (en) Wireless Device Pairing
US7747338B2 (en) Audio system employing multiple mobile devices in concert
CN101809947A (en) Method of pairing devices
US20140057569A1 (en) Synchronized Multichannel Data
CN101465910A (en) Control method, terminal and system for playing stereo based on mobile terminal
US20130325479A1 (en) Smart dock for activating a voice recognition mode of a portable electronic device
CN103391118A (en) Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
US20080299908A1 (en) Communication terminal
CN102752029A (en) Method for matching Bluetooth accessory with Bluetooth devices and Bluetooth accessory
CN201629037U (en) remote control
US20140108780A1 (en) Wireless communications using a sound signal
CN101075828A (en) Method for establishing connection between terminal and audio-frequency apparatus
US20120202425A1 (en) System and method for initiating ad-hoc communication between mobile headsets
CN103929767A (en) Wireless network setting method based on sound wave or light wave communication
US7836183B1 (en) Internet audio scanner and method
CN103985234A (en) Remote control method based on bluetooth broadcast packet
CN102761658A (en) Method and device for performing voice talkback through mobile terminal
US20070149245A1 (en) Full-duplex radio speaker system and associated method
CN102307258A (en) Communication method between primary device and accessory device, device thereof and system thereof
CN101605187A (en) Session server, user terminal and method for controlling voice quality in voice session
US20130322348A1 (en) Channel switching scheme for wireless communication
US20150055781A1 (en) Wireless speaker device and wirelessly multi-channel audio system thereof

Legal Events

Date Code Title Description
C06 Publication
C12 Rejection of a patent application after its publication