CN113572669B - Scene processing method and device, intelligent gateway and processor - Google Patents
Scene processing method and device, intelligent gateway and processor Download PDFInfo
- Publication number
- CN113572669B CN113572669B CN202110730104.8A CN202110730104A CN113572669B CN 113572669 B CN113572669 B CN 113572669B CN 202110730104 A CN202110730104 A CN 202110730104A CN 113572669 B CN113572669 B CN 113572669B
- Authority
- CN
- China
- Prior art keywords
- scene
- target scene
- local
- edge
- target
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000013515 script Methods 0.000 claims abstract description 82
- 230000009471 action Effects 0.000 claims abstract description 59
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 18
- 230000001419 dependent effect Effects 0.000 claims description 31
- 238000004891 communication Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y10/00—Economic sectors
- G16Y10/80—Homes; Buildings
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/30—Control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Structural Engineering (AREA)
- Civil Engineering (AREA)
- Architecture (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a scene processing method, a scene processing device, an intelligent gateway and a processor. Wherein the method comprises the following steps: obtaining a target scene, wherein the target scene comprises actions of at least one local device; judging whether the target scene can be set as an edge scene, wherein the actions of at least one local device included in the edge scene are completed by relying on local data; in the case where the target scene may be set as an edge scene, a control script of the target scene is transmitted to the local control device. The method and the device solve the technical problem that a user does not determine whether the scene should be arranged locally or at the cloud end in the process of creating the scene.
Description
Technical Field
The invention relates to the field of intelligent home, in particular to a scene processing method, a scene processing device, an intelligent gateway and a processor.
Background
In the smart home environment, a combination of a specific set of device actions set by a user is called a scene, for example, when the smart burglary-resisting door is unlocked, a smart lamp and a smart television in a living room are turned on, and the actions of the condition judgment logic and the smart device are called a scene. When a scene is realized and needs to depend on cloud data or internet data, the scene is called a cloud scene; when implementing a scene only needs to rely on local data and devices, and not on cloud or internet data, the scene is referred to as an edge scene.
The user can customize a plurality of scenes according to the needs of the user, so as to realize the home intellectualization. However, since the user is not aware of the data source and logic decisions in the scene, the user is not aware of whether the scene he created should be arranged as a cloud scene or as an edge scene. It is also impractical to educate the user about the difference in placement locations of the scenes and how to select the optimal placement location for each scene due to the high learning costs.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a scene processing method, a device, an intelligent gateway and a processor, which are used for at least solving the technical problem that a user does not determine whether a scene should be arranged locally or at a cloud end in the process of creating the scene.
According to an aspect of an embodiment of the present invention, there is provided a scene processing method including: obtaining a target scene, wherein the target scene comprises actions of at least one local device; judging whether the target scene can be set as an edge scene or not, wherein the actions of at least one local device included in the edge scene are completed by relying on local data; and in the case that the target scene can be set as an edge scene, sending a control script of the target scene to a local control device.
Optionally, determining whether the target scene may be set as an edge scene includes: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; judging that the target scene can be set as an edge scene under the condition that the dependent data type of the target scene does not comprise cloud data; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
Optionally, in the case that the local control device includes two or more local control devices, sending a control script of the target scene to the local control device includes: acquiring the number of scene control scripts stored in each local control device; determining the local control equipment storing the least number of the scene control scripts as first local control equipment according to the number of the scene control scripts stored in each local control equipment; and sending the control script of the target scene to the first local control equipment.
Optionally, in the case that the local control device includes two or more local control devices, sending a control script of the target scene to the local control device includes: acquiring a local equipment catalog of each local control equipment, wherein the local equipment catalog is used for recording local equipment connected with the local control equipment; determining a second local control device according to the local device catalogue of each local control device, wherein the local device catalogue of the second local control device comprises local devices corresponding to the target scene; and sending the control script of the target scene to the second local control equipment.
According to another aspect of the embodiment of the present invention, there is also provided a scene processing method, including: transmitting a target scene, wherein the target scene comprises actions of at least one local device; receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, and the identification information is used for identifying the target scene as an edge scene; controlling the local equipment to execute the action according to the control script of the target scene; and displaying the identification information of the target scene.
According to still another aspect of the embodiment of the present invention, there is also provided a scene processing apparatus, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a target scene, and the target scene comprises actions of at least one local device; the judging module is used for judging whether the target scene can be set as an edge scene or not, wherein the actions of at least one local device included in the edge scene are completed by relying on local data; and the first sending module is used for sending the control script of the target scene to the local control equipment under the condition that the target scene can be set as the edge scene.
According to still another aspect of the embodiment of the present invention, there is also provided a scene processing apparatus, including: a second sending module for sending a target scene, wherein the target scene comprises actions of at least one local device; the second receiving module is used for receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, and the identification information is used for identifying the target scene as an edge scene; the control module is used for controlling the local equipment to execute the action according to the control script of the target scene; and the display module is used for displaying the identification information of the target scene.
According to still another aspect of the embodiment of the present invention, there is also provided an intelligent gateway, including: the system comprises a first communication unit, a second communication unit, a data processing unit and a display screen, wherein the first communication unit is used for carrying out data communication with a cloud and receiving a control script of a target scene issued by the cloud, and the target scene comprises actions of at least one local device; the second communication unit is configured to receive data sent by the at least one local device, and send a control instruction to the at least one local device; the data processing unit is used for generating the control instruction according to the control script of the target scene and the data sent by the at least one local device; the display screen is used for displaying the identification information of the target scene.
According to still another aspect of the embodiments of the present invention, there is further provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, controls a device in which the computer readable storage medium is located to execute the scene processing method according to any one of the above.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the above methods for processing a scene.
In the embodiment of the invention, a mode of acquiring the target scene including the action of at least one local device is adopted, whether the target scene can be set as an edge scene is judged, and under the condition that the target scene can be set as the edge scene, the control script of the target scene is sent to the local control device, so that the aim of sending the control script of the target scene which can be set as the edge scene to the local control device is fulfilled, the technical effects of helping a user to automatically judge the arrangement position of the scene and distributing the scene are realized, and the technical problem that the user is uncertain whether the scene should be arranged locally or at the cloud in the process of creating the scene is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a schematic flow chart of a first scene processing method according to an embodiment of the invention;
fig. 2 is a schematic flow chart of a second scene processing method according to an embodiment of the present invention;
FIG. 3 is a timing diagram of scene distribution provided in accordance with an alternative embodiment of the invention;
fig. 4 is a block diagram of a first scene processing device according to an embodiment of the invention;
fig. 5 is a block diagram of a second scene processing device according to an embodiment of the present invention;
fig. 6 is a block diagram of an intelligent gateway according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention 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 invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention 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 invention 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.
First, partial terms or terminology appearing in the course of describing the embodiments of the present application are applicable to the following explanation:
a combination of a specific set of device actions set by a user in a smart home environment is referred to as a scene, for example, when the smart burglary-resisting door is unlocked, a smart lamp and a smart television in a living room are turned on, and the actions of the condition judgment logic and the smart device are referred to as a scene.
The data on which the intelligent equipment and the scene in the edge scene depend for conditional judgment come from the local, namely a local scene in the scenes, and the data on which the intelligent equipment and the scene depend on the cloud or the Internet are not needed.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of scene processing, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a schematic flow chart of a first scene processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, a target scene is acquired, where the target scene includes actions of at least one local device. In this step, the target scene may be a new scene created by the user, where the new scene waits to be arranged after being created, and the scene may include actions of the local device and a data type on which the scene is implemented, for example, whether the implementation of the scene depends on cloud data.
Step S104, determining whether the target scene can be set as an edge scene, wherein the actions of at least one local device included in the edge scene are completed by relying on local data. Optionally, the information of the target scene may be uploaded to the cloud end by the user locally, and the cloud end performs judgment on the scene type to determine whether the target scene may be set as an edge scene, and if so, a control script of the target scene is generated.
In step S106, in the case where the target scene can be set as the edge scene, the control script of the target scene is transmitted to the local control device. Optionally, the local control device may communicate with the local internet of things device, and may further control the local device in the target scene according to the control script of the target scene, so as to implement the target scene on the premise of not depending on cloud data and cloud control. After receiving the control script, the local control device can still correctly and completely execute the target scene even if the local and cloud networks are disconnected, namely, the target scene is set as an edge scene and is arranged locally.
Through the steps, a mode of acquiring the target scene including the action of at least one local device is adopted, whether the target scene can be set as an edge scene or not is judged, and under the condition that the target scene can be set as the edge scene, the control script of the target scene is sent to the local control device, so that the purpose of sending the control script of the target scene which can be set as the edge scene to the local control device is achieved, the technical effects of helping a user to automatically judge the arrangement position of the scene and distributing the scene are achieved, and the technical problem that the user does not determine whether the scene should be arranged locally or in the cloud in the process of creating the scene is solved.
As an alternative embodiment, it may be determined whether the target scene may be set as an edge scene by: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; under the condition that the dependent data type of the target scene does not comprise cloud data, judging that the target scene can be set as an edge scene; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
Optionally, the cloud data may include data in a cloud server, and may also include data in the internet, for example, data obtained by calling a public interface in the internet. For example, for a specific scene, such as "monitoring the air temperature of a city, when the air temperature is greater than 30 ℃, turning on a room air conditioner", it can be determined, according to the source of the air temperature data of the city, whether the scene should be set as a cloud scene or an edge scene, specifically, when the air temperature data is from the weather APP in the internet, the scene is a cloud scene, and when the air temperature data is from a local intelligent device capable of measuring air temperature, the scene can be set as an edge scene.
As an alternative embodiment, in the case where the local control device includes two or more, the control script distributing the target scene may employ the following manner: acquiring the number of scene control scripts stored in each local control device; determining the local control device storing the least number of scene control scripts as a first local control device according to the number of scene control scripts stored in each local control device; and sending the control script of the target scene to the first local control equipment.
When there are multiple local control devices locally, in order to avoid that a single local control device is distributed with excessive scene control scripts and other local control devices are in idle state, so as to cause uneven distribution of network resources and computing resources, reasonable configuration of scenes among the multiple local control devices can be realized according to the alternative embodiment, and overlarge load of a single machine or uneven computing power in other forms is avoided.
Alternatively, the local control device may be an intelligent gateway, similar to a wireless router, but carrying more functionality, e.g. the intelligent gateway may run a control script of a target scenario to control the local device connected thereto to execute the target scenario.
As an alternative embodiment, in the case where the local control device includes two or more, the control script of the target scene may also be distributed in the following manner: acquiring a local equipment catalog of each local control equipment, wherein the local equipment catalog is used for recording local equipment connected with the local control equipment; determining a second local control device according to the local device catalogue of each local control device, wherein the local device catalogue of the second local control device comprises local devices corresponding to the target scene; and sending the control script of the target scene to the second local control equipment.
Because the local device in the target scene may be registered only on the specific local control device, the present alternative embodiment can accurately issue the control script of the target scene to the local control device capable of completely controlling and executing the target scene, so as to ensure that the target scene is executed correctly locally.
Fig. 2 is a schematic flow chart of a second scene processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S202, a target scene is transmitted, wherein the target scene includes actions of at least one local device. In this step, the target scene may be a new scene created by the user, where the new scene waits to be arranged after being created, and the scene may include actions of the local device and a data type on which the scene is implemented, for example, whether the implementation of the scene depends on cloud data.
Step S204, receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, and the identification information is used for identifying the target scene as an edge scene.
Step S206, according to the control script of the target scene, the local device is controlled to execute the action.
Optionally, the local control device may communicate with the local internet of things device, and may further control the local device in the target scene according to the control script of the target scene, so as to implement the target scene on the premise of not depending on cloud data and cloud control. After receiving the control script, the local control device can still correctly and completely execute the target scene even if the local and cloud networks are disconnected, namely, the target scene is set as an edge scene and is arranged locally.
Step S208, displaying the identification information of the target scene. The identification information of the target scene is displayed, so that the user can know which edge scenes are arranged in the local control device.
Through the steps, the corresponding local equipment can be controlled to finish actions according to the target scene locally, and the technical effect of arranging the target scene which can be arranged as an edge scene locally is achieved.
FIG. 3 is a timing diagram of scene distribution provided in accordance with an alternative embodiment of the present invention, as shown in FIG. 3, helping a user to achieve scene distribution may be accomplished by:
step S1, a user creates a scene in an APP and sends the scene to a scene center;
step S2, the scene center judges whether the conditional actions of the scene are all of the equipment type, namely whether the scene is dependent on the data type of the local equipment and not dependent on cloud or internet data, if so, the scene can be set as an edge scene;
step S3, the gateway equipment under the home is queried by the home center, the gateway equipment in the home is returned, and then the gateway equipment of the control script which is allowed to distribute the scene, namely the gateway equipment registered in the scene center, is screened out;
step S4, determining all local devices involved in the scene, then inquiring the control relation between the devices and the local gateway, and finding out gateway devices capable of controlling all the local devices involved in the scene;
step S5, determining whether the gateway equipment can also arrange a new scene, and inquiring whether the gateway is in an available state;
step S6, if a plurality of online gateways meeting the conditions exist, selecting a preferred gateway device with the least number of configured scenes, and creating an edge scene of the scenes in the preferred gateway device;
and S7, issuing the control script of the scene to the preferable gateway equipment to realize the local arrangement of the edge scene.
Example 2
According to an embodiment of the present invention, there is further provided a scene processing device for implementing the above scene processing method, and fig. 4 is a block diagram of a first scene processing device according to an embodiment of the present invention, as shown in fig. 4, where the first scene processing device 40 includes: the acquisition module 42, the judgment module 44 and the first transmission module 46 are described below as the scene processing device one 40.
An acquisition module 42 for acquiring a target scene, wherein the target scene includes actions of at least one local device;
a judging module 44, coupled to the acquiring module 42, for judging whether the target scene can be set as an edge scene, wherein the actions of at least one local device included in the edge scene need to be dependent on the local data;
the first sending module 46 is connected to the judging module 44, and is configured to send the control script of the target scene to the local control device when the target scene can be set as the edge scene.
Here, the above-mentioned obtaining module 42, the judging module 44 and the first sending module 46 correspond to steps S102 to S106 in embodiment 1, and the three modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment 1.
According to an embodiment of the present invention, there is further provided a scene processing device for implementing the above scene processing method, and fig. 5 is a block diagram of a second scene processing device according to an embodiment of the present invention, as shown in fig. 5, where the second scene processing device 50 includes: the second transmitting module 52, the receiving module 54, the control module 56 and the display module 58 will be described below for the second scene processing device 50.
A second sending module 52, configured to send a target scene, where the target scene includes actions of at least one local device;
the receiving module 54 is connected to the second sending module 52, and is configured to receive a control script of a target scene and identification information of the target scene, where the target scene includes an action of at least one local device, and the identification information is used to identify that the target scene is an edge scene;
the control module 56 is connected to the receiving module 54, and is configured to control the local device to perform an action according to a control script of the target scene;
the display module 58 is connected to the control module 56, and is configured to display identification information of the target scene.
Here, the second sending module 52, the receiving module 54, the control module 56 and the display module 58 correspond to steps S202 to S208 in embodiment 1, and the plurality of modules are the same as the corresponding steps in terms of implementation and application, but are not limited to those disclosed in embodiment 1.
According to an embodiment of the present invention, there is further provided an intelligent gateway, and fig. 6 is a block diagram of a structure of the intelligent gateway provided according to an embodiment of the present invention, as shown in fig. 6, the intelligent gateway 60 includes: the first communication unit 62, the second communication unit 64, the data processing unit 66 and the display 68 are described below with respect to the smart gateway 60.
The first communication unit 62 is configured to perform data communication with the cloud end, and receive a control script of a target scene issued by the cloud end, where the target scene includes an action of at least one local device;
a second communication unit 64, configured to receive data sent by at least one local device, and send a control instruction to the at least one local device;
a data processing unit 66, connected to the first communication unit 62 and the second communication unit 64, for generating a control instruction according to a control script of the target scene and data sent by at least one local device;
and a display screen 68 connected to the data processing unit 66 for displaying the identification information of the target scene.
Example 3
Embodiments of the present invention may provide a computer device, optionally in this embodiment, the computer device may be located in at least one network device of a plurality of network devices of a computer network. The computer device includes a memory and a processor.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the scene processing method and apparatus in the embodiments of the present invention, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the scene processing method described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located relative to the processor, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: obtaining a target scene, wherein the target scene comprises actions of at least one local device; judging whether the target scene can be set as an edge scene, wherein the actions of at least one local device included in the edge scene are completed by relying on local data; in the case where the target scene may be set as an edge scene, a control script of the target scene is transmitted to the local control device.
Optionally, the above processor may further execute program code for: determining whether the target scene can be set as an edge scene includes: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; under the condition that the dependent data type of the target scene does not comprise cloud data, judging that the target scene can be set as an edge scene; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
Optionally, the above processor may further execute program code for: in the case where the local control device includes two or more, transmitting a control script of the target scene to the local control device includes: acquiring the number of scene control scripts stored in each local control device; determining the local control device storing the least number of scene control scripts as a first local control device according to the number of scene control scripts stored in each local control device; and sending the control script of the target scene to the first local control equipment.
Optionally, the above processor may further execute program code for: in the case where the local control device includes two or more, transmitting a control script of the target scene to the local control device includes: acquiring a local equipment catalog of each local control equipment, wherein the local equipment catalog is used for recording local equipment connected with the local control equipment; determining a second local control device according to the local device catalogue of each local control device, wherein the local device catalogue of the second local control device comprises local devices corresponding to the target scene; and sending the control script of the target scene to the second local control equipment.
Optionally, the above processor may further execute program code for: transmitting a target scene, wherein the target scene comprises actions of at least one local device; receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, and the identification information is used for identifying the target scene as an edge scene; according to the control script of the target scene, controlling the local equipment to execute actions; and displaying the identification information of the target scene.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Example 4
Embodiments of the present invention also provide a computer-readable storage medium. Alternatively, in the present embodiment, the above-described computer-readable storage medium may be used to store program code executed by the scene processing method provided in the above-described embodiment 1.
Alternatively, in this embodiment, the above-mentioned computer-readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: obtaining a target scene, wherein the target scene comprises actions of at least one local device; judging whether the target scene can be set as an edge scene, wherein the actions of at least one local device included in the edge scene are completed by relying on local data; in the case where the target scene may be set as an edge scene, a control script of the target scene is transmitted to the local control device.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: determining whether the target scene can be set as an edge scene includes: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; under the condition that the dependent data type of the target scene does not comprise cloud data, judging that the target scene can be set as an edge scene; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: in the case where the local control device includes two or more, transmitting a control script of the target scene to the local control device includes: acquiring the number of scene control scripts stored in each local control device; determining the local control device storing the least number of scene control scripts as a first local control device according to the number of scene control scripts stored in each local control device; and sending the control script of the target scene to the first local control equipment.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: in the case where the local control device includes two or more, transmitting a control script of the target scene to the local control device includes: acquiring a local equipment catalog of each local control equipment, wherein the local equipment catalog is used for recording local equipment connected with the local control equipment; determining a second local control device according to the local device catalogue of each local control device, wherein the local device catalogue of the second local control device comprises local devices corresponding to the target scene; and sending the control script of the target scene to the second local control equipment.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: transmitting a target scene, wherein the target scene comprises actions of at least one local device; receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, and the identification information is used for identifying the target scene as an edge scene; according to the control script of the target scene, controlling the local equipment to execute actions; and displaying the identification information of the target scene.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention 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 invention, which are intended to be comprehended within the scope of the present invention.
Claims (9)
1. A scene processing method, comprising:
obtaining a target scene, wherein the target scene comprises actions of at least one local device;
judging whether the target scene can be set as an edge scene or not, wherein the actions of at least one local device included in the edge scene are completed depending on local data;
transmitting a control script of the target scene to a local control device under the condition that the target scene can be set as an edge scene;
wherein the determining whether the target scene can be set as an edge scene includes: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; judging that the target scene can be set as an edge scene under the condition that the dependent data type of the target scene does not comprise cloud data; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
2. The method of claim 1, wherein, in the case where the local control device includes two or more, transmitting the control script of the target scene to the local control device includes:
acquiring the number of scene control scripts stored in each local control device;
determining the local control equipment storing the least number of the scene control scripts as first local control equipment according to the number of the scene control scripts stored in each local control equipment;
and sending the control script of the target scene to the first local control equipment.
3. The method of claim 1, wherein, in the case where the local control device includes two or more, transmitting the control script of the target scene to the local control device includes:
acquiring a local equipment catalog of each local control equipment, wherein the local equipment catalog is used for recording local equipment connected with the local control equipment;
determining a second local control device according to the local device catalogue of each local control device, wherein the local device catalogue of the second local control device comprises local devices corresponding to the target scene;
and sending the control script of the target scene to the second local control equipment.
4. A scene processing method, comprising:
the intelligent gateway sends a target scene, wherein the target scene comprises actions of at least one local device;
the intelligent gateway receives a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, the identification information is used for identifying the target scene as an edge scene, and the actions of the at least one local device included in the edge scene depend on local data;
controlling the local equipment to execute the action according to the control script of the target scene;
and displaying the identification information of the target scene.
5. A scene processing device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a target scene, and the target scene comprises actions of at least one local device;
the judging module is used for judging whether the target scene can be set as an edge scene or not, wherein actions of at least one local device included in the edge scene are completed depending on local data;
the first sending module is used for sending the control script of the target scene to the local control equipment under the condition that the target scene can be set as an edge scene;
the judging module is further configured to obtain a dependent data type of the target scene, where the dependent data type includes: cloud data and local data; judging that the target scene can be set as an edge scene under the condition that the dependent data type of the target scene does not comprise cloud data; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
6. A scene processing device, comprising:
the second sending module is used for sending a target scene by the intelligent gateway, wherein the target scene comprises actions of at least one local device;
the intelligent gateway is used for receiving a control script of a target scene and identification information of the target scene, wherein the target scene comprises actions of at least one local device, the identification information is used for identifying the target scene as an edge scene, and the actions of the at least one local device included in the edge scene depend on local data;
the control module is used for controlling the local equipment to execute the action according to the control script of the target scene;
and the display module is used for displaying the identification information of the target scene.
7. An intelligent gateway, comprising: the device comprises a first communication unit, a second communication unit, a data processing unit and a display screen, wherein,
the first communication unit is used for carrying out data communication with a cloud and receiving a control script of a target scene issued by the cloud, wherein the target scene comprises actions of at least one local device;
the second communication unit is configured to receive data sent by the at least one local device, and send a control instruction to the at least one local device;
the data processing unit is used for generating the control instruction according to the control script of the target scene and the data sent by the at least one local device;
the display screen is used for displaying the identification information of the target scene;
wherein, the control script of the target scene is determined by the following ways:
obtaining a target scene, wherein the target scene comprises actions of at least one local device;
judging whether the target scene can be set as an edge scene or not, wherein the actions of at least one local device included in the edge scene are completed depending on local data;
determining a control script of the target scene in the case that the target scene can be set as an edge scene;
wherein the determining whether the target scene can be set as an edge scene includes: obtaining a dependent data type of the target scene, wherein the dependent data type comprises: cloud data and local data; judging that the target scene can be set as an edge scene under the condition that the dependent data type of the target scene does not comprise cloud data; and under the condition that the dependent data type of the target scene comprises cloud data, judging that the target scene cannot be set as an edge scene.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the scene processing method according to any one of claims 1 to 4.
9. A processor, characterized in that the processor is adapted to run a program, wherein the program runs to perform the scene processing method according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110730104.8A CN113572669B (en) | 2021-06-29 | 2021-06-29 | Scene processing method and device, intelligent gateway and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110730104.8A CN113572669B (en) | 2021-06-29 | 2021-06-29 | Scene processing method and device, intelligent gateway and processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113572669A CN113572669A (en) | 2021-10-29 |
CN113572669B true CN113572669B (en) | 2023-06-20 |
Family
ID=78163163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110730104.8A Active CN113572669B (en) | 2021-06-29 | 2021-06-29 | Scene processing method and device, intelligent gateway and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113572669B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115296944A (en) * | 2022-06-24 | 2022-11-04 | 青岛海尔科技有限公司 | Scene execution system and method, storage medium, and electronic apparatus |
CN115296947B (en) * | 2022-06-28 | 2024-01-26 | 青岛海尔科技有限公司 | Control command response method and device, storage medium and electronic device |
CN115167163B (en) * | 2022-06-28 | 2024-07-19 | 青岛海尔科技有限公司 | Scene execution method and device, storage medium and electronic device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799526A (en) * | 2012-07-10 | 2012-11-28 | 浪潮集团山东通用软件有限公司 | Distributed intelligent scheduling method |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN109634251A (en) * | 2019-01-31 | 2019-04-16 | 广东美的制冷设备有限公司 | Smart home device inter-linked controlling method, device and smart home device |
CN111669304A (en) * | 2020-05-19 | 2020-09-15 | 广东科徕尼智能科技有限公司 | Intelligent household scene control method and equipment based on edge gateway and storage medium |
WO2020228032A1 (en) * | 2019-05-16 | 2020-11-19 | 深圳市欢太科技有限公司 | Scene pushing method, apparatus and system, and electronic device and storage medium |
CN112181382A (en) * | 2020-11-27 | 2021-01-05 | 北京和利时***工程有限公司 | Industrial intelligent control system based on software definition |
CN112199623A (en) * | 2020-09-29 | 2021-01-08 | 上海博泰悦臻电子设备制造有限公司 | Script execution method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015191937A1 (en) * | 2014-06-13 | 2015-12-17 | Unifythings, Inc. | Virtual gateway for a connected device |
-
2021
- 2021-06-29 CN CN202110730104.8A patent/CN113572669B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799526A (en) * | 2012-07-10 | 2012-11-28 | 浪潮集团山东通用软件有限公司 | Distributed intelligent scheduling method |
CN108255701A (en) * | 2017-06-27 | 2018-07-06 | 平安普惠企业管理有限公司 | Scrnario testing method and mobile terminal |
CN109634251A (en) * | 2019-01-31 | 2019-04-16 | 广东美的制冷设备有限公司 | Smart home device inter-linked controlling method, device and smart home device |
WO2020228032A1 (en) * | 2019-05-16 | 2020-11-19 | 深圳市欢太科技有限公司 | Scene pushing method, apparatus and system, and electronic device and storage medium |
CN111669304A (en) * | 2020-05-19 | 2020-09-15 | 广东科徕尼智能科技有限公司 | Intelligent household scene control method and equipment based on edge gateway and storage medium |
CN112199623A (en) * | 2020-09-29 | 2021-01-08 | 上海博泰悦臻电子设备制造有限公司 | Script execution method and device, electronic equipment and storage medium |
CN112181382A (en) * | 2020-11-27 | 2021-01-05 | 北京和利时***工程有限公司 | Industrial intelligent control system based on software definition |
Non-Patent Citations (2)
Title |
---|
"Using an IoT gateway to connect the "things" to the cloud";John Treadway;《https://www.techtarget.com/iotagenda/feature/Using-an-IoT-gateway-to-connect-the-Things-to-the-cloud》;20181001;全文 * |
"从6大应用场景,看边缘计算落地生根";BoCloud;《https://www.kubernetes.org.cn/8315.html》;20200828;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113572669A (en) | 2021-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113572669B (en) | Scene processing method and device, intelligent gateway and processor | |
CN108513154B (en) | Smart home control method based on smart television, smart television and storage medium | |
CN105471686B (en) | Terminal control method, device and system | |
US20150312296A1 (en) | Method and device for pushing multimedia resource and display terminal | |
CN108173727B (en) | Intelligent household appliance network access method and equipment | |
CN113498594B (en) | Control method and device of smart home system, electronic equipment and storage medium | |
CN103298147B (en) | Realize the methods, devices and systems at computing equipment side radio management mobile terminal | |
CN105704157A (en) | Remote control method and system, intelligent terminal and service terminal application to remote control method and system | |
CN107947985B (en) | Equipment network access method and device, intelligent terminal, network access equipment and network access waiting equipment | |
CN109981421B (en) | Intelligent device network distribution method and device | |
CN106094547A (en) | Intelligent home equipment control method and system | |
CN105722089B (en) | A kind of equipment authentication method | |
CN110932944A (en) | Method and system for controlling intelligent household equipment by visitor terminal | |
CN113485134A (en) | Device control method and apparatus, storage medium, and electronic device | |
CN112689316B (en) | Binding method and device of intelligent equipment, storage medium and electronic device | |
CN114244644A (en) | Smart home control method and device, storage medium and electronic device | |
CN109889521A (en) | Memory, communication channel multiplexing implementation method, device and equipment | |
CN110099461A (en) | Communication means, device, system, electronic equipment and storage medium between terminal | |
CN105471678A (en) | Method and system for detecting networking failure reason of household appliance and mobile terminal | |
CN106559699B (en) | A kind of multi-screen interaction method of IPTV, server and system | |
CN107181825B (en) | Online processing method of terminal equipment data | |
CN109788301A (en) | A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium | |
CN106453349A (en) | An account number login method and apparatus | |
CN115514667A (en) | Access service processing method, system, device, electronic equipment and storage medium | |
CN112817248B (en) | Shared equipment management method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |