[go: up one dir, main page]

CN108391259B - A method of Bluetooth fast pairing - Google Patents

A method of Bluetooth fast pairing Download PDF

Info

Publication number
CN108391259B
CN108391259B CN201810026428.1A CN201810026428A CN108391259B CN 108391259 B CN108391259 B CN 108391259B CN 201810026428 A CN201810026428 A CN 201810026428A CN 108391259 B CN108391259 B CN 108391259B
Authority
CN
China
Prior art keywords
bluetooth
pairing
smart terminal
bluetooth device
sends
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810026428.1A
Other languages
Chinese (zh)
Other versions
CN108391259A (en
Inventor
陈沧毅
胡中骥
严文华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cosonic Intelligent Technologies Co Ltd
Original Assignee
Cosonic Intelligent Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cosonic Intelligent Technologies Co Ltd filed Critical Cosonic Intelligent Technologies Co Ltd
Priority to CN201810026428.1A priority Critical patent/CN108391259B/en
Publication of CN108391259A publication Critical patent/CN108391259A/en
Application granted granted Critical
Publication of CN108391259B publication Critical patent/CN108391259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for Bluetooth rapid pairing, which comprises the following steps: 1) the Bluetooth equipment starts the Bluetooth to enter a Bluetooth pairing mode, and the Bluetooth of the Bluetooth equipment broadcasts outwards; 2) the method comprises the steps that a Bluetooth scanning mode is started by a Bluetooth intelligent terminal, a Bluetooth device sends a broadcast packet to the Bluetooth intelligent terminal, and the Bluetooth intelligent terminal generates a Bluetooth device list after receiving the broadcast packet; 3) the Bluetooth intelligent terminal intelligently analyzes and judges each Bluetooth device in the Bluetooth device list and sends a Bluetooth connection instruction to the Bluetooth device according to an analysis result; 4) the Bluetooth equipment sends Bluetooth connection feedback information to the Bluetooth intelligent terminal; 5) the Bluetooth intelligent terminal automatically pops up a pairing request dialog box, a user manually selects whether the Bluetooth intelligent terminal is connected with the Bluetooth equipment, and if yes, data transmission is carried out between the Bluetooth intelligent terminal and the Bluetooth equipment; if not, finishing the pairing. The invention has simple and convenient operation, saves the matching and connecting time and greatly improves the matching efficiency.

Description

一种蓝牙快速配对的方法A method of Bluetooth fast pairing

技术领域technical field

本发明涉及蓝牙配对技术领域,特别涉及一种蓝牙快速配对的方法。The invention relates to the technical field of bluetooth pairing, in particular to a method for fast bluetooth pairing.

背景技术Background technique

目前市面上的蓝牙设备配对方式非常繁琐,需要用户打开蓝牙智能终端的蓝牙配置界面,扫描蓝牙设备,选择指定蓝牙设备,通常,每个蓝牙设备都有一个蓝牙名称,如果蓝牙智能终端和蓝牙设备要实现蓝牙配对,就需要根据蓝牙名称找到相应的蓝牙设备。一般情况下,在配对前,一个蓝牙智能终端可能会扫描出多个可与之配对的蓝牙设备,然后选择对应的蓝牙名称进行配对,如果这些蓝牙设备具有相同的蓝牙名称,那么需要一个个试验,才能确定需要配对的蓝牙设备,浪费配对时间。At present, the pairing method of Bluetooth devices on the market is very cumbersome. Users need to open the Bluetooth configuration interface of the Bluetooth smart terminal, scan the Bluetooth devices, and select the specified Bluetooth device. Usually, each Bluetooth device has a Bluetooth name. If the Bluetooth smart terminal and the Bluetooth device To achieve Bluetooth pairing, you need to find the corresponding Bluetooth device according to the Bluetooth name. In general, before pairing, a bluetooth smart terminal may scan out multiple bluetooth devices that can be paired with it, and then select the corresponding bluetooth name for pairing. If these bluetooth devices have the same bluetooth name, you need to test one by one , to determine the Bluetooth device that needs to be paired, wasting pairing time.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是,针对上述现有技术中的不足,提供一种蓝牙快速配对的方法,其方法操作方便,且能使蓝牙智能终端与蓝牙设备快速配对,节省时间,提高配对效率。The technical problem to be solved by the present invention is to provide a method for Bluetooth quick pairing, which is convenient to operate, and can quickly pair a Bluetooth smart terminal with a Bluetooth device, saving time and improving pairing efficiency, aiming at the deficiencies in the prior art. .

