CN113504766B - Method, system, apparatus, server and storage medium for scheduling a scene task - Google Patents

Method, system, apparatus, server and storage medium for scheduling a scene task Download PDF

Info

Publication number
CN113504766B
CN113504766B CN202110753317.2A CN202110753317A CN113504766B CN 113504766 B CN113504766 B CN 113504766B CN 202110753317 A CN202110753317 A CN 202110753317A CN 113504766 B CN113504766 B CN 113504766B
Authority
CN
China
Prior art keywords
scene
task
server
alternative
execution time
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
CN202110753317.2A
Other languages
Chinese (zh)
Other versions
CN113504766A (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 Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home Co Ltd
Haier Shenzhen R&D Co Ltd
Original Assignee
Qingdao Haier Air Conditioner Gen Corp Ltd
Qingdao Haier Air Conditioning Electric Co Ltd
Haier Smart Home Co Ltd
Haier Shenzhen R&D 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 Air Conditioner Gen Corp Ltd, Qingdao Haier Air Conditioning Electric Co Ltd, Haier Smart Home Co Ltd, Haier Shenzhen R&D Co Ltd filed Critical Qingdao Haier Air Conditioner Gen Corp Ltd
Priority to CN202110753317.2A priority Critical patent/CN113504766B/en
Publication of CN113504766A publication Critical patent/CN113504766A/en
Priority to PCT/CN2022/095848 priority patent/WO2023273752A1/en
Application granted granted Critical
Publication of CN113504766B publication Critical patent/CN113504766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop
    • 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]

Abstract

The application relates to the technical field of household appliance control, and discloses a method for scheduling scene tasks, which is applied to an actuator side and comprises the following steps: after receiving a polling instruction sent by the scheduler, the executor calls current time information and alternative scene task information from the server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; and sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed. Therefore, when the server schedules the scene tasks, the to-be-executed scene tasks are determined through the executor, the workload of the server is reduced, the load of the server during the scene task scheduling is reduced, and the possibility of paralysis of the server is further reduced. The application also discloses a method, a system, a device, a server and a storage medium for scheduling the scene task.

Description

