CN111918263B - Bluetooth connection method and device and Internet of things equipment - Google Patents
Bluetooth connection method and device and Internet of things equipment Download PDFInfo
- Publication number
- CN111918263B CN111918263B CN202010827256.5A CN202010827256A CN111918263B CN 111918263 B CN111918263 B CN 111918263B CN 202010827256 A CN202010827256 A CN 202010827256A CN 111918263 B CN111918263 B CN 111918263B
- Authority
- CN
- China
- Prior art keywords
- target device
- authorization
- verification
- verification information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012795 verification Methods 0.000 claims abstract description 178
- 238000013475 authorization Methods 0.000 claims abstract description 151
- 230000006870 function Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101100217298 Mus musculus Aspm gene Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 208000003580 polydactyly Diseases 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- 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
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种蓝牙连接方法、装置及物联网设备,所述方法包括:获取预存的授权信息表,所述授权信息表包括已授权设备的身份标识以及已授权设备的校验信息;确定目标设备,所述目标设备为物联网设备所在环境中,身份标识与授权信息表中已授权设备的身份标识相同的设备;获取所述目标设备的验证信息;根据目标设备的身份标识从所述授权信息表中确定与所述目标设备对应的校验信息;根据所述目标设备的验证信息以及与所述目标设备对应的校验信息进行连接权限校验;如果连接权限校验成功,则与所述目标设备之间建立蓝牙连接。本申请所提供的方案,能够提高物联网设备的安全性。
This application discloses a Bluetooth connection method, device and Internet of Things equipment. The method includes: obtaining a pre-stored authorization information table, which includes the identity of the authorized device and the verification information of the authorized device; determining Target device, the target device is a device in the environment where the Internet of Things device is located, and the identity identifier is the same as the identity identifier of the authorized device in the authorization information table; obtain the verification information of the target device; and obtain the verification information from the target device according to the identity identifier of the target device. The verification information corresponding to the target device is determined in the authorization information table; the connection authority is verified according to the verification information of the target device and the verification information corresponding to the target device; if the connection authority is verified successfully, the A Bluetooth connection is established between the target devices. The solution provided by this application can improve the security of IoT devices.
Description
技术领域Technical field
本发明涉及物联网技术领域,具体而言,涉及一种蓝牙连接方法、装置及物联网设备。The present invention relates to the technical field of the Internet of Things, and specifically to a Bluetooth connection method, device and Internet of Things equipment.
背景技术Background technique
随着智能控制技术的发展,物联网设备的应用也越来越广泛。对于物联网设备而言,常用的一种控制方式是蓝牙控制,采用蓝牙控制的方式中,需要先将物联网设备与用于控制的设备进行配对。目前,在采用蓝牙连接控制时,通常是直接根据控制设备的MAC(Media Access Control Address,媒体存取控制位址)地址来建立控制设备与物联网设备之间的蓝牙连接,但是这种方式中,存在MAC地址被盗用的风险,也就是说,非法设备可以通过修改其MAC地址来控制物联网设备,这样,就会造成物联网设备的安全风险。With the development of intelligent control technology, the applications of IoT devices are becoming more and more widespread. For IoT devices, a commonly used control method is Bluetooth control. In the Bluetooth control method, the IoT device needs to be paired with the device used for control first. At present, when using Bluetooth connection control, the Bluetooth connection between the control device and the Internet of Things device is usually established directly based on the MAC (Media Access Control Address) address of the control device. However, in this method , there is a risk of MAC address being stolen, that is to say, illegal devices can control IoT devices by modifying their MAC addresses, which will cause security risks for IoT devices.
发明内容Contents of the invention
为解决上述问题,第一方面,本发明实施例提供一种蓝牙连接方法,应用于物联网设备,所述方法包括:In order to solve the above problems, in the first aspect, an embodiment of the present invention provides a Bluetooth connection method, which is applied to Internet of Things devices. The method includes:
获取预存的授权信息表,所述授权信息表包括已授权设备的身份标识以及已授权设备的校验信息;Obtain a pre-stored authorization information table, which includes the identity of the authorized device and the verification information of the authorized device;
确定目标设备,所述目标设备为物联网设备所在环境中,身份标识与授权信息表中已授权设备的身份标识相同的设备;Determine the target device, which is a device in the environment where the Internet of Things device is located and whose identity is the same as the identity of the authorized device in the authorization information table;
获取所述目标设备的验证信息;Obtain verification information of the target device;
根据目标设备的身份标识从所述授权信息表中确定与所述目标设备对应的校验信息;Determine the verification information corresponding to the target device from the authorization information table according to the identity of the target device;
根据所述目标设备的验证信息以及与所述目标设备对应的校验信息进行连接权限校验;Perform connection permission verification based on the verification information of the target device and the verification information corresponding to the target device;
如果连接权限校验成功,则与所述目标设备之间建立蓝牙连接。If the connection permission verification is successful, a Bluetooth connection is established with the target device.
在可选的实施方式中,所述确定目标设备,包括:In an optional implementation, the determining target device includes:
从待连接设备中确定目标设备,所述待连接设备为物联网设备所在环境中,已经开启蓝牙且身份标识与所述授权信息表中身份标识相同的设备。Determine the target device from the devices to be connected. The device to be connected is a device in the environment where the Internet of Things device is located, Bluetooth has been turned on, and the identity identifier is the same as the identity identifier in the authorization information table.
在可选的实施方式中,所述从所述待连接设备中确定目标设备,包括:In an optional implementation, determining the target device from the devices to be connected includes:
判断所述待连接设备中,是否存在主授权设备,所述主授权设备为首个与所述物联网设备配对成功的设备;Determine whether there is a main authorized device among the devices to be connected, and the main authorized device is the first device that is successfully paired with the Internet of Things device;
如果所述待连接设备中存在主授权设备,则将所述主授权设备作为目标设备。If there is a main authorized device in the device to be connected, the main authorized device is used as the target device.
在可选的实施方式中,所述从所述待连接设备中确定目标设备,还包括:In an optional implementation, determining the target device from the devices to be connected further includes:
如果所述待连接设备中不存在主授权设备,则将优先级最高的待连接设备作为目标设备。If there is no master authorized device among the devices to be connected, the device to be connected with the highest priority is used as the target device.
在可选的实施方式中,所述方法还包括:In optional implementations, the method further includes:
如果所述连接权限校验不成功,则判断是否所有的待连接设备均已经作为目标设备;If the connection permission verification is unsuccessful, determine whether all devices to be connected have been used as target devices;
如果存在未作为目标设备的待连接设备,则从未作为目标设备的待连接设备中确定新的目标设备;If there is a device to be connected that is not a target device, determine a new target device from the device to be connected that is not a target device;
根据新的目标设备重新执行获取所述目标设备的验证信息的步骤。The step of obtaining the verification information of the target device is re-executed according to the new target device.
在可选的实施方式中,所述从未作为目标设备的待连接设备中确定新的目标设备,包括:In an optional implementation, determining a new target device from devices to be connected that are not target devices includes:
从未作为目标设备的待连接设备中,获取优先级最高的待连接设备作为新的目标设备。From the devices to be connected that are not target devices, the device to be connected with the highest priority is obtained as the new target device.
在可选的实施方式中,所述方法还包括:In optional implementations, the method further includes:
获取预存的所述已授权设备与所述物联网设备之间建立蓝牙连接的连接次数;Obtain the pre-stored number of Bluetooth connections established between the authorized device and the Internet of Things device;
根据各个待连接设备对应的已授权设备的连接次数,确定每个待连接设备的优先级,其中,连接次数越大,优先级越高。The priority of each device to be connected is determined according to the number of connections of the authorized device corresponding to each device to be connected, where the greater the number of connections, the higher the priority.
在可选的实施方式中,所述校验信息包括授权数据和有效性数据;In an optional implementation, the verification information includes authorization data and validity data;
所述根据所述目标设备的验证信息以及与所述目标设备对应的校验信息进行连接权限校验,包括:The connection permission verification based on the verification information of the target device and the verification information corresponding to the target device includes:
根据所述目标设备的验证信息、所述目标设备对应的授权数据以及所述目标设备对应的有效性数据,对所述目标设备进行授权校验以及有效性校验;Perform authorization verification and validity verification on the target device according to the verification information of the target device, the authorization data corresponding to the target device, and the validity data corresponding to the target device;
如果授权校成功,且有效性校验成功,则判定所述目标设备的连接权限校验成功;If the authorization verification is successful and the validity verification is successful, it is determined that the connection permission verification of the target device is successful;
如果授权校验失败,或者有效性校验失败,则判定连接权限校验失败。If the authorization check fails or the validity check fails, it is determined that the connection permission check fails.
在可选的实施方式中,所述根据所述目标设备的验证信息、所述目标设备对应的授权数据以及所述目标设备对应的有效性数据,对所述目标设备进行授权校验以及有效性校验,包括:In an optional implementation, authorization verification and validity are performed on the target device based on the verification information of the target device, the authorization data corresponding to the target device, and the validity data corresponding to the target device. Verification, including:
判断所述目标设备的验证信息与所述目标设备对应的授权数据是否一致;Determine whether the verification information of the target device is consistent with the authorization data corresponding to the target device;
如果所述目标设备的验证信息与所述目标设备对应的授权数据一致,则判定授权校验成功;If the verification information of the target device is consistent with the authorization data corresponding to the target device, it is determined that the authorization verification is successful;
如果所述目标设备的验证信息与所述目标设备对应的授权数据不一致,则判定授权校验失败;If the verification information of the target device is inconsistent with the authorization data corresponding to the target device, it is determined that the authorization verification fails;
如果所述目标设备对应的有效性数据为有效状态则有效性校验成功;If the validity data corresponding to the target device is in a valid state, the validity verification is successful;
如果所述目标设备对应的有效性数据为无效状态则有效性校验失败。If the validity data corresponding to the target device is in an invalid state, the validity check fails.
在可选的实施方式中,所述判断所述目标设备的验证信息与所述目标设备对应的授权数据是否一致,包括:In an optional implementation, determining whether the verification information of the target device is consistent with the authorization data corresponding to the target device includes:
判断所述目标设备是否为主授权设备,所述主授权设备为首个与所述物联网设备配对成功的设备;Determine whether the target device is the main authorized device, and the main authorized device is the first device that is successfully paired with the Internet of Things device;
如果所述目标设备为主授权设备,则判断所述目标设备的验证信息与所述目标设备对应的授权数据是否相符;If the target device is the primary authorized device, determine whether the verification information of the target device matches the authorization data corresponding to the target device;
如果所述目标设备的验证信息与所述目标设备对应的授权数据相符,则判定所述目标设备的验证信息与所述目标设备对应的授权数据一致;If the verification information of the target device is consistent with the authorization data corresponding to the target device, it is determined that the verification information of the target device is consistent with the authorization data corresponding to the target device;
如果所述目标设备的验证信息与所述目标设备对应的授权数据不相符,则获取新的授权数据;If the verification information of the target device does not match the authorization data corresponding to the target device, obtain new authorization data;
如果新的授权数据与旧的授权数据不一致,则判定所述目标设备的验证信息与所述目标设备对应的授权数据一致。If the new authorization data is inconsistent with the old authorization data, it is determined that the verification information of the target device is consistent with the authorization data corresponding to the target device.
在可选的实施方式中,所述身份标识由终端设备的MAC地址与该终端设备的IMEI所构成字符的散列函数值中获得。In an optional implementation, the identity identifier is obtained from a hash function value of characters composed of the MAC address of the terminal device and the IMEI of the terminal device.
在可选的实施方式中,所述方法还包括,在与所述目标设备之间建立的蓝牙连接后,获取目标设备对物联网设备的偏好信息;In an optional implementation, the method further includes, after establishing a Bluetooth connection with the target device, obtaining the target device's preference information for Internet of Things devices;
根据所述偏好信息运行。Run based on the preference information.
第二方面,本发明实施例提供一种蓝牙连接装置,应用于物联网设备,所述装置包括:In a second aspect, embodiments of the present invention provide a Bluetooth connection device for use in Internet of Things devices. The device includes:
第一获取模块,用于获取预存的授权信息表,所述授权信息表包括已授权设备的身份标识以及已授权设备的校验信息;The first acquisition module is used to acquire a pre-stored authorization information table, where the authorization information table includes the identity of the authorized device and the verification information of the authorized device;
第一确定模块,用于确定目标设备,所述目标设备为物联网设备所在环境中,身份标识与授权信息表中已授权设备的身份标识相同的设备;The first determination module is used to determine the target device. The target device is a device in the environment where the Internet of Things device is located, and the identity identifier is the same as the identity identifier of the authorized device in the authorization information table;
第二获取模块,用于获取所述目标设备的验证信息;The second acquisition module is used to acquire the verification information of the target device;
第二确定模块,用于根据目标设备的身份标识从所述授权信息表中确定与所述目标设备对应的校验信息;a second determination module, configured to determine the verification information corresponding to the target device from the authorization information table according to the identity of the target device;
校验模块,用于根据所述目标设备的验证信息以及与所述目标设备对应的校验信息进行连接权限校验;以及在连接权限校验成功时,与所述目标设备之间建立蓝牙连接。A verification module configured to perform connection permission verification based on the verification information of the target device and the verification information corresponding to the target device; and when the connection permission verification is successful, establish a Bluetooth connection with the target device .
第三方面,本发明实施例提供一种物联网设备,所述物联网设备包括存储器和处理器,所述存储器与所述处理器电性连接,所述存储器中存储有可执行程序,所述处理器在执行所述可执行程序时,实现如前述实施方式任一项所述的方法。In a third aspect, embodiments of the present invention provide an Internet of Things device. The Internet of Things device includes a memory and a processor. The memory is electrically connected to the processor. An executable program is stored in the memory. When the processor executes the executable program, it implements the method described in any one of the preceding embodiments.
本实施例公开的蓝牙连接方法、装置及物联网设备,通过物联网设备获取预存的校验信息,并获取目标设备的验证信息,然后根据目标设备的验证信息和目标设备对应验证信息来对目标设备的进行连接权限校验,从而在连接权限校验成功的情况下,建立与目标设备之间的蓝牙连接,如此,便能够防止非法设备连接物联网设备,提高了物联网设备的安全性。The Bluetooth connection method, device and Internet of Things device disclosed in this embodiment obtain pre-stored verification information through the Internet of Things device and obtain verification information of the target device, and then verify the target device based on the verification information of the target device and the corresponding verification information of the target device. The device performs connection permission verification, thereby establishing a Bluetooth connection with the target device if the connection permission verification is successful. This prevents illegal devices from connecting to IoT devices and improves the security of IoT devices.
附图说明Description of the drawings
图1为本申请实施例提供的物联网设备的结构示意框图;Figure 1 is a schematic structural block diagram of an Internet of Things device provided by an embodiment of the present application;
图2为本申请实施例提供的物联网设备的外部连接架构示意图;Figure 2 is a schematic diagram of the external connection architecture of the Internet of Things device provided by the embodiment of the present application;
图3为本申请实施例提供的蓝牙连接方法的流程示意图一;Figure 3 is a schematic flowchart 1 of the Bluetooth connection method provided by the embodiment of the present application;
图4为本申请实施例提供的蓝牙连接方法的流程示意图二;Figure 4 is a schematic flow chart 2 of the Bluetooth connection method provided by the embodiment of the present application;
图5为本申请实施例提供的蓝牙连接装置的结构示意图。Figure 5 is a schematic structural diagram of a Bluetooth connection device provided by an embodiment of the present application.
附图标记说明:100-物联网设备;110-蓝牙连接装置;111-第一获取模块;112-第一确定模块;113-第二获取模块;114-第二确定模块;115-校验模块;120-存储器;130-处理器;200-服务器;300-网络;400-终端设备。Explanation of reference signs: 100-Internet of Things equipment; 110-Bluetooth connection device; 111-first acquisition module; 112-first determination module; 113-second acquisition module; 114-second determination module; 115-verification module ; 120-storage; 130-processor; 200-server; 300-network; 400-terminal equipment.
具体实施方式Detailed ways
随着智能控制技术的发展,物联网设备100的应用也越来越广泛。蓝牙是一种短距离无线通信协议标准,被广泛的应用在各类终端设备和物联网设备上。蓝牙连接时会通过蓝牙MAC地址进行身份标识,即蓝牙连接双方完成连接后会常以蓝牙MAC标识双方身份,进行身份识别。With the development of intelligent control technology, the applications of Internet of Things devices 100 are becoming more and more widespread. Bluetooth is a short-range wireless communication protocol standard that is widely used in various terminal devices and Internet of Things devices. When a Bluetooth connection is made, the Bluetooth MAC address is used for identification. That is, after the Bluetooth connection is completed, both parties will often use the Bluetooth MAC to identify the identities of both parties for identification.
这种基于蓝牙的身份识别可用在某些场景下提高用户体验,如蓝牙音箱或车载娱乐设备通过接入的不同手机蓝牙为不同用户提供不同的歌曲等偏好设置,智能空调通过接入的不同手机蓝牙为不同用户提供温度、湿度和摆风等个性化功能。但是这种方式中,存在MAC地址被盗用的风险,也就是说,非法设备可以通过修改其MAC地址来控制物联网设备,这样,就会造成物联网设备的安全风险。This kind of Bluetooth-based identity recognition can be used to improve user experience in certain scenarios. For example, Bluetooth speakers or in-car entertainment devices provide different songs and other preferences for different users through the Bluetooth of different mobile phones connected to it. Smart air conditioners use different mobile phones connected to the Bluetooth to provide different preferences such as songs. Bluetooth provides personalized functions such as temperature, humidity and wind adjustment for different users. However, in this method, there is a risk of MAC address being stolen. That is to say, illegal devices can control IoT devices by modifying their MAC addresses. This will cause security risks for IoT devices.
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
请参见图1,图1是本申请实施例提供的物联网设备100的结构示意框图,物联网设备100包括蓝牙连接装置110,存储器120和处理器130,存储器120和处理器130相互之间直接或间接电性连接,用于实现数据交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。蓝牙连接装置110包括至少一个可以软件或固件(Firmware)的形式存储于存储器120中或固化在物联网设备100的操作系统(Operating System,OS)中的软件功能模块。处理器130用于执行存储器120中存储的可执行模块,例如蓝牙连接装置110所包括的软件功能模块及计算机程序等。Please refer to Figure 1. Figure 1 is a schematic structural block diagram of an Internet of Things device 100 provided by an embodiment of the present application. The Internet of Things device 100 includes a Bluetooth connection device 110, a memory 120 and a processor 130. The memory 120 and the processor 130 directly communicate with each other. Or indirect electrical connection for data interaction. For example, these components may be electrically connected to each other through one or more communication buses or signal lines. The Bluetooth connection device 110 includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or solidified in the operating system (Operating System, OS) of the Internet of Things device 100 . The processor 130 is used to execute executable modules stored in the memory 120, such as software function modules and computer programs included in the Bluetooth connection device 110.
请参照图2所示,物联网设备100可以通过网络300与服务器200通信连接,服务器200还可以通过网络300与多个终端设备400(终端设备400-终端设备400)分别通信连接。Referring to Figure 2, the Internet of Things device 100 can communicate with the server 200 through the network 300, and the server 200 can also communicate with multiple terminal devices 400 (terminal device 400-terminal device 400) through the network 300.
本申请实施例还提供了一种可应用于上述物联网设备100的蓝牙连接方法,请参照图3所示,图3为本实施例提供的蓝牙连接方法的流程示意图,蓝牙连接方法包括步骤S110-步骤S150。The embodiment of the present application also provides a Bluetooth connection method that can be applied to the above-mentioned Internet of Things device 100. Please refer to Figure 3. Figure 3 is a schematic flow chart of the Bluetooth connection method provided by this embodiment. The Bluetooth connection method includes step S110. - Step S150.
步骤S110,获取预存的授权信息表,授权信息表包括已授权设备的身份标识以及已授权设备的校验信息。Step S110: Obtain a pre-stored authorization information table. The authorization information table includes the identity of the authorized device and the verification information of the authorized device.
步骤S120,确定目标设备,目标设备为物联网设备100所在环境中,身份标识与授权信息表中已授权设备的身份标识相同的设备。Step S120: Determine the target device. The target device is a device in the environment where the Internet of Things device 100 is located, and the identity identifier is the same as the identity identifier of the authorized device in the authorization information table.
步骤S130,获取目标设备的验证信息。Step S130: Obtain verification information of the target device.
步骤S140,根据目标设备的身份标识从授权信息表中确定与目标设备对应的校验信息。Step S140: Determine verification information corresponding to the target device from the authorization information table according to the identity of the target device.
步骤S150,根据目标设备的验证信息以及与目标设备对应的校验信息进行连接权限校验。Step S150: Perform connection permission verification based on the verification information of the target device and the verification information corresponding to the target device.
步骤S160,如果连接权限校验成功,则与目标设备之间建立蓝牙连接。Step S160: If the connection permission verification is successful, a Bluetooth connection is established with the target device.
本实施例中,通过预存的授权信息表来对目标设备的连接权限,从而在目标设备的连接权限校验成功的情况下,再与目标设备之间建立蓝牙连接,从而避免了具有与已授权设备相同MAC地址的非法设备控制物联网设备100,减小了物联网设备100被非法控制的风险,提高了物联网设备100的安全性。In this embodiment, the connection permission of the target device is determined through the pre-stored authorization information table, so that when the connection permission of the target device is successfully verified, a Bluetooth connection is established with the target device, thereby avoiding the need to have the authorization information. Illegal devices with the same MAC address control the Internet of Things device 100, which reduces the risk of the Internet of Things device 100 being illegally controlled and improves the security of the Internet of Things device 100.
在一种实施方式中,授权信息表可以是由用户直接根据可控制物联网设备100的其他终端设备400直接设置好,然后存储在物联网设备100中。In one implementation, the authorization information table can be set directly by the user according to other terminal devices 400 that can control the Internet of Things device 100, and then stored in the Internet of Things device 100.
请参照图2所示,在另一种实施方式中,授权信息表可以是由主授权设备同步给物联网设备100。其中,主授权设备是首个与物联网设备100配对成功的设备,物联网设备100与主授权设备配对成功后,便不直接与其他终端设备400进行配对。而主授权设备在与物联网设备100配对成功后,便生成自身的校验信息、身份标识和设备类型标识,并将校验信息、身份标识、设备类型标识同步给物联网设备100,该同步过程可以是:主授权设备将校验信息、身份标识和设备类型标识发送给服务器200。服务器200可以将校验信息、身份标识和设备类型标识存储在其上所配置的授权信息表中,也可以将校验信息、身份标识、设备类型标识发送给物联网设备100,由物联网设备100来将这些信息存储在物联网设备100上配置的存储信息表中。Referring to FIG. 2 , in another implementation manner, the authorization information table may be synchronized by the master authorization device to the Internet of Things device 100 . Among them, the main authorized device is the first device that is successfully paired with the IoT device 100. After the IoT device 100 is successfully paired with the main authorized device, it will not be directly paired with other terminal devices 400. After the main authorized device is successfully paired with the Internet of Things device 100, it generates its own verification information, identity identifier, and device type identifier, and synchronizes the verification information, identity identifier, and device type identifier to the Internet of Things device 100. This synchronization The process may be: the main authorization device sends the verification information, identity identifier and device type identifier to the server 200 . The server 200 can store the verification information, identity identification and device type identification in the authorization information table configured on it, or can send the verification information, identity identification and device type identification to the Internet of Things device 100, and the Internet of Things device 100 to store this information in the storage information table configured on the Internet of Things device 100.
主授权设备在与物联网设备100配对成功后,还会与其他终端设备400进行交互,并生成其他终端设备400的校验信息、身份标识和设备类型标识,主授权设备将校验信息、身份标识和设备类型标识发送给服务器200。服务器200可以将校验信息、身份标识和设备类型标识存储在其上所配置的授权信息表中,也可以将校验信息、身份标识、设备类型标识发送给物联网设备100。由物联网设备100来将这些信息存储在物联网设备100上配置的存储信息表中。简而言之,已授权设备包括主授权设备和经过主授权设备授权的其他终端设备400。主授权设备还会将各个终端设备400对应的校验信息、身份标识和设备类型标识发送给对应的终端设备400。After the main authorized device is successfully paired with the Internet of Things device 100, it will also interact with other terminal devices 400 and generate verification information, identity identifiers and device type identifiers of other terminal devices 400. The main authorized device will verify the information, identity The identification and the device type identification are sent to the server 200. The server 200 may store the verification information, identity identifier, and device type identifier in the authorization information table configured thereon, or may send the verification information, identity identifier, and device type identifier to the Internet of Things device 100 . The Internet of Things device 100 stores this information in a storage information table configured on the Internet of Things device 100 . In short, the authorized device includes the main authorization device and other terminal devices 400 authorized by the main authorization device. The main authorization device will also send the verification information, identity identifier and device type identifier corresponding to each terminal device 400 to the corresponding terminal device 400.
本实施例中,校验信息是用于校验终端设备400是否可以连接物联网设备100的数据,校验信息中,可以包括表征终端设备400是否已经经过连接授权的授权数据以及终端设备400的授权是否有效的有效性数据;身份标识是用于标识每一个终端设备400的数据,设备类型标识是表征终端设备400是主授权设备还是被授权设备的数据。在连接物联网设备需要经过主授权设备授权时,授权数据可以由主授权设备生成,然后分享给对应的其他的终端设备,其中,授权数据可以是主授权设备随机生成的数字码或字符码,或者,授权数据也可以是用户输入的数字码或字符码,授权数据可以是多位,例如6位。有效性数据可以由主授权设备生成,然后分享给对应的其他终端设备。In this embodiment, the verification information is data used to verify whether the terminal device 400 can connect to the Internet of Things device 100. The verification information may include authorization data indicating whether the terminal device 400 has been authorized for connection and the number of the terminal device 400. Validity data indicating whether the authorization is valid; the identity identifier is data used to identify each terminal device 400, and the device type identifier is data indicating whether the terminal device 400 is the main authorizing device or the authorized device. When connecting to an IoT device requires authorization from the main authorization device, the authorization data can be generated by the main authorization device and then shared with other corresponding terminal devices. The authorization data can be a numerical code or character code randomly generated by the main authorization device. Alternatively, the authorization data can also be a numeric code or character code input by the user, and the authorization data can be multiple digits, such as 6 digits. Validity data can be generated by the main authorization device and then shared with other corresponding terminal devices.
当然,本实施中,首次与物联网配对成功的终端设备400,是指在物联网设备100投入使用时,第一次与物联网设备100配对成功的终端设备400,或者在物联网设备100重置后,首次与物联网设备100配对成功的终端设备400。Of course, in this implementation, the terminal device 400 that is successfully paired with the Internet of Things for the first time refers to the terminal device 400 that is successfully paired with the Internet of Things device 100 for the first time when the Internet of Things device 100 is put into use, or the terminal device 400 that is successfully paired with the Internet of Things device 100. After being set up, the terminal device 400 is successfully paired with the Internet of Things device 100 for the first time.
为了帮助理解,以下结合实际的场景来对已授权设备、主授权设备进行说明。In order to help understanding, the following describes the authorized device and the main authorized device based on actual scenarios.
例如,在通信系统中,包括物联网设备100、服务器200和终端设备A、终端设备B、终端设备C、终端设备D、终端设备E和终端设备F。在最初时,每个终端设备400均与物联网设备100进行连接配对,但是终端设备A最先配对成功,那么终端设备A就是主授权设备,终端设备B、终端设备C、终端设备D、终端设备E、终端设备F便不再与物联网设备100配对。此时,终端设备A便将自身的校验信息、身份标识和设备类型标识同步给物联网设备100。终端设备A与终端设备B、终端设备C和终端设备D交互,将其生成的校验信息、身份标识和设备类型标识发送给对应的终端设备B、终端设备C、终端设备D,完成授权,也就是说,已授权设备包括终端设备A、终端设备B、终端设备C和终端设备D。For example, the communication system includes the Internet of Things device 100, the server 200, and terminal device A, terminal device B, terminal device C, terminal device D, terminal device E, and terminal device F. At the beginning, each terminal device 400 is connected and paired with the Internet of Things device 100, but terminal device A is successfully paired first, then terminal device A is the main authorized device, terminal device B, terminal device C, terminal device D, terminal Device E and terminal device F are no longer paired with the Internet of Things device 100. At this time, terminal device A synchronizes its own verification information, identity identifier, and device type identifier to the Internet of Things device 100. Terminal device A interacts with terminal device B, terminal device C and terminal device D, and sends the verification information, identity identifier and device type identifier generated by it to the corresponding terminal device B, terminal device C and terminal device D to complete the authorization. That is to say, the authorized devices include terminal device A, terminal device B, terminal device C and terminal device D.
本实施例中,通过主授权设备来对其他终端设备400进行授权,如此,可以由用户根据需要来确定物联网设备100可连接的终端设备400,从而再给对应的终端设备400授权,提高用户的体验。In this embodiment, other terminal devices 400 are authorized through the main authorization device. In this way, the user can determine the terminal devices 400 that the Internet of Things device 100 can connect to according to needs, and then authorize the corresponding terminal device 400 to improve the user experience. experience.
可选地,本实施中,步骤S120包括,从待连接设备中确定目标设备,待连接设备为物联网设备100所在环境中,已经开启蓝牙且身份标识与授权信息表中身份标识相同的终端设备400。Optionally, in this implementation, step S120 includes determining the target device from the devices to be connected. The device to be connected is a terminal device in the environment where the Internet of Things device 100 is located, Bluetooth has been turned on, and the identity identifier is the same as the identity identifier in the authorization information table. 400.
在本实施例用于具体确定目标设备,物联网设备100可以以主模式工作也可以从模式工作。仍然以上述包括物联网设备100、服务器200和终端设备A、终端设备B、终端设备C、终端设备D、终端设备E和终端设备F的通信系统为例,如果物联网设备100的蓝牙通信范围内,包括终端设备A、终端设备B、终端设备C、终端设备E和终端设备F,那么,终端设备A、终端设备B、终端设备C为可连接设备。那么目标设备就是终端设备A、终端设备B、终端设备C中的一个。In this embodiment, it is used to specifically determine the target device. The IoT device 100 can work in the master mode or the slave mode. Still taking the above-mentioned communication system including the Internet of Things device 100, the server 200 and terminal device A, terminal device B, terminal device C, terminal device D, terminal device E and terminal device F as an example, if the Bluetooth communication range of the Internet of Things device 100 includes terminal equipment A, terminal equipment B, terminal equipment C, terminal equipment E and terminal equipment F, then terminal equipment A, terminal equipment B and terminal equipment C are connectable devices. Then the target device is one of terminal device A, terminal device B, and terminal device C.
可选地,本实施例中,从待连接设备中确定目标设备,包括,判断待连接设备中,是否存在主授权设备;如果待连接设备中存在主授权设备,则将主授权设备作为目标设备。Optionally, in this embodiment, determining the target device from the devices to be connected includes determining whether there is a master authorized device in the device to be connected; if there is a master authorized device in the device to be connected, then using the master authorized device as the target device .
本实施例中,将主授权设备作为优先连接的终端设备,能够提高用户体验,确保物联网设备拥有者对物联网设备的控制权限。In this embodiment, using the main authorized device as the terminal device to be connected first can improve the user experience and ensure the control authority of the Internet of Things device owner over the Internet of Things device.
可选地,本实施例中,从待连接设备中确定目标设备,还包括,如果待连接设备中不存在主授权设备,则将优先级最高的待连接设备作为目标设备。Optionally, in this embodiment, determining the target device from the devices to be connected also includes, if there is no master authorization device among the devices to be connected, using the device to be connected with the highest priority as the target device.
本实施例中,在待连接设备中不存在主授权设备的情况下,根据优先级来确定连接顺序,可以提高用户体验。In this embodiment, when there is no primary authorized device among the devices to be connected, the connection sequence is determined based on priority, which can improve user experience.
请参照图4所示,可选地,本实施例中,蓝牙连接方法还包括,如果连接权限校验失败,执行步骤S170-步骤S180。Referring to FIG. 4 , optionally, in this embodiment, the Bluetooth connection method also includes, if the connection permission verification fails, performing steps S170 to S180.
步骤S170,判断是否所有的待连接设备均已经作为目标设备。Step S170: Determine whether all devices to be connected have been used as target devices.
步骤S180,如果存在未作为目标设备的待连接设备,则从未作为目标设备的待连接设备中确定新的目标设备,根据新的目标设备重新执行获取目标设备的验证信息的步骤。Step S180: If there is a device to be connected that is not a target device, a new target device is determined from the device to be connected that is not a target device, and the step of obtaining the verification information of the target device is re-executed based on the new target device.
本实施例中,在目标设备不能通过连接校验的情况下,更换新的终端设备400作为目标设备,尽可能确保已授权的终端设备400连接上物联网设备100,提高用户体验。In this embodiment, when the target device cannot pass the connection verification, a new terminal device 400 is replaced as the target device to ensure that the authorized terminal device 400 is connected to the Internet of Things device 100 as much as possible to improve user experience.
当然,本实施例中,在对目标设备的连接权限校验失败的情况下,物联网设备可以向主授权设备发送连接权限校验失败的信息,主授权设备在收到连接权限校验失败的信息后,可以重新生成对应终端设备的授权数据,并分享给物联网设备和对应的终端设备。Of course, in this embodiment, when the connection permission verification of the target device fails, the Internet of Things device can send the connection permission verification failure information to the main authorization device. The main authorization device receives the connection permission verification failure information. After receiving the information, the authorization data of the corresponding terminal device can be regenerated and shared with the IoT device and the corresponding terminal device.
可选地,本实施例中,从未作为目标设备的待连接设备中确定新的目标设备,包括,从未作为目标设备的待连接设备中,获取优先级最高的待连接设备作为新的目标设备。Optionally, in this embodiment, determining a new target device from the devices to be connected that are not target devices includes obtaining the device to be connected with the highest priority as the new target. equipment.
本实施例中,在选取新的目标设备时,按照优先级顺序来选取,能够确保选取的结果更加符合用户需求,提高用户体验。In this embodiment, when selecting a new target device, the device is selected according to the order of priority, which can ensure that the selected result is more in line with user needs and improves user experience.
可选地,本实施例中,蓝牙连接方法还包括,获取预存的已授权设备与物联网设备100之间建立蓝牙连接的连接次数;根据各个待连接设备对应的已授权设备的连接次数,确定每个待连接设备的优先级,其中,连接次数越大,优先级越高。Optionally, in this embodiment, the Bluetooth connection method also includes: obtaining the number of connections for establishing a Bluetooth connection between the pre-stored authorized device and the Internet of Things device 100; and determining the number of connections based on the number of connections of the authorized device corresponding to each device to be connected. The priority of each device to be connected, where the greater the number of connections, the higher the priority.
本实施例中,预存已授权设备与物联网设备100之间建立蓝牙连接的连接次数,根据连接次数来确定连接权限,可以进一步提高用户体验。In this embodiment, the number of connections to establish a Bluetooth connection between the authorized device and the Internet of Things device 100 is pre-stored, and the connection authority is determined based on the number of connections, which can further improve the user experience.
可选地,本实施例中,当校验信息包括授权数据和有效性数据时,根据目标设备的验证信息以及与目标设备对应的校验信息进行连接权限校验,包括,根据目标设备的验证信息、目标设备对应的授权数据以及目标设备对应的有效性数据,对目标设备进行授权校验以及有效性校验;如果授权校成功,且有效性校验成功,则判定目标设备的连接权限校验成功;如果授权校验失败,或者有效性校验失败,则判定连接权限校验失败。Optionally, in this embodiment, when the verification information includes authorization data and validity data, the connection permission verification is performed according to the verification information of the target device and the verification information corresponding to the target device, including, according to the verification information of the target device Information, the authorization data corresponding to the target device and the validity data corresponding to the target device, perform authorization verification and validity verification on the target device; if the authorization verification is successful and the validity verification is successful, the connection permission verification of the target device is determined. The verification is successful; if the authorization verification fails or the validity verification fails, it is determined that the connection permission verification fails.
本实施例中,通过授权数据和有效性数据来分别对目标数据进行校验,从而能够在不同连接条件下对终端设备400与物联网设备100的连接状态进行控制,提高用户体验。In this embodiment, the target data is verified separately through authorization data and validity data, so that the connection status of the terminal device 400 and the Internet of Things device 100 can be controlled under different connection conditions, thereby improving user experience.
可选地,本实施例中,根据目标设备的验证信息、目标设备对应的授权数据以及目标设备对应的有效性数据,对目标设备进行授权校验以及有效性校验,包括,判断目标设备的验证信息与目标设备对应的授权数据是否一致;如果目标设备的验证信息与目标设备对应的授权数据一致,则判定授权校验成功;如果目标设备的验证信息与目标设备对应的授权数据不一致,则判定授权校验失败;如果目标设备对应的有效性数据为有效状态,则有效性校验成功;如果目标设备对应的有效性数据为无效状态则有效性校验失败。Optionally, in this embodiment, authorization verification and validity verification are performed on the target device based on the verification information of the target device, the authorization data corresponding to the target device, and the validity data corresponding to the target device, including determining whether the target device is Whether the verification information is consistent with the authorization data corresponding to the target device; if the verification information of the target device is consistent with the authorization data corresponding to the target device, it is determined that the authorization verification is successful; if the verification information of the target device is inconsistent with the authorization data corresponding to the target device, then It is determined that the authorization verification fails; if the validity data corresponding to the target device is in a valid state, the validity verification is successful; if the validity data corresponding to the target device is in an invalid state, the validity verification fails.
本实施例用于具体进行授权校验和有效性校验。This embodiment is used to specifically perform authorization verification and validity verification.
本实施例中,在判定目标设备的授权校验失败后,物联网设备可以更新目标设备的有效性数据,将有效性数据更新为无效的状态。物联网设备还可以将目标设备授权校验不通过的信息通知主授权设备,主授权设备在接收到目标设备授权校验不通过的信息后,可以重新对目标设备进行授权,也就是说,重新生成目标设备的授权校验码,并将该授权校验码同步给物联网设备,以及分享给该目标设备。In this embodiment, after determining that the authorization verification of the target device fails, the Internet of Things device can update the validity data of the target device and update the validity data to an invalid state. The IoT device can also notify the main authorization device of the information that the target device fails the authorization verification. After receiving the information that the target device fails the authorization verification, the main authorization device can re-authorize the target device, that is, re-authorize the target device. Generate the authorization verification code of the target device, synchronize the authorization verification code to the IoT device, and share it with the target device.
可选地,本实施例中,判断目标设备的验证信息与目标设备对应的授权数据是否一致,包括,判断目标设备是否为主授权设备,主授权设备为首个与物联网设备100配对成功的设备;如果目标设备为主授权设备,则判断目标设备的验证信息与目标设备对应的授权数据是否相符;如果目标设备的验证信息与目标设备对应的授权数据相符,则判定目标设备的验证信息与目标设备对应的授权数据一致;如果目标设备的验证信息与目标设备对应的授权数据不相符,则获取新的授权数据;如果新的授权数据与旧的授权数据不一致,则判定目标设备的验证信息与目标设备对应的授权数据一致。Optionally, in this embodiment, determining whether the verification information of the target device is consistent with the authorization data corresponding to the target device includes determining whether the target device is the main authorized device, and the main authorized device is the first device that is successfully paired with the Internet of Things device 100 ; If the target device is the main authorized device, then determine whether the verification information of the target device matches the authorization data corresponding to the target device; if the verification information of the target device matches the authorization data corresponding to the target device, then determine whether the verification information of the target device matches the authorization data corresponding to the target device. The authorization data corresponding to the device is consistent; if the verification information of the target device does not match the authorization data corresponding to the target device, obtain new authorization data; if the new authorization data is inconsistent with the old authorization data, determine that the verification information of the target device is consistent with the authorization data. The authorization data corresponding to the target device is consistent.
本实施例中,在对主授权设备的授权数据校验时,如果对主授权设备的授权校验不成功的情况下,通知主授权设备更新授权数据,并在主授权数据更新成功的情况下,判定目标设备验证信息与目标设备对应的授权数据一致,从而,能够优先确保主授权设备对物联网设备100的控制。In this embodiment, when verifying the authorization data of the main authorization device, if the authorization verification of the main authorization device fails, the main authorization device is notified to update the authorization data, and if the main authorization data is successfully updated, , it is determined that the target device verification information is consistent with the authorization data corresponding to the target device, so that the control of the Internet of Things device 100 by the main authorized device can be prioritized.
当然,本实施例中,在目标设备的验证信息与目标设备对应的授权数据不相符时,可以在获取新的授权数据后,重新执行判断目标设备的验证信息与目标设备对应的授权数据是否相符的步骤,直至满足预设的循环次数。Of course, in this embodiment, when the verification information of the target device does not match the authorization data corresponding to the target device, after obtaining the new authorization data, it can be re-executed to determine whether the verification information of the target device matches the authorization data corresponding to the target device. steps until the preset number of cycles is met.
本实施例中,主授权设备的有效性数据的有效状态可以为一直有效,也就是说,只要目标设备是主授权设备,那么,则可以认为主授权设备的有效性校验成功。In this embodiment, the validity status of the validity data of the main authorization device may be always valid. That is to say, as long as the target device is the main authorization device, then the validity verification of the main authorization device can be considered successful.
在一种可行的实施方式中,身份标识包括设备的MAC地址。在另一种可行的实施方式中,身份标识由终端设备400的蓝牙MAC地址与该终端设备400的IMEI所构成字符的散列函数值中获得,身份标识可以是截取的整个散列函数值中的某些特定位置的字符,例如,可以截取特定的12位或者16位等。散列函数值可以通过哈希函数、MD5、SHA1、SHA256等算法计算获得。当终端设备400的IMEI中有两个及以上IMEI号时,则可以选择第一个IMEI号来进行计算。In a possible implementation, the identity includes the MAC address of the device. In another feasible implementation, the identity identifier is obtained from the hash function value of the characters composed of the Bluetooth MAC address of the terminal device 400 and the IMEI of the terminal device 400. The identity identifier can be the intercepted entire hash function value. Characters at certain specific positions, for example, specific 12-bit or 16-bit characters can be intercepted. The hash function value can be calculated through hash function, MD5, SHA1, SHA256 and other algorithms. When there are two or more IMEI numbers in the IMEI of the terminal device 400, the first IMEI number can be selected for calculation.
将终端设备400的MAC地址与该终端设备400的IMEI所构成字符的散列函数值作为终端设备400的身份标识,可以避免第三方获得该终端设备400蓝牙的MAC数据,进一步提高物联网设备100的安全性。Using the hash function value of the characters composed of the MAC address of the terminal device 400 and the IMEI of the terminal device 400 as the identity of the terminal device 400 can prevent a third party from obtaining the Bluetooth MAC data of the terminal device 400 and further improve the efficiency of the Internet of Things device 100 security.
可选地,本实施例中,蓝牙连接方法还包括,在与目标设备之间建立的蓝牙连接后,获取目标设备对物联网设备100的偏好信息;根据偏好信息运行。Optionally, in this embodiment, the Bluetooth connection method also includes, after establishing a Bluetooth connection with the target device, obtaining the target device's preference information for the Internet of Things device 100; and operating according to the preference information.
终端设备在操作物联网设备时,物联网设备记录操作内容,同时可以将该内容同步至服务器。服务器根据历史操作信息,可以通过偏好算法计算出个人偏好,建立个人数据库并根据对应用户的操作更新完善该数据库。在终端设备与物联网设备建立连接后,蓝牙物联网设备将终端设备的身份标识发送到服务器获取历史操作信息。When the terminal device operates the Internet of Things device, the Internet of Things device records the operation content and can synchronize the content to the server. Based on historical operation information, the server can calculate personal preferences through preference algorithms, establish a personal database, and update and improve the database according to the corresponding user's operations. After the terminal device establishes a connection with the Internet of Things device, the Bluetooth Internet of Things device sends the identity of the terminal device to the server to obtain historical operation information.
本实施例中,物联网设备100通过保存目标设备的历史操作信息,从而在目标设备再次与物联网设备100建立蓝牙连接后,根据历史操作信息运行,从而可以进一步提高用户体验。In this embodiment, the IoT device 100 saves the historical operation information of the target device, so that after the target device establishes a Bluetooth connection with the IoT device 100 again, it operates based on the historical operation information, thereby further improving the user experience.
请参照图5所示,本申请的实施例还提供一种蓝牙连接装置110,蓝牙连接装置110包括第一获取模块111、第一确定模块112、第二获取模块113、第二确定模块114和校验模块115。蓝牙连接装置110包括一个可以软件或固件的形式存储于存储器120中或固化在物联网设备100的操作系统(Operating System,OS)中的软件功能模块。Referring to FIG. 5 , an embodiment of the present application also provides a Bluetooth connection device 110 . The Bluetooth connection device 110 includes a first acquisition module 111 , a first determination module 112 , a second acquisition module 113 , a second determination module 114 and Verification module 115. The Bluetooth connection device 110 includes a software function module that can be stored in the memory 120 in the form of software or firmware or solidified in the operating system (Operating System, OS) of the Internet of Things device 100 .
第一获取模块111,用于获取预存的授权信息表,授权信息表包括已授权设备的身份标识以及已授权设备的校验信息。The first acquisition module 111 is used to acquire a pre-stored authorization information table. The authorization information table includes the identity of the authorized device and the verification information of the authorized device.
本实施例中的第一获取模用于执行步骤S110,关于第一获取模的具体描述可参照对步骤S110的描述。The first acquisition mode in this embodiment is used to perform step S110. For detailed description of the first acquisition mode, please refer to the description of step S110.
第一确定模块112,用于确定目标设备,目标设备为物联网设备100所在环境中,身份标识与授权信息表中已授权设备的身份标识相同的设备。The first determination module 112 is used to determine the target device. The target device is a device in the environment where the Internet of Things device 100 is located, and the identity identifier is the same as the identity identifier of the authorized device in the authorization information table.
本实施例中的第一确定模块112用于执行步骤S120,关于第一确定模块112的具体描述可参照对步骤S120的描述。The first determination module 112 in this embodiment is used to perform step S120. For detailed description of the first determination module 112, please refer to the description of step S120.
第二获取模块113,用于获取目标设备的验证信息。The second acquisition module 113 is used to acquire verification information of the target device.
本实施例中的第二获取模块113用于执行步骤S130,关于第二获取模块113的具体描述可参照对步骤S130的描述。The second acquisition module 113 in this embodiment is used to perform step S130. For a specific description of the second acquisition module 113, please refer to the description of step S130.
第二确定模块114,用于根据目标设备的身份标识从授权信息表中确定与目标设备对应的校验信息。The second determination module 114 is configured to determine the verification information corresponding to the target device from the authorization information table according to the identity of the target device.
本实施例中的第二确定模块114用于执行步骤S140,关于第二确定模块114的具体描述可参照对步骤S140的描述。The second determination module 114 in this embodiment is used to perform step S140. For detailed description of the second determination module 114, please refer to the description of step S140.
校验模块115,用于根据目标设备的验证信息以及与目标设备对应的校验信息进行连接权限校验;以及在连接权限校验成功时,与目标设备之间建立蓝牙连接。The verification module 115 is configured to perform connection permission verification based on the verification information of the target device and the verification information corresponding to the target device; and when the connection permission verification is successful, establish a Bluetooth connection with the target device.
本实施例中的校验模块115用于执行步骤S150-步骤S160,关于校验模块115的具体描述可参照对步骤S150-步骤S160的描述。The verification module 115 in this embodiment is used to perform steps S150 to S160. For a specific description of the verification module 115, please refer to the description of steps S150 to S160.
虽然本发明披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010827256.5A CN111918263B (en) | 2020-08-17 | 2020-08-17 | Bluetooth connection method and device and Internet of things equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010827256.5A CN111918263B (en) | 2020-08-17 | 2020-08-17 | Bluetooth connection method and device and Internet of things equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111918263A CN111918263A (en) | 2020-11-10 |
| CN111918263B true CN111918263B (en) | 2024-01-23 |
Family
ID=73278150
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010827256.5A Active CN111918263B (en) | 2020-08-17 | 2020-08-17 | Bluetooth connection method and device and Internet of things equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111918263B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114697294B (en) * | 2020-12-28 | 2024-03-12 | 深圳Tcl新技术有限公司 | Distribution network method, device and system and computer readable storage medium |
| CN113950055B (en) * | 2021-10-08 | 2024-08-23 | 亿咖通(湖北)技术有限公司 | Application configuration method, system and mobile terminal |
| CN117318922A (en) * | 2022-06-22 | 2023-12-29 | 华为技术有限公司 | Equipment authorization method and electronic equipment and system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20060057435A (en) * | 2004-11-23 | 2006-05-26 | 삼성전자주식회사 | Authentication system and method of network |
| KR100737526B1 (en) * | 2006-05-09 | 2007-07-10 | 한국전자통신연구원 | Access Control Method in Wireless LAN |
| CN105610821A (en) * | 2015-12-26 | 2016-05-25 | 小米科技有限责任公司 | Security verification method and apparatuses |
| US9729539B1 (en) * | 2014-03-28 | 2017-08-08 | Pulse Secure, Llc | Network access session detection to provide single-sign on (SSO) functionality for a network access control device |
| CN109561085A (en) * | 2018-11-26 | 2019-04-02 | 平安科技(深圳)有限公司 | A kind of auth method based on EIC equipment identification code, server and medium |
| CN109618344A (en) * | 2019-01-25 | 2019-04-12 | 刘美连 | A kind of secure connection method and device of wireless monitoring equipment |
| WO2019120102A1 (en) * | 2017-12-21 | 2019-06-27 | 安克创新科技股份有限公司 | Wireless handheld electronic device, smart electronic device and pairing connection method thereof |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8699962B2 (en) * | 2011-12-15 | 2014-04-15 | Proximetry, Inc. | Systems and methods for preparing a telecommunication network for providing services |
-
2020
- 2020-08-17 CN CN202010827256.5A patent/CN111918263B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20060057435A (en) * | 2004-11-23 | 2006-05-26 | 삼성전자주식회사 | Authentication system and method of network |
| KR100737526B1 (en) * | 2006-05-09 | 2007-07-10 | 한국전자통신연구원 | Access Control Method in Wireless LAN |
| US9729539B1 (en) * | 2014-03-28 | 2017-08-08 | Pulse Secure, Llc | Network access session detection to provide single-sign on (SSO) functionality for a network access control device |
| CN105610821A (en) * | 2015-12-26 | 2016-05-25 | 小米科技有限责任公司 | Security verification method and apparatuses |
| WO2019120102A1 (en) * | 2017-12-21 | 2019-06-27 | 安克创新科技股份有限公司 | Wireless handheld electronic device, smart electronic device and pairing connection method thereof |
| CN109561085A (en) * | 2018-11-26 | 2019-04-02 | 平安科技(深圳)有限公司 | A kind of auth method based on EIC equipment identification code, server and medium |
| CN109618344A (en) * | 2019-01-25 | 2019-04-12 | 刘美连 | A kind of secure connection method and device of wireless monitoring equipment |
Non-Patent Citations (3)
| Title |
|---|
| "S5-066361 E-OSF definition discussion paper".3GPP tsg_sa\WG5_TM.2006,全文. * |
| 无线网络接入中用户身份和位置的双重隐身机制研究;叶阿勇;李晴;金俊林;孟铃玉;;信息网络安全(07);全文 * |
| 物联网智能终端设备识别方法;肖清旺;王锦华;朱易翔;;电信科学(02);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111918263A (en) | 2020-11-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3726804B1 (en) | Device authentication method, service access control method, device, and non-transitory computer-readable recording medium | |
| CN111918263B (en) | Bluetooth connection method and device and Internet of things equipment | |
| CN108737381B (en) | Extension authentication method of Internet of things system | |
| EP4002786B1 (en) | Distributed ledger system | |
| CN107395343A (en) | Certificate management method and system | |
| CN108667780A (en) | Method, system, server and terminal for identity authentication | |
| CN114553592B (en) | Method, equipment and storage medium for equipment identity verification | |
| CN114117551B (en) | Access verification method and device | |
| CN109561429B (en) | Authentication method and device | |
| JP2019036091A (en) | Vehicle security system and vehicle security method | |
| CN106936772A (en) | A kind of access method, the apparatus and system of cloud platform resource | |
| US11792651B2 (en) | Authentication-based communication link with a peripheral device | |
| KR20160121775A (en) | THIRD PARTY'S SECURITY AUTHENTICATION SYSTEM BETWEEN MOBILE DEVICE AND IoT DEVICES AND METHOD THEREOF | |
| CN114760112B (en) | Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium | |
| KR20200101053A (en) | Electronic device and certification method in electronic device | |
| CN115104283A (en) | Electronic device and method for performing peer-to-peer service in electronic device | |
| CN111541649A (en) | Password resetting method, device, server and storage medium | |
| CN115314863A (en) | Bluetooth pairing method and system, vehicle-mounted Bluetooth device and mobile terminal | |
| CN116506427A (en) | Certificate list downloading method and device, vehicle-mounted equipment and storage medium | |
| JP7423856B2 (en) | How to identify electric vehicle charging stations | |
| JP6773401B2 (en) | Peripherals, wireless communication chips, application programs, information processing systems, and information processing methods | |
| KR20170103691A (en) | Authentication mehtod and system using ip address and short message service | |
| CN114585055A (en) | Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal | |
| CN114363067A (en) | Network access control method, device, computer equipment and storage medium | |
| CN106773797A (en) | A kind of information processing method, system and management platform |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: 315191 No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee after: NINGBO AUX ELECTRIC Co.,Ltd. Country or region after: China Patentee after: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. Address before: No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District Patentee before: NINGBO AUX ELECTRIC Co.,Ltd. Country or region before: China Patentee before: AUX AIR CONDITIONING LIMITED BY SHARE Ltd. |
|
| CP03 | Change of name, title or address |