Networking method and device of smart home equipment, electronic equipment and storage medium

By determining the bus connection method between smart home devices and subnet controllers and constructing a network architecture, the problem of cumbersome operation caused by heterogeneous communication protocols of smart home devices is solved, and efficient and stable device interconnection and collaboration are achieved.

CN121098651BActive Publication Date: 2026-07-24HANGZHOU LIFESMART TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU LIFESMART TECH
Filing Date
2025-09-10
Publication Date
2026-07-24

Smart Images

  • Figure CN121098651B_ABST
    Figure CN121098651B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and discloses a networking method and device of smart home equipment, electronic equipment and a storage medium, which comprises the following steps: acquiring the communication distance and connection relationship between a plurality of to-be-networked home equipment in a target area and each subnet controller; determining the bus connection mode between each to-be-networked home equipment and the corresponding subnet controller based on the communication distance and the connection relationship; establishing the communication connection between the to-be-networked home equipment and the corresponding subnet controller based on the bus connection mode, and obtaining a plurality of subnets; for any subnet, acquiring the attribute information of the subnet controller in the subnet and the association relationship between the subnet controller and other subnet controllers; and establishing the network connection between the plurality of subnets based on the attribute information and the association relationship, so as to control the networking of the plurality of to-be-networked home equipment in the target area. The application not only improves the networking efficiency, but also ensures the stability and scalability of the network, thereby providing more convenient and intelligent life experience for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically to networking methods, devices, electronic equipment, and storage media for smart home devices. Background Technology

[0002] With the rapid development of IoT technology, smart home devices have become increasingly widespread, with a large number of various brands and models flooding the market. However, these smart home devices typically come from different manufacturers and use different communication protocols and control platforms, forcing users to operate multiple applications to manage various devices separately, which is cumbersome and makes it difficult to achieve inter-device collaboration. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a networking method, apparatus, electronic device, and storage medium for smart home devices.

[0004] In a first aspect, embodiments of the present invention provide a method for networking smart home devices, including: Obtain the communication distance and connection relationship between multiple home devices to be networked and each subnet controller within the target area. The connection relationship includes at least one home device to be networked that is connected to a subnet controller. Based on communication distance and connection relationship, determine the bus connection method between each home device to be networked and the corresponding subnet controller; A communication connection is established between the home devices to be networked and the corresponding subnet controllers based on a bus connection method, resulting in multiple subnets; For any subnet, obtain the attribute information of the subnet controllers within the subnet, as well as the association relationships between the subnet controllers and other subnet controllers; Establish network connections between multiple subnets based on attribute information and relationships to control the networking of multiple home devices to be networked within the target area.

[0005] The smart home device networking method provided in this invention determines the bus connection method between each home device and its corresponding subnet controller based on the communication distance and connection relationship between the home devices to be networked and the subnet controller. Then, it constructs the network architecture of the entire target area according to the relationships between subnets. This not only improves networking efficiency but also ensures network stability and scalability. Simultaneously, by calculating the communication distance and optimizing the connection relationship, it effectively reduces signal interference and transmission delay, improving the overall performance and user experience of smart home devices. Furthermore, the unified networking method enables interconnection and interoperability between smart home devices of different brands and models, greatly simplifying the operation process and enhancing the collaborative capabilities between devices, thereby providing users with a more convenient and intelligent living experience.

[0006] In conjunction with the first aspect, in one implementation, acquiring the connection relationships between multiple home devices to be networked within a target area and each subnet controller includes: Get the current device capacity of each subnet controller; Based on communication distance and device capacity, determine the connection priority between each home device to be networked and each subnet controller; Based on connection priority and communication distance, determine the connection relationship between the home devices to be networked and the subnet controller.

[0007] In conjunction with the first aspect, in one implementation, based on communication distance and connection relationships, the bus connection method between each home appliance to be networked and its corresponding subnet controller is determined, including: The subnet controller corresponding to each home appliance to be networked is determined based on the connection relationship; The communication distance is compared with the first communication threshold to obtain the first comparison result; If the first comparison result indicates that the communication distance is less than or equal to the first communication threshold, then the bus connection method between the home device to be networked and the corresponding subnet controller is determined to be a single-line bus connection.

[0008] In conjunction with the first aspect, in one implementation, determining the bus connection method between each home appliance to be networked and its corresponding subnet controller based on communication distance further includes: If the first comparison result indicates that the communication distance is greater than the first communication threshold, then the communication distance is compared with the second communication threshold to obtain the second comparison result, where the second communication threshold is greater than the first communication threshold. If the second comparison result indicates that the communication distance is less than or equal to the second communication threshold, then the bus connection method between the home device to be networked and the corresponding subnet controller is determined to be a two-wire bus connection.

