CN111190353A - Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device - Google Patents

Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111190353A
CN111190353A CN201911425452.3A CN201911425452A CN111190353A CN 111190353 A CN111190353 A CN 111190353A CN 201911425452 A CN201911425452 A CN 201911425452A CN 111190353 A CN111190353 A CN 111190353A
Authority
CN
China
Prior art keywords
target
control instruction
state
target operation
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911425452.3A
Other languages
Chinese (zh)
Other versions
CN111190353B (en
Inventor
王先庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201911425452.3A priority Critical patent/CN111190353B/en
Publication of CN111190353A publication Critical patent/CN111190353A/en
Application granted granted Critical
Publication of CN111190353B publication Critical patent/CN111190353B/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
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • 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]
    • 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/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • 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 invention provides an intelligent household appliance instruction conflict processing method and device, wherein the method comprises the following steps: in the process of executing a first target operation corresponding to the remote control instruction, if a local control instruction sent by a target local object is acquired, suspending the first target operation; sending the local control instruction to the target equipment so that the target equipment executes a second target operation corresponding to the local control instruction; and restoring the first target operation executed by the target equipment under the condition that the execution of the second target operation is completed. By adopting the technical scheme, the problem that the remote control instruction and the local control instruction cannot be reasonably responded under the condition that the remote control instruction and the local control instruction are simultaneously received in the control of the intelligent household electrical appliance in the related technology is solved.

Description

Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to an intelligent household appliance instruction conflict processing method and device, a storage medium and an electronic device.
Background
Along with the development of wisdom family technique, the control mode of intelligent household electrical appliances is also diversified day by day, both can carry out local control through traditional means such as button, remote controller or intelligent means such as APP, pronunciation in the family scope, also can carry out remote control through modes such as APP outside the family scope.
In the related art, the control method of the intelligent household appliance includes:
1. the user directly operates the home appliance body (such as keys, a touch screen and the like).
2. The user controls the household appliance through the household appliance remote controller.
3. The user controls through the APP; according to the position of the user, the method can be divided into two types:
a) and (3) small circulation: the user uses the APP to carry out close range control through the home domain network within the home range;
b) and (3) large circulation: the user uses the APP to carry out remote control through the mobile internet outside the family.
4. The user controls the household appliance in a voice mode, which can be divided into direct control and indirect control
a) Directly controlling: a user directly sends a voice control instruction to a target intelligent household appliance;
b) indirect control: the user sends a voice control instruction to equipment such as the intelligent sound box/the robot, and the intelligent sound box/the robot sends a control instruction to the target household appliance.
As shown in fig. 1, a schematic diagram of a user controlling an intelligent appliance through an APP, a small loop: the APP controls the intelligent household appliances through a home intelligent gateway in a home domain network; and (3) large circulation: firstly, the APP sends a control command to a pan-tilt head through a mobile internet; and then, the cloud platform forwards the control instruction to the home intelligent gateway connected with the cloud platform through the mobile internet, so that the control of the intelligent household appliance is realized.
However, when the same intelligent household electrical appliance receives a remote control command (out of home) and a local control command (in home) at the same time in a short time, an effective solution is still lacking at present how to perform reasonable response.
In the related art, an effective technical scheme is not provided for solving the problem that a remote control instruction and a local control instruction cannot be reasonably responded under the condition that the remote control instruction and the local control instruction are simultaneously received in the control of the intelligent household electrical appliance.
Disclosure of Invention
The embodiment of the invention provides an intelligent household appliance instruction conflict processing method and device, which at least solve the problem that in the related art, in the control of intelligent household appliances, under the condition of simultaneously receiving a remote control instruction and a local control instruction, the remote control instruction and the local control instruction cannot be reasonably responded.
According to an embodiment of the present invention, a method for processing an instruction conflict of an intelligent household appliance is provided, which includes: in the process of executing a first target operation corresponding to a remote control instruction, if a local control instruction sent by a target local object is acquired, suspending the first target operation; sending the local control instruction to the target equipment so as to enable the target equipment to execute a second target operation corresponding to the local control instruction; and recovering the first target operation executed by the target device when the second target operation is executed completely.
In an embodiment of the present invention, before the resuming the first target operation executed by the target device, the method further includes: determining the current state of the target equipment; when the current state of the target device is inconsistent with a target state, controlling the target device to continue to execute the first target operation so that the current state of the target device is consistent with the target state, wherein the remote control instruction is used for instructing to set the target device to be in the target state; and controlling the target device to stop executing the first target operation when the current state of the target device is consistent with the target state.
In an embodiment of the present invention, when the second target operation is completed, before the first target operation executed by the target device is resumed, the method further includes: monitoring the running state of the target equipment under the condition that the target equipment is in a working state in the process of executing the second target operation; and under the condition that the running state indicates that the target equipment is converted into an idle state from the working state, the remote control instruction is sent to the target equipment again, so that the target equipment responds to the remote control instruction and recovers the first target operation executed by the target equipment.
In this embodiment of the present invention, before monitoring the operating state of the target device, the method further includes: sending a request instruction to a target terminal and acquiring a request result corresponding to the request instruction, wherein the request instruction is used for requesting whether the target remote object allows monitoring the running state of the target equipment; monitoring the operation state of the target equipment under the condition that the request result indicates that the operation state of the target equipment is allowed to be monitored; and under the condition that the request result indicates that the monitoring of the running state of the target equipment is not allowed, canceling the transmission of the remote control instruction to the target equipment.
In an embodiment of the present invention, when the second target operation is completed, resuming the first target operation executed by the target device includes: when the execution of the second target operation is completed, judging whether the time for completing the second target operation is before the preset time indicated by the remote control instruction or not; and if so, sending the remote control instruction to the target equipment, and recovering the first target operation executed by the target equipment.
In an embodiment of the present invention, the suspending the first target operation performed by the target device includes: and under the condition of receiving a pause instruction sent by a target terminal, pausing the first target operation executed by the target equipment according to an identifier carried in the pause instruction, wherein the equipment corresponding to the identifier is the target equipment.
According to another embodiment of the present invention, there is also provided an intelligent appliance instruction conflict processing apparatus, including: the suspension unit is used for suspending a first target operation if a local control instruction sent by a target local object is acquired in the process of executing the first target operation corresponding to the remote control instruction; a first sending unit, configured to send the local control instruction to the target device, so that the target device executes a second target operation corresponding to the local control instruction; a recovery unit, configured to recover the first target operation executed by the target device when the second target operation is completed.
In an embodiment of the present invention, the apparatus further includes: a determining unit, configured to determine a current state of the target device before the first target operation performed by the target device is resumed; a first processing unit, configured to, if the current state of the target device does not coincide with a target state, control the target device to continue to perform the first target operation so that the current state of the target device coincides with the target state, where the remote control instruction is used to instruct setting of the target device to the target state; a second processing unit, configured to control the target device to stop executing the first target operation when the current state of the target device matches the target state.
In an embodiment of the present invention, the apparatus further includes: a first monitoring unit, configured to monitor an operation state of the target device during execution of the second target operation and under a condition that the target device is in a working state before the second target operation is executed and the first target operation executed by the target device is resumed; a second sending unit, configured to, when the operating state indicates that the target device is changed from the operating state to an idle state, send the remote control instruction to the target device again, so that the target device responds to the remote control instruction and resumes the first target operation executed by the target device.
In an embodiment of the present invention, the apparatus further includes: a third processing unit, configured to send a request instruction to a target terminal before monitoring an operating state of the target device, and obtain a request result corresponding to the request instruction, where the request instruction is used to request whether the target remote object allows monitoring of the operating state of the target device; a second monitoring unit, configured to monitor an operating state of the target device when the request result indicates that monitoring of the operating state of the target device is allowed; a cancellation unit, configured to cancel sending the remote control instruction to the target device when the request result indicates that monitoring of the operating state of the target device is not allowed.
In an embodiment of the present invention, the recovery unit is further configured to, when the execution of the second target operation is completed, determine whether a time when the second target operation is completed is before a predetermined time indicated by the remote control instruction; and if so, sending the remote control instruction to the target equipment, and recovering the first target operation executed by the target equipment.
In an embodiment of the present invention, the suspension unit is further configured to suspend, when a suspension instruction sent by a target terminal is received, the first target operation executed by the target device according to an identifier carried in the suspension instruction, where a device corresponding to the identifier is the target device.
According to another embodiment of the present invention, there is also provided a computer-readable storage medium, where the storage medium includes a stored program, and the program is executed to perform any one of the above methods for processing the instruction conflict of the intelligent appliance.
According to another embodiment of the present invention, there is also provided an electronic apparatus, where the storage medium includes a stored program, and the program executes the method for processing the command conflict of the smart appliance when running.
According to the invention, in the process of executing the first target operation corresponding to the remote control instruction by the target equipment, if the local control instruction sent by the target local object is obtained, the first target operation is suspended; sending the local control instruction to the target equipment to enable the target equipment to execute a second target operation; and recovering the first target operation executed by the target device when the second target operation is executed completely. By adopting the technical scheme, the problem that the remote control instruction and the local control instruction cannot be reasonably responded under the condition that the remote control instruction and the local control instruction are simultaneously received in the control of the intelligent household electrical appliance in the related technology 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of a related art system for controlling an intelligent appliance;
fig. 2 is a block diagram of a hardware structure of a method for processing instruction conflicts of an intelligent household appliance according to an embodiment of the present invention;
fig. 3 is a flowchart (one) of an alternative intelligent appliance instruction conflict processing method according to an embodiment of the present invention;
fig. 4 is a flowchart (ii) of an alternative intelligent appliance instruction conflict processing method according to an embodiment of the present invention;
fig. 5 is a flow chart (iii) of an alternative intelligent appliance instruction conflict processing method according to an embodiment of the present invention;
fig. 6 is a block diagram of an alternative intelligent appliance instruction conflict processing apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of an alternative intelligent appliance instruction conflict processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be applied to a mobile terminal, a computer terminal or a similar operation device for execution. Fig. 2 is a block diagram of a hardware structure of an intelligent household appliance instruction conflict processing apparatus according to an embodiment of the present invention. As shown in fig. 2, the intelligent appliance instruction conflict processing apparatus 10 may include one or more processors 102 (only one is shown in fig. 2) (the processor 102 may include, but is not limited to, a processing apparatus such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the intelligent appliance instruction conflict processing apparatus may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration, and it does not limit the structure of the above-mentioned intelligent household appliance instruction conflict processing apparatus. For example, the intelligent appliance instruction conflict processing apparatus 10 may also include more or fewer components than those shown in fig. 2, or have a different configuration with equivalent functions to those shown in fig. 2 or with more functions than those shown in fig. 2.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the intelligent appliance instruction conflict processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the above-mentioned method. The memory 104 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 instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 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 transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an intelligent household appliance instruction conflict processing method operating in the intelligent household appliance instruction conflict processing apparatus is provided, and fig. 3 is a flowchart of an optional intelligent household appliance instruction conflict processing method according to an embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
step S302, in the process of executing a first target operation corresponding to the remote control instruction, if a local control instruction sent by a target local object is acquired, suspending the first target operation;
step S304, sending the local control instruction to the target device, so that the target device executes a second target operation corresponding to the local control instruction;
step S306, when the second target operation is completed, the first target operation executed by the target device is resumed.
According to the invention, in the process of executing the first target operation corresponding to the remote control instruction by the target equipment, if the local control instruction sent by the target local object is obtained, the first target operation is suspended; sending the local control instruction to the target equipment to enable the target equipment to execute a second target operation; and recovering the first target operation executed by the target device when the second target operation is executed completely. By adopting the technical scheme, the problem that the remote control instruction and the local control instruction cannot be reasonably responded under the condition that the remote control instruction and the local control instruction are simultaneously received in the control of the intelligent household electrical appliance in the related technology is solved.
Before the step S306, before the resuming the first target operation performed by the target device, the method may further include: determining the current state of the target equipment; when the current state of the target device is inconsistent with a target state, controlling the target device to continue to execute the first target operation so that the current state of the target device is consistent with the target state, wherein the remote control instruction is used for instructing to set the target device to be in the target state; and controlling the target device to stop executing the first target operation when the current state of the target device is consistent with the target state.
Optionally, when the second target operation is completed, before resuming the first target operation executed by the target device, the method may further include: monitoring the running state of the target equipment under the condition that the target equipment is in a working state in the process of executing the second target operation; and under the condition that the running state indicates that the target equipment is converted into an idle state from the working state, the remote control instruction is sent to the target equipment again, so that the target equipment responds to the remote control instruction and recovers the first target operation executed by the target equipment.
In this embodiment, the following implementation manner may be further included, before monitoring the operation state of the target device, the implementation manner may further include: sending a request instruction to a target terminal and acquiring a request result corresponding to the request instruction, wherein the request instruction is used for requesting whether the target remote object allows monitoring the running state of the target equipment; monitoring the operation state of the target equipment under the condition that the request result indicates that the operation state of the target equipment is allowed to be monitored; and under the condition that the request result indicates that the monitoring of the running state of the target equipment is not allowed, canceling the transmission of the remote control instruction to the target equipment.
In an optional embodiment, in a case that the execution of the second target operation is completed, resuming the first target operation executed by the target device includes: when the execution of the second target operation is completed, judging whether the time for completing the second target operation is before the preset time indicated by the remote control instruction or not; and if so, sending the remote control instruction to the target equipment, and recovering the first target operation executed by the target equipment.
In an embodiment of the present invention, the suspending the first target operation performed by the target device includes: and under the condition of receiving a pause instruction sent by a target terminal, pausing the first target operation executed by the target equipment according to an identifier carried in the pause instruction, wherein the equipment corresponding to the identifier is the target equipment.
The following describes a flow of the intelligent household appliance instruction conflict processing method with reference to an optional example, as shown in fig. 4, the method includes the following steps:
it should be noted that, in the smart home scenario, the smart home device control instruction issued by the user generally includes:
real-time control instruction: and immediately executing the steps after the sending, such as turning on an air conditioner, turning off light and the like.
Reservation control instruction: the control target appliance starts or ends an operation at a certain time, for example, "18 points heat bath water to 60 ℃".
Conditional trigger instructions: it is set that when a certain preset condition or conditions are satisfied, the control target household appliance performs a corresponding operation, for example, "when the PM2.5 concentration >100ug/m3, the air purifier is turned on".
The specific steps are as follows:
step S402, if a home user (corresponding to the local object) executes an operation corresponding to a remote control instruction before sending the local control instruction, firstly, the APP selects to suspend the remote operation (corresponding to the first target operation) currently executed by the target appliance (corresponding to the target device), and then the APP reports the suspended remote operation id to the cloud platform; otherwise, go directly to step S412.
Step S404, after receiving the APP report information, the cloud platform notifies a user (corresponding to the target remote object) sending a remote control instruction, and the operation is interrupted.
And S406, the home user sends a local control instruction to the target household appliance, and the target household appliance executes corresponding operation.
Step S408, after the target household appliance executes the local control instruction, the home user selects the suspended remote operation before the recovery through the APP, and the APP reports the recovered remote operation id to the cloud platform.
And step S410, after receiving the APP report information, if the current time is judged not to exceed the reservation completion time, the cloud platform sends the remote control instruction to the target household appliance again, and informs the user sending the remote control instruction that the remote operation is resumed.
And step S412, the home user sends a control instruction to the target household appliance, and the target household appliance executes corresponding operation.
Step S414, the cloud platform finds that the working state of the household appliance is changed according to the state data reported by the target household appliance, compares the remote operation target state with the current state of the household appliance, judges that the remote operation reaches a preset target if the states are consistent, and ends the remote control flow; otherwise, step S416 is executed downward.
For example, the target state of remote operation is that the water temperature is heated to 60 ℃, and if the real-time water temperature reported by the current electric water heater is 60 ℃, the flow is normally ended; and if the reported real-time water temperature is 45 ℃, continuing to execute downwards.
Step S416, the cloud platform notifies the user who sent the remote control instruction that the operation has been interrupted, and asks the user whether to end the operation. If the user selects to finish the operation, the remote control flow is finished; otherwise, the cloud platform continuously monitors whether the target appliance is in an idle state for a preset time T1.
Step S418, in T1 time, if the cloud platform finds that the target household appliance enters an idle state, the cloud platform sends a remote control instruction to the target household appliance again, and notifies a user sending the remote control instruction; and if the target household appliance is always in the working state, exiting the remote control process after the time T1 is finished.
According to the embodiment, when a home user needs to control a target household appliance in the execution process of a remote control instruction, the user is allowed to adopt a pause-resume mechanism to pause the remote operation being executed by the target household appliance and then send a local control instruction; after the local control instruction is executed, the target household appliance is controlled to resume executing the remote operation, so that when the remote control instruction and the local control instruction are issued simultaneously, the transmission of the remote control instruction and the local control instruction can be controlled in order, and the reasonability of instruction conflict processing of the intelligent household appliance is improved.
The following describes a flow of the intelligent household appliance instruction conflict processing method with reference to an optional example, as shown in fig. 5, the method includes the following steps:
step S502, the remote user (corresponding to the target remote object) sends a remote control command for controlling the intelligent home appliance.
Step S505, after receiving the remote control instruction, the cloud platform calculates a time of issuing to the target appliance (corresponding to the target device).
Step S506, after the instruction issuing moment is reached, the cloud platform inquires whether the target household appliance is in an idle state at present. If the target household appliance is idle, the cloud platform sends a control instruction to the target household appliance; otherwise, the cloud platform notifies the remote user who issued the instruction and asks the user whether to continue waiting.
Step S508, if the user selects not to wait any more, the remote control flow is ended; otherwise, the cloud platform continuously monitors whether the target appliance is idle for a preset time T0.
Step S510, in T0 time, if the cloud platform finds that the target household appliance enters an idle state, the cloud platform sends a control instruction to the target household appliance and informs a remote user sending the remote control instruction; and if the target household appliance is always in the working state, exiting the remote control process after the time T0 is finished.
Through the embodiment, when the cloud platform receives the remote control instruction for the target household appliance, the working state of the target household appliance is monitored, the remote control instruction is issued once the target household appliance turns to be idle in the preset time, the issuing time of the remote control instruction and the issuing time of the local control instruction can be controlled in order, and the reasonability of intelligent household appliance instruction conflict processing is improved.
Optionally, in the process of executing the local control instruction by the target appliance, if the cloud platform receives a remote control instruction for the target appliance, the remote control instruction may be sent according to the process of the steps S502 to S510. According to the embodiment, when the cloud platform receives the remote control instruction aiming at the target household appliance in the execution process of the local control instruction, a 'waiting-monitoring' strategy can be adopted, the remote control instruction is not sent to the target household appliance temporarily, but the working state of the target household appliance is monitored, and once the target household appliance turns to be idle in a preset time, the remote control instruction is sent to the target household appliance, so that the sending time of the remote control instruction and the sending time of the local control instruction can be controlled in order, and the reasonability of intelligent household appliance instruction conflict processing is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The present embodiment further provides an intelligent household appliance instruction conflict processing apparatus, which is applied to a distributed system, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of an alternative intelligent appliance instruction conflict processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
a suspending unit 602, configured to, in a process of executing a first target operation corresponding to a remote control instruction, suspend the first target operation if a local control instruction sent by a target local object is obtained;
a first sending unit 604, configured to send the local control instruction to the target device, so that the target device executes a second target operation corresponding to the local control instruction;
a recovering unit 606, configured to recover the first target operation executed by the target device when the second target operation is completed.
According to the invention, in the process of executing the first target operation corresponding to the remote control instruction by the target equipment, if the local control instruction sent by the target local object is obtained, the first target operation is suspended; sending the local control instruction to the target equipment to enable the target equipment to execute a second target operation; and recovering the first target operation executed by the target device when the second target operation is executed completely. By adopting the technical scheme, the problem that the remote control instruction and the local control instruction cannot be reasonably responded under the condition that the remote control instruction and the local control instruction are simultaneously received in the control of the intelligent household electrical appliance in the related technology is solved.
In the embodiment of the present invention, as shown in fig. 7, the apparatus further includes:
a determining unit 608, configured to determine a current state of the target device before the first target operation performed by the target device is resumed;
a first processing unit 610, configured to, when the current state of the target device is not consistent with a target state, control the target device to continue to perform the first target operation so that the current state of the target device is consistent with the target state, where the remote control instruction is used to instruct to set the target device to the target state;
a second processing unit 612, configured to control the target device to stop executing the first target operation when the current state of the target device matches the target state.
In the embodiment of the present invention, as shown in fig. 7, the apparatus further includes:
a first monitoring unit 614, configured to monitor an operation state of the target device during execution of the second target operation and when the target device is in a working state before the second target operation is executed and the first target operation executed by the target device is resumed;
a second sending unit 616, configured to, when the operation state indicates that the target device is turned from the operating state to an idle state, send the remote control instruction to the target device again, so that the target device responds to the remote control instruction to recover the first target operation executed by the target device.
In the embodiment of the present invention, as shown in fig. 7, the apparatus further includes:
a third processing unit 618, configured to send a request instruction to a target terminal before monitoring an operating state of the target device, and obtain a request result corresponding to the request instruction, where the request instruction is used to request whether the target remote object allows monitoring the operating state of the target device;
a second monitoring unit 620, configured to monitor an operation state of the target device when the request result indicates that monitoring of the operation state of the target device is allowed;
a canceling unit 622, configured to cancel sending the remote control instruction to the target device when the request result indicates that monitoring of the operation state of the target device is not allowed.
In an embodiment of the present invention, the recovering unit 606 is further configured to, when the execution of the second target operation is completed, determine whether a time when the second target operation is completed is before a predetermined time indicated by the remote control instruction; and if so, sending the remote control instruction to the target equipment, and recovering the first target operation executed by the target equipment.
In this embodiment of the present invention, the suspension unit 602 is further configured to suspend, when a suspension instruction sent by a target terminal is received, the first target operation executed by the target device according to an identifier carried in the suspension instruction, where a device corresponding to the identifier is the target device.
In the embodiment of the present invention, each task to be allocated in the task sets to be allocated in the distributed system is arranged in a task pool in the distributed system according to a second preset order, the current task to be allocated is any one task to be allocated in the task sets to be allocated, and the task pool is used for storing the task sets to be allocated in the distributed system.
Embodiments of the present invention also provide a computer-readable storage medium comprising a stored program, wherein the program is operable to perform any of the above-described methods.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, in the process of executing the first target operation corresponding to the remote control instruction, if the local control instruction sent by the target local object is acquired, the first target operation is suspended;
s2, sending the local control command to the target device, so that the target device executes a second target operation corresponding to the local control command;
s3, when the execution of the second target operation is completed, the first target operation executed by the target device is resumed.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, in the process of executing the first target operation corresponding to the remote control instruction, if the local control instruction sent by the target local object is acquired, the first target operation is suspended;
s2, sending the local control command to the target device, so that the target device executes a second target operation corresponding to the local control command;
s3, when the execution of the second target operation is completed, the first target operation executed by the target device is resumed.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An intelligent household appliance instruction conflict processing method is characterized by comprising the following steps:
in the process of executing a first target operation corresponding to a remote control instruction, if a local control instruction sent by a target local object is acquired, suspending the first target operation;
sending the local control instruction to the target equipment so as to enable the target equipment to execute a second target operation corresponding to the local control instruction;
and recovering the first target operation executed by the target device under the condition that the second target operation is executed completely.
2. The method of claim 1, wherein prior to the resuming the first target operation performed by the target device, the method further comprises:
determining a current state of the target device;
under the condition that the current state of the target device is inconsistent with a target state, controlling the target device to continue executing the first target operation so as to enable the current state of the target device to be consistent with the target state, wherein the remote control instruction is used for indicating that the target device is set to be in the target state;
and controlling the target device to stop executing the first target operation under the condition that the current state of the target device is consistent with the target state.
3. The method of claim 1, wherein upon completion of execution of the second target operation, prior to resuming the first target operation executed by the target device, the method further comprises:
monitoring the running state of the target equipment under the condition that the target equipment is in a working state in the second target operation execution process;
and under the condition that the running state indicates that the target equipment is converted into an idle state from the working state, the remote control instruction is sent to the target equipment again, so that the target equipment responds to the remote control instruction and recovers the first target operation executed by the target equipment.
4. The method of claim 3, wherein prior to monitoring the operational status of the target device, the method further comprises:
sending a request instruction to a target terminal, and acquiring a request result corresponding to the request instruction, wherein the request instruction is used for requesting whether the target remote object allows monitoring the running state of the target equipment;
monitoring the running state of the target equipment under the condition that the request result indicates that the running state of the target equipment is allowed to be monitored;
and under the condition that the request result indicates that the monitoring of the running state of the target equipment is not allowed, canceling the sending of the remote control instruction to the target equipment.
5. The method of any of claims 1 to 4, wherein resuming the first target operation performed by the target device upon completion of execution of the second target operation comprises:
under the condition that the execution of the second target operation is completed, judging whether the time for completing the second target operation is before the preset time indicated by the remote control instruction or not;
if yes, the remote control instruction is sent to the target device, and the first target operation executed by the target device is recovered.
6. The method of any of claims 1-4, wherein the suspending the first target operation performed by the target device comprises:
and under the condition of receiving a pause instruction sent by a target terminal, pausing the first target operation executed by the target equipment according to an identifier carried in the pause instruction, wherein the equipment corresponding to the identifier is the target equipment.
7. An intelligent household appliance instruction conflict processing device is characterized by comprising:
the system comprises a suspension unit, a remote control unit and a control unit, wherein the suspension unit is used for suspending a first target operation corresponding to a remote control instruction if the local control instruction sent by a target local object is acquired in the process of executing the first target operation;
the first sending unit is used for sending the local control instruction to the target equipment so as to enable the target equipment to execute a second target operation corresponding to the local control instruction;
a recovery unit, configured to recover the first target operation executed by the target device when execution of the second target operation is completed.
8. The apparatus of claim 6, further comprising:
a determining unit, configured to determine a current state of the target device before the resuming of the first target operation performed by the target device;
a first processing unit, configured to, when the current state of the target device is inconsistent with a target state, control the target device to continue to perform the first target operation, so that the current state of the target device is consistent with the target state, where the remote control instruction is used to instruct to set the target device to the target state;
a second processing unit, configured to control the target device to stop executing the first target operation when the current state of the target device is consistent with the target state.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN201911425452.3A 2019-12-31 2019-12-31 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device Active CN111190353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425452.3A CN111190353B (en) 2019-12-31 2019-12-31 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425452.3A CN111190353B (en) 2019-12-31 2019-12-31 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111190353A true CN111190353A (en) 2020-05-22
CN111190353B CN111190353B (en) 2022-09-06

Family

ID=70708098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425452.3A Active CN111190353B (en) 2019-12-31 2019-12-31 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111190353B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711447A (en) * 2020-12-28 2021-04-27 广东Tcl智能暖通设备有限公司 Terminal equipment control method and device, storage medium and terminal equipment
CN113827270A (en) * 2021-08-24 2021-12-24 深圳市德力凯医疗设备股份有限公司 Instruction conflict resolution method, ultrasound device, and computer-readable storage medium
CN114374681A (en) * 2021-12-09 2022-04-19 达闼机器人有限公司 Task execution method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101424424A (en) * 2007-10-30 2009-05-06 Lg电子株式会社 Air conditioner and operating method thereof
CN101453473A (en) * 2008-12-31 2009-06-10 张�林 Remote service system based on different operation systems and equipment thereof
CN105116744A (en) * 2015-07-23 2015-12-02 青岛海尔智能家电科技有限公司 Intelligent household electrical appliance control method and home gateway
CN106506290A (en) * 2016-10-31 2017-03-15 广州华凌制冷设备有限公司 A kind of method and system of many people's remote control domestic electrical equipments, air-conditioning
CN109240101A (en) * 2018-09-21 2019-01-18 深圳市华拓科技有限公司 A kind of equipment long-range control method and control system
CN110120708A (en) * 2019-05-18 2019-08-13 南京觅丹电子信息有限公司 Ensure that more people remotely operate the intelligent breaker of safety
CN110545222A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 Method and device for controlling equipment, computing equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101424424A (en) * 2007-10-30 2009-05-06 Lg电子株式会社 Air conditioner and operating method thereof
CN101453473A (en) * 2008-12-31 2009-06-10 张�林 Remote service system based on different operation systems and equipment thereof
CN105116744A (en) * 2015-07-23 2015-12-02 青岛海尔智能家电科技有限公司 Intelligent household electrical appliance control method and home gateway
CN106506290A (en) * 2016-10-31 2017-03-15 广州华凌制冷设备有限公司 A kind of method and system of many people's remote control domestic electrical equipments, air-conditioning
CN109240101A (en) * 2018-09-21 2019-01-18 深圳市华拓科技有限公司 A kind of equipment long-range control method and control system
CN110120708A (en) * 2019-05-18 2019-08-13 南京觅丹电子信息有限公司 Ensure that more people remotely operate the intelligent breaker of safety
CN110545222A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 Method and device for controlling equipment, computing equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711447A (en) * 2020-12-28 2021-04-27 广东Tcl智能暖通设备有限公司 Terminal equipment control method and device, storage medium and terminal equipment
CN112711447B (en) * 2020-12-28 2024-02-06 广东Tcl智能暖通设备有限公司 Control method and device of terminal equipment, storage medium and terminal equipment
CN113827270A (en) * 2021-08-24 2021-12-24 深圳市德力凯医疗设备股份有限公司 Instruction conflict resolution method, ultrasound device, and computer-readable storage medium
CN113827270B (en) * 2021-08-24 2024-03-12 深圳市德力凯医疗设备股份有限公司 Instruction conflict resolution method, ultrasonic device and computer readable storage medium
CN114374681A (en) * 2021-12-09 2022-04-19 达闼机器人有限公司 Task execution method, device, equipment and storage medium
CN114374681B (en) * 2021-12-09 2023-08-22 达闼机器人股份有限公司 Task execution method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111190353B (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN111143077A (en) Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
CN111190353B (en) Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
JP2019537322A (en) Network connection method for home appliances, network connection method for home appliances and home systems
CN110855536B (en) Operation control method and device, household appliance and storage medium
CN110971495B (en) Equipment binding method and device of intelligent household system and storage medium
CN106452989B (en) method and device for establishing intelligent scene
US9471053B2 (en) Notification method, notification device, notification system, storage medium, information exchange networking service providing server, and mobile terminal
CN104539504B (en) A kind of event triggering method and device
CN105577495A (en) Control method and device of smart home devices
CN109474692A (en) A kind of intelligent household appliance remote control method, apparatus and system
CN110531633B (en) Cooperative control method and device based on intelligent home operating system and storage medium
CN109714333B (en) Household appliance and management method and device of control authority of household appliance and readable storage medium
CN104765291A (en) Method, device and gateway for controlling intelligent device
CN104865834A (en) Intelligent household Internet of things control system and method
JP2010288231A (en) System and method for remotely controlling home electrical appliance
US9836958B2 (en) Device control method, server, system and computer storage medium
CN105763936A (en) Method and apparatus for playing audio
CN105706502A (en) Mobile radio communications device, network device, network system and method
CN105650809A (en) Control method for smart home equipment, equipment and system
CN104007729A (en) Broadcast control method and broadcast control device
US20160202676A1 (en) Apparatus controller and apparatus control method
CN108898816A (en) Remote controler, household electrical appliance and its state updating method and readable storage medium storing program for executing
US20130311611A1 (en) Method and device for executing a device management command based on an execution time
CN110149622B (en) Intelligent household appliance control method and device
CN110830334B (en) Household appliance control method, device, system, server and household appliance

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