为解决上述技术问题,本发明的技术方案是:For solving the above-mentioned technical problems, the technical scheme of the present invention is:

一种蓝牙快速配对的方法,基于蓝牙设备和蓝牙智能终端,配对方法包括以下步骤:A Bluetooth fast pairing method, based on a Bluetooth device and a Bluetooth smart terminal, the pairing method includes the following steps:

1)蓝牙设备开启蓝牙,进入蓝牙配对模式,此时蓝牙设备的蓝牙对外进行广播;1) The bluetooth device turns on the bluetooth and enters the bluetooth pairing mode. At this time, the bluetooth of the bluetooth device broadcasts to the outside world;

2)蓝牙设备靠近蓝牙智能终端,蓝牙智能终端自动开启蓝牙扫描模式,蓝牙设备向蓝牙智能终端发送广播包,蓝牙智能终端接收广播包后生成蓝牙设备列表;2) When the Bluetooth device is close to the Bluetooth smart terminal, the Bluetooth smart terminal automatically turns on the Bluetooth scanning mode, the Bluetooth device sends a broadcast packet to the Bluetooth smart terminal, and the Bluetooth smart terminal generates a list of Bluetooth devices after receiving the broadcast packet;

3)蓝牙智能终端对蓝牙设备列表中的各个蓝牙设备进行智能分析判断,并根据分析结果向蓝牙设备列表中的一个蓝牙设备发送蓝牙连接指令;3) The Bluetooth smart terminal performs intelligent analysis and judgment on each Bluetooth device in the Bluetooth device list, and sends a Bluetooth connection instruction to a Bluetooth device in the Bluetooth device list according to the analysis result;

4)经步骤3)的蓝牙设备在收到蓝牙连接指令后向蓝牙智能终端发出蓝牙连接反馈信息;4) After receiving the Bluetooth connection instruction, the Bluetooth device in step 3) sends the Bluetooth connection feedback information to the Bluetooth smart terminal;

5)蓝牙智能终端接收到蓝牙连接反馈信息后即自动弹出配对请求对话框,用户手动选择蓝牙智能终端是否与经步骤4)的蓝牙设备连接,若是,则蓝牙智能终端和蓝牙设备之间进行数据传输;若否,则结束配对。5) After the Bluetooth smart terminal receives the Bluetooth connection feedback information, it will automatically pop up a pairing request dialog box, and the user manually selects whether the Bluetooth smart terminal is connected with the Bluetooth device through step 4). transfer; if not, end pairing.

作为一种优选方案,步骤3)蓝牙智能终端对蓝牙设备列表中的各个蓝牙设备进行智能分析判断,然后蓝牙智能终端根据分析结果分析判断蓝牙设备列表中的一个蓝牙设备的广播包中是否包括蓝牙配对请求信息,若是,则向蓝牙设备发出蓝牙连接指令;若否,则结束配对。As a preferred solution, step 3) the Bluetooth smart terminal performs intelligent analysis and judgment on each Bluetooth device in the Bluetooth device list, and then the Bluetooth smart terminal analyzes and determines whether the broadcast packet of a Bluetooth device in the Bluetooth device list includes Bluetooth according to the analysis result. Pairing request information, if yes, send a bluetooth connection command to the bluetooth device; if not, end pairing.

作为一种优选方案,步骤2)中蓝牙智能终端接收广播包后生成蓝牙设备列表的同时计算出蓝牙设备列表中各个蓝牙设备的RSSI值;As a preferred solution, in step 2), after receiving the broadcast packet, the Bluetooth smart terminal generates the Bluetooth device list and simultaneously calculates the RSSI value of each Bluetooth device in the Bluetooth device list;

作为一种优选方案,步骤3)中的智能分析方法包括以下步骤:As a preferred solution, the intelligent analysis method in step 3) includes the following steps:

蓝牙智能终端判断蓝牙设备列表中是否有RSSI值高于预设阈值的蓝牙设备,若是,则蓝牙智能终端向该蓝牙设备发送蓝牙连接指令或蓝牙智能终端分析判断该蓝牙设备的广播包中是否包括蓝牙配对请求信息,若否,则结束配对。The Bluetooth smart terminal determines whether there is a Bluetooth device whose RSSI value is higher than the preset threshold in the Bluetooth device list. If so, the Bluetooth smart terminal sends a Bluetooth connection instruction to the Bluetooth device or the Bluetooth smart terminal analyzes and determines whether the broadcast packet of the Bluetooth device includes Bluetooth pairing request information, if not, end pairing.