[0009] In conjunction with the first aspect, in one implementation, network connections between multiple subnets are established based on attribute information and association relationships to control the networking of multiple home devices to be networked within a target area, including: Determine whether the subnet controller has a network port based on attribute information; If the subnet controller does not have a network port, then it is determined whether the subnet where the subnet controller is located is interconnected with the subnets where other subnet controllers are located through a protocol adapter based on the association relationship; If the subnet where the subnet controller is located is interconnected with the subnets where other subnet controllers are located through a protocol adapter, then a communication connection between the subnets and other subnets is established based on the protocol adapter, and a network connection between other subnet controllers and the network controller is established based on the network port, so as to control the networking of multiple home devices to be networked in the target area.

[0010] In conjunction with the first aspect, in one implementation, establishing network connections between multiple subnets based on attribute information and association relationships to control the networking of multiple home devices to be networked within a target area further includes: If both the subnet controller and other subnet controllers have network ports, then a network connection between the subnet and the network controller is established based on the network port of the subnet controller, and a network connection between other subnets and the network controller is established based on the network ports of other subnet controllers, so as to control the networking of multiple home devices to be networked in the target area.

[0011] In conjunction with the first aspect, in one embodiment, the above method further includes: Obtain the communication distance between newly added home devices to be networked and each subnet controller, as well as the current device capacity of each subnet controller; If the current device capacity of each subnet controller is less than the capacity threshold, then a subnet controller corresponding to the newly added home device to be networked is established based on the communication distance, and a connection is established. If the current device capacity of each subnet controller is greater than the capacity threshold, the location of the new subnet controller is determined based on the device location of the new home device to be networked, and a connection is established.

[0012] Secondly, embodiments of the present invention provide a networking device for smart home devices, comprising: The data acquisition module is used to acquire the communication distance and connection relationship between multiple home devices to be networked and each subnet controller within the target area. The connection relationship includes at least one home device to be networked that is connected to the subnet controller. The bus connection module is used to determine the bus connection method between each home device to be networked and the corresponding subnet controller based on the communication distance and connection relationship; The communication connection module is used to establish communication connections between the home devices to be networked and the corresponding subnet controllers based on a bus connection method, thereby obtaining multiple subnets; The relationship acquisition module is used to acquire the attribute information of the subnet controllers within any subnet, as well as the association relationships between the subnet controllers and other subnet controllers; The networking control module is used to establish network connections between multiple subnets based on attribute information and relationships, so as to control the networking of multiple home devices to be networked within the target area.

[0013] The smart home device networking apparatus provided in this invention determines the bus connection method between each home device and its corresponding subnet controller based on the communication distance and connection relationship between the home device to be networked and the subnet controller. Then, it constructs the network architecture of the entire target area according to the association relationship between subnets. This not only improves networking efficiency but also ensures network stability and scalability. Simultaneously, by calculating the communication distance and optimizing the connection relationship, it effectively reduces signal interference and transmission delay, improving the overall performance and user experience of smart home devices. Furthermore, the unified networking method enables interconnection and interoperability between smart home devices of different brands and models, greatly simplifying the operation process and enhancing the collaborative capabilities between devices, thereby providing users with a more convenient and intelligent living experience.

[0014] Thirdly, embodiments of the present invention provide an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the networking method of the smart home device described in the first aspect or any corresponding embodiment.

[0015] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a computer to execute the networking method of smart home devices according to the first aspect or any corresponding embodiment.

[0016] Fifthly, embodiments of the present invention provide a computer program product, including computer instructions, which are used to cause a computer to execute the networking method of smart home devices described in the first aspect or any corresponding embodiment. Attached Figure Description

[0017] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a networking method for smart home devices according to some embodiments of the present invention; Figure 2 This is a flowchart illustrating another method for networking smart home devices according to an embodiment of the present invention; Figure 3 This is a structural block diagram of a networking device for smart home devices according to an embodiment of the present invention; Figure 4This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] According to an embodiment of the present invention, a method for networking smart home devices is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0021] This invention provides a method for networking smart home devices. Figure 1 This is a flowchart of a smart home device networking method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps: Step S101: Obtain the communication distance and connection relationship between multiple home devices to be networked and each subnet controller within the target area.

[0022] The connection relationship includes at least one home appliance device to be networked that is connected to the subnet controller.

[0023] In one possible implementation, when obtaining the connection relationship between multiple home devices to be networked and each subnet controller within the target area, the current device capacity of each subnet controller can be obtained first; then, based on the communication distance and device capacity, the connection priority between each home device to be networked and each subnet controller can be determined; finally, the connection relationship between the home devices to be networked and the subnet controller can be determined according to the connection priority and communication distance.

[0024] Specifically, the connection priority of a subnet controller to other smart home devices can be reduced first, based on the subnet controller's capacity threshold. When the device capacity of a subnet controller approaches or reaches the threshold, its connection priority to other smart home devices can be lowered to avoid overloading the subnet controller. Next, a weighted algorithm can be used to determine connection priorities by combining communication distance and device capacity, ensuring the rationality and efficiency of connection relationships. Furthermore, the type and functional requirements of the smart home devices to be networked can also be considered when determining connection relationships to ensure the stability and reliability of the entire smart home system.

[0025] As an example, assume there are three subnet controllers (Controller A, Controller B, and Controller C) and five home appliances to be networked (Device 1 to Device 5) within the target area. First, determine the device capacity of each subnet controller: Controller A currently supports 8 devices (capacity threshold is 10), Controller B supports 5 devices (threshold is 10), and Controller C supports 12 devices (overloaded, threshold is 10). Simultaneously, measure the communication distance between each device and the controller: Device 1 is 5 meters from Controller A, 10 meters from Controller B, and 15 meters from Controller C; Device 2 is 8 meters from Controller A, 5 meters from Controller B, and 12 meters from Controller C; and so on.

[0026] Next, a weighted algorithm is used to determine connection priorities, with communication distance weighted at 0.6 (shorter distance, higher priority) and device capacity weighted at 0.4 (lower capacity, higher priority). Taking device 1 as an example, its priority score with controller A is calculated as follows: distance score is (1 / 5)*0.6=0.12, capacity score is (1-8 / 10)*0.4=0.08, total score is 0.20; with controller B: distance is (1 / 10)*0.6=0.06, capacity is (1-5 / 10)*0.4=0.20, total score is 0.26; with controller C: distance is (1 / 15)*0.6=0.04, capacity is (1-12 / 10)*0.4=-0.08 (negative score due to overload), total score is -0.04. Therefore, the priority order of device 1 is controller B>controller A>controller C.

[0027] Furthermore, considering device type and functional requirements: Device 1, a high-definition camera (high bandwidth requirement), is preferentially assigned to controller B, which has a lower load; Device 2, a smart light bulb (low bandwidth), is assigned to controller A based on similar calculations. Finally, based on priority ranking and communication distance, the connection relationships are determined: Device 1 connects to controller B, Device 2 connects to controller A, Device 3 connects to controller B, Device 4 connects to controller A, and Device 5 connects to controller C (reassigned after adjusting load capacity). This example ensures efficient and reliable networking through quantitative calculations, avoiding overload and optimizing system stability.

[0028] Step S102: Based on the communication distance and connection relationship, determine the bus connection method between each home device to be networked and the corresponding subnet controller.

[0029] The bus connection methods include single-wire bus connection and dual-wire bus connection. Single-wire bus connection can reduce wiring workload by 60%, while dual-wire bus connection can enhance long-distance anti-interference. Furthermore, the communication methods of single-wire bus connection and dual-wire bus connection can avoid wireless interference problems and eliminate network fault points.

[0030] In one possible implementation, when determining the bus connection method between each home appliance to be networked and its corresponding subnet controller based on communication distance and connection relationship, the subnet controller corresponding to each home appliance to be networked can be determined based on the connection relationship; the communication distance is compared with a first communication threshold to obtain a first comparison result; if the first comparison result indicates that the communication distance is less than or equal to the first communication threshold, then the bus connection method between the home appliance to be networked and its corresponding subnet controller is determined to be a single-wire bus connection. If the first comparison result indicates that the communication distance is greater than the first communication threshold, then the communication distance is compared with a second communication threshold to obtain a second comparison result, where the second communication threshold is greater than the first communication threshold; if the second comparison result indicates that the communication distance is less than or equal to the second communication threshold, then the bus connection method between the home appliance to be networked and its corresponding subnet controller is determined to be a two-wire bus connection.

[0031] Specifically, the first communication threshold can be set as the maximum allowable value for short-distance communication, such as 5 meters, while the second communication threshold can be set as the upper limit for medium-distance communication, such as 15 meters, to adapt to the layout needs of different home environments. The dual-wire bus connection enhances communication reliability through redundant signal paths, making it suitable for medium- to long-distance transmission or environments with potential electromagnetic interference, ensuring the integrity of data transmission. Furthermore, the specific value ranges of the first and second communication thresholds can be adjusted according to the user's actual needs.

