Control instruction verification method and device of intelligent device, medium and program product

By setting the verification order for the control instruction group of the smart device and performing mutual exclusion verification, the execution failure caused by the mutual exclusion of multiple control instructions in the smart device is solved, and the request success rate and user experience are improved.

CN120406384APending Publication Date: 2025-08-01HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510384739.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

In the prior art, when an intelligent device receives multiple control instructions, the probability of successful execution of the user request due to mutual exclusion verification is low.

Method used

By obtaining the control instruction group currently to be executed by the intelligent device, the verification order of each instruction is determined, and the instructions are verified according to the verification order. If the subsequent instructions are mutually exclusive to the previous and pass the verification instructions, the subsequent instructions will not pass, and only the instructions that pass the verification will be executed.

Benefits of technology

Improves the successful execution rate of user requests and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120406384A_ABST
    Figure CN120406384A_ABST
Patent Text Reader

Abstract

The invention provides a control instruction verification method of intelligent equipment, equipment, a medium and a program product, and relates to the technical field of intelligent home / smart home. The method comprises the steps that a control instruction set to be executed currently by the intelligent device is obtained, the verification sequence of all control instructions in the control instruction set is determined, and the control instructions are used for controlling the intelligent device to execute corresponding services; the control instructions are checked according to the checking sequence, and if the control instruction behind the checking sequence and the control instruction which is in front of the checking sequence and passes the checking are mutually exclusive, the control instruction behind the checking sequence does not pass the checking; and controlling the intelligent equipment to execute corresponding service according to the control instruction passing the verification. According to the method, the control instruction passing rate is increased, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of smart home, and particularly to a method, device, medium, and program product for verifying control instructions of intelligent devices. Background Art

[0002] In the usage scenario of intelligent devices, intelligent devices usually receive multiple requests simultaneously, that is, control instructions. However, to ensure the safe use of intelligent devices, before the requests reach the intelligent devices for execution, illegal control instructions will be intercepted, and illegal includes instruction mutual exclusion.

[0003] The existing method of intercepting illegal control instructions is to verify the legality of control instructions through a digital model. If it is verified that there is mutual exclusion between multiple control instructions, then these control instructions will be intercepted by the digital model simultaneously, resulting in a relatively low probability that the requests issued by users are successfully executed.

[0004] Therefore, this application proposes a method for verifying control instructions of intelligent devices to solve the above problems. Summary of the Invention

[0005] This application provides a method, device, medium, and program product for verifying control instructions of intelligent devices to solve the problem in the prior art that the probability of successful execution of control instructions issued by users is relatively low.

[0006] In a first aspect, this application provides a method for verifying control instructions of intelligent devices, including:

[0007] Obtain the control instruction group currently to be executed by the intelligent device, and determine the verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services;

[0008] Verify each control instruction according to the verification order. If a control instruction in the later position of the verification order is mutually exclusive with a control instruction in the earlier position of the verification order and passing the verification, then the control instruction in the later position of the verification order fails the verification;

[0009] If there are control instructions that pass the verification, control the intelligent device to execute corresponding services according to the control instructions that pass the verification.

[0010] In a possible implementation, the determining the verification order of each control instruction in the control instruction group includes:

[0011] Obtain the constraint relationship between the control instructions, where the constraint relationship is used to limit one of any two control instructions as a prerequisite instruction and the other as a subsequent instruction that takes effect after the prerequisite instruction is executed;

[0012] Set the verification order of the prerequisite instruction to be prior to the verification order of the subsequent instruction.

[0013] In a possible implementation, the verifying each of the control instructions according to the verification order includes:

[0014] If the service corresponding to the control instruction in the current verification order is mutually exclusive with the service that the intelligent device is currently executing, determine that the control instruction in the current verification order fails the verification.

[0015] In a possible implementation, the verifying each of the control instructions according to the verification order includes:

[0016] If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service that the intelligent device is currently executing, and the control instruction in the current verification order is not mutually exclusive with the control instruction that has passed the verification and is before the control instruction in the current verification order, determine that the control instruction in the current verification order passes the verification; or,

[0017] If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service that the intelligent device is currently executing, and there is no control instruction that has passed the verification before the control instruction in the current verification order, determine that the control instruction in the current verification order passes the verification.

[0018] In a possible implementation, after setting the verification order of the prerequisite instruction to be prior to the verification order of the subsequent instruction, the method further includes:

[0019] Sort the control instructions that are not in a constraint relationship according to preset parameters, where the preset parameters include one or more of the following parameters: the energy consumption of the intelligent device, the historical settings of the intelligent device, and the user preference settings.

[0020] In a possible implementation, the obtaining the control instruction group that the intelligent device currently needs to execute includes:

[0021] Obtain the control instruction group sent by the user of the intelligent device through the user terminal;

[0022] Correspondingly, the method further includes:

[0023] Send the verification result of each control instruction in the control instruction group, whether it passes the verification and / or fails the verification, to the user terminal of the intelligent device, so that the user terminal displays the verification result to the user.

[0024] In a second aspect, the present application provides a control instruction verification device for an intelligent device, including:

[0025] A processing module, configured to obtain a control instruction group currently to be executed by the intelligent device, and determine a verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services;

[0026] A verification module, configured to verify each control instruction according to the verification order, where if a control instruction in the subsequent position of the verification order is mutually exclusive with a control instruction in the previous position of the verification order and passing the verification, the control instruction in the subsequent position of the verification order fails the verification;

[0027] A control module, configured to control the intelligent device to execute corresponding services according to the control instructions passing the verification.

[0028] In a third aspect, the present application provides an electronic device, which is characterized by including: at least one processor and a memory;

[0029] The memory stores computer-executable instructions;

[0030] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the control instruction verification method of the intelligent device as described above.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control instruction verification method of the intelligent device as described above are implemented.

[0032] In a fifth aspect, the present application provides a computer program product, which is characterized in that the computer program product includes instructions, and when the instructions are executed on an electronic device, the electronic device is enabled to implement the control instruction verification method of the intelligent device as described above.

[0033] A control instruction verification method, device, medium and program product for an intelligent device provided by the present application, obtain a control instruction group currently to be executed by the intelligent device, determine a verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services; verify each control instruction according to the verification order, where if a control instruction in the subsequent position of the verification order is mutually exclusive with a control instruction in the previous position of the verification order and passing the verification, the control instruction in the subsequent position of the verification order fails the verification; control the intelligent device to execute corresponding services according to the control instructions passing the verification.

[0034] In the above method, a computing model configured in the cloud can be used to obtain a control instruction set sent by a user for controlling an intelligent device, and the control instruction set is currently in a pending execution state; specifically, whether it is sent to the intelligent device for execution still needs to be verified. Before verification, the verification order of each control instruction in the control instruction set is set according to an appropriate method; each control instruction in the control instruction set is verified one by one according to the verification order. If a later-verified control instruction is mutually exclusive with an earlier-verified and verified control instruction, then the later-verified control instruction is an illegal instruction and the verification fails; if there is a control instruction that passes the verification during the verification process, the control instruction that passes the verification is sent to the intelligent device for execution, enabling the control instruction to be successfully executed, improving the success rate of user requests, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0036] Figure 1 It is a hardware environment diagram for verifying control instructions of an intelligent device provided by an embodiment of the present application;

[0037] Figure 2 It is a flowchart showing a method for verifying control instructions of an intelligent device provided by an embodiment of the present application Figure 1 ;

[0038] Figure 3 It is a flowchart showing a method for verifying control instructions of an intelligent device provided by an embodiment of the present application Figure 2 ;

[0039] Figure 4 It is a flowchart showing a method for verifying control instructions of an intelligent device provided by an embodiment of the present application Figure 3 ;

[0040] Figure 5 It is a diagram of a device for verifying control instructions of an intelligent device provided by an embodiment of the present invention;

[0041] Figure 6 It is a hardware schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0042] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0044] The existing method for intercepting illegal control instructions is to verify the legality of control instructions through a digital model. If it is verified that there is a mutual exclusion between multiple control instructions, then these control instructions will be intercepted by the digital model at the same time, resulting in a relatively low probability that the requests issued by the user are successfully executed.