Method, system, apparatus, server and storage medium for scheduling a scene task
Technical Field
The present application relates to the field of home appliance control technologies, and for example, to a method, a system, an apparatus, a server, and a storage medium for scheduling a scene task.
Background
At present, with the increasing diversification and intelligence of household appliances, a plurality of household appliances may be controlled at regular time under the condition that a user is in different scenes, the user can access a manufacturer background server through software and control the household appliances through the manufacturer background server, and the manufacturer background server needs to complete a large number of tasks.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
in the prior art, under the condition of too large task amount, the background server of a manufacturer can be overloaded, and finally, the background server of the manufacturer is paralyzed, so that the task cannot be continuously completed.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method, a system, a device, a server and a storage medium for scheduling a scene task, which can reduce the load of the server in scheduling the scene task.
In some embodiments, the method for scheduling a scene task is applied to an executor side, and the method includes: after a polling instruction sent by a scheduler is received, current time information and alternative scene task information are called from a server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; and sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed.
In some embodiments, the method for scheduling a scene task is applied to a server side, and the method includes: acquiring a scene and an execution time period sent by a user terminal; determining and storing task information of alternative scenes according to the scenes and the execution time periods; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; under the condition of receiving a calling request of an actuator, feeding back current time information and the alternative scene task information to the actuator; and after receiving the scene task to be executed fed back by the executor, controlling the household appliance according to the scene task to be executed.
In some embodiments, the system for scheduling a scenario task comprises: the system comprises a user terminal, a server and a server, wherein the user terminal is configured to acquire a scene selected by a user and an execution time period selected by the user and send the scene and the execution time period to the server; the execution time period comprises a start time and an end time of the scene; the server is configured to acquire the scene and the execution time period sent by the user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; under the condition of receiving a calling request of an actuator, feeding back current time information and the alternative scene task information to the actuator; after receiving a scene task to be executed fed back by an actuator, controlling the household appliance according to the scene task to be executed; the executor is configured to call current time information and the alternative scene task information from the server after receiving a polling instruction sent by a scheduler; the alternative scene task information comprises the alternative scene task and the execution time corresponding to the alternative scene task; determining the scene task to be executed according to the execution time and the current time information; sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed; the scheduler is configured to send the polling instruction to the executor according to preset time; the home device configured to receive control of the server.
In some embodiments, the means for scheduling a scene task comprises: a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the method for scheduling a scene task as described above.
In some embodiments, the server comprises: apparatus for scheduling a scene task as described above.
In some embodiments, the storage medium: there are stored program instructions which, when executed, perform the method for scheduling a scene task as described above.
The method, the system, the device, the server and the storage medium for scheduling the scene tasks provided by the embodiment of the disclosure can realize the following technical effects: after receiving the polling instruction sent by the scheduler, the executor calls current time information and alternative scene task information from the server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; and sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed. Therefore, when the server schedules the scene tasks, the to-be-executed scene tasks are determined through the executor, the workload of the server is reduced, the load of the server during the scene task scheduling is reduced, and the possibility of paralysis of the server is further reduced.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a method for scheduling a scene task according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for scheduling scenario tasks provided by an embodiment of the present disclosure;
FIG. 3 is a timing diagram of a method for scheduling a scene task according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an apparatus for scheduling a scene task according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" may refer to an association or binding relationship, and a corresponding to B refers to an association or binding relationship between a and B.
In the embodiment of the disclosure, the home appliance device is a home appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into the home appliance device, and has the characteristics of intelligent control, intelligent sensing and intelligent application, the operation process of the home appliance device usually depends on the application and processing of modern technologies such as internet of things, internet and an electronic chip, for example, the home appliance device can realize remote control and management of a user on the home appliance device by connecting the home appliance device with the electronic device.
In the embodiment of the present disclosure, the user terminal refers to an electronic device with a wireless connection function, and the user terminal may be in communication connection with the above household appliance device by connecting to the internet, or may be in communication connection with the above household appliance device directly by means of bluetooth, wifi, and the like. In some embodiments, the user terminal is, for example, a mobile device, a computer, or a vehicle-mounted device built in a hovercar, or any combination thereof. The mobile device may include, for example, a cell phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, or the like, or any combination thereof, wherein the wearable device includes, for example: smart watches, smart bracelets, pedometers, and the like.
Referring to fig. 1, an embodiment of the present disclosure provides a method for scheduling a scene task, which is applied to an actuator side and includes:
step S101, after receiving a polling instruction sent by a scheduler, an actuator calls current time information and alternative scene task information from a server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks.
And S102, the executor determines the scene task to be executed according to the execution time corresponding to the candidate scene task and the current time information.
And step S103, the executor sends the scene task to be executed to the server, and the trigger server controls the household appliance according to the scene task to be executed.
By adopting the method for scheduling the scene tasks, the actuator calls the current time information and the alternative scene task information from the server after receiving the polling instruction sent by the scheduler; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; and sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed. Therefore, when the server schedules the scene tasks, the scene tasks to be executed are determined through the executor, the workload of the server is reduced, the load of the server when the scene tasks are scheduled is reduced, and the possibility of paralysis of the server is further reduced.
In some embodiments, the scheduler sends polling instructions to the executors at preset times. For example, a polling command is sent to the actuator every minute.
Optionally, the invoking of the current time information and the alternative scene task information by the executor from the server includes: and the executor sends a call request to the server and triggers the server to feed back the current time information and the task information of the alternative scene.
Optionally, the alternative scene tasks include a start scene task, a scene execution task, and an end scene task. The execution time corresponding to the alternative scene task comprises the following steps: the method comprises the steps of starting a scene task and corresponding execution time thereof, starting the scene task and corresponding execution time thereof, and ending the scene task and corresponding execution time thereof.
Optionally, the determining, by the executor, the scene task to be executed according to the execution time corresponding to the candidate scene task and the current time information includes: and the executor determines the alternative scene task corresponding to the execution time equal to the current time information as the scene task to be executed.
Optionally, the triggering server controls the home appliance device according to the scene task to be executed, including: the triggering server matches household appliances corresponding to the scene task to be executed and control instructions corresponding to the scene task to be executed and the household appliances together in a preset first database; the first database stores the corresponding relation among the scene task to be executed, the household appliance and the control command; and the trigger server sends a control instruction to the household appliance to control the household appliance.
In some embodiments, after receiving a polling instruction sent by the scheduler, the executor calls current time information and alternative scene task information from the server, for example, the current time information is 202106272200, that is, 22 click times in 6 months and 27 days in 2021, the alternative scene task is to turn on the intelligent air conditioner and set to 24 ℃ in a cooling mode, and the execution time corresponding to the alternative scene task is 202106272200, that is, the execution time is equal to the current time information, the executor determines the alternative scene task corresponding to the execution time as a scene task to be executed, that is, turns on the intelligent air conditioner and sets to 24 ℃ in the cooling mode, and sends the scene task to be executed to the server; the actuator trigger server matches a household appliance corresponding to the scene task to be executed, namely an intelligent air conditioner, and a control instruction corresponding to the scene task to be executed and the household appliance together in a preset first database, namely the household appliance is started and set to be in a refrigeration mode of 24 ℃; and the actuator triggers the server to send the control instruction to the household appliance so as to control the household appliance.
With reference to fig. 2, an embodiment of the present disclosure provides another method for scheduling an execution scenario, which is applied to a server side, and includes:
in step S201, the server obtains a scene and an execution time period sent by the user terminal.
Step S202, the server determines and stores the task information of the alternative scene according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks.
Step S203, the server feeds back current time information and alternative scene task information to the executor under the condition of receiving the calling request of the executor.
And step S204, after receiving the scene task to be executed fed back by the executor, the server controls the household appliance according to the scene task to be executed.
By adopting the method for scheduling the scene task provided by the embodiment of the disclosure, the server acquires the scene and the execution time period sent by the user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; the method comprises the steps that a server feeds back alternative scene task information to an actuator under the condition that a calling request of the actuator is received; and after receiving the scene task to be executed fed back by the executor, controlling the household appliance according to the scene task to be executed. Therefore, when the server schedules the scene tasks, the to-be-executed scene tasks are determined through the executor, the workload of the server is reduced, the load of the server during the scene task scheduling is reduced, and the possibility of paralysis of the server is further reduced.
Optionally, the execution time period includes a start time and an end time of the scene, and the server determines and stores the alternative scene task information according to the scene and the execution time period, including: the server acquires an alternative scene task corresponding to a scene; the alternative scene tasks comprise a scene starting task, a scene executing task and a scene ending task; a preset time period is corresponding to the scene execution task; adding or subtracting the starting time and a preset time period to obtain the execution time corresponding to the scene execution task; establishing a mapping relation between the starting time and the opening scene task to obtain the corresponding execution time of the opening scene task; establishing a mapping relation between the ending time and the ending scene task to obtain the corresponding execution time of the ending scene task; and storing the opening scene task and the corresponding execution time thereof, the scene execution task and the corresponding execution time thereof, and the ending scene task and the corresponding execution time thereof into the alternative scene task information.
Optionally, the obtaining, by the server, the alternative scene task corresponding to the scene includes: the server matches an alternative scene task corresponding to the scene in a preset second database, and the second database stores the corresponding relation between the scene and the alternative scene task.
In some embodiments, the server receives that the scene sent by the user terminal is a leisure party scene, the start time of the scene is 202106261800, namely 18 click at 6 month and 26 days in 2021 and the end time of the scene is 202106262200, namely 22 click at 6 month and 26 days in 2021; the server determines and stores the alternative scene task information according to the leisure party scene, the starting time 202106261800 of the scene and the ending time 202106262200 of the scene. An example table of alternative scene task information corresponding to a leisure gathering scene as shown in table 1:
Figure BDA0003146058950000071
TABLE 1
As shown in table 1, the start scene task corresponding to the leisure party scene is to start the intelligent air conditioner, set the intelligent air conditioner to be in the refrigeration mode of 22 ℃ and start the intelligent air purifier, and the corresponding execution time is 18 o' clock at 6 months, 26 days and 26 months in 2021; the scene execution task is to transmit reservation information to the user terminal 5 minutes before the start time of the scene, turn on the intelligent humidifier 30 minutes after the start time of the scene and turn on the intelligent sound 60 minutes after the start time of the scene, and the execution time of the scene execution task is respectively 17: 55 at 26/18 at 2021 year 6/26 and 19 at 2021 year 6/26; and the ending scene task of the alternative scene task is that the intelligent air conditioner is set to be in a cooling mode at 26 ℃ and the intelligent sound box is turned off, and the corresponding execution time is 22 click-through at 6 months, 26 days and 26 months in 2021.
Optionally, the controlling, by the server, the home appliance device according to the scene task to be executed includes: matching out household appliances corresponding to the scene task to be executed and control instructions corresponding to the scene task to be executed and the household appliances in a preset first database; the first database stores the corresponding relation among the scene task to be executed, the household appliance and the control command; and sending a control instruction to the household appliance, and triggering the household appliance to execute the control instruction.
In some embodiments, after receiving a call request sent by an executor, a server feeds back current time information and alternative scene task information to the executor, for example, the current time information is 202106261900, that is, 19 click at 26/6/26/2021 year, and an alternative scene task of the alternative scene task information is that an intelligent sound is started 60 minutes after the start time of the scene and the execution time corresponding to the alternative scene task is 202106261900; the server receives the scene task to be executed fed back by the executor, for example: the scene task to be executed is to start the intelligent sound box after the start time of the scene is 60 minutes, match out the household electrical appliance corresponding to the scene task to be executed, namely the intelligent sound box, and the control instruction corresponding to the scene task to be executed and the household electrical appliance together in a preset first database, namely start; the server sends the control instruction to the household appliance and triggers the household appliance to execute the control instruction.
The embodiment of the present disclosure provides a system for scheduling a scene task, including: user terminal, server, executor, scheduler and household electrical appliances. The system comprises a user terminal, a server and a server, wherein the user terminal is configured to acquire a scene selected by a user and an execution time period selected by the user and send the scene and the execution time period to the server; the execution time period includes a start time and an end time of the scene; a server configured to acquire a scene and an execution period transmitted by a user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; under the condition of receiving a calling request of an actuator, feeding back current time information and alternative scene task information to the actuator; after receiving the scene task to be executed fed back by the executor, controlling the household appliance according to the scene task to be executed; the executor is configured to call current time information and alternative scene task information from the server after receiving the polling instruction sent by the scheduler; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; sending a scene task to be executed to a server, and triggering the server to control the household appliance according to the scene task to be executed; the scheduler is configured to send a polling instruction to the executor according to preset time; and an electric home appliance configured to receive control of the server.
By adopting the system for scheduling the scene tasks, provided by the embodiment of the disclosure, the user terminal acquires the scene selected by the user and the execution time period selected by the user, and sends the scene and the execution time period to the server; the execution time period includes a start time and an end time of the scene; the server acquires a scene and an execution time period sent by the user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; under the condition of receiving a calling request of an actuator, feeding back current time information and alternative scene task information to the actuator; after receiving the scene task to be executed fed back by the executor, controlling the household appliance according to the scene task to be executed; after receiving the polling instruction sent by the scheduler, the executor calls current time information and alternative scene task information from the server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; determining a scene task to be executed according to the execution time and the current time information; sending a scene task to be executed to a server, and triggering the server to control the household appliance according to the scene task to be executed; the scheduler sends a polling instruction to the actuator according to preset time; the home appliance receives control of the server. Therefore, when the server schedules the scene tasks, the scene tasks to be executed are determined through the executor, the workload of the server is reduced, the load of the server when the scene tasks are scheduled is reduced, and the possibility of paralysis of the server is further reduced.
Optionally, a server configured to: acquiring alternative scene tasks corresponding to scenes; the alternative scene tasks comprise a scene starting task, a scene executing task and a scene ending task; a preset time period is corresponding to the scene execution task; adding or subtracting the starting time of the scene with a preset time period to obtain the corresponding execution time of the scene execution task; establishing a mapping relation between the ending time of the scene and the ending scene task to obtain the corresponding execution time of the ending scene task; establishing a mapping relation between the starting time of the scene and the scene starting task to obtain the corresponding execution time of the scene starting task; and storing the opening scene task and the corresponding execution time thereof, the scene execution task and the corresponding execution time thereof, and the ending scene task and the corresponding execution time thereof into the alternative scene task information.
Optionally, a server configured to: matching home appliances corresponding to the scene task to be executed and control instructions corresponding to the scene task to be executed and the home appliances in a preset first database; the first database stores the corresponding relation among the scene task to be executed, the household appliance and the control instruction; and sending a control instruction to the household appliance, and triggering the household appliance to execute the control instruction.
Optionally, the home appliance receives the control instruction sent by the server, and executes the control instruction sent by the server.
Optionally, an actuator configured to: and determining the alternative scene task corresponding to the execution time equal to the current time information as the scene task to be executed.
Referring to fig. 3, a method for scheduling a scene task according to an embodiment of the present disclosure includes:
in step S301, the user terminal obtains a scene selected by the user and an execution time period selected by the user.
Step S302, the user terminal sends the scene and the execution time period to the server.
Step S303, the server determines and stores the task information of the alternative scene according to the scene and the execution time period.
In step S304, the scheduler sends a polling command to the executor according to a preset time.
In step S305, the executor receives a polling command sent by the scheduler.
In step S306, the executor sends a call request to the server.
Step S307, the server receives a calling request sent by the actuator and feeds back current time information and alternative scene task information to the actuator; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks.
Step S308, the actuator receives the current time information and the alternative scene task information to the actuator; and determining the scene task to be executed according to the execution time corresponding to the alternative scene task and the current time information.
Step S309, the executor sends the scene task to be executed to the server.
And S310, the server determines the household electrical appliance and a control instruction corresponding to the household electrical appliance according to the scene task to be executed.
In step S311, the server sends a control command to the corresponding home appliance.
In step S312, the home device executes the control command sent by the server.
Therefore, when the server schedules the scene tasks, the to-be-executed scene tasks are determined through the executor, the workload of the server is reduced, the load of the server during the scene task scheduling is reduced, and the possibility of paralysis of the server is further reduced.
In some embodiments, the user terminal obtains a leisure party scene selected by the user, the start time 202106261800 of the scene and the end time 202106262200 of the scene, and sends the leisure party scene, the start time 202106261800 of the scene and the end time 202106262200 of the scene to the server; after receiving the first current time information, the server obtains the first current time information, for example: the first current time information is 202106261713, and the start time of the scene is greater than the first current time information; the server determines and stores alternative scene task information according to a leisure party scene, the start time 202106261800 of the scene and the end time 202106262200 of the scene, wherein the alternative scene task information comprises: starting the intelligent air conditioner, setting the intelligent air conditioner to be in a refrigeration mode of 22 ℃ and starting the intelligent air purifier, wherein the corresponding execution time is 18 click at 6 months and 26 days in 2021; transmitting reservation information to the user terminal 5 minutes before the start time of the scene, turning on the intelligent humidifier 30 minutes after the start time of the scene, and turning on the intelligent sound 60 minutes after the start time of the scene, wherein the execution time of the reservation information is 17: 55 at 26/2021/6/26/18: 30 at 2021/6/26 and 19: 19 at 2021/6/26 respectively; the intelligent air conditioner is set to be in a refrigeration mode of 26 ℃ and the intelligent sound box is turned off, and the corresponding execution time is 22 click at 6 months and 26 days in 2021. The scheduler sends a polling instruction to the actuator once every minute, and the actuator sends a calling request to the server after receiving the polling instruction sent by the scheduler; after receiving the second current time information and the alternative scene task information, the server feeds back the second current time information and the alternative scene task information to the executor, for example: the second current time information is 202106262200, namely 22 click at 26 th 6 th month in 2021, the alternative exhaustion task of the alternative scene task information is set as a refrigeration mode of the intelligent air conditioner at 26 ℃ and the corresponding execution time of the alternative scene task is 202106262200; if the execution time is equal to the second current time information, the executor determines the alternative scene task corresponding to the execution time as a scene task to be executed, namely the intelligent air conditioner is set to be in a refrigeration mode at 26 ℃, and sends the scene task to be executed to the server; the server determines the household electrical appliance and a control instruction corresponding to the household electrical appliance according to the scene task to be executed, namely the household electrical appliance is an intelligent air conditioner and the control instruction corresponding to the intelligent air conditioner is set to be in a refrigeration mode of 26 ℃; and sending the control instruction to the household appliance, and executing the control instruction by the household appliance.
In some embodiments, a user terminal obtains a leisure party scene selected by a user, a start time 202106261800 of the scene and an end time 202106262200 of the scene, and sends the leisure party scene, the start time 202106261800 of the scene and the end time 202106262200 of the scene to a server; after receiving the first current time information, the server obtains the first current time information, for example: if the first current time information is 202106261810, and the start time of the scene is smaller than the first current time information, determining the first current time information as the start time of the scene, that is, the start time of the scene is 202106261810, and determining and storing alternative scene task information according to the leisure party scene, the start time 202106261810 of the scene, and the end time 202106262200 of the scene, where the alternative scene task information includes: starting the intelligent air conditioner, setting the intelligent air conditioner to be in a refrigeration mode of 22 ℃ and starting the intelligent air purifier, wherein the corresponding execution time is 18 o' clock and 10 min at 6 month, 26 month and 26 day of 2021 year; the intelligent humidifier is started after the starting time of the scene is 30 minutes, the intelligent sound box is started after the starting time of the scene is 60 minutes, and the corresponding execution time is 18 points at 26 days in 6 months and 18 points in 2021 and 19 points at 26 days in 6 months and 10 points at 10 points in 26 months in 2021; the intelligent air conditioner is set to be in a refrigeration mode of 26 ℃ and the intelligent sound box is turned off, and the corresponding execution time is 22 click at 6 months and 26 days in 2021. The server determines the alternative scene task corresponding to the execution time equal to the first current time as a scene task to be executed, namely, the intelligent air conditioner is started, the refrigeration mode is set to be 22 ℃, and the intelligent air purifier is started; the server determines the household electrical appliance and a control instruction corresponding to the household electrical appliance according to the scene task to be executed, namely the household electrical appliance is an intelligent air conditioner and an intelligent air purifier, the control instruction corresponding to the intelligent air conditioner is started and is set to be in a refrigeration mode of 22 ℃, and the control instruction corresponding to the intelligent air purifier is started; the server respectively sends control instructions to the corresponding household appliances; and the household appliances respectively execute the corresponding control instructions.
As shown in fig. 4, an apparatus for scheduling a scene task according to an embodiment of the present disclosure includes a processor (processor) 400 and a memory (memory) 401. Optionally, the apparatus may also include a Communication Interface 402 and a bus 403. The processor 400, the communication interface 402, and the memory 401 may communicate with each other through a bus 403. Communication interface 402 may be used for information transfer. The processor 400 may call logic instructions in the memory 401 to perform the method for scheduling scenario tasks of the above embodiments.
In addition, the logic instructions in the memory 401 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 401 is a computer-readable storage medium and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 400 executes functional applications and data processing, i.e., implements the method for scheduling scene tasks in the above embodiments, by executing program instructions/modules stored in the memory 401.
The memory 401 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 401 may include a high-speed random access memory, and may also include a nonvolatile memory.
By adopting the device for scheduling the scene tasks, the server acquires the scene and the execution time period sent by the user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; after receiving the polling instruction sent by the scheduler, the actuator sends a calling request to the server, and after receiving the calling request, the server feeds back current time information and alternative scene task information to the actuator; the actuator determines a scene task to be executed according to the execution time and the current time information, and sends the scene task to be executed to the server, and the server controls the household appliance according to the scene task to be executed after receiving the scene task to be executed. Therefore, when the server schedules the scene tasks, the to-be-executed scene tasks are determined through the executor, the workload of the server is reduced, the load of the server during the scene task scheduling is reduced, and the possibility of paralysis of the server is further reduced.
The embodiment of the disclosure provides a server, which includes the above device for scheduling a scene task.
The method comprises the steps that a server obtains a scene and an execution time period sent by a user terminal; determining and storing alternative scene task information according to the scene and the execution time period; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; after receiving the polling instruction sent by the scheduler, the actuator sends a calling request to the server, and after receiving the calling request, the server feeds back current time information and alternative scene task information to the actuator; the actuator determines a scene task to be executed according to the execution time and the current time information, and sends the scene task to be executed to the server, and the server controls the household appliance according to the scene task to be executed after receiving the scene task to be executed. Therefore, when the server schedules the scene tasks, the scene tasks to be executed are determined through the executor, the workload of the server is reduced, the load of the server when the scene tasks are scheduled is reduced, and the possibility of paralysis of the server is further reduced.
Embodiments of the present disclosure provide a storage medium storing computer-executable instructions configured to perform the above-described method for scheduling a scene task.
Embodiments of the present disclosure provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for scheduling a scene task.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a …" does not exclude the presence of additional like elements in a process, method, or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. 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 on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (12)