[0032] Furthermore, if the second comparison result indicates that the communication distance is greater than the second communication threshold, the communication distance is compared with the third communication threshold to obtain the third comparison result, where the third communication threshold is greater than the second communication threshold. If the third comparison result indicates that the communication distance is less than or equal to the third communication threshold, the bus connection method between the home device to be networked and the corresponding subnet controller is determined to be a multi-line bus connection to enhance signal stability and data transmission rate. In addition, when the communication distance exceeds the third communication threshold, it indicates that the distance between the home device to be networked and the subnet controller is too far or there is a significant risk of interference. In this case, the connection path needs to be re-evaluated or an alarm should be triggered to avoid communication failures due to signal attenuation or interference, further optimizing the communication quality and stability after networking. Furthermore, networking strategies can be dynamically adjusted based on connection relationships, such as introducing repeater devices or switching to a backup wireless connection mode, to ensure network reliability and compatibility.

[0033] As an example, in a typical smart home scenario, suppose there is a subnet controller in the living room area. The devices to be networked include smart bulb A (3 meters away from the subnet controller), temperature sensor B (10 meters away from the subnet controller), and curtain controller C (20 meters away from the subnet controller). First, based on the connection relationship, smart bulb A corresponds to the living room subnet controller, and its communication distance of 3 meters is less than the first communication threshold (5 meters), so a single-wire bus connection is used; the communication distance of temperature sensor B is 10 meters, which is greater than the first threshold but less than the second threshold (15 meters), so a dual-wire bus connection is used to enhance signal redundancy; the communication distance of curtain controller C is 20 meters, which is greater than the second threshold but less than the third communication threshold (25 meters), so a multi-wire bus connection is used to improve data transmission rate and stability. If a device, such as security camera D, is more than 30 meters away from the controller, exceeding the third threshold, the system triggers an alarm and automatically suggests introducing a repeater device or switching to a backup wireless mode to ensure network reliability.

[0034] Step S103: Establish communication connections between the home devices to be networked and the corresponding subnet controllers based on the bus connection method to obtain multiple subnets.

[0035] As shown above, by establishing communication connections between the home devices to be networked and the corresponding subnet controllers based on a bus connection method, multiple subnets are obtained. This can effectively manage device communication within each subnet, ensure data transmission stability and low latency, while enabling hierarchical management, optimizing resource allocation, reducing the risk of single points of failure, and providing a scalable and highly reliable network architecture for smart home scenarios.

[0036] Specifically, within each subnet, the bus connection methods between the home appliances to be networked and the corresponding subnet controller include single-wire bus connection, dual-wire bus connection, and / or multi-wire bus connection. After establishing the physical connection between the home appliances to be networked and the corresponding subnet controller based on the bus connection methods of single-wire bus connection, dual-wire bus connection, and / or multi-wire bus connection, each subnet controller assigns a corresponding single-byte address (e.g., 0~256) to each home appliance to be networked based on the access order of the corresponding home appliances to be networked. Each home appliance to be networked is connected to the corresponding subnet controller in parallel, and each home appliance to be networked achieves coexistence through hardware address identification and conflict avoidance protocols; at the same time, single-byte address allocation and timing coordination can be automatically completed based on the subnet controller or protocol stack, thereby establishing communication connections and forming multiple subnets.

[0037] In one possible implementation, a communication connection is established between the home devices to be networked and the corresponding subnet controller based on a bus connection method. When multiple subnets are obtained, communication parameters can be configured for each subnet, including setting the data transmission rate, error detection mechanism, and timeout reconnection strategy, to adapt to the specific distance of the devices and the bus type. For example, a redundancy check algorithm can be enabled for a two-line bus, and a data fragmentation transmission protocol can be implemented for a multi-line bus, thereby optimizing network performance in real time and minimizing communication latency.

[0038] Specifically, the data transmission rate can be dynamically adjusted based on the actual distance between the home devices to be networked and the subnet controller. For example, for devices within 20 meters, a higher rate such as 1Mbps is used to improve efficiency, while for devices beyond 20 meters, the rate is reduced to 500Kbps to enhance signal stability. The error detection mechanism can combine cyclic redundancy check (CRC) or parity check algorithms to monitor data packet integrity in real time and automatically trigger a retransmission process when an error is detected, ensuring data accuracy. The timeout reconnection policy sets a default timeout of 5 seconds and configures a maximum of 3 retries. If consecutive failures occur, a fault diagnosis module is activated to analyze network bottlenecks such as signal interference or bus load issues, and parameters are dynamically adjusted to restore the connection.

[0039] Furthermore, for two-wire buses, in addition to redundancy checks, parallel transmission of identical data copies can enhance fault tolerance. For multi-wire buses, data fragmentation protocols can be subdivided into fixed-size packets, and a priority queuing mechanism can be enabled to place critical control commands in a high-priority queue, ensuring real-time response. Simultaneously, encryption parameters such as AES-128 algorithms are introduced to protect communication security, and parameter combinations are customized according to device type (e.g., security cameras or smart locks). For example, high-security devices enable dual verification, while low-latency devices reduce protocol overhead, thereby minimizing communication latency while improving overall network robustness and adaptability.

