WO2016173259A1 - Bluetooth pairing method and bluetooth pairing device - Google Patents
Bluetooth pairing method and bluetooth pairing device Download PDFInfo
- Publication number
- WO2016173259A1 WO2016173259A1 PCT/CN2015/097039 CN2015097039W WO2016173259A1 WO 2016173259 A1 WO2016173259 A1 WO 2016173259A1 CN 2015097039 W CN2015097039 W CN 2015097039W WO 2016173259 A1 WO2016173259 A1 WO 2016173259A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bluetooth
- paired
- pairing
- information
- bluetooth device
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Definitions
- the present invention relates to the field of communications, and in particular, to a Bluetooth pairing method and a Bluetooth pairing device.
- the existing Bluetooth pairing and access method needs to first scan, select, pair, and reuse with the Bluetooth device to be paired (for example, USBKey). Not only is the steps cumbersome, the customer experience is not good, and it often takes a long time to adapt to success. In addition, for some extended connections, additional support is required, such as through NFC (Near) Field Communication, proximity wireless communication technology and audio connections require external devices. Therefore, how to quickly complete Bluetooth pairing with the Bluetooth device to be paired is an urgent problem to be solved.
- the main purpose of the present invention is to provide a Bluetooth pairing method and a Bluetooth pairing device, which aim to quickly complete Bluetooth pairing with a Bluetooth device to be paired.
- the present invention provides a Bluetooth pairing method, and the Bluetooth pairing method includes the following steps:
- connection information includes device information
- the corresponding Bluetooth pairing mode includes a directional pairing mode
- the selected Bluetooth pairing mode is completed with the Bluetooth device to be paired according to the acquired information state of the connection information.
- the steps for Bluetooth pairing include:
- the Bluetooth pairing is completed with the Bluetooth device to be paired by the directional pairing mode according to the obtained device information of the Bluetooth device to be paired.
- connection information includes device information and two-dimensional code information
- the corresponding Bluetooth pairing mode includes a scan pairing mode
- the corresponding Bluetooth pairing mode is selected according to the obtained information state of the connection information.
- the steps for the Bluetooth device to be paired to complete Bluetooth pairing include:
- the two-dimensional code information of the Bluetooth device to be paired is acquired by scanning a pairing mode; and according to the acquired Bluetooth device to be paired
- the QR code information is used to complete Bluetooth pairing with the Bluetooth device to be paired.
- the step of acquiring the two-dimensional code information of the Bluetooth device to be paired by the scan pairing mode; and completing the Bluetooth pairing with the Bluetooth device to be paired according to the obtained two-dimensional code information of the Bluetooth device to be paired includes:
- the corresponding Bluetooth pairing mode further includes: searching for a pairing mode, the step of selecting a corresponding Bluetooth pairing mode and the Bluetooth device to be paired to complete Bluetooth pairing according to the obtained information state of the connection information comprises:
- the Bluetooth pairing is completed with the to-be-paired Bluetooth device by searching for the pairing mode.
- the step of performing Bluetooth pairing with the to-be-paired Bluetooth device by searching for the pairing mode includes:
- the present invention further provides a Bluetooth pairing device, where the Bluetooth pairing device includes:
- An obtaining module configured to acquire information state of connection information of a Bluetooth device to be paired
- the Bluetooth pairing module is configured to select a corresponding Bluetooth pairing mode and complete the Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
- the Bluetooth pairing module is further configured to perform Bluetooth pairing with the Bluetooth device to be paired through the directional pairing mode according to the device information of the Bluetooth device if the device information of the Bluetooth device to be paired is acquired.
- the Bluetooth pairing module is further configured to: when the device information of the Bluetooth device to be paired is not acquired, acquire the two-dimensional code information of the Bluetooth device to be paired by scanning a pairing mode; Obtaining the two-dimensional code information of the Bluetooth device to be paired, and performing Bluetooth pairing with the Bluetooth device to be paired.
- the Bluetooth pairing module includes:
- a scanning unit configured to scan, by using a camera, the two-dimensional code information on the Bluetooth device to be paired
- An acquiring unit configured to acquire, by using the scanned two-dimensional code information on the Bluetooth device to be paired, the connection information of the Bluetooth device to be paired;
- the first Bluetooth pairing unit is configured to complete Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired.
- the Bluetooth pairing module is further configured to perform Bluetooth pairing with the to-be-paired Bluetooth device by searching a pairing mode if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired. .
- the Bluetooth pairing module further includes:
- a search unit configured to acquire, by searching a pairing mode, the device information of the to-be-paired Bluetooth device and the to-be-paired Bluetooth device;
- connection requesting unit configured to establish a connection request with the to-be-paired Bluetooth device according to the acquired device information of the Bluetooth device to be paired, and display prompt information of the connection application on the display interface;
- the second Bluetooth pairing unit performs Bluetooth pairing with the to-be-paired Bluetooth device if the disconnection command is not received within the preset time threshold.
- the Bluetooth pairing method and the Bluetooth pairing device provided by the present invention obtain the information state of the connection information of the Bluetooth device to be paired, and select the corresponding Bluetooth pairing mode and the Bluetooth to be paired according to the acquired information state of the connection information.
- the device completes Bluetooth pairing.
- the invention selects the corresponding Bluetooth pairing mode according to the information state of the acquired connection information, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
- FIG. 1 is a schematic flowchart of a first embodiment of a Bluetooth pairing method according to the present invention
- FIG. 2 is a schematic flowchart of a second embodiment of a Bluetooth pairing method according to the present invention.
- FIG. 3 is a schematic flowchart of a third embodiment of a Bluetooth pairing method according to the present invention.
- FIG. 4 is the two-dimensional code information of the Bluetooth device to be paired acquired by the scan pairing mode in FIG. 3; and the paired to be paired according to the acquired two-dimensional code information of the Bluetooth device to be paired Schematic diagram of the detailed process of completing the Bluetooth pairing process by the Bluetooth device;
- FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a Bluetooth pairing method according to the present invention.
- FIG. 6 is the step of performing the Bluetooth pairing with the to-be-paired Bluetooth device by searching the pairing mode, if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired, as described in FIG. Refine the schematic diagram of the process;
- FIG. 7 is a schematic diagram of functional modules of an embodiment of a Bluetooth pairing device according to the present invention.
- FIG. 8 is a schematic diagram of functional modules of the first embodiment of the Bluetooth pairing module of FIG. 6;
- FIG. 9 is a schematic diagram of functional modules of the second embodiment of the Bluetooth pairing module of FIG. 6.
- FIG. 1 is a schematic flowchart of a Bluetooth pairing method according to a first embodiment of the present invention.
- the Bluetooth pairing method includes the following steps:
- Step S100 Obtain an information status of connection information of a Bluetooth device to be paired.
- the Bluetooth pairing device acquires the information status of the connection information of the Bluetooth device to be paired, and the Bluetooth pairing device and the Bluetooth device to be paired include a mobile terminal, a USBKey (domestic custom translated into a U shield, or a U-Shield), and other Bluetooth-enabled functions. Electronic equipment, etc. Among them, Bluetooth is a radio technology that supports short-range communication (usually within 10m) of the device, and can exchange wireless information between many devices such as mobile phones, PDAs, wireless headsets, notebook computers and related peripherals.
- the connection information of the Bluetooth device to be paired includes device information and two-dimensional code information.
- the device information may be an internal certificate and serial number information of the USBKey
- the two-dimensional code information may be a screen display connection of the USBKey. Dimension code information.
- Step S200 Select a Bluetooth pairing mode to complete Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
- the Bluetooth pairing device obtains the information status of the connection information of the Bluetooth device to be paired according to the acquired information, for example, the Bluetooth pairing device obtains the USB Key's own information (such as the serial number and certificate information provided by the USB Key) through the USBKey's own characteristics, or Scan the QR code information on the USBKey screen to obtain connection information for connecting with the Bluetooth device, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
- the Bluetooth pairing mode includes a directional pairing mode, a scan pairing mode, and a search pairing mode. The directional pairing mode directly acquires the device information of the specified Bluetooth device to be paired by the directional mode, and then uses the device information to The Bluetooth device to be paired is configured to complete the Bluetooth pairing.
- the scan pairing mode is to obtain the connection information carried in the two-dimensional code on the screen of the Bluetooth device to be paired by scanning, so as to complete the Bluetooth pairing with the Bluetooth device to be paired.
- the search pairing mode refers to obtaining the Bluetooth device to be paired by searching, and then selecting the corresponding Bluetooth device to be paired, and then performing Bluetooth pairing confirmation with the Bluetooth device to be paired, thereby interacting with the Bluetooth to be paired. How the device completes Bluetooth pairing.
- the Bluetooth pairing method provided in this embodiment selects the corresponding Bluetooth pairing mode by acquiring the connection information provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
- FIG. 2 is a schematic flowchart of a second embodiment of a Bluetooth pairing method according to the present invention.
- the step S100 includes:
- step S300 if the device information of the Bluetooth device to be paired is obtained, the Bluetooth device is configured to complete the Bluetooth with the Bluetooth device to be paired according to the device information of the Bluetooth device to be paired. pair.
- the Bluetooth pairing device obtains the device information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey, the serial number and certificate of the USBKey of the Bluetooth device to be paired are obtained according to the obtained serial number and certificate.
- Information through the directional pairing mode to complete the Bluetooth pairing with the Bluetooth device to be paired. That is, the Bluetooth pairing device directly obtains the serial number and certificate information of the specified Bluetooth device to be paired by the directional mode, and then passes the serial number and the certificate information of the Bluetooth device to be paired, thereby the Bluetooth device to be paired. Complete Bluetooth pairing.
- the Bluetooth pairing method provided in this embodiment directly selects the directional pairing mode by acquiring the device information that is provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
- FIG. 3 is a schematic flowchart of a third embodiment of a Bluetooth pairing method according to the present invention.
- the step S100 includes:
- Step S400 If the device information of the Bluetooth device to be paired is not obtained, obtain the two-dimensional code information of the Bluetooth device to be paired by scanning a pairing mode; and according to the acquired Bluetooth device to be paired The two-dimensional code information is Bluetooth paired with the Bluetooth device to be paired.
- the Bluetooth pairing device does not obtain the device information of the Bluetooth device to be paired, for example, if the serial number and certificate information of the USBKey to be paired are not obtained, the two-dimensional code of the Bluetooth device to be paired is obtained by scanning the pairing mode. Information; then, according to the connection information carried in the QR code information, the Bluetooth pairing is completed with the Bluetooth device to be paired.
- the Bluetooth pairing method provided in this embodiment, if the device information of the Bluetooth device to be paired is not obtained, obtains the connection information carried in the two-dimensional code information by scanning the pairing mode, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired. And the user experience is good.
- FIG. 4 is a schematic diagram of a refinement process of step S400 in FIG. 3.
- the step S400 includes:
- Step S410 Scan the two-dimensional code information on the Bluetooth device to be paired by using a camera.
- the Bluetooth pairing device uses the camera to scan the QR code information on the Bluetooth device to be paired, for example, the QR code information on the USBKey screen.
- Step S420 Obtain the connection information of the Bluetooth device to be paired by using the scanned two-dimensional code information on the Bluetooth device to be paired.
- the Bluetooth pairing device obtains the corresponding connection information from the two-dimensional code information on the USBKey screen through the two-dimensional code information on the scanned USBKey screen.
- Step S430 Perform Bluetooth pairing with the Bluetooth device to be paired according to the obtained connection information of the Bluetooth device to be paired.
- the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the connection information in the two-dimensional code information on the USBKey screen.
- the Bluetooth pairing method if the device information of the Bluetooth device to be paired is not obtained, the connection information in the two-dimensional code information on the USBKey screen is obtained by scanning the pairing mode, so as to quickly match with the to-be-matched The Bluetooth device completes the Bluetooth pairing and the user experience is good.
- FIG. 5 is a schematic flowchart of a fourth embodiment of a Bluetooth pairing method according to the present invention.
- the step S100 further includes:
- Step S500 If the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the Bluetooth pairing is completed with the to-be-paired Bluetooth device by searching for the pairing mode.
- the Bluetooth pairing device does not obtain the device information and the QR code information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey to be paired and the connection in the QR code information on the USBKey screen are not obtained.
- the paired mode is searched, that is, the Bluetooth device to be paired is obtained by searching, and all the searched Bluetooth devices to be paired are displayed in the display list, and then the corresponding pair to be paired is selected in the display list.
- the Bluetooth device then performs Bluetooth pairing confirmation with the corresponding Bluetooth device to be paired, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
- the Bluetooth pairing method if the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the paired mode is selected, and the corresponding Bluetooth device to be paired in the display list is selected, so as to be quickly paired with the device to be paired.
- the Bluetooth device completes the Bluetooth pairing and the user experience is good.
- FIG. 6 is a schematic diagram of a refinement process of step S500 in FIG. 5.
- the step S500 includes:
- Step S510 Obtain the device information of the Bluetooth device to be paired and the Bluetooth device to be paired by searching a pairing mode.
- the Bluetooth pairing device synchronously displays the number of Bluetooth devices to be paired and the remaining scan time by searching the pairing mode.
- the preset time of the Bluetooth pairing device is different, for example, BLE
- the scan time is set within 5S
- the 2.1 protocol scan time is set to 60S. If it is the 2.1 protocol, it is necessary to synchronously display the to-be-paired Bluetooth device that has been scanned on the display interface, and increase the user stop scanning button.
- Step S520 Establish a connection request with the to-be-paired Bluetooth device according to the obtained device information of the Bluetooth device to be paired, and display prompt information of the connection request on the display interface.
- the Bluetooth pairing device establishes a connection request with the to-be-paired Bluetooth device according to the obtained device information (for example, serial number information) of the to-be-paired Bluetooth device, and displays the prompt information of the connection request on the display interface.
- device information for example, serial number information
- Step S530 Perform Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired, if no instruction to disconnect is received within a preset time threshold, then Tell the paired Bluetooth device to establish a Bluetooth connection.
- the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the device information (for example, serial number information) of the to-be-paired Bluetooth device, if the disconnection command is not received within a preset time threshold (for example, 5S) And establishing a Bluetooth connection with the to-be-paired Bluetooth device.
- a preset time threshold for example, 5S
- the user may reject the Bluetooth connection. If the user does not reject the Bluetooth connection when the preset time threshold is reached, the Bluetooth pairing device defaults to accept the Bluetooth connection.
- the Bluetooth pairing method provided in this embodiment, if the disconnection instruction is not received within the preset time threshold, establishes a Bluetooth connection with the to-be-paired Bluetooth device, thereby quickly completing Bluetooth pairing with the Bluetooth device to be paired. And give the Bluetooth device the autonomy to reject the Bluetooth connection, enhancing the security of the Bluetooth paired device connection.
- FIG. 7 is a schematic diagram of a functional module of an embodiment of a Bluetooth pairing device according to an embodiment of the present invention.
- the Bluetooth pairing device includes:
- the obtaining module 10 is configured to obtain an information state of connection information of the Bluetooth device to be paired;
- the Bluetooth pairing module 20 is configured to select a corresponding Bluetooth pairing mode and perform Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
- the acquiring module 10 of the Bluetooth pairing device acquires the information status of the connection information of the Bluetooth device to be paired, and the Bluetooth pairing device and the Bluetooth device to be paired include a mobile terminal, a USBKey (domestic custom translated into a U shield, or a superior shield) and Other electronic devices such as Bluetooth.
- Bluetooth is a radio technology that supports short-range communication (usually within 10m) of the device, and can exchange wireless information between many devices such as mobile phones, PDAs, wireless headsets, notebook computers and related peripherals.
- the connection information of the Bluetooth device to be paired includes device information and two-dimensional code information.
- the device information may be an internal certificate and serial number information of the USBKey
- the two-dimensional code information may be a screen display connection of the USBKey. Dimension code information.
- the Bluetooth pairing module 20 of the Bluetooth pairing device obtains the information of the USBKey's own information (for example, the serial number and certificate of the built-in USB Key) according to the acquired information of the connection information of the Bluetooth device to be paired. Information), or by scanning the QR code information on the USBKey screen, obtaining connection information for connection with the Bluetooth device, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
- the Bluetooth pairing mode includes a directional pairing mode, a scan pairing mode, and a search pairing mode. The directional pairing mode directly acquires the device information of the specified Bluetooth device to be paired by the directional mode, and then uses the device information to The Bluetooth device to be paired is configured to complete the Bluetooth pairing.
- the scan pairing mode is to obtain the connection information carried in the two-dimensional code on the screen of the Bluetooth device to be paired by scanning, so as to complete the Bluetooth pairing with the Bluetooth device to be paired.
- the search pairing mode refers to obtaining the Bluetooth device to be paired by searching, and then selecting the corresponding Bluetooth device to be paired, and then performing Bluetooth pairing confirmation with the Bluetooth device to be paired, thereby interacting with the Bluetooth to be paired. How the device completes Bluetooth pairing.
- the Bluetooth pairing device provided in this embodiment selects the corresponding Bluetooth pairing mode by acquiring the connection information of the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
- the Bluetooth pairing module 20 is further configured to: when acquiring the device information of the Bluetooth device to be paired, according to the acquired Bluetooth device to be paired The device information completes Bluetooth pairing with the Bluetooth device to be paired through a directed pairing mode.
- the Bluetooth pairing module 20 of the Bluetooth pairing device acquires the device information of the Bluetooth device to be paired, for example, the serial number and the certificate information of the USBKey
- the USBKey of the Bluetooth device to be paired is obtained.
- Serial number and certificate information through the directional pairing mode to complete the Bluetooth pairing with the Bluetooth device to be paired. That is, the Bluetooth pairing device directly obtains the serial number and certificate information of the specified Bluetooth device to be paired by the directional mode, and then passes the serial number and the certificate information of the Bluetooth device to be paired, thereby the Bluetooth device to be paired.
- Complete Bluetooth pairing is
- the Bluetooth pairing device provided in this embodiment directly selects the directional pairing mode by acquiring the device information provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
- the Bluetooth pairing module 20 is further configured to acquire the to-be-paired Bluetooth by scanning the pairing mode, if the device information of the Bluetooth device to be paired is not acquired. The two-dimensional code information of the device; and performing Bluetooth pairing with the Bluetooth device to be paired according to the obtained two-dimensional code information of the Bluetooth device to be paired.
- the Bluetooth pairing module 20 of the Bluetooth pairing device does not obtain the device information of the Bluetooth device to be paired, for example, if the serial number and the certificate information of the USBKey to be paired are not obtained, the pairing mode is acquired to obtain the Bluetooth to be paired.
- the QR code information of the device then, according to the connection information carried in the QR code information, the Bluetooth pairing is completed with the Bluetooth device to be paired.
- the Bluetooth pairing device provided by the embodiment, if the device information of the Bluetooth device to be paired is not obtained, obtains the connection information carried in the two-dimensional code information by scanning the pairing mode, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired. And the user experience is good.
- FIG. 8 is a schematic diagram of a function module of the Bluetooth pairing module in FIG. 7.
- the Bluetooth pairing module 20 includes:
- the scanning unit 21 is configured to scan the two-dimensional code information on the Bluetooth device to be paired by using a camera;
- the obtaining unit 22 is configured to acquire, by using the scanned two-dimensional code information on the Bluetooth device to be paired, the connection information of the Bluetooth device to be paired;
- the Bluetooth pairing unit 23 is configured to complete Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired.
- the scanning unit 21 of the Bluetooth pairing device uses the camera to scan the two-dimensional code information on the Bluetooth device to be paired, for example, the two-dimensional code information on the USBKey screen.
- the acquiring unit 22 of the Bluetooth pairing device acquires the corresponding connection information from the two-dimensional code information on the USBKey screen by using the two-dimensional code information on the scanned USB Key screen.
- the Bluetooth pairing unit 23 of the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the connection information in the two-dimensional code information on the USBKey screen.
- the Bluetooth pairing device does not obtain the device information of the Bluetooth device to be paired, the connection information in the two-dimensional code information on the USBKey screen is obtained by scanning the pairing mode, thereby quickly matching with the to-be-matched The Bluetooth device completes the Bluetooth pairing and the user experience is good.
- the Bluetooth pairing module 20 is further configured to search for pairing if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired. The mode completes Bluetooth pairing with the to-be-paired Bluetooth device.
- the Bluetooth pairing module 20 of the Bluetooth pairing device does not obtain the device information and the QR code information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey to be paired and the 2D on the USBKey screen are not obtained.
- the pairing mode is searched, that is, the Bluetooth device to be paired is obtained by searching, and all the searched Bluetooth devices to be paired are displayed in the display list, and then in the display list. Select the corresponding Bluetooth device to be paired, and then perform Bluetooth pairing confirmation with the corresponding Bluetooth device to be paired, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
- the Bluetooth pairing device provided in this embodiment, if the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, selects the corresponding Bluetooth device to be paired in the display list by searching the pairing mode, thereby quickly matching with the to-be-matched device.
- the Bluetooth device completes the Bluetooth pairing and the user experience is good.
- FIG. 9 is a schematic diagram of a function module of the Bluetooth pairing module in FIG. 7.
- the Bluetooth pairing module 20 further includes:
- the searching unit 24 is configured to acquire the device information of the Bluetooth device to be paired and the Bluetooth device to be paired by searching a pairing mode;
- the connection requesting unit 25 is configured to establish a connection request with the to-be-paired Bluetooth device according to the obtained device information of the Bluetooth device to be paired, and display prompt information of the connection application on the display interface;
- the second Bluetooth pairing unit 26 performs Bluetooth pairing with the to-be-paired Bluetooth device if an instruction to disconnect is not received within a preset time threshold.
- the searching unit 24 of the Bluetooth pairing device synchronously displays the number of Bluetooth devices to be paired that have been found and the remaining scanning time by searching the pairing mode.
- the preset scanning time of the Bluetooth pairing device is also different.
- the BLE scan time is set to 5S
- the 2.1 protocol scan time is set to 60S. If it is the 2.1 protocol, it is necessary to synchronously display the to-be-paired Bluetooth device that has been scanned on the display interface, and increase the user stop scanning button.
- connection requesting unit 25 of the Bluetooth pairing device establishes a connection request with the Bluetooth device to be paired according to the obtained device information (for example, serial number information) of the Bluetooth device to be paired, and displays a prompt for the connection request on the display interface. information.
- the second Bluetooth pairing unit 26 of the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the device information (for example, serial number information) of the Bluetooth device to be paired, if it is within a preset time threshold (for example, 5S)
- a Bluetooth connection is established with the Bluetooth device to be paired.
- the user may reject the Bluetooth connection. If the user does not reject the Bluetooth connection when the preset time threshold is reached, the Bluetooth pairing device defaults to accept the Bluetooth connection.
- the Bluetooth pairing device provided in this embodiment does not receive the disconnection instruction within the preset time threshold, the Bluetooth connection is established with the Bluetooth device to be paired, so that the Bluetooth device to be paired is quickly completed. And give the Bluetooth device the autonomy to reject the Bluetooth connection, enhancing the security of the Bluetooth paired device connection.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域Technical field
本发明涉及通信领域,尤其涉及蓝牙配对方法和蓝牙配对设备。The present invention relates to the field of communications, and in particular, to a Bluetooth pairing method and a Bluetooth pairing device.
背景技术Background technique
现有的蓝牙配对和接入方式,需要首先与待配对的蓝牙设备(例如,USBKey)进行扫描、选择、配对、再使用。不仅步骤繁琐,客户体验也不好,并且经常需要扫描很长时间才能适配成功。另外,对于一些扩展的连接,还需要有额外的支持,如通过NFC(Near Field Communication,近距离无线通讯技术)和音频的连接,都需要外接设备。因此,如何快速与待配对的蓝牙设备完成蓝牙配对,是一个亟待解决的问题。The existing Bluetooth pairing and access method needs to first scan, select, pair, and reuse with the Bluetooth device to be paired (for example, USBKey). Not only is the steps cumbersome, the customer experience is not good, and it often takes a long time to adapt to success. In addition, for some extended connections, additional support is required, such as through NFC (Near) Field Communication, proximity wireless communication technology and audio connections require external devices. Therefore, how to quickly complete Bluetooth pairing with the Bluetooth device to be paired is an urgent problem to be solved.
发明内容Summary of the invention
本发明的主要目的在于提供一种蓝牙配对方法和蓝牙配对设备,旨在快速与待配对的蓝牙设备完成蓝牙配对。The main purpose of the present invention is to provide a Bluetooth pairing method and a Bluetooth pairing device, which aim to quickly complete Bluetooth pairing with a Bluetooth device to be paired.
为实现上述目的,本发明提供的一种蓝牙配对方法,所述蓝牙配对方法包括以下步骤:To achieve the above objective, the present invention provides a Bluetooth pairing method, and the Bluetooth pairing method includes the following steps:
获取待配对的蓝牙设备的连接信息的信息状态;Obtaining the information status of the connection information of the Bluetooth device to be paired;
根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对。And according to the obtained information state of the connection information, selecting a corresponding Bluetooth pairing mode and performing Bluetooth pairing with the Bluetooth device to be paired.
优选地,述连接信息包括设备信息、所述对应的蓝牙配对模式包括定向配对模式,所述根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对的步骤包括:Preferably, the connection information includes device information, the corresponding Bluetooth pairing mode includes a directional pairing mode, and the selected Bluetooth pairing mode is completed with the Bluetooth device to be paired according to the acquired information state of the connection information. The steps for Bluetooth pairing include:
若获取到所述待配对蓝牙设备的所述设备信息时,则根据获取到的所述待配对蓝牙设备的所述设备信息,通过定向配对模式与所述待配对的蓝牙设备完成蓝牙配对。And if the device information of the Bluetooth device to be paired is obtained, the Bluetooth pairing is completed with the Bluetooth device to be paired by the directional pairing mode according to the obtained device information of the Bluetooth device to be paired.
优选地,所述连接信息包括设备信息和二维码信息、所述对应的蓝牙配对模式包括扫描配对模式,所述根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对的步骤包括:Preferably, the connection information includes device information and two-dimensional code information, the corresponding Bluetooth pairing mode includes a scan pairing mode, and the corresponding Bluetooth pairing mode is selected according to the obtained information state of the connection information. The steps for the Bluetooth device to be paired to complete Bluetooth pairing include:
若未获取到所述待配对蓝牙设备的所述设备信息时,则通过扫描配对模式获取所述待配对蓝牙设备的所述二维码信息;并根据获取的所述待配对蓝牙设备的所述二维码信息,与所述待配对的蓝牙设备完成蓝牙配对。If the device information of the Bluetooth device to be paired is not obtained, the two-dimensional code information of the Bluetooth device to be paired is acquired by scanning a pairing mode; and according to the acquired Bluetooth device to be paired The QR code information is used to complete Bluetooth pairing with the Bluetooth device to be paired.
优选地,所述通过扫描配对模式获取待配对蓝牙设备的二维码信息;并根据获取的待配对蓝牙设备的二维码信息,与待配对的蓝牙设备完成蓝牙配对的步骤包括:Preferably, the step of acquiring the two-dimensional code information of the Bluetooth device to be paired by the scan pairing mode; and completing the Bluetooth pairing with the Bluetooth device to be paired according to the obtained two-dimensional code information of the Bluetooth device to be paired includes:
采用摄像头扫描所述待配对的蓝牙设备上的所述二维码信息;Scanning, by using a camera, the two-dimensional code information on the Bluetooth device to be paired;
通过扫描的所述待配对的蓝牙设备上的所述二维码信息,获取所述待配对的蓝牙设备的所述连接信息;Obtaining, by the scanned two-dimensional code information on the Bluetooth device to be paired, the connection information of the Bluetooth device to be paired;
根据获取的所述待配对的蓝牙设备的所述连接信息,与所述待配对的蓝牙设备完成蓝牙配对。And performing Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired.
优选地,所述对应的蓝牙配对模式还包括搜索配对模式,所述根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对的步骤包括:Preferably, the corresponding Bluetooth pairing mode further includes: searching for a pairing mode, the step of selecting a corresponding Bluetooth pairing mode and the Bluetooth device to be paired to complete Bluetooth pairing according to the obtained information state of the connection information comprises:
若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对。If the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the Bluetooth pairing is completed with the to-be-paired Bluetooth device by searching for the pairing mode.
所述若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对的步骤包括:If the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the step of performing Bluetooth pairing with the to-be-paired Bluetooth device by searching for the pairing mode includes:
通过搜索配对模式获取所述待配对蓝牙设备以及所述待配对蓝牙设备的设备信息;Obtaining, by searching a pairing mode, the device information of the to-be-paired Bluetooth device and the to-be-paired Bluetooth device;
根据获取的所述待配对蓝牙设备的设备信息,与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息;Establishing a connection request with the to-be-paired Bluetooth device according to the obtained device information of the to-be-paired Bluetooth device, and displaying the prompt information of the connection request on the display interface;
若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接。If the disconnection instruction is not received within the preset time threshold, a Bluetooth connection is established with the to-be-paired Bluetooth device.
为了解决上述的技术问题,本发明进一步提供一种蓝牙配对设备,所述蓝牙配对设备包括:In order to solve the above technical problem, the present invention further provides a Bluetooth pairing device, where the Bluetooth pairing device includes:
获取模块,用于获取待配对的蓝牙设备的连接信息的信息状态;An obtaining module, configured to acquire information state of connection information of a Bluetooth device to be paired;
蓝牙配对模块,用于根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对。The Bluetooth pairing module is configured to select a corresponding Bluetooth pairing mode and complete the Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
优选地,所述蓝牙配对模块还用于若获取到待配对蓝牙设备的设备信息时,则根据蓝牙设备的设备信息,通过定向配对模式与待配对的蓝牙设备完成蓝牙配对。Preferably, the Bluetooth pairing module is further configured to perform Bluetooth pairing with the Bluetooth device to be paired through the directional pairing mode according to the device information of the Bluetooth device if the device information of the Bluetooth device to be paired is acquired.
优选地,所述蓝牙配对模块还用于若未获取到所述待配对蓝牙设备的所述设备信息时,则通过扫描配对模式获取所述待配对蓝牙设备的所述二维码信息;并根据获取的所述待配对蓝牙设备的所述二维码信息,与所述待配对的蓝牙设备完成蓝牙配对。Preferably, the Bluetooth pairing module is further configured to: when the device information of the Bluetooth device to be paired is not acquired, acquire the two-dimensional code information of the Bluetooth device to be paired by scanning a pairing mode; Obtaining the two-dimensional code information of the Bluetooth device to be paired, and performing Bluetooth pairing with the Bluetooth device to be paired.
优选地,所述蓝牙配对模块包括:Preferably, the Bluetooth pairing module includes:
扫描单元,用于采用摄像头扫描所述待配对的蓝牙设备上的所述二维码信息;a scanning unit, configured to scan, by using a camera, the two-dimensional code information on the Bluetooth device to be paired;
获取单元,用于通过扫描的所述待配对的蓝牙设备上的所述二维码信息,获取所述待配对的蓝牙设备的所述连接信息;An acquiring unit, configured to acquire, by using the scanned two-dimensional code information on the Bluetooth device to be paired, the connection information of the Bluetooth device to be paired;
第一蓝牙配对单元,用于根据获取的所述待配对的蓝牙设备的所述连接信息,与所述待配对的蓝牙设备完成蓝牙配对。The first Bluetooth pairing unit is configured to complete Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired.
优选地,所述蓝牙配对模块还用于若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对。Preferably, the Bluetooth pairing module is further configured to perform Bluetooth pairing with the to-be-paired Bluetooth device by searching a pairing mode if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired. .
优选地,所述蓝牙配对模块还包括:Preferably, the Bluetooth pairing module further includes:
搜索单元,用于通过搜索配对模式获取所述待配对蓝牙设备以及所述待配对蓝牙设备的设备信息;a search unit, configured to acquire, by searching a pairing mode, the device information of the to-be-paired Bluetooth device and the to-be-paired Bluetooth device;
连接申请单元,用于根据获取的所述待配对蓝牙设备的设备信息,与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息;a connection requesting unit, configured to establish a connection request with the to-be-paired Bluetooth device according to the acquired device information of the Bluetooth device to be paired, and display prompt information of the connection application on the display interface;
第二蓝牙配对单元,若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备完成蓝牙配对。The second Bluetooth pairing unit performs Bluetooth pairing with the to-be-paired Bluetooth device if the disconnection command is not received within the preset time threshold.
本发明提供的蓝牙配对方法和蓝牙配对设备,通过获取待配对的蓝牙设备的连接信息的信息状态;根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对。本发明根据获取的连接信息的信息状态来选择对应的蓝牙配对模式,从而快速与待配对的蓝牙设备完成蓝牙配对,用户体验好。The Bluetooth pairing method and the Bluetooth pairing device provided by the present invention obtain the information state of the connection information of the Bluetooth device to be paired, and select the corresponding Bluetooth pairing mode and the Bluetooth to be paired according to the acquired information state of the connection information. The device completes Bluetooth pairing. The invention selects the corresponding Bluetooth pairing mode according to the information state of the acquired connection information, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
附图说明DRAWINGS
图1为本发明蓝牙配对方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a Bluetooth pairing method according to the present invention;
图2为本发明蓝牙配对方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a Bluetooth pairing method according to the present invention;
图3为本发明蓝牙配对方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a Bluetooth pairing method according to the present invention;
图4为图3中所述通过扫描配对模式获取所述待配对蓝牙设备的所述二维码信息;并根据获取的所述待配对蓝牙设备的所述二维码信息,与所述待配对的蓝牙设备完成蓝牙配对的步骤的细化流程示意图;4 is the two-dimensional code information of the Bluetooth device to be paired acquired by the scan pairing mode in FIG. 3; and the paired to be paired according to the acquired two-dimensional code information of the Bluetooth device to be paired Schematic diagram of the detailed process of completing the Bluetooth pairing process by the Bluetooth device;
图5为本发明蓝牙配对方法第四实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of a fourth embodiment of a Bluetooth pairing method according to the present invention; FIG.
图6为图5中所述若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对的步骤的细化流程示意图;6 is the step of performing the Bluetooth pairing with the to-be-paired Bluetooth device by searching the pairing mode, if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired, as described in FIG. Refine the schematic diagram of the process;
图7为本发明蓝牙配对设备一实施例的功能模块示意图;FIG. 7 is a schematic diagram of functional modules of an embodiment of a Bluetooth pairing device according to the present invention; FIG.
图8为图6中所述蓝牙配对模块第一实施例的功能模块示意图;8 is a schematic diagram of functional modules of the first embodiment of the Bluetooth pairing module of FIG. 6;
图9为图6中所述蓝牙配对模块第二实施例的功能模块示意图。FIG. 9 is a schematic diagram of functional modules of the second embodiment of the Bluetooth pairing module of FIG. 6.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种蓝牙配对方法,参照图1,图1为本发明蓝牙配对方法第一实施例的流程示意图,在第一实施例中,所述蓝牙配对方法包括以下步骤:The present invention provides a Bluetooth pairing method. Referring to FIG. 1, FIG. 1 is a schematic flowchart of a Bluetooth pairing method according to a first embodiment of the present invention. In the first embodiment, the Bluetooth pairing method includes the following steps:
步骤S100、获取待配对的蓝牙设备的连接信息的信息状态。Step S100: Obtain an information status of connection information of a Bluetooth device to be paired.
蓝牙配对设备获取待配对的蓝牙设备的连接信息的信息状态,所述蓝牙配对设备和待配对的蓝牙设备包括移动终端、USBKey(国内习惯翻译成U盾,或者优盾)和具备蓝牙功能的其他电子设备等。其中,蓝牙是一种支持设备短距离通信(一般10m内)的无线电技术,能在在移动电话、PDA、无线耳机、笔记本电脑以及相关外设等众多设备之间进行无线信息交换。所述待配对的蓝牙设备的连接信息包括设备信息和二维码信息,例如,设备信息可以为USBKey的内部的证书和序列号信息,二维码信息可以为USBKey自带的屏幕展示连接的二维码信息。The Bluetooth pairing device acquires the information status of the connection information of the Bluetooth device to be paired, and the Bluetooth pairing device and the Bluetooth device to be paired include a mobile terminal, a USBKey (domestic custom translated into a U shield, or a U-Shield), and other Bluetooth-enabled functions. Electronic equipment, etc. Among them, Bluetooth is a radio technology that supports short-range communication (usually within 10m) of the device, and can exchange wireless information between many devices such as mobile phones, PDAs, wireless headsets, notebook computers and related peripherals. The connection information of the Bluetooth device to be paired includes device information and two-dimensional code information. For example, the device information may be an internal certificate and serial number information of the USBKey, and the two-dimensional code information may be a screen display connection of the USBKey. Dimension code information.
步骤S200、根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对。Step S200: Select a Bluetooth pairing mode to complete Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
蓝牙配对设备根据获取的待配对的蓝牙设备的连接信息的信息状态,例如,蓝牙配对设备通过USBKey的自身特点,通过获取USBKey的自带信息(例如自带的序列号和证书信息)、或者通过扫描USBKey屏幕上的二维码信息,获取与所述蓝牙设备进行连接的连接信息,从而与待配对的蓝牙设备完成蓝牙配对。其中,所述蓝牙配对模式包括定向配对模式、扫描配对模式和搜索配对模式,定向配对模式是指通过定向方式直接获取指定的待配对的蓝牙设备自带的设备信息,再通过所述设备信息与待配对的蓝牙设备完成蓝牙配对的方式;扫描配对模式是指通过扫描方式获取待配对的蓝牙设备的屏幕上的二维码中携带的连接信息,从而与所述待配对的蓝牙设备完成蓝牙配对的方式;搜索配对模式是指通过搜索的方式获取待配对的蓝牙设备,再通过选择对应的待配对的蓝牙设备、然后与待配对的蓝牙设备进行蓝牙配对确认,从而与所述待配对的蓝牙设备完成蓝牙配对的方式。The Bluetooth pairing device obtains the information status of the connection information of the Bluetooth device to be paired according to the acquired information, for example, the Bluetooth pairing device obtains the USB Key's own information (such as the serial number and certificate information provided by the USB Key) through the USBKey's own characteristics, or Scan the QR code information on the USBKey screen to obtain connection information for connecting with the Bluetooth device, thereby completing Bluetooth pairing with the Bluetooth device to be paired. The Bluetooth pairing mode includes a directional pairing mode, a scan pairing mode, and a search pairing mode. The directional pairing mode directly acquires the device information of the specified Bluetooth device to be paired by the directional mode, and then uses the device information to The Bluetooth device to be paired is configured to complete the Bluetooth pairing. The scan pairing mode is to obtain the connection information carried in the two-dimensional code on the screen of the Bluetooth device to be paired by scanning, so as to complete the Bluetooth pairing with the Bluetooth device to be paired. The search pairing mode refers to obtaining the Bluetooth device to be paired by searching, and then selecting the corresponding Bluetooth device to be paired, and then performing Bluetooth pairing confirmation with the Bluetooth device to be paired, thereby interacting with the Bluetooth to be paired. How the device completes Bluetooth pairing.
本实施例提供的蓝牙配对方法,通过获取USBKey自带的连接信息来选择对应的蓝牙配对模式,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing method provided in this embodiment selects the corresponding Bluetooth pairing mode by acquiring the connection information provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
如图2所示,图2为本发明蓝牙配对方法第二实施例的流程示意图,在第一实施例的基础上,所述步骤S100之后包括:As shown in FIG. 2, FIG. 2 is a schematic flowchart of a second embodiment of a Bluetooth pairing method according to the present invention. On the basis of the first embodiment, the step S100 includes:
步骤S300、若获取到所述待配对蓝牙设备的所述设备信息时,则根据获取到的所述待配对蓝牙设备的所述设备信息,通过定向配对模式与所述待配对的蓝牙设备完成蓝牙配对。In step S300, if the device information of the Bluetooth device to be paired is obtained, the Bluetooth device is configured to complete the Bluetooth with the Bluetooth device to be paired according to the device information of the Bluetooth device to be paired. pair.
在本实施中,蓝牙配对设备若获取到待配对蓝牙设备的设备信息时,例如USBKey自带的序列号和证书信息,则根据获取到的待配对蓝牙设备的USBKey的自带的序列号和证书信息,通过定向配对模式与待配对的蓝牙设备完成蓝牙配对。即蓝牙配对设备通过定向方式直接获取指定的待配对的蓝牙设备自带的序列号和证书信息,再通过所述待配对的蓝牙设备自带的序列号和证书信息,从而与待配对的蓝牙设备完成蓝牙配对。In this implementation, if the Bluetooth pairing device obtains the device information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey, the serial number and certificate of the USBKey of the Bluetooth device to be paired are obtained according to the obtained serial number and certificate. Information, through the directional pairing mode to complete the Bluetooth pairing with the Bluetooth device to be paired. That is, the Bluetooth pairing device directly obtains the serial number and certificate information of the specified Bluetooth device to be paired by the directional mode, and then passes the serial number and the certificate information of the Bluetooth device to be paired, thereby the Bluetooth device to be paired. Complete Bluetooth pairing.
本实施例提供的蓝牙配对方法,通过获取USBKey自带的设备信息,直接选择定向配对模式,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing method provided in this embodiment directly selects the directional pairing mode by acquiring the device information that is provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
如图3所示,图3为本发明蓝牙配对方法第三实施例的流程示意图,在第一实施例的基础上,所述步骤S100之后包括:As shown in FIG. 3, FIG. 3 is a schematic flowchart of a third embodiment of a Bluetooth pairing method according to the present invention. On the basis of the first embodiment, the step S100 includes:
步骤S400、若未获取到所述待配对蓝牙设备的所述设备信息时,则通过扫描配对模式获取所述待配对蓝牙设备的所述二维码信息;并根据获取的所述待配对蓝牙设备的所述二维码信息,与所述待配对的蓝牙设备完成蓝牙配对。Step S400: If the device information of the Bluetooth device to be paired is not obtained, obtain the two-dimensional code information of the Bluetooth device to be paired by scanning a pairing mode; and according to the acquired Bluetooth device to be paired The two-dimensional code information is Bluetooth paired with the Bluetooth device to be paired.
蓝牙配对设备若未获取到待配对蓝牙设备的设备信息时,例如,未获取到待配对的USBKey自带的序列号和证书信息时,则通过扫描配对模式,获取待配对蓝牙设备的二维码信息;然后根据二维码信息中携带的连接信息,与待配对的蓝牙设备完成蓝牙配对。If the Bluetooth pairing device does not obtain the device information of the Bluetooth device to be paired, for example, if the serial number and certificate information of the USBKey to be paired are not obtained, the two-dimensional code of the Bluetooth device to be paired is obtained by scanning the pairing mode. Information; then, according to the connection information carried in the QR code information, the Bluetooth pairing is completed with the Bluetooth device to be paired.
本实施例提供的蓝牙配对方法,若未获取到待配对蓝牙设备的设备信息时,则通过扫描配对模式,获取二维码信息中携带的连接信息,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing method provided in this embodiment, if the device information of the Bluetooth device to be paired is not obtained, obtains the connection information carried in the two-dimensional code information by scanning the pairing mode, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired. And the user experience is good.
如图4所示,图4为图3中所述步骤S400的细化流程示意图,在本实施例中,所述步骤S400包括:As shown in FIG. 4, FIG. 4 is a schematic diagram of a refinement process of step S400 in FIG. 3. In this embodiment, the step S400 includes:
步骤S410、采用摄像头扫描所述待配对的蓝牙设备上的所述二维码信息。Step S410: Scan the two-dimensional code information on the Bluetooth device to be paired by using a camera.
蓝牙配对设备采用摄像头扫描待配对的蓝牙设备上的二维码信息,例如,USBKey屏幕上的二维码信息。The Bluetooth pairing device uses the camera to scan the QR code information on the Bluetooth device to be paired, for example, the QR code information on the USBKey screen.
步骤S420、通过扫描的所述待配对的蓝牙设备上的所述二维码信息,获取所述待配对的蓝牙设备的所述连接信息。Step S420: Obtain the connection information of the Bluetooth device to be paired by using the scanned two-dimensional code information on the Bluetooth device to be paired.
蓝牙配对设备通过扫描的USBKey屏幕上的二维码信息,从所述USBKey屏幕上的二维码信息中获取对应的连接信息。The Bluetooth pairing device obtains the corresponding connection information from the two-dimensional code information on the USBKey screen through the two-dimensional code information on the scanned USBKey screen.
步骤S430、根据获取的所述待配对的蓝牙设备的所述连接信息,与所述待配对的蓝牙设备完成蓝牙配对。Step S430: Perform Bluetooth pairing with the Bluetooth device to be paired according to the obtained connection information of the Bluetooth device to be paired.
蓝牙配对设备根据所述USBKey屏幕上的二维码信息中的连接信息,与待配对的蓝牙设备完成蓝牙配对。The Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the connection information in the two-dimensional code information on the USBKey screen.
本实施例提供的蓝牙配对方法,若未获取到待配对蓝牙设备的设备信息时,则通过扫描配对模式,获取所述USBKey屏幕上的二维码信息中的连接信息,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。In the Bluetooth pairing method provided by the embodiment, if the device information of the Bluetooth device to be paired is not obtained, the connection information in the two-dimensional code information on the USBKey screen is obtained by scanning the pairing mode, so as to quickly match with the to-be-matched The Bluetooth device completes the Bluetooth pairing and the user experience is good.
如图5所示,图5为本发明蓝牙配对方法第四实施例的流程示意图,在第一实施例的基础上,所述步骤S100之后还包括:As shown in FIG. 5, FIG. 5 is a schematic flowchart of a fourth embodiment of a Bluetooth pairing method according to the present invention. On the basis of the first embodiment, the step S100 further includes:
步骤S500、若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对。Step S500: If the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the Bluetooth pairing is completed with the to-be-paired Bluetooth device by searching for the pairing mode.
蓝牙配对设备若未获取到待配对蓝牙设备的设备信息和二维码信息时,例如,未获取到待配对的USBKey自带的序列号和证书信息以及USBKey屏幕上的二维码信息中的连接信息时,则通过搜索配对模式,即通过搜索的方式获取待配对的蓝牙设备,并将所有搜索的待配对的蓝牙设备在显示列表中进行显示,再在所述显示列表中选择对应的待配对的蓝牙设备、然后与对应的待配对的蓝牙设备进行蓝牙配对确认,从而与所述待配对的蓝牙设备完成蓝牙配对。If the Bluetooth pairing device does not obtain the device information and the QR code information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey to be paired and the connection in the QR code information on the USBKey screen are not obtained. When the information is searched, the paired mode is searched, that is, the Bluetooth device to be paired is obtained by searching, and all the searched Bluetooth devices to be paired are displayed in the display list, and then the corresponding pair to be paired is selected in the display list. The Bluetooth device then performs Bluetooth pairing confirmation with the corresponding Bluetooth device to be paired, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
本实施例提供的蓝牙配对方法,若未获取到待配对蓝牙设备的设备信息和二维码信息时,则通过搜索配对模式,选择显示列表中对应的待配对的蓝牙设备,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。In the Bluetooth pairing method provided by the embodiment, if the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, the paired mode is selected, and the corresponding Bluetooth device to be paired in the display list is selected, so as to be quickly paired with the device to be paired. The Bluetooth device completes the Bluetooth pairing and the user experience is good.
如图6所示,图6为图5中所述步骤S500的细化流程示意图,在本实施例中,所述步骤S500包括:As shown in FIG. 6, FIG. 6 is a schematic diagram of a refinement process of step S500 in FIG. 5. In this embodiment, the step S500 includes:
步骤S510、通过搜索配对模式获取所述待配对蓝牙设备以及所述待配对蓝牙设备的设备信息。Step S510: Obtain the device information of the Bluetooth device to be paired and the Bluetooth device to be paired by searching a pairing mode.
蓝牙配对设备通过搜索配对模式,在显示界面同步显示已经找到的待配对蓝牙设备的个数以及剩余的扫描时间,根据蓝牙协议的不同,蓝牙配对设备预设的扫描时间也不同,例如,将BLE扫描时间设置在5S内,将2.1协议扫描时间设置在60S内。如果是2.1协议,需要在显示界面同步显示已经扫描到的所述待配对蓝牙设备,并增加用户停止扫描按钮。The Bluetooth pairing device synchronously displays the number of Bluetooth devices to be paired and the remaining scan time by searching the pairing mode. According to the Bluetooth protocol, the preset time of the Bluetooth pairing device is different, for example, BLE The scan time is set within 5S, and the 2.1 protocol scan time is set to 60S. If it is the 2.1 protocol, it is necessary to synchronously display the to-be-paired Bluetooth device that has been scanned on the display interface, and increase the user stop scanning button.
步骤S520、根据获取的所述待配对蓝牙设备的设备信息,与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息。Step S520: Establish a connection request with the to-be-paired Bluetooth device according to the obtained device information of the Bluetooth device to be paired, and display prompt information of the connection request on the display interface.
蓝牙配对设备根据获取的所述待配对蓝牙设备的设备信息(例如序列号信息),与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息。The Bluetooth pairing device establishes a connection request with the to-be-paired Bluetooth device according to the obtained device information (for example, serial number information) of the to-be-paired Bluetooth device, and displays the prompt information of the connection request on the display interface.
步骤S530、根据获取的所述待配对的蓝牙设备的所述连接信息,与所述待配对的蓝牙设备完成蓝牙配对若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接。Step S530: Perform Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired, if no instruction to disconnect is received within a preset time threshold, then Tell the paired Bluetooth device to establish a Bluetooth connection.
蓝牙配对设备根据所述待配对蓝牙设备的设备信息(例如序列号信息),与所述待配对的蓝牙设备完成蓝牙配对若在预设时间阈值内(例如5S)未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接。在本实施例中,在预设时间阈值内,用户可以拒绝蓝牙连接,若在预设时间阈值到时用户不拒绝蓝牙连接,则所述蓝牙配对设备默认为接受蓝牙连接。The Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the device information (for example, serial number information) of the to-be-paired Bluetooth device, if the disconnection command is not received within a preset time threshold (for example, 5S) And establishing a Bluetooth connection with the to-be-paired Bluetooth device. In this embodiment, within a preset time threshold, the user may reject the Bluetooth connection. If the user does not reject the Bluetooth connection when the preset time threshold is reached, the Bluetooth pairing device defaults to accept the Bluetooth connection.
本实施例提供的蓝牙配对方法,若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接,从而快速与待配对的蓝牙设备完成蓝牙配对,并给予了蓝牙设备拒绝蓝牙连接的自主权,增强了蓝牙配对设备连接的安全性。The Bluetooth pairing method provided in this embodiment, if the disconnection instruction is not received within the preset time threshold, establishes a Bluetooth connection with the to-be-paired Bluetooth device, thereby quickly completing Bluetooth pairing with the Bluetooth device to be paired. And give the Bluetooth device the autonomy to reject the Bluetooth connection, enhancing the security of the Bluetooth paired device connection.
如图7所示,图7为本发明蓝牙配对设备一实施例的功能模块示意图,在一实施例中,所述蓝牙配对设备包括:As shown in FIG. 7, FIG. 7 is a schematic diagram of a functional module of an embodiment of a Bluetooth pairing device according to an embodiment of the present invention. In an embodiment, the Bluetooth pairing device includes:
获取模块10,用于获取待配对的蓝牙设备的连接信息的信息状态;The obtaining module 10 is configured to obtain an information state of connection information of the Bluetooth device to be paired;
蓝牙配对模块20,用于根据获取的所述连接信息的信息状态,选择对应的蓝牙配对模式与所述待配对的蓝牙设备完成蓝牙配对。The Bluetooth pairing module 20 is configured to select a corresponding Bluetooth pairing mode and perform Bluetooth pairing with the Bluetooth device to be paired according to the obtained information state of the connection information.
蓝牙配对设备的获取模块10获取待配对的蓝牙设备的连接信息的信息状态,所述蓝牙配对设备和待配对的蓝牙设备包括移动终端、USBKey(国内习惯翻译成U盾,或者优盾)和具备蓝牙功能的其他电子设备等。其中,蓝牙是一种支持设备短距离通信(一般10m内)的无线电技术,能在在移动电话、PDA、无线耳机、笔记本电脑以及相关外设等众多设备之间进行无线信息交换。所述待配对的蓝牙设备的连接信息包括设备信息和二维码信息,例如,设备信息可以为USBKey的内部的证书和序列号信息,二维码信息可以为USBKey自带的屏幕展示连接的二维码信息。The acquiring module 10 of the Bluetooth pairing device acquires the information status of the connection information of the Bluetooth device to be paired, and the Bluetooth pairing device and the Bluetooth device to be paired include a mobile terminal, a USBKey (domestic custom translated into a U shield, or a superior shield) and Other electronic devices such as Bluetooth. Among them, Bluetooth is a radio technology that supports short-range communication (usually within 10m) of the device, and can exchange wireless information between many devices such as mobile phones, PDAs, wireless headsets, notebook computers and related peripherals. The connection information of the Bluetooth device to be paired includes device information and two-dimensional code information. For example, the device information may be an internal certificate and serial number information of the USBKey, and the two-dimensional code information may be a screen display connection of the USBKey. Dimension code information.
蓝牙配对设备的蓝牙配对模块20根据获取的待配对的蓝牙设备的连接信息的信息状态,例如,蓝牙配对设备通过USBKey的自身特点,通过获取USBKey的自带信息(例如自带的序列号和证书信息)、或者通过扫描USBKey屏幕上的二维码信息,获取与所述蓝牙设备进行连接的连接信息,从而与待配对的蓝牙设备完成蓝牙配对。其中,所述蓝牙配对模式包括定向配对模式、扫描配对模式和搜索配对模式,定向配对模式是指通过定向方式直接获取指定的待配对的蓝牙设备自带的设备信息,再通过所述设备信息与待配对的蓝牙设备完成蓝牙配对的方式;扫描配对模式是指通过扫描方式获取待配对的蓝牙设备的屏幕上的二维码中携带的连接信息,从而与所述待配对的蓝牙设备完成蓝牙配对的方式;搜索配对模式是指通过搜索的方式获取待配对的蓝牙设备,再通过选择对应的待配对的蓝牙设备、然后与待配对的蓝牙设备进行蓝牙配对确认,从而与所述待配对的蓝牙设备完成蓝牙配对的方式。The Bluetooth pairing module 20 of the Bluetooth pairing device obtains the information of the USBKey's own information (for example, the serial number and certificate of the built-in USB Key) according to the acquired information of the connection information of the Bluetooth device to be paired. Information), or by scanning the QR code information on the USBKey screen, obtaining connection information for connection with the Bluetooth device, thereby completing Bluetooth pairing with the Bluetooth device to be paired. The Bluetooth pairing mode includes a directional pairing mode, a scan pairing mode, and a search pairing mode. The directional pairing mode directly acquires the device information of the specified Bluetooth device to be paired by the directional mode, and then uses the device information to The Bluetooth device to be paired is configured to complete the Bluetooth pairing. The scan pairing mode is to obtain the connection information carried in the two-dimensional code on the screen of the Bluetooth device to be paired by scanning, so as to complete the Bluetooth pairing with the Bluetooth device to be paired. The search pairing mode refers to obtaining the Bluetooth device to be paired by searching, and then selecting the corresponding Bluetooth device to be paired, and then performing Bluetooth pairing confirmation with the Bluetooth device to be paired, thereby interacting with the Bluetooth to be paired. How the device completes Bluetooth pairing.
本实施例提供的蓝牙配对设备,通过获取USBKey自带的连接信息来选择对应的蓝牙配对模式,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing device provided in this embodiment selects the corresponding Bluetooth pairing mode by acquiring the connection information of the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
进一步如图7所示,在本实施例中,所述蓝牙配对模块20还用于若获取到所述待配对蓝牙设备的所述设备信息时,则根据获取到的所述待配对蓝牙设备的所述设备信息,通过定向配对模式与所述待配对的蓝牙设备完成蓝牙配对。As shown in FIG. 7 , in the embodiment, the Bluetooth pairing module 20 is further configured to: when acquiring the device information of the Bluetooth device to be paired, according to the acquired Bluetooth device to be paired The device information completes Bluetooth pairing with the Bluetooth device to be paired through a directed pairing mode.
在本实施中,蓝牙配对设备的蓝牙配对模块20若获取到待配对蓝牙设备的设备信息时,例如USBKey自带的序列号和证书信息,则根据获取到的待配对蓝牙设备的USBKey的自带的序列号和证书信息,通过定向配对模式与待配对的蓝牙设备完成蓝牙配对。即蓝牙配对设备通过定向方式直接获取指定的待配对的蓝牙设备自带的序列号和证书信息,再通过所述待配对的蓝牙设备自带的序列号和证书信息,从而与待配对的蓝牙设备完成蓝牙配对。In this implementation, if the Bluetooth pairing module 20 of the Bluetooth pairing device acquires the device information of the Bluetooth device to be paired, for example, the serial number and the certificate information of the USBKey, the USBKey of the Bluetooth device to be paired is obtained. Serial number and certificate information, through the directional pairing mode to complete the Bluetooth pairing with the Bluetooth device to be paired. That is, the Bluetooth pairing device directly obtains the serial number and certificate information of the specified Bluetooth device to be paired by the directional mode, and then passes the serial number and the certificate information of the Bluetooth device to be paired, thereby the Bluetooth device to be paired. Complete Bluetooth pairing.
本实施例提供的蓝牙配对设备,通过获取USBKey自带的设备信息,直接选择定向配对模式,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing device provided in this embodiment directly selects the directional pairing mode by acquiring the device information provided by the USBKey, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired, and the user experience is good.
进一步如图7所示,在本实施例中,所述蓝牙配对模块20还用于若未获取到所述待配对蓝牙设备的所述设备信息时,则通过扫描配对模式获取所述待配对蓝牙设备的所述二维码信息;并根据获取的所述待配对蓝牙设备的所述二维码信息,与所述待配对的蓝牙设备完成蓝牙配对。As shown in FIG. 7 , in the embodiment, the Bluetooth pairing module 20 is further configured to acquire the to-be-paired Bluetooth by scanning the pairing mode, if the device information of the Bluetooth device to be paired is not acquired. The two-dimensional code information of the device; and performing Bluetooth pairing with the Bluetooth device to be paired according to the obtained two-dimensional code information of the Bluetooth device to be paired.
蓝牙配对设备的蓝牙配对模块20若未获取到待配对蓝牙设备的设备信息时,例如,未获取到待配对的USBKey自带的序列号和证书信息时,则通过扫描配对模式,获取待配对蓝牙设备的二维码信息;然后根据二维码信息中携带的连接信息,与待配对的蓝牙设备完成蓝牙配对。If the Bluetooth pairing module 20 of the Bluetooth pairing device does not obtain the device information of the Bluetooth device to be paired, for example, if the serial number and the certificate information of the USBKey to be paired are not obtained, the pairing mode is acquired to obtain the Bluetooth to be paired. The QR code information of the device; then, according to the connection information carried in the QR code information, the Bluetooth pairing is completed with the Bluetooth device to be paired.
本实施例提供的蓝牙配对设备,若未获取到待配对蓝牙设备的设备信息时,则通过扫描配对模式,获取二维码信息中携带的连接信息,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing device provided by the embodiment, if the device information of the Bluetooth device to be paired is not obtained, obtains the connection information carried in the two-dimensional code information by scanning the pairing mode, thereby quickly completing the Bluetooth pairing with the Bluetooth device to be paired. And the user experience is good.
如图8所述,图8为图7中所述蓝牙配对模块的功能模块示意图,在本实施例中,所述蓝牙配对模块20包括:As shown in FIG. 8, FIG. 8 is a schematic diagram of a function module of the Bluetooth pairing module in FIG. 7. In this embodiment, the Bluetooth pairing module 20 includes:
扫描单元21,用于采用摄像头扫描所述待配对的蓝牙设备上的所述二维码信息;The scanning unit 21 is configured to scan the two-dimensional code information on the Bluetooth device to be paired by using a camera;
获取单元22,用于通过扫描的所述待配对的蓝牙设备上的所述二维码信息,获取所述待配对的蓝牙设备的所述连接信息;The obtaining unit 22 is configured to acquire, by using the scanned two-dimensional code information on the Bluetooth device to be paired, the connection information of the Bluetooth device to be paired;
蓝牙配对单元23,用于根据获取的所述待配对的蓝牙设备的所述连接信息,与所述待配对的蓝牙设备完成蓝牙配对。The Bluetooth pairing unit 23 is configured to complete Bluetooth pairing with the Bluetooth device to be paired according to the acquired connection information of the Bluetooth device to be paired.
蓝牙配对设备的扫描单元21采用摄像头扫描待配对的蓝牙设备上的二维码信息,例如,USBKey屏幕上的二维码信息。The scanning unit 21 of the Bluetooth pairing device uses the camera to scan the two-dimensional code information on the Bluetooth device to be paired, for example, the two-dimensional code information on the USBKey screen.
蓝牙配对设备的获取单元22通过扫描的USBKey屏幕上的二维码信息,从所述USBKey屏幕上的二维码信息中获取对应的连接信息。The acquiring unit 22 of the Bluetooth pairing device acquires the corresponding connection information from the two-dimensional code information on the USBKey screen by using the two-dimensional code information on the scanned USB Key screen.
蓝牙配对设备的蓝牙配对单元23根据所述USBKey屏幕上的二维码信息中的连接信息,与待配对的蓝牙设备完成蓝牙配对。The Bluetooth pairing unit 23 of the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the connection information in the two-dimensional code information on the USBKey screen.
本实施例提供的蓝牙配对设备,若未获取到待配对蓝牙设备的设备信息时,则通过扫描配对模式,获取所述USBKey屏幕上的二维码信息中的连接信息,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。If the Bluetooth pairing device provided in this embodiment does not obtain the device information of the Bluetooth device to be paired, the connection information in the two-dimensional code information on the USBKey screen is obtained by scanning the pairing mode, thereby quickly matching with the to-be-matched The Bluetooth device completes the Bluetooth pairing and the user experience is good.
进一步如图7所示,在本实施例中,所述蓝牙配对模块20还用于若未获取到所述待配对蓝牙设备的所述设备信息和所述二维码信息时,则通过搜索配对模式与所述待配对蓝牙设备完成蓝牙配对。As shown in FIG. 7 , in the embodiment, the Bluetooth pairing module 20 is further configured to search for pairing if the device information and the two-dimensional code information of the Bluetooth device to be paired are not acquired. The mode completes Bluetooth pairing with the to-be-paired Bluetooth device.
蓝牙配对设备的蓝牙配对模块20若未获取到待配对蓝牙设备的设备信息和二维码信息时,例如,未获取到待配对的USBKey自带的序列号和证书信息以及USBKey屏幕上的二维码信息中的连接信息时,则通过搜索配对模式,即通过搜索的方式获取待配对的蓝牙设备,并将所有搜索的待配对的蓝牙设备在显示列表中进行显示,再在所述显示列表中选择对应的待配对的蓝牙设备、然后与对应的待配对的蓝牙设备进行蓝牙配对确认,从而与所述待配对的蓝牙设备完成蓝牙配对。If the Bluetooth pairing module 20 of the Bluetooth pairing device does not obtain the device information and the QR code information of the Bluetooth device to be paired, for example, the serial number and certificate information of the USBKey to be paired and the 2D on the USBKey screen are not obtained. When the connection information in the code information is used, the pairing mode is searched, that is, the Bluetooth device to be paired is obtained by searching, and all the searched Bluetooth devices to be paired are displayed in the display list, and then in the display list. Select the corresponding Bluetooth device to be paired, and then perform Bluetooth pairing confirmation with the corresponding Bluetooth device to be paired, thereby completing Bluetooth pairing with the Bluetooth device to be paired.
本实施例提供的蓝牙配对设备,若未获取到待配对蓝牙设备的设备信息和二维码信息时,则通过搜索配对模式,选择显示列表中对应的待配对的蓝牙设备,从而快速与待配对的蓝牙设备完成蓝牙配对,且用户体验好。The Bluetooth pairing device provided in this embodiment, if the device information and the two-dimensional code information of the Bluetooth device to be paired are not obtained, selects the corresponding Bluetooth device to be paired in the display list by searching the pairing mode, thereby quickly matching with the to-be-matched device. The Bluetooth device completes the Bluetooth pairing and the user experience is good.
如图9所述,图9为图7中所述蓝牙配对模块的功能模块示意图,在本实施例中,所述蓝牙配对模块20还包括:As shown in FIG. 9, FIG. 9 is a schematic diagram of a function module of the Bluetooth pairing module in FIG. 7. In this embodiment, the Bluetooth pairing module 20 further includes:
搜索单元24,用于通过搜索配对模式获取所述待配对蓝牙设备以及所述待配对蓝牙设备的设备信息;The searching unit 24 is configured to acquire the device information of the Bluetooth device to be paired and the Bluetooth device to be paired by searching a pairing mode;
连接申请单元25,用于根据获取的所述待配对蓝牙设备的设备信息,与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息;The connection requesting unit 25 is configured to establish a connection request with the to-be-paired Bluetooth device according to the obtained device information of the Bluetooth device to be paired, and display prompt information of the connection application on the display interface;
第二蓝牙配对单元26,若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备完成蓝牙配对。The second Bluetooth pairing unit 26 performs Bluetooth pairing with the to-be-paired Bluetooth device if an instruction to disconnect is not received within a preset time threshold.
蓝牙配对设备的搜索单元24通过搜索配对模式,在显示界面同步显示已经找到的待配对蓝牙设备的个数以及剩余的扫描时间,根据蓝牙协议的不同,蓝牙配对设备预设的扫描时间也不同,例如,将BLE扫描时间设置在5S内,将2.1协议扫描时间设置在60S内。如果是2.1协议,需要在显示界面同步显示已经扫描到的所述待配对蓝牙设备,并增加用户停止扫描按钮。The searching unit 24 of the Bluetooth pairing device synchronously displays the number of Bluetooth devices to be paired that have been found and the remaining scanning time by searching the pairing mode. According to the Bluetooth protocol, the preset scanning time of the Bluetooth pairing device is also different. For example, the BLE scan time is set to 5S, and the 2.1 protocol scan time is set to 60S. If it is the 2.1 protocol, it is necessary to synchronously display the to-be-paired Bluetooth device that has been scanned on the display interface, and increase the user stop scanning button.
蓝牙配对设备的连接申请单元25根据获取的所述待配对蓝牙设备的设备信息(例如序列号信息),与所述待配对蓝牙设备建立连接申请,并在显示界面上显示所述连接申请的提示信息。The connection requesting unit 25 of the Bluetooth pairing device establishes a connection request with the Bluetooth device to be paired according to the obtained device information (for example, serial number information) of the Bluetooth device to be paired, and displays a prompt for the connection request on the display interface. information.
蓝牙配对设备的第二蓝牙配对单元26根据所述待配对蓝牙设备的设备信息(例如序列号信息),与所述待配对的蓝牙设备完成蓝牙配对若在预设时间阈值内(例如5S)未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接。在本实施例中,在预设时间阈值内,用户可以拒绝蓝牙连接,若在预设时间阈值到时用户不拒绝蓝牙连接,则所述蓝牙配对设备默认为接受蓝牙连接。The second Bluetooth pairing unit 26 of the Bluetooth pairing device performs Bluetooth pairing with the Bluetooth device to be paired according to the device information (for example, serial number information) of the Bluetooth device to be paired, if it is within a preset time threshold (for example, 5S) When the instruction to disconnect is received, a Bluetooth connection is established with the Bluetooth device to be paired. In this embodiment, within a preset time threshold, the user may reject the Bluetooth connection. If the user does not reject the Bluetooth connection when the preset time threshold is reached, the Bluetooth pairing device defaults to accept the Bluetooth connection.
本实施例提供的蓝牙配对设备,若在预设时间阈值内未收到断开连接的指令时,则与所述待配对蓝牙设备建立蓝牙连接,从而快速与待配对的蓝牙设备完成蓝牙配对,并给予了蓝牙设备拒绝蓝牙连接的自主权,增强了蓝牙配对设备连接的安全性。If the Bluetooth pairing device provided in this embodiment does not receive the disconnection instruction within the preset time threshold, the Bluetooth connection is established with the Bluetooth device to be paired, so that the Bluetooth device to be paired is quickly completed. And give the Bluetooth device the autonomy to reject the Bluetooth connection, enhancing the security of the Bluetooth paired device connection.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (14)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510212208.4A CN104797005A (en) | 2015-04-29 | 2015-04-29 | Bluetooth pairing method and equipment |
| CN201510212208.4 | 2015-04-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016173259A1 true WO2016173259A1 (en) | 2016-11-03 |
Family
ID=53561406
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/097039 Ceased WO2016173259A1 (en) | 2015-04-29 | 2015-12-10 | Bluetooth pairing method and bluetooth pairing device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104797005A (en) |
| WO (1) | WO2016173259A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106600795A (en) * | 2017-01-10 | 2017-04-26 | 深圳市为控科技有限公司 | Bicycle and tricycle and anti-theft lockset and anti-theft system used by bicycle and tricycle |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
| CN105188023B (en) | 2015-10-15 | 2019-07-26 | 飞天诚信科技股份有限公司 | A Bluetooth communication method and communication device |
| CN106131971A (en) * | 2016-06-20 | 2016-11-16 | 乐视控股(北京)有限公司 | The method of attachment of bluetooth equipment and device |
| CN106131771B (en) * | 2016-07-01 | 2020-06-19 | 福建联迪商用设备有限公司 | Bluetooth pairing method and device for mobile phone and payment terminal |
| CN106211361B (en) * | 2016-08-01 | 2020-01-14 | 惠州Tcl移动通信有限公司 | Mobile terminal Bluetooth compatible processing method and system |
| CN106535090B (en) * | 2016-10-11 | 2020-04-03 | 歌尔科技有限公司 | Bluetooth device and intelligent device pairing method and Bluetooth device |
| CN106792483A (en) * | 2017-01-20 | 2017-05-31 | 北京信安世纪科技有限公司 | Connection method of the mobile platform with bluetooth equipment and attachment means |
| CN109769231A (en) * | 2017-11-09 | 2019-05-17 | 北京君正集成电路股份有限公司 | Bluetooth pairing connection method and device |
| CN109769230A (en) * | 2017-11-09 | 2019-05-17 | 北京君正集成电路股份有限公司 | Bluetooth pairing connection method and device |
| CN109769229A (en) * | 2017-11-09 | 2019-05-17 | 北京君正集成电路股份有限公司 | Bluetooth pairing connection method and device |
| CN110891265B (en) * | 2019-11-26 | 2023-01-03 | Oppo(重庆)智能科技有限公司 | Wireless connection control method and device, mobile terminal and storage medium |
| CN110933772A (en) * | 2019-12-13 | 2020-03-27 | 上海传英信息技术有限公司 | Connection method of wireless device, mobile terminal and computer readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140173125A1 (en) * | 2012-12-18 | 2014-06-19 | Salesforce.Com, Inc. | Systems and methods for transferring a session between devices in an on-demand computing environment |
| CN104113362A (en) * | 2013-04-17 | 2014-10-22 | 深圳中兴网信科技有限公司 | Bluetooth pairing method and device |
| CN104184502A (en) * | 2014-08-28 | 2014-12-03 | 许磊 | Bluetooth pairing device and method |
| CN104378145A (en) * | 2014-11-27 | 2015-02-25 | 北京深思数盾科技有限公司 | Method and system for pairing bluetooth devices |
| CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8805646B2 (en) * | 2010-09-30 | 2014-08-12 | Fitbit, Inc. | Methods, systems and devices for linking user devices to activity tracking devices |
| US8823494B1 (en) * | 2010-11-19 | 2014-09-02 | Logitech Europe S.A. | Systems and methods for wireless device connection and pairing |
| CN103701503A (en) * | 2013-12-25 | 2014-04-02 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and system, and Bluetooth KEY |
| CN104038263B (en) * | 2014-06-18 | 2017-01-11 | 小米科技有限责任公司 | Method and device for establishing Bluetooth connection |
-
2015
- 2015-04-29 CN CN201510212208.4A patent/CN104797005A/en active Pending
- 2015-12-10 WO PCT/CN2015/097039 patent/WO2016173259A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140173125A1 (en) * | 2012-12-18 | 2014-06-19 | Salesforce.Com, Inc. | Systems and methods for transferring a session between devices in an on-demand computing environment |
| CN104113362A (en) * | 2013-04-17 | 2014-10-22 | 深圳中兴网信科技有限公司 | Bluetooth pairing method and device |
| CN104184502A (en) * | 2014-08-28 | 2014-12-03 | 许磊 | Bluetooth pairing device and method |
| CN104378145A (en) * | 2014-11-27 | 2015-02-25 | 北京深思数盾科技有限公司 | Method and system for pairing bluetooth devices |
| CN104797005A (en) * | 2015-04-29 | 2015-07-22 | 深圳市文鼎创数据科技有限公司 | Bluetooth pairing method and equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106600795A (en) * | 2017-01-10 | 2017-04-26 | 深圳市为控科技有限公司 | Bicycle and tricycle and anti-theft lockset and anti-theft system used by bicycle and tricycle |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104797005A (en) | 2015-07-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016173259A1 (en) | Bluetooth pairing method and bluetooth pairing device | |
| WO2016029594A1 (en) | Method and system for terminal to connect with display device | |
| WO2015109865A1 (en) | Customized control method and system for air conditioner operation mode | |
| WO2019051902A1 (en) | Terminal control method, air conditioner and computer-readable storage medium | |
| WO2017034116A1 (en) | Mobile terminal and method for controlling the same | |
| WO2016058258A1 (en) | Terminal remote control method and system | |
| WO2013131444A1 (en) | Content sharing method, terminal, server, and system, and computer storage medium | |
| WO2015120774A1 (en) | Network access method and apparatus applied to mobile application | |
| WO2018023926A1 (en) | Interaction method and system for television and mobile terminal | |
| WO2017028613A1 (en) | Terminal control method and apparatus based on remote controller app | |
| WO2015158032A1 (en) | Method and system for unlocking screen of mobile terminal by means of retina information matching | |
| WO2017121066A1 (en) | Application program display method and system | |
| WO2015169177A1 (en) | Web page display method and apparatus | |
| WO2019107946A1 (en) | Electronic device and method for processing remote payment | |
| WO2018223602A1 (en) | Display terminal, frame contrast enhancement method, and computer readable storage medium | |
| WO2018082186A1 (en) | Emi positioning method and device for television | |
| WO2019085301A1 (en) | Missed call feedback method, apparatus and device for fixed phone, and readable storage medium | |
| WO2019051684A1 (en) | Picture editing method, mobile terminal, and readable storage medium | |
| WO2019051897A1 (en) | Terminal operating parameter adjustment method and device, and computer readable storage medium | |
| WO2019051901A1 (en) | Terminal control method and device, and computer readable storage medium | |
| WO2015192801A1 (en) | Electronic device control method and system, and related device | |
| WO2017177523A1 (en) | Intelligent television and icon control method therefor | |
| WO2018023931A1 (en) | Method and system for quickly entering password of television | |
| WO2017190453A1 (en) | Wireless communication connection control method and apparatus | |
| WO2020075960A1 (en) | Electronic device, external electronic device, and method for controlling external electronic device by using electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15890634 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15890634 Country of ref document: EP Kind code of ref document: A1 |