Method and device for realizing visual intelligent home control based on distribution, processor and computer readable storage medium thereof

By establishing a message publishing and subscription service framework for gateways and central control screens within the local area network, offline control of smart home devices is realized, solving the problem of network communication failure in existing technologies and improving the system's flexibility and user experience.

CN122160205APending Publication Date: 2026-06-05SIMON ELECTRIC CHINA

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SIMON ELECTRIC CHINA
Filing Date
2024-12-05
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing smart home control systems suffer from high resource consumption, low customization, poor user interaction flexibility, high cost, and insufficient compatibility and convenience between the central control screen and devices during network outages.

Method used

A distributed approach to visualized smart home control is adopted. A message publishing and subscription service framework is established within the local area network through a gateway and a central control screen to realize device information synchronization and control command issuance. It supports offline control within the local area network and communicates through a local private protocol.

Benefits of technology

It enables flexible addition and removal of central control screens within the local area network and rapid connection, reduces the overall solution cost, improves user experience and expands the scope of system usage scenarios, and provides a low-cost, high-efficiency control method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160205A_ABST
    Figure CN122160205A_ABST
Patent Text Reader

Abstract

The application relates to a method for realizing visual smart home control based on distribution, which comprises the following steps: accessing a local area network, configuring a host name and a port number, starting a gateway device discovery service, and establishing communication between both parties; respectively establishing a message publishing and subscribing service framework; issuing a mutual publishing and subscribing message instruction; publishing a message instruction according to actual operation requirements, and issuing a device control instruction according to the subscribed message. The application also relates to a device for realizing visual smart home control based on distribution, a processor and a computer readable storage medium thereof. The method, the device, the processor and the computer readable storage medium for realizing visual smart home control based on distribution improve the use scene category of the smart home system, improve the use flexibility, and reduce the overall scheme cost. The user can flexibly increase the number of central control screens according to requirements, realizes rapid automatic connection and distributed control, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of control systems for smart gateways, smart central control systems, and smart homes, and particularly to the field of smart control products for scenarios such as homes and hotels. Specifically, it refers to a method, device, processor, and computer-readable storage medium for realizing visualized smart home control based on distributed systems. Background Technology

[0002] Currently, the visual control of smart homes is basically based on a central control screen or tablet computer. Each central control screen is an independent entity that connects to a cloud platform via wired or Wi-Fi network. It obtains the status information of smart home devices from the platform and issues control commands through touch screen operation or voice commands.

[0003] This topology, where the gateway and central control screen are each connected to their respective platforms, results in a broken communication link during network outages (i.e., when there is no external network), causing the smart device control to fail. Each central control screen requires independent platform authorization, which is resource-intensive and leads to higher overall costs.

[0004] Tablet computers control devices only through the installation of apps. They are not proprietary central control devices, have low customization for smart home control, their size does not match the wall panel, they lack rich external control interfaces, and are less convenient to use than central control screens. They also have poor user interaction flexibility and higher unit cost. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, device, processor and computer-readable storage medium for distributed visualization smart home control that meets the requirements of low cost, high efficiency and wide applicability.

[0006] To achieve the above objectives, the present invention provides a method, apparatus, processor, and computer-readable storage medium for distributed visualization-based smart home control as follows: The main feature of this method for implementing visual smart home control based on distributed systems is that the method includes the following steps: (1) The gateway and the central control screen are connected to the local area network. The gateway is configured with the hostname and port number. The central control screen enables the gateway device discovery service, finds the specified hostname, and the two parties establish communication to obtain the device IP address and related information. (2) The gateway and the central control screen shall each establish a message publishing and subscription service framework and maintain the normal operation of the message channel; (3) The gateway and the central control screen publish and subscribe to each other's message commands based on information synchronization requirements and control command issuance requirements; (4) The gateway and central control screen issue message instructions according to actual operation requirements, and complete the issuance of device control instructions according to the subscribed messages.

[0007] Preferably, step (1) specifically includes the following steps: (1.1) The gateway and central control screen are connected to the local area network via wired network or Wi-Fi network; (1.2) Configure the gateway with hostname and port number, and start the discovery service process to send messages in the local area network by broadcast; (1.3) The gateway waits for other devices in the network to discover this host; at the same time, the central control screen starts the service discovery process to search for devices with specific hostnames and port numbers in the local area network; (1.4) The central control screen obtains the broadcast message of the gateway hostname, starts the service resolution process, and obtains the IP address of the target gateway; (1.5) The central control screen finds the specified hostname, obtains the gateway IP address, and transmits its own IP address to the gateway; at the same time, the gateway obtains the network address of the central control screen; (1.6) The gateway and the central control screen establish communication within the local area network.

[0008] Preferably, step (2) specifically includes the following steps: (2.1) The gateway and the central control screen establish a device information and command information synchronization service based on network addresses; (2.2) The gateway acts as a message forwarding center in the local area network and establishes message brokerage services; (2.3) The gateway establishes a status information publishing service based on the local area network; the central control screen establishes a status information subscription service based on the local area network; (2.4) The central control screen establishes a control information publishing service based on the local area network; the gateway establishes a control information subscription service based on the local area network; (2.5) The gateway establishes a keep-alive characteristic signal publishing service with the central control screen based on the local area network; the central control screen establishes a keep-alive characteristic signal subscription service with the gateway based on the local area network; (2.6) The central control screen periodically checks the keep-alive characteristic signal of the gateway to determine whether the communication with the gateway is normal. If it is normal, communication is carried out; otherwise, the abnormal handling procedure is followed.

[0009] Preferably, step (3) specifically includes the following steps: (3.1) The gateway publishes room information in the smart home system based on the local area network; the central control screen subscribes to the room information in the smart home system and visualizes the information through the screen; (3.2) The gateway publishes the status information of smart devices based on the local area network; the central control screen subscribes to the status information of smart devices and visualizes the information through the screen; (3.3) The gateway publishes the established scene information based on the local area network; the central control screen subscribes to the established scene information and visualizes the information through the screen; (3.4) The central control screen publishes control information generated by touch screen operation or voice control commands based on the local area network; the gateway subscribes to device and scene control information issued by the central control screen through touch screen or voice control commands based on the local area network.

[0010] Preferably, step (4) specifically includes the following steps: (4.1) The gateway stores device and scene control information in the gateway's local storage and synchronizes the latest information when there are device or scene adjustments; (4.2) The gateway subscribes to the device and scene control information issued by the central control screen through the touch screen or voice control commands based on the local area network; if the external network is connected normally, continue to step (4.3); if the external network is not connected, continue to step (4.5). (4.3) The gateway forwards the control message to the platform; the platform obtains the control command, issues specific control command information to the gateway according to the control logic, and continues to step (4.4). (4.4) After receiving the platform control command, the gateway sends the control command to the specific functional sub-device to complete the control operation; (4.5) The gateway directly retrieves the device and scene information and control logic stored in the local ROM, performs local control analysis, and continues to step (4.6). (4.6) After the gateway derives the control command based on the local information, it sends the control command to the specific functional sub-device to complete the control operation.

[0011] Preferably, step (2.6) specifically includes the following steps: (2.6.1) The gateway and the central control screen have established a communication link and subscribed to message services for each other; (2.6.2) If the central control screen receives the gateway keep-alive characteristic signal at specific intervals, it indicates that the communication between the two is normal and the message publishing and subscription status is maintained; (2.6.3) If any central control screen does not receive the gateway keep-alive feature signal at a specific interval, the communication between the two is abnormal, and the central control screen re-establishes the device information and command information synchronization service based on the network address; (2.6.4) After the central control screen re-establishes the device information and command information synchronization service, it reconnects to the gateway. If it still fails after a specified number of attempts, it will be judged as a timeout and the user will be reminded to manually handle the connection problem.

[0012] The main feature of this device, which implements visual smart home control based on distributed systems, is that the device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the above-described method for distributed visualization and smart home control.

[0013] The processor for distributed visualization of smart home control is characterized in that it is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the distributed visualization of smart home control method described above.

[0014] The main feature of this computer-readable storage medium is that it stores a computer program thereon, which can be executed by a processor to implement the various steps of the above-described method for distributed visualization and smart home control.

[0015] This invention employs a method, apparatus, processor, and computer-readable storage medium for distributed, visualized smart home control. The gateway and central control screen can connect not only to the platform but also via a local proprietary protocol, enabling local network communication without cloud access. This allows for offline control of the smart home system from the central control screen. Local central control screens can be added or removed at will, directly interacting with the gateway without requiring registration of device information on the platform. This expands the application scenarios and flexibility of the smart home system while reducing overall system costs. Users can flexibly increase the number of central control screens as needed, achieving rapid automatic connection and distributed control, thus enhancing the user experience. This provides a low-cost, high-efficiency control method for smart homes, improving the product's market competitiveness. Attached Figure Description

[0016] Figure 1 This is a schematic diagram illustrating an application scenario of the distributed visualization smart home control method of the present invention.

[0017] Figure 2 This is a flowchart of the method for implementing visual smart home control based on distributed systems according to the present invention.

[0018] Figure 3 This is a flowchart illustrating the implementation process of step S20 of the distributed visualization smart home control method of the present invention.

[0019] Figure 4 This is a flowchart illustrating the implementation process of step S21 of the distributed visualization smart home control method of the present invention.

[0020] Figure 5This is a flowchart illustrating the implementation process of step S22 of the method for implementing visual smart home control based on distributed systems according to the present invention.

[0021] Figure 6 This is a flowchart illustrating the implementation process of step S23 of the method for implementing visual smart home control based on distributed systems according to the present invention.

[0022] Figure 7 This is a flowchart illustrating the implementation process of step S219 of the method for implementing visual smart home control based on distributed systems according to the present invention. Detailed Implementation

[0023] To more clearly describe the technical content of the present invention, the following description is provided in conjunction with specific embodiments.

[0024] The present invention provides a method for distributed visualization and smart home control, comprising the following steps: (1) The gateway and the central control screen are connected to the local area network. The gateway is configured with the hostname and port number. The central control screen enables the gateway device discovery service, finds the specified hostname, and the two parties establish communication to obtain the device IP address and related information. (2) The gateway and the central control screen shall each establish a message publishing and subscription service framework and maintain the normal operation of the message channel; (3) The gateway and the central control screen publish and subscribe to each other's message commands based on information synchronization requirements and control command issuance requirements; (4) The gateway and central control screen issue message instructions according to actual operation requirements, and complete the issuance of device control instructions according to the subscribed messages.

[0025] In a preferred embodiment of the present invention, step (1) specifically includes the following steps: (1.1) The gateway and central control screen are connected to the local area network via wired network or Wi-Fi network; (1.2) Configure the gateway with hostname and port number, and start the discovery service process to send messages in the local area network by broadcast; (1.3) The gateway waits for other devices in the network to discover this host; at the same time, the central control screen starts the service discovery process to search for devices with specific hostnames and port numbers in the local area network; (1.4) The central control screen obtains the broadcast message of the gateway hostname, starts the service resolution process, and obtains the IP address of the target gateway; (1.5) The central control screen finds the specified hostname, obtains the gateway IP address, and transmits its own IP address to the gateway; at the same time, the gateway obtains the network address of the central control screen; (1.6) The gateway and the central control screen establish communication within the local area network.

[0026] In a preferred embodiment of the present invention, step (2) specifically includes the following steps: (2.1) The gateway and the central control screen establish a device information and command information synchronization service based on network addresses; (2.2) The gateway acts as a message forwarding center in the local area network and establishes message brokerage services; (2.3) The gateway establishes a status information publishing service based on the local area network; the central control screen establishes a status information subscription service based on the local area network; (2.4) The central control screen establishes a control information publishing service based on the local area network; the gateway establishes a control information subscription service based on the local area network; (2.5) The gateway establishes a keep-alive characteristic signal publishing service with the central control screen based on the local area network; the central control screen establishes a keep-alive characteristic signal subscription service with the gateway based on the local area network; (2.6) The central control screen periodically checks the keep-alive characteristic signal of the gateway to determine whether the communication with the gateway is normal. If it is normal, communication is carried out; otherwise, the abnormal handling procedure is followed.

[0027] In a preferred embodiment of the present invention, step (3) specifically includes the following steps: (3.1) The gateway publishes room information in the smart home system based on the local area network; the central control screen subscribes to the room information in the smart home system and visualizes the information through the screen; (3.2) The gateway publishes the status information of smart devices based on the local area network; the central control screen subscribes to the status information of smart devices and visualizes the information through the screen; (3.3) The gateway publishes the established scene information based on the local area network; the central control screen subscribes to the established scene information and visualizes the information through the screen; (3.4) The central control screen publishes control information generated by touch screen operation or voice control commands based on the local area network; the gateway subscribes to device and scene control information issued by the central control screen through touch screen or voice control commands based on the local area network.

[0028] In a preferred embodiment of the present invention, step (4) specifically includes the following steps: (4.1) The gateway stores device and scene control information in the gateway's local storage and synchronizes the latest information when there are device or scene adjustments; (4.2) The gateway subscribes to the device and scene control information issued by the central control screen through the touch screen or voice control commands based on the local area network; if the external network is connected normally, continue to step (4.3); if the external network is not connected, continue to step (4.5). (4.3) The gateway forwards the control message to the platform; the platform obtains the control command, issues specific control command information to the gateway according to the control logic, and continues to step (4.4). (4.4) After receiving the platform control command, the gateway sends the control command to the specific functional sub-device to complete the control operation; (4.5) The gateway directly retrieves the device and scene information and control logic stored in the local ROM, performs local control analysis, and continues to step (4.6). (4.6) After the gateway derives the control command based on the local information, it sends the control command to the specific functional sub-device to complete the control operation.

[0029] In a preferred embodiment of the present invention, step (2.6) specifically includes the following steps: (2.6.1) The gateway and the central control screen have established a communication link and subscribed to message services for each other; (2.6.2) If the central control screen receives the gateway keep-alive characteristic signal at specific intervals, it indicates that the communication between the two is normal and the message publishing and subscription status is maintained; (2.6.3) If any central control screen does not receive the gateway keep-alive feature signal at a specific interval, the communication between the two is abnormal, and the central control screen re-establishes the device information and command information synchronization service based on the network address; (2.6.4) After the central control screen re-establishes the device information and command information synchronization service, it reconnects to the gateway. If it still fails after a specified number of attempts, it will be judged as a timeout and the user will be reminded to manually handle the connection problem.

[0030] The present invention provides a device for distributed visualization and smart home control, wherein the device comprises: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the various steps of the above-described method for distributed visualization and smart home control.

[0031] The processor of the present invention for distributed visualization smart home control is configured to execute computer-executable instructions, which, when executed by the processor, implement the various steps of the above-described method for distributed visualization smart home control.

[0032] The computer-readable storage medium of the present invention stores a computer program thereon, which can be executed by a processor to implement the various steps of the above-described method for distributed visualization and smart home control.

[0033] In a specific embodiment of this invention, a distributed visual smart home control method is disclosed. The central control screen displays real-time visual information about rooms, devices, and scenes for status monitoring and control, enabling both online and offline dual-scenario control of the smart home system. The system is highly customizable, easy to maintain, and reduces external data transmission, thus enhancing security.

[0034] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application. Users can construct a communication topology using a wireless router, gateway, central control screen, functional sub-devices, and cloud platform. Figure 1 In the application scenario shown, the gateway and central control screen are connected to a local area network (LAN) built by a router. The gateway and central control screen can access the LAN via wired or Wi-Fi networks. Zigbee / BLE functional sub-devices are connected to the LAN through the gateway. Within the LAN, the gateway configures its own hostname based on the hostname and port number stored in its proprietary protocol. The central control screen enables the gateway's device discovery service, finds the specified hostname, and the two establish communication to obtain the device's IP address and related information. Both parties establish their own message publishing and subscription service frameworks and maintain the normal operation of the message channel. Based on information synchronization and control command issuance needs, both parties publish and subscribe to message commands through the proprietary protocol to complete communication. Both parties publish message commands according to actual operational needs. The gateway can receive control information sent by the central control screen via touch or voice commands and convert it into control commands to send to the functional sub-devices, thus controlling the functional sub-devices. The central control screen can receive device status information from the gateway and update the device status on the screen.

[0035] For specific implementation details, please refer to the following examples.

[0036] Figure 2 A flowchart of a distributed, visualized smart home control method provided in this application embodiment is shown below. Figure 2 As shown, the method includes steps S20, S21, S22, and S23.

[0037] In step S20, the gateway and the central control screen are connected to the local area network. The gateway is configured with a hostname, the central control screen enables the gateway device discovery service, finds the specified hostname, and the two establish communication to obtain the device IP address and related information.

[0038] In this application, the local area network (LAN) can be constructed by network devices such as wireless routers and access points (APs), and the gateway and central control screen can be connected to the LAN via either a wired network or a Wi-Fi network.

[0039] The gateway initiates a discovery service using a hostname defined by a private protocol, broadcasting messages across the local area network (LAN). These messages include information such as the name and service type. The central control panel can then initiate a service discovery process, listen for these broadcast messages on the LAN, and search for the agreed-upon hostname.

[0040] Once the central control screen finds the gateway with the specified hostname, it starts the service resolution process to obtain the IP address of the target gateway and informs the gateway of its own IP address. When both parties know each other's IP address, the device discovery process can be considered complete. In a local area network, the IP address is unique, and thus communication within the local area network can be established.

[0041] According to the example implementation, once the gateway and the central control screen obtain each other's device IP addresses in the local area network, they can establish communication and then switch to the publish and subscribe phase of the message service.

[0042] In step S21, both parties establish their own message publishing and subscription service frameworks.

[0043] The gateway and the central control screen each send messages to each other and subscribe to each other's messages to achieve message synchronization.

[0044] The messages published by the gateway can include topology room information, device status information, scene information, etc. The messages published by the central control screen can include touchscreen operation commands, voice control operation commands, etc.

[0045] When the gateway and the central control screen publish messages, they also subscribe to each other's service information in real time. This can be done through a message channel. The two parties can build many message channels for the transmission of different information.

[0046] To ensure the normal operation of the message channel between the gateway and the central control screen, the central control screen also requires the gateway to subscribe to a keep-alive feature signal, which can be used to confirm the normality of the message channel between the two through periodic heartbeat packets.

[0047] According to the embodiment, after the gateway and the central control screen have completed the establishment of the channel for message publishing and subscription, specific instructions can be issued.

[0048] In step S22, both parties publish and subscribe to message commands based on information synchronization requirements and control command issuance requirements.

[0049] Information synchronization refers to information published by the gateway and subscribed to by the central control screen. This information can include the gateway's heartbeat information and the status information of functional sub-devices, such as the on / off status of switches, the opening and closing status of curtains, and the temperature of air conditioners. This information is synchronized to the central control screen and displayed visually on the screen, making it easier for users to know and control the devices according to their status. Compared with traditional indicator light displays, this is more centralized and convenient.

[0050] Control commands are issued by the central control screen and subscribed to by the gateway. This information can be used for direct user control of devices and scenes via a visual interface on the touchscreen, or as control commands issued via voice. Examples include commands to turn on a switch, open the curtains, or turn on the air conditioner.

[0051] According to the embodiment, the gateway can synchronize the room, device, and scene status of the smart home system to the central control screen, which then displays the information visually. The central control screen can also send device and scene control commands to the gateway through a visual interface and voice commands, thus establishing a synchronization and control path for smart home information based on a local area network.

[0052] In step S23, the gateway and the central control screen issue message instructions according to actual operational needs, and complete the distribution of device control instructions based on the subscribed messages.

[0053] When the status of a functional sub-device changes, it will be transmitted to the gateway via Zigbee / BLE signals. The gateway will then publish the message through the local area network and synchronize it to the central control screen. After subscribing to this information, the central control screen will change the device status on its screen.

[0054] Users issue control commands via touch or voice on the central control screen. The central control screen then publishes the control information within the local area network. The gateway subscribes to this information and, depending on whether there is an external network connection, completes online and offline control of functional sub-devices or scenarios.

[0055] This application utilizes a discovery and message communication method built within a local area network (LAN) by a gateway and a central control screen. This enables local network communication between the two without requiring a cloud connection, allowing the central control screen to control smart home devices offline. Local central control screens can be added or removed at will, directly interacting with the gateway without needing to register device information on the platform. This expands the application scenarios and flexibility of the smart home system, while reducing overall solution costs. Users can flexibly increase the number of central control screens as needed, achieving rapid automatic connection and distributed control, thus enhancing the user experience.

[0056] According to some embodiments, reference Figure 3 Step S20 can be achieved through steps S201, S202, S203, S204, S205, S206, S207, and S208.

[0057] In step S201, the gateway and the central control screen are connected to the same local area network, mainly to ensure that both are on the same network segment, and can be connected via wired network or Wi-Fi network.

[0058] According to the example embodiment, the gateway and central control screen can have their IP addresses assigned directly by the router via DHCP, or they can be manually configured with IP addresses. However, it is not necessary to set specific IP addresses, as long as they are on the same network segment as the router. This application's device discovery does not rely on specific IP addresses, reducing the complexity of construction.

[0059] In steps S202 and S203, the gateway configures the network hostname and network port number, starts the discovery service process, and prepares to be discovered by the central control screen. Simultaneously, it sends a message containing the hostname, IP address, and other information to the broadcast address, broadcasting a message to all devices within the local area network, declaring its identity and IP address.

[0060] In step S204, the central control screen starts the service discovery process, receives broadcast messages, and searches for devices with specific hostnames and port numbers in the local area network. Because it is a broadcast message, all devices in the local area network can receive it.

[0061] In step S205, the central control screen obtains the broadcast message of the gateway hostname, and then starts the service resolution process to obtain the IP address of the target gateway.

[0062] In steps S206 and S207, after obtaining the gateway IP address, the central control screen can send its own IP address to the gateway IP address via the local area network.

[0063] Once both parties know each other's IP address in step S208, the device discovery process can be considered complete. Since IP addresses are unique within a local area network, communication within the local area network can be established.

[0064] According to some embodiments, reference Figure 4 Step S21 can be achieved through steps S211, S212, S213, S214, S215, S216, S217, S218, and S219.

[0065] In step S211, both the gateway and the central control screen have obtained each other's IP addresses, allowing them to establish a device information and command information synchronization service based on the network addresses. This service allows the gateway to act as a message forwarding intermediary, and the gateway and the central control screen can publish and subscribe to messages to each other, thus constructing an information synchronization method.

[0066] As described in S211, in step S212, the gateway, acting as the message forwarding center in the local area network, establishes a message broker service to forward messages sent by the gateway and the central control screen to the target device.

[0067] As described in S211, in steps S213 and S214, the gateway establishes a status information publishing service for the smart home system based on the local area network, and the central control screen establishes a status information subscription service for the smart home system based on the local area network. The central control screen can obtain the device status information sent by the gateway in real time, such as the switch status, the on / off status and brightness of the lights, the temperature and fan speed of the air conditioner, etc.

[0068] As described in S211, in steps S215 and S216, the central control screen establishes a publishing service for control information in the smart home system based on the local area network, and the gateway establishes a subscription service for control information in the smart home system based on the local area network. The gateway can obtain control information issued by the central control side through the touch screen or voice commands in real time. Based on this distributed central control screen architecture, the commands can be issued by any central control screen in the system.

[0069] In steps S217 to S219, considering that the gateway and the central control screen need to interact with each other in real time and that the information channel between them needs to be kept normal at all times, the gateway establishes a keep-alive characteristic signal publishing service with the central control screen based on the local area network, and the central control screen establishes a keep-alive characteristic signal subscription service with the gateway based on the local area network. The central control screen periodically checks the keep-alive characteristic signal of the gateway to determine whether the communication with the gateway is normal. If it is normal, communication is carried out; if it is abnormal, the abnormal handling process is followed.

[0070] According to some embodiments, reference Figure 7 S219 can be achieved through steps S2191, S2192, S2193, and S2194.

[0071] In step S2191, the gateway and the central control screen have established a communication link and subscribed to message services for each other. The two parties can synchronize the device status information, control command information and keep-alive characteristic signal information.

[0072] In step S2192, the central control screen receives the gateway's keep-alive characteristic signal at specific periodic intervals, indicating that communication between the two is normal and message publishing and subscription status is maintained. Each central control screen in the system receives the gateway's keep-alive characteristic signal to ensure that each link is normal.

[0073] In step S2193, if any central control screen does not receive the gateway keep-alive feature signal at a specific interval, it indicates that the communication between the two is abnormal. The central control screen then re-establishes the device information and command information synchronization service based on the network address.

[0074] In step S2194, the central control screen re-establishes the device information and command information synchronization service and then reconnects to the gateway. If it still fails after a specified number of attempts, a timeout is determined, and the user is reminded to manually handle the connection problem. Relevant information will be displayed on the screen. Based on the distributed topology, each central control screen is responsible for its own link with the gateway, and a problem with one central control screen will not cause other central control screens to malfunction.

[0075] According to some embodiments, reference Figure 5 Step S22 can be achieved through steps S221, S222, S223, S224, S225, S226, S227, and S228.

[0076] In steps S221 and S222, the gateway publishes room information from the smart home system via the local area network (LAN), and the central control screen subscribes to this room information via the LAN and displays it on the screen. Each central control screen can obtain all room information, and the user can then select the room to display on the screen according to their needs.

[0077] In steps S223 and S224, the gateway publishes smart device status information based on the local area network (LAN), and the central control screen subscribes to the smart device status information based on the LAN and visualizes the information on the screen. Each central control screen can obtain all device status information.

[0078] In steps S225 and S226, the gateway publishes the established scene information based on the local area network (LAN), and the central control screen subscribes to the established scene information based on the LAN, and visualizes the information on the screen. Each central control screen can obtain all the scene information, and the user can then select the scene to be displayed on the screen according to their needs.

[0079] In step S227, the central control screen publishes control information generated by the touchscreen operation based on the local area network, including device function points and scenarios. For example, signals for controlling the opening and closing of switches, adjusting the color of lights, opening and closing of curtains, adjusting the temperature of air conditioning, and execution control commands for some scenarios.

[0080] In step S228, the central control screen issues control information generated by voice commands via the local area network, including device functions and scenarios. The specific operation content is similar to that mentioned in S227, except that this step uses information issued via voice commands.

[0081] In step S229, the gateway subscribes to device and scene control information issued by the central control screen via touch screen or voice control commands based on the local area network.

[0082] The specific control method of the gateway over the device described in S23, according to some embodiments, refers to... Figure 6Step S23 can be achieved through steps S231, S232, S233, S234, S235, and S236.

[0083] In step S231, the gateway stores device and scene control information in its local storage chip and synchronizes the latest information when there are device or scene adjustments. The local storage chip can be a storage chip such as Nor Flash / Nand Flash / eMMC in the gateway system, used to store device firmware and user data. The device and scene control information is part of the user data, and this information can be read and written through the gateway's main chip and can be updated to the latest status in real time.

[0084] In step S232, the gateway subscribes to device and scene control information issued by the central control screen via touch screen or voice control commands based on the local area network, for use in subsequent command sending.

[0085] In steps S233 and S234, if the external network is normally connected, the gateway forwards the control message to the platform. The platform receives the control command and issues specific control command information to the gateway according to the control logic. When there is an external network connection, overall control is performed through the platform. After receiving the platform's control command, the gateway sends the control command to the specific functional sub-device to complete the control operation.

[0086] If the external network is down in steps S235 and S236, the gateway will directly retrieve the device and scene information and control logic stored in the local ROM to perform local control analysis. After the gateway derives the control command based on the local information, it will send the control command to the specific functional sub-device to complete the control operation.

[0087] This invention discloses a series of methods for gateways and central control screens to discover each other in a local area network, establish message subscriptions, establish keep-alive mechanisms, and establish online / offline control processes. It provides more specific methods for message publishing and subscription to complete communication, and offers concrete methods for establishing and implementing communication.

[0088] The distributed system of this invention refers to the ability of the central control screen, which acts as a gateway display and feedback device, to be flexibly deployed in space. Each central control screen communicates independently with the gateway and does not rely on the cloud. Each screen can obtain information from the gateway and send control commands to the gateway. The overall function will not be abnormal due to the problem of one screen. Central control screens can also be added flexibly at any time.

[0089] For the specific implementation scheme of this embodiment, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0090] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0091] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0092] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0093] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution device. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0094] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The corresponding program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.

[0095] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0096] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0097] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the 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.

[0098] This invention employs a method, apparatus, processor, and computer-readable storage medium for distributed, visualized smart home control. The gateway and central control screen can connect not only to the platform but also via a local proprietary protocol, enabling local network communication without cloud access. This allows for offline control of the smart home system from the central control screen. Local central control screens can be added or removed at will, directly interacting with the gateway without requiring registration of device information on the platform. This expands the application scenarios and flexibility of the smart home system while reducing overall system costs. Users can flexibly increase the number of central control screens as needed, achieving rapid automatic connection and distributed control, thus enhancing the user experience. This provides a low-cost, high-efficiency control method for smart homes, improving the product's market competitiveness.

[0099] In this specification, the invention has been described with reference to specific embodiments thereof. However, it will be apparent that various modifications and variations can be made without departing from the spirit and scope of the invention. Therefore, the specification and drawings should be considered illustrative rather than restrictive.

Claims

1. A method for implementing visual smart home control based on distributed systems, characterized in that, The method includes the following steps: (1) The gateway and the central control screen are connected to the local area network. The gateway is configured with the hostname and port number. The central control screen enables the gateway device discovery service, finds the specified hostname, and the two parties establish communication to obtain the device IP address and related information. (2) The gateway and the central control screen shall each establish a message publishing and subscription service framework and maintain the normal operation of the message channel; (3) The gateway and the central control screen publish and subscribe to each other's message commands based on information synchronization requirements and control command issuance requirements; (4) The gateway and central control screen issue message instructions according to actual operation requirements, and complete the issuance of device control instructions according to the subscribed messages.

2. The method for distributed visualization smart home control according to claim 1, characterized in that, Step (1) specifically includes the following steps: (1.1) The gateway and central control screen are connected to the local area network via wired network or Wi-Fi network; (1.2) Configure the gateway with hostname and port number, and start the discovery service process to send messages in the local area network by broadcast; (1.3) The gateway waits for other devices in the network to discover this host; at the same time, the central control screen starts the service discovery process to search for devices with specific hostnames and port numbers in the local area network; (1.4) The central control screen obtains the broadcast message of the gateway hostname, starts the service resolution process, and obtains the IP address of the target gateway; (1.5) The central control screen finds the specified hostname, obtains the gateway IP address, and transmits its own IP address to the gateway; at the same time, the gateway obtains the network address of the central control screen; (1.6) The gateway and the central control screen establish communication within the local area network.

3. The method for distributed visualization smart home control according to claim 1, characterized in that, Step (2) specifically includes the following steps: (2.1) The gateway and the central control screen establish a device information and command information synchronization service based on network addresses; (2.2) The gateway acts as a message forwarding center in the local area network and establishes message brokerage services; (2.3) The gateway establishes a status information publishing service based on the local area network; the central control screen establishes a status information subscription service based on the local area network; (2.4) The central control screen establishes a control information publishing service based on the local area network; the gateway establishes a control information subscription service based on the local area network; (2.5) The gateway establishes a keep-alive characteristic signal publishing service with the central control screen based on the local area network; the central control screen establishes a keep-alive characteristic signal subscription service with the gateway based on the local area network; (2.6) The central control screen periodically checks the keep-alive characteristic signal of the gateway to determine whether the communication with the gateway is normal. If it is normal, communication is carried out; otherwise, the abnormal handling procedure is followed.

4. The method for distributed visualization smart home control according to claim 1, characterized in that, Step (3) specifically includes the following steps: (3.1) The gateway publishes room information in the smart home system based on the local area network; the central control screen subscribes to the room information in the smart home system and visualizes the information through the screen; (3.2) The gateway publishes the status information of smart devices based on the local area network; the central control screen subscribes to the status information of smart devices and visualizes the information through the screen; (3.3) The gateway publishes the established scene information based on the local area network; the central control screen subscribes to the established scene information and visualizes the information through the screen; (3.4) The central control screen publishes control information generated by touch screen operation or voice control commands based on the local area network; the gateway subscribes to device and scene control information issued by the central control screen through touch screen or voice control commands based on the local area network.

5. The method for distributed visualization smart home control according to claim 1, characterized in that, Step (4) specifically includes the following steps: (4.1) The gateway stores device and scene control information in the gateway's local storage and synchronizes the latest information when there are device or scene adjustments; (4.2) The gateway subscribes to the device and scene control information issued by the central control screen through the touch screen or voice control commands based on the local area network; if the external network is connected normally, continue to step (4.3); if the external network is not connected, continue to step (4.5). (4.3) The gateway forwards the control message to the platform; the platform obtains the control command, issues specific control command information to the gateway according to the control logic, and continues to step (4.4). (4.4) After receiving the platform control command, the gateway sends the control command to the specific functional sub-device to complete the control operation; (4.5) The gateway directly retrieves the device and scene information and control logic stored in the local ROM, performs local control analysis, and continues to step (4.6). (4.6) After the gateway derives the control command based on the local information, it sends the control command to the specific functional sub-device to complete the control operation.

6. The method for distributed visualization smart home control according to claim 3, characterized in that, Step (2.6) specifically includes the following steps: (2.6.1) The gateway and the central control screen have established a communication link and subscribed to message services for each other; (2.6.2) If the central control screen receives the gateway keep-alive characteristic signal at specific intervals, it indicates that the communication between the two is normal and the message publishing and subscription status is maintained; (2.6.3) If any central control screen does not receive the gateway keep-alive feature signal at a specific interval, the communication between the two is abnormal, and the central control screen re-establishes the device information and command information synchronization service based on the network address; (2.6.4) After the central control screen re-establishes the device information and command information synchronization service, it reconnects to the gateway. If it still fails after a specified number of attempts, it will be judged as a timeout and the user will be reminded to manually handle the connection problem.

7. A device for realizing visual smart home control based on distributed systems, characterized in that, The device includes: A processor is configured to execute computer-executable instructions; The memory stores one or more computer-executable instructions, which, when executed by the processor, implement the steps of the method for distributed visualization smart home control as described in any one of claims 1 to 6.

8. A processor for implementing visual smart home control based on distributed processing, characterized in that, The processor is configured to execute computer-executable instructions, which, when executed by the processor, implement the steps of the method for distributed implementation of visual smart home control as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, It stores a computer program that can be executed by a processor to implement the steps of the distributed method for visual smart home control as described in any one of claims 1 to 6.