[0040] Step S104: For any subnet, obtain the attribute information of the subnet controller within the subnet, as well as the association relationship between the subnet controller and other subnet controllers.

[0041] The attribute information for each subnet controller includes device capacity threshold, processor type, memory capacity, supported communication protocol types, and device identifier. The relationships between subnet controllers include the physical connection method, communication protocol compatibility, and data transmission path.

[0042] Step S105: Establish network connections between multiple subnets based on attribute information and association relationships to control the networking of multiple home devices to be networked within the target area.

[0043] Multiple subnets can be connected to the network controller via Ethernet bridges through the network ports of their respective subnet controllers, thus achieving subnet-to-mainnet connectivity. Communication between the subnet and the mainnet is MAC layer communication (802.2), avoiding IP layer configuration, IP address conflicts, and router dependencies (i.e., no IP dependency: UDP / TCP is not used, avoiding router dependencies and complex IP configurations); the communication bandwidth is 10M / 100M, ensuring smooth operation of large-scale devices (such as cameras and voice terminals); a 2-byte network ID or a 6-byte extended address is used to support ultra-large-scale networking (tens of thousands of devices).

[0044] Specifically, at the subnet layer, data formats are automatically converted between subnets via protocol adapters to achieve transparent transmission. Between the subnet and the main network, each subnet is connected to the network controller via an Ethernet bridge. The Ethernet bridge is responsible for mapping the short address (1 byte) of the subnet to the long address (2 / 6 bytes) of the main network, encapsulating the data packet at the MAC layer, routing it at high speed through the Ethernet backbone, and finally decapsulating it and delivering it to the networked home devices by the bridge of the target subnet. No IP is involved in the entire process, which ensures the isolation between subnets and achieves low-latency interconnection within the main network.

[0045] In one possible implementation, when establishing network connections between multiple subnets based on attribute information and relationships to control the networking of multiple home appliances to be networked within a target area, the presence of a subnet controller can be determined based on attribute information. If the subnet controller does not have a network port, the relationship is used to determine whether the subnet containing the subnet controller is interconnected with other subnet controllers via a protocol adapter. If the subnet containing the subnet controller is interconnected with other subnet controllers via a protocol adapter, a communication connection is established between the subnets based on the protocol adapter, and a network connection is established between other subnet controllers and the network controller based on the network port, to control the networking of multiple home appliances to be networked within the target area. If both the subnet controller and other subnet controllers have network ports, a network connection is established between the subnet and the network controller based on the subnet controller's network port, and a network connection is established between other subnets and the network controller based on the network ports of other subnet controllers, to control the networking of multiple home appliances to be networked within the target area.

[0046] Specifically, when a subnet controller does not have a network port but the subnets are interconnected through a protocol adapter, the protocol adapter is responsible for converting the data format of subnets with different bus connection methods before communication, thereby realizing the communication connection between subnets and other subnets. This allows the home devices to be networked to be unaware of the physical layer differences between subnets. At the same time, other subnet controllers with network ports can be connected to the network controller to control the networking of multiple home devices to be networked in the target area.

[0047] As an example, consider a target area as the living room in a smart home environment, containing multiple home devices to be networked, such as a smart lighting subsystem, a security monitoring subsystem, and an environmental control subsystem. Specifically, the living room's attribute information indicates that the lighting subsystem controller does not have a network port, but the security monitoring subsystem controller does. Simultaneously, the relationship shows that the lighting and security monitoring subsystems are interconnected via a protocol adapter, which converts the single-wire bus data used by the lighting subsystem into a two-wire bus data format supported by the security monitoring subsystem. Based on this, when a subsystem controller (such as the lighting subsystem controller) does not have a network port, the system automatically detects its interconnection with the security monitoring subsystem via the protocol adapter, thus establishing a communication connection between the lighting and security monitoring subsystems using the protocol adapter. Simultaneously, a network connection is established between the security monitoring subsystem controller and the network controller through its network port, enabling unified network control of all home devices to be networked in the living room area. Furthermore, if the environmental control subsystem controller also has a network port, a direct connection is established with the network controller based on its network port, ensuring the entire networking process is efficient and reliable.

[0048] The smart home device networking method provided in this invention determines the bus connection method between each home device and its corresponding subnet controller based on the communication distance and connection relationship between the home devices to be networked and the subnet controller. Then, it constructs the network architecture of the entire target area according to the relationships between subnets. This not only improves networking efficiency but also ensures network stability and scalability. Simultaneously, by calculating the communication distance and optimizing the connection relationship, it effectively reduces signal interference and transmission delay, improving the overall performance and user experience of smart home devices. Furthermore, the unified networking method enables interconnection and interoperability between smart home devices of different brands and models, greatly simplifying the operation process and enhancing the collaborative capabilities between devices, thereby providing users with a more convenient and intelligent living experience.

[0049] This invention provides a method for networking smart home devices. Figure 2 This is a flowchart of a smart home device networking method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: Obtain the communication distance between the newly added home devices to be networked and each subnet controller, as well as the current device capacity of each subnet controller.

[0050] Step S202: If the current device capacity of each subnet controller is less than the capacity threshold, then establish the subnet controller corresponding to the newly added home device to be networked based on the communication distance, and establish a connection.

[0051] Step S203: If the current device capacity of each subnet controller is greater than the capacity threshold, then the location of the new subnet controller is determined based on the device location of the new home device to be networked, and a connection is established.

[0052] Specifically, when the capacity of all devices is less than the threshold, the subnet controller with the shortest communication distance is selected to establish a connection to minimize signal transmission delay and interference. The communication distance can be measured by received signal strength indication or calculated using a path loss model based on an indoor map. The capacity threshold is dynamically set based on the subnet controller's processing capacity, memory usage, and bandwidth utilization, for example, set to 80% of the controller's maximum number of connections to ensure network load balancing and stability. If all subnet controllers are overloaded, the installation location of the new subnet controller is determined using a weighted centroid algorithm based on the coordinates of the new device, combined with the topology and device distribution density of the target area. After the new controller is added, network reconfiguration is automatically performed, including reallocating connections to neighboring devices, updating the routing table, and optimizing signal coverage to avoid blind spots. For example, the location of the new controller must meet the principle of minimizing the average communication distance, while also considering the impact of physical obstacles such as walls.

[0053] Furthermore, if some subnet controllers have a capacity below the threshold while others have a capacity above it, the remaining capacity is assessed, and new devices are dynamically allocated to controllers with lower capacity. If capacity is insufficient, temporary load migration or the addition of new controllers is triggered. After all connections are established, signal quality is monitored in real time. If latency exceeds the threshold, connection relationships or controller layout are automatically adjusted to ensure network scalability and high reliability.

[0054] As an example, in a typical three-bedroom smart home scenario, there are three subnet controllers: Controller A is located in the living room (coordinates x=10, y=5), Controller B is located in the master bedroom (coordinates x=15, y=20), and Controller C is located in the second bedroom (coordinates x=25, y=10). A new device to be networked is a smart thermostat installed in the study (coordinates x=20, y=15). First, the communication distance between the device and each controller is measured using signal strength indicators: distance A is 8 meters, distance B is 6 meters, and distance C is 12 meters. Simultaneously, the device capacity of each controller is monitored: A is supporting 18 devices (capacity threshold set to 80% of the maximum connection count of 25, i.e., 20), B is supporting 22 devices (exceeding the threshold), and C is supporting 15 devices (below the threshold). Due to some controllers being overloaded (B's capacity 22 > 20) and others not being overloaded (A and C's capacity are both below 20), the remaining capacity is assessed: A has 2 remaining connection slots, and C has 5 remaining connection slots. Based on the principle of minimizing communication latency, the controller C (12 meters away) with the shortest distance and lowest load capacity is selected first. New devices are dynamically assigned to C and connections are established. After the connection is established, the real-time monitoring signal latency is 60ms, which is below the threshold of 100ms, and the network load is balanced and stable. If subsequent monitoring detects that the latency rises to 110ms, controller layout optimization is automatically triggered, such as migrating nearby devices to controller A, to ensure scalability and high reliability.

[0055] The smart home device networking method provided in this invention can intelligently allocate new device connections by dynamically assessing communication distance and device capacity, effectively minimizing signal transmission delay and interference, and improving network load balancing. Through load migration or the deployment of new controllers, it ensures low latency and high reliability in high-density device environments. Simultaneously, based on real-time monitoring of signal quality, it automatically optimizes connection relationships or controller layout to avoid coverage blind spots, enhancing network scalability and stability. Furthermore, by using a weighted centering algorithm to accurately locate new controllers and combining this with the indoor topology, it achieves efficient resource utilization, significantly improving the overall performance and user experience of the smart home system.

[0056] This embodiment provides a networking device for smart home devices, such as... Figure 3 As shown, it includes: The data acquisition module 301 is used to acquire the communication distance and connection relationship between multiple home devices to be networked and each subnet controller within the target area. The connection relationship includes at least one home device to be networked that is connected to the subnet controller. The bus connection module 302 is used to determine the bus connection method between each home device to be networked and the corresponding subnet controller based on the communication distance and connection relationship; The communication connection module 303 is used to establish a communication connection between the home devices to be networked and the corresponding subnet controllers based on a bus connection method, thereby obtaining multiple subnets; The relationship acquisition module 304 is used to acquire the attribute information of the subnet controllers within any subnet, as well as the association relationship between the subnet controllers and other subnet controllers; The networking control module 305 is used to establish network connections between multiple subnets based on attribute information and association relationships, so as to control the networking of multiple home devices to be networked within the target area.

[0057] In one possible implementation, the data acquisition module 301 includes: The device capacity acquisition unit is used to acquire the current device capacity of each subnet controller; The connection priority determination unit is used to determine the connection priority between each home device to be networked and each subnet controller based on the communication distance and device capacity. The connection relationship determination unit is used to determine the connection relationship between the home devices to be networked and the subnet controller based on the connection priority and communication distance.

[0058] In one possible implementation, the bus connection module 302 includes: The subnet controller determination unit is used to determine the subnet controller corresponding to each home device to be networked based on the connection relationship; The first comparison unit is used to compare the communication distance with the first communication threshold to obtain the first comparison result; The first connection unit is used to determine that the bus connection method between the home device to be networked and the corresponding subnet controller is a single-line bus connection if the first comparison result indicates that the communication distance is less than or equal to the first communication threshold.

[0059] In one possible implementation, the bus connection module 302 further includes: The second comparison unit is used to compare the communication distance with the second communication threshold if the first comparison result indicates that the communication distance is greater than the first communication threshold, and to obtain the second comparison result, wherein the second communication threshold is greater than the first communication threshold. The second connection unit is used to determine that the bus connection method between the home device to be networked and the corresponding subnet controller is a two-wire bus connection if the second comparison result indicates that the communication distance is less than or equal to the second communication threshold.

[0060] In one possible implementation, the network control module 305 includes: The network port determination unit is used to determine whether the subnet controller has a network port based on attribute information. The subnet interconnection unit is used to determine, based on the association relationship, whether the subnet where the subnet controller is located is interconnected with the subnets where other subnet controllers are located through a protocol adapter if the subnet controller does not have a network port. The network control unit is used to establish communication connections between subnets based on protocol adapters if the subnet where the subnet controller is located is interconnected with the subnets where other subnet controllers are located via protocol adapters, and to establish network connections between other subnet controllers and the network controller based on network ports, so as to control the networking of multiple home devices to be networked within the target area.

[0061] In one possible implementation, the network control module 305 further includes: The third adjustment unit is used to establish a network connection between the subnet and the network controller based on the network port of the subnet controller if both the subnet controller and other subnet controllers have network ports, and to establish a network connection between other subnets and the network controller based on the network ports of other subnet controllers, so as to control the networking of multiple home devices to be networked in the target area.

[0062] In one possible implementation, the networking control module 305 is further configured to obtain the communication distance between the newly added home device to be networked and each subnet controller, as well as the current device capacity of each subnet controller; if the current device capacity of each subnet controller is less than the capacity threshold, then the subnet controller corresponding to the newly added home device to be networked is established based on the communication distance, and a connection is established; if the current device capacity of each subnet controller is greater than the capacity threshold, then the location of the newly added subnet controller is determined based on the device location of the newly added home device to be networked, and a connection is established.

[0063] In this embodiment, the networking device for smart home devices is presented in the form of functional units. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0064] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0065] This invention also provides an electronic device having the above-described features. Figure 3 The network device for smart home devices is shown.

[0066] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of the present invention, such as... Figure 4As shown, the electronic device includes one or more processors 401, a memory 402, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 4 Take a processor 401 as an example.

[0067] Processor 401 may be a central processing unit, a network processor, or a combination thereof. Processor 401 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0068] The memory 402 stores instructions executable by at least one processor 401 to cause at least one processor 401 to perform the method shown in the above embodiments.

[0069] The memory 402 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the electronic device based on the display of a mini-program landing page. Furthermore, the memory 402 may include high-speed random access memory and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some alternative embodiments, the memory 402 may optionally include memory remotely located relative to the processor 401, and these remote memories can be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0070] Memory 402 may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; memory 402 may also include combinations of the above types of memory.

[0071] The electronic device also includes an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 can be connected via a bus or other means.

[0072] Input device 403 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 404 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touch screen.

