Smart home network layout method and device, electronic equipment and storage medium

By identifying target gateways and wireless access points in a smart home network, and using topology optimization algorithms and fitness functions to generate the network topology, the problems of network robustness and low efficiency in existing technologies are solved, and efficient and stable data transmission is achieved.

CN121000545APending Publication Date: 2025-11-21GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511215410.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-28
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In existing smart home network layouts, star topologies have poor robustness, bus topologies have low data transmission efficiency, and device location and signal interference factors are not fully considered, resulting in unreasonable allocation of network resources and low system stability and efficiency.

Method used

The target gateway is determined from the candidate gateways, wireless access points are deployed, the target network topology is generated using topology optimization algorithms and fitness functions, the connection relationship between devices and access points is configured, and the network status is monitored and dynamically adjusted in real time.

Benefits of technology

It achieves the goal of minimizing data transmission path length, reducing network latency, and improving data transmission efficiency and system stability while meeting the communication needs of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121000545A_ABST
    Figure CN121000545A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a smart home network layout method and device, electronic equipment and a storage medium. The method comprises the following steps: determining a target gateway serving as smart home network core equipment from one or more candidate gateways; deploying a wireless access point of the smart home device based on the target gateway; determining a topological optimization algorithm and a fitness function for network layout; generating a target network topology structure which takes the target gateway as a center and comprises the wireless access point according to the topology optimization algorithm and the fitness function; and configuring a connection relationship between the smart home device and the wireless access point according to the target network topology structure. According to the embodiment of the invention, the method achieves the quick construction of the topological structure of the target network based on the topological optimization algorithm and the fitness function, and remarkably improves the data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network layout, in particular to a smart home network layout method and device, an electronic device and a storage medium. BACKGROUND

[0002] The prior art solution is that the traditional smart home network layout mostly adopts a fixed network topology structure, such as a star topology and a bus topology. In the star topology structure, all devices transmit data through a center node (such as a router). Although this structure is easy to manage and maintain, once the center node fails, the entire network will be paralyzed, and the system robustness is poor. Although the bus topology structure has a lower cost, as the number of devices increases, the load of the bus will increase, the data transmission efficiency will be significantly reduced, and network congestion and other problems are likely to occur. SUMMARY

[0003] In view of the above problems, the present application provides a smart home network layout method and device, an electronic device and a storage medium to overcome the above problems or at least partially solve the above problems, comprising:

[0004] A smart home network layout method, the method comprising:

[0005] Determining a target gateway as a smart home network core device from one or more candidate gateways;

[0006] Deploying a wireless access point of a smart home device based on the target gateway;

[0007] Determining a topology optimization algorithm and a fitness function for network layout;

[0008] Generating a target network topology structure centered on the target gateway and containing the wireless access point according to the topology optimization algorithm and the fitness function;

[0009] Configuring a connection relationship between the smart home device and the wireless access point according to the target network topology structure.

[0010] Optionally, further comprising:

[0011] Running a preset network state monitoring program in the target gateway to monitor the running state of the home network corresponding to the target network topology structure in real time;

[0012] Judging whether the network state changes based on the running state;

[0013] When it is determined that the network state changes, generating a target network topology structure according to the topology optimization algorithm and the fitness function.

[0014] Optionally, determining the target gateway as the smart home network core device from the one or more candidate gateways comprises:

[0015] Obtaining gateway performance data of the one or more candidate gateways;

[0016] Determining the target gateway as the smart home network core device from the one or more candidate gateways according to the gateway performance data.

[0017] Optionally, deploying the wireless access point of the smart home device based on the target gateway comprises:

[0018] Obtaining home space information to which the smart home network layout is directed;

[0019] Deploying the wireless access point of the smart home device according to the home space information and the target gateway.

[0020] Optionally, determining the topological optimization algorithm and the fitness function for the network layout comprises:

[0021] Obtaining network characteristic information and optimization target information of the smart home network;

[0022] Determining the topological optimization algorithm for the network layout based on the network characteristic information and the optimization target information;

[0023] Determining the fitness function corresponding to the topological optimization algorithm.

[0024] Optionally, generating the target network topology structure centered on the target gateway and containing the wireless access point according to the topological optimization algorithm and the fitness function comprises:

[0025] Generating a plurality of candidate network topology structures centered on the target gateway and containing the wireless access point according to the topological optimization algorithm;

[0026] Determining a fitness value of each candidate network topology structure according to the fitness function;

[0027] Determining the target network topology structure from the plurality of candidate network topology structures according to the fitness value.

[0028] Optionally, determining the fitness value of each candidate network topology structure according to the fitness function comprises:

[0029] Determining total length data of data transmission paths in each candidate network topology structure according to the fitness function;

[0030] Determining communication capability data of each candidate network topology structure in the case of device failure according to the fitness function;

[0031] determine a fitness value of each candidate network topology according to the total length data and the communication capability data.

[0032] Optionally, the determining of the fitness value of each candidate network topology according to the total length data and the communication capability data comprises:

[0033] determining first weight data corresponding to the total length data and second weight data corresponding to the communication capability data based on the fitness function;

[0034] performing a weighted calculation on the total length data according to the first weight data to obtain first weighted data;

[0035] performing a weighted calculation on the communication capability data according to the second weight data to obtain second weighted data;

[0036] adding the first weighted data and the second weighted data to obtain the fitness value of each candidate network topology.

[0037] Optionally, the determining of the target network topology from the plurality of candidate network topologies according to the fitness value comprises:

[0038] determining the candidate network topology with the largest fitness value as the target network topology.

[0039] An intelligent home network layout design apparatus, the apparatus comprising:

[0040] a target gateway determining module configured to determine a target gateway serving as a core device of an intelligent home network from one or more candidate gateways;

[0041] a wireless access point determining module configured to deploy wireless access points of intelligent home devices based on the target gateway;

[0042] an algorithm and function determining module configured to determine a topology optimization algorithm and a fitness function for network layout;

[0043] a network topology determining module configured to generate a target network topology centered on the target gateway and containing the wireless access points according to the topology optimization algorithm and the fitness function;

[0044] a configuration module configured to configure a connection relationship between the intelligent home devices and the wireless access points according to the target network topology.

[0045] An electronic device comprises a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being implemented when executed by the processor to realize the smart home network layout method as described above.

[0046] A computer readable storage medium, on which a computer program is stored, the computer program being implemented when executed by a processor to realize the smart home network layout method as described above.

[0047] Embodiments of the present application have the following advantages:

[0048] In embodiments of the present application, a target gateway serving as a core device of a smart home network is determined from one or more candidate gateways; a wireless access point of a smart home device is deployed based on the target gateway; a topology optimization algorithm and a fitness function for network layout are determined; a target network topology structure centered on the target gateway and containing the wireless access point is generated according to the topology optimization algorithm and the fitness function; and a connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure, which realizes rapid construction of a target network topology structure based on a topology optimization algorithm and a fitness function, and significantly improves data transmission efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the description of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0050] Figure 1 is a step flow chart of a smart home network layout method provided by an embodiment of the present application;

[0051] Figure 2 is a step flow chart of another smart home network layout method provided by an embodiment of the present application;

[0052] Figure 3 is a step flow chart of another smart home network layout method provided by an embodiment of the present application;

[0053] Figure 4 is a structural schematic diagram of a smart home network layout device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the above objectives, characteristics and advantages of the present application more apparent, comprehensible and easier to be understood, specific embodiments will be described in detail below with reference to the drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.

[0055] At present, the existing technical solutions are that the traditional smart home network layout mostly adopts fixed network topology structures, such as star topology, bus topology and the like.

[0056] In one network topology method, a topology layout can be generated through clustering processing and cross point number optimization to reduce the connection line cross rate and improve the aesthetic degree. Although it is a general network topology method, the idea of constructing a hybrid topology based on a multi-center node can be adapted to the smart home scene to optimize the reliability and maintainability of the network structure.

[0057] In another network topology method, a network topology can be generated by receiving a user connection request, verifying the communication capability between devices, and identifying the connection state on the interface. The problem that the user cannot predict the feasibility of communication between devices is solved, and the user experience is improved. The core is to generate a network topology by dynamically detecting the communication state of the device, although no optimization algorithm is explicitly used, but the topology dynamic generation logic is involved.

[0058] However, the existing solutions have the following problems:

[0059] (1) In the star topology structure, all devices transmit data through the center node (such as a router). Although this structure is easy to manage and maintain, once the center node fails, the entire network will be paralyzed, and the system robustness is poor. Although the bus topology structure has low cost, as the number of devices increases, the load of the bus will continue to increase, the data transmission efficiency will be significantly reduced, and problems such as network congestion are likely to occur.

[0060] (2) The traditional network layout often does not fully consider factors such as the physical location between devices, signal interference, and data flow differences, resulting in unreasonable allocation of network resources, further reducing data transmission efficiency and system stability.

[0061] In the embodiment of the present application, the target gateway serving as the core device of the smart home network can be determined from one or more candidate gateways; the wireless access point of the smart home device is deployed based on the target gateway; the topology optimization algorithm and the fitness function for network layout are determined; the target network topology structure centered on the target gateway and containing the wireless access point is generated according to the topology optimization algorithm and the fitness function; and the connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure. Thus, based on the network connection design of the topology optimization algorithm, the data transmission path length is minimized, the network delay is reduced, and the data transmission effect is improved under the premise of meeting the communication requirements of the device.

[0062] Referring to Figure 1 , a step flowchart of a smart home network layout method provided by an embodiment of the present application is shown, which can specifically include the following steps:

[0063] Step S101, determining the target gateway serving as the core device of the smart home network from one or more candidate gateways;

[0064] In actual application, to establish the network topology, the target gateway serving as the core device of the smart home network can be selected first, specifically, the target gateway suitable for serving as the gateway of the network topology can be selected from the candidate gateways. The selection method can be to set the selection criteria of the gateway, and then the gateway is selected according to the selection criteria.

[0065] The gateway is a device or software connecting different network protocols, acting as a "translator" between different networks, and realizing the conversion of data format, protocol or architecture. The core functions of the gateway can include protocol conversion, network interconnection security control and data routing. The protocol conversion can realize the conversion (NAT) of the private IP of the local area network (LAN) and the public IP of the Internet. The network interconnection can be the connection of heterogeneous networks such as Ethernet, Wi-Fi and cellular network. The security control can be reflected in the functions such as firewall and VPN integrated to protect the internal network. The data routing determines how the data packet is transmitted across the network.

[0066] In an embodiment of the present application, the process of determining the target gateway serving as the core device of the smart home network from one or more candidate gateways can be: first obtaining the gateway performance data of one or more candidate gateways; wherein the gateway performance data can include data such as gateway computing power and interface quantity, and then the target gateway serving as the core device of the smart home network can be determined from one or more candidate gateways according to the gateway performance data.

[0067] In the embodiment of the present application, a high-performance intelligent gateway can be selected as the core device of the smart home network. The gateway needs to have strong computing power, rich network interfaces (such as Ethernet interface, Wi-Fi interface, Bluetooth interface, Zigbee interface, etc.) and good compatibility, so as to support the access of various smart home devices.

[0068] After determining the target gateway, the intelligent gateway can be deployed at the center of the smart home environment to ensure that it can cover the entire home area and provide stable network signals.

[0069] In step S102, a wireless access point of the smart home device is deployed based on the target gateway.

[0070] After determining the target gateway, the wireless access point can be laid out based on the target gateway. The wireless access point is a hardware device that allows wireless devices (such as mobile phones and laptops) to access wired networks through Wi-Fi, and acts as a bridge between wired and wireless networks. The core functions of the wireless access point include wireless signal transmission, terminal access management and data forwarding. Wireless signal transmission can create a Wi-Fi network (such as 802.11ac / ax). Terminal access management is specifically manifested in supporting multiple device connections and assigning IP (in combination with a DHCP server). Data forwarding is specifically manifested in transmitting data between wireless devices and wired networks.

[0071] In an embodiment of the present application, the wireless access point of the smart home device is deployed based on the target gateway, including: obtaining home space information targeted by the smart home network layout; and deploying a wireless access point of the smart home device according to the home space information and the target gateway.

[0072] The home space information can include any one or more of space size information and space layout information.

[0073] Specifically, in actual application, multiple wireless access points (such as Wi-Fi routers and Zigbee coordinators) can be reasonably deployed according to the size and layout of the home space. For a larger house, a distributed wireless access point deployment method can be used, with each wireless access point responsible for covering a certain area to ensure good wireless signal coverage throughout the home space. When deploying wireless access points, signal interference between devices needs to be considered, and parameters such as channels and power of the wireless access points need to be adjusted to avoid signal overlap and interference.

[0074] Taking a 150 square meter three-bedroom house as an example, the distribution of wireless access points can be set as follows:

[0075] (1) Place the main Wi-Fi router in the living room (channel 1, medium power) to cover the living room and dining room.

[0076] (2) Master bedroom door Wi-Fi extender (channel 6, low power) covers the bedroom area;

[0077] (3) Kitchen with Zigbee coordinator (independent channel), connecting smart smoke sensors, refrigerators, etc.

[0078] In this way, each area signal does not interfere with each other, and the device networking is stable.

[0079] In an embodiment of the present application, after determining the target gateway and the wireless access point, the plurality of smart home devices can also be deployed. The smart home devices are various, and specifically can include smart sensors (such as temperature and humidity sensors, smoke sensors, human infrared sensors, etc.), smart controllers (such as smart switches, smart sockets, smart curtain controllers, etc.), smart terminal devices (such as smart televisions, smart sound boxes, smart phones, etc.). When selecting devices, devices that support standard communication protocols (such as Wi-Fi, Bluetooth, Zigbee, Z-Wave, etc.) and have good compatibility are preferred. According to the functions and use scenarios of the devices, they are deployed in appropriate positions.

[0080] For example, the temperature and humidity sensor is installed in the main indoor activity area, and the smart camera is installed at the door, the living room and other important positions.

[0081] Step S103, determining a topology optimization algorithm and a fitness function for network layout;

[0082] In an embodiment of the present application, in order to realize the home network layout, a topology optimization algorithm and a fitness function can be introduced, wherein the topology optimization algorithm is an algorithm for optimizing the generation of network topology structure, and the fitness function is a function for evaluating the topology network structure. Specifically, the corresponding topology optimization algorithm and fitness function can be selected according to the requirements of the home network layout.

[0083] In an example, the topology optimization algorithm can be a genetic algorithm, in which the population size, crossover probability, mutation probability and other parameters can be set. The population size determines the size of the algorithm search space, which is generally set according to the number of smart home devices and the network complexity, for example, for a smart home network containing 50-100 devices, the population size can be set to 50-100; the crossover probability controls the frequency of gene exchange between individuals, and is usually taken as 0.6-0.9; the mutation probability is used to introduce new genes to prevent the algorithm from falling into local optimum, and is generally taken as 0.01-0.1.

[0084] Select genetic algorithm, find optimal network structure like "natural evolution":

[0085] Encoding: 0 / 1 to represent whether the device is connected (such as "101" to represent that devices 1 and 3 are connected);

[0086] Parameters: 50 groups of network structures are selected each time for testing

[0087] 80% probability of exchanging part of the connection mode of two groups of structures, 5% probability of randomly changing a connection state, and repeating the calculation 100 times to find the optimal scheme.

[0088] In an embodiment of the present application, the determination of the topology optimization algorithm and the fitness function for network layout can include: obtaining network characteristic information and optimization target information of the home network; determining a topology optimization algorithm for network layout based on the network characteristic information and the optimization target information, and determining a fitness function corresponding to the topology optimization algorithm.

[0089] The network characteristic information can be used to describe a data set of the current state, performance and behavior of the network, and is used for analyzing, diagnosing or optimizing the network, for example, the number and types of smart home devices involved in the network. The optimization target information can be a specific target to be achieved for network optimization, which is usually based on business requirements or problem diagnosis results.

[0090] Step S104, generating a target network topology structure centered on the target gateway and containing the wireless access point according to the topology optimization algorithm and the fitness function;

[0091] After the topology optimization algorithm and the fitness function have been determined, the topology optimization algorithm can be used to generate a network topology structure, and the fitness function can be used to evaluate the generated network topology structure, and then the optimal target network topology structure can be determined.

[0092] Step S105, configuring the connection relationship between the smart home devices and the wireless access point according to the target network topology structure.

[0093] After the optimal target network topology structure is obtained according to the topology optimization algorithm, the connection relationship between the smart home devices and the wireless access point can be configured according to the target network topology structure. Specifically, the network parameters of the devices, such as IP address, subnet mask, gateway address, etc. can be set through the management interface of the smart gateway to establish communication connection between the devices. In the implementation process, it is ensured that the connection between the devices is stable and reliable, and the devices with connection abnormalities are investigated and repaired.

[0094] In an embodiment of the present application, the topology optimization algorithm and the fitness function can be used to iteratively determine the target network topology structure.

[0095] For example, the algorithm starts from an initial population, and generates new populations through operations such as selection, crossover, mutation, etc. In each iteration process, the fitness function is used to calculate the fitness value of each individual, and individuals with higher fitness are selected to enter the next generation population. After multiple iterations, the optimal network topology structure is gradually converged. When the preset stopping condition (such as reaching the maximum number of iterations or the fitness value no longer significantly improves) is met, the algorithm stops running, and the optimal network topology structure is output.

[0096] In an embodiment of the present application, the smart home network topology structure can also be encoded, and the node and edge information in the network is encoded into a chromosome. For example, a binary encoding method is used, and each gene bit represents the connection relationship between devices, 0 represents no connection, and 1 represents connection. In the algorithm running process, different network topology structures are generated through operations such as crossover and mutation of the chromosome. The decoding process is to convert the chromosome into the actual network topology structure for performance evaluation.

[0097] In an embodiment of the present application, a target gateway serving as a core device of a smart home network is determined from one or more candidate gateways; a wireless access point of a smart home device is deployed based on the target gateway; a topology optimization algorithm and a fitness function for network layout are determined; a target network topology structure centered on the target gateway and containing the wireless access point is generated according to the topology optimization algorithm and the fitness function; and the connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure, which realizes rapid construction of a target network topology structure based on a topology optimization algorithm and a fitness function, and significantly improves data transmission efficiency.

[0098] Referring to Figure 2 , a step flowchart of another smart home network layout method provided by an embodiment of the present application is shown, which can specifically include the following steps:

[0099] Step S201, a target gateway serving as a core device of a smart home network is determined from one or more candidate gateways;

[0100] In actual application, to establish a network topology, a target gateway serving as a core device of a smart home network can be selected first, specifically, a target gateway suitable for serving as a network topology gateway can be selected from candidate gateways. The selection method can be to set selection criteria for the gateway, and then to select the gateway according to the selection criteria.

[0101] The gateway is a device or software that connects different network protocols, acts as a "translator" between different networks, and realizes the conversion of data format, protocol or architecture. The core functions of the gateway can include protocol conversion, network interconnection security control and data routing, wherein the protocol conversion can realize the conversion (NAT) of the private IP of the local area network (LAN) and the public IP of the Internet. The network interconnection can be the connection of heterogeneous networks such as Ethernet, Wi-Fi, cellular network, etc. The security control can be manifested in the functions such as firewall, VPN, etc. integrated to protect the internal network. The data routing determines how the data packet is transmitted across the network.

[0102] Step S202, deploying a wireless access point of the smart home device based on the target gateway;

[0103] After determining the target gateway, the wireless access point can be laid based on the target gateway. The wireless access point is a hardware device that allows wireless devices (such as mobile phones, laptops) to access wired networks through Wi-Fi, and acts as a bridge between wired and wireless networks. The core functions of the wireless access point include wireless signal transmission, terminal access management and data forwarding. The wireless signal transmission can realize the creation of a Wi-Fi network (such as 802.11ac / ax). The terminal access management is specifically manifested in supporting multiple device connections and assigning IP (combined with the DHCP server). The data forwarding is specifically manifested in transmitting data between wireless devices and wired networks.

[0104] Step S203, determining a topology optimization algorithm and a fitness function for network layout;

[0105] Step S204, generating a target network topology structure centered on the target gateway and containing the wireless access point according to the topology optimization algorithm and the fitness function;

[0106] Step S205, configuring the connection relationship between the smart home device and the wireless access point according to the target network topology structure.

[0107] Step S206, running a preset network state monitoring program in the target gateway to monitor the running state of the home network corresponding to the target network topology structure in real time;

[0108] The network state monitoring program is run in the target gateway to monitor the running state of the smart home network in real time. The monitoring content includes the online state of the device, data transmission traffic, network delay, signal strength, etc.

[0109] Step S207, judging whether the network state changes based on the running state;

[0110] Step S208, when determining that the network state changes, generating a target network topology structure according to the topology optimization algorithm and the fitness function.

[0111] When detecting abnormal conditions such as device failure, network congestion, etc., timely record relevant information, and trigger the re-run of the topology optimization algorithm.

[0112] In the embodiment of the application, a dynamic adjustment mechanism can also be provided, in which when the network state changes, the intelligent gateway starts the topology optimization algorithm according to the change. When calculating the new network topology structure, the algorithm fully considers the current network state information, such as the location of the faulty device, the change trend of the data flow, etc. After calculating the new optimal network topology structure, the intelligent gateway automatically adjusts the connection relationship between the devices, realizing the dynamic optimization of the network layout. In the adjustment process, in order to ensure the continuity of the network, a step-by-step switching mode is adopted to avoid affecting the normal use of the user.

[0113] In the embodiment of the application, a target gateway serving as a smart home network core device is determined from one or more candidate gateways; a wireless access point of a smart home device is deployed based on the target gateway; a topology optimization algorithm and a fitness function for network layout are determined; a target network topology structure centered on the target gateway and containing the wireless access point is generated according to the topology optimization algorithm and the fitness function; and the connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure, realizing the rapid construction of a target network topology structure based on a topology optimization algorithm and a fitness function, and significantly improving the data transmission efficiency.

[0114] Referring to Figure 3 , a step flowchart of another smart home network layout method provided by an embodiment of the application is shown, which can specifically include the following steps:

[0115] Step S301, determining a target gateway serving as a smart home network core device from one or more candidate gateways;

[0116] In actual application, to establish a network topology, a target gateway serving as a smart home network core device can be selected first, specifically, a target gateway suitable for serving as a network topology gateway can be selected from candidate gateways. The selection method can be to set selection criteria for the gateway, and then to select the gateway according to the selection criteria.

[0117] The gateway is a device or software connecting different network protocols, acting as a "translator" between different networks, realizing the conversion of data format, protocol or architecture. The core functions of the gateway can include protocol conversion, network interconnection security control and data routing, wherein the protocol conversion can realize the conversion of private IP of local area network (LAN) and public IP of Internet (NAT). The network interconnection can be the connection of heterogeneous networks such as Ethernet, Wi-Fi, cellular network, etc. The security control can be manifested in the functions such as firewall, VPN, etc., which protect the internal network. The data routing determines how the data packet is transmitted across the network.

[0118] In step S302, a wireless access point of the smart home device is deployed based on the target gateway.

[0119] After determining the target gateway, the wireless access point can be laid out based on the target gateway. The wireless access point is a hardware device that allows wireless devices (such as mobile phones, laptops) to access wired networks through Wi-Fi, acting as a bridge between wired and wireless networks. The core functions of the wireless access point include wireless signal transmission, terminal access management and data forwarding. The wireless signal transmission can realize the creation of Wi-Fi network (such as 802.11ac / ax). The terminal access management is specifically manifested in supporting multiple device connections and assigning IP (combined with DHCP server). The data forwarding is specifically manifested in transmitting data between wireless devices and wired networks.

[0120] In step S303, a topology optimization algorithm and a fitness function for network layout are determined.

[0121] In step S304, a target network topology structure is generated based on the topology optimization algorithm and the fitness function, which is centered on the target gateway and contains the wireless access point.

[0122] In step S305, the connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure.

[0123] In step S306, a plurality of candidate network topology structures are generated based on the topology optimization algorithm, which are centered on the target gateway and contain the wireless access point.

[0124] In actual application, based on the target gateway and the deployed plurality of wireless access points, a plurality of different network topology structures can be expanded, which are candidate network topology structures. Then, by analyzing the advantages and disadvantages of the candidate network topology structures, the optimal network topology structure, i.e. the target network topology structure, can be screened out.

[0125] In step S307, the fitness value of each candidate network topology structure is determined according to the fitness function.

[0126] In practical applications, the evaluation indexes in the fitness function can be set, for example, the evaluation indexes can be total length data of the data transmission path, communication capability data of the candidate network topology structure in the case of device failure, and the like. After each candidate network topology structure is obtained, the corresponding evaluation index values in each candidate network topology structure are determined, and then the fitness values of each candidate network topology structure are calculated by substituting the evaluation index values into the fitness function.

[0127] In an embodiment of the present application, the determining of the fitness value of each candidate network topology structure according to the fitness function comprises: determining total length data of a data transmission path in each candidate network topology structure according to the fitness function; determining communication capability data of each candidate network topology structure in the case of device failure according to the fitness function; and determining the fitness value of each candidate network topology structure according to the total length data and the communication capability data.

[0128] In an embodiment of the present application, in the fitness function calculation process, weights can also be set for different evaluation indexes, and then the fitness value is calculated by weighting according to the weights. Specifically, the first weight data corresponding to the total length data and the second weight data corresponding to the communication capability data can be determined based on the fitness function; then the first weighted data is obtained by weighting the total length data according to the first weight data, and the second weighted data is obtained by weighting the communication capability data according to the second weight data; and the fitness value of each candidate network topology structure is obtained by adding the first weighted data and the second weighted data.

[0129] That is, the fitness value = total length data * first weight data + communication capability data * second weight data = first weighted data + second weighted data.

[0130] In step S308, the target network topology structure is determined from the plurality of candidate network topology structures according to the fitness value.

[0131] In practical applications, the optimal network topology structure can be selected according to the fitness value, for example, the candidate network topology structure with the largest fitness value is determined as the target network topology structure.

[0132] In an embodiment of the present application, the fitness function is designed to evaluate the advantages and disadvantages of the network topology structure. The fitness function is a formula for scoring the network topology, and the higher the score, the better the topology structure. It converts the key performance indicators (such as signal, stability, etc.) of the network into a calculable numerical value, which facilitates the algorithm to determine which topology is better.

[0133] Specifically, the fitness function can consider both data transmission efficiency and system robustness. In terms of data transmission efficiency, the total length of all data transmission paths in the network is calculated, and the shorter the path length, the higher the fitness value. In terms of system robustness, the communication ability of the network under device failure is evaluated, such as calculating the remaining connectivity of the network after the communication task of the failed device is transferred. The better the connectivity, the higher the fitness value. By weighted sum of the two aspects, the fitness value of each network topology is obtained.

[0134] For example: evaluate the network with a score (0-1 points):

[0135] 40% look at transmission speed (the lower the delay, the higher the score); 40% look at stability (the proportion of devices that can still be connected after failure); 20% look at energy consumption (the lower the power consumption, the higher the score).

[0136] For example, a network has low latency (0.8 points), good stability (0.9 points), and average power consumption (0.4 points). The total score is 0.4 x 0.8 + 0.4 x 0.9 + 0.2 x 0.4 = 0.76 points. The higher the score, the better the network.

[0137] In an embodiment of the present application, a data acquisition and processing system can be constructed to realize data acquisition and analysis. The data acquisition and processing system can include a data acquisition module, a data transmission module, and a data processing module. Specifically, the functions of each module are as follows:

[0138] Data acquisition module: integrate data acquisition module in smart home devices and wireless access points to collect real-time information of devices. For smart sensor devices, the data acquisition module mainly collects environmental data detected by sensors (such as temperature, humidity, smoke concentration, etc.); for smart controller devices, collect the working state information of the device (such as switch state, power consumption, etc.); for smart terminal devices, collect the usage data of the device (such as video playback time, audio transmission traffic, etc.). At the same time, the data acquisition module of the wireless access point is responsible for collecting network state information such as network signal strength, device connection number, data transmission rate, etc.

[0139] Data transmission module: use stable and reliable communication protocols to transmit the collected data to the smart gateway. For short-distance devices, low-power wireless communication protocols such as Bluetooth and Zigbee can be used; for devices with long distances or large data traffic, Wi-Fi or Ethernet communication protocols can be used. During data transmission, data encryption is performed to ensure data security and privacy.

[0140] The data processing module is arranged in the intelligent gateway and performs preprocessing on the received data. The data processing module first performs filtering processing on the data to remove noise data, and then performs normalization processing on the data to convert different types and ranges of data into a unified format, so as to facilitate subsequent topology optimization algorithm processing. In addition, the data processing module is also responsible for storing and backing up the data, so as to facilitate subsequent data analysis and system optimization.

[0141] In the embodiment of the present application, a target gateway serving as a core device of a smart home network is determined from one or more candidate gateways; a wireless access point of a smart home device is deployed based on the target gateway; a topology optimization algorithm and a fitness function for network layout are determined; a target network topology structure centered on the target gateway and containing the wireless access point is generated according to the topology optimization algorithm and the fitness function; a connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure; a preset network state monitoring program is run in the target gateway to monitor the running state of the home network corresponding to the target network topology structure in real time; whether the network state changes is judged based on the running state; when it is determined that the network state changes, the target network topology structure is generated according to the topology optimization algorithm and the fitness function, which realizes the rapid construction of the target network topology structure based on the topology optimization algorithm and the fitness function, and significantly improves the data transmission efficiency.