作为一种优选方案,所述预设阈值为-55dBm。As a preferred solution, the preset threshold is -55dBm.

作为一种优选方案,步骤2)中在蓝牙设备向蓝牙智能终端发送广播包之前,蓝牙设备判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙设备向蓝牙智能终端发送广播包。As a preferred solution, in step 2), before the Bluetooth device sends the broadcast packet to the Bluetooth smart terminal, the Bluetooth device determines whether it is in a connected state. If so, the pairing ends; if not, the Bluetooth device sends the broadcast packet to the Bluetooth smart terminal. .

作为一种优选方案,步骤3)中在蓝牙智能终端向蓝牙设备发送蓝牙连接指令之前,蓝牙智能终端判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙智能终端向蓝牙设备发送蓝牙连接指令。As a preferred solution, in step 3), before the Bluetooth smart terminal sends the Bluetooth connection instruction to the Bluetooth device, the Bluetooth smart terminal determines whether it is in a connected state. Bluetooth connection command.

作为一种优选方案,所述蓝牙设备包括经典蓝牙芯片和BLE蓝牙芯片。As a preferred solution, the Bluetooth device includes a classic Bluetooth chip and a BLE Bluetooth chip.

作为一种优选方案,步骤1)中蓝牙设备开启经典蓝牙和BLE蓝牙,经典蓝牙和BLE蓝牙同时对外广播。As a preferred solution, in step 1), the Bluetooth device turns on classic Bluetooth and BLE Bluetooth, and the classic Bluetooth and BLE Bluetooth broadcast to the outside at the same time.

作为一种优选方案,所述蓝牙配对请求信息为经典蓝牙配对请求信息,所述蓝牙连接指令为经典蓝牙连接指令。As a preferred solution, the Bluetooth pairing request information is classic Bluetooth pairing request information, and the Bluetooth connection instruction is a classic Bluetooth connection instruction.

本发明的有益效果是:该方法操作简单,方便,无需如传统配对方式那边逐一试验配对,用户可以手动直接选择配对与否,能使蓝牙智能终端与蓝牙设备快速配对连接,使用本方法配对连接过程所花的时间仅为2-3s,比使用传统配对方法配对连接过程所花的时间要节省10s或以上,大大提高了配对效率。The beneficial effects of the present invention are: the method is simple and convenient to operate, and does not need to test pairing one by one as in the traditional pairing method, the user can manually select whether to pair or not, so that the bluetooth smart terminal and the bluetooth device can be quickly paired and connected, using this method to pair The time spent in the connection process is only 2-3s, which saves 10s or more than the time spent in the pairing connection process using the traditional pairing method, which greatly improves the pairing efficiency.

附图说明Description of drawings

图1为本发明之实施例1的配对流程框架图;1 is a framework diagram of a pairing process according to Embodiment 1 of the present invention;

图2为本发明之实施例2的配对流程框架图。FIG. 2 is a framework diagram of a pairing process according to Embodiment 2 of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明的结构原理和工作原理作进一步详细说明。The structural principle and working principle of the present invention will be further described in detail below with reference to the accompanying drawings.

实施例1Example 1

如图1所示为本发明的实施例1的配对流程框架图,一种蓝牙快速配对的方法,基于蓝牙设备和蓝牙智能终端,所述蓝牙设备包括经典蓝牙芯片和BLE蓝牙芯片。配对方法包括以下步骤:FIG. 1 is a pairing flow frame diagram of Embodiment 1 of the present invention, a method for Bluetooth fast pairing, based on a Bluetooth device and a Bluetooth smart terminal, the Bluetooth device includes a classic Bluetooth chip and a BLE Bluetooth chip. The pairing method includes the following steps:

1)蓝牙设备开启经典蓝牙和BLE蓝牙进入蓝牙配对模式,此时经典蓝牙和BLE蓝牙同时对外广播;1) The bluetooth device turns on classic bluetooth and BLE bluetooth and enters bluetooth pairing mode. At this time, classic bluetooth and BLE bluetooth broadcast to the outside world at the same time;

