CN114697150B - Command issuing method and device, storage medium and electronic device - Google Patents

Command issuing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114697150B
CN114697150B CN202210181916.6A CN202210181916A CN114697150B CN 114697150 B CN114697150 B CN 114697150B CN 202210181916 A CN202210181916 A CN 202210181916A CN 114697150 B CN114697150 B CN 114697150B
Authority
CN
China
Prior art keywords
control command
command
determining
equipment
issuing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210181916.6A
Other languages
Chinese (zh)
Other versions
CN114697150A (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 CN202210181916.6A priority Critical patent/CN114697150B/en
Publication of CN114697150A publication Critical patent/CN114697150A/en
Application granted granted Critical
Publication of CN114697150B publication Critical patent/CN114697150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • 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/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Abstract

The application discloses a command issuing method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method comprises the following steps: acquiring a combined command sent by a target object through terminal equipment, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2; acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device; determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.

Description

Command issuing method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for issuing a command, a storage medium, and an electronic device.
Background
With the progress of science and technology and the development of artificial intelligence, intelligent algorithms are increasingly applied to daily life, the intelligent development is of great importance, and the most critical problem of intelligence is that the intelligence solves the demands of users.
Taking washing machines as an example, each washing machine in the real world has an operation panel, and when a user switches modes, default values of water quantity, washing time and the like change along with the range of values, so that the user must operate the washing machine reasonably. Many apps in the field of Internet of things are developed similarly to the panel of the netware, so that users cannot send unreasonable requests, but the client without the front-end interaction page has no attribute linkage function.
In the prior art, the user request is simply split and combined. For example, the air conditioner may receive a single command (on or off) and a group command (mode + wind speed + temperature + on/off + humidity etc. parameter sets). When the user issues a start-up, cool-down, 20 degrees temperature, the requests may be consolidated into one group command issue, or one single command one group command. The free combination is based on whether the command can be in a group command or based on special requirements such as the perception of network device execution as few as possible by the user, but the temperature and the mode cannot be adjusted under the condition that the air conditioner is shut down, and the temperature cannot be adjusted under the pmv mode. I.e. the current air conditioner is off, the user request is: power on, pmv mode, temperature. Only in the order of power-on, temperature, pmv can the execution succeed, and other permutation and combination will fail.
Aiming at the problem of low success rate of sending the combined command to the equipment by the user in the related art, no effective solution has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a command issuing method and device, a storage medium and an electronic device, which are used for at least solving the problem that in the related technology, the success rate of sending a combined command to equipment by a user is low.
According to an embodiment of the present invention, there is provided a command issuing method, including: acquiring a combined command sent by a target object through terminal equipment, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2; acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device; determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.
In an exemplary embodiment, determining the order of issuing the N control commands according to the current state information of the first device and the mutex logic includes at least one of: determining a first control command executable by the first device in the current state information in the combined command; determining: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining a second control command in the combined command according to the mutual exclusion logic; and circularly executing the determining step until the issuing sequence of the N control commands is determined.
In one exemplary embodiment, determining a second control command among the combined commands according to the mutex logic determination comprises: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining whether the first device can execute a second operation to be executed corresponding to the second control command according to the mutual exclusion logic; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to send the second control command after sending the first control command.
In an exemplary embodiment, after determining, according to the mutex logic, whether the first device can execute the second operation to be executed corresponding to the second control command, the method further includes: under the condition that the first equipment can not execute the second operation to be executed corresponding to the second control command according to the mutual exclusion logic, determining whether the first equipment can execute the third operation to be executed corresponding to the third control command according to the mutual exclusion logic; and under the condition that the first equipment can execute a third operation to be executed corresponding to the third control command, determining the issuing sequence to send the third control command after sending the first control command.
In an exemplary embodiment, the determining the order of delivery is after sending the third control command after sending the first control command, the method further comprises: under the condition that the first equipment executes a third operation to be executed corresponding to the third control command, determining whether the first equipment can execute a second operation to be executed corresponding to the second control command according to the mutual exclusion logic; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to be that the third control command is sent after the first control command is sent, and sending the second control command after the third control command is sent.
In an exemplary embodiment, the method for issuing the combined command after the order adjustment according to the issuing order includes: acquiring equipment information and state information of the first equipment; converting the combined command into a control command identifiable by the first device according to the device information under the condition that the state information indicates that the first device can execute an operation to be executed; and sending a control command which can be identified by the first device to the first device according to the issuing sequence.
In one exemplary embodiment, obtaining mutually exclusive logic of the first device includes: acquiring equipment information of the first equipment; and determining mutual exclusion logic corresponding to the equipment information in the corresponding relation configured by the server.
According to another embodiment of the present invention, there is also provided a command issuing apparatus, including: the first acquisition module is used for acquiring a combined command sent by a target object through the terminal equipment, wherein the combined command is N control commands for controlling the first equipment to execute an operation to be executed, and N is an integer greater than 2; the second acquisition module is used for acquiring the current state information of the first equipment and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first equipment; and the issuing module is used for determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.
According to a further aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described command issuing method when run.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for issuing the command by using the computer program.
In the embodiment of the invention, a combined command sent by a target object through terminal equipment is obtained, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2; acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device; determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing a combined command with an adjusted sequence according to the issuing sequence; by adopting the technical scheme, the problem that the success rate of sending the combined command to the equipment by the user is low is solved, and the success rate of sending the combined command to the equipment by the user is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an interaction method of a smart device according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of issuing commands according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a method of issuing commands according to an embodiment of the present invention;
FIG. 4 is a block diagram (I) of a command issuing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram (ii) of a command issuing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, an interaction method of intelligent home equipment is provided. The interaction method of the intelligent household equipment is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home, intelligent household equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in this embodiment, the above-mentioned interaction method of the smart home device may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for issuing a command is provided and applied to the server, and fig. 2 is a flowchart of a method for issuing a command according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, a combined command sent by a target object through terminal equipment is obtained, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer larger than 2;
step S204, obtaining current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device;
step S206, determining the issuing sequence of the N control commands according to the current state information of the first device and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.
Through the steps, a combined command sent by a target object through terminal equipment is obtained, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2; acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device; determining the issuing sequence of the N control commands according to the current state information of the first device and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence, so that the problem that in the related art, the success rate of sending the combined command to the device by a user is low is solved, and the success rate of sending the combined command to the device by the user is further improved.
In an exemplary embodiment, determining the order of issuing the N control commands according to the current state information of the first device and the mutex logic includes at least one of: determining a first control command executable by the first device in the current state information in the combined command; determining: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining a second control command in the combined command according to the mutual exclusion logic; and circularly executing the determining step until the issuing sequence of the N control commands is determined.
It can be understood that the first issued control command is determined through the current state information of the first device, and in the case of determining the first control command, a second control command which can be issued is determined in the combined command through the case that the first device executes the first operation to be executed corresponding to the first control command; and under the condition that a second control command is determined, determining a third control command which can be issued in the combined command under the condition that the first equipment executes a second operation to be executed corresponding to the second control command until the issuing sequence of the N control commands is determined. For example, among the combined commands are: when the first equipment is started, the temperature is regulated, the wind speed is regulated and other commands, and under the condition that the current state information of the first equipment is shut down, the first issued control command is started; determining a second control command which can be issued after the first device is started up: regulating temperature and regulating wind speed; in the case where the second control command includes a plurality of the second control commands, the following operations need to be performed: in the case where the first device performs the operation of adjusting the temperature, determining a third control command that can be issued: adjusting the wind speed; in the case where the first device performs an operation of adjusting the wind speed, determining a third control command that can be issued: the temperature is adjusted, that is, the issuing sequence of the combined command can be: starting up, adjusting the temperature and adjusting the wind speed; the method can also be as follows: starting up, adjusting wind speed and temperature. It should be noted that, the embodiment of the present invention does not limit the combination command.
In one exemplary embodiment, determining a second control command among the combined commands according to the mutex logic determination comprises: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining whether the first device can execute a second operation to be executed corresponding to the second control command according to the mutual exclusion logic; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to send the second control command after sending the first control command.
That is, it is determined according to the mutex logic whether the first device can execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command, and the determination of the issuing order is determined as: a first control command and a second control command.
In an exemplary embodiment, after determining, according to the mutual exclusion logic, whether the first device can execute the second operation to be executed corresponding to the second control command, if it is determined, according to the mutual exclusion logic, that the first device cannot execute the second operation to be executed corresponding to the second control command, it is determined, according to the mutual exclusion logic, whether the first device can execute the third operation to be executed corresponding to the third control command; and under the condition that the first equipment can execute a third operation to be executed corresponding to the third control command, determining the issuing sequence to send the third control command after sending the first control command.
That is, when determining, according to the mutual exclusion logic, whether the first device can execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command, and when determining, according to the mutual exclusion logic, that the first device cannot execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command in the case where the second operation to be executed corresponding to the second control command cannot be executed corresponding to the second control command, determining, according to the mutual exclusion logic, whether the first device can execute the third operation to be executed corresponding to the third control command in the case where the first operation to be executed corresponding to the third control command can be executed, determining the issuing order as: the first control command and the third control command.
In an exemplary embodiment, determining, according to the mutual exclusion logic, whether the first device can execute a second operation to be executed corresponding to the second control command when the first device executes a third operation to be executed corresponding to the third control command after determining that the issuing sequence is that the third control command is transmitted after the first control command is transmitted; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to be that the third control command is sent after the first control command is sent, and sending the second control command after the third control command is sent.
That is, according to the mutex logic, it is determined whether the first device can execute the second operation to be executed corresponding to the second control command when the first device executes the third operation to be executed corresponding to the third control command, and the issuing sequence is determined as follows when the second operation to be executed corresponding to the second control command can be executed: a first control command, a third control command, a second control command.
In an exemplary embodiment, the method for issuing the combined command after the order adjustment according to the issuing order includes: acquiring equipment information and state information of the first equipment; converting the combined command into a control command identifiable by the first device according to the device information under the condition that the state information indicates that the first device can execute an operation to be executed; and sending a control command which can be identified by the first device to the first device according to the issuing sequence.
The embodiment of the invention provides a method for issuing a control command, namely, under the condition that a first device can execute an operation to be executed corresponding to a combined command, the combined command is converted into a control command which can be identified by the first device, so that the first device executes the operation to be executed according to the identified control command.
In one exemplary embodiment, obtaining mutually exclusive logic of the first device includes: acquiring equipment information of the first equipment; and determining mutual exclusion logic corresponding to the equipment information in the corresponding relation configured by the server.
In order to better understand the process of the method for issuing the command, the following describes the implementation method flow of issuing the command in combination with the alternative embodiment, but is not used for limiting the technical scheme of the embodiment of the invention.
In this embodiment, a method for issuing a command is provided, and fig. 3 is a schematic diagram of a method for issuing a command according to an embodiment of the present invention, as shown in fig. 3, specifically as follows:
user intent is resolvable into three attributes: a, b, c. In the current network device state, three attributes issue executable in what order, and whether a feasibility path exists.
If a can be issued in the current state, considering a as the current state, and judging whether b and c can be executed or not under the condition that the current state is plus the operation to be executed corresponding to the execution of a. If b is executable, adding b under the condition that the current state is plus the operation to be executed corresponding to the execution a, and calculating whether c is executable. If c is not executable and there is no brother node, the method returns to the node b, b has a brother node, if a is in the state of a, whether c is executable is judged, and the like until all the brother nodes are not executable or executable leaf nodes exist, and the corresponding sequence is a feasible path. And under the order of meeting the feasible paths, the commands are combined, so that the user expectation can be met with the minimum commands.
The embodiment of the invention finds the reasonable execution sequence of the user request based on the known mutual exclusion condition and the current state, finishes the command issuing with the minimum cost, and ensures that the command can be successfully executed.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment further provides a device for issuing a command, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 4 is a block diagram (I) of a command issuing apparatus according to an embodiment of the present invention; as shown in fig. 4, includes:
a first obtaining module 42, configured to obtain a combined command sent by a target object through a terminal device, where the combined command is N control commands for controlling the first device to execute an operation to be executed, and N is an integer greater than 2;
a second obtaining module 44, configured to obtain current state information of the first device and mutual exclusion logic, where the mutual exclusion logic is configured to indicate a mutual exclusion relationship between control commands for controlling the first device;
and the issuing module 46 is configured to determine an issuing sequence of the N control commands according to the current state information of the first device and the mutex logic, and issue the combined command after the adjustment sequence according to the issuing sequence.
Through the device, the combined command sent by the target object through the terminal equipment is obtained, wherein the combined command is N control commands for controlling the first equipment to execute the operation to be executed, and N is an integer greater than 2; acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device; determining the issuing sequence of the N control commands according to the current state information of the first device and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence, so that the problem that in the related art, the success rate of sending the combined command to the device by a user is low is solved, and the success rate of sending the combined command to the device by the user is further improved.
In an exemplary embodiment, fig. 5 is a block diagram (ii) of a command issuing apparatus according to an embodiment of the present invention; as shown in fig. 5, the apparatus further includes: a determining module 52, configured to determine a first control command executable by the first device in the current status information in the combined command; determining: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining a second control command in the combined command according to the mutual exclusion logic; and circularly executing the determining step until the issuing sequence of the N control commands is determined.
It can be understood that the first issued control command is determined through the current state information of the first device, and in the case of determining the first control command, a second control command which can be issued is determined in the combined command through the case that the first device executes the first operation to be executed corresponding to the first control command; and under the condition that a second control command is determined, determining a third control command which can be issued in the combined command under the condition that the first equipment executes a second operation to be executed corresponding to the second control command until the issuing sequence of the N control commands is determined. For example, among the combined commands are: when the first equipment is started, the temperature is regulated, the wind speed is regulated and other commands, and under the condition that the current state information of the first equipment is shut down, the first issued control command is started; determining a second control command which can be issued after the first device is started up: regulating temperature and regulating wind speed; in the case where the second control command includes a plurality of the second control commands, the following operations need to be performed: in the case where the first device performs the operation of adjusting the temperature, determining a third control command that can be issued: adjusting the wind speed; in the case where the first device performs an operation of adjusting the wind speed, determining a third control command that can be issued: the temperature is adjusted, that is, the issuing sequence of the combined command can be: starting up, adjusting the temperature and adjusting the wind speed; the method can also be as follows: starting up, adjusting wind speed and temperature. It should be noted that, the embodiment of the present invention does not limit the combination command.
In an exemplary embodiment, the determining module 52 is further configured to determine, according to the mutual exclusion logic, whether the first device can execute a second operation to be executed corresponding to the second control command, where the first device executes the first operation to be executed corresponding to the first control command; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to send the second control command after sending the first control command.
That is, it is determined according to the mutex logic whether the first device can execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command, and the determination of the issuing order is determined as: a first control command and a second control command.
In an exemplary embodiment, the determining module 52 is further configured to, when determining, according to the mutual exclusion logic, that the first device cannot execute the second operation to be executed corresponding to the second control command, determine, according to the mutual exclusion logic, whether the first device can execute the third operation to be executed corresponding to the third control command; and under the condition that the first equipment can execute a third operation to be executed corresponding to the third control command, determining the issuing sequence to send the third control command after sending the first control command.
That is, when determining, according to the mutual exclusion logic, whether the first device can execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command, and when determining, according to the mutual exclusion logic, that the first device cannot execute the second operation to be executed corresponding to the second control command in the case where the first device executes the first operation to be executed corresponding to the first control command in the case where the second operation to be executed corresponding to the second control command cannot be executed corresponding to the second control command, determining, according to the mutual exclusion logic, whether the first device can execute the third operation to be executed corresponding to the third control command in the case where the first operation to be executed corresponding to the third control command can be executed, determining the issuing order as: the first control command and the third control command.
In an exemplary embodiment, the determining module 52 is further configured to determine, according to the mutual exclusion logic, whether the first device can execute a second operation to be executed corresponding to the second control command, where the first device executes a third operation to be executed corresponding to the third control command; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to be that the third control command is sent after the first control command is sent, and sending the second control command after the third control command is sent.
That is, according to the mutex logic, it is determined whether the first device can execute the second operation to be executed corresponding to the second control command when the first device executes the third operation to be executed corresponding to the third control command, and the issuing sequence is determined as follows when the second operation to be executed corresponding to the second control command can be executed: a first control command, a third control command, a second control command.
In an exemplary embodiment, the second obtaining module 44 is further configured to obtain device information and status information of the first device; converting the combined command into a control command identifiable by the first device according to the device information under the condition that the state information indicates that the first device can execute an operation to be executed; and sending a control command which can be identified by the first device to the first device according to the issuing sequence.
The embodiment of the invention provides a method for issuing a control command, namely, under the condition that a first device can execute an operation to be executed corresponding to a combined command, the combined command is converted into a control command which can be identified by the first device, so that the first device executes the operation to be executed according to the identified control command.
In an exemplary embodiment, the second obtaining module 44 is further configured to obtain device information of the first device; and determining mutual exclusion logic corresponding to the equipment information in the corresponding relation configured by the server.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, acquiring a combined command sent by a target object through terminal equipment, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2;
s2, acquiring current state information of the first equipment and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first equipment;
s3, determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a combined command sent by a target object through terminal equipment, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2;
s2, acquiring current state information of the first equipment and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first equipment;
s3, determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing the combined command with the adjusted sequence according to the issuing sequence.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (8)

1. A method for issuing a command, comprising:
acquiring a combined command sent by a target object through terminal equipment, wherein the combined command is N control commands for controlling first equipment to execute operation to be executed, and N is an integer greater than 2;
acquiring current state information of the first device and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first device;
determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing a combined command with an adjusted sequence according to the issuing sequence;
determining the issuing sequence of the N control commands according to the current state information of the first device and the mutual exclusion logic, wherein the issuing sequence at least comprises one of the following steps: determining a first control command executable by the first device in the current state information in the combined command; determining: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining a second control command in the combined command according to the mutual exclusion logic; circularly executing the determining step until the issuing sequence of the N control commands is determined;
wherein determining a second control command from the combined commands according to the exclusive logic determination comprises:
under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining whether the first device can execute a second operation to be executed corresponding to the second control command according to the mutual exclusion logic; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to send the second control command after sending the first control command.
2. The method of claim 1, wherein after determining, according to the mutex logic, whether the first device can perform a second operation to be performed corresponding to the second control command, the method further comprises:
under the condition that the first equipment can not execute the second operation to be executed corresponding to the second control command according to the mutual exclusion logic, determining whether the first equipment can execute the third operation to be executed corresponding to the third control command according to the mutual exclusion logic;
and under the condition that the first equipment can execute a third operation to be executed corresponding to the third control command, determining the issuing sequence to send the third control command after sending the first control command.
3. The method of claim 2, wherein determining the order of delivery is after sending the third control command after sending the first control command, the method further comprising:
under the condition that the first equipment executes a third operation to be executed corresponding to the third control command, determining whether the first equipment can execute a second operation to be executed corresponding to the second control command according to the mutual exclusion logic;
and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to be that the third control command is sent after the first control command is sent, and sending the second control command after the third control command is sent.
4. The method according to claim 1, wherein issuing the combined command after the adjustment sequence according to the issuing sequence comprises:
acquiring equipment information and state information of the first equipment;
converting the combined command into a control command identifiable by the first device according to the device information under the condition that the state information indicates that the first device can execute an operation to be executed;
and sending a control command which can be identified by the first device to the first device according to the issuing sequence.
5. The method of claim 1, wherein obtaining mutually exclusive logic of the first device comprises:
acquiring equipment information of the first equipment;
and determining mutual exclusion logic corresponding to the equipment information in the corresponding relation configured by the server.
6. A command issuing apparatus, comprising:
the first acquisition module is used for acquiring a combined command sent by a target object through the terminal equipment, wherein the combined command is N control commands for controlling the first equipment to execute an operation to be executed, and N is an integer greater than 2;
the second acquisition module is used for acquiring the current state information of the first equipment and mutual exclusion logic, wherein the mutual exclusion logic is used for indicating a mutual exclusion relation between control commands for controlling the first equipment;
the issuing module is used for determining the issuing sequence of the N control commands according to the current state information of the first equipment and the mutual exclusion logic, and issuing a combined command with an adjusted sequence according to the issuing sequence; wherein the apparatus further comprises: a determining module, configured to determine a first control command executable by the first device in the current state information in the combined command; determining: under the condition that the first device executes a first operation to be executed corresponding to the first control command, determining a second control command in the combined command according to the mutual exclusion logic; circularly executing the determining step until the issuing sequence of the N control commands is determined;
the determining module is further configured to determine, according to the mutual exclusion logic, whether the first device can execute a second operation to be executed corresponding to the second control command, where the first device executes the first operation to be executed corresponding to the first control command; and under the condition that the first equipment can execute a second operation to be executed corresponding to the second control command, determining the issuing sequence to send the second control command after sending the first control command.
7. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 5 by means of the computer program.
CN202210181916.6A 2022-02-25 2022-02-25 Command issuing method and device, storage medium and electronic device Active CN114697150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210181916.6A CN114697150B (en) 2022-02-25 2022-02-25 Command issuing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210181916.6A CN114697150B (en) 2022-02-25 2022-02-25 Command issuing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114697150A CN114697150A (en) 2022-07-01
CN114697150B true CN114697150B (en) 2024-03-22

Family

ID=82137569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210181916.6A Active CN114697150B (en) 2022-02-25 2022-02-25 Command issuing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114697150B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115343984A (en) * 2022-07-29 2022-11-15 青岛海尔科技有限公司 Equipment control method, device, storage medium and electronic device
CN115834643B (en) * 2023-02-20 2023-05-02 广州机智云物联网科技有限公司 System and method for data intercommunication of Internet of things equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710304A (en) * 2015-11-20 2018-10-26 青岛海信电器股份有限公司 A kind of client operation management method and client
CN110545222A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 Method and device for controlling equipment, computing equipment and storage medium
CN110688172A (en) * 2019-09-27 2020-01-14 南京博联智能科技有限公司 Method and device for configuring device function mutual exclusion logic, electronic device and storage medium
CN111522264A (en) * 2020-04-02 2020-08-11 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic device
CN111711667A (en) * 2020-05-27 2020-09-25 威海精讯畅通电子科技有限公司 Network relay control system and method
CN112596815A (en) * 2020-12-25 2021-04-02 青岛海尔科技有限公司 Method and device for generating functional component, storage medium and electronic device
CN113485134A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic device
CN113703330A (en) * 2021-08-25 2021-11-26 珠海格力电器股份有限公司 Method, device and system for cross-platform control equipment and processor
CN114019817A (en) * 2021-11-16 2022-02-08 青岛海尔科技有限公司 Control method and control device of intelligent household equipment and Internet of things system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710304A (en) * 2015-11-20 2018-10-26 青岛海信电器股份有限公司 A kind of client operation management method and client
CN110545222A (en) * 2019-08-23 2019-12-06 珠海格力电器股份有限公司 Method and device for controlling equipment, computing equipment and storage medium
CN110688172A (en) * 2019-09-27 2020-01-14 南京博联智能科技有限公司 Method and device for configuring device function mutual exclusion logic, electronic device and storage medium
CN111522264A (en) * 2020-04-02 2020-08-11 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic device
CN111711667A (en) * 2020-05-27 2020-09-25 威海精讯畅通电子科技有限公司 Network relay control system and method
CN112596815A (en) * 2020-12-25 2021-04-02 青岛海尔科技有限公司 Method and device for generating functional component, storage medium and electronic device
CN113485134A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic device
CN113703330A (en) * 2021-08-25 2021-11-26 珠海格力电器股份有限公司 Method, device and system for cross-platform control equipment and processor
CN114019817A (en) * 2021-11-16 2022-02-08 青岛海尔科技有限公司 Control method and control device of intelligent household equipment and Internet of things system

Also Published As

Publication number Publication date
CN114697150A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
Vastardis et al. A user behaviour-driven smart-home gateway for energy management
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115296958B (en) Distribution method and device of equipment control tasks, storage medium and electronic device
CN115296946B (en) Control request decomposition method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
WO2024016506A1 (en) Gateway device control method and apparatus, and storage medium and electronic apparatus
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN116450229A (en) Pre-starting method and device of application software, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN116980439A (en) Label data adjusting method and device, storage medium and electronic device
CN116684374A (en) Gateway message processing method and device, storage medium and electronic device
CN116846936A (en) Method and device for sending control instruction, storage medium and electronic device
CN117891490A (en) Method, system, electronic equipment and storage medium for configuring components
CN117471939A (en) Equipment control method and device, storage medium and electronic device
CN117784631A (en) Method and device for sending scene execution instruction, storage medium and electronic device
CN117749550A (en) Home appliance gateway distribution method and device, storage medium and electronic device
CN115032917A (en) Device control method, storage medium, and electronic apparatus
CN116107226A (en) Method and device for controlling intelligent household equipment, medium and electronic device
CN116980403A (en) File uploading method and device, storage medium and electronic device
CN116382110A (en) Equipment scheduling method and device, storage medium and electronic device

Legal Events

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