[0045] The current logic for the digital model to intercept requests: When the user triggers a scenario, the scenario service sends the corresponding batch of original control instructions to the device digital model service; the device digital model service calculates the digital model according to the current state of the device, and then verifies the legality of each instruction. If a certain instruction is illegal, it is considered that the current instruction is illegal and all original control instructions are intercepted.

[0046] Therefore, in order to improve the control success rate and user experience, this application proposes a new method for verifying control instructions of intelligent devices.

[0047] The following describes the implementation process of a method for verifying control instructions of intelligent devices proposed in this application with reference to the accompanying drawings and specific embodiments.

[0048] Figure 1Hardware environment diagram for verifying control instructions of an intelligent device provided by an embodiment of the present application; According to one aspect of the embodiments of the present application, a method for verifying control instructions of an intelligent device is provided. The method for verifying control instructions of the intelligent device is widely applied to whole-house intelligent digital control application scenarios such as Smart Home, smart home, intelligent household device ecosystem, Intelligence House ecosystem, etc. Optionally, in this embodiment, the method for verifying control instructions of the above intelligent device can be applied to, for example, Figure 1 the hardware environment composed of a terminal device 102 and a server 104 as shown. As Figure 1 shown, the server 104 is connected to the terminal device 102 through a network, and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server, and is used to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server, and are used to provide data operation services for the server 104.

[0049] The above network can include, but is not limited to, at least one of the following: wired network, wireless network. The above wired network can include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The above wireless network can include, but is not limited to, at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 is not limited to being a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing device, smart dishwasher, smart projection device, smart TV, smart clothes hanger, smart curtain, smart audio and video, smart socket, smart speaker, smart sound box, smart fresh air device, smart kitchen and bathroom device, smart bathroom device, smart floor sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification device, smart steam box, smart microwave oven, smart kitchen water heater, smart purifier, smart water dispenser, smart door lock, etc.

[0050] Figure 2 Flow schematic of a method for verifying control instructions of an intelligent device provided by an embodiment of the present application Figure 1 As Figure 2 shown, the method includes:

[0051] S201. Obtain the control instruction group currently to be executed by the intelligent device, and determine the verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services.

[0052] The control instruction set can come from user input. The ways for users to input control instructions usually include: applications on mobile terminals, voice devices, remote controls, sensors, etc.; the control instruction set can also come from preset remote services, etc.

[0053] Control instructions are generally used to make intelligent devices execute specific services or functions. For example, setting the air conditioner to the cooling mode, etc.

[0054] The control instruction set is sent out for execution, but it needs to be verified before execution. Therefore, the control instruction set is currently in a pending execution state before instruction verification. The verification is mainly to determine whether the control instructions in the control instruction set are mutually exclusive or whether there are other problems to ensure that the control instructions can be correctly executed. Other problems include whether they are valid and complete. The verification order of the control instructions can be preset, and some conditions can be referred to during the preset process.

[0055] S202. Verify each of the control instructions according to the verification order. Among them, if the control instruction in the later position of the verification order is mutually exclusive with the control instruction in the previous position of the verification order and has passed the verification, the control instruction in the later position of the verification order fails the verification.

[0056] When verifying according to the verification order of the control instructions, this embodiment mainly considers whether the control instructions are mutually exclusive; before verifying mutual exclusion, it can also be determined whether there are other problems with the control instructions. After the verification of other problems passes, it can be determined whether the control instructions are mutually exclusive.

[0057] If among multiple control instructions, the control instruction in the previous position of the verification order has passed the verification, then when the control instruction in the later position of the verification order is mutually exclusive with the control instruction in the previous position of the verification order, the control instruction in the later position of the verification order cannot be executed, and the control instruction in the later position of the verification order fails the verification.

[0058] S203. If there are control instructions that pass the verification, control the intelligent device to execute the corresponding service according to the control instructions that pass the verification.