2)蓝牙设备靠近蓝牙智能终端,蓝牙智能终端自动开启蓝牙扫描模式,蓝牙设备判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙设备向蓝牙智能终端发送广播包,蓝牙智能终端接收广播包后生成BLE蓝牙设备列表的同时计算出BLE蓝牙设备列表中各个蓝牙设备的RSSI值;2) When the bluetooth device is close to the bluetooth smart terminal, the bluetooth smart terminal automatically turns on the bluetooth scanning mode, and the bluetooth device judges whether it is in the connected state. After receiving the broadcast packet, the BLE Bluetooth device list is generated and the RSSI value of each Bluetooth device in the BLE Bluetooth device list is calculated;

3)蓝牙智能终端对BLE蓝牙设备列表中的各个蓝牙设备进行智能分析判断,智能分析方法如下:蓝牙智能终端判断BLE蓝牙设备列表中是否有RSSI值高于-55 dBm的蓝牙设备,若是,则蓝牙智能终端向该蓝牙设备发送经典蓝牙连接指令,若否,则结束配对;其中,在蓝牙智能终端向蓝牙设备发送经典蓝牙连接指令之前,蓝牙智能终端判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙智能终端向蓝牙设备发送经典蓝牙连接指令;3) The Bluetooth smart terminal performs intelligent analysis and judgment on each Bluetooth device in the BLE Bluetooth device list. The intelligent analysis method is as follows: The Bluetooth smart terminal determines whether there is a Bluetooth device with an RSSI value higher than -55 dBm in the BLE Bluetooth device list, and if so, then The Bluetooth smart terminal sends a classic Bluetooth connection command to the Bluetooth device, and if not, the pairing is ended; before the Bluetooth smart terminal sends the classic Bluetooth connection command to the Bluetooth device, the Bluetooth smart terminal determines whether it is in a connected state, and if so, it ends Pairing, if not, the Bluetooth smart terminal sends a classic Bluetooth connection command to the Bluetooth device;

4)经步骤3)的蓝牙设备在收到经典蓝牙连接指令后向蓝牙智能终端发出经典蓝牙连接反馈信息;4) The Bluetooth device in step 3) sends the classic Bluetooth connection feedback information to the Bluetooth smart terminal after receiving the classic Bluetooth connection instruction;

5)蓝牙智能终端接收到经典蓝牙连接反馈信息后即自动弹出配对请求对话框,用户手动选择蓝牙智能终端是否与经步骤4)的蓝牙设备连接,若是,则蓝牙智能终端和蓝牙设备之间进行数据传输;若否,则结束配对。5) After the Bluetooth smart terminal receives the classic Bluetooth connection feedback information, it will automatically pop up a pairing request dialog box. The user manually selects whether the Bluetooth smart terminal is connected with the Bluetooth device that has passed step 4). Data transfer; if not, end pairing.

所述蓝牙智能终端为内置有蓝牙芯片的智能手机或平板电脑。The Bluetooth smart terminal is a smart phone or a tablet computer with a built-in Bluetooth chip.

实施例2Example 2

如图2所示为本发明的实施例2的配对流程框架图,一种蓝牙快速配对的方法,基于蓝牙设备和蓝牙智能终端,所述蓝牙设备包括经典蓝牙芯片和BLE蓝牙芯片。配对方法包括以下步骤:Figure 2 is a pairing flow frame diagram of Embodiment 2 of the present invention, a method for Bluetooth fast pairing, based on a Bluetooth device and a Bluetooth smart terminal, the Bluetooth device includes a classic Bluetooth chip and a BLE Bluetooth chip. The pairing method includes the following steps:

1)蓝牙设备开启经典蓝牙和BLE蓝牙进入蓝牙配对模式,此时经典蓝牙和BLE蓝牙同时对外广播;1) The bluetooth device turns on classic bluetooth and BLE bluetooth and enters bluetooth pairing mode. At this time, classic bluetooth and BLE bluetooth broadcast to the outside world at the same time;

2)蓝牙设备靠近蓝牙智能终端,蓝牙智能终端自动开启蓝牙扫描模式,蓝牙设备判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙设备向蓝牙智能终端发送广播包,蓝牙智能终端接收广播包后生成BLE蓝牙设备列表的同时计算出BLE蓝牙设备列表中各个蓝牙设备的RSSI值;2) When the bluetooth device is close to the bluetooth smart terminal, the bluetooth smart terminal automatically turns on the bluetooth scanning mode, and the bluetooth device judges whether it is in the connected state. After receiving the broadcast packet, the BLE Bluetooth device list is generated and the RSSI value of each Bluetooth device in the BLE Bluetooth device list is calculated;

