WO2017076269A1 - Smart device, and method and apparatus for establishing bluetooth connection between devices therefor - Google Patents
Smart device, and method and apparatus for establishing bluetooth connection between devices therefor Download PDFInfo
- Publication number
- WO2017076269A1 WO2017076269A1 PCT/CN2016/104195 CN2016104195W WO2017076269A1 WO 2017076269 A1 WO2017076269 A1 WO 2017076269A1 CN 2016104195 W CN2016104195 W CN 2016104195W WO 2017076269 A1 WO2017076269 A1 WO 2017076269A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bluetooth
- module
- target
- connection
- matching
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Definitions
- the present invention relates to the field of Bluetooth communications, and in particular, to a smart device and a method and apparatus for establishing a Bluetooth connection.
- Bluetooth communication technology especially low-power Bluetooth communication technology has become an important communication method.
- a smart device When a smart device establishes a Bluetooth connection, it generally needs to scan and display the surrounding Bluetooth devices to the user, and the user selects the Bluetooth device to be connected to perform the connection operation.
- the smart device As the number of devices supporting Bluetooth communication increases, the smart device usually scans out the surrounding Bluetooth devices, and the smart device will provide the user with a long list of peripheral Bluetooth devices, which makes it difficult for the user to correctly select the target Bluetooth device.
- the smart terminal achieves a pairing operation with the target Bluetooth device by capturing and parsing the physical address (MAC address) information printed on the target Bluetooth device housing or its manual.
- MAC address physical address
- this method has the following disadvantages: if the MAC address information is printed on the target Bluetooth device shell, the shell area of the target Bluetooth device is inevitably required, and the flexibility of the method is limited; if printed on the target device specification, the user is inevitably caused. Inconvenience, affecting the user experience; because only the MAC address information of the target Bluetooth device is obtained, the smart terminal also needs to keep scanning to find surrounding Bluetooth devices, which affects system efficiency; and the initiative to establish a Bluetooth connection is completely mastered on the smart terminal side, target Bluetooth The device can only be connected passively. It cannot verify the party that initiated the connection and affects the security of the system.
- Embodiments of the present invention are directed to providing a smart device and a method and apparatus for establishing a Bluetooth connection between devices, which can establish a Bluetooth connection more efficiently and safely, and improve user experience.
- An embodiment of the present invention provides a method for establishing a Bluetooth connection between devices, where the method includes:
- the matching parameter includes a parameter uniquely corresponding to the target Bluetooth device, a pairing password, a Bluetooth name of the target Bluetooth device, or a service matching filtering rule parameter information.
- the broadcast information of the surrounding Bluetooth devices returned by the real-time matching scan is matched according to the matching parameters obtained before the scanning. If the matching is successful, the scanning function is first stopped, and then the next connection is performed.
- the matching parameters of the acquiring target Bluetooth device include:
- the smart device performs resetting of the Bluetooth smart card broadcast information by dialing or texting; or
- the smart device acquires broadcast information of the Bluetooth smart card through an internal second channel.
- the method further includes: the target Bluetooth device verifying the request for establishing a Bluetooth connection between the devices.
- the verification when verifying the initiator of the request for establishing a Bluetooth connection between devices, the verification includes:
- the target Bluetooth device generates a random number, encrypts the random number with a preset key and algorithm, and sends the initiator that establishes the Bluetooth connection request;
- the initiator decrypts the random number and sends it back to the target Bluetooth device after processing
- the target Bluetooth device decrypts and compares the data sent by the initiator, and conforms to the agreed rule, and then maintains the connection by verifying; otherwise, the target Bluetooth device is disconnected.
- the above method is performed after the smart device establishes a Bluetooth connection with the target Bluetooth device, and the verification includes:
- the target Bluetooth device generates a random number, encrypts with a preset key and algorithm, and sends the data to the smart device;
- the smart device decrypts with the agreed key and algorithm, adds the decrypted random number to the processing, re-encrypts and transmits back to the target Bluetooth device;
- the target Bluetooth device decrypts the returned data to determine whether the decryption can be successfully decrypted. If the success is successful, the random number is compared. If the original number is increased by one, the verification is passed, otherwise the verification fails, and if there is no data within 3 seconds, the verification fails;
- the target Bluetooth device disconnects the Bluetooth connection.
- the target Bluetooth device is a Bluetooth card.
- the present invention also provides a Bluetooth connection device for establishing a smart device, which is used to implement the operation performed by the smart device (the master device side) in the method for establishing a Bluetooth connection, and the device includes: acquiring a matching parameter module, and opening the bluetooth module Opening the scanning module and the matching device module; wherein
- Obtain a matching parameter module which is used to obtain a matching parameter of the target Bluetooth device
- the matching device module is configured to stop the Bluetooth module scanning function after scanning the target Bluetooth device that matches the acquired matching parameter.
- the invention also provides a smart device, which comprises a device for establishing a Bluetooth connection of the smart device, wherein the smart device has a Bluetooth module.
- the above smart device is a smartphone or tablet.
- the smart device provided by the embodiment of the invention and the method and device for establishing the Bluetooth connection are not limited
- the preset connection information is a Bluetooth MAC address, which expands the channel for obtaining the Bluetooth matching parameter; the first time to obtain the matching parameter of the target Bluetooth device, the efficiency of the target Bluetooth device is found to be higher; in addition, the invention also adds the responder pair to initiate The party's legality verification function improves the security of the responder.
- FIG. 1 is a schematic flowchart of implementing a Bluetooth connection establishment method according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a method for establishing a connection between Bluetooth devices according to the present invention, which is applied in Embodiment 1;
- FIG. 3 is a schematic structural diagram of a Bluetooth connection establishing apparatus according to an embodiment of the present invention.
- the initiator (master device) of the Bluetooth connection is a smart device, which may be a smart device such as a smart phone or a tablet computer, and the smart device with a Bluetooth module;
- the responder of the Bluetooth connection (slave device) is a smart card. It can be a SIM (Subscriber Identity Module) card with a Bluetooth interface, a USIM (Universal Subscriber Identity Module) card, a UIM (User Identification Module) card, and an SD card (Secure Digital Memory Card). , a secure digital memory card) and other smart cards, also known as Bluetooth cards.
- SIM Subscriber Identity Module
- USIM Universal Subscriber Identity Module
- UIM User Identification Module
- SD card Secure Digital Memory Card
- FIG. 1 is a schematic flowchart of a method for establishing a connection between Bluetooth devices according to the present invention. As shown in FIG. 1 , the method includes:
- Step 101 Obtain matching parameters of the target Bluetooth device.
- the smart device acquires a matching parameter of the target Bluetooth device, where the target Bluetooth device refers to a device that the smart device user wants to establish a Bluetooth connection with, and the Bluetooth device may be a Bluetooth smart card or other device that supports the Bluetooth communication protocol, and
- the matching parameter may include, for example, a MAC address of the target device, a parameter uniquely corresponding to the Bluetooth device, a pairing password, a Bluetooth name of the Bluetooth device, or parameter information such as a service matching filtering rule;
- the acquiring parameters of the target Bluetooth device may include:
- the smart device resets the broadcast information of the Bluetooth smart card by dialing or short message; or
- the smart device acquires the broadcast information of the Bluetooth smart card through the internal second channel.
- the mobile phone can read the mobile device international identity code (IMEI) of the SIM card through the 7816 interface, and the Bluetooth SIM card also agrees to broadcast the IMSI. Number as a Bluetooth pairing password;
- IMEI mobile device international identity code
- the solution does not limit the preset matching measures, and only the parameter information that can be used for Bluetooth pairing can be obtained in this step;
- Step 102 open its own Bluetooth module
- the smart device opens its own Bluetooth module
- Step 103 Turn on the Bluetooth module scanning function.
- the smart device turns on the scanning function of its own Bluetooth module, and scans the surrounding Bluetooth devices;
- the Bluetooth module of the smart device itself may choose to stop and restart the scanning action at a certain frequency, and repeat the process, for example, the repetition frequency is 1-5s to stop starting once;
- Step 104 After scanning the target Bluetooth device that matches the acquired matching parameter, stopping the Bluetooth module scanning function;
- the smart device determines, according to the matching parameter broadcasted in the received Bluetooth broadcast, whether it is the same as the matching parameter obtained in step 101, and if the same, determines the Bluetooth device that sends the broadcast. As the target Bluetooth device, therefore, the scanning function of the smart device's own Bluetooth module can be stopped.
- the scanning function of the smart device is asynchronous, and the matching module needs to match the broadcast information of the surrounding Bluetooth device returned by the scanning module in real time. Matches according to the matching parameters obtained before scanning. If the matching succeeds, the scanning function is stopped first, and the next connection is made.
- a strategy of stopping the gap and starting the scan may be adopted to improve the ability of the smart device to discover the surrounding Bluetooth smart card.
- the smart device then uses its own Bluetooth module to connect to the matching target Bluetooth device.
- the method for establishing the connection between the Bluetooth devices further includes:
- the verification by the target Bluetooth device for the establishment of the Bluetooth connection request is accepted.
- the target Bluetooth device may perform verification on the initiator that establishes the Bluetooth connection request according to the service requirement.
- the verification may include:
- the target device generates a random number, encrypts the random number with a preset key and algorithm, and sends the initiator that establishes the Bluetooth connection request;
- the initiator decrypts the random number and sends it back to the target Bluetooth device after processing
- the target device decrypts and compares the data sent by the initiator, and conforms to the agreed rules, and then maintains the connection through verification; otherwise, the target device disconnects.
- the above verification process may also be performed after the smart device establishes a Bluetooth connection with the target Bluetooth device.
- the target Bluetooth device may perform the validity verification of the connection initiator by using the self-authentication module:
- the smart device decrypts with the agreed key and algorithm, adds one to the decrypted random number, re-encrypts and transmits it back to the Bluetooth smart card.
- the target Bluetooth device decrypts the returned data to see if it can be decrypted successfully. If it succeeds, it will be successful. More than the random number, if the original number is increased by one, the verification passes, otherwise the verification fails, and if there is no data within 3s, the verification fails.
- the above verification method is only a kind of legality verification of the target Bluetooth device to the initiator, and is not limited to the above manner, and belongs to a method in which the Bluetooth peripheral device verifies the legality of the central device.
- the smart device is a smart phone
- the target Bluetooth device is a Bluetooth smart card, as shown in FIG. 2 .
- the matching parameters of the Bluetooth card are not related to the opening of the Bluetooth module. These two steps must be performed before the scanning function of the Bluetooth module is enabled.
- the matching parameter can be obtained by scanning the bar code, the two-dimensional code and the like on the outer casing, and the user can obtain the information through scanning; if it is a SIM card, the broadcast information can be reset by dialing or short message to achieve uniformity; or through the internal of the smart device.
- the second channel acquires the broadcast information of the Bluetooth smart card (the mobile phone can read the imsi number of the SIM card through the 7816 interface, and the Bluetooth SIM card also agrees to broadcast the imsi number).
- This step includes, but is not limited to, the above mentioned methods.
- After scanning the surrounding Bluetooth card multiple Bluetooth devices may be searched.
- the scanning function of the smart device is asynchronous.
- the matching module needs to match the broadcast information of the surrounding Bluetooth devices returned by the scanning module in real time, according to the matching parameters obtained before scanning. Matching is performed. If the matching is successful, the scanning function is first stopped and the next connection is made. When the scan is executed, a strategy of stopping the gap and starting the scan may be adopted to improve the ability of the smart device to discover the surrounding Bluetooth smart card.
- the smart Bluetooth card can verify the validity of the connection initiator through its own verification module:
- the smart device decrypts with the agreed key and algorithm, adds one to the decrypted random number, re-encrypts and transmits it back to the Bluetooth smart card.
- the Bluetooth smart card decrypts the returned data to see if it can be decrypted successfully. If it succeeds, it compares the random number. If it is added to the original number, the verification is passed. Otherwise, the verification fails. If there is no data within 3s, it is verified. failure.
- the Bluetooth smart card disconnects the Bluetooth connection.
- the above verification method is only a kind of legality verification of the Bluetooth smart card to the initiator, and is not limited to the above manner, and belongs to a method in which the Bluetooth peripheral device verifies the legality of the central device.
- the present invention also provides a Bluetooth connection device for establishing a smart device, which is used to implement the operation performed by the smart device (the master device side) in the above method for establishing a Bluetooth connection.
- the device includes: obtaining a matching parameter. a module 301, an open Bluetooth module 302, an open scan module 303, and a matching device module 304; wherein
- Obtaining a matching parameter module 301 configured to acquire a matching parameter of the target Bluetooth device
- the scanning module 303 which is used to enable the scanning function of the Bluetooth module
- the matching device module 304 is configured to stop the Bluetooth module scanning function after scanning the target Bluetooth device that matches the acquired matching parameter.
- the invention also provides a smart device, which comprises a Bluetooth connection device for establishing the smart device.
- the various modules of the communication system of the present invention correspond to the steps described in the above embodiments of the communication method, and thus have the same advantageous effects.
- the implementation of the communication system described above is merely illustrative, and the division of the described modules is only a logical function division, and may be further divided in actual implementation.
- the coupling or communication connection of the modules to each other may be through some interfaces, or may be electrical or other forms.
- Each of the above functional modules may be part of a communication system, and may or may not be a physical frame. It may be located in one place or on multiple network units, and may be implemented in the form of hardware or a software function box. The form is implemented. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the present invention.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to a smart device, and a method and an apparatus for establishing Bluetooth connection between devices therefor. The method for establishing a Bluetooth connection between devices comprises: acquiring matching parameters of a target Bluetooth device; turning on a self Bluetooth module; starting a scanning function of the Bluetooth module; and after the target Bluetooth device that matches the acquired matching parameters is scanned out, stopping the scanning function of the Bluetooth module, and establishing Bluetooth connection, the matching parameters comprising a parameter uniquely corresponding to the target Bluetooth device, a pairing code, a Bluetooth name of the target Bluetooth device or service matching filter rule parameter information. The apparatus for establishing Bluetooth connection for the smart device is used for implementing operation, completed by the smart device or an initiator, in the method for establishing the Bluetooth connection between devices. The present invention does not limit preset connection information, thereby expanding a channel for acquiring Bluetooth matching parameters; and by first acquiring the matching parameters of a target Bluetooth device, the target Bluetooth device discovery efficiency is higher.
Description
本发明涉及蓝牙通信领域,尤其涉及一种智能设备及其建立蓝牙连接的方法、装置。The present invention relates to the field of Bluetooth communications, and in particular, to a smart device and a method and apparatus for establishing a Bluetooth connection.
随着互联网技术,尤其是移动互联网和物联网的发展,借助与智能手机等智能设备与环境周边的智能卡进行连接通信的需求在逐渐增多。其中蓝牙通信技术,尤其是低功耗蓝牙通信技术成为了一种重要的通信方式。目前智能设备建立蓝牙连接时,一般要通过扫描周边的蓝牙信号,将周边的蓝牙设备列举并展示给用户,由用户选择要连接的蓝牙设备进行连接操作。但随着支持蓝牙通信的设备增多,智能设备通常扫描出的周边蓝牙设备的数据较多,智能设备将为用户提供较长的周边蓝牙设备列表,为用户正确选择目标蓝牙设备造成困难。With the development of Internet technologies, especially the mobile Internet and the Internet of Things, there is an increasing demand for connection and communication with smart devices such as smart phones and smart cards around the environment. Among them, Bluetooth communication technology, especially low-power Bluetooth communication technology has become an important communication method. At present, when a smart device establishes a Bluetooth connection, it generally needs to scan and display the surrounding Bluetooth devices to the user, and the user selects the Bluetooth device to be connected to perform the connection operation. However, as the number of devices supporting Bluetooth communication increases, the smart device usually scans out the surrounding Bluetooth devices, and the smart device will provide the user with a long list of peripheral Bluetooth devices, which makes it difficult for the user to correctly select the target Bluetooth device.
为更精准的与目标蓝牙设备建立连接,当前有以下解决方案:In order to establish a more accurate connection with the target Bluetooth device, the following solutions are currently available:
智能终端通过拍摄并解析印刷在目标蓝牙设备外壳或其说明书上的物理地址(MAC地址)信息来实现与目标蓝牙设备的配对操作。The smart terminal achieves a pairing operation with the target Bluetooth device by capturing and parsing the physical address (MAC address) information printed on the target Bluetooth device housing or its manual.
但这种方式存在以下不足:若MAC地址信息印刷在目标蓝牙设备外壳,则必然对目标蓝牙设备的外壳面积有要求,方法灵活性受到限制;若印刷在目标设备说明书上,则必然给用户造成不便,影响用户体验;因为仅获取了目标蓝牙设备的MAC地址信息,智能终端还需一直保持扫描发现周边蓝牙设备,影响系统效率;且建立蓝牙连接的主动权完全掌握在智能终端一方,目标蓝牙设备只能被动连接,不能对发起连接的一方进行验证,影响系统的安全性。
However, this method has the following disadvantages: if the MAC address information is printed on the target Bluetooth device shell, the shell area of the target Bluetooth device is inevitably required, and the flexibility of the method is limited; if printed on the target device specification, the user is inevitably caused. Inconvenience, affecting the user experience; because only the MAC address information of the target Bluetooth device is obtained, the smart terminal also needs to keep scanning to find surrounding Bluetooth devices, which affects system efficiency; and the initiative to establish a Bluetooth connection is completely mastered on the smart terminal side, target Bluetooth The device can only be connected passively. It cannot verify the party that initiated the connection and affects the security of the system.
发明内容Summary of the invention
本发明实施例期望提供一种智能设备及其建立设备间蓝牙连接的方法、装置,能更高效、更安全的建立蓝牙连接,提高用户体验。Embodiments of the present invention are directed to providing a smart device and a method and apparatus for establishing a Bluetooth connection between devices, which can establish a Bluetooth connection more efficiently and safely, and improve user experience.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种建立设备间蓝牙连接方法,该方法包括:An embodiment of the present invention provides a method for establishing a Bluetooth connection between devices, where the method includes:
获取目标蓝牙设备的匹配参数;Obtain matching parameters of the target Bluetooth device;
打开自身的蓝牙模块;Open your own Bluetooth module;
开启蓝牙模块扫描功能;Turn on the Bluetooth module scanning function;
当扫描到与获取到的匹配参数相匹配的目标蓝牙设备后,停止蓝牙模块扫描功能,建立蓝牙连接;After scanning the target Bluetooth device that matches the obtained matching parameter, stop the Bluetooth module scanning function and establish a Bluetooth connection;
其中,所述匹配参数包括与所述目标蓝牙设备唯一对应的参数、配对密码、目标蓝牙设备的蓝牙名称或者是服务匹配过滤规则参数信息。The matching parameter includes a parameter uniquely corresponding to the target Bluetooth device, a pairing password, a Bluetooth name of the target Bluetooth device, or a service matching filtering rule parameter information.
上述的方法,当扫描时:The above method, when scanning:
以一定频率停止并重新启动扫描动作,并重复此过程;Stop and restart the scanning action at a certain frequency and repeat the process;
实时匹配扫描返回的周边蓝牙设备的广播信息,根据扫描之前获取的匹配参数进行匹配,匹配成功则首先停止扫描功能,再进行下一步连接。The broadcast information of the surrounding Bluetooth devices returned by the real-time matching scan is matched according to the matching parameters obtained before the scanning. If the matching is successful, the scanning function is first stopped, and then the next connection is performed.
上述的方法,当所述目标蓝牙设备是蓝牙智能卡时,所述获取目标蓝牙设备的匹配参数包括:In the above method, when the target Bluetooth device is a Bluetooth smart card, the matching parameters of the acquiring target Bluetooth device include:
智能设备通过拨号或者短信进行所述蓝牙智能卡广播信息的重置;或者The smart device performs resetting of the Bluetooth smart card broadcast information by dialing or texting; or
智能设备通过内部的第二通道获取所述蓝牙智能卡的广播信息。The smart device acquires broadcast information of the Bluetooth smart card through an internal second channel.
上述的方法,所述方法还包括:所述目标蓝牙设备针对所述建立设备间蓝牙连接的请求进行验证。In the above method, the method further includes: the target Bluetooth device verifying the request for establishing a Bluetooth connection between the devices.
上述的方法,当针对所述建立设备间蓝牙连接的请求的发起方进行验证时,所述验证包括:The above method, when verifying the initiator of the request for establishing a Bluetooth connection between devices, the verification includes:
所述目标蓝牙设备产生随机数,用预置的密钥和算法对所述随机数进行加密,发送所述建立蓝牙连接请求的发起方;
The target Bluetooth device generates a random number, encrypts the random number with a preset key and algorithm, and sends the initiator that establishes the Bluetooth connection request;
所述发起方解密所述随机数,并处理之后发送回所述目标蓝牙设备;The initiator decrypts the random number and sends it back to the target Bluetooth device after processing;
所述目标蓝牙设备对所述发起方发送的数据进行解密对比,符合约定规则,则通过验证,维持连接;否则,所述目标蓝牙设备断开连接。The target Bluetooth device decrypts and compares the data sent by the initiator, and conforms to the agreed rule, and then maintains the connection by verifying; otherwise, the target Bluetooth device is disconnected.
上述的方法,当在智能设备与所述目标蓝牙设备建立蓝牙连接后进行验证,所述验证包括:The above method is performed after the smart device establishes a Bluetooth connection with the target Bluetooth device, and the verification includes:
所述目标蓝牙设备产生一个随机数,并用预置的密钥和算法进行加密,并把此数据发送给所述智能设备;The target Bluetooth device generates a random number, encrypts with a preset key and algorithm, and sends the data to the smart device;
所述智能设备用约定的密钥和算法进行解密,对解密的所述随机数进行加一处理,重新加密后回传给所述目标蓝牙设备;The smart device decrypts with the agreed key and algorithm, adds the decrypted random number to the processing, re-encrypts and transmits back to the target Bluetooth device;
所述目标蓝牙设备解密回传数据,判断是否能重新解密成功,成功则对比所述随机数,如果为原数加一,则验证通过,否则验证失败,在3s内无数据则验证失败;The target Bluetooth device decrypts the returned data to determine whether the decryption can be successfully decrypted. If the success is successful, the random number is compared. If the original number is increased by one, the verification is passed, otherwise the verification fails, and if there is no data within 3 seconds, the verification fails;
验证失败则所述目标蓝牙设备断开所述蓝牙连接。If the verification fails, the target Bluetooth device disconnects the Bluetooth connection.
上述的方法,所述目标蓝牙设备为蓝牙卡。In the above method, the target Bluetooth device is a Bluetooth card.
本发明还提供一种智能设备的建立蓝牙连接装置,该装置用于实现上述建立蓝牙连接的方法中由智能设备(主设备方)完成的操作,该装置包括:获取匹配参数模块、打开蓝牙模块、开启扫描模块和匹配设备模块;其中,The present invention also provides a Bluetooth connection device for establishing a smart device, which is used to implement the operation performed by the smart device (the master device side) in the method for establishing a Bluetooth connection, and the device includes: acquiring a matching parameter module, and opening the bluetooth module Opening the scanning module and the matching device module; wherein
获取匹配参数模块,用于获取目标蓝牙设备的匹配参数;Obtain a matching parameter module, which is used to obtain a matching parameter of the target Bluetooth device;
打开蓝牙模块,用于打开自身的蓝牙模块;Open the Bluetooth module to open its own Bluetooth module;
开启扫描模块,用于开启蓝牙模块扫描功能;Enable the scanning module to enable the scanning function of the Bluetooth module;
匹配设备模块,用于当扫描到与获取到的匹配参数相匹配的目标蓝牙设备后,停止蓝牙模块扫描功能。The matching device module is configured to stop the Bluetooth module scanning function after scanning the target Bluetooth device that matches the acquired matching parameter.
本发明还提供一种智能设备,该智能设备中包括上述智能设备的建立蓝牙连接的装置,所述智能设备具有蓝牙模块。The invention also provides a smart device, which comprises a device for establishing a Bluetooth connection of the smart device, wherein the smart device has a Bluetooth module.
上述的智能设备是智能手机或平板电脑。The above smart device is a smartphone or tablet.
本发明实施例所提供的智能设备及其建立蓝牙连接的方法、装置,不限定
预置的连接信息为蓝牙MAC地址,扩展了获取蓝牙匹配参数的渠道;通过先获取目标蓝牙设备的匹配参数,使得发现目标蓝牙设备的效率更高;此外,本发明还增加了响应方对发起方的合法性验证功能,提高了响应方的安全性。The smart device provided by the embodiment of the invention and the method and device for establishing the Bluetooth connection are not limited
The preset connection information is a Bluetooth MAC address, which expands the channel for obtaining the Bluetooth matching parameter; the first time to obtain the matching parameter of the target Bluetooth device, the efficiency of the target Bluetooth device is found to be higher; in addition, the invention also adds the responder pair to initiate The party's legality verification function improves the security of the responder.
图1为本发明实施例提供的蓝牙连接建立方法的实现流程示意图;1 is a schematic flowchart of implementing a Bluetooth connection establishment method according to an embodiment of the present invention;
图2为本发明提供的蓝牙设备间连接建立方法在应用在实施例1中的流程示意图;2 is a schematic flowchart of a method for establishing a connection between Bluetooth devices according to the present invention, which is applied in Embodiment 1;
图3为本发明实施例提供的蓝牙连接建立装置的结构示意图。FIG. 3 is a schematic structural diagram of a Bluetooth connection establishing apparatus according to an embodiment of the present invention.
为了更清楚地说明本发明实施例和技术方案,下面将结合附图及实施例对本发明的技术方案进行更详细的说明,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明的实施例,本领域普通技术人员在不付出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to explain the embodiments and technical solutions of the present invention more clearly, the technical solutions of the present invention will be described in more detail below with reference to the accompanying drawings and embodiments. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all Example. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
在本发明实施例中,蓝牙连接的发起方(主设备方)为智能设备,可以是智能手机、平板电脑等各种具有蓝牙模块的智能设备;蓝牙连接的响应方(从设备方)为智能卡,可以是具有蓝牙接口的SIM(Subscriber Identity Module客户识别模块)卡、USIM(Universal Subscriber Identity Module,全球用户识别)卡、UIM(User Identify Module,用户识别模块)卡和SD卡(Secure Digital Memory Card,安全数字存储卡)等各种智能卡,也称为蓝牙卡。In the embodiment of the present invention, the initiator (master device) of the Bluetooth connection is a smart device, which may be a smart device such as a smart phone or a tablet computer, and the smart device with a Bluetooth module; the responder of the Bluetooth connection (slave device) is a smart card. It can be a SIM (Subscriber Identity Module) card with a Bluetooth interface, a USIM (Universal Subscriber Identity Module) card, a UIM (User Identification Module) card, and an SD card (Secure Digital Memory Card). , a secure digital memory card) and other smart cards, also known as Bluetooth cards.
图1为本发明提供的蓝牙设备间连接建立方法的实现流程示意图,如图1所示,该方法包括:FIG. 1 is a schematic flowchart of a method for establishing a connection between Bluetooth devices according to the present invention. As shown in FIG. 1 , the method includes:
步骤101,获取目标蓝牙设备的匹配参数;
Step 101: Obtain matching parameters of the target Bluetooth device.
具体的,智能设备获取目标蓝牙设备的匹配参数,这里,所述目标蓝牙设备是指智能设备用户希望与之建立蓝牙连接的设备,蓝牙设备可以是蓝牙智能卡或其他支持蓝牙通信协议的设备,而所述匹配参数可以包括例如目标设备的MAC地址等与蓝牙设备唯一对应的参数、配对密码、蓝牙设备的蓝牙名称或者是服务匹配过滤规则等参数信息;Specifically, the smart device acquires a matching parameter of the target Bluetooth device, where the target Bluetooth device refers to a device that the smart device user wants to establish a Bluetooth connection with, and the Bluetooth device may be a Bluetooth smart card or other device that supports the Bluetooth communication protocol, and The matching parameter may include, for example, a MAC address of the target device, a parameter uniquely corresponding to the Bluetooth device, a pairing password, a Bluetooth name of the Bluetooth device, or parameter information such as a service matching filtering rule;
进一步的,当所述蓝牙设备是蓝牙智能卡时,所述获取目标蓝牙设备的匹配参数可以包括:Further, when the Bluetooth device is a Bluetooth smart card, the acquiring parameters of the target Bluetooth device may include:
智能设备通过拨号或者短信进行蓝牙智能卡广播信息的重置;或者The smart device resets the broadcast information of the Bluetooth smart card by dialing or short message; or
智能设备通过内部的第二通道获取所述蓝牙智能卡的广播信息,例如,手机可通过7816接口读取SIM卡的移动设备国际身份码(International Mobile Equipment Identity,IMEI),蓝牙SIM卡也约定广播IMSI号作为蓝牙配对密码;The smart device acquires the broadcast information of the Bluetooth smart card through the internal second channel. For example, the mobile phone can read the mobile device international identity code (IMEI) of the SIM card through the 7816 interface, and the Bluetooth SIM card also agrees to broadcast the IMSI. Number as a Bluetooth pairing password;
本方案不限定预置的匹配措施,此步骤中只要能够获取到后续可用于蓝牙配对的参数信息即可;The solution does not limit the preset matching measures, and only the parameter information that can be used for Bluetooth pairing can be obtained in this step;
步骤102,打开自身的蓝牙模块; Step 102, open its own Bluetooth module;
具体的,智能设备打开自身的蓝牙模块;Specifically, the smart device opens its own Bluetooth module;
实际应用中,打开蓝牙模块与获取智能卡匹配参数没有必然的先后关系,只要保证这两项操作在开启蓝牙模块扫描功能之前进行即可;In practical applications, there is no necessary relationship between opening the Bluetooth module and obtaining the smart card matching parameters, as long as the two operations are performed before the Bluetooth module scanning function is enabled;
步骤103,开启蓝牙模块扫描功能;Step 103: Turn on the Bluetooth module scanning function.
具体的,智能设备开启自身的蓝牙模块的扫描功能,扫描周边的蓝牙设备;Specifically, the smart device turns on the scanning function of its own Bluetooth module, and scans the surrounding Bluetooth devices;
进一步的,为提供发现效率,智能设备自身的蓝牙模块可以选择以一定频率停止并重新启动扫描动作,重复此过程,例如,重复频率为1-5s停止启动一次;Further, in order to provide discovery efficiency, the Bluetooth module of the smart device itself may choose to stop and restart the scanning action at a certain frequency, and repeat the process, for example, the repetition frequency is 1-5s to stop starting once;
步骤104,当扫描到与获取到的匹配参数相匹配的目标蓝牙设备后,停止蓝牙模块扫描功能;Step 104: After scanning the target Bluetooth device that matches the acquired matching parameter, stopping the Bluetooth module scanning function;
具体的,智能设备根据接收到的蓝牙广播中广播的匹配参数,判断是否与步骤101中获取到的匹配参数相同,如果相同,则确定发出该广播的蓝牙设备
为目标蓝牙设备,因此,可停止智能设备自身蓝牙模块的扫描功能。Specifically, the smart device determines, according to the matching parameter broadcasted in the received Bluetooth broadcast, whether it is the same as the matching parameter obtained in step 101, and if the same, determines the Bluetooth device that sends the broadcast.
As the target Bluetooth device, therefore, the scanning function of the smart device's own Bluetooth module can be stopped.
需要特别说明的,在智能设备启动扫描周围蓝牙设备之后,可能会搜索到多个蓝牙设备,智能设备的扫描功能是异步的,需要有匹配模块实时匹配扫描模块返回的周边蓝牙设备的广播信息,根据扫描之前获取的匹配参数进行匹配,匹配成功则首先停止扫描功能,并进行下一步连接。Specifically, after the smart device starts scanning the surrounding Bluetooth device, multiple Bluetooth devices may be searched. The scanning function of the smart device is asynchronous, and the matching module needs to match the broadcast information of the surrounding Bluetooth device returned by the scanning module in real time. Matches according to the matching parameters obtained before scanning. If the matching succeeds, the scanning function is stopped first, and the next connection is made.
在扫描执行时可以采取间隙停止、启动扫描的策略,来提高智能设备对周边蓝牙智能卡的发现能力。When the scan is executed, a strategy of stopping the gap and starting the scan may be adopted to improve the ability of the smart device to discover the surrounding Bluetooth smart card.
之后,智能设备使用自身的蓝牙模块连接匹配到的目标蓝牙设备。The smart device then uses its own Bluetooth module to connect to the matching target Bluetooth device.
进一步的,根据业务需要,在智能设备发出建立蓝牙连接请求后,上述蓝牙设备间连接建立方法还包括:Further, according to the service requirement, after the smart device sends a request for establishing a Bluetooth connection, the method for establishing the connection between the Bluetooth devices further includes:
接受目标蓝牙设备针对所述建立蓝牙连接请求进行的验证。The verification by the target Bluetooth device for the establishment of the Bluetooth connection request is accepted.
具体的,目标蓝牙设备根据业务需要,可以针对所述建立蓝牙连接请求的发起方进行验证,在一个实施例中,所述验证可以包括:Specifically, the target Bluetooth device may perform verification on the initiator that establishes the Bluetooth connection request according to the service requirement. In an embodiment, the verification may include:
目标设备产生随机数,用预置的密钥和算法对随机数进行加密,发送所述建立蓝牙连接请求的发起方;The target device generates a random number, encrypts the random number with a preset key and algorithm, and sends the initiator that establishes the Bluetooth connection request;
发起方(智能设备)解密该随机数,并处理之后发送回目标蓝牙设备;The initiator (smart device) decrypts the random number and sends it back to the target Bluetooth device after processing;
目标设备对发起方发送的数据进行解密对比,符合约定规则,则通过验证,维持连接;否则,目标设备断开连接。The target device decrypts and compares the data sent by the initiator, and conforms to the agreed rules, and then maintains the connection through verification; otherwise, the target device disconnects.
上述验证过程,也可以在智能设备与目标蓝牙设备建立蓝牙连接后进行,例如,连接成功后,目标蓝牙设备可通过自身验证模块进行连接发起方的合法性验证:The above verification process may also be performed after the smart device establishes a Bluetooth connection with the target Bluetooth device. For example, after the connection is successful, the target Bluetooth device may perform the validity verification of the connection initiator by using the self-authentication module:
(1)产生一个随机数,并用预置的密钥和算法进行加密,并把此数据发送给智能设备;(1) generating a random number and encrypting it with a preset key and algorithm, and transmitting the data to the smart device;
(2)智能设备用约定的密钥和算法进行解密,对解密的随机数进行加一处理,重新加密后回传给蓝牙智能卡。(2) The smart device decrypts with the agreed key and algorithm, adds one to the decrypted random number, re-encrypts and transmits it back to the Bluetooth smart card.
(3)目标蓝牙设备解密回传数据,看是否能重新解密成功,成功则对
比随机数,如果为原数加一,则验证通过,否则验证失败,在3s内无数据则验证失败。(3) The target Bluetooth device decrypts the returned data to see if it can be decrypted successfully. If it succeeds, it will be successful.
More than the random number, if the original number is increased by one, the verification passes, otherwise the verification fails, and if there is no data within 3s, the verification fails.
(4)验证失败则目标蓝牙设备断开此蓝牙连接。(4) If the verification fails, the target Bluetooth device disconnects the Bluetooth connection.
以上验证方式只是目标蓝牙设备对发起方的一种合法性验证,并不限于所述方式,属于是蓝牙周边设备对中心设备的合法性进行验证这一方式。The above verification method is only a kind of legality verification of the target Bluetooth device to the initiator, and is not limited to the above manner, and belongs to a method in which the Bluetooth peripheral device verifies the legality of the central device.
实施例1Example 1
图2为本发明提供的蓝牙设备间连接建立方法在应用在实施例1中的流程示意图,在实施例1中,智能设备为智能手机,而目标蓝牙设备为蓝牙智能卡如图2所示,获取蓝牙卡的匹配参数与打开蓝牙模块没有先后关系,此两个步骤都要在开启蓝牙模块的扫描功能之前。其中匹配参数可以通过印在外壳上的条码、二维码等信息,用户通过扫描获取;如果是SIM卡,也可以通过拨号或者短信进行广播信息的重置来达到统一;或者通过智能设备内部的第二通道获取蓝牙智能卡的广播信息(手机可通过7816接口读取SIM卡的imsi号,蓝牙SIM卡也约定广播imsi号)。此步骤包括但不限于以上所提方式。在启动扫描周围蓝牙卡之后,可能会搜索到多个蓝牙设备,智能设备的扫描功能是异步的,需要有匹配模块实时匹配扫描模块返回的周边蓝牙设备的广播信息,根据扫描之前获取的匹配参数进行匹配,匹配成功则首先停止扫描功能,并进行下一步连接。在扫描执行时可以采取间隙停止、启动扫描的策略,来提高智能设备对周边蓝牙智能卡的发现能力。连接成功后,智能蓝牙卡可通过自身验证模块进行连接发起方的合法性验证:2 is a schematic flowchart of a method for establishing a connection between Bluetooth devices according to the present invention. In the first embodiment, the smart device is a smart phone, and the target Bluetooth device is a Bluetooth smart card, as shown in FIG. 2 . The matching parameters of the Bluetooth card are not related to the opening of the Bluetooth module. These two steps must be performed before the scanning function of the Bluetooth module is enabled. The matching parameter can be obtained by scanning the bar code, the two-dimensional code and the like on the outer casing, and the user can obtain the information through scanning; if it is a SIM card, the broadcast information can be reset by dialing or short message to achieve uniformity; or through the internal of the smart device. The second channel acquires the broadcast information of the Bluetooth smart card (the mobile phone can read the imsi number of the SIM card through the 7816 interface, and the Bluetooth SIM card also agrees to broadcast the imsi number). This step includes, but is not limited to, the above mentioned methods. After scanning the surrounding Bluetooth card, multiple Bluetooth devices may be searched. The scanning function of the smart device is asynchronous. The matching module needs to match the broadcast information of the surrounding Bluetooth devices returned by the scanning module in real time, according to the matching parameters obtained before scanning. Matching is performed. If the matching is successful, the scanning function is first stopped and the next connection is made. When the scan is executed, a strategy of stopping the gap and starting the scan may be adopted to improve the ability of the smart device to discover the surrounding Bluetooth smart card. After the connection is successful, the smart Bluetooth card can verify the validity of the connection initiator through its own verification module:
(1)产生一个随机数,并用预置的密钥和算法进行加密,并把此数据发送给智能设备;(1) generating a random number and encrypting it with a preset key and algorithm, and transmitting the data to the smart device;
(2)智能设备用约定的密钥和算法进行解密,对解密的随机数进行加一处理,重新加密后回传给蓝牙智能卡。(2) The smart device decrypts with the agreed key and algorithm, adds one to the decrypted random number, re-encrypts and transmits it back to the Bluetooth smart card.
(3)蓝牙智能卡解密回传数据,看是否能重新解密成功,成功则对比随机数,如果为原数加一,则验证通过,否则验证失败,在3s内无数据则验证
失败。(3) The Bluetooth smart card decrypts the returned data to see if it can be decrypted successfully. If it succeeds, it compares the random number. If it is added to the original number, the verification is passed. Otherwise, the verification fails. If there is no data within 3s, it is verified.
failure.
(4)验证失败则蓝牙智能卡断开此蓝牙连接。(4) If the verification fails, the Bluetooth smart card disconnects the Bluetooth connection.
以上验证方式只是蓝牙智能卡对发起方的一种合法性验证,并不限于所述方式,属于是蓝牙周边设备对中心设备的合法性进行验证这一方式。The above verification method is only a kind of legality verification of the Bluetooth smart card to the initiator, and is not limited to the above manner, and belongs to a method in which the Bluetooth peripheral device verifies the legality of the central device.
本发明还提供一种智能设备的建立蓝牙连接装置,该装置用于实现上述建立蓝牙连接方法中由智能设备(主设备方)完成的操作,如图3所示,该装置包括:获取匹配参数模块301、打开蓝牙模块302、开启扫描模块303和匹配设备模块304;其中,The present invention also provides a Bluetooth connection device for establishing a smart device, which is used to implement the operation performed by the smart device (the master device side) in the above method for establishing a Bluetooth connection. As shown in FIG. 3, the device includes: obtaining a matching parameter. a module 301, an open Bluetooth module 302, an open scan module 303, and a matching device module 304; wherein
获取匹配参数模块301,用于获取目标蓝牙设备的匹配参数;Obtaining a matching parameter module 301, configured to acquire a matching parameter of the target Bluetooth device;
打开蓝牙模块302,用于打开自身的蓝牙模块;Opening the Bluetooth module 302 for opening its own Bluetooth module;
开启扫描模块303,用于开启蓝牙模块扫描功能;Turning on the scanning module 303, which is used to enable the scanning function of the Bluetooth module;
匹配设备模块304,用于当扫描到与获取到的匹配参数相匹配的目标蓝牙设备后,停止蓝牙模块扫描功能。The matching device module 304 is configured to stop the Bluetooth module scanning function after scanning the target Bluetooth device that matches the acquired matching parameter.
本发明还提供一种智能设备,该智能设备中包括上述智能设备的建立蓝牙连接装置。The invention also provides a smart device, which comprises a Bluetooth connection device for establishing the smart device.
本发明的通讯系统的各个模块对应执行上述通讯方法实施例所描述的步骤,因此具有相同的有益效果。另外,应该理解到,以上所描述的通讯系统的实施方式仅仅是示意性的,所描述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。另外,模块相互之间的耦合或通信连接可以是通过一些接口,也可以是电性或其它的形式。The various modules of the communication system of the present invention correspond to the steps described in the above embodiments of the communication method, and thus have the same advantageous effects. In addition, it should be understood that the implementation of the communication system described above is merely illustrative, and the division of the described modules is only a logical function division, and may be further divided in actual implementation. In addition, the coupling or communication connection of the modules to each other may be through some interfaces, or may be electrical or other forms.
上述各个功能模块作为通讯系统的组成部分,可以是或者也可以不是物理框,既可以位于一个地方,也可以分布到多个网络单元上,既可以采用硬件的形式实现,也可以采用软件功能框的形式实现。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。
Each of the above functional modules may be part of a communication system, and may or may not be a physical frame. It may be located in one place or on multiple network units, and may be implemented in the form of hardware or a software function box. The form is implemented. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
再次说明,以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,例如各实施例之间技术特征的相互结合,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
It is to be noted that the above description is only an embodiment of the present invention, and thus does not limit the scope of the invention, and the equivalent structure or equivalent flow transformation using the description of the present invention and the drawings, for example, the technology between the embodiments The combination of features, or directly or indirectly, in other related technical fields, is equally included in the scope of patent protection of the present invention.
Claims (10)
- 一种建立设备间蓝牙连接的方法,所述方法包括:A method of establishing a Bluetooth connection between devices, the method comprising:获取目标蓝牙设备的匹配参数;Obtain matching parameters of the target Bluetooth device;打开自身的蓝牙模块;Open your own Bluetooth module;开启蓝牙模块扫描功能;Turn on the Bluetooth module scanning function;当扫描到与获取到的匹配参数相匹配的目标蓝牙设备后,停止蓝牙模块扫描功能,建立蓝牙连接;After scanning the target Bluetooth device that matches the obtained matching parameter, stop the Bluetooth module scanning function and establish a Bluetooth connection;其中,所述匹配参数包括与所述目标蓝牙设备唯一对应的参数、配对密码、目标蓝牙设备的蓝牙名称或者是服务匹配过滤规则参数信息。The matching parameter includes a parameter uniquely corresponding to the target Bluetooth device, a pairing password, a Bluetooth name of the target Bluetooth device, or a service matching filtering rule parameter information.
- 如权利要求1所述的方法,当扫描时:The method of claim 1 when scanning:以一定频率停止并重新启动扫描动作,并重复此过程;Stop and restart the scanning action at a certain frequency and repeat the process;实时匹配扫描返回的周边蓝牙设备的广播信息,根据扫描之前获取的匹配参数进行匹配,匹配成功则首先停止扫描功能,再进行下一步连接。The broadcast information of the surrounding Bluetooth devices returned by the real-time matching scan is matched according to the matching parameters obtained before the scanning. If the matching is successful, the scanning function is first stopped, and then the next connection is performed.
- 如权利要求1所述的方法,当所述目标蓝牙设备是蓝牙智能卡时,所述获取目标蓝牙设备的匹配参数包括:The method of claim 1, when the target Bluetooth device is a Bluetooth smart card, the matching parameters of the acquiring target Bluetooth device include:智能设备通过拨号或者短信进行所述蓝牙智能卡广播信息的重置;或者The smart device performs resetting of the Bluetooth smart card broadcast information by dialing or texting; or智能设备通过内部的第二通道获取所述蓝牙智能卡的广播信息。The smart device acquires broadcast information of the Bluetooth smart card through an internal second channel.
- 如权利要求1所述的方法,所述方法还包括:所述目标蓝牙设备针对所述建立设备间蓝牙连接的请求进行验证。The method of claim 1 further comprising the target Bluetooth device verifying the request to establish a Bluetooth connection between devices.
- 如权利要求4所述的方法,当针对所述建立设备间蓝牙连接的请求的发起方进行验证时,所述验证包括: The method of claim 4, when verifying the originator of the request to establish a Bluetooth connection between devices, the verifying comprises:所述目标蓝牙设备产生随机数,用预置的密钥和算法对所述随机数进行加密,发送所述建立蓝牙连接请求的发起方;The target Bluetooth device generates a random number, encrypts the random number with a preset key and algorithm, and sends the initiator that establishes the Bluetooth connection request;所述发起方解密所述随机数,并处理之后发送回所述目标蓝牙设备;The initiator decrypts the random number and sends it back to the target Bluetooth device after processing;所述目标蓝牙设备对所述发起方发送的数据进行解密对比,符合约定规则,则通过验证,维持连接;否则,所述目标蓝牙设备断开连接。The target Bluetooth device decrypts and compares the data sent by the initiator, and conforms to the agreed rule, and then maintains the connection by verifying; otherwise, the target Bluetooth device is disconnected.
- 如权利要求4所述的方法,当在智能设备与所述目标蓝牙设备建立蓝牙的连接后进行验证,所述验证包括:The method of claim 4, wherein the verification is performed after the smart device establishes a Bluetooth connection with the target Bluetooth device, the verification comprising:所述目标蓝牙设备产生一个随机数,并用预置的密钥和算法进行加密,并把此数据发送给所述智能设备;The target Bluetooth device generates a random number, encrypts with a preset key and algorithm, and sends the data to the smart device;所述智能设备用约定的密钥和算法进行解密,对解密的所述随机数进行加一处理,重新加密后回传给所述目标蓝牙设备;The smart device decrypts with the agreed key and algorithm, adds the decrypted random number to the processing, re-encrypts and transmits back to the target Bluetooth device;所述目标蓝牙设备解密回传数据,判断是否能重新解密成功,成功则对比所述随机数,如果为原数加一,则验证通过,否则验证失败,在3s内无数据则验证失败;The target Bluetooth device decrypts the returned data to determine whether the decryption can be successfully decrypted. If the success is successful, the random number is compared. If the original number is increased by one, the verification is passed, otherwise the verification fails, and if there is no data within 3 seconds, the verification fails;验证失败则所述目标蓝牙设备断开所述蓝牙连接。If the verification fails, the target Bluetooth device disconnects the Bluetooth connection.
- 如权利要求1所述的方法,所述目标蓝牙设备为蓝牙卡。The method of claim 1 wherein the target Bluetooth device is a Bluetooth card.
- 一种智能设备的建立蓝牙连接的装置,该装置用于实现权利要求1至6任一项所述建立设备间蓝牙连接方法中由智能设备或发起方完成的操作,该装置包括:获取匹配参数模块、打开蓝牙模块、开启扫描模块和匹配设备模块;其中,A device for establishing a Bluetooth connection of a smart device, the device for implementing the operation performed by the smart device or the initiator in the method for establishing a Bluetooth connection between devices according to any one of claims 1 to 6, the device comprising: obtaining a matching parameter Module, open bluetooth module, enable scanning module and matching device module;获取匹配参数模块,用于获取目标蓝牙设备的匹配参数;Obtain a matching parameter module, which is used to obtain a matching parameter of the target Bluetooth device;打开蓝牙模块,用于打开自身的蓝牙模块;Open the Bluetooth module to open its own Bluetooth module;开启扫描模块,用于开启蓝牙模块扫描功能;Enable the scanning module to enable the scanning function of the Bluetooth module;匹配设备模块,用于当扫描到与获取到的匹配参数相匹配的目标蓝牙设备 后,停止蓝牙模块扫描功能。Matching device module for scanning a target Bluetooth device that matches the acquired matching parameter After that, stop the Bluetooth module scanning function.
- 一种智能设备,该智能设备包括权利要求8所述智能设备的建立蓝牙连接的装置,所述智能设备具有蓝牙模块。A smart device comprising the device for establishing a Bluetooth connection of the smart device of claim 8, the smart device having a Bluetooth module.
- 如权利要求9所述的智能设备,所述智能设备是智能手机或平板电脑。 The smart device of claim 9, the smart device being a smartphone or tablet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201680003534.7A CN107006049A (en) | 2015-11-03 | 2016-11-01 | A kind of smart machine and its set up the method for equipment room bluetooth connection, device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510737899 | 2015-11-03 | ||
CN201510737899.X | 2015-11-03 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017076269A1 true WO2017076269A1 (en) | 2017-05-11 |
Family
ID=58662919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/104195 WO2017076269A1 (en) | 2015-11-03 | 2016-11-01 | Smart device, and method and apparatus for establishing bluetooth connection between devices therefor |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN107006049A (en) |
TW (1) | TWI634771B (en) |
WO (1) | WO2017076269A1 (en) |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108200541A (en) * | 2018-02-11 | 2018-06-22 | 张戈零 | Bluetooth control terminal based on Internet of Things |
CN109041034A (en) * | 2018-09-18 | 2018-12-18 | 歌尔科技有限公司 | A kind of information interacting method based on bluetooth, system, bluetooth equipment and medium |
CN109785490A (en) * | 2019-01-29 | 2019-05-21 | 上海博泰悦臻网络技术服务有限公司 | Bi-directional verification method and system, intelligent terminal and the T-BOX of bluetooth key |
CN109920102A (en) * | 2019-02-02 | 2019-06-21 | 江门市新会区博上科技有限公司 | A kind of smart lock method, apparatus, equipment and storage medium that bluetooth enters without spoon |
CN110018508A (en) * | 2018-01-10 | 2019-07-16 | 西安中兴新软件有限责任公司 | A kind of localization method and device |
CN110784861A (en) * | 2019-11-07 | 2020-02-11 | 江苏英索纳智能科技有限公司 | Bluetooth switch control module |
CN110891265A (en) * | 2019-11-26 | 2020-03-17 | Oppo(重庆)智能科技有限公司 | Wireless connection control method and device, mobile terminal and storage medium |
CN110933684A (en) * | 2019-11-28 | 2020-03-27 | 江苏电力信息技术有限公司 | Small-world wireless sensor network construction method based on mixed mode |
CN110944312A (en) * | 2019-11-14 | 2020-03-31 | 合肥星空物联信息科技有限公司 | Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device |
CN111510893A (en) * | 2019-01-31 | 2020-08-07 | 北京骑胜科技有限公司 | Signal processing method and device, electronic equipment and readable storage medium |
CN111683359A (en) * | 2019-06-28 | 2020-09-18 | 阿里巴巴集团控股有限公司 | BLE communication method, device, equipment and storage medium |
CN111800774A (en) * | 2020-07-03 | 2020-10-20 | 上海风秩科技有限公司 | Control method and device of Bluetooth equipment and storage medium |
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN113473433A (en) * | 2021-07-06 | 2021-10-01 | 巨翊科技(上海)有限公司 | Quick-pairing Bluetooth networking communication system and method |
CN113490192A (en) * | 2021-07-26 | 2021-10-08 | 深圳市元征未来汽车技术有限公司 | Bluetooth connection method, device, terminal equipment and readable storage medium |
CN113645607A (en) * | 2021-08-16 | 2021-11-12 | Oppo广东移动通信有限公司 | Bluetooth device discovery method, device, terminal and storage medium |
CN115379590A (en) * | 2022-10-27 | 2022-11-22 | 深圳市正浩创新科技股份有限公司 | Bluetooth connection establishing method and device, electronic equipment and computer storage medium |
CN115484340A (en) * | 2022-09-13 | 2022-12-16 | 宁波奥克斯电气股份有限公司 | Bluetooth-based operation matching method for multiple intelligent air conditioners and intelligent air conditioner |
CN115633115A (en) * | 2022-09-08 | 2023-01-20 | 宁波奥克斯电气股份有限公司 | Bluetooth-based operation matching method for multiple intelligent air conditioners and intelligent air conditioner |
CN115915078A (en) * | 2022-09-30 | 2023-04-04 | 国网冀北电力有限公司计量中心 | Bluetooth communication electric energy meter safety communication authentication method based on 3DES |
WO2024139697A1 (en) * | 2022-12-30 | 2024-07-04 | 飞天诚信科技股份有限公司 | Bluetooth connection-based device authentication method and apparatus |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830976B (en) * | 2018-08-10 | 2022-08-12 | 炬力(珠海)微电子有限公司 | Communication connection establishing method and device |
CN109831767B (en) * | 2019-03-21 | 2022-06-07 | 科大讯飞股份有限公司 | Bluetooth connection method and system of intelligent wearable device |
CN110072221B (en) | 2019-04-16 | 2021-03-23 | 华为技术有限公司 | Bluetooth scanning method and electronic equipment |
CN110944313B (en) * | 2019-12-04 | 2023-03-24 | 惠州Tcl移动通信有限公司 | Bluetooth connection method, device, storage medium and terminal |
CN111682990A (en) * | 2020-04-27 | 2020-09-18 | 深圳星普森信息技术有限公司 | Intelligent household system equipment access control method and system based on Bluetooth scattering network networking |
CN113691964B (en) * | 2020-05-19 | 2023-09-05 | 成都鼎桥通信技术有限公司 | Bluetooth device connection method, device and storage medium |
CN113727313A (en) * | 2020-05-25 | 2021-11-30 | 深圳Tcl数字技术有限公司 | Bluetooth scanning control method, mobile terminal and storage medium |
CN112367655B (en) * | 2020-11-06 | 2023-01-10 | 炬力(珠海)微电子有限公司 | Communication method and device for TWS equipment team formation and electronic equipment |
CN112996140B (en) * | 2021-02-02 | 2023-04-14 | 亚信科技(成都)有限公司 | Connection method, device, equipment and storage medium |
CN115342592B (en) * | 2022-08-31 | 2024-07-02 | 海信冰箱有限公司 | Refrigerator and binding method of weighing device thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070202807A1 (en) * | 2006-02-08 | 2007-08-30 | Samsung Electronics Co., Ltd. | Bluetooth® system and Bluetooth® bonding process |
CN103067055A (en) * | 2012-12-26 | 2013-04-24 | 深圳天珑无线科技有限公司 | Bluetooth connecting method and mobile terminal |
CN103888177A (en) * | 2014-02-25 | 2014-06-25 | 南京邮电大学 | Method for quickly establishing Bluetooth connection |
CN104320412A (en) * | 2014-11-11 | 2015-01-28 | 福建联迪商用设备有限公司 | Bluetooth POS and safe Bluetooth POS connecting method and device |
CN104702320A (en) * | 2014-04-11 | 2015-06-10 | 上海智向信息科技有限公司 | Method and system for judging near-field payment on basis of Bluetooth |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640693A (en) * | 2008-07-31 | 2010-02-03 | 乐金电子(中国)研究开发中心有限公司 | System and method for testifying recording time of mobile phone |
TW201228253A (en) * | 2010-10-29 | 2012-07-01 | Ibm | Apparatus for establishing wireless connection and wireless device |
CN104540238B (en) * | 2014-12-26 | 2017-02-22 | 国民技术股份有限公司 | Wireless communication method and device and intelligent card |
CN104980887A (en) * | 2015-07-16 | 2015-10-14 | 北京握奇智能科技有限公司 | Bluetooth connection establishment method and intelligent terminal |
-
2016
- 2016-11-01 CN CN201680003534.7A patent/CN107006049A/en active Pending
- 2016-11-01 WO PCT/CN2016/104195 patent/WO2017076269A1/en active Application Filing
- 2016-11-02 TW TW105135509A patent/TWI634771B/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070202807A1 (en) * | 2006-02-08 | 2007-08-30 | Samsung Electronics Co., Ltd. | Bluetooth® system and Bluetooth® bonding process |
CN103067055A (en) * | 2012-12-26 | 2013-04-24 | 深圳天珑无线科技有限公司 | Bluetooth connecting method and mobile terminal |
CN103888177A (en) * | 2014-02-25 | 2014-06-25 | 南京邮电大学 | Method for quickly establishing Bluetooth connection |
CN104702320A (en) * | 2014-04-11 | 2015-06-10 | 上海智向信息科技有限公司 | Method and system for judging near-field payment on basis of Bluetooth |
CN104320412A (en) * | 2014-11-11 | 2015-01-28 | 福建联迪商用设备有限公司 | Bluetooth POS and safe Bluetooth POS connecting method and device |
Cited By (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110018508A (en) * | 2018-01-10 | 2019-07-16 | 西安中兴新软件有限责任公司 | A kind of localization method and device |
CN108200541B (en) * | 2018-02-11 | 2024-04-16 | 张戈零 | Bluetooth control terminal based on Internet of things |
CN108200541A (en) * | 2018-02-11 | 2018-06-22 | 张戈零 | Bluetooth control terminal based on Internet of Things |
CN109041034A (en) * | 2018-09-18 | 2018-12-18 | 歌尔科技有限公司 | A kind of information interacting method based on bluetooth, system, bluetooth equipment and medium |
CN109785490A (en) * | 2019-01-29 | 2019-05-21 | 上海博泰悦臻网络技术服务有限公司 | Bi-directional verification method and system, intelligent terminal and the T-BOX of bluetooth key |
CN111510893A (en) * | 2019-01-31 | 2020-08-07 | 北京骑胜科技有限公司 | Signal processing method and device, electronic equipment and readable storage medium |
CN109920102A (en) * | 2019-02-02 | 2019-06-21 | 江门市新会区博上科技有限公司 | A kind of smart lock method, apparatus, equipment and storage medium that bluetooth enters without spoon |
CN109920102B (en) * | 2019-02-02 | 2023-12-12 | 江门市新会区博上科技有限公司 | Bluetooth keyless entry intelligent lock method, device, equipment and storage medium |
CN111683359A (en) * | 2019-06-28 | 2020-09-18 | 阿里巴巴集团控股有限公司 | BLE communication method, device, equipment and storage medium |
CN110784861A (en) * | 2019-11-07 | 2020-02-11 | 江苏英索纳智能科技有限公司 | Bluetooth switch control module |
CN110944312B (en) * | 2019-11-14 | 2023-08-25 | 合肥星空物联信息科技有限公司 | Method for carrying out dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device |
CN110944312A (en) * | 2019-11-14 | 2020-03-31 | 合肥星空物联信息科技有限公司 | Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device |
CN110891265B (en) * | 2019-11-26 | 2023-01-03 | Oppo(重庆)智能科技有限公司 | Wireless connection control method and device, mobile terminal and storage medium |
CN110891265A (en) * | 2019-11-26 | 2020-03-17 | Oppo(重庆)智能科技有限公司 | Wireless connection control method and device, mobile terminal and storage medium |
CN110933684A (en) * | 2019-11-28 | 2020-03-27 | 江苏电力信息技术有限公司 | Small-world wireless sensor network construction method based on mixed mode |
CN111800774A (en) * | 2020-07-03 | 2020-10-20 | 上海风秩科技有限公司 | Control method and device of Bluetooth equipment and storage medium |
CN113473433B (en) * | 2021-07-06 | 2023-03-17 | 巨翊科技(上海)有限公司 | Quick-pairing Bluetooth networking communication system and method |
CN113473433A (en) * | 2021-07-06 | 2021-10-01 | 巨翊科技(上海)有限公司 | Quick-pairing Bluetooth networking communication system and method |
CN113490192B (en) * | 2021-07-26 | 2024-04-02 | 深圳市元征科技股份有限公司 | Bluetooth connection method, device, terminal equipment and readable storage medium |
CN113490192A (en) * | 2021-07-26 | 2021-10-08 | 深圳市元征未来汽车技术有限公司 | Bluetooth connection method, device, terminal equipment and readable storage medium |
CN113645607B (en) * | 2021-08-16 | 2024-04-16 | Oppo广东移动通信有限公司 | Bluetooth device discovery method, device, terminal and storage medium |
CN113645607A (en) * | 2021-08-16 | 2021-11-12 | Oppo广东移动通信有限公司 | Bluetooth device discovery method, device, terminal and storage medium |
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN115633115B (en) * | 2022-09-08 | 2024-02-02 | 宁波奥克斯电气股份有限公司 | Operation matching method for multiple intelligent air conditioners based on Bluetooth and intelligent air conditioner |
CN115633115A (en) * | 2022-09-08 | 2023-01-20 | 宁波奥克斯电气股份有限公司 | Bluetooth-based operation matching method for multiple intelligent air conditioners and intelligent air conditioner |
CN115484340B (en) * | 2022-09-13 | 2024-03-08 | 宁波奥克斯电气股份有限公司 | Operation matching method for multiple intelligent air conditioners based on Bluetooth and intelligent air conditioner |
CN115484340A (en) * | 2022-09-13 | 2022-12-16 | 宁波奥克斯电气股份有限公司 | Bluetooth-based operation matching method for multiple intelligent air conditioners and intelligent air conditioner |
CN115915078A (en) * | 2022-09-30 | 2023-04-04 | 国网冀北电力有限公司计量中心 | Bluetooth communication electric energy meter safety communication authentication method based on 3DES |
CN115379590B (en) * | 2022-10-27 | 2023-02-14 | 深圳市正浩创新科技股份有限公司 | Bluetooth connection establishing method and device, electronic equipment and computer storage medium |
CN115379590A (en) * | 2022-10-27 | 2022-11-22 | 深圳市正浩创新科技股份有限公司 | Bluetooth connection establishing method and device, electronic equipment and computer storage medium |
WO2024139697A1 (en) * | 2022-12-30 | 2024-07-04 | 飞天诚信科技股份有限公司 | Bluetooth connection-based device authentication method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
TW201717595A (en) | 2017-05-16 |
CN107006049A (en) | 2017-08-01 |
TWI634771B (en) | 2018-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017076269A1 (en) | Smart device, and method and apparatus for establishing bluetooth connection between devices therefor | |
CN111669276B (en) | Network verification method, device and system | |
CN113055867B (en) | Terminal auxiliary network distribution method and device and electronic equipment | |
CN105119939B (en) | The cut-in method and device, providing method and device and system of wireless network | |
EP2405622B1 (en) | Device communication | |
CN106921963A (en) | A kind of smart machine accesses the method and device of WLAN | |
CN108259164B (en) | Identity authentication method and equipment of Internet of things equipment | |
CN109041205A (en) | Client registers method, apparatus and system | |
CN111465014B (en) | Security authentication method, configuration method and related equipment | |
US20150024688A1 (en) | Automatic Pairing of a Vehicle and a Mobile Communications Device | |
KR20160122061A (en) | Method and apparatus for downloading and installing a profile | |
US20170099137A1 (en) | Secure connection method for network device, related apparatus, and system | |
KR20160078475A (en) | Key configuration method, system and apparatus | |
CN113556227B (en) | Network connection management method, device, computer readable medium and electronic equipment | |
WO2016173190A1 (en) | Information providing method and device | |
US20210367942A1 (en) | Method and Apparatus for Secure Interaction Between Terminals | |
TWI602464B (en) | Wireless communication method, wireless communication device, smart card, terminal and communication system | |
US20160227412A1 (en) | Wireless Terminal Configuration Method, Apparatus, and Wireless Terminal | |
CN110784865A (en) | Network distribution method and terminal of Internet of things equipment, Internet of things equipment and network distribution system | |
CN108306793B (en) | Intelligent device, intelligent home gateway, and method and system for establishing connection | |
CN105517102A (en) | Method, device and equipment for enabling wireless network equipment to be connected with hot spot | |
CN104284331A (en) | Method and system for connecting with portable WLAN hotspot | |
WO2018040524A1 (en) | Method and device for sharing hotspots | |
US20210112397A1 (en) | Telecommunications Apparatus with a Radio-Linked Smart Card | |
CN107277935B (en) | Bluetooth communication method, device and application system and equipment thereof |
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: 16861537 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.09.2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16861537 Country of ref document: EP Kind code of ref document: A1 |