Method, device, equipment and storage medium for automatic association of Internet of Things devices
By receiving device type and functional feature information, the Internet of Things device networking is automatically synchronized, which solves the problem of manual intervention in the networking of smart home devices, realizes automatic correlation of equipment, simplifies the construction process and improves the convenience of use.
Patent Information
- Application Number
- CN202210692309.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-06-17
AI Technical Summary
The networking of smart home equipment requires manual intervention, which is complex and time-consuming, resulting in a high threshold for building IoT devices and inconvenient use.
By receiving device type information sent by quasi-associated devices, querying the target associated device list, confirming location and functional feature information, and automatically synchronizing and correlation of network information, reducing manual intervention, and realizing automatic device association.
Automatic association of smart home devices can be achieved without the participation of smartphones, simplifying the construction process, improving the operability of IoT devices, and reducing network complexity.
Smart Images

Figure CN115314328B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet of Things and smart home, and in particular, to a method, apparatus, device and storage medium for automatic association of Internet of Things devices. Background Art
[0002] The Internet of Things networking method based on Bluetooth (BR / EDR), Bluetooth Low Energy (BLE), Bluetooth Mesh, Zigbee and WIFI is a common technology for smart homes such as smart TVs, smart refrigerators, smart rice cookers, and smart light bulbs. It enables mutual communication between smart homes and can extend the network communication range as an extension of communication. However, smart homes must first be configured using a mobile phone APP, and the mobile phone APP is used as an intermediate bridge for networking. The manual intervention setting operation of smart homes is complicated, time-consuming and labor-intensive. Summary of the invention
[0003] The embodiments of the present invention provide a method, apparatus, device and storage medium for automatically associating IoT devices, so as to solve the technical problem that the manual intervention setting operation of smart home is complicated, time-consuming and labor-intensive.
[0004] In a first aspect, an embodiment of the present invention provides a method for automatically associating IoT devices, including:
[0005] Step 1, receiving device type information sent by a quasi-associated device, and querying a target associated device list according to the device type information to obtain first target associated device characteristic information;
[0006] Step 2: confirming, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement;
[0007] Step 3, sending a request for obtaining characteristic information of a target associated device to the quasi-associated device, so that the quasi-associated device sends the characteristic information of the quasi-associated device;
[0008] Step 4, confirming that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information;
[0009] Step 5, sending a function feature request to the quasi-associated device, so that the quasi-associated device sends function feature information;
[0010] Step 6, receiving the functional characteristic information and creating sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional characteristic information;
[0011] Step 7, synchronizing networking information and associated functional feature information with the quasi-associated device;
[0012] Step 8: Add the sub-associated device information to the associated device list and save it.
[0013] Optionally, before step 1, the method further includes:
[0014] The device association request is sent in a broadcast or polling manner, so that the quasi-associated device sends the device type information.
[0015] Optionally, the step 1 is specifically:
[0016] The device type information sent by the quasi-associated device is received. If it is confirmed according to the device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, a target associated device list is queried according to the device type information to obtain first target associated device characteristic information.
[0017] Optionally, after step 4, the method further includes:
[0018] Step 41: confirm that the number of devices of the same type in the associated device list reaches a preset threshold according to the characteristic information of the first target associated device, cancel the sub-associated device network corresponding to a device of the same type in the associated device list according to a preset deletion rule, and delete the sub-associated device information corresponding to the sub-associated device.
[0019] Optionally, at least one type of preset supported device information is recorded in the target associated device list, and the supported device information at least includes supported device type and location information.
[0020] Optionally, the supported device information also includes the maximum supported quantity, supported physical characteristics and supported functional characteristics.
[0021] Optionally, the supported functional features include at least one device function.
[0022] Optionally, the associated device list is stored in a storage medium and is read into a memory when the device is started.
[0023] Optionally, also include:
[0024] Step 9: receiving an access request and / or an editing instruction sent by the terminal device, sending the associated device list in response to the access request, and updating the associated device list in response to the editing instruction.
[0025] In a second aspect, an embodiment of the present invention provides a device for automatically associating IoT devices, including:
[0026] An information query unit, configured to receive device type information sent by a quasi-associated device, and query a target associated device list according to the device type information to obtain first target associated device feature information;
[0027] A distance confirmation unit, configured to confirm, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement;
[0028] An information request unit, configured to send a request to the quasi-associated device to obtain characteristic information of a target associated device, so that the quasi-associated device sends the characteristic information of the quasi-associated device;
[0029] An information confirmation unit, used to confirm that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information;
[0030] A feature request unit, configured to send a feature request to the quasi-associated device, so that the quasi-associated device sends feature information;
[0031] An information creation unit, configured to receive the functional characteristic information and create sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional characteristic information;
[0032] An information synchronization unit, used to synchronize networking information and associated functional feature information with the quasi-associated device;
[0033] The information storage unit is used to add the sub-associated device information to the associated device list and save it.
[0034] Optionally, also include:
[0035] The association request sending unit is used to send a device association request by broadcasting or polling, so that the quasi-associated device sends device type information.
[0036] Optionally, the information query unit is specifically configured to receive device type information sent by a quasi-associated device, and if it is confirmed according to a device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, query a target associated device list according to the device type information to obtain first target associated device feature information.
[0037] Optionally, the device for automatically associating the IoT devices further includes:
[0038] The information deleting unit is used to confirm that the number of the same type of devices in the associated device list reaches a preset threshold according to the first target associated device characteristic information, and delete the sub-associated device information corresponding to a same type of device in the associated device list according to a preset deletion rule.
[0039] Optionally, at least one type of preset supported device information is recorded in the target associated device list, and the supported device information at least includes supported device type and location information.
[0040] Optionally, the supported device information also includes the maximum supported quantity, supported physical characteristics and supported functional characteristics.
[0041] Optionally, the supported functional features include at least one device function.
[0042] Optionally, the associated device list is stored in a storage medium and is read into a memory when the device is started.
[0043] Optionally, the device for automatically associating the IoT devices further includes:
[0044] The remote updating unit is used to receive an access request and / or an editing instruction sent by a terminal device, send the associated device list in response to the access request, and update the associated device list in response to the editing instruction.
[0045] Optionally, the device for automatically associating the IoT devices further includes:
[0046] The associated execution unit is used to execute the corresponding operation instruction according to the preset associated function instruction and the corresponding function feature information as the trigger basis, and send the operation instruction to the associated Internet of Things device.
[0047] In a third aspect, the present invention provides a device with an Internet of Things automatic association function, the device comprising:
[0048] one or more processors;
[0049] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement any of the above-mentioned methods for automatic association of Internet of Things devices.
[0050] In a fourth aspect, the present invention provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a method for automatic association of Internet of Things devices as described in any one of the above.
[0051] In this solution, the IoT devices automatically associate with each other through the method of automatic association, eliminating the trouble of manual mobile phone operation and configuration. This solution solves the trouble of IoT devices needing mobile phone access for networking in the prior art, greatly improves the operability of IoT devices, and simplifies their construction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a flow chart of a method for automatic association of the Internet of Things provided by an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of the initial state of a method for automatic association of the Internet of Things provided by an embodiment of the present invention;
[0054] Figure 3 for Figure 2 Schematic diagram of association after configuration using existing Bluetooth Mesh networking technology;
[0055] Figure 4 A schematic diagram of an association method for automatic association of the Internet of Things provided by an embodiment of the present invention;
[0056] Figure 5 A structural block diagram of an Internet of Things automatic association device provided by an embodiment of the present invention;
[0057] Figure 6 A schematic diagram of the structure of a device with an Internet of Things automatic association function provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.
[0059] The method for automatically associating IoT devices mentioned in this solution is applied to smart home devices. Figure 2 The multiple IoT devices shown display and describe the implementation process of the method for automatically associating IoT devices.
[0060] Figure 2 A schematic diagram of the initial state of a method for automatic association of the Internet of Things provided by an embodiment of the present invention, such as Figure 2As shown, there are two smart chandeliers each with three smart bulbs, wherein the smart chandeliers C1207 are equipped with smart bulbs A1201, smart bulbs A2202 and smart bulbs A3203, and the smart chandeliers C2209 are equipped with smart bulbs B1204, smart bulbs B2205 and smart bulbs B3206, and the human body sensing device D208 is used as a human presence detection device to control the on and off of the smart chandeliers C1207 and C2209, and the smart phone E210 is a networking control device. When powered on, each device can detect the presence of the other through Bluetooth, and can be networked through Bluetooth Mesh, but due to the lack of networking rules, each device only exists in the same space in physical form, and each has not established a communication connection relationship, and the devices cannot work together.
[0061] According to the existing technical solutions, the configuration task can only be started by using the smart phone E210 as a provisioner. First, a network key, address and device key are provided to the new device, so that private communication can be carried out between the provisioner and the provisionee. Then the name of the new device is changed so that the user can identify the specific device. Then the networking rules of the new device are edited so that the new device can cooperate with other devices according to the networking rules. Since manual configuration is required in the early stage and certain computer and smart home related knowledge is required, the entry threshold of smart home technology is relatively high and it is more troublesome to use.
[0062] Figure 3 for Figure 2 The following is a schematic diagram of the association after using the existing Bluetooth Mesh networking technology configuration: Figure 3 As shown, all device nodes are grouped into the smart phone E310, while the smart chandeliers C1307 and C2309 have no lighting effect, so they can only be used as invisible functions such as relays or proxies in this network. By setting the APP of the smart phone E310, the APP of the smart phone E310 constantly queries whether the human body sensing device D308 detects the presence of a human body. Once the presence of a human body is detected, the smart phone E310 controls the smart bulbs A1301, A2302, A3303, B1304, B2305 and B3306 to light up, thereby achieving the effect of a smart home where "lights are on when someone is present". However, it is not difficult to find that all device nodes are grouped into the smart phone E310. Once the smart phone E310 fails, the entire smart home network will not be able to work together.
[0063] Since the Internet of Things networking technology is very large and complex, and there are many related professional terms and expertise, in order to facilitate the understanding of this application, this application will hide the publicly known contents such as transmission instructions, network transmission, network layer structure, security, address management, etc.
[0064] For example, the following combination Figure 1 and Figure 4 The following describes the automatic association between an endpoint (Master Note) device and a slave (Slaver Note) device.
[0065] Figure 1 A flowchart of a method for automatic association of the Internet of Things provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, specifically including:
[0066] Step 1: receiving device type information sent by a quasi-associated device, and querying a target associated device list according to the device type information to obtain first target associated device characteristic information.
[0067] Before executing this solution or before the device leaves the factory, the device corresponding to the endpoint needs to record the supported device information in the device preset configuration list, including device type, node type, target associated device feature information, work and default coordination work settings, etc., for various processing in the subsequent automatic networking process.
[0068] Figure 4 A schematic diagram of an automatic association method for an Internet of Things provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, Figure 4The device type of the smart chandelier C1407 and the smart chandelier C2409 is a smart lamp, and the node type is an endpoint (Master Note). There are three target-related device characteristic information, including: 1) The target-related device type is a smart bulb, the node type is a slave point (Slaver Note), the supported quantity is 3, the maximum distance is 500mm, the interface type is a screw mouth, the interface size is E27, the minimum power is 2W, the maximum power is 12W, the minimum diameter is 40mm, the maximum diameter is 100mm, and the group is 0x01; 2) The target-related device type is human body sensing, the node type is a contact point (Sensor Note), the supported quantity is 1, the maximum distance is 2000mm, the sensing function is human presence sensing, the minimum sensing distance is 3000mm, and the group is 0x01; 3) The target-related device type is a smart lamp, the maximum supported quantity is 8, the maximum distance is 10000mm, and the group is 0x01. The target-associated device feature information described in the above exemplary embodiment is described based on the specific physical characteristics of the device. The specific physical characteristics of different devices are different, so the target-associated device feature information of various devices is different. These maximum supported quantities, supported physical characteristics, and supported functional characteristics are all saved as supported device information. As an IoT device that can independently realize a specific function, the supported functional characteristics include at least one device function, such as the function of turning on a smart light.
[0069] Figure 4 The device types of smart bulbs A1401, A2402, A3403, B1404, B2405 and B3406 are smart bulbs, the node type is slave point, the device characteristic information is the interface type is screw port, the interface size is E27, the power is 9W, the shape is spherical, and the diameter is 80mm; there are 3 target-related device characteristic information, including: 1) The target-related device type is smart lamp, the node type is endpoint, and its maximum supported number is The maximum distance is 1, the maximum distance is 1500mm, and the group is 0x01; 2) The target associated device type is a smart bulb, the node type is a slave point, the supported quantity is 8, the maximum distance is 100mm, the interface type is a screw mouth, the interface size is E27, and the group is 0x02; 3) The target associated device type is human presence sensing, the node type is a contact, the supported quantity is 1, the maximum distance is 2000mm, the sensing function is human presence sensing, the minimum sensing distance is 3000mm, and the group is 0x02.
[0070] Figure 4The device type of the human body sensing device D408 is a human body sensing device. The device characteristic information includes: the node type is a contact, the supported quantity is 1, the maximum distance is 3000mm, the sensing function is human presence sensing, the application technology is radar, the minimum sensing distance is 4000mm, and there are 2 target-associated device characteristic information, including: 1) The target-associated device type is [all devices], the node type is endpoint, the maximum supported quantity is 1000, and the group is 0x01; 2) The target-associated device type is [all devices], the node type is slave point, the maximum supported quantity is 1000, and the group is 0x01.
[0071] When the device enters the automatic association mode, it broadcasts the device association request; of course, the device association request can also be sent in a polling manner, which is mainly used to update the connection status of existing devices. The device association request is used to instruct the quasi-associated device to send device type information. That is, after receiving the device association request, the quasi-associated device queries its device type information from the preset configuration list of the quasi-device and returns the information.
[0072] Figure 4 When the smart chandelier C1407 enters the automatic association mode, it broadcasts the device association request; after the quasi-associated device smart bulb A1401 receives the device association request of the smart chandelier C1407, it queries its device type information as "smart bulb" from the preset configuration list of the quasi-device smart bulb A1401 and returns the information to the smart chandelier C1407.
[0073] The smart chandelier C1407 receives the device type information "smart light bulb" sent by the quasi-associated device smart light bulb A1401, and queries the target associated device list according to the device type information to obtain the first target associated device characteristic information of the smart light bulb.
[0074] It should also be noted that in step 1, if it can be confirmed that the currently received quasi-associated device has been associated, no subsequent processing is required, that is, the device type information sent by the quasi-associated device is received. If it is confirmed based on the device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, the target associated device list is queried based on the device type information to obtain the first target associated device feature information, thereby reducing repeated associations with IoT devices.
[0075] Step 2: confirming, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement.
[0076] According to step 2, the smart chandelier C1407 learns that the maximum distance it is set to is 500mm based on the location information of the first target associated device characteristic information of the smart bulb. If the distance between the smart bulb A1401 and the smart chandelier C1407 is less than or equal to 500mm, it meets the setting requirements and executes the next step; otherwise, the smart chandelier C1407 receives the information of the next quasi-associated device, the smart bulb A2402, and returns to step 1.
[0077] Step 3: sending a request for obtaining characteristic information of a target associated device to the quasi-associated device, so that the quasi-associated device sends characteristic information of the quasi-associated device.
[0078] According to step 3, the smart chandelier C1407 sends a request to the quasi-associated device smart bulb A1401 to obtain the characteristic information of the target associated device.
[0079] Step 4: confirm that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information.
[0080] The smart chandelier C1407 and the smart chandelier C2409 can actually accommodate 3 smart bulbs each, so the first target associated device feature information presets the number of smart bulbs supported to be 3; in fact, the distance between the Bluetooth chip of each bulb of the smart chandelier and the Bluetooth chip of the smart chandelier is 40cm, including the tolerance design, so the maximum distance is set to 500mm; the bulb interface all uses screw-on E27, so the bulb interface type is set to screw-on and the interface size is E27; because the bulbs with the same E27 interface have different sizes and powers, in order to be compatible For other bulbs, the minimum power is set to 2W, the maximum power is set to 12W, the minimum diameter is set to 40mm, and the maximum diameter is set to 100mm; in order to identify compatible groups, the group is set to 0x01. In this embodiment, the group number and other group numbers can be ANDed. If the result is not 0, the two functions can be used at the same time. Otherwise, the two functions are mutually exclusive and only one of them can be used at the same time. This group implements one of the specific methods for distinguishing whether a function is used. Other implementation methods will not be described in detail and all belong to the protection scope of this application.
[0081] The interface of the smart bulb A1401 is screw-type E27, so the bulb interface type is set to screw-type and the interface size is set to E27; its actual power is 9W, so the power is set to 9W; its shape is spherical and the actual diameter is 80mm; one of the target-related device feature information is a smart lamp, and as a slave device of the smart lamp, its maximum number of supported devices is 1, so the maximum number of supported devices is set to 1; since lamps come in different styles and sizes, the largest chandelier has a diameter of several meters, so the farthest distance is 1500mm and the maximum diameter is 3 meters; in order to identify the compatible group, the group is set to 0x01.
[0082] The smart chandelier C1407 determines whether the device characteristic information sent by the quasi-associated device is consistent with the first target-associated device characteristic information, wherein the interface type of the smart bulb A1401 is screw-type, and the interface size is E27, which is consistent with the interface type and size of the smart chandelier C1407; the actual power of the smart bulb A1401 is 9W, which is between the minimum power of 2W and the maximum power of 12W of the smart chandelier C1407; the actual diameter of the smart bulb A1401 is 80mm, which is between the minimum diameter of 40mm and the maximum diameter of 100mm of the smart chandelier C1407, so it matches the first target-associated device characteristic information and proceeds to the next step; otherwise, if it does not match any of the first target-associated device characteristic information, it receives the next quasi-associated device information and returns to step 1.
[0083] In addition, the smart chandelier C1407 will determine whether the number of smart bulbs supported by the preset number of smart bulbs in the characteristic information of the first target associated device has been exceeded. If the number of smart bulbs supported by the preset number of smart bulbs has not been exceeded, the next step will be executed; otherwise, the device characteristic information of the smart bulb A1401 will be compared with the device characteristic information of other networked smart bulbs, and the smart bulbs with large differences will be excluded. When the smart bulb with large differences is other bulbs, the smart chandelier C1407 cancels the networking with the bulb, deletes its sub-associated device information, and executes the next step; when the smart bulb with large differences is the smart bulb A1401, the next quasi-associated device information is received and returns to step 1. That is, according to the characteristic information of the first target associated device, it is confirmed that the number of devices of the same type in the associated device list has reached the preset threshold, and according to the preset deletion rule, the sub-associated device networking corresponding to a device of the same type in the associated device list is canceled, and the sub-associated device information corresponding to the sub-associated device is deleted.
[0084] Step 5: Send a function feature request to the quasi-associated device, so that the quasi-associated device sends function feature information.
[0085] The smart chandelier C1407 sends a function feature request to the quasi-associated device smart bulb A1401.
[0086] Step 6: Receive the functional feature information and create sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional feature information.
[0087] The smart chandelier C1407 creates sub-associated device information corresponding to the quasi-associated device smart bulb A1401, and receives various functional characteristics of the quasi-associated device smart bulb A1401, which are equivalent to elements in the Bluetooth Mesh network.
[0088] Step 7: Synchronize networking information and associated functional feature information with the quasi-associated device.
[0089] The smart chandelier C1407 establishes an association operation with the quasi-associated device smart bulb A1401, including determining the network address, group address, communication key, etc.
[0090] The smart chandelier C1407 executes the corresponding operation instruction according to the preset associated function instruction and the corresponding functional feature information as the trigger basis, and sends the operation instruction to the associated IoT device to realize the function of automatic associated operation. For example, Generic On and Generic Off are functional feature information supported by all Bluetooth Mesh networking devices. The generic on of the smart chandelier C1407 is associated with the generic on of the associated device smart bulb A1401, and the generic off of the smart chandelier C1407 is associated with the generic off of the associated device smart bulb A1401, so that when the smart chandelier C1407 receives the closing instruction, the closing instruction is synchronized to the smart chandelier C1407, and the smart chandelier C1407 executes the closing instruction, thereby completing the execution of the generic closing instruction; similarly, when the smart chandelier C1407 receives the opening instruction, the opening instruction is synchronized to the smart chandelier C1407, and the smart chandelier C1407 executes the opening instruction, thereby completing the execution of the generic opening instruction. This universal switch function is the associated functional characteristic information.
[0091] Step 8: Add the sub-associated device information to the associated device list and save it.
[0092] Smart chandelier C1407 adds the sub-associated device information of smart bulb A1401 to the associated device list of smart chandelier C1407, and saves it in the storage module of smart chandelier C1407; similarly, smart bulb A1401 also adds the sub-associated device information of smart chandelier C1407 to the associated device list of smart bulb A1401, and saves it in the storage module of smart bulb A1401. In addition, the saved information also includes the network address, group address, communication key and other information generated in step 7. For the device, the associated device list is stored in the storage medium and read into the memory when the device is started. Moreover, the Internet of Things device can receive the access request and / or editing instruction sent by the terminal device, send the associated device list in response to the access request, and update the associated device list in response to the editing instruction, that is, further realize the user's customized association.
[0093] Among them, steps 2 to 8 are only descriptions of the overall implementation process of this solution. The step numbering is only for the convenience of description and does not mean that the steps must be executed strictly in the order of the numbers. The implementation order in a specific association process can be changed according to actual product requirements and all fall within the scope of this application.
[0094] After the smart chandelier C1407 processes the association of the smart bulb A1401, it receives the device type information of the next quasi-associated device, the smart bulb A2402, and executes step 1 until all accessible quasi-associated devices have been visited.
[0095] Through the above method, without the participation of the smart phone E410, the smart chandelier C1407 and the smart bulb A1401, the smart bulb A2402 and the smart bulb A3403 can be automatically associated, and the smart chandelier C2409 and the smart bulb B1401, the smart bulb B2402 and the smart bulb B3403 can be automatically associated and work together autonomously. On the one hand, the topological structure of the Internet of Things is more ideal, and on the other hand, the Internet of Things interconnection mode is more flexible and convenient.
[0096] Smartphone E410 is a configuration node (Configuration Note). When smartphone E410 starts configuration, it does not need to traverse all devices one by one. It only needs to start configuring smart chandeliers C1407 and C2409. Smart chandeliers C1407 and C2409 will send all associated devices and related network addresses, group addresses, communication keys and other information to smartphone E410. On the one hand, it can achieve extremely fast startup configuration. On the other hand, the APP of smartphone E410 automatically draws out the subordinate relationship and naming rules between the devices based on the relationship between them, making it easier and more convenient for users to operate.
[0097] Users can use the smartphone E410 to adjust the association status between devices according to actual conditions, rename device nicknames, add, delete, modify and other operations, and set association status tasks, making the entire system more flexible and compatible.
[0098] For example, the following is combined with Figure 1 and Figure 4 The following describes the automatic association between an endpoint (Master Note) device and a contact (Sensor Note) device.
[0099] Step 1: receiving device type information sent by a quasi-associated device, and querying a target associated device list according to the device type information to obtain first target associated device characteristic information.
[0100] Before executing this solution, the device corresponding to the endpoint needs to record the supported device information in the device preset configuration list, including device type, node type, target associated device feature information, work and default coordination work settings, etc., for various processing in the subsequent automatic networking process.
[0101] Figure 4 The device type of the human body sensing device D408 is a human body sensing device. The device characteristic information includes: the node type is a contact, the supported quantity is 1, the maximum distance is 3000mm, the sensing function is human presence sensing, the application technology is radar, the minimum sensing distance is 4000mm, and there are 2 target-associated device characteristic information, including: 1) The target-associated device type is [all devices], the node type is endpoint, the maximum supported quantity is 1000, and the group is 0x01; 2) The target-associated device type is [all devices], the node type is slave point, the maximum supported quantity is 1000, and the group is 0x01.
[0102] When the device enters the automatic association mode, it broadcasts the device association request;
[0103] After receiving the device association request, the quasi-associated device queries its device type information from the preset configuration list of the quasi-device and returns the information.
[0104] Figure 4When the smart chandelier C1407 in the system enters the automatic association mode, it broadcasts the device association request; after the quasi-associated device human body sensing device D408 receives the device association request of the smart chandelier C1407, it queries the device type information of the quasi-associated device human body sensing device D408 from the preset configuration list to find that the device type information is a human body sensing device, and returns the information to the smart chandelier C1407; the smart chandelier C1407 receives the device type information sent by the quasi-associated device human body sensing device D408 as a human body sensing device, and queries the target associated device list according to the device type information to obtain the first target associated device feature information of the human body sensing device. This is equivalent to recording at least one preset supported device information in the target associated device list, and the supported device information at least includes supported device type and location information, and the initial matching of the quasi-associated device is performed through the supported device type and location information.
[0105] Step 2: confirming, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement.
[0106] According to step 2, the smart chandelier C1407 learns that the maximum distance it is set to is 2000mm based on the location information of the first target associated device characteristic information of the human body sensing device. If the distance between the human body sensing device D408 and the smart chandelier C1407 is less than or equal to 2000mm, it meets the setting requirements and the next step is executed; otherwise, the smart chandelier C1407 receives the information of the next quasi-associated device and returns to step 1.
[0107] Step 3: sending a request for obtaining characteristic information of a target associated device to the quasi-associated device, so that the quasi-associated device sends characteristic information of the quasi-associated device.
[0108] According to step 3, the smart chandelier C1407 sends a request to the quasi-associated device human body sensing device D408 to obtain characteristic information of the target associated device.
[0109] Step 4: confirm that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information.
[0110] The smart chandelier C1407 can actually accommodate one human body sensing device each, so the first target associated device characteristic information presets the number of human body sensing devices supported as 1; in fact, the distance between the smart chandelier and the human body sensing device is less than 200cm, so the maximum distance is set to 2000mm; in order to prevent the smart chandelier C1407 from suddenly turning off, the human presence sensing with higher requirements for human body sensing is set, and considering that the actual effective illumination range of the light of this lamp is 3 meters, the preset minimum effective range is 3000mm; because the human body sensing device can exist at the same time as the smart light bulb, the group is set to 0x01.
[0111] Figure 4 The device type of the human body sensing device D408 is a human body sensing device. The device characteristic information includes: the node type is a contact, the supported quantity is 1, the maximum distance is 3000mm, the sensing function is human presence sensing, the application technology is radar, the minimum sensing distance is 4000mm, and there are 2 target-associated device characteristic information, including: 1) The target-associated device type is [all devices], the node type is endpoint, the maximum supported quantity is 1000, and the group is 0x01; 2) The target-associated device type is [all devices], the node type is slave point, the maximum supported quantity is 1000, and the group is 0x01.
[0112] Figure 4 The device type of the human body sensing device D408 is a human body sensing device. Since the device is a touch-type device, it has the characteristics of being able to link with both endpoints and slaves. Therefore, the device characteristic information includes: the node type is contact, the supported quantity is 1, the maximum distance is 2000mm, the sensing function is human presence sensing, the application technology is radar, the minimum sensing distance is 3000mm, and the group is 0x01.
[0113] The smart chandelier C1407 determines whether the device characteristic information sent by the quasi-associated device is consistent with the first target-associated device characteristic information, among which the smart bulb group is 0x01, and the human body sensing device is also 0x01, and the AND operation between the two is still not equal to 0. It can be seen that the smart bulb function and the human body sensing device function can exist at the same time; the farthest distance of the human body sensing device D408 is 3000mm, and the maximum preset distance of the human body sensing device of the smart chandelier C1407 is 2000mm, which meets the set requirements; the minimum sensing distance of the human body sensing device D408 is 4000mm, and the minimum sensing distance of the smart chandelier C1407 is 3000mm, which meets the set requirements, so it matches the first target-associated device characteristic information and proceeds to the next step; otherwise, if it does not match any of the first target-associated device characteristic information, it receives the next quasi-associated device information and returns to step 1.
[0114] In addition, the smart chandelier C1407 will determine whether the number of human body sensing devices supported by the preset human body sensing device characteristic information of the first target associated device has been exceeded. If it has not exceeded the preset number of smart light bulbs supported, the next step will be executed; otherwise, the device characteristic information of the human body sensing device D408 will be compared with the device characteristic information of other networked human body sensing devices, and human body sensing devices with large differences will be excluded. When the human body sensing device with large differences is other light bulbs, the smart chandelier C1407 cancels the networking with the human body sensing device, deletes the sub-associated device information of the human body sensing device, and executes the next step; when the human body sensing device with large differences is the human body sensing device D408, the next quasi-associated device information will be received and the step 1 will be returned.
[0115] Step 5: Send a function feature request to the quasi-associated device, so that the quasi-associated device sends function feature information.
[0116] The intelligent chandelier C1407 sends a function feature request to the quasi-associated device human body sensing device D408.
[0117] Step 6: Receive the functional feature information and create sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional feature information.
[0118] The smart chandelier C1407 creates sub-associated device information corresponding to the quasi-associated device human body sensing device D408, and receives various functional characteristics of the quasi-associated device human body sensing device D408, which are equivalent to elements in the Bluetooth Mesh network.
[0119] Step 7: Synchronize networking information and associated functional feature information with the quasi-associated device.
[0120] The smart chandelier C1407 establishes an association operation with the quasi-associated device human body sensing device D408, including determining the network address, group address, communication key, etc.
[0121] As for the specific execution process, the smart chandelier C1407 executes the corresponding operation instructions according to the preset associated function instructions and the corresponding functional feature information as the trigger basis, and sends the operation instructions to the associated Internet of Things devices to realize the function of automatic associated operation. The presence of people and the absence of people are the functional feature information supported by the human body sensing device D408. The universal on of the smart chandelier C1407 is associated with the presence of people of the associated device human body sensing device D408, and the universal off of the smart chandelier C1407 is associated with the absence of people of the associated device human body sensing device D408. When the smart chandelier C1407 receives the absence of people from the human body sensing device D408, it executes the instruction to turn off the lights, and synchronizes the shutdown instruction to the smart bulbs A1401, A2402 and A3403, and makes the smart bulbs A1401, A2402 and A3403 turn on and off. 2402 and smart bulb A3403 execute the closing instruction, thereby completing the execution of the general closing instruction; similarly, when the smart chandelier C1407 receives the presence status of a person from the human body sensing device D408, it executes the opening instruction, and synchronizes the opening instruction to the smart bulb A1401, smart bulb A2402 and smart bulb A3403, and makes the smart bulb A1401, smart bulb A2402 and smart bulb A3403 execute the opening instruction, thereby completing the execution of the general closing instruction.
[0122] Step 8: Add the sub-associated device information to the associated device list and save it.
[0123] The smart chandelier C1407 adds the sub-associated device information of the human body sensing device D408 to the associated device list of the smart chandelier C1407 and saves it in the storage module of the smart chandelier C1407; similarly, the human body sensing device D408 also adds the sub-associated device information of the smart chandelier C1407 to the associated device list of the human body sensing device D408 and saves it in the storage module of the human body sensing device D408. In addition, the saved information also includes the network address, group address, communication key and other information generated in step 7.
[0124] Among them, the order of steps 2 to 8 can be changed according to actual product requirements, all of which fall within the scope of this application.
[0125] After the smart chandelier C1407 processes the association with the human body sensing device D408, it receives the device type information of the next quasi-associated device and executes step 1 until all accessible quasi-associated devices have been visited.
[0126] Through the above method, without the participation of the smart phone E410, the human body sensing device D408 can automatically establish associations with the smart chandelier C1407 and the smart chandelier C2409, and the smart chandelier C1407 can control the smart bulbs A1401, A2402 and A3403, and the smart chandelier C2409 can control the smart bulbs B1404, B2405 and B3406, so as to establish an ecologically meaningful smart home network. On the one hand, the topological structure of the Internet of Things is more ideal, and on the other hand, the Internet of Things interconnection method is more flexible and convenient.
[0127] Smartphone E410 is a configuration node. When smartphone E410 starts configuration, it does not need to traverse all devices one by one. It only needs to start configuring smart chandeliers C1407 and C2409. Smart chandeliers C1407, C2409 and human body sensing device D408 will send all associated devices and related network addresses, group addresses, communication keys and other information to smartphone E410. On the one hand, it can achieve extremely fast startup configuration. On the other hand, the APP of smartphone E410 automatically draws out the subordinate relationship and naming rules between the devices according to the relationship between them, making it easier and more convenient for users to operate.
[0128] Users can use the smartphone E410 to adjust the association status between devices according to actual conditions, rename device nicknames, add, delete, modify and other operations, and set association status tasks, making the entire system more flexible and compatible.
[0129] It is also possible to realize the automatic networking of endpoints and endpoints or automatic networking of slaves and slaves according to the actual product form, which will not be repeated here.
[0130] Figure 5 A structural block diagram of a device for automatically associating IoT devices provided by an embodiment of the present invention is shown in the figure. The device includes:
[0131] The information query unit 510 is used to receive the device type information sent by the quasi-associated device, and query the target associated device list according to the device type information to obtain the first target associated device characteristic information;
[0132] A distance confirmation unit 520 is used to confirm that the location of the quasi-associated device meets a preset distance requirement according to the location information of the characteristic information of the first target associated device;
[0133] An information request unit 530 is used to send a request to obtain characteristic information of a target associated device to the quasi-associated device, so that the quasi-associated device sends the characteristic information of the quasi-associated device;
[0134] An information confirmation unit 540 is used to confirm that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information;
[0135] The feature request unit 550 is used to send a feature request to the quasi-associated device so that the quasi-associated device sends feature information;
[0136] An information creation unit 560 is used to receive the functional feature information and create sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional feature information;
[0137] An information synchronization unit 570, configured to synchronize networking information and associated functional feature information with the quasi-associated device;
[0138] The information storage unit 580 is used to add the sub-associated device information to the associated device list and save it.
[0139] Based on the above embodiment, it also includes:
[0140] The association request sending unit is used to send a device association request by broadcasting or polling, so that the quasi-associated device sends device type information.
[0141] Based on the above embodiment, the information query unit 510 is specifically used to receive device type information sent by a quasi-associated device, and if it is confirmed according to the device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, query the target associated device list according to the device type information to obtain the first target associated device feature information.
[0142] Based on the above embodiment, the device for automatically associating IoT devices further includes:
[0143] The information deleting unit is used to confirm that the number of the same type of devices in the associated device list reaches a preset threshold according to the first target associated device characteristic information, and delete the sub-associated device information corresponding to a same type of device in the associated device list according to a preset deletion rule.
[0144] Based on the above embodiment, the target associated device list records at least one type of preset supported device information, and the supported device information at least includes supported device type and location information.
[0145] Based on the above embodiment, the supported device information also includes the maximum supported quantity, supported physical characteristics and supported functional characteristics.
[0146] Based on the above embodiment, the supported functional features include at least one device function.
[0147] Based on the above embodiment, the associated device list is stored in a storage medium and read into the memory when the device is started.
[0148] Based on the above embodiment, the device for automatically associating IoT devices further includes:
[0149] The remote updating unit is used to receive an access request and / or an editing instruction sent by a terminal device, send the associated device list in response to the access request, and update the associated device list in response to the editing instruction.
[0150] On the basis of the above-mentioned embodiment, the device for automatically associating the Internet of Things devices further includes: an association execution unit 590, which is used to execute corresponding operation instructions according to preset association function instructions and corresponding functional feature information as a trigger basis, and send the operation instructions to the associated Internet of Things devices.
[0151] The apparatus for automatic association of Internet of Things devices provided in an embodiment of the present invention is included in an electronic device and can be used to execute the corresponding method for automatic association of Internet of Things devices provided in the above embodiment, and has corresponding functions and beneficial effects.
[0152] It is worth noting that in the embodiment of the above-mentioned device for automatic association of IoT devices, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. Figure 6 The present invention provides a schematic diagram of a device with an automatic association function for the Internet of Things. Figure 6 As shown, the device includes a processor 610 and a memory 620, and may also include an input device 630, an output device 640, and a communication device 650; the number of processors 610 in the electronic device may be one or more, Figure 6 A processor 610 is taken as an example; the processor 610, the memory 620, the input device 630, the output device 640 and the communication device 650 in the electronic device can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0153] The memory 620, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for automatic association of IoT devices in the embodiment of the present invention. The processor 610 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 620, that is, realizes the above-mentioned method for automatic association of IoT devices.
[0154] The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 620 may further include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0155] The input device 630 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 640 may include a display device such as a display screen.
[0156] The above-mentioned electronic device includes a device for automatic association of Internet of Things devices, which can be used to execute a method for automatic association of any Internet of Things device and has corresponding functions and beneficial effects.
[0157] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the method for automatic association of Internet of Things devices provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
[0158] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the embodiments of the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, service, or network device, etc.) to execute the methods described in each embodiment of the embodiments of the present invention.
[0159] It is worth noting that in the above-mentioned embodiment of the device based on automatic association of Internet of Things devices, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0160] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
[0161] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims
1. A method for automatically associating IoT devices, characterized in that: include: Step 1, receiving device type information sent by a quasi-associated device, and querying a target associated device list according to the device type information to obtain first target associated device characteristic information; The step 1 is specifically: receiving device type information sent by the quasi-associated device, and if it is confirmed according to the device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, querying the target associated device list according to the device type information to obtain first target associated device feature information; Step 2: confirming, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement; Step 3, sending a request for obtaining characteristic information of a target associated device to the quasi-associated device, so that the quasi-associated device sends the characteristic information of the quasi-associated device; Step 4, confirming that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information; Step 41, confirming that the number of devices of the same type in the associated device list reaches a preset threshold according to the characteristic information of the first target associated device, canceling a sub-associated device network corresponding to a device of the same type in the associated device list according to a preset deletion rule, and deleting the sub-associated device information corresponding to the sub-associated device; Step 5, sending a function feature request to the quasi-associated device, so that the quasi-associated device sends function feature information; Step 6, receiving the functional characteristic information and creating sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional characteristic information; Step 7, synchronizing networking information and associated functional feature information with the quasi-associated device; Step 8, adding the sub-associated device information to the associated device list and saving; Step 9: According to the preset associated function instructions, the corresponding operation instructions are executed according to the corresponding functional feature information as the trigger basis, and the operation instructions are sent to the associated Internet of Things devices.
2. The method for automatically associating IoT devices according to claim 1, characterized in that: Before step 1, the method further includes: The device association request is sent in a broadcast or polling manner, so that the quasi-associated device sends the device type information.
3. The method for automatically associating IoT devices according to claim 1, characterized in that: The target associated device list records at least one type of preset supported device information, and the supported device information at least includes supported device type and location information.
4. The method for automatically associating IoT devices according to claim 3, characterized in that: The supported device information also includes the maximum supported quantity, supported physical characteristics and supported functional characteristics.
5. The method for automatically associating IoT devices according to claim 4, characterized in that: The supported functional characteristics include at least one device function.
6. The method for automatically associating IoT devices according to claim 1, characterized in that: The associated device list is stored in a storage medium and is read into a memory when the device is started.
7. The method for automatically associating IoT devices according to claim 1, characterized in that: Also includes: Step 10: receiving an access request and / or an editing instruction sent by a terminal device, sending the associated device list in response to the access request, and updating the associated device list in response to the editing instruction.
8. A device for automatically associating IoT devices, characterized in that: include: An information query unit, configured to receive device type information sent by a quasi-associated device, and query a target associated device list according to the device type information to obtain first target associated device feature information; The information query unit is specifically configured to receive device type information sent by a quasi-associated device, and if it is confirmed according to the device identifier of the quasi-associated device that the quasi-associated device does not exist in the associated device list, query the target associated device list according to the device type information to obtain the first target associated device feature information; A distance confirmation unit, configured to confirm, based on the location information of the characteristic information of the first target associated device, that the location of the quasi-associated device meets a preset distance requirement; An information request unit, configured to send a request to the quasi-associated device to obtain characteristic information of a target associated device, so that the quasi-associated device sends the characteristic information of the quasi-associated device; An information confirmation unit, used to confirm that the received quasi-associated device characteristic information is consistent with the corresponding first target associated device characteristic information; an information deleting unit, configured to confirm, based on the characteristic information of the first target associated device, that the number of devices of the same type in the associated device list reaches a preset threshold, and delete, based on a preset deletion rule, sub-associated device information corresponding to a device of the same type in the associated device list; A feature request unit, configured to send a feature request to the quasi-associated device, so that the quasi-associated device sends feature information; An information creation unit, configured to receive the functional characteristic information and create sub-associated device information, wherein the sub-associated device information is used to record the quasi-associated device and the corresponding functional characteristic information; An information synchronization unit, used to synchronize networking information and associated functional feature information with the quasi-associated device; An information storage unit, used to add the sub-associated device information to the associated device list and save it; The associated execution unit is used to execute the corresponding operation instruction according to the preset associated function instruction and the corresponding function feature information as the trigger basis, and send the operation instruction to the associated Internet of Things device.
9. A device with an Internet of Things automatic association function, characterized in that: The device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method for automatic association of Internet of Things devices as described in any one of claims 1-7.
10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a method for automatic association of Internet of Things devices as described in any one of claims 1 to 7 when executed by a computer processor.