3)蓝牙智能终端对BLE蓝牙设备列表中的各个蓝牙设备进行智能分析判断,智能分析方法如下:蓝牙智能终端判断BLE蓝牙设备列表中是否有RSSI值高于-55 dBm的蓝牙设备,若否,则结束配对,若是,则蓝牙智能终端分析判断该蓝牙设备的广播包中是否包括经典蓝牙配对请求信息,若是,则蓝牙智能终端向蓝牙设备发送经典蓝牙连接指令,若否,则结束配对;其中,在蓝牙智能终端向蓝牙设备发送经典蓝牙连接指令之前,蓝牙智能终端判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙智能终端向蓝牙设备发送经典蓝牙连接指令;3) The Bluetooth smart terminal performs intelligent analysis and judgment on each Bluetooth device in the BLE Bluetooth device list. The intelligent analysis method is as follows: The Bluetooth smart terminal determines whether there is a Bluetooth device with an RSSI value higher than -55 dBm in the BLE Bluetooth device list. If not, Then the pairing is ended. If so, the Bluetooth smart terminal analyzes and determines whether the broadcast packet of the Bluetooth device includes classic Bluetooth pairing request information. If so, the Bluetooth smart terminal sends a classic Bluetooth connection instruction to the Bluetooth device. If not, then end the pairing; wherein , before the bluetooth smart terminal sends the classic bluetooth connection instruction to the bluetooth device, the bluetooth smart terminal judges whether it is in a connected state, if so, ends the pairing, if not, the bluetooth smart terminal sends the classic bluetooth connection instruction to the bluetooth device;

4)经步骤3)的蓝牙设备在收到经典蓝牙连接指令后向蓝牙智能终端发出经典蓝牙连接反馈信息;4) The Bluetooth device in step 3) sends the classic Bluetooth connection feedback information to the Bluetooth smart terminal after receiving the classic Bluetooth connection instruction;

5)蓝牙智能终端接收到经典蓝牙连接反馈信息后即自动弹出配对请求对话框,用户手动选择蓝牙智能终端是否与经步骤4)的蓝牙设备连接,若是,则蓝牙智能终端和蓝牙设备之间进行数据传输;若否,则结束配对。5) After the Bluetooth smart terminal receives the classic Bluetooth connection feedback information, it will automatically pop up a pairing request dialog box. The user manually selects whether the Bluetooth smart terminal is connected with the Bluetooth device that has passed step 4). Data transfer; if not, end pairing.

所述蓝牙智能终端为内置有蓝牙芯片的智能手机或平板电脑。The Bluetooth smart terminal is a smart phone or a tablet computer with a built-in Bluetooth chip.

需要说明的是上述中的预设阈值可根据实际应用情况进行修改。而若蓝牙智能终端判断BLE蓝牙设备列表中有两个或两个以上RSSI值高于-55 dBm的蓝牙设备,则蓝牙智能终端先择其中一个蓝牙设备进行下一步,若蓝牙智能终端与该蓝牙设备连接成功,则结束配对,若没有连接成功,则选择另一个蓝牙设备进行下一步,直至连接成功或BLE蓝牙设备列表中RSSI值高于-55dBm的蓝牙设备均连接不成功为止。而蓝牙智能终端可以根据蓝牙设备的RSSI值高低顺序选择蓝牙设备。It should be noted that the preset threshold in the above can be modified according to the actual application. If the Bluetooth smart terminal determines that there are two or more Bluetooth devices with RSSI value higher than -55 dBm in the BLE Bluetooth device list, the Bluetooth smart terminal will first select one of the Bluetooth devices for the next step. If the device is successfully connected, the pairing is ended. If the connection is not successful, select another Bluetooth device to proceed to the next step until the connection is successful or the Bluetooth devices with RSSI value higher than -55dBm in the BLE Bluetooth device list are not successfully connected. The Bluetooth smart terminal can select the Bluetooth device according to the high and low order of the RSSI value of the Bluetooth device.

本发明的有益效果是:该方法操作简单,方便,无需如传统配对方式那边逐一试验配对,用户可以手动直接选择配对与否,能使蓝牙智能终端与蓝牙设备快速配对连接,使用本方法配对连接过程所花的时间仅为2-3s,比使用传统配对方法配对连接过程所花的时间要节省10s或以上,大大提高了配对效率。The beneficial effects of the present invention are: the method is simple and convenient to operate, and does not need to test pairing one by one as in the traditional pairing method, the user can manually select whether to pair or not, so that the bluetooth smart terminal and the bluetooth device can be quickly paired and connected, using this method to pair The time spent in the connection process is only 2-3s, which saves 10s or more than the time spent in the pairing connection process using the traditional pairing method, which greatly improves the pairing efficiency.

以上所述,仅是本发明较佳实施方式,凡是依据本发明的技术方案对以上的实施方式所作的任何细微修改、等同变化与修饰,均属于本发明技术方案的范围内。The above are only preferred embodiments of the present invention, and any minor modifications, equivalent changes and modifications made to the above embodiments according to the technical solutions of the present invention fall within the scope of the technical solutions of the present invention.

Claims (8)

1.一种蓝牙快速配对方法,其特征在于:基于蓝牙设备和蓝牙智能终端,配对方法包括以下步骤:1. A bluetooth quick pairing method is characterized in that: based on a bluetooth device and a bluetooth intelligent terminal, the pairing method comprises the following steps: 1)蓝牙设备开启蓝牙,进入蓝牙配对模式,此时蓝牙设备的蓝牙对外进行广播;1) The bluetooth device turns on the bluetooth and enters the bluetooth pairing mode. At this time, the bluetooth of the bluetooth device broadcasts to the outside world; 2)蓝牙设备靠近蓝牙智能终端,蓝牙智能终端自动开启蓝牙扫描模式,蓝牙设备向蓝牙智能终端发送广播包,蓝牙智能终端接收广播包后生成蓝牙设备列表;2) When the Bluetooth device is close to the Bluetooth smart terminal, the Bluetooth smart terminal automatically turns on the Bluetooth scanning mode, the Bluetooth device sends a broadcast packet to the Bluetooth smart terminal, and the Bluetooth smart terminal generates a list of Bluetooth devices after receiving the broadcast packet; 3)蓝牙智能终端判断蓝牙设备列表中是否有RSSI值高于预设阈值的蓝牙设备;若是,则进行下一步,若否,则结束配对;3) The Bluetooth smart terminal determines whether there is a Bluetooth device whose RSSI value is higher than the preset threshold in the Bluetooth device list; if so, proceed to the next step; if not, end the pairing; 4)蓝牙智能终端分析判断该蓝牙设备的广播包中是否包括蓝牙配对请求信息,若是,则蓝牙智能终端向蓝牙设备发出蓝牙连接指令,若否,则结束配对;4) The Bluetooth smart terminal analyzes and determines whether the broadcast packet of the Bluetooth device includes Bluetooth pairing request information. If so, the Bluetooth smart terminal sends a Bluetooth connection instruction to the Bluetooth device. If not, the pairing ends; 5)经步骤4)的蓝牙设备在收到蓝牙连接指令后向蓝牙智能终端发出蓝牙连接反馈信息;5) After receiving the Bluetooth connection instruction, the Bluetooth device in step 4) sends the Bluetooth connection feedback information to the Bluetooth smart terminal; 6)蓝牙智能终端接收到蓝牙连接反馈信息后即自动弹出配对请求对话框,用户手动选择蓝牙智能终端是否与经步骤5)的蓝牙设备连接,若是,则蓝牙智能终端和蓝牙设备之间进行数据传输;若否,则结束配对。6) After the Bluetooth smart terminal receives the Bluetooth connection feedback information, it will automatically pop up a pairing request dialog box, and the user manually selects whether the Bluetooth smart terminal is connected with the Bluetooth device through step 5). transfer; if not, end pairing. 2.根据权利要求1所述的蓝牙快速配对方法,其特征在于:步骤2)中蓝牙智能终端接收广播包后生成蓝牙设备列表的同时计算出蓝牙设备列表中各个蓝牙设备的RSSI值。2 . The Bluetooth quick pairing method according to claim 1 , wherein in step 2), the Bluetooth smart terminal generates the Bluetooth device list after receiving the broadcast packet and simultaneously calculates the RSSI value of each Bluetooth device in the Bluetooth device list. 3 . 3.根据权利要求1所述的蓝牙快速配对方法,其特征在于:所述预设阈值为-55dBm。3 . The Bluetooth fast pairing method according to claim 1 , wherein the preset threshold is -55dBm. 4 . 4.根据权利要求1所述的蓝牙快速配对方法,其特征在于:步骤2)中在蓝牙设备向蓝牙智能终端发送广播包之前,蓝牙设备判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙设备向蓝牙智能终端发送广播包。4. The Bluetooth fast pairing method according to claim 1, characterized in that: in step 2), before the Bluetooth device sends a broadcast packet to the Bluetooth smart terminal, the Bluetooth device determines whether it is in a connected state, if yes, then ends the pairing, if No, the Bluetooth device sends a broadcast packet to the Bluetooth smart terminal. 5.根据权利要求1所述的蓝牙快速配对方法,其特征在于:步骤3)中在蓝牙智能终端向蓝牙设备发送蓝牙连接指令之前,蓝牙智能终端判断自身是否处于连接状态,若是,则结束配对,若否,则蓝牙智能终端向蓝牙设备发送蓝牙连接指令。5 . The Bluetooth quick pairing method according to claim 1 , wherein in step 3), before the Bluetooth smart terminal sends a Bluetooth connection instruction to the Bluetooth device, the Bluetooth smart terminal determines whether it is in a connected state, and if so, ends the pairing. 6 . , if not, the Bluetooth smart terminal sends a Bluetooth connection instruction to the Bluetooth device. 6.根据权利要求1所述的蓝牙快速配对方法,其特征在于:所述蓝牙设备包括经典蓝牙芯片和BLE蓝牙芯片。6 . The Bluetooth quick pairing method according to claim 1 , wherein the Bluetooth device comprises a classic Bluetooth chip and a BLE Bluetooth chip. 7 . 7.根据权利要求6所述的蓝牙快速配对方法,其特征在于:步骤1)中蓝牙设备开启经典蓝牙和BLE蓝牙,经典蓝牙和BLE蓝牙同时对外广播。7 . The Bluetooth fast pairing method according to claim 6 , wherein in step 1), the Bluetooth device enables classic Bluetooth and BLE Bluetooth, and the classic Bluetooth and BLE Bluetooth broadcast simultaneously to the outside world. 8 . 8.根据权利要求7所述的蓝牙快速配对方法,其特征在于:所述蓝牙配对请求信息为经典蓝牙配对请求信息,所述蓝牙连接指令为经典蓝牙连接指令。8 . The Bluetooth quick pairing method according to claim 7 , wherein the Bluetooth pairing request information is classic Bluetooth pairing request information, and the Bluetooth connection instruction is a classic Bluetooth connection instruction. 9 .
CN201810026428.1A 2018-01-11 2018-01-11 A method of Bluetooth fast pairing Active CN108391259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810026428.1A CN108391259B (en) 2018-01-11 2018-01-11 A method of Bluetooth fast pairing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810026428.1A CN108391259B (en) 2018-01-11 2018-01-11 A method of Bluetooth fast pairing

Publications (2)

Publication Number Publication Date
CN108391259A CN108391259A (en) 2018-08-10
CN108391259B true CN108391259B (en) 2020-12-29

Family

ID=63076099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810026428.1A Active CN108391259B (en) 2018-01-11 2018-01-11 A method of Bluetooth fast pairing

Country Status (1)

Country Link
CN (1) CN108391259B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connection method and device, readable storage medium and mobile device
CN111885596A (en) * 2020-08-03 2020-11-03 南京创通微新通信有限公司 Data forwarding system and method based on virtual port
CN112004218B (en) * 2020-08-24 2022-07-19 南京沁恒微电子股份有限公司 Bluetooth connection pairing method
CN115988248A (en) * 2021-10-15 2023-04-18 海信视像科技股份有限公司 Display device and bluetooth communication method
CN114745704B (en) * 2022-03-15 2025-01-28 东集技术股份有限公司 A bluetooth communication system, method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420641A (en) * 2011-12-01 2012-04-18 深圳市中兴移动通信有限公司 Method and system for realizing automatic pairing connection of Bluetooth earphones
CN104022805A (en) * 2014-06-06 2014-09-03 深圳市爱美家电子科技有限公司 Method and device of connecting Bluetooth devices at master end and slave ends
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104378838A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Method and device for building wireless connection
CN104617991A (en) * 2015-01-26 2015-05-13 北京深思数盾科技有限公司 Bluetooth pairing method and Bluetooth communication system
CN104780429A (en) * 2015-01-06 2015-07-15 康佳集团股份有限公司 Anti-interfering Bluetooth pairing method, main device with anti-interfering Bluetooth pairing function, anti-interfering Bluetooth pairing system, and Bluetooth pairing method thereof
CN106851540A (en) * 2017-02-08 2017-06-13 飞天诚信科技股份有限公司 The implementation method and device of a kind of Bluetooth pairing
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, method and device for connection between earphone and sound signal emitting device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8342407B2 (en) * 2008-07-21 2013-01-01 Gilbarco, Inc. System and method for pairing a bluetooth device with a point-of-sale terminal
CN103457642A (en) * 2013-08-15 2013-12-18 上海天奕达电子科技有限公司 Method and device for obtaining information of intelligent terminal telephone book
US9602956B1 (en) * 2015-08-25 2017-03-21 Yahoo! Inc. System and method for device positioning with bluetooth low energy distributions
CN105407453A (en) * 2015-11-23 2016-03-16 深圳还是威健康科技有限公司 Bluetooth pairing method and device
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN107172579A (en) * 2017-06-15 2017-09-15 精伦电子股份有限公司 A kind of method and system by Bluetooth information control bluetooth controlled terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420641A (en) * 2011-12-01 2012-04-18 深圳市中兴移动通信有限公司 Method and system for realizing automatic pairing connection of Bluetooth earphones
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104022805A (en) * 2014-06-06 2014-09-03 深圳市爱美家电子科技有限公司 Method and device of connecting Bluetooth devices at master end and slave ends
CN104378838A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Method and device for building wireless connection
CN104780429A (en) * 2015-01-06 2015-07-15 康佳集团股份有限公司 Anti-interfering Bluetooth pairing method, main device with anti-interfering Bluetooth pairing function, anti-interfering Bluetooth pairing system, and Bluetooth pairing method thereof
CN104617991A (en) * 2015-01-26 2015-05-13 北京深思数盾科技有限公司 Bluetooth pairing method and Bluetooth communication system
CN106878921A (en) * 2017-01-04 2017-06-20 佳禾智能科技股份有限公司 Earphone, method and device for connection between earphone and sound signal emitting device
CN106851540A (en) * 2017-02-08 2017-06-13 飞天诚信科技股份有限公司 The implementation method and device of a kind of Bluetooth pairing

Also Published As

Publication number Publication date
CN108391259A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108391259B (en) A method of Bluetooth fast pairing
CN102833021B (en) Bluetooth pairing method and system in test
CN106102143B (en) Application processing method and device
CN102405674B (en) Wireless router control method and wireless router
CN105788599A (en) Speech processing method, router and intelligent speech control system
CN108495344B (en) A kind of network switching method, device and terminal
CN104486785A (en) Switching method and system of mobile terminal network optimization
CN104469886A (en) Smart device and method and device for fast accessing wireless network access device thereof
CN103974340A (en) Network configuration adjustment method and device
CN105392166A (en) Method and apparatus for data network switching of dual-card electronic terminal
WO2018148890A1 (en) Network connection method and apparatus
CN101808378A (en) Fast vertical handoff method of mobile terminal in heterogeneous network
CN105940720A (en) Method for triggering registration machine protocol interaction, access point and station point
CN104837216B (en) The method and device of intelligent terminal reconnection wireless smart devices
WO2016155075A1 (en) Method for switching data service card and terminal
CN105357378A (en) Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI
CN110784885A (en) Power consumption adjustment method, device and computer-readable storage medium for communication network
WO2018000504A1 (en) Application freezing method and mobile terminal
CN113242542B (en) Mobile terminal search network control method, device and mobile terminal
CN103517373B (en) A kind of method and apparatus of network insertion
CN106304358B (en) Auxiliary member carrier replacing method, device, mobile terminal and medium
CN105959963A (en) Method and apparatus for position setting of wireless signal expander
CN110958562B (en) Modulation method selection method, near field communication device, and storage medium
CN104507133A (en) Voice switching method and device
TWI713379B (en) User equipment and cell re-selection estimation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant