CN115174295A - Scene information synchronization method and device, storage medium and electronic device - Google Patents

Scene information synchronization method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115174295A
CN115174295A CN202210597444.2A CN202210597444A CN115174295A CN 115174295 A CN115174295 A CN 115174295A CN 202210597444 A CN202210597444 A CN 202210597444A CN 115174295 A CN115174295 A CN 115174295A
Authority
CN
China
Prior art keywords
scene
gateway
information
synchronization
family
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210597444.2A
Other languages
Chinese (zh)
Other versions
CN115174295B (en
Inventor
邓邱伟
高岑
尹飞
翟建光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Qingdao Haier Intelligent Home Appliance Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210597444.2A priority Critical patent/CN115174295B/en
Priority claimed from CN202210597444.2A external-priority patent/CN115174295B/en
Publication of CN115174295A publication Critical patent/CN115174295A/en
Application granted granted Critical
Publication of CN115174295B publication Critical patent/CN115174295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a scene information synchronization method and device, a storage medium and an electronic device. The method is applied to an edge gateway and comprises the following steps: sending a scene synchronization request to a cloud server, wherein the scene synchronization request carries a family number; acquiring a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene under the family corresponding to the family number; and updating a locally stored scene information list corresponding to the family number according to the scene synchronous response. The method can synchronize the information of all edge gateways in a family, so that the functions of the edge gateways in use are enriched and the portability of the edge gateways in use is improved.

Description

Scene information synchronization method and device, storage medium and electronic device
Technical Field
The present disclosure relates to edge gateway information synchronization technologies, and in particular, to a method and an apparatus for synchronizing scene information, a storage medium, and an electronic apparatus.
Background
Intelligent home devices such as intelligent air conditioners, intelligent refrigerators, intelligent doors and windows, intelligent sound equipment and intelligent floor sweeping robots need to be connected with edge gateways, and the intelligent home systems are formed together with cloud servers. The existing intelligent home control method is that a scene is created on a mobile terminal (such as a mobile phone), a cloud server generates control commands according to configuration files related to the scene and uploaded to the cloud server by the mobile phone, then the control commands are sent to edge gateways one by one, and after receiving the control commands, the edge gateways send the control commands to intelligent home equipment designated by the control commands.
One or more edge gateways are arranged in different areas of a home according to function requirements, and scene information among the edge gateways is independent, so that inconvenience is brought to users. For example, when a user wants to change a home gateway of a scene or controls the home gateway to execute scene logic by manipulating an edge gateway closest to the user, the scene logic cannot be executed because the information is not synchronized between the edge gateways.
Therefore, how to synchronize the scene information between the edge gateways in the home to enrich the functions of the edge gateways during use and improve the portability of the edge gateways during use still remains a problem to be solved.
Disclosure of Invention
The application provides a scene information synchronization method and device, a storage medium and an electronic device, which are used for synchronizing information of all edge gateways in a family so as to enrich functions of the edge gateways in use and improve portability of the edge gateways in use.
In one aspect, the present application provides a method for synchronizing scene information, which is applied to an edge gateway, and the method includes:
sending a scene synchronization request to a cloud server, wherein the scene synchronization request carries a family number;
acquiring a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene under the family corresponding to the family number;
and updating a locally stored scene information list corresponding to the family number according to the scene synchronous response.
In one embodiment, the method further comprises:
when the scene synchronous response is not acquired, acquiring scene information currently stored by at least one edge gateway in a family corresponding to the family number;
and updating the locally stored scene information list according to the scene information currently stored by the at least one edge gateway.
In one embodiment, the obtaining of the scene information currently stored by at least one edge gateway in the home corresponding to the home number includes:
acquiring the time when M edge gateways in a family corresponding to the family number update a locally stored scene information list to obtain M update times, wherein M is an integer larger than 1;
screening out a reference edge gateway corresponding to the maximum updating time in the M updating times;
acquiring scene information currently stored by the reference edge gateway;
the updating the locally stored context information list according to the context information currently stored by the at least one edge gateway includes:
and updating the locally stored scene information list according to the scene information currently stored by the reference edge gateway.
In one embodiment, the scene information in the scene synchronization response and the scene information currently stored by the at least one edge gateway each include at least a scene number and a home gateway number of each scene, where the home gateway number is used to define a home gateway, and the method further includes:
when a host gateway of a first scene is a local edge gateway, sending a first scene execution script issuing request to the cloud server, wherein the first scene execution script issuing request carries a scene number of the first scene;
acquiring a first scene execution script response sent by the cloud server, wherein the first scene execution script response at least comprises execution logic information of the first scene, and the execution logic information at least comprises execution equipment information.
In one embodiment, the method further comprises:
when the first scene execution script response is not acquired, sending a first scene execution script issuing request to the at least one edge gateway, so that the at least one edge gateway forwards the first scene execution script issuing request to the cloud server.
In one embodiment, each edge gateway in the home corresponding to the home number simultaneously sends the scene synchronization request to the cloud server.
On the other hand, the application provides a scene information synchronization method, which is applied to a cloud server and includes:
receiving a scene synchronization request sent by an edge gateway, wherein the scene synchronization request carries a family number;
acquiring scene information of each scene under the family corresponding to the family number according to the family number, and generating a scene synchronization response;
and sending the scene synchronization response to the edge gateway.
In one embodiment, the method further comprises:
acquiring newly added scene configuration information, wherein the newly added scene configuration information at least comprises a scene type of a newly added scene, a host gateway number and a family number to which the newly added scene belongs;
allocating a scene number to the newly added scene;
and storing the scene number, the scene type, the information of the host gateway and the family number of the newly added scene.
In one embodiment, the context information at least includes a context type of the context, a home gateway number, and a home number to which the context belongs, and the method further includes:
generating a scene execution script of a scene according to the scene type of the scene, the host gateway number and the family number of the scene;
and sending the scene execution script to a host gateway corresponding to the host gateway number of the scene.
In another aspect, the present application provides a method for remotely controlling a gateway, which is applied to a first gateway, where context information of the first gateway and context information of a second gateway are synchronized by a context information synchronization method according to a first aspect, or are synchronized by a context information synchronization method according to a second aspect, where the method includes:
and responding to a scene execution operation, and sending a scene execution command to the second gateway, wherein the second gateway is a host gateway of a scene specified by the scene execution operation.
In another aspect, the present application provides a scene information synchronization apparatus applied to an edge gateway, including:
the communication module is used for sending a scene synchronization request to the cloud server, wherein the scene synchronization request carries a family number;
an obtaining module, configured to obtain a scene synchronization response sent by the cloud server, where the scene synchronization response includes scene information of each scene in a family corresponding to the family number;
and the storage module is used for updating a locally stored scene information list corresponding to the family number according to the scene synchronous response.
On the other hand, the present application provides a scene information synchronization apparatus, which is applied to a cloud server, and includes:
the communication module is used for receiving a scene synchronization request sent by an edge gateway, wherein the scene synchronization request carries a family number;
the processing module is used for acquiring scene information of each scene under the family corresponding to the family number according to the family number and generating a scene synchronization response;
the communication module is further configured to send the scene synchronization response to the edge gateway.
In another aspect, the present application provides a computer-readable storage medium, which includes a stored program, where the program executes the method for synchronizing scene information according to the first aspect, or executes the method for synchronizing scene information according to the second aspect, or executes the method for remotely controlling a gateway according to the third aspect.
In another aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method for synchronizing scene information according to the first aspect, or execute the method for synchronizing scene information according to the second aspect, or execute the method for remotely controlling a gateway according to the third aspect.
The scene information synchronization method provided by the embodiment of the application sends a scene synchronization request (carrying a family number) to a cloud server, and obtains a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene in a family corresponding to the family number. And updating a locally stored scene information list corresponding to the family number according to the scene synchronous response. Therefore, each edge gateway and the cloud server in the family synchronize scene information, and the scene information between the edge gateways in the family is indirectly synchronized. The method and the system have the advantages that the cross-scene remote operation of the edge gateways or other functions requiring the information synchronization of the edge gateways can be realized based on the edge gateways synchronizing the scene information, so that the functions of the edge gateways in use are enriched, and the portability of the edge gateways in use is indirectly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario of the scene information synchronization method provided in the present application;
fig. 2 is a schematic flowchart of a scene information synchronization method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a scene information synchronization method according to another embodiment of the present application;
fig. 4 is a schematic flowchart of a scene information synchronization method according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a scene information synchronization method according to another embodiment of the present application;
fig. 6 is an interaction diagram of a scene information synchronization method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for remotely controlling a gateway according to an embodiment of the present application;
fig. 8 is a schematic diagram of a central control screen of a first gateway according to an embodiment of the present application;
fig. 9 is a schematic diagram of a scene information synchronization apparatus according to an embodiment of the present application;
fig. 10 is a schematic diagram of a scene information synchronization apparatus according to another embodiment of the present application;
fig. 11 is a schematic diagram of an electronic device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The following explains the terms referred to in the present application:
edge gateway: the gateway deployed at the edge of the network is connected with the physical and digital worlds through functions such as network connection and protocol conversion, and light-weight connection management, real-time data analysis and application management functions are provided.
A host gateway: the edge gateway of the scene logic is finally executed.
Non-hosting gateway: and other edge gateways except the host gateway under the home.
Intelligent home devices such as intelligent air conditioners, intelligent refrigerators, intelligent doors and windows, intelligent sound equipment and intelligent floor sweeping robots need to be connected with edge gateways, and the intelligent home systems are formed together with cloud servers. The existing intelligent home control method is that a scene is created at a mobile phone end, a cloud server generates control commands according to a configuration file which is uploaded to the cloud server by a mobile phone and related to the scene, the control commands are sent to a host gateway one by one, and the host gateway sends the control commands to intelligent home equipment appointed by the control commands after receiving the control commands.
One or more edge gateways are arranged in different areas of a home according to function requirements, and scene information among the edge gateways is independent, so that inconvenience is brought to users. For example, when a user wants to change a home gateway of a scene or controls the home gateway to execute scene logic by manipulating an edge gateway closest to the user, the scene logic cannot be executed because the information is not synchronized between the edge gateways.
Therefore, how to synchronize the scene information between the edge gateways in the home to enrich the functions of the edge gateways during use and improve the portability of the edge gateways during use still remains a problem to be solved.
Based on the above, the application provides a scene information synchronization method, a scene information synchronization device, a storage medium and an electronic device. The scene information synchronization method is applied to an edge gateway, and comprises the steps of sending a scene synchronization request (carrying a family number) to a cloud server, and obtaining a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene in a family corresponding to the family number. And updating a locally stored scene information list corresponding to the family number according to the scene synchronous response.
Therefore, each edge gateway and the cloud server in the family synchronize scene information, and the scene information between the edge gateways in the family is indirectly synchronized. The method and the system have the advantages that the cross-scene remote operation of the edge gateways or other functions requiring the information synchronization of the edge gateways can be realized based on the edge gateways synchronizing the scene information, so that the functions of the edge gateways in use are enriched, and the portability of the edge gateways in use is indirectly improved.
The scene information synchronization method is applied to the edge gateway or other electronic equipment capable of controlling the intelligent household equipment. Fig. 1 is an application schematic diagram of the scene information synchronization method provided by the present application, where the edge gateway sends a scene synchronization request to a cloud server, where the scene synchronization request carries a home number. And then, a scene synchronization response sent by the cloud server is obtained, wherein the scene synchronization response comprises scene information of each scene under the family corresponding to the family number. And updating a locally stored scene information list corresponding to the family number according to the scene synchronization response, and completing the scene information synchronization with the cloud server.
Referring to fig. 2, an embodiment of the present application provides a method for synchronizing scene information, which is applied to an edge gateway, and the method includes:
s210, sending a scene synchronization request to the cloud server, wherein the scene synchronization request carries the family number.
When a scene is created, a user creates new scene configuration information on a terminal (such as a mobile phone, an edge gateway, and a cloud). And the terminal uploads the configuration information of the newly added scene to the cloud server, and the cloud server stores the configuration information of the newly added scene as the information of the newly added scene.
The configuration information of the newly added scene at least comprises the scene type of the newly added scene, the number of the host gateway and the number of the family to which the newly added scene belongs. The newly added scene configuration information is, for example, that the edge gateway 01 in the home number 305 is configured with an automatically executed scene, for example, the scene controls the washing machine to start to execute the laundry washing and drying at a preset time, and controls the sweeping robot to start to sweep at a preset time.
Each home has a unique home number, that is, a home ID (identification, abbreviated as "number"), and when creating the configuration information of the newly added scene, the user needs to specify the home to which the host gateway of the newly added scene belongs, and sets the home to which the host gateway of the newly added scene belongs by setting a home code.
Each edge gateway has a unique gateway number, namely a gateway ID (identification, abbreviated as number), and when creating the configuration information of the newly added scene, a user needs to designate a host gateway of the newly added scene, and sets the host gateway of the newly added scene by setting the host gateway number.
The scene type is, for example, a manual execution type or an automatic execution type, the manual execution type refers to that a manual trigger is needed to execute the scene logic, and the automatic execution type may be that the scene logic is automatically started to be executed at a certain fixed time.
When the cloud server stores the newly added scene configuration information as newly added scene information, the scene type, the host gateway number and the family number of the newly added scene are stored in a one-to-one correspondence manner. More specifically, the cloud server may also allocate a scene number to the scene to distinguish different scenes, so that when the cloud server stores information about a newly added scene, the cloud server may allocate the scene number to the newly added scene first, and then store the scene number, the scene type, the information about the host gateway, and the home number of the newly added scene.
Correspondingly, the scene synchronization request is used for requesting the cloud server to issue scene information of each scene under the family corresponding to the family number, so that the scene synchronization request only carries the family number. After the cloud server analyzes the family number carried by the scene synchronization request, the family number carried by the scene synchronization request is inquired from the local storage, and the scene information of each scene under the family corresponding to the family number carried by the scene synchronization request is found.
And S220, acquiring a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene under the family corresponding to the family number.
The scene information of each scene at least comprises a scene number and a host gateway number of each scene. The home gateway number of the scene is used for the edge gateway to confirm whether the edge gateway is the home gateway of the scene.
For example, when the host gateway of the first scene is the edge gateway, a first scene execution script issuing request is generated based on the scene number of the first scene, and the first scene execution script issuing request carries the scene number of the first scene. The edge gateway sends a first scene execution script issuing request to the cloud server.
And after receiving the first scene execution script issuing request, the cloud server inquires the relevant information of the first scene according to the scene number of the first scene and then generates a first scene execution script response. Wherein the first scene execution script response at least comprises execution logic information of the first scene, and the execution logic information of the first scene at least comprises the execution device information. The execution apparatus information includes, for example, washing machine information and cleaning robot information. The execution logic information of the first scenario may further include logic specifically executed by the execution device, such as a washing machine performing laundry washing and drying, and a sweeping robot sweeping a certain home area.
When the host gateway of the first scene is not the edge gateway, the edge gateway only stores the scene information of the first scene, and does not send the first scene execution script issuing request to the cloud server.
It should be noted that the execution logic information of the scene (i.e., the execution script of the scene) is only issued to the host gateway of the scene, and the non-host gateway of the scene does not receive and store the execution logic information of the scene. The execution logic information of the scene is generated by the cloud server according to the scene configuration information, and the host gateway controls the execution equipment specified by the execution logic information of the scene to operate, such as controlling a washing machine to perform washing and drying of clothes and controlling a sweeping robot to sweep after operating the execution logic information of the scene.
And S230, updating a locally stored scene information list corresponding to the family number according to the scene synchronization response.
Each family number corresponds to a scene information list, which is shown in table 1.
Table 1:
Figure BDA0003668684240000081
the scene synchronization response includes scene information of each scene in the family corresponding to the family number, and when the scene information list corresponding to the family number is updated according to the scene synchronization response, the scene information list can be partially updated or completely updated.
For example, comparing the scene information of each scene under the family corresponding to the family number included in the scene synchronization response with the scene information of each scene in the locally stored scene information list, and updating the scene information of each scene in the locally stored scene information list, which is different from the scene information of each scene under the family corresponding to the family number included in the scene synchronization response.
For example, the scene information of all scenes in the locally stored scene information list is deleted, and then the scene information of each scene under the family corresponding to the family number included in the scene synchronization response is sequentially stored in the locally stored scene information list.
In summary, the scene information synchronization method provided by this embodiment sends a scene synchronization request (carrying a family number) to the cloud server, and obtains a scene synchronization response sent by the cloud server, where the scene synchronization response includes scene information of each scene in the family corresponding to the family number. And updating a locally stored scene information list corresponding to the family number according to the scene synchronous response. Therefore, each edge gateway and the cloud server in the family synchronize scene information, and the scene information between the edge gateways in the family is indirectly synchronized. The method and the system have the advantages that the cross-scene remote operation of the edge gateways or other functions requiring the information synchronization of the edge gateways can be realized based on the edge gateways synchronizing the scene information, so that the functions of the edge gateways in use are enriched, and the portability of the edge gateways in use is indirectly improved.
Referring to fig. 3, in an alternative embodiment of the present application, when the edge gateway does not obtain the scene synchronization response, it needs to perform scene information synchronization based on other edge gateways in the home.
And S310, when the scene synchronous response is not acquired, acquiring scene information currently stored by at least one edge gateway in the family corresponding to the family number.
All edge gateways in the family send scene synchronization requests to the cloud server, and some edge gateways receive scene synchronization responses sent by the cloud server, so that a locally stored scene information list is updated according to the scene synchronization responses. In an alternative embodiment, each edge gateway in the home sends the scene synchronization request to the cloud server at the same time, for example, each edge gateway in the home sends the scene synchronization request to the cloud server once every day at 8 am. Each edge gateway in the home sends the scene synchronization request to the cloud server at a plurality of preset times of each day, for example, each edge gateway in the home sends the scene synchronization request to the cloud server once at 8 am of each day, and sends the scene synchronization request to the cloud server once at 4 pm of each day.
If the edge gateway does not acquire the scene synchronization response sent by the cloud server, the scene information can be synchronized based on other edge gateways. At this time, the edge gateway acquires scene information currently stored by at least one edge gateway in the home.
In an alternative embodiment, the scene information currently stored by all edge gateways in the home may be obtained.
In an optional embodiment, the time when M edge gateways in the home corresponding to the home number update the locally stored scene information list may be obtained first, and M update times are obtained, where M is an integer greater than 1. And screening out the reference edge gateway corresponding to the maximum updating time in the M updating times. And acquiring the scene information currently stored by the reference edge gateway. The M edge gateways may be all edge gateways in the home except the edge gateway.
S320, updating the locally stored scene information list according to the currently stored scene information of the at least one edge gateway.
In an alternative embodiment, the locally stored scene information list may be updated based on the scene information currently stored by all edge gateways except the edge gateway in the home.
In an alternative embodiment, the locally stored scene information list may be updated based on the scene information currently stored by the reference edge gateway as described in step S310.
As described in step S220, when the host gateway of the first scene is the edge gateway, a first scene execution script issuing request is sent to the cloud server, where the first scene execution script issuing request carries a scene number of the first scene. However, when the first scene execution script response is not acquired, a first scene execution script issuing request may be sent to the at least one edge gateway, so that the at least one edge gateway forwards the first scene execution script issuing request to the cloud server. After receiving a first scene execution script issuing request, the cloud server sends a first scene execution script response to a host gateway (i.e., the edge gateway) of the first scene, where the first scene execution script response at least includes execution logic information of the first scene, and the execution logic information at least includes execution device information. And the edge gateway controls the execution equipment to operate based on the execution logic information of the first scene.
The method provided by the embodiment further provides a possible way for scene information synchronization between edge gateways. That is, when the edge gateway cannot synchronize the scene information with the cloud server to implement the scene information synchronization between the edge gateways, the edge gateway may interact with other edge gateways to implement the scene information synchronization between the edge gateways and other edge gateways. Therefore, scene information synchronization is carried out between at least two edge gateways under a family, and at least one edge gateway can be remotely operated in a cross-scene mode or other functions needing at least one edge gateway information synchronization can be realized based on the at least two edge gateways synchronizing the scene information, so that the functions of the edge gateways in use are enriched, and the portability of the edge gateways in use is indirectly improved.
Referring to fig. 4, an embodiment of the present application further provides a scene information synchronization method applied to a cloud server, including:
and S410, receiving a scene synchronization request sent by the edge gateway, wherein the scene synchronization request carries a family number.
As described in step S210, when a scene needs to be created, the user creates new scene configuration information on the terminal (e.g., a mobile phone, an edge gateway, and a cloud). And the terminal uploads the configuration information of the newly added scene to the cloud server, and the cloud server stores the configuration information of the newly added scene as the information of the newly added scene.
The configuration information of the newly added scene at least comprises the scene type of the newly added scene, the host gateway number and the family number of the newly added scene. The newly added scene configuration information is, for example, that the edge gateway 01 in the home number 305 is configured with an automatically executed scene, for example, the scene controls the washing machine to start to execute the laundry washing and drying at a preset time, and controls the sweeping robot to start to sweep at a preset time.
Each home has a unique home number, that is, a home ID (identification, abbreviated as "number"), and when creating the configuration information of the newly added scene, the user needs to specify the home to which the host gateway of the newly added scene belongs, and sets the home to which the host gateway of the newly added scene belongs by setting a home code.
Each edge gateway has a unique gateway number, that is, a gateway ID (identification, abbreviated as "number"), and when creating configuration information of a newly added scene, a user needs to designate a host gateway of the newly added scene, and sets the host gateway of the newly added scene by setting the host gateway number.
The scenario type is, for example, a manual execution type or an automatic execution type, where a manual trigger is required to execute the scenario logic, and the automatic execution type may be that the scenario logic starts to be executed automatically at a fixed time.
When the cloud server stores the newly added scene configuration information as newly added scene information, the scene type, the host gateway number and the family number of the newly added scene are stored in a one-to-one correspondence manner. More specifically, the cloud server may also allocate a scene number to the scene to distinguish different scenes, so that when the cloud server stores information about a newly added scene, the cloud server may allocate the scene number to the newly added scene first, and then store the scene number, the scene type, the information about the host gateway, and the home number of the newly added scene.
Correspondingly, the scene synchronization request is used for requesting the cloud server to issue scene information of each scene under the family corresponding to the family number, so that the scene synchronization request only carries the family number. After the cloud server analyzes the family number carried by the scene synchronization request, the family number carried by the scene synchronization request is inquired from the local storage, and the scene information of each scene under the family corresponding to the family number carried by the scene synchronization request is found.
And S420, acquiring scene information of each scene under the family corresponding to the family number according to the family number, and generating a scene synchronization response.
The scene synchronization response includes scene information of each scene in the family corresponding to the family number. The scene information of each scene at least comprises a scene number and a host gateway number of each scene. The home gateway number of the scene is used for the edge gateway to confirm whether the edge gateway is the home gateway of the scene.
S430, sending the scene synchronization response to the edge gateway.
In an alternative embodiment, each edge gateway in the home sends the scene synchronization request to the cloud server at the same time, for example, each edge gateway in the home sends the scene synchronization request to the cloud server once every day at 8 am. Each edge gateway in the home sends the scene synchronization request to the cloud server at a plurality of preset times of each day, for example, each edge gateway in the home sends the scene synchronization request to the cloud server once at 8 am of each day, and sends the scene synchronization request to the cloud server once at 4 pm of each day. Correspondingly, the cloud server sends the scene synchronization response to each edge gateway in the family, and the scene information synchronization between each edge gateway in the family is indirectly realized.
In an optional embodiment, the scene information at least includes a scene type of the scene, a home gateway number, and a home number to which the scene belongs, and the cloud server further generates a scene execution script of the scene according to the scene type of the scene, the home gateway number, and the home number to which the home gateway number belongs, and sends the scene execution script to a home gateway corresponding to the home gateway number of the scene.
In an optional embodiment, after receiving, for example, a first scene execution script issuing request, the cloud service queries, according to the scene number of the first scene, related information of the first scene, generates a first scene execution script response, and issues the first scene execution script response to the host gateway of the first scene. The first scene execution script response includes execution logic information of a first scene, the execution logic information of the first scene including at least execution device information. And after receiving the first scene execution script response, the host gateway of the first scene autonomously or passively controls the execution equipment to run based on the first scene execution response.
In summary, the scene information synchronization method provided by the embodiment is applied to the cloud server. After receiving the scene synchronization request sent by the edge gateway, the cloud server acquires scene information of each scene under a family corresponding to the family number according to the family number carried by the scene synchronization request, and generates a scene synchronization response. The scene synchronization response includes scene information of each scene in the family corresponding to the family number. And the edge gateway updates a locally stored scene information list corresponding to the family number according to the scene synchronous response. Therefore, each edge gateway and the cloud server in the family synchronize scene information, and the scene information between the edge gateways in the family is indirectly synchronized. The method and the system have the advantages that the cross-scene remote operation of the edge gateways or other functions requiring the information synchronization of the edge gateways can be realized based on the edge gateways synchronizing the scene information, so that the functions of the edge gateways in use are enriched, and the portability of the edge gateways in use is indirectly improved.
Referring to fig. 5, an embodiment of the present application further provides a method for synchronizing context information, which is applied to a first gateway, and the method includes:
and S510, confirming the host gateway of each scene according to the host gateway number in the locally stored scene information of each scene.
The scene information of each scene at least includes a host gateway number of the scene, and may further include a scene type of the scene, a scene number (generated by the cloud server at the time of scene creation), and a home number to which the scene belongs.
The first gateway stores the number of each edge gateway in the home, so that the first gateway can not only confirm whether the first gateway is the host gateway according to the host gateway number in the scene information of each scene, but also confirm the host gateway of each scene according to the host gateway number in the locally stored scene information of each scene. And when the first gateway confirms that the first gateway is not the host gateway, sending an information synchronization request to the host gateway, wherein the information synchronization request is used for requesting the host gateway to send scene change information when the scene information changes.
For example, if the gateway number of the first gateway is edge gateway 01, and the host gateway number in the scene information of one scene is edge gateway 03, it is determined that the host gateway of the one scene is the edge gateway with the gateway number of edge gateway 03. The first gateway sends an information synchronization request to the edge gateway with the gateway number being the edge gateway 03, where the information synchronization request is used to request the edge gateway with the gateway number being the edge gateway 03 to send scene change information when the local scene information changes.
S520, scene change information of the host gateway is obtained, and the scene change information is scene adding information and/or scene deleting information.
Referring to fig. 6, after confirming the home gateway of each scene, the first gateway subscribes to scene change information of each home gateway, where the scene change information is information added to the scene and/or information deleted from the scene. For example, if the edge gateway 03 adds the scene a, the first gateway acquires the information of the scene addition of the edge gateway 03 (the home gateway). For example, if the edge gateway 03 deletes the scene B, the first gateway acquires the information of the deletion of the scene of the edge gateway 03 (the home gateway). As shown in fig. 6, the host gateway receives an update scene request sent by the cloud server, and adds a scene and/or deletes a scene according to the update scene request.
It should be noted that adding a scene refers to adding an entire scene, and similarly, deleting a scene refers to deleting an entire scene.
S530, acquiring first scene information added to the scene added information and storing the first scene information; and/or acquiring second scene information deleted from the scene deletion information, and deleting the second scene information from a locally stored scene information list.
Referring to fig. 6, after adding and/or deleting a scene, the host gateway further sends a response to the scene update request to the cloud server, and if the cloud server receives the response to the scene update request, the cloud server sends the scene change information of the host gateway to the first gateway.
The information added by the scene and the information deleted by the scene are part of notification information, which is actively sent to the first gateway by the host gateway or the cloud server and used for notifying the first gateway that the host gateway has changed scene information. That is, the first gateway receives the scene change information sent by the host gateway or receives the scene change information sent by the cloud server. In an optional embodiment, if the first gateway receives the scene change information sent by the host gateway, the first gateway ignores the scene change information sent by the cloud server.
And after the first gateway acquires the scene change information of the host gateway, acquiring the added scene information and/or the deleted scene information included in the scene change information.
And if the scene change information is the scene adding information, acquiring first scene information added in the scene adding information and storing the first scene information. Of course, the scene added information may include not only the scene information to which one scene is added but also the scene information to which a plurality of scenes are added. Correspondingly, the first gateway stores scene information of a plurality of scenes.
And if the scene change information is the scene deletion information, acquiring second scene information deleted from the scene deletion information and deleting the second scene information from a locally stored scene information list. Of course, the scene deleting information may include not only the scene information of deleting one scene, but also the scene information of deleting a plurality of scenes, and correspondingly, the first gateway deletes the scene information of the plurality of scenes from the locally stored scene information list.
When the first gateway stores the scene information, the scene information is stored in a scene information list, and each family number corresponds to one scene information list
If the scene change information is the scene added information, the first scene information added in the acquired scene added information at least comprises a scene number, a scene type, a host gateway number and a family number. And if the home number included in the first scene information is already stored in the first gateway, storing the scene number, the scene type and the host gateway number included in the first scene information in a scene information list of the home number. And if the family number included in the first scene information is not stored in the first gateway, creating a scene information list corresponding to the family number included in the first scene information.
The scene number of each scene is unique, and if the scene change information is scene deletion information, the second scene information deleted in the acquired scene deletion information at least includes the scene number. And finding the second scene information in the locally stored scene information list according to the scene number included in the deleted second scene information, and deleting the second scene information from the locally stored scene information list.
In summary, the method provided in this embodiment is applied to the first gateway, and includes determining the home gateway of each scene according to the home gateway number in the locally stored scene information of each scene. And acquiring scene change information of the host gateway, wherein the scene change information is information added by the scene and/or information deleted by the scene. Acquiring first scene information added in the scene adding information and storing the first scene information; and/or acquiring second scene information deleted from the scene deletion information, and deleting the second scene information from a locally stored scene information list.
Namely, the first gateway subscribes the scene information of the host gateway, and changes the scene information of the first gateway along with the change of the scene information of the host gateway when the scene information of the host gateway changes. Therefore, scene information synchronization among the edge gateways is realized, and the edge gateways based on the synchronized scene information can remotely operate the edge gateways across scenes or realize other functions requiring the information synchronization of the edge gateways. Therefore, the method enriches the functions of the edge gateway when in use, and indirectly improves the portability of the edge gateway when in use.
Referring to fig. 7, an embodiment of the present application provides a method for remotely controlling a gateway, which is applied to a first gateway, and the first gateway is synchronized by a method for synchronizing scenario information provided in any of the above embodiments. The method for remotely controlling the gateway comprises the following steps:
s710, responding to the scene execution operation, sending a scene execution command to the second gateway, where the second gateway is a host gateway of the scene specified by the scene execution operation.
Here, a scenario designated by the scenario execution operation is named a scenario to be executed.
The scene execution operation refers to a user operation, for example, as shown in fig. 8, a user operates information and an execution button (scene execution operation) on a central control screen of the first gateway to select a scene to be executed (scene a), and the scene execution operation carries information of the scene to be executed (scene a).
In an optional embodiment, the user executes the scene execution operation on a remote terminal (e.g., a mobile phone), the scene execution operation generates a scene trigger instruction, and the scene trigger instruction is uploaded to the cloud server and then sent to the first gateway by the cloud server. The scene trigger instruction carries information of a scene to be executed.
The information of the scene to be executed at least comprises a scene number of the scene to be executed.
The information of the scene to be executed at least comprises a scene number of the scene to be executed, the scene number of each scene is unique, and the scene number also corresponds to a host gateway number. Therefore, the host gateway of the scene to be executed can be determined by the scene number of the scene to be executed.
Or the context information of each edge gateway includes a gateway number, so that the first gateway can determine the corresponding host gateway number according to the context number of the to-be-executed context, and then determine the host gateway of the to-be-executed context according to the host gateway number.
The second gateway is an edge gateway in the same home, and if the host gateway of the scene to be executed is the second gateway, the start instruction of the scene to be executed is sent to the second gateway through a wireless network (local area network). The starting instruction of the scene to be executed is used for instructing the second gateway to execute the scene to be executed, and the second gateway feeds back an execution result after executing the scene to be executed.
And the first gateway acquires the execution result of the scene to be executed and executes corresponding operation according to the execution result. For example, when the execution result is that the execution is successful, the process is ended, and at this time, the to-be-executed scenario is executed across the gateway. And when the execution result is that the execution is successful, the scene information of the scene to be executed is stored in the second gateway. The second gateway also stores the execution script information of the scene to be executed, and controls the equipment specified by the execution script information of the scene to be executed to operate when the scene to be executed is executed.
For another example, when the execution result is that the execution fails, the scenario information of the scenario to be executed may not be stored in the second gateway, and the execution script of the scenario to be executed also does not exist, then the first gateway obtains the scenario information in the second gateway again, and updates the locally stored scenario information list. Specifically, when the execution result is an execution failure, the first gateway obtains failure information carried by the execution result. And when the failure information is that the scene information of the scene to be executed is not stored in the second gateway, re-acquiring the scene information in the second gateway and updating a locally stored scene information list. When the first gateway updates the locally stored scene information list, the locally stored scene information list may be partially updated, for example, only the scene information of the scene to be executed is deleted from the locally stored scene information list.
In an optional embodiment, if the determined host gateway of the scenario to be executed is the first gateway, the first gateway executes the scenario to be executed, and sends an execution result of the scenario to be executed to the second gateway. The first gateway can execute the scene to be executed when receiving the execution command of the scene to be executed, wherein the execution command of the scene to be executed can be sent by a user through a central control screen of the first gateway in a touch mode, or can be sent to the first gateway through a mobile phone remotely through a cloud server.
If the execution result is that the execution fails, the second gateway updates the locally stored scene information list, for example, the information of the scene to be executed is deleted from the locally stored scene information list. The second gateway also needs to be notified if the execution is successful.
The first gateway receives an execution result of the scene to be executed sent by the host gateway, or receives an execution result of the scene to be executed sent by the cloud server. However, after receiving the execution result of the scene to be executed sent by the host gateway, the execution result of the scene to be executed sent by the cloud server is ignored.
In summary, the method for remotely controlling a gateway provided by this embodiment is applied to a first gateway, and the first gateway synchronizes scene information between the first gateway and other edge gateways in a home. The first gateway responds to the scene execution operation and sends a scene execution command to the second gateway, and the second gateway is a host gateway of the scene specified by the scene execution operation. In actual operation, a scenario execution scenario of a scenario may be controlled by triggering scenario execution on a non-hosting gateway, so as to implement a cross-gateway execution scenario. Therefore, the method provided by the embodiment supports the user to autonomously select the manually operated edge gateway to control the host gateway to execute the scene logic, so as to enrich the functions of the edge gateway in use and improve the portability of the edge gateway in use.
Referring to fig. 9, an embodiment of the present application further provides a scene information synchronization apparatus 10, which is applied to an edge gateway, where the scene information synchronization apparatus 10 includes:
the communication module 11 is configured to send a scene synchronization request to the cloud server, where the scene synchronization request carries a home number;
an obtaining module 12, configured to obtain a scene synchronization response sent by the cloud server, where the scene synchronization response includes scene information of each scene in a family corresponding to the family number;
and the storage module 13 is configured to update a locally stored scene information list corresponding to the family number according to the scene synchronization response.
The obtaining module 12 is further configured to obtain, when the scene synchronization response is not obtained, scene information currently stored by at least one edge gateway in the home corresponding to the home number.
The storage module 13 is further configured to update the locally stored scene information list according to the scene information currently stored by the at least one edge gateway.
The obtaining module 12 is specifically configured to obtain time when M edge gateways in a home corresponding to the home number update a locally stored scene information list, and obtain M update times, where M is an integer greater than 1; screening out a reference edge gateway corresponding to the maximum updating time in the M updating times; and acquiring the scene information currently stored by the reference edge gateway.
The storage module 13 is specifically configured to update the locally stored scene information list according to the scene information currently stored by the reference edge gateway.
The scene information in the scene synchronization response and the scene information currently stored by the at least one edge gateway at least comprise a scene number and a host gateway number of each scene, the host gateway number is used for defining a host gateway,
the communication module 11 is further configured to send a first scene execution script issuing request to the cloud server when the host gateway of the first scene is the edge gateway, where the first scene execution script issuing request carries a scene number of the first scene.
The obtaining module 12 is further configured to obtain a first scene execution script response sent by the cloud server, where the first scene execution script response at least includes execution logic information of the first scene, and the execution logic information at least includes execution device information.
The communication module 11 is further configured to send a first scene execution script issuing request to the at least one edge gateway when the first scene execution script response is not obtained, so that the at least one edge gateway forwards the first scene execution script issuing request to the cloud server.
And each edge gateway in the family corresponding to the family number simultaneously sends the scene synchronization request to the cloud server.
Referring to fig. 10, an embodiment of the present application further provides a scene information synchronization apparatus 20, which is applied to a cloud server, where the scene information synchronization apparatus 10 includes:
the communication module 21 is configured to receive a scene synchronization request sent by an edge gateway, where the scene synchronization request carries a home number.
And the processing module 22 is configured to obtain scene information of each scene in the family corresponding to the family number according to the family number, and generate a scene synchronization response.
The communication module 21 is further configured to send the scene synchronization response to the edge gateway.
The processing module 22 is further configured to obtain newly added scene configuration information, where the newly added scene configuration information at least includes a scene type of the newly added scene, a host gateway number, and a home number to which the newly added scene belongs; allocating a scene number to the newly added scene; and storing the scene number, the scene type, the information of the host gateway and the family number of the newly added scene.
The scene information at least includes a scene type of the scene, a home gateway number and a home number to which the host gateway number belongs, and the processing module 22 is further configured to generate a scene execution script of the scene according to the scene type of the scene, the home gateway number and the home number to which the host gateway number belongs; and sending the scene execution script to the host gateway corresponding to the host gateway number of the scene.
Referring to fig. 11, an embodiment of the present application further provides an electronic device 30, which includes a memory 31 and a processor 32. The memory 31 has a computer program stored therein, and the processor 32 is configured to execute the method for synchronizing scene information provided in any one of the above embodiments or execute the method for remotely controlling a gateway provided in any one of the above embodiments.
The present application also provides a computer-readable storage medium having stored therein computer-executable instructions, which, when executed, cause a processor to execute the instructions to implement the scene information synchronization method provided in any one of the above embodiments or to execute the method for remotely controlling a gateway provided in any one of the above embodiments.
The present application further provides a computer program product comprising a computer program, which when executed by a processor implements the method for synchronizing scene information as provided in any one of the above embodiments, or performs the method for remotely controlling a gateway as provided in any one of the above embodiments.
The computer-readable storage medium may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM). And may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method described in the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (14)

1. A scene information synchronization method is applied to an edge gateway, and the method comprises the following steps:
sending a scene synchronization request to a cloud server, wherein the scene synchronization request carries a family number;
acquiring a scene synchronization response sent by the cloud server, wherein the scene synchronization response comprises scene information of each scene under the family corresponding to the family number;
and updating a locally stored scene information list corresponding to the family number according to the scene synchronous response.
2. The method of claim 1, further comprising:
when the scene synchronous response is not acquired, acquiring scene information currently stored by at least one edge gateway in a family corresponding to the family number;
and updating the locally stored scene information list according to the scene information currently stored by the at least one edge gateway.
3. The method according to claim 2, wherein the obtaining of the scene information currently stored by at least one edge gateway in the home corresponding to the home number comprises:
acquiring the time when M edge gateways in a family corresponding to the family number update a locally stored scene information list to obtain M update times, wherein M is an integer larger than 1;
screening out a reference edge gateway corresponding to the maximum updating time in the M updating times;
acquiring scene information currently stored by the reference edge gateway;
the updating the locally stored context information list according to the context information currently stored by the at least one edge gateway includes:
and updating the locally stored scene information list according to the scene information currently stored by the reference edge gateway.
4. The method according to claim 2, wherein the scene information in the scene synchronization response and the scene information currently stored by the at least one edge gateway each include at least a scene number and a home gateway number of each scene, and the home gateway number is used to define a home gateway, and the method further comprises:
when a host gateway of a first scene is a local edge gateway, sending a first scene execution script issuing request to the cloud server, wherein the first scene execution script issuing request carries a scene number of the first scene;
acquiring a first scene execution script response sent by the cloud server, wherein the first scene execution script response at least comprises execution logic information of the first scene, and the execution logic information at least comprises execution equipment information.
5. The method of claim 4, further comprising:
when the first scene execution script response is not acquired, sending a first scene execution script issuing request to the at least one edge gateway, so that the at least one edge gateway forwards the first scene execution script issuing request to the cloud server.
6. The method according to any one of claims 1 to 5, wherein each edge gateway in the home corresponding to the home number simultaneously sends the scene synchronization request to the cloud server.
7. A scene information synchronization method is applied to a cloud server and comprises the following steps:
receiving a scene synchronization request sent by an edge gateway, wherein the scene synchronization request carries a family number;
acquiring scene information of each scene under the family corresponding to the family number according to the family number, and generating a scene synchronization response;
and sending the scene synchronization response to the edge gateway.
8. The method of claim 7, further comprising:
acquiring newly added scene configuration information, wherein the newly added scene configuration information at least comprises a scene type of a newly added scene, a host gateway number and a family number to which the newly added scene belongs;
allocating a scene number to the newly added scene;
and storing the scene number, the scene type, the information of the host gateway and the family number of the newly added scene.
9. The method according to claim 8, wherein the scene information at least includes a scene type, a home gateway number and a home number of the scene, and the method further comprises:
generating a scene execution script of a scene according to the scene type of the scene, the host gateway number and the family number of the scene;
and sending the scene execution script to a host gateway corresponding to the host gateway number of the scene.
10. A method for remotely operating a gateway, applied to a first gateway, wherein context information of the first gateway and context information of a second gateway are synchronized by the context information synchronization method according to any one of claims 1 to 6, or by the context information synchronization method according to any one of claims 7 to 9, the method comprising:
and responding to a scene execution operation, and sending a scene execution command to the second gateway, wherein the second gateway is a host gateway of a scene specified by the scene execution operation.
11. A scene information synchronizer, applied to an edge gateway, includes:
the communication module is used for sending a scene synchronization request to the cloud server, wherein the scene synchronization request carries a family number;
an obtaining module, configured to obtain a scene synchronization response sent by the cloud server, where the scene synchronization response includes scene information of each scene in a family corresponding to the family number;
and the storage module is used for updating a locally stored scene information list corresponding to the family number according to the scene synchronous response.
12. A scene information synchronization device is applied to a cloud server and comprises:
the communication module is used for receiving a scene synchronization request sent by an edge gateway, wherein the scene synchronization request carries a family number;
the processing module is used for acquiring scene information of each scene under the family corresponding to the family number according to the family number and generating a scene synchronization response;
the communication module is further configured to send the scene synchronization response to the edge gateway.
13. A computer-readable storage medium, comprising a stored program, wherein the program executes to perform the scene information synchronization method of any one of claims 1 to 6, or the scene information synchronization method of any one of claims 7 to 9, or the method of remotely operating a gateway of claim 10.
14. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the method for synchronizing scene information according to any one of claims 1 to 6, or to execute the method for synchronizing scene information according to any one of claims 7 to 9, or to execute the method for remotely controlling a gateway according to claim 10.
CN202210597444.2A 2022-05-30 Scene information synchronization method and device, storage medium and electronic device Active CN115174295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210597444.2A CN115174295B (en) 2022-05-30 Scene information synchronization method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210597444.2A CN115174295B (en) 2022-05-30 Scene information synchronization method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115174295A true CN115174295A (en) 2022-10-11
CN115174295B CN115174295B (en) 2024-05-24

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177671A1 (en) * 2018-12-03 2020-06-04 At&T Intellectual Property I, L.P. Global internet of things (iot) quality of service (qos) realization through collaborative edge gateways
CN111400777A (en) * 2019-11-14 2020-07-10 杭州海康威视系统技术有限公司 Network storage system, user authentication method, device and equipment
CN111885136A (en) * 2020-07-15 2020-11-03 北京时代凌宇科技股份有限公司 Edge computing gateway cluster operation method and system based on edge cloud cooperation
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN113992675A (en) * 2021-10-26 2022-01-28 云知声(上海)智能科技有限公司 IOT cloud platform and edge gateway cooperative work method, system and storage medium
CN114500554A (en) * 2022-02-09 2022-05-13 南京戎光软件科技有限公司 Internet of things system management method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200177671A1 (en) * 2018-12-03 2020-06-04 At&T Intellectual Property I, L.P. Global internet of things (iot) quality of service (qos) realization through collaborative edge gateways
CN111400777A (en) * 2019-11-14 2020-07-10 杭州海康威视系统技术有限公司 Network storage system, user authentication method, device and equipment
CN111885136A (en) * 2020-07-15 2020-11-03 北京时代凌宇科技股份有限公司 Edge computing gateway cluster operation method and system based on edge cloud cooperation
CN112995348A (en) * 2021-05-12 2021-06-18 北京金山云网络技术有限公司 Control method, device and system of Internet of things equipment
CN113992675A (en) * 2021-10-26 2022-01-28 云知声(上海)智能科技有限公司 IOT cloud platform and edge gateway cooperative work method, system and storage medium
CN114500554A (en) * 2022-02-09 2022-05-13 南京戎光软件科技有限公司 Internet of things system management method

