CN111522264B - Control method and device of equipment, storage medium and electronic device - Google Patents

Control method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN111522264B
CN111522264B CN202010256739.4A CN202010256739A CN111522264B CN 111522264 B CN111522264 B CN 111522264B CN 202010256739 A CN202010256739 A CN 202010256739A CN 111522264 B CN111522264 B CN 111522264B
Authority
CN
China
Prior art keywords
instruction
target equipment
target
control parameter
correct execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010256739.4A
Other languages
Chinese (zh)
Other versions
CN111522264A (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

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 control method and device of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: obtaining a logic constraint file of target equipment and state information reported by the target equipment, and checking a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a checking 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 operation state of the target equipment; and sending the first instruction to the target device to enable the target device to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target device supports the correct execution of the first instruction. The invention solves the problem that the equipment can not execute the operation command correctly because the operation command is still sent to the equipment when the equipment can not execute the operation command correctly in the related technology.

Description

Control method and device of equipment, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for controlling a device, a storage medium, and an electronic apparatus.
Background
In the communication field, a user can send instructions to various intelligent devices through terminals such as a mobile phone and a tablet personal computer 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 sent to the intelligent devices often occurs. In the related art, data reported by the device can be obtained, whether an operation command to be sent is consistent with the existing state of the device is 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 collides with the operation command of the device bottom plate, the operation command still can not be correctly executed by the device, and finally the condition that the device cannot respond occurs, so that the system stability and the user experience of the device are reduced.
Aiming at the problem that in the related art, when the equipment cannot execute the operation command correctly, the operation command is still sent to the equipment, and further the equipment cannot execute the operation command correctly, no effective technical scheme has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a control method and device of equipment, a storage medium and an electronic device, which at least solve the problem that the equipment cannot execute an operation command correctly because the operation command is still sent to the equipment when the equipment cannot execute the operation command correctly in the related art.
According to an embodiment of the present invention, there is provided a control method of an apparatus including:
obtaining a logic constraint file of target equipment and state information reported by the target equipment, and checking a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a checking 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 operation state of the target equipment;
and sending the first instruction to the target device to enable the target device to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target device supports the correct execution of the first instruction.
Optionally, the verifying, according to the logical constraint file and the state information, the first instruction to be sent to the target device 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 checking the first instruction according to the instruction set to obtain the checking result.
Optionally, the verifying the first instruction according to the instruction set, to obtain the verification result, includes: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment; if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; if not, determining that the target device does not support the correct execution of the first instruction, and taking the fact that the target device does not support the correct execution of the first instruction as the check result.
Optionally, the verifying the first instruction according to the instruction set, to obtain the verification result, includes: judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment; if yes, judging whether the control parameter is in a control parameter range preset in the third instruction; under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; when the control parameter exceeds the preset control parameter range, the control parameter is adjusted to serve as the verification result; if not, the target device does not support correct execution of the first instruction as the check result.
Optionally, in the case that the verification result is to adjust the control parameter, the method further includes: adjusting the control parameters in the first instruction to be in the control parameter range to obtain a fourth instruction; and sending the fourth instruction to the target equipment.
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 constraint conditions when the preset instruction is executed by the target equipment, and the state information is used for indicating an operation state of the target equipment;
and the sending module is used for sending the first instruction to the target equipment so as to enable the target equipment to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target equipment supports the 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 checking the first instruction according to the instruction set to obtain the checking result.
Optionally, the processing module is further configured to: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment; if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; and determining that the target device does not support the correct execution of the first instruction if the first instruction does not exist, and taking the fact that the target device does not support the correct execution of the first instruction as the verification result.
Optionally, the processing module is further configured to: judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment; if yes, judging whether the control parameter is in a control parameter range preset in the third instruction; under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; and the control parameter is used for adjusting the control parameter to be used as the verification result under the condition that the control parameter exceeds the preset control parameter range; if not, the target device does not support correct execution of the first instruction as the check result.
Optionally, in the case that the verification result is to adjust the control parameter, the apparatus further includes: the adjusting module is used for adjusting the control parameters in the first instruction to be in 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, there is provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the above method when run.
Alternatively, according to another embodiment of the invention, there is provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run 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, and a first instruction to be sent to the target device is checked according to the logic constraint file and the state information to obtain a check result, wherein the logic constraint file is used for indicating a preset instruction and constraint conditions 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; and sending the first instruction to the target device to enable the target device to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target device supports the correct execution of the first instruction. Therefore, the problem that the equipment cannot execute the operation command correctly because the operation command is still sent to the equipment when the equipment cannot 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 embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on 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 an apparatus according to an 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 view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects 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, and a first instruction to be sent to the target device is checked according to the logic constraint file and the state information to obtain a check result, wherein the logic constraint file is used for indicating a preset instruction and constraint conditions 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, when the verification result indicates that the target device supports the correct execution of the first instruction, the first instruction is sent to the target device, so that the target device executes the 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, and a first instruction to be sent to the target device is checked according to the logic constraint file and the state information to obtain a check result, wherein the logic constraint file is used for indicating a preset instruction and constraint conditions 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; and sending the first instruction to the target device to enable the target device to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target device supports the correct execution of the first instruction. Therefore, the problem that the equipment cannot execute the operation command correctly because the operation command is still sent to the equipment when the equipment cannot 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 embodiment may be applied to a terminal such as a mobile phone, a tablet computer, a notebook computer, etc., where a user may send an instruction to a target device through the terminal such as the mobile phone, the tablet computer, the notebook computer, etc., so as to remotely control the target device, where the target device may be an intelligent device such as an intelligent air conditioner, an intelligent washing machine, etc.
The above embodiment may further execute the following technical solution before acquiring the logical constraint file of the target device and the status information reported by the target device: and acquiring the identifier of the target device and a first instruction input by a user, and acquiring a pre-stored logic constraint file of the target device according to the identifier of the target device.
In the above embodiment, the logic constraint files of the plurality of devices may be stored in the terminals such as the mobile phone, the tablet computer, the notebook computer, and the like in advance, and after the identifier and the first instruction of the target device input by the user are obtained, the logic constraint file of the target device corresponding to the identifier is searched, so that remote control of the plurality of devices is realized.
It should be noted that, the number of preset instructions is 1 or more. As an alternative embodiment, the preset instructions include all instructions supported by the target device, that is, all instructions that can be executed correctly in the target device, and the above logical 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 when executing the preset instruction, that is, the preset instruction is executed correctly by the target device, and the constraint condition needs to be met).
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 checking the first instruction according to the instruction set to obtain the checking result.
In the above embodiment, since the instruction set supported by the target device in the running state is obtained according to the logical 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 the target device can correctly execute). Therefore, the first instruction is checked according to the instruction set, so that whether the target equipment can correctly execute the first instruction at present can be known, whether the instruction can be correctly executed by the target equipment or not is judged in advance before the instruction is sent to the target equipment, 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: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment; if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; if not, determining that the target device does not support the correct execution of the first instruction, and taking the fact that the target device does not support the correct execution of the first instruction as the check result.
In an embodiment of the present invention, the instruction may include a control parameter, where the control parameter is used to control a parameter of the target device. Taking the example that the target device is an intelligent air conditioner, the parameter of the target device may be temperature, and the control parameter included in the instruction 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 instruction type of the first instruction is that the dehumidification function is turned on, when a second instruction with the same instruction type exists in the 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 the second instruction with the same instruction type as the first instruction exists in the instruction set, whether the target equipment supports correct execution of the first instruction can be determined, the accuracy and success rate of instruction issuing are improved, and the user experience is improved.
The step of verifying the first instruction according to the instruction set to obtain the verification result includes: judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment; if yes, judging whether the control parameter is in a control parameter range preset in the third instruction; under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; when the control parameter exceeds the preset control parameter range, the control parameter is adjusted to serve as the verification result; if not, the target device does not support correct execution of the first instruction as the check result.
In the above embodiment, when the first instruction includes the control parameter (for example, the instruction type of the first instruction is that the temperature is raised, the control parameter is that the temperature 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 that the temperature is 18 degrees to 20 degrees, for example). If the control parameter is within the preset control parameter range, determining that the target device supports correct execution of the first instruction; 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 adjustment of the control parameter.
Through the embodiment, when the first instruction including the control parameter is checked, the control parameter in the first instruction is further checked on the basis of checking the instruction type, so that the integrity check of the first instruction is realized, and the accuracy of the instruction sent to the target equipment is further improved.
As an alternative implementation manner, the above embodiment is further used to execute the following technical solutions: under the condition that the verification result is that the control parameter is adjusted, the control parameter in the first instruction is adjusted to be located in the control parameter range, and a fourth instruction is obtained; and sending the fourth instruction to the target equipment.
Wherein adjusting the control parameter in the first instruction to be within the control parameter range includes: and setting the control parameter as a target parameter, wherein the target parameter is positioned in a control parameter range. The first instruction is corrected by adjusting the control parameters in the first instruction, so that the target equipment can be controlled by the corrected first instruction (namely the fourth instruction), and the correct execution of the instruction by the target equipment is realized.
It should be noted that, in the above embodiment, the command execution logic of the bottom board of the target device is digitized to form the logic constraint file, that is, the logic constraint file can be used to describe the command execution logic of the bottom board 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, whether the first instruction to be sent can be executed correctly by the target device is verified in advance. If the first instruction cannot be executed correctly, prompt information can be sent out, wherein the prompt information is used for indicating that the first instruction cannot be executed correctly by the target equipment, so that the user can be informed in advance; if the verification result indicates that the control parameters of the first instruction need to be adjusted, the first instruction is corrected, and the corrected instruction is sent to the target equipment; if the first instruction can be executed correctly, the first instruction is sent to the target device, so that the accuracy and success rate of instruction issuing are improved, and the user experience is optimized. The command execution logic of the bottom plate of the target equipment is digitalized to form a logic constraint file, so that the operability is high and the processing difficulty is low; and the verification is performed based on the state information reported by the target equipment, so that the real-time performance is high and the processing accuracy is high.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
According to another embodiment of the present invention, a control device for a device is provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 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 logical constraint file of a target device and status information reported by the target device, and verify a first instruction to be sent to the target device according to the logical constraint file and the status information to obtain a verification result, where the logical 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 status information is used to indicate an operation status of the target device;
and a sending module 24, configured to send the first instruction to the target device, so that the target device performs an operation corresponding to the first instruction, where the verification 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, and a first instruction to be sent to the target device is checked according to the logic constraint file and the state information to obtain a check result, wherein the logic constraint file is used for indicating a preset instruction and constraint conditions 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; and sending the first instruction to the target device to enable the target device to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target device supports the correct execution of the first instruction. Therefore, the problem that the equipment cannot execute the operation command correctly because the operation command is still sent to the equipment when the equipment cannot 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 checking the first instruction according to the instruction set to obtain the checking result.
In the above embodiment, the processing module 22 is further configured to: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment; if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; and determining that the target device does not support the correct execution of the first instruction if the first instruction does not exist, and taking the fact that the target device does not support the correct execution of the first instruction as the verification result.
The processing module 22 is further configured to: judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment; if yes, judging whether the control parameter is in a control parameter range preset in the third instruction; under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result; and the control parameter is used for adjusting the control parameter to be used as the verification result under the condition that the control parameter exceeds the preset control parameter range; if not, the target device does not support correct execution of the first instruction as the check result.
Fig. 3 is a block diagram of a control device of an apparatus according to another embodiment of the present invention. Optionally, in the case that the verification result is to adjust the control parameter, as shown in fig. 3, the apparatus further includes:
an adjustment 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 also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, acquiring a logic constraint file of target equipment and state information reported by the target equipment, and checking a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a checking 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 operation state of the target equipment;
and S2, sending the first instruction to the target equipment under the condition that the verification result indicates that the target equipment supports the correct execution of the first instruction, so that the target equipment executes the operation corresponding to the first instruction.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
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 run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic device may further include a transmission device 1006 and an input/output device 1008, where the transmission device 1006 is connected to the processor 1004, and the input/output device 1008 is connected to the processor 1004.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 4 is only schematic, 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, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 4 is not limited to 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 configured to store software programs and modules, such as program instructions/modules corresponding to the control method and apparatus of the device in the embodiment of the present invention, and the processor 1004 executes the software programs and modules stored in the memory 1002 to perform various functional applications and data processing, that is, implement the method for detecting a touch anomaly described above. 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 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. 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 transmitting module 24 in the control device including the apparatus.
Optionally, the transmission device 1006 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1006 includes a network adapter (Network Interface Controller, NIC) that can be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1006 is a Radio Frequency (RF) module for communicating with the internet wirelessly.
In addition, the electronic device further includes: a connection bus 1010 for connecting the respective module components in the above-described electronic apparatus.
In other embodiments, the terminal or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a logic constraint file of target equipment and state information reported by the target equipment, and checking a first instruction to be sent to the target equipment according to the logic constraint file and the state information to obtain a checking 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 operation state of the target equipment;
and S2, sending the first instruction to the target equipment under the condition that the verification result indicates that the target equipment supports the correct execution of the first instruction, so that the target equipment executes the operation corresponding to the first instruction.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A control method of an apparatus, characterized by comprising:
obtaining a logic constraint file of target equipment and state information reported by the target equipment, wherein the logic constraint file is used for indicating a preset instruction and constraint conditions when the preset instruction is executed by the target equipment, and the state information is used for indicating an operation state of the target equipment;
obtaining an instruction set supported by the target equipment in the running state according to the logic constraint file and the state information;
checking a first instruction to be sent to the target equipment according to the instruction set to obtain a checking result;
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 that the target device executes an operation corresponding to the first instruction;
the step of verifying the first instruction according to the instruction set to obtain a verification result comprises the following steps: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment;
if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result;
if not, determining that the target device does not support the correct execution of the first instruction, and taking the fact that the target device does not support the correct execution of the first instruction as the check result.
2. The method according to claim 1, wherein the verifying the first instruction to be sent to the target device according to the instruction set, to obtain the verification result, includes:
judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment;
if yes, judging whether the control parameter is in a control parameter range preset in the third instruction;
under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result;
when the control parameter exceeds the preset control parameter range, the control parameter is adjusted to serve as the verification result;
if not, the target device does not support correct execution of the first instruction as the check result.
3. The method according to claim 2, wherein in case the check result is to adjust the control parameter, the method further comprises:
adjusting the control parameters in the first instruction to be in the control parameter range to obtain a fourth instruction;
and sending the fourth instruction to the target equipment.
4. A control device of an apparatus, characterized by comprising:
the processing module is used for acquiring a logic constraint file of the target equipment and state information reported by the target equipment, and acquiring an instruction set supported by the target equipment in an operation state according to the logic constraint file and the state information; checking a first instruction to be sent to the target equipment according to the instruction set to obtain a checking 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 operation state of the target equipment;
the sending module is used for sending the first instruction to the target equipment so as to enable the target equipment to execute the operation corresponding to the first instruction under the condition that the verification result indicates that the target equipment supports the correct execution of the first instruction;
the processing module is further configured to: judging whether a second instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction does not comprise control parameters for controlling the parameters of the target equipment;
if so, determining that the target equipment supports the correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result;
and determining that the target device does not support the correct execution of the first instruction if the first instruction does not exist, and taking the fact that the target device does not support the correct execution of the first instruction as the verification result.
5. The apparatus of claim 4, wherein the processing module is further configured to:
judging whether a third instruction with the same instruction type as the first instruction exists in the instruction set or not under the condition that the first instruction comprises control parameters for controlling the parameters of the target equipment;
if yes, judging whether the control parameter is in a control parameter range preset in the third instruction; under the condition that the control parameters are in the preset control parameter range, determining that the target equipment supports correct execution of the first instruction, and taking the correct execution of the first instruction supported by the target equipment as the verification result;
and the control parameter is used for adjusting the control parameter to be used as the verification result under the condition that the control parameter exceeds the preset control parameter range; if not, the target device does not support correct execution of the first instruction as the check result.
6. The apparatus according to claim 4, wherein the control apparatus of the device further comprises, in the case where the check result is to adjust the control parameter:
the adjusting module is used for adjusting the control parameters in the first instruction to be in the control parameter range to obtain a fourth instruction;
the sending module is further configured to send the fourth instruction to the target device.
7. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 3 when run.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 3 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 CN111522264A (en) 2020-08-11
CN111522264B true 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)

