CN115174294B - Cross-gateway scene processing method and device, storage medium and electronic device - Google Patents

Cross-gateway scene processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115174294B
CN115174294B CN202210597244.7A CN202210597244A CN115174294B CN 115174294 B CN115174294 B CN 115174294B CN 202210597244 A CN202210597244 A CN 202210597244A CN 115174294 B CN115174294 B CN 115174294B
Authority
CN
China
Prior art keywords
scene
gateway
executed
information
host
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.)
Active
Application number
CN202210597244.7A
Other languages
Chinese (zh)
Other versions
CN115174294A (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
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier 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, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210597244.7A priority Critical patent/CN115174294B/en
Publication of CN115174294A publication Critical patent/CN115174294A/en
Application granted granted Critical
Publication of CN115174294B publication Critical patent/CN115174294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The application provides a method and a device for processing a scene across gateways, a storage medium and an electronic device. The method is applied to a first gateway, wherein the first gateway stores scene information in a second gateway, and the method comprises the following steps: receiving a scene trigger instruction, wherein the scene trigger instruction carries information of a scene to be executed; determining a host gateway of the scene to be executed according to the information of the scene to be executed; if the host gateway of the scene to be executed is the second gateway, then: transmitting a start instruction of the scene to be executed to the second gateway through a wireless network; acquiring an execution result of the scene to be executed; and executing corresponding operation according to the execution result. The method of the application supports the user to autonomously select the edge gateway which is manually controlled to control the host gateway to execute scene logic, so as to enrich the functions of the edge gateway when in use and improve the portability of the edge gateway when in use.

Description

Cross-gateway scene processing method and device, storage medium and electronic device
Technical Field
The present application relates to gateway control technologies, and in particular, to a method and apparatus for processing a scene across gateways, a storage medium, and an electronic apparatus.
Background
Intelligent home equipment such as intelligent air conditioner, intelligent refrigerator, intelligent door and window, intelligent stereo set, intelligent robot that sweeps floor all need access edge gateway, constitute intelligent home systems with cloud ware jointly. The existing intelligent home control method is that a scene is created at a mobile phone end, a cloud server generates control instructions according to configuration files related to the scene, which are uploaded to the cloud server by the mobile phone, the control instructions are sent to a host gateway one by one, and the host gateway sends the control instructions to intelligent home equipment appointed by the control instructions after receiving the control instructions.
One or more edge gateways can be arranged in different areas of the home according to functional requirements, scene information among the edge gateways is mutually independent, manual operation can only be performed on a corresponding host gateway when a certain scene is manually executed, and user experience is poor. If the user can control the host gateway to execute the scene logic through the edge gateway which is most convenient to control, the user experience can be greatly improved.
Therefore, how to support users to autonomously select an edge gateway manually controlled to control a host gateway to execute scene logic so as to enrich functions of the edge gateway and improve portability of the edge gateway when in use is still a problem to be solved.
Disclosure of Invention
The application provides a cross-gateway scene processing method and device, a storage medium and an electronic device, which are used for supporting users to autonomously select a manually operated edge gateway to control a host gateway to execute scene logic so as to enrich functions of the edge gateway in use and improve portability of the edge gateway in use.
In one aspect, the present application provides a method for processing a scene across gateways, which is applied to a first gateway, where the first gateway stores scene information in a second gateway, and the method includes:
receiving a scene trigger instruction, wherein the scene trigger instruction carries information of a scene to be executed;
determining a host gateway of the scene to be executed according to the information of the scene to be executed;
If the host gateway of the scene to be executed is the second gateway, then:
transmitting a start instruction of the scene to be executed to the second gateway through a wireless network;
acquiring an execution result of the scene to be executed;
And executing corresponding operation according to the execution result.
In one embodiment, the method further comprises:
if the host gateway of the scene to be executed is the first gateway, executing the scene to be executed;
and sending an execution result of the scene to be executed to the second gateway.
In one embodiment, if the hosting gateway of the to-be-executed scene is the first gateway, executing the to-be-executed scene includes:
And if the host gateway of the scene to be executed is the first gateway, executing the scene to be executed when receiving an execution command of the scene to be executed.
In one embodiment, the performing, according to the execution result, the corresponding operation includes:
ending the process when the execution result is that the execution is successful;
And when the execution result is that the execution fails, re-acquiring the scene information in the second gateway, and updating a locally stored scene information list.
In one embodiment, when the execution result is that the execution fails, re-acquiring the scene information in the second gateway and updating the locally stored scene information list includes:
When the execution result is the execution failure, acquiring failure information carried by the execution result;
And when the failure information is the scene information of the scene to be executed which is not stored in the second gateway, acquiring the scene information in the second gateway again, and updating a locally stored scene information list.
In one embodiment, the information of the to-be-executed scene at least includes a host gateway number of the to-be-executed scene, and the determining, according to the information of the to-be-executed scene, the host gateway of the to-be-executed scene includes:
And determining the host gateway of the scene to be executed according to the host gateway number of the scene to be executed.
In one embodiment, the obtaining the execution result of the to-be-executed scene includes one of the following:
receiving an execution result of a scene to be executed, which is sent by a host gateway; or alternatively
Receiving an execution result of a scene to be executed, which is sent by a cloud server; or alternatively
And if the execution result of the scene to be executed, which is sent by the host gateway, is received, the execution result of the scene to be executed, which is sent by the cloud server, is ignored.
In another aspect, the present application provides a method for executing a scenario, applied to a cloud server, where the method includes:
receiving a starting instruction of a scene to be executed, which is sent by a first gateway;
determining a host gateway of the scene to be executed according to the starting instruction of the scene to be executed;
sending a starting instruction of the scene to be executed to the host gateway;
Receiving an execution result of the scene to be executed, which is reported by the host gateway;
and sending the execution result of the scene to be executed to the first gateway.
In one embodiment, the determining, according to the start instruction of the to-be-executed scenario, the hosting gateway of the to-be-executed scenario includes:
acquiring scene information of the scene to be executed according to the starting instruction of the scene to be executed, wherein the scene information at least comprises a host gateway number of the scene to be executed;
And determining the host gateway of the scene to be executed according to the host gateway number of the scene to be executed.
On the other hand, the application provides a cross-gateway scene processing device, which is applied to a first gateway, wherein the first gateway stores scene information in a second gateway, and the device comprises:
the communication module is used for receiving a scene triggering instruction, wherein the scene triggering instruction carries information of a scene to be executed;
the processing module is used for determining a host gateway of the scene to be executed according to the information of the scene to be executed;
the processing module is further configured to, if the hosting gateway of the scene to be executed is a second gateway:
transmitting a start instruction of the scene to be executed to the second gateway through a wireless network;
acquiring an execution result of the scene to be executed;
And executing corresponding operation according to the execution result.
In another aspect, the present application provides an apparatus for executing a scenario, applied to a cloud server, the apparatus comprising:
the communication module is used for receiving a starting instruction of a scene to be executed, which is sent by the first gateway;
the processing module is used for determining a host gateway of the scene to be executed according to the starting instruction of the scene to be executed;
The communication module is also used for sending a starting instruction of the scene to be executed to the host gateway;
The communication module is also used for receiving an execution result of the scene to be executed, which is reported by the host gateway;
The communication module is further configured to send an execution result of the to-be-executed scene to the first gateway.
In another aspect, the present application provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program when executed performs the method of performing a scene across a gateway according to the first aspect, or performs the method of performing a scene according to the second aspect.
In another aspect, the application provides an electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to execute the method of performing a scene across a gateway according to the first aspect by means of the computer program, the method of performing a scene according to the second aspect.
The method for processing the scene across the gateways, provided by the embodiment of the application, is applied to the first gateway, and the first gateway stores the scene information in the second gateway. After receiving the scene trigger instruction, the first gateway determines a host gateway of the scene to be executed according to the information of the scene to be executed carried by the scene trigger instruction. If the host gateway of the scene to be executed is a second gateway, sending a starting instruction of the scene to be executed to the second gateway through a wireless network, and executing corresponding operation according to the execution result after obtaining the execution result of the scene to be executed. In actual operation, the cross-gateway execution scenario may be implemented by triggering the scenario execution on the non-hosting gateway to control the hosting gateway execution scenario of the scenario. Therefore, the method provided by the embodiment of the application supports the user to autonomously select the edge gateway which is manually controlled to control the host gateway to execute the scene logic, so that the functions of the edge gateway in use are enriched and the portability of the edge gateway in use is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 a cross-gateway scenario processing method provided by the present application;
fig. 2 is a flow chart of a method for processing a scene across gateways according to an embodiment of the present application;
fig. 3 is a schematic diagram of a central control screen of a first gateway according to an embodiment of the present application;
Fig. 4 is an interaction schematic diagram among a first gateway, a hosting gateway and a cloud server in a cross-gateway scene processing method according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for performing a scenario according to an embodiment of the present application;
fig. 6 is a flowchart of a scenario information synchronization method according to an embodiment of the present application;
Fig. 7 is an interaction schematic diagram among a first gateway, a hosting gateway and a cloud server in a scene information synchronization method according to an embodiment of the present application;
fig. 8 is a flowchart of a scene information synchronization method according to another embodiment of the present application;
Fig. 9 is a flowchart of a scenario information synchronization method according to another embodiment of the present application;
Fig. 10 is a schematic diagram of a cross-gateway scene processing device according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an apparatus for performing a scenario provided by an embodiment of the present application;
Fig. 12 is a schematic diagram of an electronic device according to an embodiment of the application.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terms involved in the present application are explained as follows:
Edge gateway: the gateway arranged at the network edge side is connected with the physical world and the digital world through functions such as network connection, protocol conversion and the like, and provides light connection management, real-time data analysis and application management functions.
And (3) a host gateway: and finally executing the edge gateway of the scene logic.
Non-hosting gateway: other edge gateways besides the home gateway are in the home.
Intelligent home equipment such as intelligent air conditioner, intelligent refrigerator, intelligent door and window, intelligent stereo set, intelligent robot that sweeps floor all need access edge gateway, constitute intelligent home systems with cloud ware jointly. The existing intelligent home control method is that a scene is created at a mobile phone end, a cloud server generates control instructions according to configuration files related to the scene, which are uploaded to the cloud server by the mobile phone, the control instructions are sent to a host gateway one by one, and the host gateway sends the control instructions to intelligent home equipment appointed by the control instructions after receiving the control instructions.
One or more edge gateways can be arranged in different areas of the home according to functional requirements, scene information among the edge gateways is mutually independent, manual operation can only be performed on a corresponding host gateway when a certain scene is manually executed, and user experience is poor. If the user can control the host gateway to execute the scene logic through the edge gateway which is most convenient to control, the user experience can be greatly improved.
Therefore, how to support users to autonomously select an edge gateway manually controlled to control a host gateway to execute scene logic so as to enrich functions of the edge gateway and improve portability of the edge gateway when in use is still a problem to be solved.
Based on the method and the device, the application provides a cross-gateway scene processing method and device, a storage medium and an electronic device. The cross-gateway scene processing method is applied to a first gateway, and the first gateway stores scene information in a second gateway. After receiving the scene trigger instruction, the first gateway determines a host gateway of the scene to be executed according to the information of the scene to be executed carried by the scene trigger instruction. If the host gateway of the scene to be executed is a second gateway, sending a starting instruction of the scene to be executed to the second gateway through a wireless network, and executing corresponding operation according to the execution result after obtaining the execution result of the scene to be executed. In actual operation, the cross-gateway execution scenario may be implemented by triggering the scenario execution on the non-hosting gateway to control the hosting gateway execution scenario of the scenario. Therefore, the method provided by the embodiment of the application supports the user to autonomously select the edge gateway which is manually controlled to control the host gateway to execute the scene logic, so that the functions of the edge gateway in use are enriched and the portability of the edge gateway in use is improved.
The cross-gateway scene processing method provided by the application is applied to the edge gateway or other electronic equipment capable of controlling the intelligent home equipment. Fig. 1 is an application schematic diagram of a cross-gateway scene processing method provided by the application. In the figure, the edge gateway receives a scene trigger instruction, determines a host gateway of a scene to be executed according to the scene trigger instruction, and sends a starting instruction of the scene to be executed to the host gateway so that the host gateway executes the scene to be executed. The edge gateway obtains the execution result of the scene to be executed from the host gateway.
Referring to fig. 2, an embodiment of the present application provides a method for processing a scene across gateways, which is applied to a first gateway, and the first gateway stores scene information in a second gateway. It is also understood that the scene information in the first gateway and the second gateway are synchronized. In an alternative embodiment, the scene information in the first gateway is synchronized with the scene information of each edge gateway in the home to which it belongs.
The method comprises the following steps:
S210, receiving a scene trigger instruction, wherein the scene trigger instruction carries information of a scene to be executed.
The scene trigger instruction is generated by a user operation, for example, as shown in fig. 3, after the user operates and selects information of a scene to be executed (scene a) and an execution button on a central control screen of the first gateway, the scene trigger instruction is generated, and the scene trigger instruction carries the information of the scene to be executed (scene a).
In an alternative embodiment, the user may also remotely send the scene trigger instruction to the first gateway, for example, the user operates on a mobile phone to generate a scene trigger instruction, where the scene trigger instruction is uploaded to a cloud server first, and then the cloud server sends the scene trigger instruction to the first gateway.
The information of the to-be-executed scene at least includes a scene number of the to-be-executed scene for the following reasons.
When creating a scene, a user creates newly added scene configuration information on a terminal (e.g., mobile phone, edge gateway, cloud). The terminal uploads the newly added scene configuration information to the cloud server, and the cloud server stores the newly added scene configuration information as newly added scene information.
The newly added scene configuration information at least comprises a scene type, a host gateway number and a home number of the newly added scene. The newly added scene configuration information is, for example, a scene in which the edge gateway 01 in the home number 305 is configured to be automatically executed, for example, to control the washing machine to start washing and drying laundry at a preset time, and to control the sweeping robot to start sweeping at a preset time.
Each home has a unique home ID (identification number), and when creating the configuration information of the new scene, the user needs to designate the home to which the home gateway of the new scene belongs, and sets the home to which the home gateway of the new scene belongs by setting a home code.
Each edge gateway has a unique gateway number, i.e. a gateway ID (identification number), and when creating the configuration information of the new scene, the user needs to designate the host gateway of the new scene, and sets the host gateway of the new scene by setting the host gateway number.
The scene type is, for example, a manual execution type or an automatic execution type, wherein the manual execution type refers to that the scene logic is executed after the manual trigger is needed, and the automatic execution type may be that the scene logic is automatically started to be executed 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 home number of the newly added scene are stored in a one-to-one correspondence. More specifically, the cloud server allocates a scene number to a scene to distinguish different scenes, so when storing the newly-added scene information, the cloud server allocates the scene number to the newly-added scene, and then stores the scene number, the scene type, the information of the host gateway and the home number to which the newly-added scene belongs.
The information of the to-be-executed scene at least comprises a host gateway number of the to-be-executed scene and a scene number of the to-be-executed scene. The host gateway number of the to-be-executed scene is used for enabling the first gateway to determine the host gateway of the to-be-executed scene according to the host gateway number of the to-be-executed scene. The scene number of the to-be-executed scene is used for enabling the host gateway of the to-be-executed scene to inquire the to-be-executed scene from a locally stored scene information list.
S220, determining a host gateway of the scene to be executed according to the information of the scene to be executed.
The scene information of each edge gateway is stored into a scene information list, which is shown in table 1.
Table 1:
As described above, the information of the to-be-executed scene at least includes the scene number of the to-be-executed scene, where the scene number of each scene is unique, and the scene number also corresponds to the host gateway number. The hosting gateway for the scene to be executed can be determined by the scene number of the scene to be executed.
Or the scene information of each edge gateway comprises a gateway number, so that the first gateway can confirm the corresponding host gateway number according to the scene number of the scene to be executed, and then confirm the host gateway of the scene to be executed through the host gateway number.
S230, if the host gateway of the scene to be executed is the second gateway, then: and sending a starting instruction of the scene to be executed to the second gateway through the wireless network, acquiring an execution result of the scene to be executed, and executing corresponding operation according to the execution result.
The second gateway is an edge gateway in the same family, and if the host gateway of the scene to be executed is the second gateway, the starting 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 to-be-executed scene is used for commanding the second gateway to execute the to-be-executed scene, and the second gateway feeds back an execution result after executing the to-be-executed scene.
The first gateway obtains an 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 the execution of the scene to be executed across the gateway is realized. And when the execution result is that the execution is successful, the second gateway is indicated to store the scene information of the scene to be executed. The second gateway also stores the execution script information of the scene to be executed, and when the scene to be executed is executed, the device specified by the execution script information of the scene to be executed is controlled to run.
For another example, when the execution result is that the execution fails, it may be that the second gateway does not store the scene information of the to-be-executed scene and does not have the execution script of the to-be-executed scene, and the first gateway re-acquires the scene information in the second gateway and updates the locally stored scene information list. Specifically, when the execution result is that the execution fails, the first gateway acquires failure information carried by the execution result. And when the failure information is the scene information of the scene to be executed which is not stored in the second gateway, acquiring the scene information in the second gateway again, and updating a locally stored scene information list. When the first gateway updates the locally stored scene information list, it may partially update the locally stored scene information list, for example, only delete the scene information of the to-be-executed scene from the locally stored scene information list.
In an optional embodiment, when the host gateway of the to-be-executed scene determined in step S220 is the first gateway, the first gateway executes the to-be-executed scene and sends an execution result of the to-be-executed scene 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, and the execution command of the scene to be executed can be sent by a user through touching a central control screen of the first gateway 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 a 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 needs to be notified if the execution is successful.
As shown in fig. 4, the first gateway receives an execution result of a to-be-executed scene sent by the hosting gateway, or receives an execution result of a to-be-executed scene sent by the cloud server. However, if the execution result of the to-be-executed scene sent by the host gateway is received, the execution result of the to-be-executed scene sent by the cloud server is ignored.
It is necessary to keep the first gateway and the second gateway (hosting gateway) in an online state when performing steps S210 to S230. As shown in fig. 4, if the second gateway is on-line, an on-line notification is sent to the first gateway. And if the second gateway is on-line or off-line, the cloud server sends a second gateway on-line notification or a second gateway off-line notification to the first gateway. When the second gateway is in the off-line state, the cross-gateway execution scene cannot be realized, and the first gateway displays the off-line notification of the second gateway to the user.
In summary, the method for processing a scene across gateways provided in this embodiment is applied to a first gateway, where the first gateway stores scene information in a second gateway. After receiving the scene trigger instruction, the first gateway determines a host gateway of the scene to be executed according to the information of the scene to be executed carried by the scene trigger instruction. If the host gateway of the scene to be executed is a second gateway, sending a starting instruction of the scene to be executed to the second gateway through a wireless network, and executing corresponding operation according to the execution result after obtaining the execution result of the scene to be executed. In actual operation, the cross-gateway execution scenario may be implemented by triggering the scenario execution on the non-hosting gateway to control the hosting gateway execution scenario of the scenario. Therefore, the method provided by the embodiment supports the user to autonomously select the edge gateway which is manually controlled to control the host gateway to execute the scene logic, so that functions of the edge gateway in use are enriched, and portability of the edge gateway in use is improved.
Referring to fig. 4 and 5, an embodiment of the present application further provides a method for executing a scenario, which is applied to a cloud server, and includes:
s510, receiving a starting instruction of a scene to be executed, which is sent by a first gateway.
The first gateway is a non-hosting gateway of the scene to be executed. And the user can generate a starting instruction of the scene to be executed by operating the central control screen of the first gateway, and then send the starting instruction of the scene to be executed to the cloud server.
The starting instruction of the to-be-executed scene at least carries the host gateway number of the to-be-executed scene and also carries the scene number of the to-be-executed scene.
S520, determining a host gateway of the scene to be executed according to the starting instruction of the scene to be executed.
The cloud server stores scene information in all edge gateways in a family to which the first gateway belongs, wherein the scene information comprises scene numbers, scene types, host gateway numbers and family numbers to which the first gateway belongs. The cloud server may determine a hosting gateway for the to-be-executed scene according to the hosting gateway number of the to-be-executed scene.
S530, sending a starting instruction of the scene to be executed to the host gateway.
The cloud server is in fact forwarding the start-up instruction of the scenario to be executed to the hosting gateway, which is the second gateway as described above. After receiving the starting instruction of the to-be-executed scene, the host gateway invokes the scene information of the to-be-executed scene from a locally stored scene information list according to the scene number of the to-be-executed scene, and executes the to-be-executed scene after the scene execution script
S540, receiving an execution result of the scene to be executed, which is reported by the host gateway.
When the execution result of the to-be-executed scene is failure, there may be no scene information of the to-be-executed scene in the hosting gateway.
S550, sending the execution result of the scene to be executed to the first gateway.
The first gateway is a non-hosting gateway, receives an execution result of the to-be-executed scene sent by the hosting gateway and an execution result of the to-be-executed scene sent by the cloud server, and ignores the execution result of the to-be-executed scene sent by the cloud server when the execution result of the to-be-executed scene sent by the hosting gateway is received first.
In summary, the method provided in this embodiment is applied to a cloud server, and when the edge gateways cannot communicate through a local area network (i.e., a wireless network), for example, when the first gateway (non-hosting gateway) and the hosting gateway cannot communicate through the local area network, a start instruction of a to-be-executed scene and an execution result of the to-be-executed scene are forwarded through the cloud server. The method provided by the embodiment can still ensure that the scene processing across the gateway can be realized when the local area network (namely the wireless network) is abnormal. Therefore, the method provided by the embodiment supports the user to autonomously select the edge gateway which is manually controlled to control the host gateway to execute the scene logic, so that functions of the edge gateway in use are enriched, and portability of the edge gateway in use is improved.
Referring to fig. 6, an embodiment of the present application provides a scene information synchronization method, applied to a first gateway, including:
s610, 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 hosting 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 serial number of each edge gateway in the home, so that the first gateway not only can confirm whether the first gateway is a host gateway according to the host gateway serial number in the scene information of each scene, but also can confirm the host gateway of each scene according to the host gateway serial number in the scene information of each scene stored locally. When the first gateway confirms that the first gateway is not the hosting gateway, an information synchronization request is sent to the hosting gateway, wherein the information synchronization request is used for requesting the hosting gateway to send scene change information when the scene information is changed.
For example, 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, and the host gateway of the one scene is confirmed to be the edge gateway with the gateway number of edge gateway 03. The first gateway sends an information synchronization request to an edge gateway with a gateway number of edge gateway 03, where the information synchronization request is used to request the edge gateway with the gateway number of edge gateway 03 to send scene change information when local scene information changes.
S620, obtaining scene change information of the host gateway, wherein the scene change information is scene added information and/or scene deleted information.
Referring to fig. 7, after confirming the hosting gateway of each scene, the first gateway subscribes to the scene change information of each hosting gateway, where the scene change information is added information of the scene and/or deleted information of the scene. For example, when scene a is added to the edge gateway 03, the first gateway acquires information about scene addition of the edge gateway 03 (hosting gateway). For example, when the scene B is deleted in the edge gateway 03, the first gateway acquires information about the deletion of the scene in the edge gateway 03 (hosting gateway). As shown in fig. 7, the hosting gateway receives an update scenario request sent by the cloud server, and adds and/or deletes a scenario according to the update scenario 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.
S630, acquiring first scene information added in 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.
The scene added information and part of the scene deleted information are notification information which is actively sent to the first gateway by the host gateway or the cloud server and is used for notifying the first gateway that the host gateway has scene information change. That is, the first gateway receives the scene change information sent by the hosting 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 hosting gateway, the first gateway ignores the scene change information sent by the cloud server.
After the first gateway obtains the scene change information of the host gateway, the first gateway obtains added scene information and/or deleted scene information included in the scene change information.
And if the scene change information is scene added information, acquiring first scene information added in the scene added information and storing the first scene information. Of course, the scene added information may include not only scene information to which one scene is added but also 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 information of the scene deletion 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.
The information of the first scene includes a scene type, a scene number, a home gateway number, and a home number to which the first scene belongs. The information of the second scene includes at least a scene number of the second scene.
In summary, the method provided in this embodiment is applied to the first gateway, and includes confirming the hosting gateway of each scene according to the hosting 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 scene added information and/or scene deleted information. Acquiring first scene information added in 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.
That is, the first gateway subscribes to the scene information of the hosting gateway, and changes its own scene information along with the change of the scene information of the hosting gateway when the scene information of the hosting gateway changes. Therefore, the synchronization of the scene information among the edge gateways is realized, and the edge gateways based on the synchronization of the scene information can realize the inter-scene remote operation of the edge gateways or realize other functions requiring the synchronization of the information of the edge gateways. Therefore, the application enriches the functions of the edge gateway in use and indirectly improves the portability of the edge gateway in use.
Referring to fig. 8, an embodiment of the present application further provides a scene information synchronization method applied to an edge gateway, where the edge gateway is the first gateway and the second gateway as described above. The method provided by the embodiment comprises the following steps:
s810, sending a scene synchronization request to the cloud server at preset time, wherein the scene synchronization request carries a family number.
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 home number of the newly added scene are stored in a one-to-one correspondence. More specifically, the cloud server allocates a scene number to a scene to distinguish different scenes, so when storing the newly-added scene information, the cloud server allocates the scene number to the newly-added scene, and then stores the scene number, the scene type, the information of the host gateway and the home number to which the newly-added scene belongs.
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 queried 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.
The preset time may be, for example, 10 am each day, 1 pm each day, 4 pm each day, and the preset time may be one or more. The preset time may be set according to actual needs, and the embodiment is not limited.
S820, obtaining 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 the scene information at least comprises a host gateway number of the scene.
The scene information of each scene includes at least a scene number and a hosting gateway number of each scene. Wherein the hosting gateway number of the scene is used to make the first gateway confirm whether itself is the hosting gateway of the scene.
For example, when the hosting gateway of the first scene is the first gateway, a first scene execution script issuing request is generated based on the scene number of the first scene, where the first scene execution script issuing request carries the scene number of the first scene. The first gateway sends a first scenario execution script issuing request to a cloud server.
After receiving the first scene execution script issuing request, the cloud server inquires related information of the first scene according to the scene number of the first scene and generates a first scene execution script response. 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 device information includes, for example, washing machine information and sweeping robot information. The execution logic information of the first scenario may further include logic specifically executed by an 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 first gateway, the first 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 hosting gateway of the scene, and the non-hosting gateway of the scene will 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 execution equipment designated by the execution logic information of the scene to operate after operating the execution logic information of the scene, for example, controls the washing machine to perform clothes washing and drying, and controls the sweeping robot to sweep.
S830, updating a scene information list corresponding to the family number according to the scene synchronization response.
The scene synchronization response includes scene information of each scene under the family corresponding to the family number, and when the scene information list corresponding to the family number is locally stored according to the scene synchronization response, the scene information list may 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 different from the scene information of each scene under the family corresponding to the family number included in the scene synchronization response in the scene information of each scene in the locally stored scene information list.
For example, the scene information of all the 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 an alternative embodiment, the scene information in the scene sync response includes at least a scene number of each scene and a hosting gateway number, the hosting gateway number defining a hosting gateway. The first gateway is further used for confirming whether the first gateway is the host gateway of the scene according to the host gateway number of the scene.
For example, when the hosting gateway of the third scene is the first gateway, the first gateway generates a third scene execution script issuing request based on the scene number of the third scene, where the third scene execution script issuing request carries the scene number of the third scene. The first gateway sends a third scenario execution script issuing request to the cloud server.
After receiving the third scene execution script issuing request, the cloud server inquires related information of the third scene according to the scene number of the third scene and generates a third scene execution script response. The third scenario execution script response at least comprises execution logic information of the third scenario, and the execution logic information of the third scenario at least comprises the execution device information. The execution device information includes, for example, washing machine information and sweeping robot information. The execution logic information of the third scenario may further include logic specifically executed by an 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 third scene is not the first gateway, the first gateway does not send a request for issuing the third scene execution script 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 hosting gateway of the scene, and the non-hosting gateway of the scene will 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 execution equipment designated by the execution logic information of the scene to operate after operating the execution logic information of the scene, for example, controls the washing machine to perform clothes washing and drying, and controls the sweeping robot to sweep.
It should be noted that, the step S810 and the step S610 to the step S630 are independent from each other, and the step S810 to the step S830 are started as long as the preset time is reached, and the step S810 may be performed before the step S610 to the step S630 or after the step S610.
In summary, the method for synchronizing scene information provided in this embodiment sends a scene synchronization request (carrying a family number) to a cloud server, and obtains a scene synchronization response sent by the cloud server, where the scene synchronization response includes scene information of each scene under a family corresponding to the family number. And updating a scene information list which is stored locally and corresponds to the family number according to the scene synchronization response. Therefore, each edge gateway and the cloud server in the home synchronize scene information, and the synchronization of the scene information among the edge gateways in the home is indirectly realized. The method provided by the embodiment can further ensure the synchronization of the scene information among the edge gateways, so that each edge gateway synchronizes the scene information to the cloud server at regular time, and the synchronization of the scene information between the first gateway and at least one edge gateway is realized.
The edge gateways based on the synchronous scene information can realize the inter-scene remote operation of the edge gateway or realize other functions requiring the synchronous information of the edge gateways, so the application enriches the functions of the edge gateway in use and indirectly improves the portability of the edge gateway in use.
Referring to fig. 9, in an alternative embodiment of the present application, a method for synchronizing scene information is provided and applied to the first gateway. The method provided by the embodiment describes that besides the scene information synchronization between the timing and the cloud server to realize the scene information synchronization between the edge gateways, the scene information synchronization between the edge gateways can be realized based on the edge gateways.
S910, when the scene synchronization 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 home 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, e.g., each edge gateway in the home sends a 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 day, e.g., each edge gateway in the home sends a scene synchronization request to the cloud server at 8 am every day and sends a scene synchronization request to the cloud server at 4 pm every day.
If the first gateway does not acquire the scene synchronization response sent by the cloud server, the synchronization of the scene information can also be performed based on other edge gateways. At this time, the first gateway obtains scene information currently stored in at least one edge gateway in the home.
In an alternative embodiment, it may be to obtain scene information currently stored by all edge gateways in the home.
In an alternative embodiment, the time when the M edge gateways update the locally stored scene information list in the home corresponding to the home number may be obtained first, so as to obtain M update times, where M is an integer greater than 1. And screening out the reference edge gateway corresponding to the largest update time in the M update times. And acquiring scene information currently stored by the reference edge gateway. The M edge gateways may be all edge gateways in the home except the present first gateway.
S920, updating the locally stored scene information list according to the scene information currently stored by the at least one edge gateway.
In an alternative embodiment, the locally stored scene information list may be updated based on scene information currently stored by all edge gateways in the home except the first gateway.
In an alternative embodiment, the locally stored list of scene information may be updated based on the scene information currently stored by the reference edge gateway.
As described in step S830, when the hosting gateway of the third scenario is the present first gateway, a third scenario execution script issuing request is sent to the cloud server, where the third scenario execution script issuing request carries a scenario number of the third scenario. But when the third scenario execution script response is not acquired, a third scenario execution script issue request may be sent to the at least one edge gateway, so that the at least one edge gateway forwards the third scenario execution script issue request to the cloud server. After receiving the request for issuing the third scenario execution script, the cloud server sends a third scenario execution script response to the host gateway (i.e., the first gateway) of the third scenario, where the third scenario execution script response at least includes execution logic information of the third scenario, and the execution logic information at least includes execution device information. The first gateway controls the execution device to run based on the execution logic information of the third scene.
The method provided by the embodiment further provides a possible way for synchronizing scene information among edge gateways. When the edge gateway cannot synchronize scene information with the cloud server to realize scene information synchronization between the edge gateways, the edge gateway can interact with other edge gateways to realize scene information synchronization between the edge gateway and other edge gateways. Therefore, the at least two edge gateways in the home are synchronized with scene information, and at least one edge gateway can be remotely operated across scenes or other functions requiring at least one edge gateway information synchronization can be realized based on the at least two edge gateways synchronized with the scene information.
Referring to fig. 10, an embodiment of the present application provides a cross-gateway scene processing apparatus 10, which is applied to a first gateway, where the first gateway stores scene information in a second gateway, and includes:
The communication module 11 is configured to receive a scene trigger instruction, where the scene trigger instruction carries information of a scene to be executed;
a processing module 12, configured to determine a host gateway of the to-be-executed scene according to the information of the to-be-executed scene;
the processing module 12 is further configured to, if the hosting gateway of the to-be-executed scene is a second gateway:
transmitting a start instruction of the scene to be executed to the second gateway through a wireless network;
Acquiring an execution result of the scene to be executed;
And executing corresponding operation according to the execution result.
The processing module 12 is further configured to execute the to-be-executed scene if the home gateway of the to-be-executed scene is the first gateway; and sending an execution result of the scene to be executed to the second gateway.
The processing module 12 is specifically configured to execute the to-be-executed scene when receiving an execution command of the to-be-executed scene if the hosting gateway of the to-be-executed scene is the first gateway.
The processing module 12 is specifically configured to end the process when the execution result is that the execution is successful; and when the execution result is that the execution fails, re-acquiring the scene information in the second gateway, and updating a locally stored scene information list.
The processing module 12 is specifically configured to obtain failure information carried by the execution result when the execution result is an execution failure; and when the failure information is the scene information of the scene to be executed which is not stored in the second gateway, acquiring the scene information in the second gateway again, and updating a locally stored scene information list.
The information of the to-be-executed scene at least includes a host gateway number of the to-be-executed scene, and the processing module 12 is specifically configured to determine a host gateway of the to-be-executed scene according to the host gateway number of the to-be-executed scene.
The processing module 12 is specifically configured to receive an execution result of a to-be-executed scene sent by the host gateway; or receiving an execution result of a scene to be executed, which is sent by the cloud server; or if the execution result of the to-be-executed scene sent by the host gateway is received, the execution result of the to-be-executed scene sent by the cloud server is ignored.
Referring to fig. 11, an embodiment of the present application further provides an apparatus 20 for executing a scenario, applied to a cloud server, where the apparatus 20 includes:
a communication module 21, configured to receive a start instruction of a scene to be executed sent by the first gateway;
The processing module 22 is configured to determine a host gateway of the to-be-executed scene according to the start instruction of the to-be-executed scene;
the communication module 21 is further configured to send a start instruction of the scene to be executed to the hosting gateway;
The communication module 21 is further configured to receive an execution result of the to-be-executed scene reported by the host gateway;
The communication module 21 is further configured to send an execution result of the to-be-executed scenario to the first gateway.
The processing module 22 is specifically configured to obtain, according to the start instruction of the to-be-executed scene, scene information of the to-be-executed scene, where the scene information includes at least a host gateway number of the to-be-executed scene; and determining the host gateway of the scene to be executed according to the host gateway number of the scene to be executed.
Referring to fig. 12, an embodiment of the present application further provides an electronic device 30, where the electronic device 30 includes a memory 31 and a processor 32. The memory 31 has stored therein a computer program, the processor 32 being arranged to execute the method of cross-gateway scene processing as provided in any of the embodiments above by means of the computer program, executing the method of executing the execution scene as provided in any of the embodiments above.
The present application also provides a computer readable storage medium having stored therein computer executable instructions which, when executed, cause a computer executable instruction to be executed by a processor for implementing a method of performing a scene processing across a gateway as provided in any of the embodiments above, performing a method of performing an execution scene as provided in any of the embodiments above.
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the method for processing a scene across gateways provided in any of the above embodiments, and performs the method for executing an execution scene provided in any of the above embodiments.
The computer readable storage medium may be a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable programmable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, EEPROM), a magnetic random access Memory (Ferromagnetic Random Access Memory, FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM). But may be various electronic devices such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method for processing a scene across gateways, applied to a first gateway, where the first gateway stores scene information in a second gateway, the method comprising:
Receiving a scene triggering instruction, wherein the scene triggering instruction carries information of a scene to be executed, the information of the scene to be executed at least comprises a host gateway number and a scene number of the scene to be executed, and the scene number is used for enabling the host gateway of the scene to be executed to inquire the scene to be executed;
Determining a host gateway of the scene to be executed according to the host gateway number of the scene to be executed;
If the host gateway of the scene to be executed is the second gateway, then:
Transmitting a start instruction of the scene to be executed to the second gateway through a local area network, wherein the start instruction is used for commanding the second gateway to control equipment in the scene to be executed to run;
acquiring an execution result of the scene to be executed;
When the execution result is the execution failure, acquiring failure information carried by the execution result;
and deleting the scene information of the scene to be executed from a locally stored scene information list when the failure information is the scene information of the scene to be executed which is not stored in the second gateway.
2. The method according to claim 1, wherein the method further comprises:
if the host gateway of the scene to be executed is the first gateway, executing the scene to be executed;
and sending an execution result of the scene to be executed to the second gateway.
3. The method of claim 2, wherein if the hosting gateway of the to-be-executed scenario is the first gateway, executing the to-be-executed scenario comprises:
And if the host gateway of the scene to be executed is the first gateway, executing the scene to be executed when receiving an execution command of the scene to be executed.
4. The method according to claim 1, characterized in that the method further comprises:
and ending the process when the execution result is that the execution is successful.
5. The method according to any one of claims 1-4, wherein the obtaining the execution result of the to-be-executed scene includes one of:
receiving an execution result of a scene to be executed, which is sent by a host gateway; or alternatively
Receiving an execution result of a scene to be executed, which is sent by a cloud server; or alternatively
And if the execution result of the scene to be executed, which is sent by the host gateway, is received, the execution result of the scene to be executed, which is sent by the cloud server, is ignored.
6. A method of executing a scenario, characterized by being applied to a cloud server, the method comprising:
Receiving a starting instruction of a scene to be executed, which is sent by a first gateway, wherein the first gateway stores scene information in a second gateway, the starting instruction carries a host gateway number and a scene number of the scene to be executed, and the scene number is used for the host gateway of the scene to be executed to inquire the scene to be executed;
Determining a host gateway of the scene to be executed according to the host gateway number of the scene to be executed;
If the host gateway is a second gateway, sending a starting instruction of the scene to be executed to the second gateway, wherein the starting instruction is used for commanding the second gateway to control equipment in the scene to be executed to run;
receiving an execution result of the scene to be executed, which is reported by the second gateway;
And sending an execution result of the scene to be executed to the first gateway, wherein the first gateway is used for acquiring failure information carried by the execution result when the execution result is execution failure, and deleting the scene information of the scene to be executed from a locally stored scene information list when the failure information is the scene information of the scene to be executed which is not stored in the second gateway.
7. A cross-gateway scene processing apparatus, applied to a first gateway, the first gateway storing scene information in a second gateway, comprising:
The communication module is used for receiving a scene triggering instruction, wherein the scene triggering instruction carries information of a scene to be executed, the information of the scene to be executed at least comprises a host gateway number and a scene number of the scene to be executed, and the scene number is used for enabling the host gateway of the scene to be executed to inquire the scene to be executed;
The processing module is used for determining the host gateway of the scene to be executed according to the host gateway number of the scene to be executed;
the processing module is further configured to, if the hosting gateway of the scene to be executed is a second gateway:
Transmitting a start instruction of the scene to be executed to the second gateway through a local area network, wherein the start instruction is used for commanding the second gateway to control equipment in the scene to be executed to run;
acquiring an execution result of the scene to be executed;
When the execution result is the execution failure, acquiring failure information carried by the execution result;
and deleting the scene information of the scene to be executed from a locally stored scene information list when the failure information is the scene information of the scene to be executed which is not stored in the second gateway.
8. An apparatus for executing a scenario, applied to a cloud server, the apparatus comprising:
The communication module is used for receiving a starting instruction of a scene to be executed, which is sent by a first gateway, wherein the first gateway stores scene information in a second gateway, the starting instruction carries a host gateway number and a scene number of the scene to be executed, and the scene number is used for the host gateway of the scene to be executed to inquire the scene to be executed;
The processing module is used for determining the host gateway of the scene to be executed according to the host gateway number of the scene to be executed;
The communication module is further configured to send a start instruction of the to-be-executed scene to the second gateway if the host gateway is the second gateway, where the start instruction is used to instruct the second gateway to control the device in the to-be-executed scene to operate;
the communication module is also used for receiving an execution result of the scene to be executed, which is reported by the second gateway;
The communication module is further configured to send an execution result of the to-be-executed scene to the first gateway, where the first gateway is configured to obtain failure information carried by the execution result when the execution result is that the execution fails, and delete scene information of the to-be-executed scene from a locally stored scene information list when the failure information is that the scene information of the to-be-executed scene is not stored in the second gateway.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of cross-gateway scene processing of any one of claims 1 to 5, or the method of performing a scene of claim 6.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to execute the method of cross-gateway scene processing according to any of claims 1 to 5 by means of the computer program, the method of executing a scene according to claim 6.
CN202210597244.7A 2022-05-30 2022-05-30 Cross-gateway scene processing method and device, storage medium and electronic device Active CN115174294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210597244.7A CN115174294B (en) 2022-05-30 2022-05-30 Cross-gateway scene processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210597244.7A CN115174294B (en) 2022-05-30 2022-05-30 Cross-gateway scene processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115174294A CN115174294A (en) 2022-10-11
CN115174294B true CN115174294B (en) 2024-05-24

Family

ID=83483187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210597244.7A Active CN115174294B (en) 2022-05-30 2022-05-30 Cross-gateway scene processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115174294B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615781A (en) * 2015-02-28 2015-05-13 小米科技有限责任公司 Method and device for inquiring executive information of intelligent equipment scene
CN111176133A (en) * 2020-02-11 2020-05-19 青岛海信智慧家居***股份有限公司 Method and device for determining smart home scene
CN111865736A (en) * 2020-07-17 2020-10-30 青岛易来智能科技股份有限公司 Equipment control method and device
CN111913450A (en) * 2020-08-04 2020-11-10 青岛海信日立空调***有限公司 Control method of intelligent household equipment, intelligent household system and gateway thereof
CN112202651A (en) * 2020-09-08 2021-01-08 杭州涂鸦信息技术有限公司 Method and system for controlling intelligent household scene linkage
CN113625589A (en) * 2021-09-15 2021-11-09 云茂互联智能科技(厦门)有限公司 Equipment control method and device, electronic equipment and storage medium
WO2022105558A1 (en) * 2020-11-23 2022-05-27 深圳Tcl新技术有限公司 Scene configuration method, storage medium and border gateway

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615781A (en) * 2015-02-28 2015-05-13 小米科技有限责任公司 Method and device for inquiring executive information of intelligent equipment scene
CN111176133A (en) * 2020-02-11 2020-05-19 青岛海信智慧家居***股份有限公司 Method and device for determining smart home scene
CN111865736A (en) * 2020-07-17 2020-10-30 青岛易来智能科技股份有限公司 Equipment control method and device
CN111913450A (en) * 2020-08-04 2020-11-10 青岛海信日立空调***有限公司 Control method of intelligent household equipment, intelligent household system and gateway thereof
CN112202651A (en) * 2020-09-08 2021-01-08 杭州涂鸦信息技术有限公司 Method and system for controlling intelligent household scene linkage
WO2022105558A1 (en) * 2020-11-23 2022-05-27 深圳Tcl新技术有限公司 Scene configuration method, storage medium and border gateway
CN113625589A (en) * 2021-09-15 2021-11-09 云茂互联智能科技(厦门)有限公司 Equipment control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115174294A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
JP6413015B2 (en) Method, apparatus and system for accessing a wireless network
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
CN104683470A (en) Intelligent household equipment control method and system
CN112584364A (en) Bluetooth network, communication method, device and storage medium thereof
CN105683845A (en) System and method for appliance detection and app configuration
CN105577495A (en) Control method and device of smart home devices
CN108039990B (en) Household appliance operation method and system, household appliance and computer readable storage medium
CN112436986A (en) Network distribution method and device, network distribution equipment and computer readable storage medium
CN112230554A (en) Linkage control method and system, terminal, computer device and storage medium
CN115174294B (en) Cross-gateway scene processing method and device, storage medium and electronic device
CN108111379A (en) A kind of method and apparatus for controlling smart home device
EP4138342A1 (en) Home appliance, networking method therefor, control terminal, and computer storage medium
CN111836339A (en) Network equipment
CN115174293B (en) Scene information synchronization method and device, storage medium and electronic device
CN115174295B (en) Scene information synchronization method and device, storage medium and electronic device
WO2024016539A1 (en) Device control method and apparatus, and storage medium and electronic apparatus
CN113992698B (en) Intelligent device management method, gateway and computer readable storage medium
CN112738581A (en) Equipment configuration method, smart television, universal remote controller and system
CN105847916A (en) Theme synchronizing and switching method and system
CN105827589A (en) Method and device for authorizing wireless equipment and sending control command for authorization of electric appliances
CN104110881A (en) Water heater and control method and control system thereof
CN114637216A (en) Scene configuration method and device, control method and device, intelligent equipment and medium
CN115643122A (en) Equipment control method
CN115297128B (en) Edge execution information processing method and device, storage medium and electronic 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