Smart home system and control method of smart home system
Patent Information
- Application Number
- CN202310957902.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-07-31
AI Technical Summary
[0005]本发明解决现有技术中智能家居设备中硬件的模块化、可拓展能力较差的技术问题
[0023] (1) This solution uses the container concept to realize the modularization and expansion of smart home devices, which has great potential for software upgrades and function expansion in the later stage. At the same time, the maintenance cost is low, and modularization can better maintain the changes in demand.
Smart Images

Figure CN116880227B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home system technology, and more specifically, to a smart home system and a control method for a smart home system. Background Technology
[0002] With the rapid development of computer technology, network technology, control technology, and artificial intelligence, an intelligent society has become a development trend in the new century. Under this impetus, smart homes have also developed rapidly.
[0003] The current smart home architecture is generally centralized, meaning that smart devices do not perform any data processing locally; instead, all data is uploaded to a server. The server then performs data parsing, analysis, data tracking, value mining, and user behavior analysis. As the computing power of smart hardware increases, some computing power can be appropriately decentralized. The smart hardware can complete all data calculations before uploading the results. The server no longer needs to worry about the details of redundant data, focusing only on the calculation results. This effectively alleviates server resource constraints, saves costs, and increases efficiency.
[0004] However, in actual use, there is a problem: the modularity and expandability of hardware in existing smart home devices are poor. Summary of the Invention
[0005] This invention addresses the technical problem of poor modularity and expandability of hardware in existing smart home devices.
[0006] To address the aforementioned problems, the present invention provides a smart home system, comprising: a smart home device, the smart home device having at least one container and an operating system, the container containing a program, and the program running in the container and controlled by the container, the operating system being used to control the container; wherein, the smart home device has at least one container for controlling the edge computing program.
[0007] Compared with existing technologies, the technical effects achieved by adopting this solution are as follows: This solution realizes the modularization and expansion of smart home devices through the concept of containers, which provides great room for future software upgrades and functional expansion. At the same time, the maintenance cost is low, and modularization can better maintain the device in response to changes in demand. Edge computing is used for data processing and calculation. The modularization supports edge computing, maximizing the use of the computing resources of the hardware modules to further process and analyze the data. This can reduce server load, remove invalid data, reduce costs and increase efficiency, improve application performance and response speed, and reduce network bandwidth pressure.
[0008] In one embodiment of the present invention, the container is provided with a corresponding ID and IP address; when multiple containers under the operating system need to communicate, communication is achieved based on the ID and / or IP address.
[0009] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: inter-container communication is conducted via IP addresses, and each container has an independent IP address, which facilitates addressing on the Internet; at the same time, each container is assigned an ID, and when containers need to communicate, the container that needs to communicate can be determined based on the ID, thereby realizing communication.
[0010] In one embodiment of the present invention, when there are two or more smart home devices in a smart home system, the multiple smart home systems communicate with each other through a router and a gateway.
[0011] Compared to existing technologies, the technical advantages of this solution are: communication between containers is via local area network (LAN), avoiding direct internet access unless absolutely necessary, thus reducing the risk of network congestion. Assuming a smart home system, one smart home device is designated as the first smart home device, equipped with a first operating system and a first container; the other smart home device is designated as the second smart home device, equipped with a second operating system and a second container. To enable communication between the first and second containers, the first container first sends data to the first operating system. The first operating system then operates the gateway of the first hardware module within the first smart home device. The gateway sends the data to a router, which, after IP address lookup, sends the data back to the gateway, and then to the second operating system. The second operating system then returns the data to the second container that needs to receive it.
[0012] In one embodiment of the present invention, the program includes an edge computing program, a networking program, and a monitoring program.
[0013] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: The programs in this invention include, but are not limited to, edge computing, networking, monitoring, surveillance, remote control, alarm, and remote control.
[0014] In one embodiment of the present invention, the smart home device is one or more of the following: air conditioner, television, refrigerator, door, audio-visual equipment, lighting equipment, curtains, rice cooker, and monitoring equipment.
[0015] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: The smart home devices in this invention include, but are not limited to, air conditioners, televisions, refrigerators, doors, audio and video equipment, lighting equipment, curtains, rice cookers, monitoring equipment, alarms, gateways, etc.
[0016] In another aspect, embodiments of the present invention also provide a control method for a smart home system, the control method comprising: an operating system sending control instructions to a container; the container receiving the control instructions and controlling the program to run according to the control instructions.
[0017] Compared to existing technologies, the technical advantages of this solution are as follows: Since the operating system is the primary resource controller, it controls various containers, which serve as the carriers of the various functions / programs of smart home devices. When the operating system needs to control a specific function / program, it does so by controlling the container containing that function / program. Loading each function / program into its own container facilitates future updates, additions, and deletions. The container concept enables modularization and scalability of smart home devices, providing significant potential for future software upgrades and functional expansion.
[0018] In one embodiment of the present invention, the control method further includes: acquiring all currently running containers and determining the container to be deleted; stopping the container to be deleted; and deleting the container to be deleted.
[0019] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: For the deletion of a certain function / program, the purpose of deleting the function / program can be achieved by deleting the container that contains the function / program, or by deleting the function / program loaded in the container.
[0020] In one embodiment of the present invention, the control method further includes: obtaining the required image from the image library; starting the container and installing the image into the container.
[0021] Compared to existing technologies, the technical advantages of this solution are as follows: For the installation of a specific function / program, the required image can be pulled from Docker Hub or other image repositories using the `get` command, and a new container can be started on the local host using the `start` command, deploying the image into the container. The modular nature of container technology makes application deployment and maintenance simpler, more flexible, and more efficient.
[0022] By adopting the technical solution of the present invention, the following technical effects can be achieved:
[0023] (1) This solution uses the container concept to realize the modularization and expansion of smart home devices, which has great potential for software upgrades and function expansion in the later stage. At the same time, the maintenance cost is low, and modularization can better maintain the changes in demand.
[0024] (2) Edge computing is used for data processing calculations. It supports edge computing on a modular basis, maximizes the use of the computing resources of the hardware module, and further processes and analyzes the data. It can reduce server load, remove invalid data, reduce costs and increase efficiency, improve the performance and response speed of applications, and reduce network bandwidth pressure.
[0025] (3) The communication method between containers is local area network communication. They do not directly access the Internet unless necessary, so as to reduce the risk of network congestion. Attached Figure Description
[0026] Figure 1 This is a flowchart of a control method for a smart home system provided in Embodiment 2 of the present invention. Detailed Implementation
[0027] To make the above-mentioned objectives, features, and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] Example 1
[0029] This invention provides a smart home system, comprising: a smart home device, the smart home device having at least one container and an operating system, the container containing a program that runs in the container and is controlled by the container, and the operating system for controlling the container; wherein, the smart home device has at least one container for controlling the edge computing program.
[0030] In one specific embodiment, the operating system is the primary resource controller, managing the various containers. These containers serve as the carriers of the various functions / programs of the smart home devices, with a one-to-one correspondence between the operating system and the smart home devices. For example, if a smart home device has a network connectivity function / program, then in this embodiment, this function / program takes the form of a container A containing the program for this network connectivity function. This network connectivity program runs within container A, rather than traditionally running on top of the operating system. Loading each function / program into its respective container facilitates later updates, additions, and deletions. This solution uses the container concept to achieve modularity and scalability of smart home devices, offering significant flexibility for future software upgrades and functional expansions, while maintaining low costs. Modularity also allows for better maintenance in response to changing needs.
[0031] Container A, like other containers in relation to the operating system, serves as a platform to host a specific function / program. Container A can be copied, meaning one or more smart home device networking functions / programs can be added to the operating system, creating two or more containers A, thus giving the operating system multiple networking functions / programs. To delete a networking function / program, simply delete the container containing that function / program. For example, to delete the initial networking function, which is the networking program hosted by container A, simply delete container A.
[0032] In this embodiment, the smart home device includes at least one container for controlling the edge computing program. Edge computing is a distributed computing model that pushes computing resources and data storage to the network edge to reduce data transmission and processing latency within the network. This model can improve application performance and response speed, and reduce network bandwidth pressure. Specifically, in this embodiment, the smart home device has at least one container running an edge computing program. Edge computing is used for data processing calculations. By supporting edge computing on a modular basis, it maximizes the utilization of the hardware module's computing resources, further processing and analyzing data. This can reduce server load, remove invalid data, reduce costs and increase efficiency, improve application performance and response speed, and reduce network bandwidth pressure. Moreover, the more smart home devices connected, the more obvious the advantages of setting up edge computing become.
[0033] For example, edge computing can be incorporated into containers and stored as a functional module in a separate container. Data generated by smart hardware can be sent to the corresponding container for edge computing via IP address and router. Edge computing can then perform data processing and analysis. After completion, the data can be sent to the server via the network, reducing server load and improving efficiency.
[0034] An operating system is a type of software in a computer system that manages computer hardware and software resources and provides a simple, consistent interface for applications. The main functions of an operating system include process management, memory management, file system management, and device driver management. Common operating systems include Windows, macOS, and Linux. The operating system is a crucial component of a computer system, directly impacting the computer's performance and stability.
[0035] Furthermore, containers are assigned corresponding IDs and IP addresses; when multiple containers under the operating system need to communicate, communication is achieved based on the ID and / or IP address.
[0036] Specifically, an IP address is an abbreviation for Internet Protocol address, and it is a unique identifier for a computer within a network. It identifies a device's location on the network, similar to a user's address in real life. An IP address consists of 32 binary bits, usually represented in dotted decimal notation. IPv4 addresses are currently the most commonly used IP address format, represented by four dotted decimal numbers, each ranging from 0 to 255. IPv6 addresses are represented by eight groups of four-digit hexadecimal numbers.
[0037] Inter-container communication is conducted via IP addresses, and each container has a unique IP address, which facilitates addressing on the Internet. At the same time, each container is assigned an ID, so when containers need to communicate, the ID can be used to identify the container to communicate with, thus enabling communication.
[0038] Furthermore, when there are two or more smart home devices in a smart home system, the multiple smart home systems communicate with each other through routers and gateways.
[0039] Specifically, communication between containers is conducted via local area network (LAN), avoiding direct internet access unless absolutely necessary to reduce the risk of network congestion. For example, in a smart home system with two devices, let's assume one is the first smart home device, equipped with a first operating system and a first container, and the other is the second smart home device, equipped with a second operating system and a second container. To enable communication between the first and second containers, the first container first sends data to the first operating system. The first operating system then operates the gateway of the first hardware module within the first smart home device. The gateway sends the data to the router, which, after IP address lookup, sends the data back to the gateway, and then to the second operating system. The second operating system then returns the data to the second container that needs to receive it.
[0040] For example, suppose there is a third smart home device in a smart home system. This third smart home device has a third operating system, a third container, and a fourth container. In order to enable communication between the third container and the fourth container, communication between the containers is achieved based on the IDs of the third container and the fourth container. That is, the third operating system can send data directly from the third container to the ID of the fourth container, or the fourth operating system can send data directly from the third container to the ID of the third container without leaving the third operating system, thereby avoiding the occupation of communication channels and achieving resource conservation.
[0041] Furthermore, the program includes edge computing programs, networking programs, and monitoring programs.
[0042] Specifically, the programs in this invention include, but are not limited to: edge computing, networking, monitoring, surveillance, remote control, alarm, and remote control.
[0043] Furthermore, smart home devices include one or more of the following: air conditioners, televisions, refrigerators, doors, audio-visual equipment, lighting equipment, curtains, rice cookers, and monitoring equipment.
[0044] Specifically, the smart home devices in this invention include, but are not limited to: air conditioners, televisions, refrigerators, doors, audio-visual equipment, lighting equipment, curtains, rice cookers, monitoring equipment, alarms, gateways, etc.
[0045]
Example 2
[0046] See Figure 1 The present invention also provides a control method for a smart home system, used in a smart home system, the control method comprising:
[0047] The operating system sends control commands to the container;
[0048] The container receives control commands and controls the program to run according to the control commands.
[0049] Specifically, since the operating system is the primary resource controller, it controls the various containers, which are the carriers of the functions / programs of smart home devices. When the operating system needs to control a certain function / program, it does so by controlling the container that contains that function / program. Loading each function / program into a container facilitates later updates, additions, and deletions. This container concept enables the modularization and scalability of smart home devices, providing significant potential for future software upgrades and feature expansion.
[0050] Furthermore, control methods also include:
[0051] Retrieve all currently running containers and identify those to be deleted;
[0052] Stop the operation on the container to be deleted;
[0053] Perform the deletion operation on the container to be deleted.
[0054] Specifically, to delete a function / program, you can do so by deleting the container that contains that function / program. The specific steps are: use the view command to list currently running containers, and identify the container to be deleted by its ID or name; use the stop command to stop the running container to be deleted, putting it into a stopped state; use the delete container command to delete the stopped container to be deleted, releasing the resources it occupied.
[0055] Alternatively, you can remove a feature / program loaded within a container. Specifically: use the view command to list currently running containers, identifying the container to be deleted by its ID or name; use the stop command to stop the running container, putting it into a stopped state; and use the delete image command to delete unwanted images, freeing up disk space.
[0056] Preferably, the `dockerps` command is used to obtain commands, the `dockerstop` command is used to start the container, the `dockerrm` command is used to delete the container, and the `dockerrmi` command is used to delete the image; detailed operation code is as follows:
[0057] 1. To view currently running containers: dockerps;
[0058] 2. Stop the container: dockerstop<container_id> ;
[0059] 3. Delete the container: dockerrm<container_id> ;
[0060] 4. Delete the image: dockerrmi<image_id> ;
[0061] Here, container_id represents the ID of the container to be deleted, and image_id represents the ID of the image in the container to be deleted.
[0062] Furthermore, control methods also include:
[0063] Obtain the required images from the image repository;
[0064] Start the container and install the image into it.
[0065] Specifically, for the installation of a particular function / program, the `get` command can be used to pull the required image from Docker Hub or other image repositories, and the `start` command can be used to launch a new container on the local host, deploying the image into the container. An image is a lightweight, executable, standalone software package used to package a software runtime environment and the software developed based on that environment. It contains everything needed to run a particular software, including code, runtime, libraries, environment variables, and configuration files. An image can be considered a function / program in this solution.
[0066] Preferably, the command is obtained via `dockerpull` and the startup command is obtained via `dockerrun`; detailed operation code is as follows:
[0067] 1. Pull the image: docker pull<image_name> : <tag>;
[0068] 2. Run the container: docker run<image_name> : <tag>.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / tag> < / tag>
Claims
1. A smart home system, characterized in that, The smart home system includes: A smart home device, wherein the smart home device has at least one container and an operating system, wherein the container contains a program, and the program runs in the container and is controlled by the container, and the operating system is used to control the container; The smart home device includes at least one container for controlling the edge computing program; When there are two or more smart home devices in the smart home system, the multiple smart home systems communicate with each other through routers and gateways; Retrieve all currently running containers and identify those to be deleted; Perform a stop operation on the container to be deleted; Perform a deletion operation on the container to be deleted; Obtain the required image from the image repository; Start the container and install the image into the container.
2. The smart home system according to claim 1, characterized in that, The container is assigned a corresponding ID and IP address; When multiple containers under the operating system need to communicate, communication is achieved based on the ID and / or the IP address.
3. The smart home system according to claim 1, characterized in that, The program includes the edge computing program, the networking program, and the monitoring program.
4. The smart home system according to claim 1, characterized in that, The smart home devices are one or more of the following: air conditioners, televisions, refrigerators, doors, audio-visual equipment, lighting equipment, curtains, rice cookers, and monitoring equipment.
5. A control method for a smart home system, characterized in that, For use in the smart home system according to any one of claims 1-4, the control method includes: The operating system sends control commands to the container; The container receives the control instructions and controls the program to run according to the control instructions.
Citation Information
Patent Citations
Container-based edge internet of things proxy device
CN111866084A