CN115297128A - Edge execution information processing method and device, storage medium and electronic device - Google Patents

Edge execution information processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115297128A
CN115297128A CN202210738201.6A CN202210738201A CN115297128A CN 115297128 A CN115297128 A CN 115297128A CN 202210738201 A CN202210738201 A CN 202210738201A CN 115297128 A CN115297128 A CN 115297128A
Authority
CN
China
Prior art keywords
scene
information
edge
gateway
gateways
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
CN202210738201.6A
Other languages
Chinese (zh)
Other versions
CN115297128B (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 CN202210738201.6A priority Critical patent/CN115297128B/en
Publication of CN115297128A publication Critical patent/CN115297128A/en
Application granted granted Critical
Publication of CN115297128B publication Critical patent/CN115297128B/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
    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a method and a device for processing edge execution information, a storage medium and an electronic device, which relate to the technical field of smart homes, wherein the method for processing the edge execution information comprises the following steps: acquiring scene information of an edge scene received by a target application; determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene; and synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are in the same local area network and have the same gateway attribute information as the first gateway, so that the problems that the edge scene executions on different gateways are mutually independent, the execution linkage of different edge scenes on different gateways cannot be performed and the like in the prior art can be solved.

Description

Edge execution information processing method and device, storage medium and electronic device
Technical Field
The application relates to the field of smart homes, in particular to a method and a device for processing edge execution information, a storage medium and an electronic device.
Background
With the development of internet technology and internet of things technology, more and more devices support running edge scenes, but in the related art, the edge scenes are displayed and executed on a single gateway independently of each other on respective gateways. When a user wants to execute a scene, the user needs to operate and execute on the main gateway where each scene is located. Scenes on other gateways in the home are not displayed on the gateway, and scenes on other gateways in the home cannot be executed. Therefore, the execution of the above-mentioned scenarios is not flexible and humanized.
Aiming at the problems that in the related art, the execution of the edge scenes on different gateways is mutually independent, the execution linkage of the different edge scenes on different gateways cannot be carried out, and the like, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for processing edge execution information, a storage medium and an electronic device, which are used for at least solving the problems that in the related art, edge scene executions on different gateways are mutually independent, different edge scene executions on different gateways cannot be linked and the like.
According to an embodiment of the present invention, there is provided a method for processing edge execution information, including: acquiring scene information of an edge scene received by a target application; determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene; and synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
In an exemplary embodiment, after synchronizing the scenario execution information to the other gateways, the method further includes: acquiring feedback information of other gateways under the condition that the other gateways are determined to synchronously receive the scene execution information; determining whether the other gateways allow starting execution of the scenario execution information based on the feedback information.
In an exemplary embodiment, determining whether the other gateway allows starting the execution of the scenario execution information based on the feedback information includes: under the condition that the other gateways are determined to allow the execution of the scene execution information to be started, determining a plurality of devices which are displayed on the other gateways and have connection relation with the first gateway at present, and respectively issuing the scene execution information to the plurality of devices to carry out the operation of the edge scene; and under the condition that the other gateways are determined not to allow the scene execution information to be started, acquiring device state information corresponding to a plurality of devices which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the device state information and the scene execution information, wherein the prompt information is used for prompting that the edge scene cannot be started to operate through the other gateways.
In an exemplary embodiment, after obtaining the scene information of the edge scene received by the target application, the method further includes: under the condition that the edge scene is determined to have a historical use record, determining information difference between historical scene information corresponding to the historical use record and the scene information, wherein the historical use record is a scene log which is correspondingly generated after the edge scene is executed and carries the scene information of the executed edge scene, and the scene information comprises at least one of the following: the device executing the edge scene and the running parameters corresponding to the device executing the edge scene; determining an updating mode corresponding to the edge scene according to the information difference, wherein the updating mode comprises at least one of the following modes: creating a new edge scene and modifying a historical edge scene; and sending an updating instruction to a first gateway currently having the historical edge scene based on the updating mode, and determining an updating result of the first gateway to an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is enabled, and the edge scene list for selecting a plurality of historical edge scenes to be executed exists in the first gateway.
In an exemplary embodiment, after determining an update result of the first gateway to the edge scenario list, the method further includes: determining to allow the first gateway to start operation of the edge scene corresponding to the scene information under the condition that the updating result indicates that the updating is successful; and sending alarm information to the target application under the condition that the updating result indicates that the updating is failed, wherein the alarm information is used for displaying the content of the edge scene as an invalid scene on a display interface of the target application.
In an exemplary embodiment, determining the scene execution information corresponding to the scene information includes: analyzing the scene information to obtain information content corresponding to the scene information, wherein the information content comprises: running sequence of a plurality of devices in the edge scene, device information corresponding to each device in the plurality of devices and running parameters corresponding to each device; constructing the information content according to a preset information format, and generating a scene data chain corresponding to the information content; and determining scene execution information corresponding to the scene information based on the scene data chain.
In an exemplary embodiment, after analyzing the scene information and obtaining the information content corresponding to the scene information, the method further includes: determining a plurality of sub-gateways corresponding to the plurality of devices; acquiring a target sub-area to which each sub-gateway in the plurality of sub-gateways belongs, and decomposing the plurality of devices into a plurality of area sets; identifying gateway attribute information of the multiple area sets to obtain a gateway network schematic diagram of the edge scene in a target area, wherein the target area comprises: a plurality of target sub-regions.
According to another embodiment of the present invention, there is provided an edge execution information processing apparatus including: the acquisition module is used for acquiring scene information of the edge scene received by the target application; a determining module, configured to determine scene execution information corresponding to the scene information, where the scene execution information at least carries gateway attribute information of a first gateway that executes the edge scene; and the synchronization module is used for synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
In an exemplary embodiment, the apparatus further includes: an obtaining module, configured to obtain feedback information of the other gateways when it is determined that the other gateways have synchronously received the scene execution information; determining whether the other gateways allow starting execution of the scenario execution information based on the feedback information.
In an exemplary embodiment, the obtaining module is further configured to, when it is determined that the other gateways allow starting of the execution of the scene execution information, determine that multiple devices having a connection relationship with the first gateway are displayed at the current other gateways, and respectively send the scene execution information to the multiple devices to perform operation of an edge scene; and under the condition that the other gateways are determined not to allow the scene execution information to be started, acquiring device state information corresponding to a plurality of devices which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the device state information and the scene execution information, wherein the prompt information is used for prompting that the edge scene cannot be started to operate through the other gateways.
In an exemplary embodiment, the apparatus further includes: an updating module, configured to determine, when it is determined that the edge scene has a historical usage record, historical scene information corresponding to the historical usage record and the scene information, where the historical usage record is a scene log that is generated after the edge scene is executed and carries a name of the edge scene and scene information of the executed edge scene, and the scene information includes at least one of: the device executing the edge scene and the running parameters corresponding to the device executing the edge scene; determining an updating mode corresponding to the edge scene according to the information difference, wherein the updating mode comprises at least one of the following modes: creating a new edge scene and modifying a historical edge scene; and sending an updating instruction to a first gateway currently having the historical edge scene based on the updating mode, and determining an updating result of the first gateway to an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is enabled, and the edge scene list for selecting a plurality of historical edge scenes to be executed exists in the first gateway.
In an exemplary embodiment, the update module is further configured to determine to allow the first gateway to start running of the edge scene corresponding to the scene information if the update result indicates that the update is successful; and sending alarm information to the target application under the condition that the updating result indicates that the updating is failed, wherein the alarm information is used for displaying the content of the edge scene as an invalid scene on a display interface of the target application.
In an exemplary embodiment, the determining module is further configured to analyze the scene information to obtain an information content corresponding to the scene information, where the information content includes: running sequence of a plurality of devices in the edge scene, device information corresponding to each device in the plurality of devices and running parameters corresponding to each device; constructing the information content according to a preset information format, and generating a scene data chain corresponding to the information content; and determining scene execution information corresponding to the scene information based on the scene data chain.
In an exemplary embodiment, the determining module is further configured to determine a plurality of sub-gateways corresponding to the plurality of devices; acquiring a target sub-region to which each sub-gateway in the plurality of sub-gateways belongs, and decomposing the plurality of devices into a plurality of region sets; identifying gateway attribute information of the multiple area sets to obtain a gateway network schematic diagram of the edge scene in a target area, wherein the target area comprises: a plurality of target sub-regions.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the scene information of the edge scene received by the target application is obtained; determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the marginal scene; the method comprises the steps of synchronizing scene execution information to other gateways, wherein the other gateways are second gateways which are in the same local area network and have the same gateway attribute information as the first gateway, namely, edge scenes which can be executed by the first gateway are synchronized to be executed by the second gateways which have the same gateway attribute information, so that the relative independence of different edge scenes in the execution of each gateway is broken, the problems that the edge scenes on different gateways are mutually independent in the prior art and the linkage of different edge scenes on different gateways cannot be executed in the prior art can be solved, the edge scenes are not mutually independent on the gateways, the scenes on other gateways can be displayed and executed between the gateways, and the experience of using the scenes on different gateways by a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a diagram of a hardware environment for a method for processing edge execution information according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of processing edge execution information according to an embodiment of the present invention;
FIG. 3 is an interaction diagram for creating an edge scene in accordance with an alternative embodiment of the present invention;
FIG. 4 is an interaction diagram of modifying an edge scene in accordance with an alternative embodiment of the invention;
FIG. 5 is an interaction diagram of deleting an edge scene in accordance with an alternative embodiment of the present invention;
FIG. 6 is an interaction diagram of another sub-gateway implementing a scenario on a main gateway, in accordance with an alternative embodiment of the present invention;
fig. 7 is a block diagram of a configuration of an edge execution information processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present application, a method for processing edge execution information is provided. The processing method of the edge execution information is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), smart Home equipment ecology, smart Home (Intelligent House) ecology and the like. Alternatively, in this embodiment, the processing method of the edge execution information may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In the present embodiment, a method for processing edge execution information is provided, and fig. 2 is a flowchart of a method for processing edge execution information according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, scene information of an edge scene received by a target application is obtained;
it should be noted that the edge scene is an operation scheme of device linkage determined by using the object of the target application according to a preset scene prompt and the device bound by the target application.
Step S204, determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene;
and step S206, synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
For example, a living room and a bedroom respectively have a gateway, and a scene of television shutdown, air conditioner shutdown and curtain closing is established on the gateway of the living room. The user may click on a gateway in the living room to execute this scenario. But the user does not want to go to the living room for operation before going to bed, at which time the scene on the gateway of the living room can be executed by operating the gateway of the bedroom in the bedroom. That is, the execution of the scenario using a certain gateway is not limited to the current gateway, but may also be executed by another gateway having a connection relationship with the current gateway, and optionally, the connection relationship may be a master-slave relationship or another relationship, which is not limited in this application.
Through the steps, scene information of the edge scene received by the target application is obtained; determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the marginal scene; the method comprises the steps of synchronizing scene execution information to other gateways, wherein the other gateways are second gateways which are in the same local area network and have the same gateway attribute information as the first gateway, namely, edge scenes which can be executed by the first gateway are synchronized to be executed by the second gateways which have the same gateway attribute information, so that the relative independence of different edge scenes in the execution of each gateway is broken, the problems that the edge scenes on different gateways are mutually independent in the prior art and the linkage of different edge scenes on different gateways cannot be executed in the prior art can be solved, the edge scenes are not mutually independent on the gateways, the scenes on other gateways can be displayed and executed between the gateways, and the experience of using the scenes on different gateways by a user is improved.
In an exemplary embodiment, after synchronizing the scenario execution information to the other gateways, the method further includes: acquiring feedback information of other gateways under the condition that the other gateways are determined to synchronously receive the scene execution information; determining whether the other gateways allow starting execution of the scenario execution information based on the feedback information.
In short, in order to ensure that other gateways can smoothly execute the scene execution information, after the edge scene and the scene execution information corresponding to the first gateway are synchronized to other gateways, the feedback information of other gateways needs to be determined to ensure that the gateway that synchronizes the scene execution information is the gateway that can execute the enabling of the edge scene.
In an exemplary embodiment, determining whether the other gateway allows starting execution of the scenario execution information based on the feedback information includes: under the condition that the other gateways are determined to allow the execution of the scene execution information to be started, determining a plurality of devices which are displayed on the other gateways and have connection relation with the first gateway at present, and respectively issuing the scene execution information to the plurality of devices to carry out the operation of the edge scene; and under the condition that the other gateways are determined not to allow the scene execution information to be started, acquiring device state information corresponding to a plurality of devices which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the device state information and the scene execution information, wherein the prompt information is used for prompting that the edge scene cannot be started to operate through the other gateways.
That is, after synchronization, the other gateways may display the device information corresponding to the scene execution information to be executed on the first gateway, so that the user may execute the scene on the main gateway (corresponding to the first gateway in the above embodiment) on the other sub-gateways (corresponding to the other gateways in the above embodiment), and then notify the main gateway through the local area network by the sub-gateways to execute the specified scene.
In an exemplary embodiment, after obtaining the scene information of the edge scene received by the target application, the method further includes: under the condition that the historical use record exists in the edge scene, determining historical scene information corresponding to the historical use record and the scene information, wherein the historical use record is a scene log which is generated after the edge scene is executed and carries the name of the edge scene and the scene information of the executed edge scene, and the scene information comprises at least one of the following parts: the device executing the edge scene and the running parameters corresponding to the device executing the edge scene; determining an updating mode corresponding to the edge scene according to the information difference, wherein the updating mode comprises at least one of the following modes: creating a new edge scene and modifying a historical edge scene; and sending an updating instruction to a first gateway currently having the historical edge scene based on the updating mode, and determining an updating result of the first gateway to an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is enabled, and the edge scene list for selecting a plurality of historical edge scenes to be executed exists in the first gateway.
For example, when the edge scene is a go-home scene, the scene name corresponding to the edge scene is go-home 001, and the edge scene packet block: firstly, turning on light of a living room, then turning on a television and adjusting to entertainment programs, simultaneously starting a water heater of a bathroom, and adjusting the heating temperature of water temperature to 48 ℃; it can be understood that, because the viewing preference of the user is changed and the weather is changed, for example, the water temperature requirement in winter is higher than that in summer, the heating temperature of the water temperature needs to be adjusted to 54 degrees, and the viewing preference of the user is changed from entertainment to legal program, the edge scene based on the home 001 needs to be adjusted and set corresponding to the device operation parameters in the corresponding scene under the condition that the device is not changed, at this time, although the same edge scene is obtained, the execution content of the scene is changed, and therefore, the historical scene information needs to be updated by the latest scene information corresponding to the edge scene, and the effect after the edge scene is executed meets the latest requirement of the user.
Further, in order to improve the experience, the user object further adds an operation of turning on the air conditioner to adjust to 26 degrees on the current basis in the scene with the scene name of going home 001 corresponding to the edge scene, so that a new edge scene can be obtained on the basis of going home 001, and the new edge scene can be set to go home 002. When the method is used, the used objects can be flexibly selected, and optionally, the scene log can also be added with attribute information of the scene version according to actual use requirements.
In an exemplary embodiment, after determining an update result of the first gateway to the edge scenario list, the method further includes: determining to allow the first gateway to start operation of the edge scene corresponding to the scene information under the condition that the updating result indicates that the updating is successful; and sending alarm information to the target application under the condition that the updating result indicates that the updating is failed, wherein the alarm information is used for displaying the content of the edge scene as an invalid scene on a display interface of the target application.
In an exemplary embodiment, determining the scene execution information corresponding to the scene information includes: analyzing the scene information to obtain information content corresponding to the scene information, wherein the information content comprises: running sequence of a plurality of devices in the edge scene, device information corresponding to each device in the plurality of devices and running parameters corresponding to each device; constructing the information content according to a preset information format, and generating a scene data chain corresponding to the information content; and determining scene execution information corresponding to the scene information based on the scene data chain.
In an exemplary embodiment, after analyzing the scene information and obtaining the information content corresponding to the scene information, the method further includes: determining a plurality of sub-gateways corresponding to the plurality of devices; acquiring a target sub-region to which each sub-gateway in the plurality of sub-gateways belongs, and decomposing the plurality of devices into a plurality of region sets; identifying gateway attribute information of the multiple area sets to obtain a gateway network schematic diagram of the edge scene in a target area, wherein the target area comprises: a plurality of target sub-regions.
In order to better understand the process of the above processing method of the edge execution information, the following describes a flow of the above processing method of the edge execution information with reference to several alternative embodiments.
As an optional embodiment, a scene center edge scene sub-gateway distribution system is provided, which is composed of a target application APP, a scene center, an equipment center, a terminal module, and a home center, wherein the target application APP is configured to display equipment information bound to a user and operating parameters of the equipment in different states, and create different edge scenes according to requirements of the user; the scene center is used for managing the edge scene at the cloud end of the Internet of things, compiling information corresponding to the edge scene into a control command which can be executed by the equipment, and storing the relation between the edge scene and the main gateway in the family. The device center is used for managing the devices which may generate the edge scenes and determining the main gateway device in the devices. The home center is used for storing all the device information and gateway information corresponding to the current home.
Furthermore, the scene creation, scene modification and scene deletion by the scene center edge scene sub-gateway distribution system are started, the scene is synchronized to the main gateway, and then the scene on the main gateway is synchronized to other sub-gateways. The user can execute the scene on the main gateway on other sub-gateways, and the sub-gateways inform the main gateway to execute the specified scene through the local area network. Finally, the problem that scenes on the home gateway are independent of each other is solved.
Such as: the living room and the bedroom are respectively provided with a gateway, and a scene of television shutdown, air conditioner shutdown and curtain closing is established on the gateway of the living room. The user can click on a gateway in the living room to execute this scenario. However, the user does not want to go to the living room before going to bed, and wants to operate the gateway of the bedroom in the bedroom to execute the scene on the gateway of the living room. The scenario of executing the main gateway on other gateways can be realized through the embodiment.
Optionally, fig. 3 is an interaction diagram for creating an edge scene according to an alternative embodiment of the present invention; the method comprises the following steps:
step 302, a target application APP sends a user created edge scene to a scene center;
step 304, the scene center executes the cloud to create an edge scene;
step 306, the scene center uses a preset compiling application to create a corresponding executable edge scene script based on the current edge scene, and the edge scene script can be directly sent to different devices to be executed.
And 308, storing the relationship between the edge scene and the main gateway, wherein the main gateway is determined according to the existing gateway relationship of the family where the user is located, that is, the scene center stores the relationship data of all gateways in the user family, and further determining whether the gateway executing the current edge scene is the main gateway or the sub-gateway in the family.
Step 310, the scene center notifies the device center of the newly added scene corresponding to the main gateway, receives the result information fed back by the device center, and synchronizes the result information to the target application for display.
Step 312, the device center notifies the terminal module where the main gateway is located of the newly added scene of the main gateway, and receives the result information fed back by the terminal module to determine that the main gateway has completed the newly added scene.
And step 314, the terminal module initiates acquisition of an edge scene execution script to the scene center to obtain a corresponding edge scene script.
And step 316, the scene center initiates inquiry of other gateways of the family to the family center to obtain the gateway distribution condition corresponding to the current family stored in the family center.
318, the scene center distributes the main gateway newly-added scene message to other sub-gateways through the equipment center based on the gateway distribution condition corresponding to the current family;
and step 320, the equipment center completes distribution to the terminal module according to the main gateway new scene message and determines a distribution result.
Optionally, fig. 4 is an interaction diagram of modifying an edge scene according to an alternative embodiment of the invention;
optionally, fig. 5 is an interaction diagram of deleting an edge scene according to an alternative embodiment of the present invention;
optionally, fig. 6 is an interaction diagram of other sub-gateways executing a scenario on the main gateway according to an alternative embodiment of the present invention; the gateway 1 corresponding to the terminal module 1 in the figure is a sub-gateway, the gateway 2 corresponding to the terminal module 2 in the figure is a main gateway, when a scene is executed, because the sub-gateway has synchronized information of a newly added scene on the main gateway, the sub-gateway terminal module 1 can initiate the execution of the scene and inform the corresponding terminal module 2 of executing a specified scene, and the terminal module 2 can execute the scene specified by the terminal module 1 and operated in the terminal module 2 under the condition of receiving a scene execution command of the terminal module 1, and feeds back an execution result to the terminal module 1 after the execution is completed, so that edge scenes are not independent on each gateway. Other sub-gateways may display and execute the scene on the main gateway.
In summary, through the design, the scene on the main gateway is synchronized to other sub-gateways in the family, the sub-gateways store the scene on the main gateway, the scene can be displayed on the sub-gateways and provide an executing function for the user, the scene execution on the main gateway can be initiated through the sub-gateways, and the experience of the user in the scene is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to perform the processing of the edge execution information according to the embodiments of the present invention.
In this embodiment, a device for processing edge execution information is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a configuration of an edge execution information processing apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
an obtaining module 62, configured to obtain scene information of an edge scene received by a target application;
a determining module 64, configured to determine scene execution information corresponding to the scene information, where the scene execution information at least carries gateway attribute information of a first gateway that executes the edge scene;
a synchronizing module 66, configured to synchronize the scene execution information to other gateways, where the other gateways are second gateways that are in the same local area network and have the same gateway attribute information as the first gateway.
The method comprises the steps of acquiring scene information of an edge scene received by a target application through the device; determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the marginal scene; the method comprises the steps of synchronizing scene execution information to other gateways, wherein the other gateways are second gateways which are in the same local area network and have the same gateway attribute information as the first gateway, namely, edge scenes which can be executed by the first gateway are synchronized to be executed by the second gateways which have the same gateway attribute information, so that the relative independence of different edge scenes in the execution of each gateway is broken, the problems that the edge scenes on different gateways are mutually independent in the prior art and the linkage of different edge scenes on different gateways cannot be executed in the prior art can be solved, the edge scenes are not mutually independent on the gateways, the scenes on other gateways can be displayed and executed between the gateways, and the experience of using the scenes on different gateways by a user is improved.
In an exemplary embodiment, the apparatus further includes: an obtaining module, configured to obtain feedback information of the other gateways when it is determined that the other gateways have synchronously received the scene execution information; determining whether the other gateways allow starting execution of the scenario execution information based on the feedback information.
In an exemplary embodiment, the obtaining module is further configured to, when it is determined that the other gateway allows starting execution of the scene execution information, determine that a plurality of devices having a connection relationship with the first gateway are displayed at the other gateway at present, and send the scene execution information to the plurality of devices respectively to perform operation of an edge scene; and under the condition that the other gateways are determined not to allow the scene execution information to be started, acquiring device state information corresponding to a plurality of devices which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the device state information and the scene execution information, wherein the prompt information is used for prompting that the edge scene cannot be started to operate through the other gateways.
In an exemplary embodiment, the apparatus further includes: an updating module, configured to determine historical scene information and the scene information corresponding to a historical usage record when it is determined that the historical usage record exists in the edge scene, where the historical usage record is a scene log that is generated after the edge scene is executed and carries a name of the edge scene and scene information of the executed edge scene, and the scene information includes at least one of the following: the device executing the edge scene and the running parameters corresponding to the device executing the edge scene; determining an updating mode corresponding to the edge scene according to the information difference, wherein the updating mode comprises at least one of the following modes: creating a new edge scene and modifying a historical edge scene; and sending an updating instruction to a first gateway currently having the historical edge scene based on the updating mode, and determining an updating result of the first gateway to an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is enabled, and the edge scene list for selecting a plurality of historical edge scenes to be executed exists in the first gateway.
In an exemplary embodiment, the update module is further configured to determine to allow the first gateway to start running of the edge scene corresponding to the scene information when the update result indicates that the update is successful; and sending alarm information to the target application under the condition that the updating result indicates that the updating is failed, wherein the alarm information is used for displaying the content of the edge scene as an invalid scene on a display interface of the target application.
In an exemplary embodiment, the determining module is further configured to analyze the scene information to obtain an information content corresponding to the scene information, where the information content includes: running sequence of a plurality of devices in the edge scene, device information corresponding to each device in the plurality of devices and running parameters corresponding to each device; constructing the information content according to a preset information format, and generating a scene data chain corresponding to the information content; and determining scene execution information corresponding to the scene information based on the scene data chain.
In an exemplary embodiment, the determining module is further configured to determine a plurality of sub-gateways corresponding to the plurality of devices; acquiring a target sub-region to which each sub-gateway in the plurality of sub-gateways belongs, and decomposing the plurality of devices into a plurality of region sets; identifying gateway attribute information of the multiple area sets to obtain a gateway network schematic diagram of the edge scene in a target area, wherein the target area comprises: a plurality of target sub-regions.
In the description of the present invention, it should be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", and the like indicate orientations or positional relationships based on those shown in the drawings, only for convenience of description and simplification of description, but do not indicate or imply that the device or component referred to must have a specific orientation, be constructed in a specific orientation, and operate, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, and the two components can be communicated with each other. When an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When a component is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
An embodiment of the present invention further provides a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the method embodiments described above when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring scene information of an edge scene received by a target application;
s2, determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene;
and S3, synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring scene information of an edge scene received by a target application;
s2, determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene;
and S3, synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented in a general purpose computing device, they may be centralized in a single computing device or distributed across a network of multiple computing devices, and in one exemplary embodiment, they may be implemented in program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed in an order different from that described, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps therein may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for processing scene execution information is characterized by comprising the following steps:
acquiring scene information of an edge scene received by a target application;
determining scene execution information corresponding to the scene information, wherein the scene execution information at least carries gateway attribute information of a first gateway executing the edge scene;
and synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
2. The method of claim 1, wherein after synchronizing the scene execution information to the other gateways, the method further comprises:
under the condition that the other gateways are determined to synchronously receive the scene execution information, acquiring feedback information of the other gateways;
determining whether the other gateways allow the execution of the scene execution information to be started based on the feedback information.
3. The method of claim 2, wherein determining whether the other gateways allow the execution of the scenario execution information to be turned on based on the feedback information comprises:
under the condition that the other gateways are determined to allow the execution of the scene execution information to be started, determining a plurality of devices which are displayed on the other gateways and have connection relation with the first gateway at present, and respectively issuing the scene execution information to the plurality of devices to carry out the operation of the edge scene;
and under the condition that the other gateways are determined not to allow the scene execution information to be started, acquiring device state information corresponding to a plurality of devices which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the device state information and the scene execution information, wherein the prompt information is used for prompting that the edge scene cannot be started to operate through the other gateways.
4. The method of claim 1, wherein after obtaining the scene information of the edge scene received by the target application, the method further comprises:
under the condition that the edge scene is determined to have a historical use record, determining information difference between historical scene information corresponding to the historical use record and the scene information, wherein the historical use record is a scene log which is generated after the edge scene is executed and carries a name of the edge scene and scene information of the executed edge scene, and the scene information comprises at least one of the following: the device executing the edge scene and the running parameters corresponding to the device executing the edge scene;
determining an updating mode corresponding to the edge scene according to the information difference, wherein the updating mode comprises at least one of the following modes: creating a new edge scene and modifying a historical edge scene;
and sending an updating instruction to a first gateway currently having the historical edge scene based on the updating mode, and determining an updating result of the first gateway to an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is enabled, and the edge scene list for selecting a plurality of historical edge scenes to be executed exists in the first gateway.
5. The method of claim 4, wherein after determining the result of the update of the list of edge scenes by the first gateway, the method further comprises:
determining to allow the first gateway to start operation of the edge scene corresponding to the scene information under the condition that the updating result indicates that the updating is successful;
and sending alarm information to the target application under the condition that the updating result indicates that the updating is failed, wherein the alarm information is used for displaying the content of the edge scene as an invalid scene on a display interface of the target application.
6. The method of claim 1, wherein determining the scene execution information corresponding to the scene information comprises:
analyzing the scene information to obtain information content corresponding to the scene information, wherein the information content comprises: running sequence of a plurality of devices in the edge scene, device information corresponding to each device in the plurality of devices and running parameters corresponding to each device;
constructing the information content according to a preset information format, and generating a scene data chain corresponding to the information content;
and determining scene execution information corresponding to the scene information based on the scene data chain.
7. The method according to claim 6, wherein after analyzing the scene information and obtaining the information content corresponding to the scene information, the method further comprises:
determining a plurality of sub-gateways corresponding to the plurality of devices;
acquiring a target sub-region to which each sub-gateway in the plurality of sub-gateways belongs, and decomposing the plurality of devices into a plurality of region sets;
identifying gateway attribute information of the multiple area sets to obtain a gateway network schematic diagram of the edge scene in a target area, wherein the target area comprises: a plurality of target sub-regions.
8. An apparatus for processing scene execution information, comprising:
the acquisition module is used for acquiring scene information of the edge scene received by the target application;
a determining module, configured to determine scene execution information corresponding to the scene information, where the scene execution information at least carries gateway attribute information of a first gateway that executes the edge scene;
and the synchronization module is used for synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways which are the same as the gateway attribute information of the first gateway in the same local area network.
9. A computer-readable storage medium, comprising a stored program, wherein the program, when executed by a processor, performs the method of any of claims 1-7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210738201.6A 2022-06-27 2022-06-27 Edge execution information processing method and device, storage medium and electronic device Active CN115297128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210738201.6A CN115297128B (en) 2022-06-27 2022-06-27 Edge execution information processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210738201.6A CN115297128B (en) 2022-06-27 2022-06-27 Edge execution information processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115297128A true CN115297128A (en) 2022-11-04
CN115297128B CN115297128B (en) 2024-04-19

Family

ID=83820473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210738201.6A Active CN115297128B (en) 2022-06-27 2022-06-27 Edge execution information processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115297128B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017107785A (en) * 2015-12-11 2017-06-15 株式会社遠藤照明 Illumination system, setting device, illumination control method, and illumination control program
CN107360034A (en) * 2017-07-25 2017-11-17 美的智慧家居科技有限公司 Gateway restoration methods, device and its equipment
CN110262261A (en) * 2019-05-31 2019-09-20 华为技术有限公司 A kind of method, Cloud Server and smart home system controlling device service
CN111880501A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Interaction method for establishing equipment linkage scene, storage medium and electronic equipment
CN112272230A (en) * 2020-10-23 2021-01-26 四川长虹电器股份有限公司 Multi-gateway scene linkage control method
CN113220991A (en) * 2021-04-30 2021-08-06 广州力控智电信息科技有限公司 Method, system, device and storage medium for automatically recommending switching scenes
CN113625589A (en) * 2021-09-15 2021-11-09 云茂互联智能科技(厦门)有限公司 Equipment control method and device, electronic equipment and storage medium
CN113918796A (en) * 2021-09-13 2022-01-11 北京三快在线科技有限公司 Information searching method, device, server and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017107785A (en) * 2015-12-11 2017-06-15 株式会社遠藤照明 Illumination system, setting device, illumination control method, and illumination control program
CN107360034A (en) * 2017-07-25 2017-11-17 美的智慧家居科技有限公司 Gateway restoration methods, device and its equipment
CN110262261A (en) * 2019-05-31 2019-09-20 华为技术有限公司 A kind of method, Cloud Server and smart home system controlling device service
CN111880501A (en) * 2020-07-29 2020-11-03 珠海格力电器股份有限公司 Interaction method for establishing equipment linkage scene, storage medium and electronic equipment
CN112272230A (en) * 2020-10-23 2021-01-26 四川长虹电器股份有限公司 Multi-gateway scene linkage control method
CN113220991A (en) * 2021-04-30 2021-08-06 广州力控智电信息科技有限公司 Method, system, device and storage medium for automatically recommending switching scenes
CN113918796A (en) * 2021-09-13 2022-01-11 北京三快在线科技有限公司 Information searching method, device, server and storage medium
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
CN115297128B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN115687349A (en) Database table generation method and device, storage medium and electronic device
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN115343962A (en) Intelligent household appliance control method and system, intelligent screen and storage medium
CN110794773A (en) Click-type scene creating method and device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN115297128A (en) Edge execution information processing method and device, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115356937A (en) Device control method, device, storage medium, and electronic apparatus
CN115297103B (en) Method and device for acquiring logic constraint file, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
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
CN117784631A (en) Method and device for sending scene execution instruction, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN116545791A (en) Parameter adjustment method and device, storage medium and electronic device
CN115314332B (en) Equipment theme setting method and device, storage medium and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN115686604A (en) Product function data processing method, system, storage medium and electronic device
WO2023202029A1 (en) Tag data adjustment method and apparatus, and storage medium
CN115658178A (en) Method and device for acquiring user behavior dynamic buried point data and storage medium
CN115032917A (en) Device control method, storage medium, and electronic apparatus

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
GR01 Patent grant