[0059] Among the multiple control instructions in the control instruction set, all may pass the verification, some may pass the verification, or all may fail the verification; for the case where there are control instructions that pass the verification, the control instructions that pass the verification can be sent to the intelligent device for it to execute.

[0060] And it can notify the user which of the instructions sent by the user are successful and which are not.

[0061] Exemplarily, the obtaining of the control instruction set currently to be executed by the intelligent device includes:

[0062] Obtain the control instruction group sent by the user of the intelligent device through the user terminal;

[0063] Correspondingly, the method further includes:

[0064] Send the results of passing and / or failing the verification of each control instruction in the control instruction group to the user terminal of the intelligent device user, so that the user terminal can display the verification results to the user.

[0065] If all multiple control instructions pass the verification, notify the user that all control instructions in the control instruction group are successfully executed; if all multiple control instructions fail the verification, notify the user that all control instructions in the control instruction group fail to be executed; if some of the multiple control instructions pass the verification, notify the user which control instructions in the control instruction group are successfully executed and which ones fail to be executed, and the reason for the failure of the control instruction verification can also be prompted. The notification method is to display it on the user terminal.

[0066] In the embodiments of the present application, a control instruction group sent by the user for controlling an intelligent device can be obtained through a computing model configured in the cloud. The control instruction group is currently in a pending execution state; specifically, whether it is sent to the intelligent device for execution still needs to be verified. Before verification, the verification order of each control instruction in the control instruction group is set according to an appropriate method; each control instruction in the control instruction group is verified one by one according to the verification order. If a later-verified control instruction is mutually exclusive with a previously-verified and passed control instruction, then the later-verified control instruction is an illegal instruction and fails the verification; if there are control instructions that pass the verification during the verification process, the passed control instructions are sent to the intelligent device for execution to make the control instructions successfully executed, improving the success rate of user requests and enhancing the user experience.

[0067] Figure 3 It is a schematic flow of a control instruction verification method for an intelligent device provided by an embodiment of the present application Figure 2 As Figure 3 shown, the method includes:

[0068] S301. Obtain the constraint relationship between the control instructions, where the constraint relationship is used to define that one of any two control instructions is a prerequisite instruction, and the other is a subsequent instruction that becomes effective after the prerequisite instruction is executed.

[0069] As specific instructions for operating household electrical appliances, for an air conditioner, there are generally refrigeration mode setting, temperature setting, and wind speed setting; in addition to being mutually exclusive, there are also constraints between control instructions. The definition of the constraint relationship in this embodiment is that if a certain control instruction needs to be executed after another control instruction is executed, then it is said that there is a constraint relationship between these two control instructions.

[0070] Each smart device connected to the cloud has a unique device identifier. When a user sends a control instruction group to the cloud, the device identifier can be added to the instruction data packet where the control instruction group is located, so that the cloud can identify what type of smart device the control instruction is used to control;

[0071] The execution logic of the control instructions of the smart device may be related to the type of the smart device. The instruction relationships (such as mutual exclusion relationships and constraint relationships) between multiple control instructions corresponding to the same type of smart device are set to be consistent. Based on the device identifier, the instruction relationship corresponding to the smart device can be matched. The types of smart devices include air conditioners, washing machines, refrigerators, etc.;

[0072] The instruction relationship can be set based on the working principle of the smart device and the user operation process. For control instructions applicable to different types of smart devices, an instruction relationship list can be established. In the list, the device identifier is mapped to multiple control instructions and stored in the cloud in the form of a document. The constraint relationship between the control instructions is also stored in the instruction relationship list;

[0073] Find the corresponding control instructions and their constraint relationships in the instruction relationship list according to the device identifier, and correspond the control instructions in the currently received control instruction group with them to determine the specific constraint relationship of the control instructions in the currently received control instruction group, so as to facilitate subsequent processing.

[0074] S302. Set the verification order of the precondition instruction to be prior to the verification order of the subsequent instruction.

[0075] The constraint relationship ensures that the services of the smart device can be carried out in the correct order. For example, if the air conditioner is in the shutdown state and receives the startup instruction and the refrigeration instruction at the same time, if the refrigeration instruction is determined first, it is easy to fail the verification because the air conditioner cannot refrigerate without starting up;