[0142] It should be noted that, for the method embodiment, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present application is not limited by the order of the described actions, because according to the embodiment of the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the embodiment of the present application.

[0143] Referring to Figure 4 , a structure schematic diagram of a smart home network layout device provided by an embodiment of the present application is shown, which can specifically include the following modules:

[0144] The target gateway determination module 401 is configured to determine a target gateway serving as a core device of a smart home network from one or more candidate gateways;

[0145] The wireless access point determination module 402 is configured to deploy a wireless access point of a smart home device based on the target gateway;

[0146] The algorithm and function determination module 403 is configured to determine a topology optimization algorithm and a fitness function for network layout;

[0147] The network topology structure determination module 404 is configured to generate a target network topology structure containing the wireless access points and centered on the target gateway according to the topology optimization algorithm and the fitness function.

[0148] The configuration module 405 is configured to configure a connection relationship between the smart home devices and the wireless access points according to the target network topology structure.

[0149] In an embodiment of the present application, the device can include:

[0150] The running state monitoring module is configured to run a preset network state monitoring program in the target gateway, and monitor a running state of a home network corresponding to the target network topology structure in real time.

[0151] The network state judgment module is configured to judge whether a network state changes based on the running state.

[0152] The topology structure updating module is configured to generate a target network topology structure according to the topology optimization algorithm and the fitness function when it is determined that the network state changes.

[0153] In an embodiment of the present application, the target gateway determination module 401 can include:

[0154] The gateway performance data acquisition submodule is configured to acquire gateway performance data of one or more candidate gateways.

[0155] The target gateway determination submodule is configured to determine a target gateway serving as a core device of a smart home network from the one or more candidate gateways according to the gateway performance data.

[0156] In an embodiment of the present application, the wireless access point determination module 402 can include:

[0157] The home space information acquisition submodule is configured to acquire home space information to which a smart home network layout is directed.

[0158] The wireless access point determination submodule is configured to deploy wireless access points of smart home devices according to the home space information and the target gateway.

[0159] In an embodiment of the present application, the algorithm and function determination module 403 can include:

[0160] The feature and target determination submodule is configured to acquire network feature information and optimization target information of a home network.

[0161] The topology optimization algorithm determination submodule is configured to determine a topology optimization algorithm used for network layout based on the network feature information and the optimization target information.

[0162] a fitness value determining sub-module, configured to determine a fitness value of each candidate network topology structure according to the fitness function;

[0163] In an embodiment of the present application, the network topology structure determining module 404 can include:

[0164] a candidate network topology structure determining sub-module, configured to generate a plurality of candidate network topology structures containing the wireless access point and centered on the target gateway according to the topology optimization algorithm;

[0165] a fitness value determining sub-module, configured to determine a fitness value of each candidate network topology structure according to the fitness function;

[0166] a target network topology determining sub-module, configured to determine a target network topology structure from the plurality of candidate network topology structures according to the fitness value.

[0167] In an embodiment of the present application, the fitness value determining sub-module can include:

[0168] a total length data determining unit, configured to determine total length data of a data transmission path in each candidate network topology structure according to the fitness function;

[0169] a communication capability data determining unit, configured to determine communication capability data of each candidate network topology structure in a device failure case according to the fitness function;

[0170] a fitness value determining unit, configured to determine a fitness value of each candidate network topology structure according to the total length data and the communication capability data.

[0171] In an embodiment of the present application, the fitness value determining unit can include:

[0172] a weight data determining sub-unit, configured to determine first weight data corresponding to the total length data and second weight data corresponding to the communication capability data based on the fitness function;

[0173] a first weighted data determining sub-unit, configured to perform weighted calculation on the total length data according to the first weight data to obtain first weighted data;

[0174] a second weighted data determining sub-unit, configured to perform weighted calculation on the communication capability data according to the second weight data to obtain second weighted data;

[0175] a fitness value determining sub-unit, configured to add the first weighted data and the second weighted data to obtain the fitness value of each candidate network topology structure.

[0176] In an embodiment of the present application, the target network topology determining sub-module is configured to determine the candidate network topology structure with the largest fitness value as the target network topology structure when determining the target network topology structure from the plurality of candidate network topology structures according to the fitness values.

[0177] In an embodiment of the present application, a target gateway is determined from one or more candidate gateways as a smart home network core device; a wireless access point of a smart home device is deployed based on the target gateway; a topology optimization algorithm and a fitness function for network layout are determined; a target network topology structure is generated according to the topology optimization algorithm and the fitness function, with the target gateway as the center and containing the wireless access point; and a connection relationship between the smart home device and the wireless access point is configured according to the target network topology structure, which realizes rapid construction of a target network topology structure based on a topology optimization algorithm and a fitness function, and significantly improves data transmission efficiency.

[0178] An embodiment of the present application further provides an electronic device, which can include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor to implement the smart home network layout method.

[0179] An embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the smart home network layout method.

[0180] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the related parts refer to the parts of the method embodiment.

[0181] Each embodiment in the specification is described in a progressive manner, and each embodiment mainly explains the difference from other embodiments, and the same and similar parts of each embodiment refer to each other.

[0182] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can adopt a computer program product in the form of one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0183] The embodiments of the present application are described with reference to the flowchart illustrations and / or block diagrams of the methods, terminal devices (systems) and computer program products according to the embodiments of the present application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal devices to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal devices, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0184] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0185] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal devices, such that a series of operational steps are carried out on the computer or other programmable terminal devices to produce a computer implemented process so that the instructions executed on the computer or other programmable terminal devices provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams.

[0186] Although preferred embodiments of the present application have been described, those skilled in the art will be able to make additional modifications and variations to these embodiments without departing from the scope of the present application. Accordingly, the appended claims are intended to encompass all such modifications and variations as falling within the scope of the present application.

[0187] Finally, it is to be understood that the phraseology or terminology such as "first" and "second" etc. used herein is merely intended to differentiate one entity or operation from another entity or operation, without necessarily requiring or implying any actual such relationship or order between such entities or operations. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0188] The above provides a detailed description of the intelligent home network layout method and device, electronic equipment and storage medium. The principles and implementation modes of the present application are described by applying specific examples. The above example is only used to help understand the method and core idea of the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method for deploying a smart home network, characterized in that, The method includes: Select the target gateway as the core device of the smart home network from one or more candidate gateways; Deploy wireless access points for smart home devices based on the target gateway; Determine the topology optimization algorithm and fitness function to be used for network layout; A target network topology structure centered on the target gateway and including the wireless access point is generated based on the topology optimization algorithm and the fitness function. Configure the connection relationship between the smart home devices and the wireless access point according to the target network topology.

2. The method according to claim 1, characterized in that, Also includes: Run a preset network status monitoring program in the target gateway to monitor the operating status of the home network corresponding to the target network topology in real time; Based on the described operating status, determine whether the network status has changed; When it is determined that the network state has changed, the target network topology structure is generated according to the topology optimization algorithm and the fitness function.

3. The method according to claim 1, characterized in that, The step of determining the target gateway as the core device of the smart home network from one or more candidate gateways includes: Obtain gateway performance data for one or more candidate gateways; The target gateway is determined from one or more candidate gateways based on the gateway performance data, serving as the core device of the smart home network.

4. The method according to claim 1, characterized in that, The wireless access point for deploying smart home devices based on the target gateway includes: Obtain information about the home space targeted by the smart home network layout; Deploy wireless access points for smart home devices based on the home space information and the target gateway.

5. The method according to claim 1, characterized in that, The determination of the topology optimization algorithm and fitness function used for network layout includes: Acquire network characteristic information and optimization target information for the home network; Based on the network feature information and the optimization target information, a topology optimization algorithm for network layout is determined; Determine the fitness function corresponding to the topology optimization algorithm.

6. The method according to claim 1, characterized in that, The step of generating a target network topology centered on the target gateway and including the wireless access point, based on the topology optimization algorithm and the fitness function, includes: The topology optimization algorithm generates multiple candidate network topologies centered on the target gateway and including the wireless access point. The fitness value of each candidate network topology is determined based on the fitness function. The target network topology is determined from the plurality of candidate network topologies based on the fitness value.

7. The method according to claim 6, characterized in that, The step of determining the fitness value of each candidate network topology based on the fitness function includes: The total length of the data transmission path in each candidate network topology is determined based on the fitness function. The communication capability data of each candidate network topology under device failure conditions are determined based on the fitness function; The fitness value of each candidate network topology is determined based on the total length data and the traffic capacity data.

8. The method according to claim 7, characterized in that, Determining the fitness value of each candidate network topology based on the total length data and the throughput data includes: Based on the fitness function, determine the first weight data corresponding to the total length data and the second weight data corresponding to the communication capability data; The total length data is weighted according to the first weight data to obtain the first weighted data; The communication capability data is weighted according to the second weight data to obtain the second weighted data; The first weighted data and the second weighted data are added together to obtain the fitness value of each candidate network topology.

9. The method according to claim 6, characterized in that, Determining the target network topology from the plurality of candidate network topologies based on the fitness value includes: The candidate network topology with the highest fitness value is determined as the target network topology.

10. A smart home network layout design device, characterized in that, The device includes: The target gateway determination module is used to determine the target gateway as the core device of the smart home network from one or more candidate gateways; A wireless access point determination module is used to deploy wireless access points for smart home devices based on the target gateway. The algorithm and function determination module is used to determine the topology optimization algorithm and fitness function used for network layout; A network topology determination module is used to generate a target network topology centered on the target gateway and including the wireless access point, based on the topology optimization algorithm and the fitness function. The configuration module is used to configure the connection relationship between the smart home device and the wireless access point according to the target network topology.

11. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the smart home network layout method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the smart home network layout method as described in any one of claims 1 to 9.