[0073] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0074] A portion of the embodiments of this application can be applied as a computer program product, such as computer program instructions. When executed by a computer, these instructions, through the operation of the computer, can invoke or provide the methods and / or technical solutions according to the present invention. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Accordingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0075] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A networking method for smart home devices, characterized in that, The method includes: Obtain the communication distance and connection relationship between multiple home devices to be networked and each subnet controller within the target area. The connection relationship includes at least one home device to be networked that is connected to a subnet controller. Based on the communication distance and the connection relationship, determine the bus connection method between each home device to be networked and the corresponding subnet controller; Based on the bus connection method, a communication connection is established between the home device to be networked and the corresponding subnet controller to obtain multiple subnets; For any subnet, obtain the attribute information of the subnet controller within the subnet, as well as the association relationship between the subnet controller and other subnet controllers; Based on the attribute information and the association relationship, network connections are established between multiple subnets to control the networking of multiple home devices to be networked within the target area; Obtain the connection relationships between multiple home devices to be networked within the target area and each subnet controller, including: Get the current device capacity of each subnet controller; Based on the communication distance and the device capacity, the connection priority between each home device to be networked and each subnet controller is determined; The connection relationship between the home device to be networked and the subnet controller is determined based on the connection priority and the communication distance.

2. The method according to claim 1, characterized in that, The step of determining the bus connection method between each home appliance to be networked and its corresponding subnet controller based on the communication distance and the connection relationship includes: Based on the connection relationship, determine the subnet controller corresponding to each home device to be networked; The communication distance is compared with the first communication threshold to obtain the first comparison result; If the first comparison result indicates that the communication distance is less than or equal to the first communication threshold, then the bus connection method between the home device to be networked and the corresponding subnet controller is determined to be a single-line bus connection.

3. The method according to claim 2, characterized in that, The method of determining the bus connection mode between each home device to be networked and the corresponding subnet controller based on the communication distance also includes: If the first comparison result indicates that the communication distance is greater than the first communication threshold, then the communication distance is compared with the second communication threshold to obtain a second comparison result, wherein the second communication threshold is greater than the first communication threshold; If the second comparison result indicates that the communication distance is less than or equal to the second communication threshold, then the bus connection method between the home device to be networked and the corresponding subnet controller is determined to be a two-wire bus connection.

4. The method according to claim 1, characterized in that, The step of establishing network connections between multiple subnets based on the attribute information and the association relationships to control the networking of multiple home devices to be networked within the target area includes: Based on the attribute information, determine whether the subnet controller has a network port; If the subnet controller does not have a network port, then based on the association relationship, it is determined whether the subnet where the subnet controller is located is interconnected with the subnets where the other subnet controllers are located through a protocol adapter; If the subnet where the subnet controller is located is interconnected with the subnets where the other subnet controllers are located through a protocol adapter, then a communication connection between the subnet and the other subnets is established based on the protocol adapter, and a network connection between the other subnet controllers and the network controller is established based on the network port, so as to control the networking of multiple home devices to be networked in the target area.

5. The method according to claim 4, characterized in that, The step of establishing network connections between multiple subnets based on the attribute information and the association relationships to control the networking of multiple home devices to be networked within the target area further includes: If both the subnet controller and the other subnet controllers have network ports, a network connection is established between the subnet and the network controller based on the network port of the subnet controller, and a network connection is established between the other subnets and the network controller based on the network ports of the other subnet controllers, so as to control the networking of multiple home devices to be networked in the target area.

6. The method according to claim 1, characterized in that, The method further includes: Obtain the communication distance between newly added home devices to be networked and each subnet controller, as well as the current device capacity of each subnet controller; If the current device capacity of each subnet controller is less than the capacity threshold, then the subnet controller corresponding to the newly added home device to be networked is established based on the communication distance, and a connection is established. If the current device capacity of each subnet controller is greater than the capacity threshold, the location of the new subnet controller is determined based on the device location of the newly added home device to be networked, and a connection is established.

7. A networking device for smart home devices, characterized in that, The device includes: The data acquisition module is used to acquire the communication distance and connection relationship between multiple home appliances to be networked and each subnet controller within the target area. The connection relationship includes at least one home appliance to be networked connected to a subnet controller. The module also acquires the connection relationship between multiple home appliances to be networked and each subnet controller within the target area, including: Obtain the current device capacity of each subnet controller; determine the connection priority between each home device to be networked and each subnet controller based on the communication distance and the device capacity; determine the connection relationship between the home device to be networked and the subnet controller according to the connection priority and the communication distance; The bus connection module is used to determine the bus connection method between each home device to be networked and the corresponding subnet controller based on the communication distance and the connection relationship; A communication connection module is used to establish a communication connection between the home device to be networked and the corresponding subnet controller based on the bus connection method, thereby obtaining multiple subnets; The relationship acquisition module is used to acquire, for any subnet, the attribute information of the subnet controller within the subnet, as well as the association relationship between the subnet controller and other subnet controllers; The networking control module is used to establish network connections between multiple subnets based on the attribute information and the association relationship, so as to control the networking of multiple home devices to be networked within the target area.

8. An electronic device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent networking method and system, master and slave coaxial wired device and intelligent terminal

    CN109245907A

  • Data transmission method and device, equipment and storage medium

    CN118368728A