[0076] Therefore, the verification order of the precondition instruction needs to be before the verification order of the subsequent instruction. In this way, the probability of the subsequent instruction passing the verification can be increased.

[0077] In addition to considering the constraint relationship, other parameter impacts can also be considered when setting the verification order:

[0078] Exemplarily, after setting the verification order of the precondition instruction to be prior to the verification order of the subsequent instruction, the method further includes:

[0079] Sort the control instructions that are not in the constraint relationship according to the preset parameters, where the preset parameters include one or more of the following parameters: the energy consumption of the smart device, the historical settings of the smart device, and the user preference settings.

[0080] Alternatively, according to other instruction relationships that affect the execution order of control instructions, sort the control instructions that are not in a constraint relationship; the other instruction relationships are neither mutually exclusive nor constraint relationships.

[0081] First, for control instructions in a constraint relationship, there is a strict order of execution effectiveness for the control instructions, so sort and detect according to the constraint relationship; if there are no other instruction relationships that affect the execution order of control instructions, then for control instructions that do not belong to the constraint relationship:

[0082] Among multiple control instructions in a control instruction group, it is not necessarily the case that there is a constraint relationship between any two control instructions. For control instructions without a constraint relationship, they can be sorted arbitrarily; or, they can be sorted with reference to preset parameters; for example, if there are multiple relationships between control instructions, in addition to mutual exclusion and constraint, it may also include a parallel relationship. Two control instructions belonging to the parallel relationship can be executed simultaneously or separately, and control instructions belonging to the parallel relationship do not need to be forced to be detected in a certain order;

[0083] For example, with reference to the energy consumption of the intelligent device, the verification order of the control instruction with lower energy consumption generated by two control instructions with similar services can be set before the verification order of the control instruction with higher energy consumption;

[0084] With reference to the historical settings of the intelligent device, the verification order of the control instruction with a higher historical occurrence frequency can be set before the verification order of the control instruction with a lower historical occurrence frequency;

[0085] With reference to the user preference settings, the intelligent device allows the user to set the execution priority of control instructions without a constraint relationship. The verification order of the control instruction with a higher execution priority can be set before the verification order of the control instruction with a lower execution priority;

[0086] If any multiple of different preset parameters are referred to, then when setting the verification order, the different preset parameters can be weighted and summed to obtain the final order; for the type of preset parameter that is given priority, the weight of this type of preset parameter can be set relatively high, and for the type of preset parameter that is secondary, the weight of this type of preset parameter can be set relatively low.

[0087] Second, if there are other instruction relationships that affect the execution order of control instructions, further sorting can be performed on the premise of the constraint relationship; for control instructions with an order relationship, it affects the execution order of control instructions; the existence of a constraint relationship between control instructions is a logical restriction. If it is detected that a certain control instruction does not meet the antecedent condition in the constraint relationship, then this control instruction must be blocked; the existence of an order relationship between control instructions is a time order or process order restriction. If the order is incorrect, it does not necessarily prevent the execution of subsequent control instructions; however, in order to reduce incorrect instruction execution, verification can also be performed according to the order relationship;

[0088] For example, the control instruction group includes instruction A, instruction B, instruction C, and instruction D. If instruction A is a prerequisite instruction, instruction B is a subsequent instruction, and there is a sequential execution relationship between instruction C and instruction D, the detection order can be instruction A, instruction B, instruction C, instruction D, or the detection order can be instruction C, instruction D, instruction A, instruction B; if instruction A is a prerequisite instruction, instruction B is a subsequent instruction, there is a sequential execution relationship between instruction C and instruction A, and instruction D is an independent instruction, the detection order can be instruction C, instruction A, instruction B, and instruction D can be before or after any one of instruction C, instruction A, and instruction B.

[0089] For other instruction relationships that do not affect the execution order of control instructions, reference may be made to the above content of this embodiment for execution.

[0090] In the embodiment of the present application, placing the prerequisite instruction before the subsequent instruction for verification can increase the passing rate of the instructions in the control instruction group; referring to more preset parameters to set the verification order can obtain more specific optimizations.

[0091] In addition to the above embodiments, another possibility for the method of determining the verification order of each control instruction in the control instruction group is:

[0092] Sort the control instructions according to the preset parameters, where the preset parameters include one or more of the following parameters: the energy consumption of the intelligent device, the historical settings of the intelligent device, and the user preference settings.

[0093] This way of setting the verification order only considering the preset parameters without considering the constraint relationship can also improve the passing rate of the verification of control instructions to a certain extent; the way of setting the verification order without considering any conditions, because each control instruction is verified separately, can also improve the passing rate of the verification of control instructions to a certain extent compared with the case of unified interception.

[0094] Figure 4 It is a schematic flow of a method for verifying control instructions of an intelligent device provided by an embodiment of the present application Figure 3 . As Figure 4 shown, the method includes:

[0095] S401. If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service being executed by the intelligent device, determine whether the control instruction in the current verification order is not mutually exclusive with the control instructions that have passed verification and are before the control instruction in the current verification order, or determine whether there are no control instructions that have passed verification before the control instruction in the current verification order.

[0096] The intelligent device may have verified and passed certain control instructions and completed the corresponding execution; then, for an intelligent device in operation, the service being executed and the control instructions in the current control instruction set must not conflict either.

[0097] Obtain the service being executed by the intelligent device, and determine whether the service corresponding to the current control instruction is mutually exclusive with the service being executed according to the verification order. If they are mutually exclusive:

[0098] For example, if the service corresponding to the control instruction in the current verification order is mutually exclusive with the service being executed by the intelligent device, it is determined that the control instruction in the current verification order fails the verification.

[0099] If the service corresponding to the current control instruction is not mutually exclusive with the service being executed, then other conditions can be further determined. For example, before the control instruction in the current verification order, whether there is no control instruction in the control instruction set to be executed that passes the verification, or, in the control instruction set to be executed, there is a control instruction that passes the verification, but whether the control instruction that passes the verification is mutually exclusive with the control instruction in the current verification order;

[0100] In the case where there is no control instruction in the control instruction set to be executed that passes the verification, it may be that there is no other control instruction in the control instruction set to be executed before the control instruction in the current verification order, or it may be that there are other control instructions in the control instruction set to be executed before the control instruction in the current verification order, but they fail the verification.

[0101] S402. If it is determined that the control instruction in the current verification order is not mutually exclusive with the control instruction that passes the verification before the control instruction in the current verification order, it is determined that the control instruction in the current verification order passes the verification.

[0102] When the service corresponding to the current control instruction is not mutually exclusive with the service being executed, if there is a control instruction in the control instruction set to be executed that passes the verification, but the control instruction that passes the verification is mutually exclusive with the control instruction in the current verification order, then the control instruction in the current verification order fails the verification;

[0103] If there is a control instruction in the control instruction set to be executed that passes the verification, but the control instruction that passes the verification is not mutually exclusive with the control instruction in the current verification order, then the control instruction in the current verification order passes the verification.

[0104] S403. If it is determined that there is no control instruction that passes the verification before the control instruction in the current verification order, it is determined that the control instruction in the current verification order passes the verification.

[0105] When the service corresponding to the current control instruction is not mutually exclusive with the service being executed, if there is no control instruction in the control instruction group to be executed that passes the verification before the control instruction of the current verification order, then the control instruction of the current verification order passes the verification; if there is a control instruction in the control instruction group to be executed that passes the verification before the control instruction of the current verification order, then it is also necessary to determine whether the control instruction of the current verification order is mutually exclusive with the control instruction that has passed the verification. If they are not mutually exclusive, the verification passes.

[0106] In the embodiments of the present application, by ensuring the non - mutual exclusivity between control instructions, the system can more effectively utilize resources and improve the ability of concurrent execution.

