CN113596235A - Operation instruction issuing method and device, storage medium and electronic device - Google Patents

Operation instruction issuing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113596235A
CN113596235A CN202110745512.0A CN202110745512A CN113596235A CN 113596235 A CN113596235 A CN 113596235A CN 202110745512 A CN202110745512 A CN 202110745512A CN 113596235 A CN113596235 A CN 113596235A
Authority
CN
China
Prior art keywords
execution
executed
target operation
target
trigger
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
CN202110745512.0A
Other languages
Chinese (zh)
Other versions
CN113596235B (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
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110745512.0A priority Critical patent/CN113596235B/en
Publication of CN113596235A publication Critical patent/CN113596235A/en
Application granted granted Critical
Publication of CN113596235B publication Critical patent/CN113596235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a method and a device for issuing an operation instruction, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a target operation instruction corresponding to an execution device in a target scene, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device; acquiring first state information corresponding to execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; the method comprises the steps of determining whether a target operation to be executed is consistent with a first operation executed by an execution device or not, and issuing a target operation instruction to the execution device under the condition that the target operation to be executed is inconsistent with the operation executed by the execution device, so that the problems that in the related art, the execution device is likely to make mistakes or not respond to the target operation to be executed by the execution device and the operation executed by the execution device are consistent, and a target object is considered to be the execution device or a system to be out of order, so that bad experience is caused and the like can be solved.

Description

Operation instruction issuing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to an operation instruction issuing method and device, a storage medium and an electronic device.
Background
With the increasing number of intelligent devices, intelligent household products facing users are more and more common, and convenience brought to the users is obvious.
Because the number of intelligent devices in a user home is increasing, a user can create different scenes on a mobile terminal to realize intelligent control on the intelligent devices, and under the condition of starting a target scene, operation commands for executing devices in the target scene are obtained to issue the operation commands to the executing devices, each operation command is issued to the executing devices strictly according to configured steps, if the executing devices already indicate that the executing devices execute the operation commands in the current state, the executing devices can make mistakes or not respond very possibly, and further, a target object is considered as the executing device or a system to be in fault.
In the related art, when a target operation to be executed by an execution device is consistent with an operation executed by the execution device, the execution device is likely to make a mistake or not respond, and further a target object is considered as an execution device or a system to be out of order, so that poor experience and other problems are caused.
Disclosure of Invention
The embodiment of the invention provides an issuing method and device of an operation instruction, a storage medium and an electronic device, which are used for solving the problems that in the related art, when target operation to be executed by an execution device is consistent with operation executed by the execution device, the execution device is likely to make mistakes or not respond, and further a target object is considered as an execution device or a system is failed, so that bad experience is caused and the like.
According to an embodiment of the present invention, a method for issuing an operation instruction is provided, including: acquiring a target operation instruction corresponding to an execution device in a target scene, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device; acquiring first state information corresponding to the execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; and determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
In an exemplary embodiment, obtaining a target operation instruction corresponding to an execution device in a target scene includes: acquiring second state information of trigger equipment, wherein the second state information is used for indicating the state of the trigger equipment, and linkage relation is formed between the trigger equipment and the execution equipment; determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment; and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
In an exemplary embodiment, after the second state information of the trigger device reaches the trigger state, the method further includes: under the condition that the second state information of the trigger equipment is determined not to reach the trigger state, judging whether the second state information of the trigger equipment is updated or not; in a case where it is determined that the second state information has been updated to third state information, the third state information is acquired, and it is determined whether the third state information of the trigger device reaches the trigger state.
In an exemplary embodiment, after determining whether the target operation to be executed is consistent with the operation executed by the executing device, the method further includes: under the condition that the target operation to be executed is determined to be consistent with the operation executed by the execution equipment, returning first prompt information to the target object, wherein the first prompt information is used for indicating at least one of the following: the target operation to be executed is consistent with the operation executed by the execution equipment; and the executing equipment already executes the target operation corresponding to the target operation instruction.
In an exemplary embodiment, in a case that the target operation to be executed is inconsistent with an operation already executed by an execution device, after issuing the target operation instruction to the execution device, the method further includes: acquiring an execution result of the execution equipment on a target operation instruction, wherein the execution result at least comprises one of the following: the execution is successful, and the execution is failed; and sending second prompt information to the target object to remind the target object that the execution equipment does not execute the target operation corresponding to the target operation instruction successfully under the condition that the execution result indicates that the execution of the target operation instruction fails.
In an exemplary embodiment, in a case that the execution result indicates that the execution of the target operation fails, after sending the second prompt information to the target object, the method includes at least one of: under the condition that the number of times of sending target operation instructions to the execution equipment reaches a preset threshold value, stopping sending the target operation instructions to the execution equipment, wherein the target operation instructions are used for indicating target operations to be executed by the execution equipment; stopping sending the target operation instruction to the execution device if it is determined that the execution result indicates that the execution of the target operation fails; and sending the reason of the execution failure to the target object.
According to another embodiment of the present invention, there is provided an apparatus for issuing an operation instruction, including: the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target operation instruction corresponding to an execution device in a target scene, and the target operation instruction is used for indicating a target operation to be executed by the execution device; a second obtaining module, configured to obtain first state information corresponding to the execution device, where the first state information is used to indicate a first operation that has been executed by the execution device; and the issuing module is used for determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment or not, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
In an exemplary embodiment, the second acquiring module is further configured to acquire second state information of a triggering device, where the second state information is used to indicate a state of the triggering device, and the triggering device and the executing device have an interlocking relationship; determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment; and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, where the computer program is configured to execute the issuing method of the operation instruction when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for issuing the operation instruction through the computer program.
In the embodiment of the invention, a target operation instruction corresponding to an execution device in a target scene is obtained, wherein the target operation instruction is used for indicating the target operation to be executed by the execution device; acquiring first state information corresponding to execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; whether a target operation to be executed is consistent with a first operation executed by an execution device or not is determined, a target operation instruction is issued to the execution device under the condition that the target operation to be executed is inconsistent with the operation executed by the execution device, namely, whether the target operation to be executed corresponding to the target operation instruction is consistent with the first operation executed by the execution device or not is determined before the target operation instruction is issued to the execution device, and the operation instruction is issued to the execution device under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device in the relevant technology, so that the problems that the execution device possibly makes mistakes or does not respond under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device, the target object is considered as the execution device or a system to be out of order, bad experience and the like are caused can be accurately and effectively issued, and the operation efficiency of a scene is improved, unnecessary operation instruction issuing is reduced, the execution success rate of the target scene is improved, and the user satisfaction is improved.
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 block diagram of a hardware structure of a mobile terminal of an operation instruction issuing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for issuing an operation instruction according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a method for issuing an operation instruction according to an embodiment of the present invention;
fig. 4 is a block diagram (i) of a device for issuing an operation instruction according to an embodiment of the present invention;
fig. 5 is a block diagram (a) of a device for issuing an operation instruction according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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 sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a computer terminal, a mobile terminal or a similar operation device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of an operation instruction issuing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, which in an exemplary embodiment may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or may have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the issuing method of the operation instruction 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 method described above. 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 examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over 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. 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, a method for issuing an operation instruction is provided, which is applied to the mobile terminal, and fig. 2 is a flowchart of the method for issuing an operation instruction according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, a target operation instruction corresponding to an execution device in a target scene is obtained, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device;
step S204, acquiring first state information corresponding to the execution device, wherein the first state information is used for indicating a first operation executed by the execution device;
step S206, determining whether the target operation to be executed is consistent with the first operation executed by the execution device, and issuing the target operation instruction to the execution device when the target operation to be executed is inconsistent with the operation executed by the execution device.
In the embodiment of the invention, a target operation instruction corresponding to an execution device in a target scene is obtained, wherein the target operation instruction is used for indicating the target operation to be executed by the execution device; acquiring first state information corresponding to execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; whether a target operation to be executed is consistent with a first operation executed by an execution device or not is determined, a target operation instruction is issued to the execution device under the condition that the target operation to be executed is inconsistent with the operation executed by the execution device, namely, whether the target operation to be executed corresponding to the target operation instruction is consistent with the first operation executed by the execution device or not is determined before the target operation instruction is issued to the execution device, and the operation instruction is issued to the execution device under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device in the relevant technology, so that the problems that the execution device possibly makes mistakes or does not respond under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device, the target object is considered as the execution device or a system to be out of order, bad experience and the like are caused can be accurately and effectively issued, and the operation efficiency of a scene is improved, unnecessary operation instruction issuing is reduced, the execution success rate of the target scene is improved, and the user satisfaction is improved.
In an exemplary embodiment, obtaining a target operation instruction corresponding to an execution device in a target scene includes: acquiring second state information of trigger equipment, wherein the second state information is used for indicating the state of the trigger equipment, and linkage relation is formed between the trigger equipment and the execution equipment; determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment; and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
In other words, before the target operation instruction corresponding to the execution device in the target scene is obtained, the state of the trigger device and the state that the trigger device needs to reach in the target scene are obtained, and when it is determined that the state of the trigger device reaches the trigger state, the target operation instruction corresponding to the execution device in the target scene is obtained.
For example, when the target scene indicates that the door is closed and the scene of the sweeping robot is opened, the triggering device is the door, the triggering state of the triggering device is the closed door, the execution device is the sweeping robot, the target operation instruction is the opening of the sweeping robot, and when the closing state of the door is determined to be consistent with the triggering state, the target operation instruction of the sweeping robot is obtained so as to open the sweeping robot.
The method comprises the steps that the temperature of an air conditioner is adjusted to 25 ℃ in a target scene, when the air conditioner detects that the indoor temperature reaches 25 ℃, the temperature of the air conditioner is adjusted to 23 ℃, a trigger device is the air conditioner, an execution device is the air conditioner, the trigger state of the trigger device is that the indoor temperature reaches 25 ℃, a target operation instruction is that the temperature of the air conditioner is adjusted to 23 ℃, and when the indoor temperature is determined to reach 25 ℃, the target operation instruction for adjusting the temperature of the air conditioner to 25 ℃ is obtained, so that the temperature of the air conditioner is 25 ℃.
In an exemplary embodiment, after determining whether the second state information of the trigger device does not reach the trigger state according to whether the second state information of the trigger device reaches the trigger state, determining whether the second state information of the trigger device has been updated; in a case where it is determined that the second state information has been updated to third state information, the third state information is acquired, and it is determined whether the third state information of the trigger device reaches the trigger state.
That is to say, in the case that the second state information of the trigger device does not reach the trigger state, the third state information of the trigger device is obtained in real time, whether the third state information is consistent with the second state information is determined, in the case that the third state information is inconsistent with the second state information, the second state information is determined to have been successfully updated, and whether the third state information reaches the trigger condition is determined, in the case that the third state information of the trigger device reaches the trigger state, the target operation instruction of the execution device is obtained, in the case that the third state information of the trigger device does not reach the trigger state, the fourth state information of the trigger device is obtained in real time, whether the fourth state information is consistent with the third state information is determined, and so on until the target operation instruction of the execution device is obtained.
In an exemplary embodiment, after determining whether the target operation to be executed is consistent with the operation already executed by the execution device, in the case that it is determined that the target operation to be executed is consistent with the operation already executed by the execution device, returning first prompt information to the target object, where the first prompt information is used to indicate at least one of the following: the target operation to be executed is consistent with the operation executed by the execution equipment; and the executing equipment already executes the target operation corresponding to the target operation instruction.
For example, the target operation instruction is to turn on the treadmill, and when the operation of the card is obtained, it is determined that the operation to be executed of the execution device in the target operation instruction is consistent with the executed operation of the execution device, so that a first prompt message is returned to the target object to prompt that the treadmill has executed the turn-on operation, and/or the turn-on operation executed by the treadmill is consistent with the turn-on operation in the target operation instruction.
In an exemplary embodiment, when the target operation to be executed is inconsistent with the operation executed by the execution device, after issuing the target operation instruction to the execution device, an execution result of the execution device for the target operation instruction is obtained, where the execution result at least includes one of: the execution is successful, and the execution is failed; and sending second prompt information to the target object to remind the target object that the execution equipment does not execute the target operation corresponding to the target operation instruction successfully under the condition that the execution result indicates that the execution of the target operation instruction fails.
The method comprises the steps that when an executing device executes an operation to be executed of a target operation instruction, an execution result of the operation to be executed of the target operation instruction executed by the executing device is obtained, and when the execution result indicates that the executing device fails to execute, a target object executing device is prompted to not execute the target operation corresponding to the target operation instruction successfully or the executing device does not execute the target operation corresponding to the target operation instruction.
In an exemplary embodiment, in a case that the execution result indicates that the execution of the target operation fails, after sending the second hint information to the target object: under the condition that the number of times of sending target operation instructions to the execution equipment reaches a preset threshold value, stopping sending the target operation instructions to the execution equipment, wherein the target operation instructions are used for indicating target operations to be executed by the execution equipment; stopping sending the target operation instruction to the execution device if it is determined that the execution result indicates that the execution of the target operation fails; and sending the reason of the execution failure to the target object.
That is to say, when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the target operation instruction is continuously sent to the execution device, and when the number of times of sending the target instruction to the execution device reaches a preset threshold value, the target instruction is stopped being sent, or when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the target instruction is immediately stopped being sent to the execution device, or when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the reason why the execution device does not execute the target operation corresponding to the target operation instruction successfully is sent to the target object.
In order to better understand the process of the issuing method of the operation instruction, the following describes a flow of the issuing implementation method of the operation instruction with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
As shown in fig. 3, fig. 3 is a schematic diagram of an issuing method of an operation instruction according to an embodiment of the present invention, and the specific steps are as follows:
step S301: starting a target scene;
step S302: acquiring state information (equivalent to the second state information in the above embodiment) of the trigger device;
step S303: determining whether the state information of the trigger device reaches a trigger condition (equivalent to the trigger state in the above-described embodiment);
step S304: when the state information of the trigger device does not reach the trigger condition, waiting for the state information of the trigger device to be updated to the second state information (equivalent to the third state information in the above embodiment);
step S305: acquiring current attribute information (equivalent to first state information in the above embodiment) and a control request (equivalent to a target operation instruction in the above embodiment) of an execution device in a case where state information of a trigger device reaches a trigger condition;
step S306: judging whether the current attribute information of the execution device is consistent with the control request, if so, executing step S309, and if not, executing step S307;
step S307: issuing a control request;
step S308: judging whether the execution equipment executes the execution operation in the successful control instruction or not;
step S309: returning a success identifier under the condition that the execution equipment executes the execution operation in the success control instruction;
step S310: in the case where the execution device executes the execution operation in the failure control instruction, failure information is returned.
In the embodiment of the invention, a target operation instruction corresponding to an execution device in a target scene is obtained, wherein the target operation instruction is used for indicating the target operation to be executed by the execution device; acquiring first state information corresponding to execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; whether a target operation to be executed is consistent with a first operation executed by an execution device or not is determined, a target operation instruction is issued to the execution device under the condition that the target operation to be executed is inconsistent with the operation executed by the execution device, namely, whether the target operation to be executed corresponding to the target operation instruction is consistent with the first operation executed by the execution device or not is determined before the target operation instruction is issued to the execution device, and the operation instruction is issued to the execution device under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device in the relevant technology, so that the problems that the execution device possibly makes mistakes or does not respond under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device, the target object is considered as the execution device or a system to be out of order, bad experience and the like are caused can be accurately and effectively issued, and the operation efficiency of a scene is improved, unnecessary operation instruction issuing is reduced, the execution success rate of the target scene is improved, and the user satisfaction 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 (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Fig. 4 is a block diagram (i) of a device for issuing an operation instruction according to an embodiment of the present invention; as shown in fig. 4, includes:
a first obtaining module 42, configured to obtain a target operation instruction corresponding to an execution device in a target scene, where the target operation instruction is used to indicate a target operation to be executed by the execution device;
a second obtaining module 44, configured to obtain first state information corresponding to the execution device, where the first state information is used to indicate a first operation that has been executed by the execution device;
the issuing module 46 is configured to determine whether the target operation to be executed is consistent with the first operation executed by the execution device, and issue the target operation instruction to the execution device when the target operation to be executed is inconsistent with the operation executed by the execution device.
In the embodiment of the invention, a target operation instruction corresponding to an execution device in a target scene is obtained, wherein the target operation instruction is used for indicating the target operation to be executed by the execution device; acquiring first state information corresponding to execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment; whether a target operation to be executed is consistent with a first operation executed by an execution device or not is determined, a target operation instruction is issued to the execution device under the condition that the target operation to be executed is inconsistent with the operation executed by the execution device, namely, whether the target operation to be executed corresponding to the target operation instruction is consistent with the first operation executed by the execution device or not is determined before the target operation instruction is issued to the execution device, and the operation instruction is issued to the execution device under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device in the relevant technology, so that the problems that the execution device possibly makes mistakes or does not respond under the condition that the target operation to be executed by the execution device is consistent with the operation executed by the execution device, the target object is considered as the execution device or a system to be out of order, bad experience and the like are caused can be accurately and effectively issued, and the operation efficiency of a scene is improved, unnecessary operation instruction issuing is reduced, the execution success rate of the target scene is improved, and the user satisfaction is improved.
In an exemplary embodiment, the second acquiring module is further configured to acquire second state information of a triggering device, where the second state information is used to indicate a state of the triggering device, and the triggering device and the executing device have an interlocking relationship; determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment; and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
In other words, before the target operation instruction corresponding to the execution device in the target scene is obtained, the state of the trigger device and the state that the trigger device needs to reach in the target scene are obtained, and when it is determined that the state of the trigger device reaches the trigger state, the target operation instruction corresponding to the execution device in the target scene is obtained.
For example, when the target scene indicates that the door is closed and the scene of the sweeping robot is opened, the triggering device is the door, the triggering state of the triggering device is the closed door, the execution device is the sweeping robot, the target operation instruction is the opening of the sweeping robot, and when the closing state of the door is determined to be consistent with the triggering state, the target operation instruction of the sweeping robot is obtained so as to open the sweeping robot.
The method comprises the steps that the temperature of an air conditioner is adjusted to 25 ℃ in a target scene, when the air conditioner detects that the indoor temperature reaches 25 ℃, the temperature of the air conditioner is adjusted to 23 ℃, a trigger device is the air conditioner, an execution device is the air conditioner, the trigger state of the trigger device is that the indoor temperature reaches 25 ℃, a target operation instruction is that the temperature of the air conditioner is adjusted to 23 ℃, and when the indoor temperature is determined to reach 25 ℃, the target operation instruction for adjusting the temperature of the air conditioner to 25 ℃ is obtained, so that the temperature of the air conditioner is 25 ℃.
In an exemplary embodiment, fig. 5 is a block diagram of a structure of an apparatus for issuing an operation instruction according to an embodiment of the present invention (ii); as shown in fig. 5, includes: a determining module 52, configured to, in a case that it is determined that the second state information of the triggering device does not reach the triggering state, determine whether the second state information of the triggering device has been updated; in a case where it is determined that the second state information has been updated to third state information, the third state information is acquired, and it is determined whether the third state information of the trigger device reaches the trigger state.
That is to say, in the case that the second state information of the trigger device does not reach the trigger state, the third state information of the trigger device is obtained in real time, whether the third state information is consistent with the second state information is determined, in the case that the third state information is inconsistent with the second state information, the second state information is determined to have been successfully updated, and whether the third state information reaches the trigger condition is determined, in the case that the third state information of the trigger device reaches the trigger state, the target operation instruction of the execution device is obtained, in the case that the third state information of the trigger device does not reach the trigger state, the fourth state information of the trigger device is obtained in real time, whether the fourth state information is consistent with the third state information is determined, and so on until the target operation instruction of the execution device is obtained.
In an exemplary embodiment, after determining whether the target operation to be executed is consistent with the operation already executed by the execution device, the determining module is further configured to return first prompt information to the target object when determining that the target operation to be executed is consistent with the operation already executed by the execution device, where the first prompt information is used to indicate at least one of: the target operation to be executed is consistent with the operation executed by the execution equipment; and the executing equipment already executes the target operation corresponding to the target operation instruction.
For example, the target operation instruction is to turn on the treadmill, and when the operation of the card is obtained, it is determined that the operation to be executed of the execution device in the target operation instruction is consistent with the executed operation of the execution device, so that a first prompt message is returned to the target object to prompt that the treadmill has executed the turn-on operation, and/or the turn-on operation executed by the treadmill is consistent with the turn-on operation in the target operation instruction.
In an exemplary embodiment, in a case that the target operation to be executed is inconsistent with an operation already executed by an execution device, after issuing the target operation instruction to the execution device, the first obtaining module is further configured to obtain an execution result of the execution device for the target operation instruction, where the execution result at least includes one of: the execution is successful, and the execution is failed; and sending second prompt information to the target object to remind the target object that the execution equipment does not execute the target operation corresponding to the target operation instruction successfully under the condition that the execution result indicates that the execution of the target operation instruction fails.
The method comprises the steps that when an executing device executes an operation to be executed of a target operation instruction, an execution result of the operation to be executed of the target operation instruction executed by the executing device is obtained, and when the execution result indicates that the executing device fails to execute, a target object executing device is prompted to not execute the target operation corresponding to the target operation instruction successfully or the executing device does not execute the target operation corresponding to the target operation instruction.
In an exemplary embodiment, in a case that the execution result indicates that the execution of the target operation fails, the apparatus further includes: a sending module 54, configured to, after sending the second prompt message to the target object: under the condition that the number of times of sending target operation instructions to the execution equipment reaches a preset threshold value, stopping sending the target operation instructions to the execution equipment, wherein the target operation instructions are used for indicating target operations to be executed by the execution equipment; stopping sending the target operation instruction to the execution device if it is determined that the execution result indicates that the execution of the target operation fails; and sending the reason of the execution failure to the target object.
That is to say, when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the target operation instruction is continuously sent to the execution device, and when the number of times of sending the target instruction to the execution device reaches a preset threshold value, the target instruction is stopped being sent, or when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the target instruction is immediately stopped being sent to the execution device, or when the execution device does not execute the target operation corresponding to the target operation instruction successfully, the reason why the execution device does not execute the target operation corresponding to the target operation instruction successfully is sent to the target object.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, acquiring a target operation instruction corresponding to an execution device in a target scene, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device;
s2, acquiring first status information corresponding to the execution device, where the first status information is used to indicate a first operation executed by the execution device;
and S3, determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
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, acquiring a target operation instruction corresponding to an execution device in a target scene, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device;
s2, acquiring first status information corresponding to the execution device, where the first status information is used to indicate a first operation executed by the execution device;
and S3, determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
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.
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. A method for issuing an operation instruction is characterized by comprising the following steps:
acquiring a target operation instruction corresponding to an execution device in a target scene, wherein the target operation instruction is used for indicating a target operation to be executed by the execution device;
acquiring first state information corresponding to the execution equipment, wherein the first state information is used for indicating a first operation executed by the execution equipment;
and determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
2. The method for issuing the operation instruction according to claim 1, wherein obtaining the target operation instruction corresponding to the execution device in the target scene includes:
acquiring second state information of trigger equipment, wherein the second state information is used for indicating the state of the trigger equipment, and linkage relation is formed between the trigger equipment and the execution equipment;
determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment;
and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
3. The method according to claim 2, wherein after the second status information of the trigger device reaches the trigger status, the method further comprises:
under the condition that the second state information of the trigger equipment is determined not to reach the trigger state, judging whether the second state information of the trigger equipment is updated or not;
in a case where it is determined that the second state information has been updated to third state information, the third state information is acquired, and it is determined whether the third state information of the trigger device reaches the trigger state.
4. The method according to claim 1, wherein after determining whether the target operation to be executed is consistent with the operation executed by the execution device, the method further comprises:
under the condition that the target operation to be executed is determined to be consistent with the operation executed by the execution equipment, returning first prompt information to the target object, wherein the first prompt information is used for indicating at least one of the following: the target operation to be executed is consistent with the operation executed by the execution equipment; and the executing equipment already executes the target operation corresponding to the target operation instruction.
5. The method according to claim 1, wherein in a case that the target operation to be executed is inconsistent with the operation executed by the execution device, after issuing the target operation instruction to the execution device, the method further comprises:
acquiring an execution result of the execution equipment on a target operation instruction, wherein the execution result at least comprises one of the following: the execution is successful, and the execution is failed;
and sending second prompt information to the target object to remind the target object that the execution equipment does not execute the target operation corresponding to the target operation instruction successfully under the condition that the execution result indicates that the execution of the target operation instruction fails.
6. The method according to claim 5, wherein in a case that the execution result indicates that the target operation fails to be executed, after sending second hint information to the target object, the method includes at least one of:
under the condition that the number of times of sending target operation instructions to the execution equipment reaches a preset threshold value, stopping sending the target operation instructions to the execution equipment, wherein the target operation instructions are used for indicating target operations to be executed by the execution equipment;
stopping sending the target operation instruction to the execution device if it is determined that the execution result indicates that the execution of the target operation fails;
and sending the reason of the execution failure to the target object.
7. An issuing device of an operation instruction is characterized by comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target operation instruction corresponding to an execution device in a target scene, and the target operation instruction is used for indicating a target operation to be executed by the execution device;
a second obtaining module, configured to obtain first state information corresponding to the execution device, where the first state information is used to indicate a first operation that has been executed by the execution device;
and the issuing module is used for determining whether the target operation to be executed is consistent with the first operation executed by the execution equipment or not, and issuing the target operation instruction to the execution equipment under the condition that the target operation to be executed is inconsistent with the operation executed by the execution equipment.
8. The apparatus according to claim 7, wherein the apparatus comprises:
the second acquiring module is further used for acquiring second state information of the triggering device, wherein the second state information is used for indicating the state of the triggering device, and the triggering device and the executing device have a linkage relation; determining whether second state information of the trigger equipment reaches a trigger state, wherein the trigger state is used for indicating a state which needs to be reached by the trigger equipment; and acquiring a target operation instruction corresponding to the execution device in a target scene under the condition that the second state information of the trigger device reaches a trigger state.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202110745512.0A 2021-06-30 2021-06-30 Operation instruction issuing method and device, storage medium and electronic device Active CN113596235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110745512.0A CN113596235B (en) 2021-06-30 2021-06-30 Operation instruction issuing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110745512.0A CN113596235B (en) 2021-06-30 2021-06-30 Operation instruction issuing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113596235A true CN113596235A (en) 2021-11-02
CN113596235B CN113596235B (en) 2023-02-03

Family

ID=78245412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110745512.0A Active CN113596235B (en) 2021-06-30 2021-06-30 Operation instruction issuing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113596235B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785838A (en) * 2022-03-30 2022-07-22 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171911A (en) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 The control method and device of intelligent home device
CN107770371A (en) * 2017-09-29 2018-03-06 联想(北京)有限公司 Information cuing method, electronic equipment and the network equipment
CN111143077A (en) * 2019-12-31 2020-05-12 青岛海尔科技有限公司 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
CN111371536A (en) * 2018-12-25 2020-07-03 中移(杭州)信息技术有限公司 Control instruction sending method and device
WO2020168571A1 (en) * 2019-02-22 2020-08-27 深圳市欢太科技有限公司 Device control method, apparatus, system, electronic device and cloud server
CN112672440A (en) * 2020-12-18 2021-04-16 中兴通讯股份有限公司 Instruction execution method, system, network device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171911A (en) * 2017-06-29 2017-09-15 青岛海信智慧家居系统股份有限公司 The control method and device of intelligent home device
CN107770371A (en) * 2017-09-29 2018-03-06 联想(北京)有限公司 Information cuing method, electronic equipment and the network equipment
CN111371536A (en) * 2018-12-25 2020-07-03 中移(杭州)信息技术有限公司 Control instruction sending method and device
WO2020168571A1 (en) * 2019-02-22 2020-08-27 深圳市欢太科技有限公司 Device control method, apparatus, system, electronic device and cloud server
CN111143077A (en) * 2019-12-31 2020-05-12 青岛海尔科技有限公司 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
CN112672440A (en) * 2020-12-18 2021-04-16 中兴通讯股份有限公司 Instruction execution method, system, network device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785838A (en) * 2022-03-30 2022-07-22 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic apparatus
CN114785838B (en) * 2022-03-30 2024-01-26 青岛海尔科技有限公司 Control method and device of equipment, storage medium and electronic device

Also Published As

Publication number Publication date
CN113596235B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN111143061B (en) Multi-device linkage control method, device and storage medium
JP2019537322A (en) Network connection method for home appliances, network connection method for home appliances and home systems
CN105334809B (en) A kind of autocontrol method and device
CN112351471B (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN109561002B (en) Voice control method and device for household electrical appliance
CN112737845A (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN113498594A (en) Control method and device of intelligent household system, electronic equipment and storage medium
CN113596235B (en) Operation instruction issuing method and device, storage medium and electronic device
CN112637931A (en) Method and device for establishing network connection
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN110880994A (en) Control method and control equipment of household appliance
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN113434422A (en) Virtual device debugging method and device and virtual device debugging system
CN116068907A (en) Equipment operation testing method and device, storage medium and electronic device
CN112420019B (en) Equipment testing method and device
CN113934524A (en) Asynchronous processing method and device of task, storage medium and electronic device
CN113596938A (en) Network switching method and device of mobile terminal, storage medium and electronic device
CN112147910B (en) Method and device for determining execution capacity, storage medium and electronic device
CN108931923A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN114124681B (en) Binding information sending method and device, storage medium and electronic device
CN110928300A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN113325745B (en) Equipment control method, terminal, storage medium and electronic device
CN116257234A (en) Method and device for generating equipment control application, storage medium and electronic device
CN114280948B (en) Equipment operation method and device, storage medium and electronic device
CN113438711B (en) Wi-Fi connection control method 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