CN115297128B - 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
CN115297128B
CN115297128B CN202210738201.6A CN202210738201A CN115297128B CN 115297128 B CN115297128 B CN 115297128B CN 202210738201 A CN202210738201 A CN 202210738201A CN 115297128 B CN115297128 B CN 115297128B
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.)
Active
Application number
CN202210738201.6A
Other languages
Chinese (zh)
Other versions
CN115297128A (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

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 processing method and a device for edge execution information, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the processing method for 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 with the same gateway attribute information as the first gateway in the same local area network, so that the problems that edge scene execution on different gateways in the prior art is mutually independent, and linkage of different edge scene execution on different gateways cannot be performed can be solved.

Description

Edge execution information processing method and device, storage medium and electronic device
Technical Field
The present application relates to the field of smart home, and in particular, to a method and apparatus for processing edge execution information, a storage medium, and an electronic apparatus.
Background
With the development of internet technology and internet of things, more and more devices support running edge scenes, but in related technologies, edge scenes are displayed and executed on individual gateways independently of each other on the individual gateways. The user wants to execute the scenes, and 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 cannot be executed. Therefore, the execution of the above-described scenario is not flexible and humanized.
Aiming at the problems that in the related art, edge scene execution on different gateways is independent, linkage of different edge scene execution on different gateways cannot be performed, and the like, no effective technical scheme has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a processing method and device of edge execution information, a storage medium and an electronic device, which at least solve the problems that in the related technology, edge scene execution on different gateways is independent, and linkage of different edge scene execution on different gateways cannot be performed.
According to an embodiment of the present invention, there is provided a processing method of 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 gateway, the method further includes: acquiring feedback information of the other gateways under the condition that the other gateways synchronously receive the scene execution information; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
In an exemplary embodiment, determining whether the other gateway allows the execution of the scene execution information to be turned on based on the feedback information includes: under the execution condition that the other gateways allow the scene execution information to be started, a plurality of devices which have connection relations with the first gateway and are displayed on the other gateways at present are determined, and the scene execution information is respectively issued to the plurality of devices to perform edge scene operation; under the condition that the other gateways are not allowed to start execution of the scene execution information, acquiring equipment state information corresponding to a plurality of pieces of equipment which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the equipment 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: determining, when it is determined that there is a history usage record for the edge scene, an information difference between history scene information corresponding to the history usage record and the scene information, where the history usage record is a scene log, generated by the edge scene after execution, corresponding to the scene information carrying the executed edge scene, and the scene information includes at least one of: the device for executing the edge scene and the operation parameters corresponding to the device for executing the edge scene; determining an updating mode corresponding to the edge scene through the information difference, wherein the updating mode comprises at least one of the following steps: creating a new edge scene and modifying a historical edge scene; and sending an update instruction to a first gateway which currently has the historical edge scene based on the update mode, and determining an update result of the first gateway on an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is started or not, and the first gateway has an edge scene list for selecting a plurality of historical edge scenes to be executed.
In an exemplary embodiment, after determining the update result of the first gateway to the edge scene list, the method further includes: determining to allow the operation of the edge scene corresponding to the scene information to be started through the first gateway 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 which the edge scene is 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: the operation sequence of a plurality of devices in the edge scene, wherein the device information corresponding to each device in the plurality of devices and the operation 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 parsing the scene information to obtain 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 belongs in the plurality of sub-gateways, and decomposing the plurality of devices into a plurality of area sets; identifying gateway attribute information of the plurality of regional sets to obtain a gateway network schematic diagram of the edge scene in a target region, wherein the target region comprises: a plurality of target subregions.
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 the scene information of the edge scene received by the target application; the determining module is used for 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 the synchronization module is used for synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network.
In an exemplary embodiment, the above apparatus further includes: the acquisition module is used for acquiring feedback information of the other gateways under the condition that the other gateways are determined to synchronously receive the scene execution information; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
In an exemplary embodiment, the obtaining module is further configured to determine that, when it is determined that the other gateway allows the other gateway to open execution of the scene execution information, a plurality of devices that have connection relationships with the first gateway are displayed on the other gateway, and send the scene execution information to the plurality of devices respectively to perform operation of an edge scene; under the condition that the other gateways are not allowed to start execution of the scene execution information, acquiring equipment state information corresponding to a plurality of pieces of equipment which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the equipment 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 above apparatus further includes: an updating module, configured to determine, when it is determined that there is a history usage record of the edge scene, history scene information corresponding to the history usage record and the scene information, where the history usage record is a scene log, generated by the edge scene after execution, that 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 for executing the edge scene and the operation parameters corresponding to the device for executing the edge scene; determining an updating mode corresponding to the edge scene through the information difference, wherein the updating mode comprises at least one of the following steps: creating a new edge scene and modifying a historical edge scene; and sending an update instruction to a first gateway which currently has the historical edge scene based on the update mode, and determining an update result of the first gateway on an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is started or not, and the first gateway has an edge scene list for selecting a plurality of historical edge scenes to be executed.
In an exemplary embodiment, the update module is further configured to determine, when the update result indicates that the update is successful, to allow the operation of the edge scene corresponding to the scene information to be started through the first gateway; 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 which the edge scene is an invalid scene on a display interface of the target application.
In an exemplary embodiment, the determining module is further configured to parse the scene information to obtain information content corresponding to the scene information, where the information content includes: the operation sequence of a plurality of devices in the edge scene, wherein the device information corresponding to each device in the plurality of devices and the operation 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-area to which each sub-gateway belongs in the plurality of sub-gateways, and decomposing the plurality of devices into a plurality of area sets; identifying gateway attribute information of the plurality of regional sets to obtain a gateway network schematic diagram of the edge scene in a target region, wherein the target region comprises: a plurality of target subregions.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, 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 an edge scene; the scene execution information is synchronized to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network, namely, the edge scenes which can be executed by the first gateway are synchronized to the second gateways with the same gateway attribute information to be executed, so that the relative independence of the different edge scenes when the gateways are executed is broken, the problems that the edge scenes on the different gateways are independent to each other and the linkage of the different edge scenes cannot be executed on the different gateways in the prior art can be solved, the edge scenes are not independent to each other on the gateways any more, the scenes on the other gateways can be displayed and executed between the gateways, and the experience of using the scenes on the different gateways by users is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of 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 interactive schematic diagram of creating an edge scene according to an alternative embodiment of the invention;
FIG. 4 is an interactive schematic diagram of a modified edge scene in accordance with an alternative embodiment of the invention;
FIG. 5 is an interactive schematic diagram of a delete edge scene according to an alternative embodiment of the invention;
FIG. 6 is an interactive schematic diagram of other sub-gateways performing a scenario on a primary gateway according to an alternative embodiment of the present invention;
fig. 7 is a block diagram of a processing apparatus of edge execution information according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise 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 an embodiment of the present application, there is provided a method for processing edge execution information. The processing method of the edge execution information is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (IntelligenceHouse) ecology and the like. Alternatively, in the present embodiment, the above-described processing method of the edge execution information may be applied to a hardware environment constituted 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 used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services 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: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (WIRELESS FIDELITY ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this 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, obtaining scene information of an edge scene received by a target application;
it should be noted that, the above-mentioned edge scene is an operation scheme of device linkage determined by using the object of the target application according to the 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;
Step S206, synchronizing the scene execution information to other gateways, where the other gateways are second gateways in the same lan and the gateway attribute information of the first gateway is the same.
For example, the living room and the bedroom are respectively provided with a gateway, and a scene of turning off a television, turning off an air conditioner and closing a curtain is created on the gateway of the living room. The user can click on this scenario to execute on the gateway in the living room. But the user does not want to go to the living room before sleeping, at which time the scene on the living room gateway can be performed by operating the gateway of the bedroom in the bedroom. That is, the scenario execution on a certain gateway is not limited to the current gateway, but may be executed by other gateways having a connection relationship with the current gateway, and alternatively, the connection relationship may be a master-slave relationship or other relationships, which is not limited in the present application.
Through the steps, acquiring the scene information of the edge scene received by the 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 an edge scene; the scene execution information is synchronized to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network, namely, the edge scenes which can be executed by the first gateway are synchronized to the second gateways with the same gateway attribute information to be executed, so that the relative independence of the different edge scenes when the gateways are executed is broken, the problems that the edge scenes on the different gateways are independent to each other and the linkage of the different edge scenes cannot be executed on the different gateways in the prior art can be solved, the edge scenes are not independent to each other on the gateways any more, the scenes on the other gateways can be displayed and executed between the gateways, and the experience of using the scenes on the different gateways by users is improved.
In an exemplary embodiment, after synchronizing the scenario execution information to the other gateway, the method further includes: acquiring feedback information of the other gateways under the condition that the other gateways synchronously receive the scene execution information; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
In short, in order to ensure that other gateways can successfully execute the scene execution information, after synchronizing the corresponding edge scene and the scene execution information on the first gateway to other gateways, feedback information of the other gateways needs to be determined, so as to ensure that the gateway synchronizing the scene execution information is a gateway capable of executing the edge scene enablement.
In an exemplary embodiment, determining whether the other gateway allows the execution of the scene execution information to be turned on based on the feedback information includes: under the execution condition that the other gateways allow the scene execution information to be started, a plurality of devices which have connection relations with the first gateway and are displayed on the other gateways at present are determined, and the scene execution information is respectively issued to the plurality of devices to perform edge scene operation; under the condition that the other gateways are not allowed to start execution of the scene execution information, acquiring equipment state information corresponding to a plurality of pieces of equipment which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the equipment 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 device information corresponding to the to-be-executed scene execution information on the first gateway may be displayed on the other gateways, 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 the sub-gateways notify the main gateway to execute the specified scene through the local area network.
In an exemplary embodiment, after obtaining the scene information of the edge scene received by the target application, the method further includes: determining, when it is determined that there is a history usage record of the edge scene, history scene information corresponding to the history usage record and the scene information, where the history usage record is a scene log, generated by the edge scene after execution, that 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 for executing the edge scene and the operation parameters corresponding to the device for executing the edge scene; determining an updating mode corresponding to the edge scene through the information difference, wherein the updating mode comprises at least one of the following steps: creating a new edge scene and modifying a historical edge scene; and sending an update instruction to a first gateway which currently has the historical edge scene based on the update mode, and determining an update result of the first gateway on an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is started or not, and the first gateway has an edge scene list for selecting a plurality of historical edge scenes to be executed.
For example, when the edge scene is a home scene, the scene name corresponding to the edge scene is home 001, and the edge scene packet block: firstly, turning on the light of a living room, secondly, turning on a television and adjusting to entertainment programs, and meanwhile, 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 and the weather change, 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 changes from entertainment to legal, therefore, the adjustment setting needs to be performed on the basis of the operation parameters of the equipment corresponding to the equipment in the corresponding scene when the equipment is unchanged in the edge scene of the home 001, at this time, although the execution content of the scene is changed in the same edge scene, therefore, the history scene information needs to be updated through the latest scene information corresponding to the edge scene, and the effect after the execution of the edge scene is ensured to meet the latest requirement of the user.
Further, in order to improve experience, an operation of opening an air conditioner to adjust to 26 degrees is added on the current basis in a scene with a scene name of home 001 corresponding to the edge scene, so that a new edge scene can be obtained on the basis of home 001, and the new edge scene can be set to be home 002. When in use, the object to be used can be flexibly selected, and optionally, the scene log can be added with the attribute information of the scene version according to the actual use requirement.
In an exemplary embodiment, after determining the update result of the first gateway to the edge scene list, the method further includes: determining to allow the operation of the edge scene corresponding to the scene information to be started through the first gateway 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 which the edge scene is 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: the operation sequence of a plurality of devices in the edge scene, wherein the device information corresponding to each device in the plurality of devices and the operation 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 parsing the scene information to obtain 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 belongs in the plurality of sub-gateways, and decomposing the plurality of devices into a plurality of area sets; identifying gateway attribute information of the plurality of regional sets to obtain a gateway network schematic diagram of the edge scene in a target region, wherein the target region comprises: a plurality of target subregions.
In order to better understand the process of the edge execution information processing method, the following describes the flow of the edge execution information processing method in combination with 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, a device center, a terminal module and a home center, wherein the target application APP is used for displaying device information bound with a user and operation parameters of the device in different states, and different edge scenes are created according to the requirements of the user; the scene center is used for managing the edge scene at the cloud of the Internet of things, compiling information corresponding to the edge scene into a control instruction which can be executed by the equipment, and storing the relation between the edge scene and the main gateway in the home. The device center is used for managing devices which can generate edge scenes and determining main gateway devices in the devices. The home center is used for storing all the equipment information and gateway information corresponding to the current home.
Furthermore, the scene is created, modified and deleted from the cloud by the scene center edge scene sub-gateway distribution system, and the scene is synchronized to the main gateway and then synchronized to other sub-gateways. The user can execute the scene on the main gateway on other sub-gateways, and the sub-gateway informs the main gateway to execute the specified scene through the local area network. Finally, the problem that scenes on the in-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 turning off a television, turning off an air conditioner and turning off a curtain is created on the gateway of the living room. The user can click on this scenario to execute on the gateway in the living room. But the user does not want to go to the living room before sleeping and wants to operate the gateway of the bedroom in the bedroom to execute the scene on the living room gateway. The embodiment can realize that other gateways execute scenes on the main gateway.
Optionally, FIG. 3 is an interactive schematic diagram of creating an edge scene according to an alternative embodiment of the 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, a scene center executes cloud creation of an edge scene;
step 306, the scene center creates a corresponding executable edge scene script based on the current edge scene by using a preset compiling application, and the edge scene script can be directly sent to different devices for execution.
Step 308, saving the relationship between the edge scene and the main gateway, wherein the main gateway is determined according to the existing gateway relationship of the home where the user is located, that is, the scene center stores relationship data of all gateways in the home of the user, so as to determine whether the gateway executing the current edge scene is the main gateway or the sub-gateway in the home.
Step 310, the scene center informs 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 new scene of the main gateway, and receives the result information fed back by the terminal module, so as to determine that the main gateway has completed the new 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.
Step 316, the scene center initiates inquiry of other gateways of the home to the home center to obtain gateway distribution conditions corresponding to the current home stored in the home center.
Step 318, the scene center distributes the new scene information of the main gateway to other sub-gateways through the equipment center based on the gateway distribution condition corresponding to the current family;
And 320, the equipment center completes distribution to the terminal module according to the new scene information of the main gateway and determines a distribution result.
Optionally, FIG. 4 is an interactive schematic diagram of modifying an edge scene according to an alternative embodiment of the invention;
optionally, fig. 5 is an interactive schematic diagram of a delete edge scene according to an alternative embodiment of the invention;
Optionally, fig. 6 is an interactive schematic diagram of other sub-gateways executing a scene on a main gateway according to an alternative embodiment of the present invention; in the figure, the gateway 1 corresponding to the terminal module 1 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 the 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 to execute the appointed scene, the terminal module 2 can execute the scene appointed by the terminal module 1 and run at the terminal module 2 under the condition of receiving the scene execution command of the terminal module 1, and after the execution is completed, the execution result is fed back to the terminal module 1, so that the edge scenes are not independent on each gateway. Other sub-gateways may display and execute the scene on the primary gateway.
In summary, through the design, the scene on the main gateway is synchronized with other sub-gateways in the home, the sub-gateways store the scene on the main gateway, the scene can be displayed on the sub-gateways and provide the 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 on the scene is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention 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 (such as ROM/RAM, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the processing of edge execution information according to the embodiments of the present invention.
The embodiment also provides a processing device for edge execution information, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 7 is a block diagram of a processing apparatus of edge execution information 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 scenario execution information corresponding to the scenario information, where the scenario execution information at least carries gateway attribute information of a first gateway that executes the edge scenario;
And the synchronization module 66 is configured to synchronize the scenario execution information to other gateways, where the other gateways are second gateways in the same local area network and have the same gateway attribute information as the first gateway.
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 an edge scene; the scene execution information is synchronized to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network, namely, the edge scenes which can be executed by the first gateway are synchronized to the second gateways with the same gateway attribute information to be executed, so that the relative independence of the different edge scenes when the gateways are executed is broken, the problems that the edge scenes on the different gateways are independent to each other and the linkage of the different edge scenes cannot be executed on the different gateways in the prior art can be solved, the edge scenes are not independent to each other on the gateways any more, the scenes on the other gateways can be displayed and executed between the gateways, and the experience of using the scenes on the different gateways by users is improved.
In an exemplary embodiment, the above apparatus further includes: the acquisition module is used for acquiring feedback information of the other gateways under the condition that the other gateways are determined to synchronously receive the scene execution information; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
In an exemplary embodiment, the obtaining module is further configured to determine that, when it is determined that the other gateway allows the other gateway to open execution of the scene execution information, a plurality of devices that have connection relationships with the first gateway are displayed on the other gateway, and send the scene execution information to the plurality of devices respectively to perform operation of an edge scene; under the condition that the other gateways are not allowed to start execution of the scene execution information, acquiring equipment state information corresponding to a plurality of pieces of equipment which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the equipment 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 above apparatus further includes: an updating module, configured to determine, when it is determined that there is a history usage record of the edge scene, history scene information corresponding to the history usage record and the scene information, where the history usage record is a scene log, generated by the edge scene after execution, that 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 for executing the edge scene and the operation parameters corresponding to the device for executing the edge scene; determining an updating mode corresponding to the edge scene through the information difference, wherein the updating mode comprises at least one of the following steps: creating a new edge scene and modifying a historical edge scene; and sending an update instruction to a first gateway which currently has the historical edge scene based on the update mode, and determining an update result of the first gateway on an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is started or not, and the first gateway has an edge scene list for selecting a plurality of historical edge scenes to be executed.
In an exemplary embodiment, the update module is further configured to determine, when the update result indicates that the update is successful, to allow the operation of the edge scene corresponding to the scene information to be started through the first gateway; 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 which the edge scene is an invalid scene on a display interface of the target application.
In an exemplary embodiment, the determining module is further configured to parse the scene information to obtain information content corresponding to the scene information, where the information content includes: the operation sequence of a plurality of devices in the edge scene, wherein the device information corresponding to each device in the plurality of devices and the operation 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-area to which each sub-gateway belongs in the plurality of sub-gateways, and decomposing the plurality of devices into a plurality of area sets; identifying gateway attribute information of the plurality of regional sets to obtain a gateway network schematic diagram of the edge scene in a target region, wherein the target region comprises: a plurality of target subregions.
In the description of the present invention, it should be understood that the directions or positional relationships indicated by the terms "center", "upper", "lower", "front", "rear", "left", "right", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or component to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, 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 explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of the two components. When an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or intervening elements may also be present. When an element 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. It will be understood by those of ordinary skill in the art that the terms described above are in the specific sense of the present invention.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing 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 with the same gateway attribute information as 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: a usb disk, a read-only memory (ROM), a random access memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned 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 with the same gateway attribute information as the first gateway in the same local area network.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (9)

1. A method for processing scene execution information, comprising:
Acquiring scene information of an edge scene received by a target application, wherein the edge scene is an operation scheme of equipment linkage determined by an object of the target application according to a preset scene prompt and equipment bound by the 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;
Synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network;
Wherein after the synchronization of the scene execution information to other gateways, the method further comprises: acquiring feedback information of the other gateways under the condition that the other gateways synchronously receive the scene execution information; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
2. The method of claim 1, wherein determining whether the other gateway allows the execution of the scene execution information to be turned on based on the feedback information comprises:
under the execution condition that the other gateways allow the scene execution information to be started, a plurality of devices which have connection relations with the first gateway and are displayed on the other gateways at present are determined, and the scene execution information is respectively issued to the plurality of devices to perform edge scene operation;
Under the condition that the other gateways are not allowed to start execution of the scene execution information, acquiring equipment state information corresponding to a plurality of pieces of equipment which are displayed by the other gateways and have connection relation with the first gateway at present, and generating prompt information based on the equipment 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.
3. The method of claim 1, wherein after obtaining the scene information of the edge scene received by the target application, the method further comprises:
In the case that the edge scene is determined to have a history usage record, determining information difference between history scene information corresponding to the history usage record and the scene information, wherein the history usage record is a scene log which is correspondingly generated by the edge scene after execution and carries the edge scene name and the scene information of the executed edge scene, and the scene information comprises at least one of the following: the device for executing the edge scene and the operation parameters corresponding to the device for executing the edge scene;
determining an updating mode corresponding to the edge scene through the information difference, wherein the updating mode comprises at least one of the following steps: creating a new edge scene and modifying a historical edge scene;
And sending an update instruction to a first gateway which currently has the historical edge scene based on the update mode, and determining an update result of the first gateway on an edge scene list, wherein the first gateway is a gateway for controlling whether the edge scene is started or not, and the first gateway has an edge scene list for selecting a plurality of historical edge scenes to be executed.
4. The method of claim 3, wherein after determining the update result of the edge scene list by the first gateway, the method further comprises:
determining to allow the operation of the edge scene corresponding to the scene information to be started through the first gateway 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 which the edge scene is an invalid scene on a display interface of the target application.
5. The method of claim 1, wherein determining 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: the operation sequence of a plurality of devices in the edge scene, wherein the device information corresponding to each device in the plurality of devices and the operation 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.
6. The method according to claim 5, wherein after parsing the scene information to obtain 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-area to which each sub-gateway belongs in the plurality of sub-gateways, and decomposing the plurality of devices into a plurality of area sets;
Identifying gateway attribute information of the plurality of regional sets to obtain a gateway network schematic diagram of the edge scene in a target region, wherein the target region comprises: a plurality of target subregions.
7. A processing apparatus for scene execution information, comprising:
The first acquisition module is used for acquiring scene information of an edge scene received by the target application, wherein the edge scene is an operation scheme of equipment linkage determined by an object of the target application according to a preset scene prompt and equipment bound by the target application;
The determining module is used for 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;
the synchronization module is used for synchronizing the scene execution information to other gateways, wherein the other gateways are second gateways with the same gateway attribute information as the first gateway in the same local area network;
The apparatus further comprises: the second acquisition module is used for acquiring feedback information of other gateways under the condition that the other gateways are determined to synchronously receive the scene execution information after the scene execution information is synchronized to the other gateways; and determining whether the other gateway allows the execution of the scene execution information to be started or not based on the feedback information.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run by a processor performs the method of any one of claims 1 to 6.
9. 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 according to any of claims 1 to 6 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 CN115297128A (en) 2022-11-04
CN115297128B true 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
CN115297128A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN112782996B (en) Equipment linkage method and device, storage medium and electronic device
CN114422285B (en) Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN115327934A (en) Intelligent household scene recommendation method and system, storage medium and electronic device
CN115343962A (en) Intelligent household appliance control method and system, intelligent screen and storage medium
CN115297128B (en) Edge execution information processing method and device, storage medium and electronic device
CN116107253A (en) Method and device for determining equipment use scene, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN116382111A (en) Equipment control method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115297103B (en) Method and device for acquiring logic constraint file, storage medium and electronic device
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN117784631A (en) Method and device for sending scene execution instruction, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN115174293B (en) Scene information synchronization method and device, storage medium and electronic device
CN115174609B (en) Method and device for sending control instruction, storage medium and electronic device
CN115174295B (en) Scene information synchronization method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN115296947A (en) Control command response method and device, storage medium and electronic device
CN115032917A (en) Device control method, storage medium, and electronic apparatus
CN116185794A (en) Method and device for determining equipment operation preference, 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
GR01 Patent grant