CN112147910A - Method and device for determining execution capacity, storage medium and electronic device - Google Patents

Method and device for determining execution capacity, storage medium and electronic device Download PDF

Info

Publication number
CN112147910A
CN112147910A CN202010961893.1A CN202010961893A CN112147910A CN 112147910 A CN112147910 A CN 112147910A CN 202010961893 A CN202010961893 A CN 202010961893A CN 112147910 A CN112147910 A CN 112147910A
Authority
CN
China
Prior art keywords
target
execution
target device
determining
executing
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
CN202010961893.1A
Other languages
Chinese (zh)
Other versions
CN112147910B (en
Inventor
郭盛强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010961893.1A priority Critical patent/CN112147910B/en
Publication of CN112147910A publication Critical patent/CN112147910A/en
Application granted granted Critical
Publication of CN112147910B publication Critical patent/CN112147910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention provides a method, a device, a storage medium and an electronic device for determining execution capacity, wherein the method comprises the following steps: receiving first configuration information sent by a target application, wherein the first configuration information comprises sequence information of target equipment for simulating and executing target operation; sending an interface verification instruction to a target interface of the target device based on the first configuration information to indicate the target interface to verify whether the target device has the execution capacity of executing the target operation according to the sequence information; receiving state information of the target equipment fed back by the target interface based on the interface verification instruction; the execution capability of the target device to execute the target operation is determined based on the state information. According to the method and the device, the problems that the execution capacity of the equipment cannot be determined quickly and time is wasted in the related technology are solved, the effect of quickly determining the execution capacity of the equipment is achieved, time is saved, and user experience is improved.

Description

Method and device for determining execution capacity, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for determining execution capacity, a storage medium and an electronic device.
Background
In the related art, after configuring the linkage scene, a user cannot immediately verify the actual trigger condition of the device related to the scene, and cannot check whether the scene is executed with a result desired by the user. That is, in the related art, the execution of the scene can only be realized in the forward direction, and when the user performs complex configuration, the device configured by the user performs the experiment once, and then the experiment is saved and adjusted. Because what action is executed when the scene meets the condition, the execution of the action is delayed and not triggered on the spot, so that the user can only know the actual execution result of the scene after the device in the scene actually executes once, the time is wasted, the configured scene effect cannot be immediately checked, and the unsatisfied place cannot be immediately modified. For example, when a user executes a scene, for example, when a door is locked to open the door, the corridor lamp is opened first, the living room lamp is then turned on, the main horizontal lamp is then turned on, the air conditioner is then turned on, the television is then turned on, the water heater is turned on, and after heating for 30 minutes, the water heater is turned off, and the sound box reminds that the user can take a bath. The inside relates to 8 devices, of which the door lock is the trigger condition and the remaining 7 are the execution devices. If a user wants to know whether the scene is configured correctly, the user needs to open the door once by using the door lock, then, the user needs to close the equipment one by one after the execution result of the equipment is successful.
Therefore, the related art has the problems that the execution capacity of the equipment cannot be determined quickly, and time is wasted.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining equipment execution capacity, a storage medium and an electronic device, which are used for at least solving the problems that the equipment execution capacity cannot be determined quickly and time is wasted in the related technology.
According to an embodiment of the present invention, there is provided an execution capability determination method including: receiving first configuration information sent by a target application, wherein the first configuration information comprises sequence information of target equipment for simulating and executing target operation; sending an interface verification instruction to a target interface of the target device based on the first configuration information to indicate the target interface to verify whether the target device has an execution capacity of executing the target operation according to the sequence information; receiving state information of the target equipment fed back by the target interface based on the interface verification instruction; determining, based on the state information, an execution capability of the target device to execute the target operation.
In one exemplary embodiment, determining the performance capability of the target device to perform the target operation based on the status information comprises: determining a connection state of the target device indicated by the state information; determining an execution capability of the target device to execute the target operation based on the connection status.
In one exemplary embodiment, determining the performance capability of the target device to perform the target operation based on the connection status comprises: determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal network connection; determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is offline; determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal for server connection; and under the conditions that the connection state is normal network connection, normal server connection and online, determining that the target equipment has the execution capacity of executing the target operation.
In one exemplary embodiment, after determining the performance capability of the target device to perform the target operation based on the status information, the method further comprises: feeding back a first notification message for indicating successful execution to the target application if the target device is determined to have the execution capability of executing the target operation based on the state information; and feeding back a second notification message for indicating execution failure to the target application in the case that the target device is determined not to have the execution capability of executing the target operation based on the state information.
In an exemplary embodiment, the second notification message carries reason information that the target device does not have the execution capability of executing the target operation.
According to another embodiment of the present invention, there is provided an execution capability determination apparatus including: the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving first configuration information sent by a target application, and the first configuration information comprises sequence information of simulation execution of target operation by target equipment; a sending module, configured to send an interface verification instruction to a target interface of the target device based on the first configuration information, so as to instruct the target interface to verify whether the target device has an execution capability of executing the target operation according to the sequence information; the second receiving module is used for receiving the state information of the target equipment fed back by the target interface based on the interface verification instruction; a determining module for determining an execution capability of the target device to execute the target operation based on the status information.
In one exemplary embodiment, the determining module includes: a first determination unit configured to determine a connection state of the target device indicated by the state information; a second determination unit configured to determine, based on the connection status, an execution capability of the target device to execute the target operation.
In one exemplary embodiment, the second determination unit includes: a first determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection status is a network connection abnormality; a second determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is offline; a third determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is a server connection abnormality; and the fourth determining subunit is configured to determine that the target device has an execution capability of executing the target operation when the connection state is that the network connection is normal, the server connection is normal, and the server connection is online.
In an exemplary embodiment, the implementation apparatus is further configured to, after determining, based on the status information, the execution capability of the target device to execute the target operation, feed back, to the target application, a first notification message indicating that the execution is successful, in a case where it is determined, based on the status information, that the target device has the execution capability to execute the target operation; and feeding back a second notification message for indicating execution failure to the target application in the case that the target device is determined not to have the execution capability of executing the target operation based on the state information.
In an exemplary embodiment, the second notification message carries reason information that the target device does not have the execution capability of executing the target operation.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, after the first configuration information sent by the target application is received, the interface verification instruction is sent to the target interface of the target device according to the first configuration information to indicate whether the target device has the execution capacity for executing the target operation or not through the target interface verification, the state information of the target device fed back by the target interface is received, the execution capacity for executing the target operation by the target device is determined according to the state information of the target device, and because the interface verification instruction is sent only to the target interface and the target device does not really execute the target operation, the problems that the device execution capacity cannot be determined quickly and time is wasted in the related art can be solved, the effect of quickly determining the device execution capacity is achieved, time is saved, and user experience is improved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal that performs a capability determination method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of performance capability determination according to an embodiment of the invention;
FIG. 3 is a flowchart of determining an execution capability of a target device to perform a target operation based on state information, according to an illustrative embodiment of the present invention;
FIG. 4 is a flowchart of a method of performance capability determination according to an exemplary embodiment of the present invention;
FIG. 5 is a schematic diagram of a target application display interface in accordance with an exemplary embodiment of the present invention;
FIG. 6 is a timing diagram of a method of performance determination according to an embodiment of the present invention;
fig. 7 is a block diagram of the structure of an execution capability determination apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the structure of a determination module according to an exemplary embodiment of the present invention;
fig. 9 is a schematic configuration diagram of a second determination unit according to an exemplary embodiment of the present invention;
fig. 10 is a block diagram of a configuration of an execution capability determination apparatus according to an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal 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, wherein the mobile terminal may further 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 have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for determining the execution capability in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs 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 the present embodiment, an execution capacity determining method is provided, and fig. 2 is a flowchart of an execution capacity determining method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving first configuration information sent by a target application, wherein the first configuration information comprises sequence information of target equipment for simulating execution of target operation;
step S204, an interface verification instruction is sent to a target interface of the target device based on the first configuration information to indicate the target interface to verify whether the target device has the execution capacity of executing the target operation according to the sequence information;
step S206, receiving the state information of the target device fed back by the target interface based on the interface verification instruction;
step S208, determining the execution capacity of the target device for executing the target operation based on the state information.
In the above embodiment, the target Application may be an intelligent home APP (Application), and the first configuration information may be configuration information of a scene configured by the user in the intelligent home APP, for example, when the user may configure to open a door with a door lock in the intelligent home APP, the corridor lamp is opened first, the living room lamp is then turned on, the main lying lamp is turned on again, the air conditioner is turned on again, the television is turned on again, the water heater is turned on, after heating for 30 minutes, the water heater is turned off, and the sound box reminds that a bath can be made. The inside relates to 8 devices, of which the door lock is the trigger condition and the remaining 7 are the execution devices. That is, the user determines the execution sequence of 8 devices, namely, a door lock, a corridor lamp, a hall lamp, a main lying lamp, an air conditioner, a television, a water heater and a loudspeaker box, in the configuration information. After the user configuration is completed, the configured scene may be saved. And the APP configuration page also informs the user that the scene can be tried out. If the user chooses to try out the scene, the user may click on the try out. After a user clicks trial, the APP can upload first configuration information to the server, after the server receives the first configuration information sent by the APP, an interface verification instruction can be sent to a target interface of the target device according to the first configuration information, the target interface can verify whether the target device has the capability of executing target operation according to sequence information according to the interface verification instruction, the target interface can feed back state information of the target device to the server, and the server determines the execution capability of the target device for executing the target operation according to the state information. Wherein the target operation may be a different operation when the target devices are different. For example, when the target device is a lamp, the target operation may be to control the lamp to be turned on or off, and when the target device is an air conditioner, the target operation may be to control the air conditioner to be turned on, set a mode of the air conditioner, adjust a temperature of the air conditioner, turn off the air conditioner, and the like. When the target device is a purifier, the target operation may be to control the purifier to be turned on, turned off, set a mode of the purifier, and the like. When the target device is a water heater, the target operation may be controlling the water heater to be turned on or off, setting the temperature of the water heater, or the like.
In the above embodiment, the server may issue a verification interface command for executing an instruction for linking multiple devices, and the device does not need to actually execute a target operation, and the target interface of the target device may feed back status information of the device in a departure scene. The server may determine the capability of the target device to perform the target operation based on the state information of the device.
For example, the main body of the above steps may be a server, or a background processor, and may also be a device with similar processing capability, or an apparatus integrated with at least a data processing device, where the data processing device may be a terminal such as a computer, a mobile phone, or the like.
According to the method and the device, after the first configuration information sent by the target application is received, the interface verification instruction is sent to the target interface of the target device according to the first configuration information to indicate whether the target device has the execution capacity for executing the target operation or not through the target interface verification, the state information of the target device fed back by the target interface is received, the execution capacity for executing the target operation by the target device is determined according to the state information of the target device, and because the interface verification instruction is sent only to the target interface and the target device does not really execute the target operation, the problems that the device execution capacity cannot be determined quickly and time is wasted in the related art can be solved, the effect of quickly determining the device execution capacity is achieved, time is saved, and user experience is improved.
In an exemplary embodiment, a flowchart for determining the performance capability of the target device to perform the target operation based on the status information may refer to fig. 3, where as shown in fig. 3, the flowchart includes:
step S302, determining the connection state of the target device indicated by the state information;
step S304, determining the execution capacity of the target device for executing the target operation based on the connection state.
In this embodiment, the connection state of the target device may be determined according to the state information of the target device, and the execution capability of the target device to execute the target operation may be determined according to the connection state of the device. For example, when the target device is in the connected state, the target device may be considered to have the capability of performing the target operation, and when the target device is in the offline state, the target device may be considered to have no capability of performing the target operation.
In one exemplary embodiment, determining the performance capability of the target device to perform the target operation based on the connection status comprises: determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal network connection; determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is offline; determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal for server connection; and under the conditions that the connection state is normal network connection, normal server connection and online, determining that the target equipment has the execution capacity of executing the target operation. In the present embodiment, in a case where it is determined that the connection state of the target device pair is a network abnormality, it is determined that the target device does not have the performance capability of performing the target operation, for example, when the target device is an air conditioner, and air conditioner networking fails, it is considered that the air conditioner does not have the performance capability of performing the target operation. When the target device is in an offline state, the target device is considered to have no performance capability for performing the target operation, for example, when the target operation is to switch the air conditioner to a dehumidification mode, but at this time, the air conditioner is in an offline state, for example, is turned off, and it is determined that the air conditioner has no performance capability for performing the target operation. When the target device connection server interface is abnormal, it may also be determined that the target device does not have the execution capability of executing the target operation. And when the target equipment is in the conditions of normal network connection, normal server connection and online, determining that the target equipment has the execution capacity of executing the target operation.
In an exemplary embodiment, the flow chart of the method for determining the execution capacity may refer to fig. 4, and as shown in fig. 4, after determining the execution capacity of the target device to execute the target operation based on the status information, the method further includes:
step S402, feeding back a first notification message for indicating successful execution to the target application under the condition that the target device is determined to have the execution capability of executing the target operation based on the state information;
step S404, feeding back a second notification message indicating that the execution failed to the target application when it is determined that the target device does not have the execution capability of executing the target operation based on the state information.
In this embodiment, when it is determined that the target device has the capability of performing the target operation, a first notification message may be fed back to the target application to determine that the target device is successfully performed, and when it is determined that the target device does not have the capability of performing the target operation, a second notification message may be fed back to the target application to determine that the target device is failed to perform. After receiving the execution result notification, the target application may display the execution result on a display interface of the APP. The target application display interface schematic diagram can be seen in fig. 5.
In an exemplary embodiment, the second notification message carries reason information that the target device does not have the execution capability of executing the target operation. In this embodiment, after the user completes the scene in the APP, the APP configuration page reminds the user of the scene, and the scene can be tried. If the user clicks trial, a floating layer for executing the result is provided for the user, the triggering actions of the scene equipment, such as starting up of the water heater, are displayed one by one, and the success result and the failure reason are displayed, wherein the failure reason comprises equipment offline, network abnormality, server interface abnormality, equipment command conflict and the like. The user can determine whether the execution of the scenes is performed in the self-intention sequence or not by executing the execution records displayed in the result floating layer, and can adjust the execution sequence of the equipment in the sequence scenes after the execution is finished. Meanwhile, the device can be powered on or reconfigured according to the failure reason, so that the situation that the user finds that the problem exists and cannot achieve the desired result when the user really uses the device is avoided.
The following describes a method for determining the execution capacity with reference to a specific embodiment:
fig. 6 is a timing diagram of a method for determining execution capability according to a specific embodiment of the present invention, as shown in fig. 6, when a scenario is configured, a user may be prompted to verify the scenario when the scenario is stored, after the user clicks verification, the mobile APP may send configuration information to a server, the server issues a verification interface command for executing an instruction of multiple device linkage, instead of actually issuing a trigger device, a device interface feeds back a state of the device when the scenario is triggered to the server according to the verification interface command, the server determines a capability of the device for executing a target operation according to the state information of the device, sends a virtual execution result to the APP, and the APP receives the virtual execution result and displays an execution record of the scenario on the APP. The user can adjust the scene after the execution is completed, or adjust the device according to the reason of the virtual execution failure of the device.
The configuration information of the scene may be synchronized to the server when the device saves the scene, or may be synchronized to the server after the user clicks the authentication.
In the foregoing embodiment, the user may simulate the execution process of the scene, and by calling the interface, but not triggering the device to execute, and present the execution result of the action to the user, the user can know what flow the scene is executed according to, what the trigger result is, what problems are, such as device offline, problems such as function conflicts, and the like, without really triggering the device, so that the configuration of the scene can be verified quickly at minimum cost. The user can immediately know the execution result of the scene after the scene is configured, and does not need to carry out actual operation on the equipment, so that the power is saved, the trouble of resetting the equipment is saved, and the user experience is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for determining execution capability is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram showing the structure of an execution capability determination apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus including:
a first receiving module 72, configured to receive first configuration information sent by a target application, where the first configuration information includes sequence information for a target device to simulate performing a target operation;
a sending module 74, configured to send an interface verification instruction to a target interface of the target device based on the first configuration information, so as to instruct the target interface to verify whether the target device has an execution capability of executing the target operation according to the order information;
a second receiving module 76, configured to receive the status information of the target device fed back by the target interface based on the interface verification instruction;
a determining module 78, configured to determine, based on the status information, an execution capability of the target device to execute the target operation.
In the above embodiment, the target Application may be an intelligent home APP (Application), and the first configuration information may be configuration information of a scene configured by the user in the intelligent home APP, for example, when the user may configure to open a door with a door lock in the intelligent home APP, the corridor lamp is opened first, the living room lamp is then turned on, the main lying lamp is turned on again, the air conditioner is turned on again, the television is turned on again, the water heater is turned on, after heating for 30 minutes, the water heater is turned off, and the sound box reminds that a bath can be made. The inside relates to 8 devices, of which the door lock is the trigger condition and the remaining 7 are the execution devices. That is, the user determines the execution sequence of 8 devices, namely, a door lock, a corridor lamp, a hall lamp, a main lying lamp, an air conditioner, a television, a water heater and a loudspeaker box, in the configuration information. After the user configuration is completed, the configured scene may be saved. And the APP configuration page also informs the user that the scene can be tried out. If the user chooses to try out the scene, the user may click on the try out. After a user clicks trial, the APP can upload first configuration information to the server, after the server receives the first configuration information sent by the APP, an interface verification instruction can be sent to a target interface of the target device according to the first configuration information, the target interface can verify whether the target device has the capability of executing target operation according to sequence information according to the interface verification instruction, the target interface can feed back state information of the target device to the server, and the server determines the execution capability of the target device for executing the target operation according to the state information. Wherein the target operation may be a different operation when the target devices are different. For example, when the target device is a lamp, the target operation may be to control the lamp to be turned on or off, and when the target device is an air conditioner, the target operation may be to control the air conditioner to be turned on, set a mode of the air conditioner, adjust a temperature of the air conditioner, turn off the air conditioner, and the like. When the target device is a purifier, the target operation may be to control the purifier to be turned on, turned off, set a mode of the purifier, and the like. When the target device is a water heater, the target operation may be controlling the water heater to be turned on or off, setting the temperature of the water heater, or the like.
In the above embodiment, the server may issue a verification interface command for executing an instruction for linking multiple devices, and the device does not need to actually execute a target operation, and the target interface of the target device may feed back status information of the device in a departure scene. The server may determine the capability of the target device to perform the target operation based on the state information of the device.
According to the method and the device, after the first configuration information sent by the target application is received, the interface verification instruction is sent to the target interface of the target device according to the first configuration information to indicate whether the target device has the execution capacity for executing the target operation or not through the target interface verification, the state information of the target device fed back by the target interface is received, the execution capacity for executing the target operation by the target device is determined according to the state information of the target device, and because the interface verification instruction is sent only to the target interface and the target device does not really execute the target operation, the problems that the device execution capacity cannot be determined quickly and time is wasted in the related art can be solved, the effect of quickly determining the device execution capacity is achieved, time is saved, and user experience is improved.
In an exemplary embodiment, the structure of the determining module 78 can be seen in fig. 8, as shown in fig. 8, the structure includes:
a first determining unit 82, configured to determine a connection state of the target device indicated by the state information;
a second determining unit 84, configured to determine, based on the connection status, an execution capability of the target device to execute the target operation.
In this embodiment, the connection state of the target device may be determined according to the state information of the target device, and the execution capability of the target device to execute the target operation may be determined according to the connection state of the device. For example, when the target device is in the connected state, the target device may be considered to have the capability of performing the target operation, and when the target device is in the offline state, the target device may be considered to have no capability of performing the target operation.
In an exemplary embodiment, a schematic structure diagram of the second determining unit 84 can be seen in fig. 9, as shown in fig. 9, the structure includes:
a first determining subunit 92, configured to determine that the target device does not have an execution capability of executing the target operation when the connection status is a network connection abnormality;
a second determining subunit 94, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is offline;
a third determining subunit 96, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is a server connection abnormality;
a fourth determining subunit 98, configured to determine that the target device has an execution capability of executing the target operation when the connection status is that the network connection is normal, the server connection is normal, and the server is online.
In the present embodiment, in a case where it is determined that the connection state of the target device pair is a network abnormality, it is determined that the target device does not have the performance capability of performing the target operation, for example, when the target device is an air conditioner, and air conditioner networking fails, it is considered that the air conditioner does not have the performance capability of performing the target operation. When the target device is in an offline state, the target device is considered to have no performance capability for performing the target operation, for example, when the target operation is to switch the air conditioner to a dehumidification mode, but at this time, the air conditioner is in an offline state, for example, is turned off, and it is determined that the air conditioner has no performance capability for performing the target operation. When the target device connection server interface is abnormal, it may also be determined that the target device does not have the execution capability of executing the target operation. And when the target equipment is in the conditions of normal network connection, normal server connection and online, determining that the target equipment has the execution capacity of executing the target operation.
In an exemplary embodiment, fig. 10 is a block diagram of a structure of an apparatus for determining an execution capability according to an exemplary embodiment of the present invention, as shown in fig. 10, the apparatus includes, in addition to the modules shown in fig. 7:
a first feedback module 1002, configured to, after determining, based on the state information, an execution capability of the target device to execute the target operation, if it is determined, based on the state information, that the target device has the execution capability to execute the target operation, feed back, to the target application, a first notification message indicating that the execution is successful;
a second feedback module 1004, configured to, if it is determined based on the status information that the target device does not have an execution capability to execute the target operation, feed back a second notification message indicating an execution failure to the target application.
In this embodiment, when it is determined that the target device has the capability of performing the target operation, a first notification message may be fed back to the target application to determine that the target device is successfully performed, and when it is determined that the target device does not have the capability of performing the target operation, a second notification message may be fed back to the target application to determine that the target device is failed to perform. After receiving the execution result notification, the target application may display the execution result on a display interface of the APP. The target application display interface schematic diagram can be seen in fig. 5.
In an exemplary embodiment, the second notification message carries reason information that the target device does not have the execution capability of executing the target operation. In this embodiment, after the user completes the scene in the APP, the APP configuration page reminds the user of the scene, and the scene can be tried. If the user clicks trial, a floating layer for executing the result is provided for the user, the triggering actions of the scene equipment, such as starting up of the water heater, are displayed one by one, and the success result and the failure reason are displayed, wherein the failure reason comprises equipment offline, network abnormality, server interface abnormality, equipment command conflict and the like. The user can determine whether the execution of the scenes is performed in the self-intention sequence or not by executing the execution records displayed in the result floating layer, and can adjust the execution sequence of the equipment in the sequence scenes after the execution is finished. Meanwhile, the device can be powered on or reconfigured according to the failure reason, so that the situation that the user finds that the problem exists and cannot achieve the desired result when the user really uses the device is avoided.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, 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.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the 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 various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An execution capacity determination method, comprising:
receiving first configuration information sent by a target application, wherein the first configuration information comprises sequence information of target equipment for simulating and executing target operation;
sending an interface verification instruction to a target interface of the target device based on the first configuration information to indicate the target interface to verify whether the target device has an execution capacity of executing the target operation according to the sequence information;
receiving state information of the target equipment fed back by the target interface based on the interface verification instruction;
determining, based on the state information, an execution capability of the target device to execute the target operation.
2. The method of claim 1, wherein determining the performance capability of the target device to perform the target operation based on the status information comprises:
determining a connection state of the target device indicated by the state information;
determining an execution capability of the target device to execute the target operation based on the connection status.
3. The method of claim 2, wherein determining the performance capability of the target device to perform the target operation based on the connection status comprises:
determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal network connection;
determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is offline;
determining that the target device does not have the execution capacity for executing the target operation under the condition that the connection state is abnormal for server connection;
and under the conditions that the connection state is normal network connection, normal server connection and online, determining that the target equipment has the execution capacity of executing the target operation.
4. The method of claim 1, wherein after determining the target device's performance capability to perform the target operation based on the state information, the method further comprises:
feeding back a first notification message for indicating successful execution to the target application if the target device is determined to have the execution capability of executing the target operation based on the state information;
and feeding back a second notification message for indicating execution failure to the target application in the case that the target device is determined not to have the execution capability of executing the target operation based on the state information.
5. The method according to claim 4, wherein the second notification message carries reason information that the target device does not have an execution capability of executing the target operation.
6. An execution capability determination apparatus, comprising:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving first configuration information sent by a target application, and the first configuration information comprises sequence information of simulation execution of target operation by target equipment;
a sending module, configured to send an interface verification instruction to a target interface of the target device based on the first configuration information, so as to instruct the target interface to verify whether the target device has an execution capability of executing the target operation according to the sequence information;
the second receiving module is used for receiving the state information of the target equipment fed back by the target interface based on the interface verification instruction;
a determining module for determining an execution capability of the target device to execute the target operation based on the status information.
7. The apparatus of claim 6, wherein the determining module comprises:
a first determination unit configured to determine a connection state of the target device indicated by the state information;
a second determination unit configured to determine, based on the connection status, an execution capability of the target device to execute the target operation.
8. The apparatus according to claim 7, wherein the second determining unit comprises:
a first determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection status is a network connection abnormality;
a second determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is offline;
a third determining subunit, configured to determine that the target device does not have an execution capability of executing the target operation when the connection state is a server connection abnormality;
and the fourth determining subunit is configured to determine that the target device has an execution capability of executing the target operation when the connection state is that the network connection is normal, the server connection is normal, and the server connection is online.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5.
CN202010961893.1A 2020-09-14 2020-09-14 Method and device for determining execution capacity, storage medium and electronic device Active CN112147910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010961893.1A CN112147910B (en) 2020-09-14 2020-09-14 Method and device for determining execution capacity, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010961893.1A CN112147910B (en) 2020-09-14 2020-09-14 Method and device for determining execution capacity, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112147910A true CN112147910A (en) 2020-12-29
CN112147910B CN112147910B (en) 2023-02-03

Family

ID=73893447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010961893.1A Active CN112147910B (en) 2020-09-14 2020-09-14 Method and device for determining execution capacity, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112147910B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003141234A (en) * 2001-11-06 2003-05-16 Osaka Gas Co Ltd Device, method, and program for supporting cooking and computer-readable recording medium on which cooking support program is recorded
US20050065995A1 (en) * 2003-09-23 2005-03-24 Microsoft Corporation Content and task-execution services provided through dialog-based interfaces
WO2016201790A1 (en) * 2015-06-19 2016-12-22 宇龙计算机通信科技(深圳)有限公司 Control method, apparatus, and system, and smart home control center device and terminal
CN106528289A (en) * 2015-09-15 2017-03-22 中兴通讯股份有限公司 Resource operation processing method and apparatus
US20190087293A1 (en) * 2017-09-19 2019-03-21 Samsung Electronics Co., Ltd. Device and method for providing response to device usage inquiry
CN110324216A (en) * 2019-05-23 2019-10-11 深圳绿米联创科技有限公司 Automatic configuration method, apparatus, system, server and storage medium
CN110531633A (en) * 2019-09-29 2019-12-03 青岛海尔科技有限公司 Cooperative control method and device, storage medium based on smart home operating system
US20200050156A1 (en) * 2018-08-08 2020-02-13 International Business Machines Corporation Combining home automation and uav technology
WO2020042002A1 (en) * 2018-08-29 2020-03-05 深圳市元征科技股份有限公司 Device management method, device management server and computer readable storage medium
CN111488088A (en) * 2020-04-07 2020-08-04 Oppo广东移动通信有限公司 Equipment state identification method and device and intelligent terminal
CN111650844A (en) * 2020-05-29 2020-09-11 意诺科技有限公司 Intelligent equipment control panel and control method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003141234A (en) * 2001-11-06 2003-05-16 Osaka Gas Co Ltd Device, method, and program for supporting cooking and computer-readable recording medium on which cooking support program is recorded
US20050065995A1 (en) * 2003-09-23 2005-03-24 Microsoft Corporation Content and task-execution services provided through dialog-based interfaces
WO2016201790A1 (en) * 2015-06-19 2016-12-22 宇龙计算机通信科技(深圳)有限公司 Control method, apparatus, and system, and smart home control center device and terminal
CN106528289A (en) * 2015-09-15 2017-03-22 中兴通讯股份有限公司 Resource operation processing method and apparatus
US20190087293A1 (en) * 2017-09-19 2019-03-21 Samsung Electronics Co., Ltd. Device and method for providing response to device usage inquiry
US20200050156A1 (en) * 2018-08-08 2020-02-13 International Business Machines Corporation Combining home automation and uav technology
WO2020042002A1 (en) * 2018-08-29 2020-03-05 深圳市元征科技股份有限公司 Device management method, device management server and computer readable storage medium
CN110324216A (en) * 2019-05-23 2019-10-11 深圳绿米联创科技有限公司 Automatic configuration method, apparatus, system, server and storage medium
CN110531633A (en) * 2019-09-29 2019-12-03 青岛海尔科技有限公司 Cooperative control method and device, storage medium based on smart home operating system
CN111488088A (en) * 2020-04-07 2020-08-04 Oppo广东移动通信有限公司 Equipment state identification method and device and intelligent terminal
CN111650844A (en) * 2020-05-29 2020-09-11 意诺科技有限公司 Intelligent equipment control panel and control method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史彤晖等: "基于动态家电优先级的智能家电管理控制方案", 《电测与仪表》 *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111522264B (en) Control method and device of equipment, storage medium and electronic device
US7200845B2 (en) System and method for high availability firmware load
US10972362B2 (en) Network service configuration method and network management device
CN111885144B (en) Equipment binding method and device
CN111356149A (en) Wireless network configuration method and device
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN111934956B (en) Equipment configuration method and device, storage medium and electronic device
US20180357193A1 (en) Computing device and operation method
WO2023045611A1 (en) Device control method, apparatus and system, storage medium, and electronic apparatus
CN111930020A (en) Equipment control system, method, device, terminal and readable storage medium
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
CN105792025A (en) Device information obtaining method and terminal
CN112817248B (en) Shared equipment management method and device, storage medium and electronic device
CN112147910B (en) Method and device for determining execution capacity, storage medium and electronic device
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN113434255A (en) Virtual equipment creating method and device
CN113596235B (en) Operation instruction issuing method and device, storage medium and electronic device
CN110750327A (en) Virtual network function management method and system, agent device, and storage medium
CN114296359A (en) Device control system, method, apparatus, electronic device, storage medium
CN113934524A (en) Asynchronous processing method and device of task, storage medium and electronic device
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN110908293A (en) Shared electrical appliance control method and system based on NB-IOT
CN110995838A (en) Intelligent element remote upgrading method and system based on CAN bus
CN107231244B (en) System, method and device for initializing encryption machine
CN113485135B (en) Event processing 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