Families Citing this family (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
CN112466053B (en) * 2020-11-24 2022-05-17 珠海格力电器股份有限公司 Control system of household appliance and execution method and device of target operation
CN112672440A (en) * 2020-12-18 2021-04-16 中兴通讯股份有限公司 Instruction execution method, 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
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
CN115297103B (en) * 2022-06-27 2024-01-23 青岛海尔智能家电科技有限公司 Method and device for acquiring logic constraint file, storage medium and electronic device
CN115200168B (en) * 2022-07-13 2023-10-03 深圳中集天达空港设备有限公司 Control method and device of channel air conditioner, electronic equipment and storage medium

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

Also Published As

Publication number Publication date
CN111522264A (en) 2020-08-11

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
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN111356149A (en) Wireless network configuration method and device
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN111885594A (en) Equipment binding method and device
CN105180378A (en) Air conditioner and upgrading control method and device thereof
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
EP3554043A1 (en) Method and apparatus for secure device provisioning in an industrial control system
CN112637931A (en) Method and device for establishing network connection
CN113438314A (en) Equipment control method and device, storage medium and electronic device
US20170026236A1 (en) A method and a system for the deterministic autoconfiguration of a device
CN113259918A (en) Equipment binding method and system
CN112600744A (en) Authority control method and device, storage medium and electronic device
CN115335803A (en) Equipment upgrading method, intelligent equipment and computer readable storage medium
EP3331257A1 (en) Terminal configuration management method and apparatus
JP5500332B2 (en) IC chip, information processing apparatus, software module control method, information processing system and method, and program
CN111131324A (en) Login method and device of business system, storage medium and electronic device
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN113691520B (en) Method and device for acquiring streaming media information, storage medium and electronic device
CN110580172B (en) Configuration rule verification method and device, storage medium and electronic device
CN103067053B (en) Method and device for Bluetooth node processing
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
CN110913416B (en) Terminal, networking method thereof 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