1. A method for scheduling scene tasks, applied to an actuator side, comprises the following steps:
after receiving a polling instruction sent by a scheduler, sending a calling request to a server, and calling current time information and alternative scene task information from the server; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; the alternative scene task information is determined according to a scene selected by a user and an execution time period selected by the user, and the scene selected by the user and the execution time period selected by the user are sent to the server by a user terminal; the scheduler sends a polling instruction to the actuator according to preset time;
determining a scene task to be executed according to the execution time corresponding to the candidate scene task and the current time information;
and sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed.
2. The method of claim 1, wherein determining the scene task to be executed according to the execution time and the current time information comprises:
and determining the alternative scene task corresponding to the execution time equal to the current time information as the scene task to be executed.
3. A method for scheduling scene tasks is applied to a server side and comprises the following steps:
acquiring a scene selected by a user and an execution time period selected by the user, which are sent by a user terminal;
determining and storing alternative scene task information according to the scene selected by the user and the execution time period selected by the user; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks;
under the condition of receiving a calling request of an actuator, feeding back current time information and the alternative scene task information to the actuator; triggering the executor to determine a scene task to be executed according to the execution time corresponding to the candidate scene task and the current time information; after receiving the polling instruction sent by the scheduler, the executor sends a calling request to the server; the scheduler sends the polling instruction to the actuator according to preset time;
and after receiving the scene task to be executed fed back by the executor, controlling the household appliance according to the scene task to be executed.
4. The method of claim 3, wherein the execution time period comprises a start time and an end time of the scene, and wherein determining and storing alternative scene task information based on the scene and the execution time period comprises:
acquiring an alternative scene task corresponding to the scene; the alternative scene tasks comprise a scene starting task, a scene executing task and a scene ending task; the scene execution task corresponds to a preset time period;
adding or subtracting the starting time and the preset time period to obtain the corresponding execution time of the scene execution task; establishing a mapping relation between the starting time and the starting scene task to obtain the corresponding execution time of the starting scene task; establishing a mapping relation between the ending time and the ending scene task to obtain the corresponding execution time of the ending scene task;
and storing the scene starting task and the corresponding execution time thereof, the scene executing task and the corresponding execution time thereof, and the scene ending task and the corresponding execution time thereof into the alternative scene task information.
5. The method of claim 3, wherein controlling the home device according to the to-be-executed scenario task comprises:
matching out household appliances corresponding to the scene task to be executed and control instructions corresponding to the scene task to be executed and the household appliances in a preset first database; the first database stores the corresponding relation among the scene task to be executed, the household appliance and the control instruction;
and sending the control instruction to the household appliance, and triggering the household appliance to execute the control instruction.
6. A system for scheduling a scene task, comprising:
the system comprises a user terminal and a server, wherein the user terminal is configured to acquire a scene selected by a user and an execution time period selected by the user and send the scene selected by the user and the execution time period selected by the user to the server; the user-selected execution time period comprises a start time and an end time of the user-selected scene;
the server is configured to acquire the scene selected by the user and the execution time period selected by the user, which are sent by the user terminal; determining and storing alternative scene task information according to the scene selected by the user and the execution time period selected by the user; the alternative scene task information comprises alternative scene tasks and execution time corresponding to the alternative scene tasks; under the condition of receiving a calling request of an actuator, feeding back current time information and the alternative scene task information to the actuator; after receiving a scene task to be executed fed back by an actuator, controlling the household appliance according to the scene task to be executed;
the executor is configured to send a calling request to a server after receiving a polling instruction sent by a scheduler, and call current time information and the alternative scene task information from the server; the alternative scene task information comprises the alternative scene task and the execution time corresponding to the alternative scene task; determining the scene task to be executed according to the execution time corresponding to the candidate scene task and the current time information; sending the scene task to be executed to the server, and triggering the server to control the household appliance according to the scene task to be executed;
the scheduler is configured to send the polling instruction to the executor according to preset time;
the home device configured to receive control of the server.
7. The system of claim 6, wherein the server is configured to:
acquiring an alternative scene task corresponding to the scene; the alternative scene tasks comprise a scene starting task, a scene executing task and a scene ending task; the scene execution task corresponds to a preset time period;
adding or subtracting the starting time and the preset time period to obtain the corresponding execution time of the scene execution task; establishing a mapping relation between the starting time and the starting scene task to obtain the corresponding execution time of the starting scene task; establishing a mapping relation between the ending time and the ending scene task to obtain the corresponding execution time of the ending scene task;
and storing the scene starting task and the corresponding execution time thereof, the scene executing task and the corresponding execution time thereof, the scene ending task and the corresponding execution time thereof into the alternative scene task information.
8. The system of claim 6, wherein the server is configured to:
matching home appliances corresponding to the scene task to be executed and control instructions corresponding to the scene task to be executed and the home appliances in a preset first database; the first database stores the corresponding relation among the scene task to be executed, the household appliance and the control instruction;
and sending the control instruction to the household appliance, and triggering the household appliance to execute the control instruction.
9. The system of claim 6, wherein the actuator is configured to:
and determining the alternative scene task corresponding to the execution time equal to the current time information as the scene task to be executed.
10. An apparatus for scheduling a scene task, comprising a processor and a memory having stored thereon program instructions, characterized in that the processor is configured to perform the method for scheduling a scene task according to any one of claims 1 to 5 when executing the program instructions.
11. A server, characterized in that it comprises means for scheduling scenario tasks according to claim 10.
12. A storage medium storing program instructions, characterized in that said program instructions, when executed, perform a method for scheduling scenario tasks according to any of claims 1 to 5.
CN202110753317.2A 2021-07-02 2021-07-02 Method, system, apparatus, server and storage medium for scheduling a scene task Active CN113504766B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110753317.2A CN113504766B (en) 2021-07-02 2021-07-02 Method, system, apparatus, server and storage medium for scheduling a scene task
PCT/CN2022/095848 WO2023273752A1 (en) 2021-07-02 2022-05-30 Method, system, and device for scheduling scene tasks, server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110753317.2A CN113504766B (en) 2021-07-02 2021-07-02 Method, system, apparatus, server and storage medium for scheduling a scene task

