Low-coupling off-line and on-line smart home control method

Through the connection and verification mechanism between the cloud platform and the central control screen gateway, the problems of uneven offline and online control of the smart home system and high gateway coupling have been solved, and stability, reliability and security have been improved.

CN120675828APending Publication Date: 2025-09-19XIAMEN DNAKE INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510851001.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Existing smart home systems do not switch smoothly between offline and online control modes, the gateway system coupling is too high, and the device security is insufficient in offline mode.

Method used

By connecting the cloud platform with the central control screen gateway, verification code and UUID verification mechanisms are adopted to achieve smooth offline and online control, reduce gateway coupling, and perform security verification before control.

Benefits of technology

It improves the stability and reliability of the system, reduces gateway coupling, enhances the scalability of the system, and ensures the security of home devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675828A_ABST
    Figure CN120675828A_ABST
Patent Text Reader

Abstract

The invention discloses a low-coupling off-line and on-line smart home control method, which comprises the following steps: S1, a mobile phone APP creates a home, and a cloud platform distributes a check code; s2, the mobile phone APP scans the two-dimensional code of the central control screen gateway, key data are sent to the central control screen gateway through a code matching instruction, and the key data comprise a check code; and S3, after network distribution of the central control screen gateway succeeds, a search adding instruction is initiated, after the central control screen gateway searches network distribution equipment, equipment information is fed back to the mobile phone APP, and the mobile phone APP stores data to the cloud platform. According to the invention, through the setting of the scene linkage configuration, an off-line and on-line control mode can be smoothly compatible, so that the stability and reliability of the system are improved, meanwhile, the connection between the cloud platform and the central control screen gateway is established, the coupling between gateways can be reduced, the expandability of the system is enhanced, in addition, the security verification of a control instruction can be carried out before control, and the safety of the system is improved. Therefore, the safety of household equipment is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home control technology, and in particular to a low-coupling online and offline control method for a smart home. Background Art

[0002] With the rapid development of Internet of Things (IoT) technology, smart home systems have gradually become popular and have become an important part of modern family life. However, existing smart home systems still face many challenges in switching between offline and online control modes, system coupling and reliability, which are as follows: 1. Limitations of offline and online control: When the network is unstable, the system control is unstable, and the offline and online switching is not smooth enough; 2. The gateway system coupling is too high: When home devices use multiple gateways, the coupling between gateways is too high, and the independence of the gateways and the collaboration between gateways cannot be met at the same time; 3. Security issues in offline mode: In offline mode, the control of the device often lacks security verification, so the safety of the home device is difficult to guarantee; Based on the above, this application proposes a low-coupling offline and online control method for smart homes. Summary of the Invention

[0003] Based on the technical problems existing in the background technology, the present invention proposes a low-coupling offline-online control method for smart home.

[0004] The present invention proposes a low-coupling online and offline control method for a smart home, comprising the following steps:

[0005] S1: Create a family on the mobile app, and the cloud platform assigns a verification code;

[0006] S2: The mobile phone APP scans the QR code of the central control screen gateway and sends the key data to the central control screen gateway through the code matching instruction. The key data includes the verification code;

[0007] S3: After the central control screen gateway is successfully connected to the network, it initiates a search command. After the central control screen gateway searches for the networked device, it feeds the device information back to the mobile app, which then saves the data to the cloud platform.

[0008] S4: The central control screen determines whether the network distribution device is added locally. If yes, it sends the local 192.168.1.127 socket command; if not, the APP sends the LAN UPD and external network IOT command. If there is no external network, no IOT command is sent.

[0009] S6: The central control screen verifies the control command. If the verification is successful, the control command is executed according to the scene linkage.

[0010] Preferably, in S1, the cloud platform is based on households, and each household has a verification code for security verification of offline control of the central control screen gateway. The cloud platform is used to store smart devices, gateway devices, and scene linkage information, and is responsible for IOT remote control devices.

[0011] Preferably, in said S3, when the mobile phone APP saves the device data to the cloud platform, the cloud platform needs to record which central control screen gateway the device belongs to for subsequent IOT control.

[0012] Preferably, in said S5, the control link of the central control screen gateway includes TOT control, LAN control, self-control of the central control screen gateway, offline scene control and non-LAN control. During TOT control, the central control screen gateway needs to connect to the IOT of the cloud platform to receive control instructions from the cloud platform and report device data to the cloud platform; during LAN control, UDP is used for LAN broadcast, and the security check of the control instructions is performed according to the verification code of the home; the self-control of the control screen gateway adopts local control through the on-screen program of the central control screen and the gateway, through the local IP: 192.168.1.127 for control; in offline scene control, when actively controlling on the central control screen or mobile phone APP, scene control is performed by sending UPD broadcast. When scene control is performed through the scene panel, the central control screen with the scene panel added receives the control instruction and then notifies all central control screens in the LAN through UDP broadcast to perform specified scene control. In non-LAN control, if multiple central control screens are not in the same LAN, the scenes between the central control screens cannot be coordinated and controlled, but the devices can be controlled individually without affecting each other.

[0013] Preferably, in S5, the specific steps of control instruction verification are as follows:

[0014] S701: Target verification: Verify whether the from instruction is the local device;

[0015] S702: Repeatability check: Based on the UUID carried in the instruction, determine whether there is repeated reception, adopting a first-come, first-served strategy. If a duplicate UUID instruction is received, it will be ignored;

[0016] S703: Security verification: Verify whether the verification code carried by the instruction is consistent with the verification code stored in the local machine. If the verification is successful, the control instruction is executed; otherwise, it is ignored.

[0017] Preferably, the central control screen is connected to the cloud platform. When the cloud platform adds a central control screen gateway, there is no master-slave gateway. All central control screen gateways are parallel gateways. The cloud platform scene linkage storage supports multiple central control screen gateway devices to be saved together. The server then sends it to the corresponding central control screen gateway to save the scene of the device to which it belongs, and associates it with the production number. In scene control, the cloud platform should specify all central control screen gateways under the same scene and control them with the scene number. When the linkage is triggered, when the device status change, time change, or weather change is received, it is determined whether the saved linkage meets the trigger conditions. If it meets the conditions, the linkage task is executed, and the execution method is consistent with the scene control.

[0018] Preferably, in said S5, during the scene linkage configuration process, the mobile phone APP does not need to care about the gateway to which the device belongs, and is only managed by the cloud platform.

[0019] Compared with the existing technology, the beneficial effects of the present invention are:

[0020] Through the setting of scene linkage configuration, the present invention can smoothly be compatible with offline and online control methods, thereby improving system stability and reliability. At the same time, by establishing a connection with the central control screen gateway through the cloud platform, the coupling between gateways can be reduced and the scalability of the system can be enhanced. In addition, the security of control instructions can be checked before control, thereby ensuring the safety of home devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a flow chart of a low-coupling offline and online control method for smart home proposed by the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further explained below with reference to specific embodiments.

[0023] Example

[0024] Reference Figure 1 This embodiment proposes a low-coupling online and offline control method for a smart home, comprising the following steps:

[0025] S1: Create a family on the mobile app, and the cloud platform assigns a verification code;

[0026] The cloud platform is based on households, and each household has a verification code to facilitate the security verification of the offline control of the central control screen gateway. The cloud platform is used to store information on smart devices, gateway devices, and scene linkage, and is responsible for IOT remote control devices.

[0027] S2: The mobile phone APP scans the QR code of the central control screen gateway and sends the key data to the central control screen gateway through the code matching instruction. The key data includes the verification code;

[0028] S3: After the central control screen gateway is successfully connected to the network, it initiates a search command. After the central control screen gateway searches for the networked device, it feeds the device information back to the mobile app, which then saves the data to the cloud platform.

[0029] In addition, when the mobile APP saves device data to the cloud platform, the cloud platform needs to record which central control screen gateway the device belongs to for subsequent IOT control;

[0030] S4: The central control screen determines whether the network distribution device is added locally. If yes, it sends the local 192.168.1.127 socket command; if not, the APP sends the LAN UPD and external network IOT command. If there is no external network, no IOT command is sent.

[0031] S5: The central control screen verifies the control command. If the verification is successful, the control command is executed according to the scene linkage. During the scene linkage configuration process, the mobile app does not need to care about the gateway to which the device belongs, and it is only managed by the cloud platform.

[0032] The control links of the central control screen gateway include TOT control, LAN control, self-control of the central control screen gateway, offline scene control and non-LAN control. During TOT control, the central control screen gateway needs to connect to the IOT of the cloud platform to receive control instructions from the cloud platform and report device data to the cloud platform; during LAN control, UDP is used for LAN broadcast, and the control instructions are security checked according to the verification code of the home; the self-control of the central control screen gateway adopts local control through the on-screen program of the central control screen and the gateway, and is controlled through the local IP: 192.168.1.127; during offline scene control, when actively controlling on the central control screen or mobile phone APP, scene control is performed by sending UPD broadcast. When scene control is performed through the scene panel, the central control screen with the scene panel added receives the control instruction, and then notifies all the local area networks through UDP broadcast. The central control screen performs specified scene control. When controlling in a non-LAN environment, if multiple central control screens are not in the same LAN, the scenes between the central control screens cannot be collaboratively controlled. However, the devices can be controlled individually and there is no impact. The central control screen is connected to the cloud platform. When the cloud platform adds a central control screen gateway, there is no master-slave gateway. All central control screen gateways are parallel gateways. The cloud platform scene linkage save supports multiple central control screen gateway devices being saved together. The server then sends it to the corresponding central control screen gateway to save the scenes of the devices to which they belong, and associates them with the production numbers. In scene control, the cloud platform should specify all central control screen gateways in the same scene and control them with the scene numbers. When the linkage is triggered, when receiving changes in device status, time, or weather, it determines whether the saved linkage meets the triggering conditions. If so, the linkage task is executed in the same way as the scene control.

[0033] The specific steps for control instruction verification are as follows:

[0034] S701: Target verification: Verify whether the from instruction is the local device;

[0035] S702: Repeatability check: Based on the UUID carried in the instruction, determine whether there is repeated reception, adopting a first-come, first-served strategy. If a duplicate UUID instruction is received, it will be ignored;

[0036] S703: Security verification: Verify whether the verification code carried by the instruction is consistent with the verification code stored in the local machine. If the verification succeeds, the control instruction is executed; otherwise, it is ignored.

[0037] This embodiment can smoothly be compatible with offline and online control methods through the setting of scene linkage configuration, thereby improving system stability and reliability. At the same time, by establishing a connection with the central control screen gateway through the cloud platform, the coupling between gateways can be reduced and the scalability of the system can be enhanced. In addition, the security of control instructions can be checked before control, thereby ensuring the safety of home devices.

[0038] The above description is only a preferred specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, who makes equivalent replacements or changes based on the technical solution and inventive concept of the present invention, should be covered by the scope of protection of the present invention.

Claims

1. A low-coupling online and offline control method for smart home, characterized in that: The following steps are involved: S1: Create a family on the mobile app, and the cloud platform assigns a verification code; S2: The mobile phone APP scans the QR code of the central control screen gateway and sends the key data to the central control screen gateway through the code matching instruction. The key data includes the verification code; S3: After the central control screen gateway is successfully connected to the network, it initiates a search command. After the central control screen gateway searches for the networked device, it feeds the device information back to the mobile app, which then saves the data to the cloud platform. S4: The central control screen determines whether the network distribution device is added locally. If yes, it sends the local 192.168.1.127 socket command; if not, the APP sends the LAN UPD and external network IOT command. If there is no external network, no IOT command is sent. S5: The central control screen verifies the control command. If the verification is successful, the control command is executed according to the scene linkage.

2. A low-coupling online and offline control method for smart home according to claim 1, characterized in that: In S1, the cloud platform is based on households, and each household has a verification code for the security verification of the offline control of the central control screen gateway. The cloud platform is used to store smart devices, gateway devices, and scene linkage information, and is responsible for IOT remote control devices.

3. The low-coupling online and offline control method for smart home according to claim 1, characterized in that: In S3, when the mobile phone APP saves the device data to the cloud platform, the cloud platform needs to record which central control screen gateway the device belongs to for subsequent IOT control.

4. The low-coupling online and offline control method for smart home according to claim 1, characterized in that: In S5, the control link of the central control screen gateway includes TOT control, LAN control, self-control of the central control screen gateway, offline scene control and non-LAN control. During TOT control, the central control screen gateway needs to connect to the IOT of the cloud platform to receive control instructions from the cloud platform and report device data to the cloud platform; during LAN control, UDP is used to broadcast the LAN, and the security check of the control instructions is performed according to the home check code; The self-control of the control screen gateway adopts local control through the program on the central control screen and the gateway, and is controlled through the local IP: 192.168.1.127; in offline scene control, when actively controlling on the central control screen or mobile phone APP, the scene control is performed by sending UPD broadcast. When the scene control is performed through the scene panel, the central control screen with the added scene panel receives the control instruction, and then notifies all central control screens in the LAN through UDP broadcast to perform specified scene control. In non-LAN control, if multiple central control screens are not in the same LAN, the scenes between the central control screens cannot be coordinated and controlled, but the devices can be controlled individually without any impact.

5. The low-coupling online and offline control method for smart home according to claim 1, characterized in that: In S5, the specific steps of control instruction verification are as follows: S701: Target verification: Verify whether the from instruction is the local device; S702: Repeatability check: Based on the UUID carried in the instruction, determine whether there is repeated reception, adopting a first-come, first-served strategy. If a duplicate UUID instruction is received, it will be ignored; S703: Security verification: Verify whether the verification code carried by the instruction is consistent with the verification code stored in the local machine. If the verification is successful, the control instruction is executed; otherwise, it is ignored.

6. The low-coupling online and offline control method for smart home according to claim 4, characterized in that: The central control screen is connected to the cloud platform. When the cloud platform adds a central control screen gateway, there is no master-slave gateway. All central control screen gateways are parallel gateways. The cloud platform scene linkage storage supports multiple central control screen gateway devices to be saved together. The server then sends it to the corresponding central control screen gateway to save the scene of the device to which it belongs, and associates it with the production number. In scene control, the cloud platform should specify all central control screen gateways under the same scene and control them with the scene number. When the linkage is triggered, when the device status change, time change, or weather change is received, it is determined whether the saved linkage meets the trigger conditions. If it meets the conditions, the linkage task is executed, and the execution method is consistent with the scene control.

7. The low-coupling online and offline control method for smart home according to claim 1, characterized in that: In the above S5, during the scene linkage configuration process, the mobile phone APP does not need to care about the gateway to which the device belongs, and it is only managed by the cloud platform.