A cross-segment device communication method and routing device under a whole-house intelligent scene
By registering the control hub and generating virtual devices in the whole-house smart network, the problems of complex network layout and poor user experience in the whole-house smart scenario are solved, and unified control and privacy protection of devices across network segments are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIXI TECH (SHENZHEN) CO LTD
- Filing Date
- 2025-08-26
- Publication Date
- 2026-05-05
AI Technical Summary
Existing technologies in whole-house smart home scenarios have complex network layouts and configurations, poor user experience, and privacy issues due to reliance on cloud services, while cumbersome zone control schemes.
By registering a control hub on any router in the whole-house smart network, a virtual device is generated, and its device information is synchronized to other routers to establish a communication link and enable cross-network segment device communication.
Without altering the network layout and configuration, unified access control between the control center and devices in various network segments can be achieved, improving user experience, avoiding reliance on cloud services, and protecting privacy.
Smart Images

Figure CN121037149B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a cross-network segment device communication method and routing device in a whole-house smart scenario. Background Technology
[0002] With the development of IoT technology, more and more smart devices are joining the smart home family. As a result, whole-house intelligence—linking indoor lighting, appliances, security systems, audio-visual systems, and many other smart devices to achieve various scenario-based controls—has become a new model for creating smart homes. Because various smart devices are distributed throughout the house, whole-house intelligence requires very high network coverage. Therefore, the most common way to implement whole-house intelligence is to intervene during the wiring stage of interior decoration. This includes planning in advance for the power cord wiring and network interface wiring of smart devices to ensure that each smart device can be connected to a unified control network at its intended installation location.
[0003] However, in reality, pre-wiring is not suitable for most users, and adjusting the installation and layout of smart devices later is very difficult. Therefore, more users expect to achieve whole-house intelligence within their existing network environment. In this case, to avoid complex network configurations affecting the network communication of existing devices, the most feasible solution is to not set up a control hub. All smart devices communicate directly with the cloud server, and the control terminal communicates with the smart devices through the cloud server. Alternatively, multiple control hubs located on different network segments can be set up to control the smart devices in different zones. The solution without a control hub relies too heavily on cloud services for unified control, which compromises user privacy. On the other hand, the installation, configuration, and use of the zone control solution are very cumbersome, resulting in a poor user experience. Summary of the Invention
[0004] Based on the above-mentioned problems, this invention proposes a cross-network segment device communication method and routing device in a whole-house smart scenario. It can achieve unified access control for the control center and smart devices in any network segment without changing the network layout and network configuration.
[0005] In view of this, the first aspect of the present invention proposes a cross-network segment device communication method in a whole-house smart home scenario, comprising:
[0006] Register the control center of smart devices on any of the routing devices in the whole-house smart network, which is composed of several subnets established by several routing devices as subnet routes;
[0007] The device information of the control center is synchronously registered with other routing devices in the whole-house smart network. The device information includes the network address information of the control center after it is registered with the whole-house smart network.
[0008] Based on the device information of the control center, a virtual device of the control center is generated in each routing device in the whole-house smart network;
[0009] The virtual device enables the control center to communicate with intelligent devices in the subnets connected to each routing device.
[0010] Furthermore, the specific steps for registering the control hub of smart devices on any router in the whole-house smart network include:
[0011] Establish a communication connection between the control center and any routing device in the whole-house smart network;
[0012] The routing device connected to the control center is designated as the first routing device;
[0013] Configure the IP address of the subnet segment established by the control center using the first routing device as the subnet route;
[0014] The first routing device acquires and stores the device information of the control center, the device information including the IP address and MAC address of the control center;
[0015] The first routing device registers the control hub as the control hub device for whole-house smart home systems.
[0016] Furthermore, the step of synchronously registering the device information of the control center to other routing devices in the whole-house smart network specifically includes:
[0017] The first routing device packages the device information of the control center into a synchronization data packet;
[0018] Starting from the first routing device, the synchronization data packet is transmitted level by level among the various gateway nodes of the whole-house smart network;
[0019] Each routing device in the whole-house smart network receives, parses, and stores the device information of the control center in the synchronization data packet, so as to register the control center as the control center device of the whole-house smart network in the local database.
[0020] Furthermore, the step of transmitting the synchronization data packet level by level among the various gateway nodes of the whole-house smart network, starting from the first routing device, specifically includes:
[0021] Identify a second routing device that is directly connected to the first routing device and serves as the parent or child node of the first routing device in the topology of the whole-house smart network.
[0022] Determine whether the second routing device stores the device information of the control center;
[0023] When the device information of the control center is not present in the second routing device, the synchronization data packet is pushed to the second routing device.
[0024] Furthermore, the step of generating a virtual device for the control center in each routing device of the whole-house smart network based on the device information of the control center specifically includes:
[0025] After each second routing device registers the control hub as a whole-house smart control hub device in its local database, it extracts the network address of the control hub from the device information of the control hub.
[0026] Generate a virtual device that points to the control center;
[0027] Configure the virtual device with the IP address of the subnet segment where the current routing device is located;
[0028] Establish a communication link from the virtual device to the network address;
[0029] Bind the virtual device to the communication link.
[0030] Furthermore, the step of establishing a communication link from the virtual device to the network address specifically includes:
[0031] Based on the shortest path first algorithm or the minimum delay first algorithm, at least one communication link connecting the virtual device and the control center is determined in the topology of the whole-house smart network;
[0032] Identify the third routing device that serves as an intermediate routing node in the communication link;
[0033] The third routing device is configured with routing parameters so that when it receives a data packet with the IP address of the control center or the virtual device as the source IP address, or with the IP address of the control center or the virtual device as the destination IP address, the third routing device forwards the data packet to the next-hop IP address of the communication link.
[0034] Furthermore, the step of enabling the control center to communicate with intelligent devices in the subnets accessing each routing device through the virtual device specifically includes:
[0035] When the control center needs to control any smart device, it obtains the IP address of the target smart device, which is the smart device that needs to be controlled.
[0036] The target subnet segment where the target smart device is located is determined based on the IP address;
[0037] Identify the virtual devices in the target subnet segment;
[0038] Generate a data packet containing control instructions, the data packet including the IP addresses of the target smart device and the virtual device;
[0039] The data packet is transmitted to the routing device where the virtual device is located via the communication link between the control center and the virtual device.
[0040] Furthermore, the step of enabling the control center to communicate with intelligent devices in the subnets accessing each routing device through the virtual device specifically includes:
[0041] When the control terminal accesses the whole-house smart network through any routing device in the whole-house smart network, it obtains a list of network devices in the accessed subnet segment, and the list of network devices includes smart devices in the current subnet segment;
[0042] The list of network devices is displayed in the human-machine interface of the control terminal so that users can perform interactive control of the smart devices through the list of network devices.
[0043] Furthermore, the network device list also includes a control hub or virtual device in the current subnet segment. The step of enabling the control hub to communicate with intelligent devices in the subnets accessing each routing device through the virtual device further includes:
[0044] The control terminal receives user operations on the control center or virtual device through the human-machine interface to perform the operation of switching subnet segments;
[0045] The target subnet segment is determined based on the user's operation. The target subnet segment is any other subnet segment in the whole-house smart network other than the subnet segment directly accessed by the control terminal.
[0046] Obtain the list of network devices in the target subnet segment;
[0047] The human-machine interface of the control terminal displays a list of network devices in the target subnet segment.
[0048] A second aspect of the present invention provides a routing device, including a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the cross-network segment device communication method in a whole-house smart scenario as described in any of the first aspects of the present invention.
[0049] This invention proposes a cross-network segment device communication method and routing device in a whole-house smart home scenario. By registering a control hub for smart devices on any routing device in the whole-house smart network (which consists of several subnets established by these routing devices), the device information of the control hub is synchronously registered to other routing devices in the whole-house smart network. This device information includes the network address information of the control hub after registration. Based on the device information of the control hub, a virtual device for the control hub is generated in each routing device in the whole-house smart network. Through this virtual device, the control hub can communicate with smart devices in the subnets connected to each routing device. This allows for unified access control of the control hub and smart devices in any network segment without altering the network layout and configuration. Attached Figure Description
[0050] Figure 1 This is a flowchart of a cross-network segment device communication method in a whole-house smart scenario provided by an embodiment of the present invention. Detailed Implementation
[0051] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0052] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0053] In the description of this invention, the term "multiple" refers to two or more. Unless otherwise explicitly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. The terms "connect," "install," "fix," etc., should be interpreted broadly. For example, "connect" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances. Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "multiple" means two or more.
[0054] In the description of this specification, the terms "one embodiment," "some implementations," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0055] The present invention provides a cross-network segment device communication method and routing device for a whole-house smart home scenario, applicable to a whole-house smart home scenario where smart devices and their control center access the network via wireless or wired connections. The following description, with reference to the accompanying drawings, illustrates a cross-network segment device communication method and routing device for a whole-house smart home scenario according to some embodiments of the present invention.
[0056] like Figure 1 As shown, the first aspect of the present invention proposes a cross-network segment device communication method in a whole-house smart home scenario, comprising:
[0057] Register the control center of smart devices on any of the routing devices in the whole-house smart network, which is composed of several subnets established by several routing devices as subnet routes;
[0058] The device information of the control center is synchronously registered with other routing devices in the whole-house smart network. The device information includes the network address information of the control center after it is registered with the whole-house smart network.
[0059] Based on the device information of the control center, a virtual device of the control center is generated in each routing device in the whole-house smart network;
[0060] The virtual device enables the control center to communicate with intelligent devices in the subnets connected to each routing device.
[0061] The whole-house smart network is a local area network consisting of several subnet routers interconnected as gateway nodes. These gateway nodes are interconnected to form a network topology of a specific shape. Depending on implementation requirements, the network topology can be any of the following types: tree, star, ring, or hybrid, or other types as well. The technical solution of this invention is applicable to network topologies of various structural types with multiple subnets. Each subnet consists of a routing device acting as the subnet router, with several network devices connected to the routing device. These network devices include smart home devices and other network devices.
[0062] The device information includes the network address information of the control center after it registers with the whole-house smart network. This network address information includes the subnet IP (Internet Protocol) address assigned by a DHCP (Dynamic Host Configuration Protocol) server when the control center joins a subnet segment with the routing device as the subnet router. The DHCP server can be a subnet router for the corresponding subnet segment, or it can be another routing device specified in the whole-house smart network. The network address information also includes the MAC (Medium Access Control) address (also known as the hardware address or physical address) of the control center.
[0063] Preferably, the device information of the control center also includes the device type information of the control center, which is used to identify its identity as a control center device. That is, through the device type information, each routing device can identify it as a control center device used to uniformly control the smart devices in the whole-house smart network.
[0064] The virtual device is generated in each subnet segment based on the network address information of the control center, and is a virtual network device with a subnet IP address corresponding to the subnet segment. The virtual device is mapped to the control center entity through the network address information of the control center, so that when other network devices communicate with the virtual device, their communication data is routed to the control center entity through the network address information. In the step of generating the virtual device of the control center in each routing device of the whole-house smart network according to the device information of the control center, except for the subnet segment directly accessed by the control center, a virtual device mapped to the control center is generated in the subnet routing device of each other subnet segment.
[0065] The virtual device, within its respective subnet segment, exhibits the same behavioral pattern as the control center, except for its network address. That is, the scanning data it sends or the feedback data it receives when being scanned within its subnet segment carries the device identifier of the control center. Therefore, any smart device in any subnet segment can scan the control center through its scanning action within that subnet segment. In other words, any smart device can be considered to belong to the same subnet segment as the control center to achieve communication.
[0066] The intelligent devices referred to in this invention are smart home devices and sensors that can be interactively controlled through the control center, including but not limited to smart lights, smart speakers, smart TVs, smart refrigerators, human presence sensors, and door magnetic sensors. More specifically, the routing device provided by this invention has a wired communication interface and can provide wireless Wi-Fi signals via a Wi-Fi hotspot or wireless Bluetooth signals via a Bluetooth hotspot. This invention is applicable to smart home devices and sensors that communicate with the routing device via Wi-Fi, Bluetooth, or wired connections. Of course, in addition to Wi-Fi and Bluetooth, the routing device can also establish communication connections with smart home devices or sensors through other wireless communication protocols, enabling the smart home devices and sensors to access the whole-house smart network through the routing device.
[0067] In the technical solution of this invention, the control center can receive broadcast signals sent by smart devices in various subnet segments through the virtual device, thereby scanning smart devices in each subnet segment and being scanned by smart devices in each subnet segment, enabling the two to establish a communication connection based on the virtual device. Therefore, any smart device connected to the whole-house smart network in any subnet segment can directly communicate with the control center, allowing users to register smart devices throughout the entire network range of the whole-house smart network to the control center, so as to control any smart device through the control center.
[0068] In some other embodiments of the present invention, one of the routing devices in the whole-house smart network can be reused as the control center.
[0069] Furthermore, the specific steps for registering the control hub of smart devices on any router in the whole-house smart network include:
[0070] Establish a communication connection between the control center and any routing device in the whole-house smart network;
[0071] The routing device connected to the control center is designated as the first routing device;
[0072] Configure the IP address of the subnet segment established by the control center using the first routing device as the subnet route;
[0073] The first routing device acquires and stores the device information of the control center, the device information including the IP address and MAC address of the control center;
[0074] The first routing device registers the control hub as the control hub device for whole-house smart home systems.
[0075] In establishing a communication connection between the control center and any routing device in the whole-house smart network, different implementation methods can be adopted depending on the device type and operation mode of the control center. The communication connection can be a Wi-Fi connection based on the Wi-Fi hotspot signal provided by the routing device or the control center acting as a wireless hotspot, or it can be a Bluetooth communication connection. In one embodiment, when the control center is a video phone panel with a touch screen, the video phone panel can directly connect to the Wi-Fi hotspot provided by the routing device to establish a communication connection with the routing device. In other embodiments, when the control center is a wireless device without a visual interactive interface, such as a Bluetooth speaker, the user can establish a connection with the Bluetooth speaker through a control terminal and then log in to its control backend through the control terminal to configure the communication connection between the control center and the routing device.
[0076] The first routing device is a routing device directly connected to the control hub in the whole-house smart network. In some embodiments of the present invention, the step of the first routing device registering the control hub as the control hub device for the whole-house smart network specifically involves the first routing device marking the data record corresponding to the control hub as the control hub device in a local database or a local configuration file. In some embodiments of the present invention, the first routing device runs a miniature database, i.e., a local database, used to store persistent data required by various service programs. Of course, in other embodiments, a database may not be used to store the persistent data; instead, the persistent data may be stored in the non-volatile storage space of the first routing device through configuration files in specific formats such as JSON, XML, or YAML files.
[0077] In some other embodiments of the present invention, the first routing device itself can be registered as the control hub. In this embodiment, the step of registering the control hub of the smart device on any routing device in the whole-house smart network specifically involves: marking itself as the control hub in the first routing device; synchronously registering the device information of the first routing device to other routing devices in the whole-house smart network; and generating a virtual device for the control hub in each routing device in the whole-house smart network based on the device information of the first routing device.
[0078] Furthermore, the step of synchronously registering the device information of the control center to other routing devices in the whole-house smart network specifically includes:
[0079] The first routing device packages the device information of the control center into a synchronization data packet;
[0080] Starting from the first routing device, the synchronization data packet is transmitted level by level among the various gateway nodes of the whole-house smart network;
[0081] Each routing device in the whole-house smart network receives, parses, and stores the device information of the control center in the synchronization data packet, so as to register the control center as the control center device of the whole-house smart network in the local database.
[0082] In the above-described implementation, a data synchronization mechanism is established among the various routing devices in the smart home network to share data among them. After the control center registers with any routing device in the smart home network, its registration information, i.e., the device information of the control center, will be synchronized to other routing devices through the data synchronization mechanism.
[0083] Furthermore, the routing device is configured with a data synchronization space. When data exists in the data synchronization space, the routing device packages the data in the data synchronization space into a synchronization data packet and transmits it to its parent and child nodes in the topology of the whole-house smart network. The data synchronization space can be a specified folder path configured in the internal file system of the routing device, a dedicated virtual disk partition, or a specially allocated cache space, etc.
[0084] Preferably, the data synchronization space is a dedicated cache space allocated from the volatile cache space of the routing device. The step of synchronizing and registering the device information of the control center to other routing devices in the whole-house smart network specifically includes:
[0085] The first routing device generates a synchronization data packet containing device information of the control center;
[0086] The synchronized data is copied to the data synchronization space.
[0087] Furthermore, when any routing device receives a synchronization data packet from its parent node or child node, it copies the received synchronization data packet into its data synchronization space.
[0088] Furthermore, the step of transmitting the synchronization data packet level by level among the various gateway nodes of the whole-house smart network, starting from the first routing device, also includes:
[0089] Each routing device in the whole-house smart network periodically scans the data synchronization space;
[0090] When the data synchronization space is not empty, the data in the data synchronization space is sent to its parent and child nodes in the topology of the whole-house smart network.
[0091] After confirming that its parent node and child node have successfully received the synchronization data packet, the synchronization data packet is deleted from the data synchronization space.
[0092] Furthermore, the step of transmitting the synchronization data packet level by level among the various gateway nodes of the whole-house smart network, starting from the first routing device, specifically includes:
[0093] Identify a second routing device that is directly connected to the first routing device and serves as the parent or child node of the first routing device in the topology of the whole-house smart network.
[0094] Determine whether the second routing device stores the device information of the control center;
[0095] When the device information of the control center is not present in the second routing device, the synchronization data packet is pushed to the second routing device.
[0096] Furthermore, after determining whether the second routing device stores the device information of the control center, the method further includes:
[0097] When the device information of the control center exists in the second routing device, it is determined whether the device information of the control center stored in the second routing device is consistent with the device information of the control center stored in the first control center;
[0098] When the two are inconsistent, the synchronization data packet is pushed to the second routing device so that the second routing device updates the device information of the control center stored therein.
[0099] Furthermore, the step of transmitting the synchronization data packet level by level among the various gateway nodes of the whole-house smart network, starting from the first routing device, also includes:
[0100] After the second routing device stores or updates the device information of the control center, it pushes the synchronization data packet to the routing devices that are its parent or child nodes in the topology of the whole-house smart network in the same way.
[0101] Furthermore, the step of generating a virtual device for the control center in each routing device of the whole-house smart network based on the device information of the control center specifically includes:
[0102] After each second routing device registers the control hub as a whole-house smart control hub device in its local database, it extracts the network address of the control hub from the device information of the control hub.
[0103] Generate a virtual device that points to the control center;
[0104] Configure the virtual device with the IP address of the subnet segment where the current routing device is located;
[0105] Establish a communication link from the virtual device to the network address;
[0106] Bind the virtual device to the communication link.
[0107] Preferably, in the step of establishing a communication link from the virtual device to the network address, the communication link includes at least one primary communication link and at least one alternative communication link. The primary communication link is the optimal communication link between the virtual device and the control center, which may be the shortest communication link or the communication link with the lowest latency. The shortest communication link refers to the communication link containing the fewest communication nodes.
[0108] The virtual device is a virtual object residing in the cache space of the routing device. When the routing device starts, the virtual object is loaded into the cache space via loading parameters from a database or configuration file. The virtual object has local IP and remote IP attributes. The local IP attribute stores the IP address of the virtual device in the current subnet segment, and the remote IP attribute stores the IP address of the control center. The virtual object also has communication link attributes, used to store the primary communication link and alternative communication links from the current routing device to the control center.
[0109] In some embodiments of the present invention, the second routing device operates a miniature database, also known as a local database, for storing persistent data required by various service programs. Of course, in other embodiments, the persistent data may not be stored in a database, but rather in the non-volatile storage space of the second routing device using configuration files in specific formats such as JSON, XML, or YAML files.
[0110] Furthermore, the step of establishing a communication link from the virtual device to the network address specifically includes:
[0111] Based on the shortest path first algorithm or the minimum delay first algorithm, at least one communication link connecting the virtual device and the control center is determined in the topology of the whole-house smart network;
[0112] Identify the third routing device that serves as an intermediate routing node in the communication link;
[0113] The third routing device is configured with routing parameters so that when it receives a data packet with the IP address of the control center or the virtual device as the source IP address, or with the IP address of the control center or the virtual device as the destination IP address, the third routing device forwards the data packet to the next-hop IP address of the communication link.
[0114] Specifically, the Shortest Path First (SPF) algorithm can be any one of Dijkstra's algorithm, Floyd's algorithm, or Bellman-Ford algorithm. The Minimum Delay First (MSF) algorithm can be any one of greedy scheduling algorithms or dynamic routing algorithms.
[0115] Furthermore, after establishing the communication link from the virtual device to the network address, the method further includes:
[0116] Periodically scan the status of the link nodes in the communication link;
[0117] When the state of a link node in the communication link changes, a new communication link is generated from the virtual device to the network address.
[0118] In the technical solution of the above embodiments, besides the virtual devices and control center at both ends of the link, each link node in the communication link is a routing device. When the state of any routing device in the communication link changes, such as due to device failure or interface change, the communication link may become unreachable. The technical solution of the above embodiments ensures that the control center and the virtual device are always connected by periodically scanning the state of the link nodes in the communication link and regenerating the communication link from the virtual device to the network address when the state of the link nodes in the communication link changes.
[0119] In some embodiments of the present invention, the routing parameters include the network address information of the virtual device and the IP address information of the previous and next hops of the communication link. The step of configuring the routing parameters in the third routing device specifically includes:
[0120] The third routing device associates and stores the network address information of the virtual device with the IP address information of the previous hop and the next hop.
[0121] In the technical solution of the above embodiments, the cross-network segment device communication method in the whole-house smart scenario further includes:
[0122] When the third routing device receives a data packet from the IP address of the previous hop, it parses the source address and destination address in the data packet;
[0123] Determine whether the source address or destination address in the data packet belongs to the control center or the virtual device;
[0124] Determine the virtual device corresponding to the source address or destination address of the data packet;
[0125] Obtain the routing parameters corresponding to the virtual device, wherein the routing parameters include the IP address of the next hop of the communication link corresponding to the virtual device at the current routing node;
[0126] The data packet is forwarded to the next hop IP address.
[0127] Furthermore, the step of enabling the control center to communicate with intelligent devices in the subnets accessing each routing device through the virtual device specifically includes:
[0128] When the control center needs to control any smart device, it obtains the IP address of the target smart device, which is the smart device that needs to be controlled.
[0129] The target subnet segment where the target smart device is located is determined based on the IP address;
[0130] Identify the virtual devices in the target subnet segment;
[0131] Generate a data packet containing control instructions, the data packet including the IP addresses of the target smart device and the virtual device;
[0132] The data packet is transmitted to the routing device where the virtual device is located via the communication link between the control center and the virtual device.
[0133] Furthermore, after the step of transmitting the data packet to the routing device where the virtual device is located via the communication link between the control center and the virtual device, the method further includes:
[0134] The routing device broadcasts the data packet within its subnet segment, enabling the target smart device to scan and receive the data packet;
[0135] The target intelligent device interacts with the control center through the IP address of the virtual device in the data packet.
[0136] Furthermore, when any smart device in the whole-house smart network needs to report data to the control center, the smart device scans to determine the IP address of the control center or virtual device in its subnet segment, and packages the data to be reported and sends it to the corresponding IP address. When the device corresponding to the IP address is a virtual device, after receiving the data packet, it transmits it to the control center through the communication link bound to the virtual device.
[0137] Furthermore, the step of enabling the control center to communicate with intelligent devices in the subnets accessing each routing device through the virtual device specifically includes:
[0138] When the control terminal accesses the whole-house smart network through any routing device in the whole-house smart network, it obtains a list of network devices in the accessed subnet segment, and the list of network devices includes smart devices in the current subnet segment;
[0139] The list of network devices is displayed in the human-machine interface of the control terminal so that users can perform interactive control of the smart devices through the list of network devices.
[0140] In the technical solution of the above implementation, after the control terminal accesses any subnet segment, it will only display smart devices located in the same subnet segment by default, so that users can interact and control nearby smart devices without having to search for the smart device to be controlled in a long list of devices.
[0141] Furthermore, obtaining the list of network devices in the accessed subnet segment specifically includes:
[0142] Scan the control center or its virtual device in the subnet segment to which it is connected;
[0143] Establish a communication connection with the control center or virtual device in the subnet segment to which it is connected;
[0144] The control center obtains a list of smart devices in the accessed subnet segment.
[0145] Furthermore, the network device list also includes a control hub or virtual device in the current subnet segment. The step of enabling the control hub to communicate with intelligent devices in the subnets accessing each routing device through the virtual device further includes:
[0146] The control terminal receives user operations on the control center or virtual device through the human-machine interface to perform the operation of switching subnet segments;
[0147] The target subnet segment is determined based on the user's operation. The target subnet segment is any other subnet segment in the whole-house smart network other than the subnet segment directly accessed by the control terminal.
[0148] Obtain the list of network devices in the target subnet segment;
[0149] The human-machine interface of the control terminal displays a list of network devices in the target subnet segment.
[0150] In the technical solution of the above embodiments, the control terminal can perform a subnet segment switching operation through the communication link between the control center and the virtual device in any subnet segment, so that the control terminal can obtain a list of network devices in any other subnet segment besides the subnet segment it has accessed, and then control the smart devices therein.
[0151] A second aspect of the present invention provides a routing device, including a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the cross-network segment device communication method in a whole-house smart scenario as described in any of the first aspects of the present invention.
[0152] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0153] As described above, these embodiments of the present invention do not exhaustively cover all details, nor do they limit the invention to the specific embodiments described. Clearly, many modifications and variations can be made based on the above description. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to effectively utilize the invention and its modifications. The invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for cross-network segment device communication in a whole-house smart home scenario, characterized in that, include: Register the control center of smart devices on any of the routing devices in the whole-house smart network, which is composed of several subnets established by several routing devices as subnet routes; The device information of the control center is synchronously registered with other routing devices in the whole-house smart network. The device information includes the network address information of the control center after it is registered with the whole-house smart network. Based on the device information of the control center, a virtual device of the control center is generated in each routing device in the whole-house smart network; The virtual device enables the control center to communicate with intelligent devices in the subnets connected to each routing device.
2. The cross-network segment device communication method in a whole-house smart home scenario according to claim 1, characterized in that, The specific steps for registering a smart device's control hub on any router in a whole-house smart network include: Establish a communication connection between the control center and any routing device in the whole-house smart network; The routing device connected to the control center is designated as the first routing device; Configure the IP address of the subnet segment established by the control center using the first routing device as the subnet route; The first routing device acquires and stores the device information of the control center, the device information including the IP address and MAC address of the control center; The first routing device registers the control hub as the control hub device for whole-house smart home systems.
3. The cross-network segment device communication method in a whole-house smart home scenario according to claim 2, characterized in that, The steps of synchronously registering the device information of the control center to other routing devices in the whole-house smart network specifically include: The first routing device packages the device information of the control center into a synchronization data packet; Starting from the first routing device, the synchronization data packet is transmitted level by level among the various gateway nodes of the whole-house smart network; Each routing device in the whole-house smart network receives, parses, and stores the device information of the control center in the synchronization data packet, so as to register the control center as the control center device of the whole-house smart network in the local database.
4. The cross-network segment device communication method in a whole-house smart home scenario according to claim 3, characterized in that, Starting from the first routing device, the steps of transmitting the synchronization data packet level by level among the various gateway nodes of the whole-house smart network specifically include: Identify a second routing device that is directly connected to the first routing device and serves as the parent or child node of the first routing device in the topology of the whole-house smart network. Determine whether the second routing device stores the device information of the control center; When the device information of the control center is not present in the second routing device, the synchronization data packet is pushed to the second routing device.
5. The cross-network segment device communication method in a whole-house smart home scenario according to claim 4, characterized in that, The steps of generating a virtual device for the control center in each routing device of the whole-house smart network based on the device information of the control center specifically include: After each second routing device registers the control hub as a whole-house smart control hub device in its local database, it extracts the network address of the control hub from the device information of the control hub. Generate a virtual device that points to the control center; Configure the virtual device with the IP address of the subnet segment where the current routing device is located; Establish a communication link from the virtual device to the network address; Bind the virtual device to the communication link.
6. The cross-network segment device communication method in a whole-house smart home scenario according to claim 5, characterized in that, The steps for establishing a communication link from the virtual device to the network address specifically include: Based on the shortest path first algorithm or the minimum delay first algorithm, at least one communication link connecting the virtual device and the control center is determined in the topology of the whole-house smart network; Identify the third routing device that serves as an intermediate routing node in the communication link; The third routing device is configured with routing parameters so that when it receives a data packet with the IP address of the control center or the virtual device as the source IP address, or with the IP address of the control center or the virtual device as the destination IP address, the third routing device forwards the data packet to the next-hop IP address of the communication link.
7. The cross-network segment device communication method in a whole-house smart home scenario according to claim 6, characterized in that, The steps for enabling the control center to communicate with intelligent devices in the subnets connected to various routing devices via the virtual device specifically include: When the control center needs to control any smart device, it obtains the IP address of the target smart device, which is the smart device that needs to be controlled. The target subnet segment where the target smart device is located is determined based on the IP address; Identify the virtual devices in the target subnet segment; Generate a data packet containing control instructions, the data packet including the IP addresses of the target smart device and the virtual device; The data packet is transmitted to the routing device where the virtual device is located via the communication link between the control center and the virtual device.
8. The cross-network segment device communication method in a whole-house smart home scenario according to claim 1, characterized in that, The steps for enabling the control center to communicate with intelligent devices in the subnets connected to various routing devices via the virtual device specifically include: When the control terminal accesses the whole-house smart network through any routing device in the whole-house smart network, it obtains a list of network devices in the accessed subnet segment, and the list of network devices includes smart devices in the current subnet segment; The list of network devices is displayed in the human-machine interface of the control terminal so that users can perform interactive control of the smart devices through the list of network devices.
9. The cross-network segment device communication method in a whole-house smart home scenario according to claim 8, characterized in that, The network device list also includes a control center or virtual device in the current subnet segment. The step of enabling the control center to communicate with intelligent devices in the subnets accessing each routing device through the virtual device further includes: The control terminal receives user operations on the control center or virtual device through the human-machine interface to perform the operation of switching subnet segments; The target subnet segment is determined based on the user's operation. The target subnet segment is any other subnet segment in the whole-house smart network other than the subnet segment directly accessed by the control terminal. Obtain the list of network devices in the target subnet segment; The human-machine interface of the control terminal displays a list of network devices in the target subnet segment.
10. A routing device, characterized in that, It includes a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the cross-network segment device communication method in a whole-house smart scenario as described in any one of claims 1-9.
Citation Information
Patent Citations
Method and device for controlling smart home system based on virtual router
CN117768258A
Multi-router LAN network aggregation method and device, storage medium and terminal
CN118101551A