Publications (2)

Publication Number Publication Date
CN113504766A CN113504766A (en) 2021-10-15
CN113504766B true CN113504766B (en) 2023-03-21

Family

ID=78011114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110753317.2A Active CN113504766B (en) 2021-07-02 2021-07-02 Method, system, apparatus, server and storage medium for scheduling a scene task

Country Status (2)

Country Link
CN (1) CN113504766B (en)
WO (1) WO2023273752A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504766B (en) * 2021-07-02 2023-03-21 海尔(深圳)研发有限责任公司 Method, system, apparatus, server and storage medium for scheduling a scene task
CN114584416B (en) * 2022-02-11 2023-12-19 青岛海尔科技有限公司 Electrical equipment control method, system and storage medium
CN115296947B (en) * 2022-06-28 2024-01-26 青岛海尔科技有限公司 Control command response method and device, storage medium and electronic device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8701121B2 (en) * 2011-06-27 2014-04-15 Khalifa University Of Science, Technology And Research Method and system for reactive scheduling
CN104111634A (en) * 2013-04-17 2014-10-22 珠海格力电器股份有限公司 Smart home system and control method
US10042336B2 (en) * 2014-09-09 2018-08-07 Savant Systems, Llc User-defined scenes for home automation
CN105099840A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Setting method and device of intelligent household scene
CN105278986A (en) * 2015-09-30 2016-01-27 小米科技有限责任公司 Control method and apparatus of electronic device
CN107121971A (en) * 2017-05-22 2017-09-01 广东芬尼克兹节能设备有限公司 A kind of intelligent home furnishing control method and system based on scene mode
CN110262261B (en) * 2019-05-31 2022-01-11 华为技术有限公司 Method for controlling equipment service, cloud server and intelligent home system
CN111143045B (en) * 2019-12-11 2024-03-22 青岛海尔科技有限公司 Task scheduling method and device of intelligent home operating system and storage medium
CN111324077A (en) * 2020-04-07 2020-06-23 四川虹美智能科技有限公司 Internet of things equipment control method, device and system
CN111506406A (en) * 2020-04-10 2020-08-07 深圳前海微众银行股份有限公司 Workflow scheduling method, device and system and computer readable storage medium
CN111885182B (en) * 2020-07-28 2023-02-03 青岛海尔科技有限公司 Method, device, system and equipment for scene instantiation
CN111913450A (en) * 2020-08-04 2020-11-10 青岛海信日立空调系统有限公司 Control method of intelligent household equipment, intelligent household system and gateway thereof
CN113504766B (en) * 2021-07-02 2023-03-21 海尔(深圳)研发有限责任公司 Method, system, apparatus, server and storage medium for scheduling a scene task

Also Published As

Publication number Publication date
CN113504766A (en) 2021-10-15
WO2023273752A1 (en) 2023-01-05

Similar Documents

Publication Publication Date Title
CN113504766B (en) Method, system, apparatus, server and storage medium for scheduling a scene task
US20130060360A1 (en) Control server and control method
CN109725995B (en) Method, device and equipment for executing data extraction task and readable storage medium
CN103873587B (en) A kind of method and device that scheduling is realized based on cloud platform
CN110285534A (en) Intelligent control method, device, storage medium and air conditioner
CN111143045B (en) Task scheduling method and device of intelligent home operating system and storage medium
EP2033095B1 (en) A thread controller for simultaneous process of data transfer sessions in a personal token
CN105955792A (en) Start control method, device and equipment
CN103309705A (en) Terminal application program activation method and system
CN112526892A (en) Method and device for controlling intelligent household equipment and electronic equipment
CN113091244A (en) Control method and device for household appliance and equipment
CN105988841A (en) Update method of application program, and mobile terminal
CN115033352A (en) Task scheduling method, device and equipment for multi-core processor and storage medium
KR20210060213A (en) Method for preloading application and electronic device supporting the same
CN113218058B (en) Method and device for controlling air conditioner and server
CN104090747B (en) The method that Linux intelligent terminals are optimized using Real-Time Scheduling optimizer
CN113436631A (en) Voice information processing method and system and device for voice information processing
CN114740739A (en) Method, device, system and storage medium for intelligent household electrical appliance centralized control
CN105978853B (en) Session scheduling method, scheduling server and terminal
US11025077B2 (en) Charging system and method of controlling power supply to terminal
CN115220788A (en) Method and device for resolving command sequence conflict of on-orbit spacecraft
CN109764475B (en) Air treatment equipment, control method and device thereof, and computer readable storage medium
JP2002529822A5 (en)
CN114244961A (en) Robot intelligent outbound method and device, computer equipment and storage medium
CN108229776A (en) One kind is arranged an order according to class and grade method of adjustment and device

Legal Events

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