Similar Documents

Publication Publication Date Title
JP6207734B2 (en) Intelligent device scene mode customization method and apparatus
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN105577493A (en) Control method and device of smart home devices and system
CN103605531A (en) Household appliance control method and device and mobile terminal
CN113225744B (en) Intelligent device ad hoc network method, intelligent networking system and storage medium
JP2017502623A (en) Smart device control method, control apparatus, program and recording medium based on set scene mode
CN105577495A (en) Control method and device of smart home devices
CN106130881A (en) A kind of account number login method and device
US20150067129A1 (en) Apparatus, system, and method of managing device, and recording medium storing device management program
KR100786424B1 (en) Home electric appliances remote control system, service provision server, home server, home electric appliances remote control support method of service provision server, and home electric appliances service provision support method of service provision server
CN112073243A (en) Intelligent household appliance configuration method, terminal, intelligent household appliance, server and storage medium
CN104635543A (en) Method and device for carrying out management operation
CN102299814A (en) Method and system for upgrading MIB (management information base) on SNMP (simple network management protocol) agent
CN108111379A (en) A kind of method and apparatus for controlling smart home device
CN112230554A (en) Linkage control method and system, terminal, computer device and storage medium
CN115174295B (en) Scene information synchronization method and device, storage medium and electronic device
CN115174293B (en) Scene information synchronization method and device, storage medium and electronic device
CN115174295A (en) Scene information synchronization method and device, storage medium and electronic device
CN115174294B (en) Cross-gateway scene processing method and device, storage medium and electronic device
CN115174294A (en) Cross-gateway scene processing method and device, storage medium and electronic device
CN113992698A (en) Intelligent device management method, gateway and computer readable storage medium
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
JP2005107737A (en) Electric equipment, electric equipment controller and application server
CN114637216A (en) Scene configuration method and device, control method and device, intelligent equipment and medium
CN115514750A (en) Electronic device remote control method, server, system, medium, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant