Home system and access method thereof, computer equipment and storage medium thereof

By synchronously maintaining the data of the gateway and server in the smart home system, judging the network environment using the access address, and obtaining home equipment data using appropriate access methods, solving the problem of data access delay in the smart home system, and realizing the use of different network environments fast access speed.

CN119109722AInactive Publication Date: 2024-12-10AIRBEST (SHENZHEN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411028765.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In smart home systems, home equipment data access is delayed due to server performance pressure, network unreliability and speed problems, resulting in long access delays, especially in different network environments.

Method used

By synchronizing and maintaining device-related data that can be directly accessed by the user terminal in the gateway and the server, using the gateway to generate status data and cache it by the server, judging the network environment based on the access address of the user terminal, using different access methods to obtain home equipment data, and building a network environment Pass through the channel to achieve fast control command transmission.

Benefits of technology

In different network environments, the access speed of user terminals is improved, the timeliness and access speed of home equipment data is ensured, and the network delay is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109722A_ABST
    Figure CN119109722A_ABST
Patent Text Reader

Abstract

The invention provides an access method of a home system. The home system comprises a user terminal, a gateway, and a plurality of home devices and a server which are in communication connection with the gateway. Comprising the following steps: when equipment data of home equipment changes, controlling a gateway to generate state data of the home equipment according to the equipment data, and controlling a server to cache the state data to obtain cache data; when an access request sent by a user terminal is acquired, acquiring a user access address according to the access request; when the user access address is the intranet address, accessing the gateway through the intranet address where the gateway is located so as to obtain state data; and when the user access address is an external network address, accessing the server to obtain cache data, and constructing a penetration channel between the gateway and the user terminal, so that the user terminal sends a plurality of control instructions for controlling the plurality of household devices to the gateway through the penetration channel. In addition, the invention also provides a home system and computer equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to a home system and an access method thereof, a computer device and a storage medium thereof. Background Art

[0002] The data of home devices in smart home systems are usually generated by servers. When a user APP needs to access it, it needs to first address it through the server, then read the data in the corresponding database from the server and return it to the APP after data processing. In order to solve the performance pressure problem of the server, the home device data is partially or completely generated by the corresponding gateway. However, it is still necessary to address it through the server first, and then access the corresponding gateway data. Due to the unreliability and speed problems of the home network, as well as the time problem of addressing, such access is usually slow and there will be a sense of delay. Summary of the invention

[0003] The present application provides a home system and an access method thereof, a computer device and a storage medium thereof, which ensures the access speed of the user terminal in different network access environments by synchronizing and maintaining device-related data that can be directly accessed by the user terminal in a gateway and a server.

[0004] In a first aspect, an embodiment of the present application provides an access method for a home system, the home system comprising a user terminal, a gateway, and a plurality of home appliances and a server respectively communicating with the gateway; the access method for the home system comprises: when device data of a home appliance changes, controlling the gateway to generate status data of the home appliance according to the device data, and controlling the server to cache the status data to obtain cached data; when obtaining an access request sent by a user terminal, obtaining a user access address according to the access request, the user access address being an external network address indicating that the user terminal sends an access request in an external network access environment, or an internal network address indicating that the user terminal sends an access request in an internal network access environment; when the user access address is an internal network address, accessing the gateway via the internal network address where the gateway is located to obtain the status data; when the user access address is an external network address, accessing the server to obtain the cached data, and constructing a penetration channel between the gateway and the user terminal, so that the user terminal can send a plurality of control instructions for controlling the plurality of home appliances to the gateway via the penetration channel.

[0005] In a second aspect, an embodiment of the present application provides a home system, which includes a gateway, a plurality of home appliances, a server, a user terminal, and a main control device, wherein the plurality of home appliances and the server are respectively connected to the gateway in communication; the main control device includes a data generation module, an access address acquisition module, a first data acquisition module, a second data acquisition module, and a channel construction module, and when the device data of the home appliance changes, the data generation module is used to control the gateway to generate the status data of the home appliance according to the device data, and control the server to cache the status data to obtain cached data; when obtaining an access request sent by a user terminal, the access address acquisition module is used to obtain the user access address according to the access request The user access address is an external network address indicating that the user terminal sends an access request in an external network access environment, or an internal network address indicating that the user terminal sends an access request in an internal network access environment; when the user access address is an internal network address, the first data acquisition module is used to access the gateway via the internal network address where the gateway is located to obtain the status data; when the user access address is an external network address, the second data acquisition module is used to access the server to obtain the cached data; the channel construction module is used to construct a penetration channel between the gateway and the user terminal, so that the user terminal can send a number of control instructions for controlling the number of home appliances to the gateway via the penetration channel.

[0006] In a third aspect, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the computer program to implement the above-mentioned home system access method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is executed to implement the above-mentioned home system access method.

[0008] The above-mentioned home system and its access method, computer device and its storage medium, when monitoring the change of device data of home equipment, generate corresponding status data through the gateway and cache it by the server to synchronously maintain the device-related data that can be directly accessed by the user terminal, and when obtaining an access request, determine the current access environment of the user terminal by obtaining the user access address of the user terminal, and obtain the current data of the home equipment through different access methods under different access environments, thereby ensuring the access speed of the user terminal in different network access environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0010] Figure 1 This is a first flow chart of the method for accessing a home system provided in an embodiment of the present application.

[0011] Figure 2 This is a second flow chart of the method for accessing a home system provided in an embodiment of the present application.

[0012] Figure 3 This is a third flow chart of the home system access method provided in an embodiment of the present application.

[0013] Figure 4 This is a fourth flow chart of the home system access method provided in an embodiment of the present application.

[0014] Figure 5 This is the fifth flow chart of the home system access method provided in the embodiment of the present application.

[0015] Figure 6 A schematic diagram of the structure of a home system provided in an embodiment of the present application.

[0016] Figure 7 A schematic diagram of a computer device that applies a method for accessing a home system provided in an embodiment of the present application.

[0017] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0019] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar planning objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate. In other words, the described embodiments are implemented according to an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations may also include other content. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to only those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0020] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0021] Please see Figure 1 , which is the first flow chart of the home system access method provided in an embodiment of the present application. The present application provides a home system access method. Among them, the home system includes a user terminal, a gateway, and a number of home appliances and servers respectively connected to the gateway for communication. The user terminal can be an application program, a smart terminal, etc. that can be operated by the user. Home appliances include but are not limited to televisions, air conditioners, water heaters, washing machines, etc. The home system access method can improve the access speed to the home system when the user needs to obtain the current data of the home appliances through the user terminal, and send control instructions to the corresponding home appliances to control the home appliances to execute the corresponding instructions. The home system access method includes steps S101-S104.

[0022] Step S101, when the device data of the home device changes, the control gateway generates the status data of the home device according to the device data, and controls the server to cache the status data to obtain cache data.

[0023] In step S101, the device data of the home appliance can change due to the user's operation of the home appliance. For example, when the home appliance is an air conditioner, the device data corresponding to the air conditioner can change by operating the control components such as the remote control configured therein, or by operating the smart phone connected to the air conditioner. In order to reduce the data burden of the server and ensure the timeliness of the corresponding data of the home appliance, the gateway generates the status data of the home appliance based on the device data. Among them, the status data of the home appliance is data that can be directly accessed by the user terminal, and is used to intuitively obtain the data characteristics of the home appliance, such as the data changes within a certain time period, the data changes within a specific time point, etc. In order to maintain the synchronization of the corresponding data of the home appliance, after the gateway generates the corresponding status data, the status data is also cached by the server to obtain the corresponding cache data, so that the user terminal can obtain the same device data of the home appliance through different access methods.

[0024] Step S102: when obtaining an access request sent by a user terminal, obtaining a user access address according to the access request.

[0025] In step S102, the access request is used to obtain the corresponding device data of the home appliance. The home system has accessed its corresponding network according to the gateway. When the user terminal sends an access request, it is determined whether the user terminal accesses the home system through the intranet or the extranet based on the relationship between the user access address of the user terminal and the corresponding network, so as to confirm the subsequent access method. Specifically, the user access address is an extranet address indicating that the user terminal sends an access request in an extranet access environment, or an intranet address indicating that the user terminal sends an access request in an intranet access environment. Among them, the intranet is the private network of the home system. The extranet is a network connecting different geographical locations, such as the Internet.

[0026] Step S103, when the user access address is an intranet address, the gateway is accessed via the intranet address where the gateway is located to obtain status data.

[0027] In step S103, the user access address is an intranet address, indicating that the user terminal sends an access request in an intranet environment. Since the communication speed between network devices in the intranet, such as a gateway and corresponding home devices, is fast and has low latency, the gateway can be quickly accessed through the intranet address where the gateway is located, thereby obtaining corresponding status data.

[0028] Step S104, when the user access address is an external network address, the server is accessed to obtain cache data, and a penetration channel is constructed between the gateway and the user terminal, so that the user terminal can send a number of control instructions for controlling a number of home appliances to the gateway through the penetration channel.

[0029] In step S104, each control instruction corresponds to a corresponding home appliance. The user access address is an external network address, which means that the user terminal sends an access request in an external network environment. Since the external network has a wide coverage, and its communication speed, stability and delay may be affected by more factors, when it is necessary to access the home system through the external network, the access data and input control instructions can be executed separately to ensure the execution speed of each process, thereby improving the access speed. Since the server has cached the cache data corresponding to the stateful data, the cache data can be retrieved by accessing the server, and the high-speed network connection of the server can be used to ensure the data access speed.

[0030] Please see Figure 2 , which is a second flow chart of the method for accessing a home system provided in an embodiment of the present application. The method for accessing a home system also includes steps S201-S202.

[0031] Step S201, controlling the corresponding home appliance to execute the corresponding control instruction to obtain the current appliance data.

[0032] In step S201, the current device data is the device data generated after the home appliance executes the corresponding control instruction. For example, when the home appliance is an air conditioner, and the corresponding control instruction is "adjust the temperature to 25°C and adjust the wind speed to 60%", the current device data can be the temperature data and wind speed data obtained by collecting the corresponding data in the components used to obtain temperature and wind speed in the air conditioner after the air conditioner executes the corresponding control instruction. Optionally, the current device data can also be the changes in temperature data and wind speed data within a preset time period after the air conditioner executes the corresponding control instruction, so as to analyze the execution status of the current device executing the corresponding control instruction, and then analyze the network status and access status when accessing the gateway or server.

[0033] Step S202, controlling the gateway to generate current status data of the home device according to the current device data, and controlling the server to cache the current status data to obtain current cached data.

[0034] In step S202, to ensure the timeliness of device data, whenever the current device data is obtained, the current state data needs to be generated and cached to obtain the corresponding current cache data. Optionally, the current state data and the current cache data can overwrite the previously obtained state data and cache data respectively to further reduce the data burden of the gateway and the server.

[0035] Please see Figure 3 , which is a third flow chart of the home system access method provided in the embodiment of the present application. The home system access method also includes steps S301-S302.

[0036] Step S301: Control the gateway to locally cache current device data to obtain first local cache data.

[0037] In step S301, the first local cache data is used to ensure normal execution of data access when the user terminal sends an access request at the intranet address and the network status is abnormal, so that when the network status is abnormal, subsequent analysis can still be performed through the first local cache data in the most recent time.

[0038] Step S302: Control the server to locally cache current cache data to obtain second local cache data.

[0039] In step S302, the second local cache data is used to ensure normal execution of data access when the user terminal sends an access request at an external network address and the network status is abnormal, so that when the network status is abnormal, subsequent analysis can still be performed through the second local cache data in the most recent time.

[0040] Please see Figure 4 , which is a fourth flow chart of the method for accessing a home system provided in an embodiment of the present application. The method for accessing a home system also includes steps S401-S402.

[0041] Step S401, obtaining the current network status of the user terminal.

[0042] In step S401, the current network status includes a first network status indicating a good network connection and a second network status indicating a fluctuating network connection, so as to determine whether it is necessary to switch the access mode of the user terminal according to the relationship between the current network status of the user terminal and the corresponding network of the home system.

[0043] Step S402: when the current network state is the second network state and when the current access address is an external network address, the internal network address is set as the current user access address of the user terminal.

[0044] In step S402, when the current network status is network connection fluctuation, and when the current access address is an external network address, in order to improve the access speed of the user terminal to the home system under network fluctuation, the external network address can be switched to the corresponding internal network address so that the user terminal can still access the high-speed network through the internal network.

[0045] In this embodiment, the current network state also includes a third network state indicating that the network connection is disconnected. The home system access method can also enable the user terminal to obtain local cache data with relatively high timeliness when the network connection is disconnected. The home system access method also includes steps S403-S404.

[0046] Step S403: when the current network state is the third network state and when the user access address is an intranet address, access the gateway via the intranet address where the gateway is located to obtain the first local cache data.

[0047] Step S404: when the current network state is the third network state and the user access address is an external network address, access the server to obtain the second local cache data.

[0048] In this embodiment, the penetration channel can also realize the transmission of control instructions between the user terminal and the gateway when the network connection is disconnected. Specifically, when the current network state is the third network state and when the user access address is an external network address, the access method of the home system also includes step S405.

[0049] Step S405, maintaining the penetration channel link between the gateway and the user terminal, so that the user terminal can send a number of control instructions to the gateway via the penetration channel.

[0050] Please see Figure 5 , which is the fifth flow chart of the home system access method provided by the embodiment of the present application. When the current network state is the third network state, the sent control instruction cannot be executed by the corresponding home device to generate the corresponding current device data. After the control server caches the current state data to obtain the current cache data, the home system access method also includes step S501.

[0051] Step S501: when the current network state changes from the third network state to the first network state or the second network state, current state data or current cache data is acquired according to the user access address.

[0052] In step S501, the current network state changes from the third network state to the first network state or the second network state, indicating that the corresponding network state has been restored. At this time, according to the control instruction sent when the current network state is the third network state, the corresponding home appliance is controlled to execute the corresponding control instruction to generate the corresponding current state data, and according to the corresponding user access address of the user terminal when the current network state is the third network state, the current state data or the current cache data is correspondingly obtained.

[0053] Please see Figure 6 , which is a structural diagram of a home system provided in an embodiment of the present application. The present application also provides a home system 10. The home system 10 includes a gateway 1, a plurality of home appliances 2, a server 3, a user terminal 4, and a main control device 5. Among them, the plurality of home appliances 2 and the server 3 are respectively connected to the gateway 1 for communication. Among them, the main control device 5 includes a data generation module 51, an access address acquisition module 52, a first data acquisition module 53, a second data acquisition module 54, and a channel construction module 55.

[0054] When the device data of the home device 2 changes, the data generation module 51 is used to control the gateway 1 to generate the status data of the home device 2 according to the device data, and control the server 3 to cache the status data to obtain cached data.

[0055] When acquiring the access request sent by the user terminal 4, the access address acquisition module 52 is used to acquire the user access address according to the access request. The user access address is the external network address that the user terminal 4 sends the access request in the external network access environment, or the internal network address that the user terminal 4 sends the access request in the internal network access environment.

[0056] When the user access address is an intranet address, the first data acquisition module 53 is used to access the gateway 1 via the intranet address where the gateway 1 is located to acquire status data.

[0057] When the user access address is an external network address, the second data acquisition module 54 is used to access the server 3 to acquire cache data.

[0058] The channel construction module 55 is used to construct a penetration channel between the gateway 1 and the user terminal 4, so that the user terminal 4 can send a number of control instructions for controlling a number of home appliances 2 to the gateway 1 via the penetration channel.

[0059] Please see Figure 7 , which is a schematic diagram of a computer device that applies a method for accessing a home system provided in an embodiment of the present application.

[0060] like Figure 7 As shown, the computer device 100 includes a memory 901 and a processor 902. The processor 902 is used to run the computer program instructions in the memory 901 to implement the access method of the home system.

[0061] The memory 901 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 901 may be an internal storage unit of a computer device, such as a hard disk of a computer device. In other embodiments, the memory 901 may also be a storage device of an external computer device, such as a plug-in hard disk configured in a computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 901 may also include both an internal storage unit of a computer device and an external storage device. The memory 901 may not only be used to store application software and various types of data installed in a computer device, such as the code of an access method of a home system, but may also be used to temporarily store data that has been output or is to be output.

[0062] Furthermore, the computer device 100 further includes a bus 903. The bus 903 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0063] Furthermore, the computer device 100 may also include a display component 904. The display component 904 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, etc. The display component 904 may also be appropriately referred to as a display device or a display unit, which is used to display information processed in the computer device 100 and to display a visual user interface.

[0064] Furthermore, the computer device 100 may also include a communication component 905. The communication component 905 may optionally include a wired communication component and / or a wireless communication component (such as a Wi-Fi communication component, a Bluetooth communication component, etc.), which is generally used to establish a communication connection between the computer device 100 and other computer devices.

[0065] Figure 7 Only a computer device 100 having some components and implementing a method for accessing a home system is shown. It can be understood by those skilled in the art that Figure 7 The illustrated structure does not constitute a limitation on the computer device 100 , and the computer device 100 may include fewer or more components than illustrated, or may combine certain components, or may have different component arrangements.

[0066] In the above embodiments, all or part of the embodiments may be implemented by software, hardware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0067] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, a process or function according to an embodiment of the present invention is generated in whole or in part. The computer device may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0068] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0069] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0070] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0071] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0072] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0073] In the above embodiment, when changes in device data of a home appliance are detected, corresponding status data is generated by the gateway and cached by the server to synchronously maintain device-related data that can be directly accessed by the user terminal. When obtaining an access request, the current access environment of the user terminal is determined by obtaining the user access address of the user terminal, and the current data of the home appliance is obtained through different access methods under different access environments, thereby ensuring the access speed of the user terminal in different network access environments.

[0074] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0075] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0076] The above examples are only preferred embodiments of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A method for accessing a home system, It is characterized in that The home system includes a user terminal, a gateway, and a number of home appliances and servers respectively connected to the gateway for communication; the access method of the home system includes: When the device data of the home device changes, the gateway is controlled to generate the status data of the home device according to the device data, and the server is controlled to cache the status data to obtain cache data; When obtaining an access request sent by a user terminal, obtaining a user access address according to the access request, wherein the user access address is an external network address indicating that the user terminal sends an access request in an external network access environment, or an internal network address indicating that the user terminal sends an access request in an internal network access environment; When the user access address is an intranet address, the gateway is accessed via the intranet address where the gateway is located to obtain the status data; When the user access address is an external network address, the server is accessed to obtain the cached data, and a penetration channel is constructed between the gateway and the user terminal, so that the user terminal can send a number of control instructions for controlling the number of home appliances to the gateway via the penetration channel.

2. The method for accessing a home system according to claim 1, It is characterized in that Each control instruction corresponds to a corresponding home appliance one by one; the access method of the home system also includes: Controlling the corresponding household device to execute the corresponding control instruction to obtain current device data; The gateway is controlled to generate current status data of the home device according to the current device data, and the server is controlled to cache the current status data to obtain current cache data.

3. The method for accessing a home system according to claim 2, It is characterized in that Also includes: Control the gateway to locally cache the current device data to obtain first local cache data; The server is controlled to locally cache the current cache data to obtain second local cache data.

4. The method for accessing a home system as claimed in claim 3, It is characterized in that Also includes: Acquire a current network state of the user terminal, where the current network state includes a first network state indicating a good network connection and a second network state indicating a fluctuating network connection; When the current network state is the second network state, and when the current access address is an external network address, the internal network address is set as the current user access address of the user terminal.

5. The method for accessing a home system as claimed in claim 4, It is characterized in that The current network state also includes a third network state indicating that the network connection is disconnected; and the home system access method also includes: When the current network state is the third network state and the user access address is an intranet address, access the gateway via the intranet address where the gateway is located to obtain the first local cache data; When the current network state is the third network state, and when the user access address is an external network address, the server is accessed to obtain the second local cache data.

6. The method for accessing a home system as claimed in claim 5, It is characterized in that When the current network state is the third network state, and when the user access address is an external network address, it also includes: The penetration channel is maintained to link between the gateway and the user terminal, so that the user terminal can send the plurality of control instructions to the gateway via the penetration channel.

7. The method for accessing a home system as claimed in claim 5, It is characterized in that After controlling the server to cache the current state data to obtain current cache data, the method further includes: When the current network state changes from the third network state to the first network state or the second network state, the current state data or the current cache data is acquired according to the user access address.

8. A home system, It is characterized in that The home system comprises: Gateway; Several household devices and servers respectively connected to the gateway for communication; User terminals; and The main control device includes: A data generation module, when the device data of the home device changes, is used to control the gateway to generate the status data of the home device according to the device data, and control the server to cache the status data to obtain cache data; An access address acquisition module, when acquiring an access request sent by a user terminal, is used to acquire a user access address according to the access request, wherein the user access address is an external network address representing the access request sent by the user terminal in an external network access environment, or an internal network address representing the access request sent by the user terminal in an internal network access environment; A first data acquisition module, when the user access address is an intranet address, is used to access the gateway via the intranet address where the gateway is located to obtain the status data; A second data acquisition module, when the user access address is an external network address, is used to access the server to obtain the cache data; and The channel construction module is used to construct a penetration channel between the gateway and the user terminal, so that the user terminal can send a plurality of control instructions for controlling the plurality of home appliances to the gateway via the penetration channel.

9. A computer device, It is characterized in that The computer device comprises: a memory for storing a computer program; and A processor, wherein the processor is used to execute the computer program to implement the home system access method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is executed to implement the home system access method as described in any one of claims 1 to 7.