CN111522264A - Device control method and device, storage medium, and electronic device - Google Patents

Device control method and device, storage medium, and electronic device Download PDF

Info

Publication number
CN111522264A
CN111522264A CN202010256739.4A CN202010256739A CN111522264A CN 111522264 A CN111522264 A CN 111522264A CN 202010256739 A CN202010256739 A CN 202010256739A CN 111522264 A CN111522264 A CN 111522264A
Authority
CN
China
Prior art keywords
instruction
target device
control parameter
target
verification result
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
CN202010256739.4A
Other languages
Chinese (zh)
Other versions
CN111522264B (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 CN202010256739.4A priority Critical patent/CN111522264B/en
Publication of CN111522264A publication Critical patent/CN111522264A/en
Application granted granted Critical
Publication of CN111522264B publication Critical patent/CN111522264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a device control method and device, a storage medium and an electronic device, wherein the method comprises the following steps: the method comprises the steps of obtaining a logic constraint file of target equipment and state information reported by the target equipment, verifying a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target equipment, and the state information is used for indicating an operating state of the target equipment; and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction. The invention solves the problem that the equipment can not correctly execute the operation command because the operation command is still sent to the equipment when the equipment can not correctly execute the operation command in the related technology.

Description

Device control 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 an apparatus for controlling a device, a storage medium, and an electronic apparatus.
Background
In the communication field, a user can send an instruction to various intelligent devices through a mobile phone, a tablet personal computer and other terminals to realize remote control of the intelligent devices, but because the user cannot know the state of the intelligent devices, the problem that the devices cannot respond due to the fact that wrong operation instructions are often sent to the intelligent devices occurs. In the related art, data reported by the device can be acquired, whether an operation command to be sent is consistent with the current state of the device or not can be judged, and the situation that an error operation command is sent to the device can be avoided by comparing the data reported by the device with the operation command to be sent. However, when the operation command sent to the device conflicts with the device backplane operation instruction, the operation command still cannot be correctly executed by the device, and finally, the device cannot respond, thereby reducing the system stability and the user experience of the device.
Aiming at the problem that in the related art, when the device cannot correctly execute the operation command, the operation command is still sent to the device, so that the device cannot correctly execute the operation command, an effective technical scheme is not provided.
Disclosure of Invention
The embodiment of the invention provides a device control method and device, a storage medium and an electronic device, which are used for at least solving the problem that in the related art, when the device cannot correctly execute an operation command, the device still sends the operation command to the device, so that the device cannot correctly execute the operation command.
According to an embodiment of the present invention, there is provided a control method of a device including:
acquiring a logic constraint file of target equipment and state information reported by the target equipment, and verifying a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target equipment, and the state information is used for indicating an operating state of the target equipment;
and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction.
Optionally, the verifying the first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result includes: obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information; and verifying the first instruction according to the instruction set to obtain the verification result.
Optionally, the verifying the first instruction according to the instruction set to obtain the verification result includes: under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not; if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result; if not, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
Optionally, the verifying the first instruction according to the instruction set to obtain the verification result includes: under the condition that the first instruction comprises a control parameter for controlling the parameter of the target device, judging whether a third instruction with the same instruction type as that of the first instruction exists in the instruction set; if yes, judging whether the control parameter is located in a control parameter range preset in the third instruction; under the condition that the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target device as the verification result; under the condition that the control parameter exceeds the preset control parameter range, adjusting the control parameter to serve as the verification result; and if not, taking the target device not supporting the correct execution of the first instruction as the verification result.
Optionally, in a case that the check result is to adjust the control parameter, the method further includes: adjusting the control parameter in the first instruction to be within the control parameter range to obtain a fourth instruction; sending the fourth instruction to the target device.
According to another embodiment of the present invention, there is provided a control apparatus of a device including:
the processing module is used for acquiring a logic constraint file of target equipment and state information reported by the target equipment, and verifying a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target equipment, and the state information is used for indicating an operating state of the target equipment;
a sending module, configured to send the first instruction to the target device to enable the target device to execute an operation corresponding to the first instruction when the check result indicates that the target device supports correct execution of the first instruction.
Optionally, the processing module is further configured to: obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information; and verifying the first instruction according to the instruction set to obtain the verification result.
Optionally, the processing module is further configured to: under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not; if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result; and if the first instruction does not exist, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
Optionally, the processing module is further configured to: under the condition that the first instruction comprises a control parameter for controlling the parameter of the target device, judging whether a third instruction with the same instruction type as that of the first instruction exists in the instruction set; if yes, judging whether the control parameter is located in a control parameter range preset in the third instruction; under the condition that the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target device as the verification result; and the control parameter adjusting unit is used for adjusting the control parameter as the checking result under the condition that the control parameter exceeds the preset control parameter range; and if not, taking the target device not supporting the correct execution of the first instruction as the verification result.
Optionally, in a case that the check result is to adjust the control parameter, the apparatus further includes: the adjusting module is used for adjusting the control parameter in the first instruction to be within the control parameter range to obtain a fourth instruction; the sending module is further configured to send the fourth instruction to the target device.
Alternatively, according to another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is arranged to perform the above-mentioned method when executed.
Alternatively, according to another embodiment of the present invention, there is provided an electronic apparatus, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the above method.
According to the method and the device, a logic constraint file of the target device and state information reported by the target device are obtained, a first instruction to be sent to the target device is verified according to the logic constraint file and the state information, a verification result is obtained, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operating state of the target device; and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction. Therefore, the problem that the operation command cannot be correctly executed by the equipment due to the fact that the operation command is still sent to the equipment when the equipment cannot correctly execute the operation command in the related technology can be solved, the accuracy and the success rate of instruction issuing are improved, the system stability of the equipment is enhanced, and the user experience is optimized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a control method of an apparatus according to an embodiment of the present invention;
fig. 2 is a block diagram of a control device of the apparatus according to the embodiment of the present invention;
fig. 3 is a block diagram of a control device of an apparatus according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the invention provides a control method of equipment. Fig. 1 is a flowchart of a control method of an apparatus according to an embodiment of the present invention, as shown in fig. 1, including:
step S102, a logic constraint file of a target device and state information reported by the target device are obtained, a first instruction to be sent to the target device is verified according to the logic constraint file and the state information, a verification result is obtained, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operation state of the target device;
step S104, in a case that the check result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device, so that the target device executes an operation corresponding to the first instruction.
According to the method and the device, a logic constraint file of the target device and state information reported by the target device are obtained, a first instruction to be sent to the target device is verified according to the logic constraint file and the state information, a verification result is obtained, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operating state of the target device; and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction. Therefore, the problem that the operation command cannot be correctly executed by the equipment due to the fact that the operation command is still sent to the equipment when the equipment cannot correctly execute the operation command in the related technology can be solved, the accuracy and the success rate of instruction issuing are improved, the system stability of the equipment is enhanced, and the user experience is optimized.
It should be noted that the above embodiments may be applied to terminals such as a mobile phone, a tablet computer, and a notebook computer, and a user may send an instruction to a target device through the terminals such as the mobile phone, the tablet computer, and the notebook computer, so as to perform remote control on the target device, where the target device may be an intelligent device such as an intelligent air conditioner and an intelligent washing machine.
In the foregoing embodiment, before acquiring the logic constraint file of the target device and the state information reported by the target device, the following technical solution may be executed: the method comprises the steps of obtaining an identifier of a target device and a first instruction input by a user, and obtaining a logic constraint file of the target device stored in advance according to the identifier of the target device.
In the embodiment, the logic constraint files of the multiple devices can be pre-stored in the terminals such as the mobile phone, the tablet computer, the notebook computer and the like, and after the identifier of the target device input by the user and the first instruction are obtained, the logic constraint file of the target device corresponding to the identifier is searched, so that the remote control of the multiple devices is realized.
It should be noted that the number of the preset instructions is greater than or equal to 1. As an alternative embodiment, the preset instructions include all instructions supported by the target device, that is, all instructions capable of being executed correctly in the target device, and the logic constraint file is further used to indicate a constraint condition when each preset instruction is executed by the target device (that is, a constraint condition that the target device needs to follow to execute the preset instruction, that is, the preset instruction is executed correctly by the target device, and the constraint condition needs to be satisfied).
Wherein, the verifying the first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result includes: obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information; and verifying the first instruction according to the instruction set to obtain the verification result.
In the above embodiment, since the instruction set supported by the target device in the running state is obtained according to the logic constraint file and the state information, the instruction set can indicate all instructions supported by the target device in the running state (i.e. all instructions that can be correctly executed by the target device). Therefore, the first instruction is checked according to the instruction set, so that whether the current target device can correctly execute the first instruction can be known, and whether the instruction can be correctly executed by the target device can be judged in advance before the instruction is sent to the target device, so that the accuracy and the success rate of instruction issuing are improved, and the user experience is improved.
Based on the above embodiment, the verifying the first instruction according to the instruction set to obtain the verification result includes: under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not; if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result; if not, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
In an embodiment of the invention, the instruction may comprise a control parameter for controlling a parameter of the target device. Taking the target device as an intelligent air conditioner as an example, the parameter of the target device may be temperature, and the control parameter included in the command is used for controlling the temperature of the air conditioner. For a first instruction (for example, turning on a dehumidification function) which does not contain a control parameter, the type of the first instruction is turning on the dehumidification function, when a second instruction which is the same as the type of the first instruction exists in an instruction set, the target device is determined to be capable of correctly executing the first instruction, otherwise, the target device is determined to be incapable of correctly executing the first instruction. By judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not, whether the target device supports correct execution of the first instruction or not can be determined, the accuracy and the success rate of instruction issuing are improved, and user experience is improved.
Wherein, the verifying the first instruction according to the instruction set to obtain the verification result includes: under the condition that the first instruction comprises a control parameter for controlling the parameter of the target device, judging whether a third instruction with the same instruction type as that of the first instruction exists in the instruction set; if yes, judging whether the control parameter is located in a control parameter range preset in the third instruction; under the condition that the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target device as the verification result; under the condition that the control parameter exceeds the preset control parameter range, adjusting the control parameter to serve as the verification result; and if not, taking the target device not supporting the correct execution of the first instruction as the verification result.
In the above embodiment, when the first instruction includes a control parameter (for example, the instruction type of the first instruction is elevated temperature, and the control parameter is 22 degrees), it is determined whether a third instruction having the same instruction type as the first instruction exists in the instruction set, and when the third instruction exists, it is further determined whether the control parameter in the first instruction is within a preset control parameter range included in the third instruction (the preset control parameter range included in the third instruction may be, for example, 18 degrees to 20 degrees). If the control parameter is within a preset control parameter range, determining that the target device supports correct execution of the first instruction; and if the control parameter exceeds the preset control parameter range, the control parameter of the first instruction needs to be adjusted, and the adjusted control parameter is used as a verification result, namely the verification result is used for indicating the adjustment of the control parameter.
Through the embodiment, when the first instruction including the control parameters is verified, the control parameters in the first instruction are further verified on the basis of verifying the instruction type, so that the integrity of the first instruction is verified, and the accuracy of the instruction sent to the target device is further improved.
As an optional implementation, the foregoing embodiment is further configured to implement the following technical solutions: under the condition that the check result is that the control parameter is adjusted, adjusting the control parameter in the first instruction to be within the control parameter range to obtain a fourth instruction; sending the fourth instruction to the target device.
Wherein adjusting the control parameter in the first instruction to be within the control parameter range comprises: and setting the control parameters as target parameters, wherein the target parameters are located in the range of the control parameters. The first instruction is corrected by adjusting the control parameter in the first instruction, and the target device can be controlled by the corrected first instruction (i.e. the fourth instruction), so that the target device can correctly execute the instruction.
It should be noted that, in the above embodiment, the command execution logic of the backplane of the target device is digitized to form a logic constraint file, that is, the logic constraint file can be used to describe the command execution logic of the backplane of the target device, and the instruction to be sent to the target device is verified by combining the logic constraint file and the state information reported by the target device, that is, it is verified in advance whether the first instruction to be sent can be correctly executed by the target device. If the first instruction cannot be executed correctly, a prompt message can be sent out, wherein the prompt message is used for indicating that the first instruction cannot be executed correctly by the target device, so that the user can be informed in advance; if the check result indicates that the control parameter of the first instruction needs to be adjusted, correcting the first instruction, and sending the corrected instruction to the target device; if the first instruction can be correctly executed, the first instruction is sent to the target device, so that the accuracy and the success rate of instruction issuing are improved, and the user experience is optimized. Because the command execution logic of the bottom plate of the target equipment is digitized to form a logic constraint file, the operability is strong, and the processing difficulty is low; and the verification is carried out based on the state information reported by the target equipment, so that the real-time performance is strong and the processing accuracy is high.
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.
According to another embodiment of the present invention, a control device of an apparatus is provided, which is used to implement the above embodiments and preferred embodiments, and which has been described and will not be described again. 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. 2 is a block diagram of a control apparatus of a device according to an embodiment of the present invention, the apparatus including:
the processing module 22 is configured to obtain a logic constraint file of a target device and state information reported by the target device, and verify a first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result, where the logic constraint file is used to indicate a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used to indicate an operating state of the target device;
a sending module 24, configured to send the first instruction to the target device to enable the target device to execute an operation corresponding to the first instruction if the check result indicates that the target device supports correct execution of the first instruction.
According to the method and the device, a logic constraint file of the target device and state information reported by the target device are obtained, a first instruction to be sent to the target device is verified according to the logic constraint file and the state information, a verification result is obtained, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operating state of the target device; and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction. Therefore, the problem that the operation command cannot be correctly executed by the equipment due to the fact that the operation command is still sent to the equipment when the equipment cannot correctly execute the operation command in the related technology can be solved, the accuracy and the success rate of instruction issuing are improved, the system stability of the equipment is enhanced, and the user experience is optimized.
Wherein the processing module 22 is further configured to: obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information; and verifying the first instruction according to the instruction set to obtain the verification result.
In the above embodiment, the processing module 22 is further configured to: under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not; if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result; and if the first instruction does not exist, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
It should be noted that the processing module 22 is further configured to: under the condition that the first instruction comprises a control parameter for controlling the parameter of the target device, judging whether a third instruction with the same instruction type as that of the first instruction exists in the instruction set; if yes, judging whether the control parameter is located in a control parameter range preset in the third instruction; under the condition that the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target device as the verification result; and the control parameter adjusting unit is used for adjusting the control parameter as the checking result under the condition that the control parameter exceeds the preset control parameter range; and if not, taking the target device not supporting the correct execution of the first instruction as the verification result.
Fig. 3 is a block diagram of a control apparatus of a device according to another embodiment of the present invention. Optionally, in a case that the check result is to adjust the control parameter, as shown in fig. 3, the apparatus further includes:
an adjusting module 26, configured to adjust the control parameter in the first instruction to be within the control parameter range, so as to obtain a fourth instruction;
the sending module 24 is further configured to send the fourth instruction to the target device.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, acquiring a logic constraint file of a target device and state information reported by the target device, and verifying a first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operating state of the target device;
s2, when the check result indicates that the target device supports correct execution of the first instruction, the first instruction is sent to the target device so that the target device can execute the operation corresponding to the first instruction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
An embodiment of the present invention further provides an electronic device, and fig. 4 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present invention. As shown in fig. 4, the electronic device comprises a memory 1002 and a processor 1004, the memory 1002 having stored therein a computer program, the processor 1004 being arranged to execute 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 1006 and an input/output device 1008, wherein the transmission device 1006 is connected to the processor 1004, and the input/output device 1008 is connected to the processor 1004.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 4 is a diagram illustrating the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the device control method and apparatus in the embodiments of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, the method for detecting a touch anomaly is implemented. The memory 1002 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 1002 may further include memory located remotely from the processor 1004, which may be connected to the 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. As an example, as shown in fig. 4, the memory 1002 may include, but is not limited to, the processing module 22, the adjusting module 26, and the sending module 24 in the control device of the apparatus.
Optionally, the above-mentioned transmission device 1006 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a connection bus 1010 for connecting the respective module components in the electronic apparatus.
In other embodiments, the terminal or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication form. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a logic constraint file of a target device and state information reported by the target device, and verifying a first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target device, and the state information is used for indicating an operating state of the target device;
s2, when the check result indicates that the target device supports correct execution of the first instruction, the first instruction is sent to the target device so that the target device can execute the operation corresponding to the first instruction.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of controlling a device, comprising:
acquiring a logic constraint file of target equipment and state information reported by the target equipment, and verifying a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target equipment, and the state information is used for indicating an operating state of the target equipment;
and if the verification result indicates that the target device supports correct execution of the first instruction, sending the first instruction to the target device so as to enable the target device to execute the operation corresponding to the first instruction.
2. The method according to claim 1, wherein the verifying the first instruction to be sent to the target device according to the logic constraint file and the state information to obtain a verification result comprises:
obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information;
and verifying the first instruction according to the instruction set to obtain the verification result.
3. The method of claim 2, wherein said checking the first instruction according to the instruction set to obtain the checking result comprises:
under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not;
if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result;
if not, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
4. The method of claim 2, wherein said checking the first instruction according to the instruction set to obtain the checking result comprises:
under the condition that the first instruction comprises a control parameter for controlling the parameter of the target device, judging whether a third instruction with the same instruction type as that of the first instruction exists in the instruction set;
if yes, judging whether the control parameter is located in a control parameter range preset in the third instruction;
under the condition that the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target device as the verification result;
under the condition that the control parameter exceeds the preset control parameter range, adjusting the control parameter to serve as the verification result;
and if not, taking the target device not supporting the correct execution of the first instruction as the verification result.
5. The method of claim 4, wherein in the case that the check result is the adjustment of the control parameter, the method further comprises:
adjusting the control parameter in the first instruction to be within the control parameter range to obtain a fourth instruction;
sending the fourth instruction to the target device.
6. A control apparatus of a device, characterized by comprising:
the processing module is used for acquiring a logic constraint file of target equipment and state information reported by the target equipment, and verifying a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a verification result, wherein the logic constraint file is used for indicating a preset instruction and a constraint condition when the preset instruction is executed by the target equipment, and the state information is used for indicating an operating state of the target equipment;
a sending module, configured to send the first instruction to the target device to enable the target device to execute an operation corresponding to the first instruction when the check result indicates that the target device supports correct execution of the first instruction.
7. The apparatus of claim 6, wherein the processing module is further configured to:
obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information;
and verifying the first instruction according to the instruction set to obtain the verification result.
8. The apparatus of claim 7, wherein the processing module is further configured to:
under the condition that the first instruction does not comprise a control parameter for controlling the parameter of the target device, judging whether a second instruction which is the same as the instruction type of the first instruction exists in the instruction set or not;
if so, determining that the target device supports correct execution of the first instruction, and taking the target device supporting correct execution of the first instruction as the verification result; and if the first instruction does not exist, determining that the target device does not support the correct execution of the first instruction, and taking the target device not supporting the correct execution of the first instruction as the verification result.
9. A 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, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN202010256739.4A 2020-04-02 2020-04-02 Control method and device of equipment, storage medium and electronic device Active CN111522264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010256739.4A CN111522264B (en) 2020-04-02 2020-04-02 Control method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010256739.4A CN111522264B (en) 2020-04-02 2020-04-02 Control method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111522264A true CN111522264A (en) 2020-08-11
CN111522264B CN111522264B (en) 2024-01-23

Family

ID=71901883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010256739.4A Active CN111522264B (en) 2020-04-02 2020-04-02 Control method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111522264B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422380A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target device control method and device, storage medium and electronic device
CN112466053A (en) * 2020-11-24 2021-03-09 珠海格力电器股份有限公司 Control system of household appliance and execution method and device of target operation
CN112600743A (en) * 2020-12-24 2021-04-02 珠海格力电器股份有限公司 Method, device and system for acquiring device control authority and storage medium
CN113341738A (en) * 2021-05-24 2021-09-03 青岛海尔空调器有限总公司 Method, device and equipment for controlling household appliance
CN113361234A (en) * 2021-07-09 2021-09-07 南方电网数字电网研究院有限公司 Document exporting method, system, device and storage medium based on template engine
CN113467832A (en) * 2021-06-29 2021-10-01 青岛海尔科技有限公司 Equipment control processing method, device, storage medium and electronic device
CN113485134A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic device
CN113655727A (en) * 2021-08-24 2021-11-16 海信家电集团股份有限公司 Control method and device for household electrical appliance
CN114137844A (en) * 2021-11-16 2022-03-04 青岛海尔科技有限公司 Control method and control device of intelligent household equipment and Internet of things system
WO2022127741A1 (en) * 2020-12-18 2022-06-23 中兴通讯股份有限公司 Command execution method and system, network device, and storage medium
CN114697150A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Command issuing method and device, storage medium and electronic device
CN114697368A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device
CN115200168A (en) * 2022-07-13 2022-10-18 深圳中集天达空港设备有限公司 Control method and device of channel air conditioner, electronic equipment and storage medium
CN115297103A (en) * 2022-06-27 2022-11-04 青岛海尔智能家电科技有限公司 Method and device for acquiring logic constraint file, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063321A (en) * 2014-06-27 2014-09-24 北京控制工程研究所 Test verifying system and test verifying method for microblaze soft-core program
CN104932555A (en) * 2015-06-09 2015-09-23 联想(北京)有限公司 Control method and electronic device
CN108549605A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of automated testing method
CN108986807A (en) * 2018-08-13 2018-12-11 珠海格力电器股份有限公司 The control method and device of equipment, storage medium, electronic device
CN109657868A (en) * 2018-12-26 2019-04-19 北京理工大学 A kind of probabilistic programming recognition methods of task sequential logic constraint
CN110738384A (en) * 2019-04-17 2020-01-31 北京航天飞行控制中心 Event sequence checking method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063321A (en) * 2014-06-27 2014-09-24 北京控制工程研究所 Test verifying system and test verifying method for microblaze soft-core program
CN104932555A (en) * 2015-06-09 2015-09-23 联想(北京)有限公司 Control method and electronic device
CN108549605A (en) * 2018-04-13 2018-09-18 郑州云海信息技术有限公司 A kind of automated testing method
CN108986807A (en) * 2018-08-13 2018-12-11 珠海格力电器股份有限公司 The control method and device of equipment, storage medium, electronic device
CN109657868A (en) * 2018-12-26 2019-04-19 北京理工大学 A kind of probabilistic programming recognition methods of task sequential logic constraint
CN110738384A (en) * 2019-04-17 2020-01-31 北京航天飞行控制中心 Event sequence checking method and system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422380A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target device control method and device, storage medium and electronic device
CN112466053A (en) * 2020-11-24 2021-03-09 珠海格力电器股份有限公司 Control system of household appliance and execution method and device of target operation
WO2022127741A1 (en) * 2020-12-18 2022-06-23 中兴通讯股份有限公司 Command execution method and system, network device, and storage medium
CN112600743A (en) * 2020-12-24 2021-04-02 珠海格力电器股份有限公司 Method, device and system for acquiring device control authority and storage medium
CN113341738A (en) * 2021-05-24 2021-09-03 青岛海尔空调器有限总公司 Method, device and equipment for controlling household appliance
CN113485134A (en) * 2021-06-25 2021-10-08 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic device
CN113467832A (en) * 2021-06-29 2021-10-01 青岛海尔科技有限公司 Equipment control processing method, device, storage medium and electronic device
CN113361234A (en) * 2021-07-09 2021-09-07 南方电网数字电网研究院有限公司 Document exporting method, system, device and storage medium based on template engine
CN113655727A (en) * 2021-08-24 2021-11-16 海信家电集团股份有限公司 Control method and device for household electrical appliance
CN114137844A (en) * 2021-11-16 2022-03-04 青岛海尔科技有限公司 Control method and control device of intelligent household equipment and Internet of things system
CN114697150A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Command issuing method and device, storage medium and electronic device
CN114697368A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device
CN114697368B (en) * 2022-02-25 2023-12-19 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device
CN114697150B (en) * 2022-02-25 2024-03-22 青岛海尔科技有限公司 Command issuing method and device, storage medium and electronic device
CN115297103A (en) * 2022-06-27 2022-11-04 青岛海尔智能家电科技有限公司 Method and device for acquiring logic constraint file, storage medium and electronic device
CN115297103B (en) * 2022-06-27 2024-01-23 青岛海尔智能家电科技有限公司 Method and device for acquiring logic constraint file, storage medium and electronic device
CN115200168A (en) * 2022-07-13 2022-10-18 深圳中集天达空港设备有限公司 Control method and device of channel air conditioner, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111522264B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
CN111522264B (en) Control method and device of equipment, storage medium and electronic device
EP1763775B1 (en) Device management method for device management system
CN107257346B (en) Single sign-on service access processing method, system end and storage medium
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN111885115A (en) Equipment binding change method and device
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN113438314B (en) Equipment control method and device, storage medium and electronic device
CN111654399A (en) Networking method, device and equipment based on SD-WAN and storage medium
CN112637931A (en) Method and device for establishing network connection
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
EP3306858B1 (en) Network management system deployment method and device, and network management system
CN111026426A (en) Method and device for upgrading repeater
CN113985743A (en) Equipment control method, device and system, storage medium and electronic device
CN115515012A (en) Key burning method and device, electronic equipment board card and storage medium
CN112600744A (en) Authority control method and device, storage medium and electronic device
CN111131324A (en) Login method and device of business system, storage medium and electronic device
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN103067053B (en) Method and device for Bluetooth node processing
CN110580172B (en) Configuration rule verification method and device, storage medium and electronic device
CN113691520B (en) Method and device for acquiring streaming media information, storage medium and electronic device
CN110913416B (en) Terminal, networking method thereof and computer-readable storage medium
CN113132332B (en) Networking login method, household electrical appliance system and storage medium
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
CN113422712A (en) Network distribution method, network distribution device, household equipment and computer readable storage medium

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