[0107] Taking an air conditioner as an example, it is found that the control instructions in the control instruction group include a cooling mode, a temperature of 24°C, and a low - speed wind speed. These control instructions can be verified according to a preset verification order; first, verify the cooling mode. If the cooling mode passes the verification, then verify the temperature of 24°C. It is found that the temperature range set by the cooling mode is from 16°C to 23°C and cannot reach 24°C. Then the temperature of 24°C is mutually exclusive with the cooling mode, so the temperature of 24°C fails the verification; finally, verify the low - speed wind speed. It is confirmed that the low - speed wind speed is not mutually exclusive with the cooling mode, so the low - speed wind speed passes the verification.

[0108] The cooling mode and the low - speed wind speed that pass the verification can be sent to the air conditioner for execution. The temperature of 24°C that fails the verification can be fed back to the user, informing the user which control instructions have not been executed, and at the same time, informing the user that the reason why the temperature of 24°C has not been executed is that it is mutually exclusive with the cooling mode.

[0109] Figure 5 The figure shows a control instruction verification device for an intelligent device provided by an embodiment of the present invention. As Figure 5 shown, the device includes: a processing module 501, a verification module 502, and a control module 503.

[0110] The processing module 501 is configured to obtain the control instruction group to be executed by the intelligent device currently, and determine the verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute a corresponding service.

[0111] The processing module 501 is further configured to determine the verification order of each control instruction in the control instruction group, including:

[0112] Obtain the constraint relationship between the control instructions, where the constraint relationship is used to define that one of any two control instructions is a prerequisite instruction and the other is a subsequent instruction that becomes effective after the prerequisite instruction is executed;

[0113] Set the verification order of the prerequisite instruction to be before the verification order of the subsequent instruction.

[0114] The processing module 501 is further configured to set the verification order of the precondition instruction to be after the verification order of the subsequent instruction. The method further includes:

[0115] Sort the control instructions that are not in a constraint relationship according to preset parameters, where the preset parameters include one or more of the following parameters: the energy consumption of the intelligent device, the historical settings of the intelligent device, and the user preference settings.

[0116] The verification module 502 is configured to verify each of the control instructions according to the verification order. If a control instruction in the subsequent position of the verification order is mutually exclusive with a control instruction in the previous position of the verification order that has passed the verification, the control instruction in the subsequent position of the verification order fails the verification.

[0117] The verification module 502 is further configured to verify each of the control instructions according to the verification order, including:

[0118] If the service corresponding to the control instruction in the current verification order is mutually exclusive with the service being executed by the intelligent device, it is determined that the control instruction in the current verification order fails the verification.

[0119] The verification module 502 is further configured to verify each of the control instructions according to the verification order, including:

[0120] If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service being executed by the intelligent device, and the control instruction in the current verification order is not mutually exclusive with the control instruction that has passed the verification and is before the control instruction in the current verification order, it is determined that the control instruction in the current verification order passes the verification; or,

[0121] If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service being executed by the intelligent device, and there is no control instruction that has passed the verification before the control instruction in the current verification order, it is determined that the control instruction in the current verification order passes the verification.

[0122] The control module 503 is configured to control the intelligent device to execute corresponding services according to the control instructions that have passed the verification.

[0123] This application further provides an electronic device, including: at least one processor and a memory;

[0124] The memory stores computer execution instructions;

[0125] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the control instruction verification method of the intelligent device.

[0126] Figure 6 This is a hardware schematic diagram of the electronic device provided by the embodiment of the present invention. As Figure 6 shown, the electronic device 60 provided in this embodiment includes: at least one processor 601 and a memory 602. The device 60 also includes a communication component 603. Among them, the processor 601, the memory 602, and the communication component 603 are connected through a bus 604.

[0127] In the specific implementation process, at least one processor 601 executes the computer-executable instructions stored in the memory 602, so that at least one processor 601 executes the control instruction verification method of the intelligent device as described above.

[0128] For the specific implementation process of the processor 601, reference can be made to the above method embodiment, and its implementation principle and technical effect are similar, so details are not described here in this embodiment.

[0129] In the above Figure 6 shown embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being completed by a hardware processor, or can be completed by a combination of hardware and software modules in the processor.

[0130] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0131] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0132] The present application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method as described above.

[0133] The above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disk. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0134] An exemplary readable storage medium is coupled to the processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0135] The division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0136] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0137] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disks or optical disks.

[0138] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A control instruction verification method for an intelligent device, characterized in that Including: Obtain the control instruction group to be currently executed by the intelligent device, and determine the verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services; Verify each control instruction according to the verification order, where if the control instruction in the later position of the verification order is mutually exclusive with the control instruction in the previous position of the verification order and passed the verification, the control instruction in the later position of the verification order fails the verification; If there is a control instruction that passes the verification, control the intelligent device to execute corresponding services according to the control instruction that passes the verification.

2. The control instruction verification method for the intelligent device according to claim 1, wherein, The determining the verification order of each control instruction in the control instruction group includes: Obtain the constraint relationship between the control instructions, where the constraint relationship is used to define that one of any two control instructions is a prerequisite instruction, and the other is a subsequent instruction that becomes effective after the prerequisite instruction is executed; Set the verification order of the prerequisite instruction to be before the verification order of the subsequent instruction.

3. The control instruction verification method for the intelligent device according to claim 1, wherein The verifying each control instruction according to the verification order includes: If the service corresponding to the control instruction in the current verification order is mutually exclusive with the service being executed by the intelligent device, determine that the control instruction in the current verification order fails the verification.

4. The control instruction verification method for the intelligent device according to claim 1, wherein The verifying each control instruction according to the verification order includes: If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service being executed by the intelligent device, and the control instruction in the current verification order is not mutually exclusive with the control instruction that passed the verification before the control instruction in the current verification order, determine that the control instruction in the current verification order passes the verification; or, If the service corresponding to the control instruction in the current verification order is not mutually exclusive with the service being executed by the intelligent device, and there is no control instruction that passed the verification before the control instruction in the current verification order, determine that the control instruction in the current verification order passes the verification.

5. The control instruction verification method for the intelligent device according to claim 2, characterized in that, After setting the verification order of the prerequisite instruction to be before the verification order of the subsequent instruction, the method further includes: Sort the control instructions that are not in the constraint relationship according to preset parameters, where the preset parameters include one or more of the following parameters: the energy consumption of the intelligent device, the historical settings of the intelligent device, and the user preference settings.

6. The control instruction verification method for the intelligent device according to claim 1, characterized in that, The obtaining the control instruction group to be currently executed by the intelligent device includes: Obtain the control instruction group sent by the user of the intelligent device through the user terminal; Correspondingly, the method further includes: Send the verification result of each control instruction in the control instruction group, whether it passes the verification and / or fails the verification, to the user terminal of the intelligent device, so that the user terminal displays the verification result to the user.

7. A control instruction verification device for an intelligent device, characterized in that Including: A processing module, configured to obtain the control instruction group to be currently executed by the intelligent device, and determine the verification order of each control instruction in the control instruction group, where the control instruction is used to control the intelligent device to execute corresponding services; A verification module, configured to verify each of the control instructions according to the verification order, wherein if a control instruction at a later position in the verification order is mutually exclusive with a control instruction at an earlier position in the verification order and has passed the verification, the control instruction at the later position in the verification order fails the verification; A control module, configured to control the intelligent device to execute corresponding services according to the control instructions that have passed the verification.

8. An electronic device, characterized in that, Comprising: At least one processor and a memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the control instruction verification method of the intelligent device according to any one of claims 1-6.

9. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by a processor, the steps of the control instruction verification method of the intelligent device according to any one of claims 1-6 are implemented.

10. A computer program product, characterized in that, The computer program product includes instructions, which when executed on an electronic device cause the electronic device to implement the control instruction verification method of the intelligent device according to any one of claims 1-6.

Citation Information

Patent Citations

  • Instruction execution method and device, storage medium, and electronic device

    CN108711428A

  • Control method and device for smart home equipment

    CN110493091A

  • Command issuing method and device, storage medium and electronic device

    CN114697150A

  • Equipment control method and device, storage medium and electronic device

    CN115343984A

  • Method and device for controlling intelligent household electrical appliance terminal, storage medium and electronic device

    CN117746853A