Control method, device, electronic device and storage medium
By determining the control end priority and the status of the intelligent device and judging the target control instruction, the problem of instruction conflict in the intelligent device control is solved and more efficient control accuracy is achieved.
Patent Information
- Application Number
- CN202211651159.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-12-21
AI Technical Summary
When existing smart devices are controlled through mobile terminals, it is easy for multiple people to issue commands at the same time, which may conflict or lead to unreasonable commands. This may cause the commands received by the device to be inconsistent with the current working status.
By determining the priority of each control terminal and the current working status of the intelligent device, the target control command is judged and the command conflict is reduced.
It effectively reduces command conflicts, ensures that the commands received by smart devices are consistent with the current working status, and improves the accuracy and efficiency of control.
Smart Images

Figure CN116068918B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent device control technology, and in particular to a control method, device, electronic device and storage medium. Background Art
[0002] Today's smart devices can all be controlled through mobile terminals. However, when controlling through mobile terminals, there may be situations where multiple people give instructions to the device at the same time, resulting in multiple instructions conflicting with each other, multiple people give unreasonable instructions to the device, network delays cause instruction delays, and the device receives conflicting instructions that are inconsistent with the current working status. Summary of the Invention
[0003] In response to the above problems, the present application provides a control method, device, electronic device and storage medium, which can reduce the problem of instruction conflicts.
[0004] The present invention provides a control method, including:
[0005] When receiving control instructions from multiple control terminals, determine the priority of each control terminal;
[0006] A target control instruction is determined based on the priority of each control terminal and the current working state of the intelligent device, so as to control the intelligent device based on the target control instruction.
[0007] In some embodiments, determining the target control instruction based on the priority of each control terminal and the current working state of the smart device includes:
[0008] Determining whether the control instruction issued by the control terminal with the first priority conflicts with the current working state of the smart device;
[0009] If the control instruction issued by the control terminal with the first priority does not conflict with the current working state, determining the control instruction issued by the control terminal with the first priority as the target control instruction;
[0010] When the control instruction sent by the control terminal of the first priority conflicts with the current working state, the target control instruction is determined based on the control instruction sent by the control terminal corresponding to the second priority next to the first priority and the current working state.
[0011] In some embodiments, the method further comprises:
[0012] When the control instruction sent by the control terminal of the first priority conflicts with the current working state, feedback information is sent to the control terminal of the first priority.
[0013] In some embodiments, the method further comprises:
[0014] determining the current working state of the smart device when connections with the respective control terminals are detected;
[0015] Determine a logical set of executable work steps based on the current work state;
[0016] The logic set is sent to each control terminal, so that each control terminal displays the logic set.
[0017] In some embodiments, determining an executable logic set based on the current working state includes:
[0018] Determining a logical sequence number based on the current working state;
[0019] determining a sequence number of executable work steps based on a pre-established logical sequence and the sequence number;
[0020] A logical set of executable work steps is determined based on the sequence numbers of the executable work steps.
[0021] In some embodiments, determining the priority of each control terminal includes:
[0022] Obtaining, from the network device interval, a first device list and a second device list of the control terminals connected to the network device;
[0023] Determining the time for each control terminal to disconnect from the network device based on the first device list and the second device list;
[0024] The priority of the control end is determined based on the order information of the disconnection time, wherein the disconnection time includes: a first time and a second time, the time difference between the first time and the current time is less than the time length between the second time and the current time, and the priority of the control end corresponding to the first time is greater than the priority of the control end corresponding to the second time.
[0025] In some embodiments, the method further comprises:
[0026] Detect whether a control button on the smart device is pressed;
[0027] determining whether the smart device is in an idle state based on whether a control button on the smart device is pressed, wherein if the control button on the smart device is not pressed, the smart device is determined to be in an idle state, and if the control button on the smart device is pressed, the smart device is determined to be in an active state;
[0028] When the smart device is in an idle state, it is allowed to receive control instructions sent by the control terminal;
[0029] When the smart device is in use, it is prohibited to execute instructions sent by the control terminal.
[0030] An embodiment of the present application provides a control device, including:
[0031] A first determining module is used to determine the priority of each control terminal when control instructions issued by multiple control terminals are obtained;
[0032] The second determining module is configured to determine a target control instruction based on the priority of each control terminal and the current working state of the intelligent device, so as to control the intelligent device based on the target control instruction.
[0033] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the control methods described above is executed.
[0034] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by one or more processors and can be used to implement the above-mentioned control method.
[0035] The present application provides a control method, device, electronic device and storage medium, which determine the priority of each control terminal when obtaining control instructions issued by multiple control terminals; determine the target control instruction based on the priority of each control terminal and the current working status of the smart device, and control the smart device based on the target control instruction, thereby reducing the problem of instruction conflict. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Hereinafter, the present application will be described in more detail based on embodiments with reference to the accompanying drawings.
[0037] Figure 1 A schematic diagram of an implementation flow of a control method provided in an embodiment of the present application;
[0038] Figure 2 A schematic structural diagram of a control device provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0040] In the drawings, like components are given like reference numerals, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0042] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0043] If similar descriptions of "first\second\third" appear in the application documents, the following explanation will be added. In the following description, the terms "first\second\third" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0045] To address the problems existing in the related art, embodiments of the present application provide a control method, which is applied to electronic devices such as computers, mobile terminals, and smart devices. The mobile terminals may include mobile phones, tablet computers, and the like. In some embodiments, the electronic device may be a controller, intermediate processor, or the like of the smart device. The functions implemented by the control method provided in the embodiments of the present application can be implemented by a processor of the electronic device calling program code, wherein the program code may be stored in a computer storage medium.
[0046] Example 1
[0047] The embodiment of the present application provides a control method, Figure 1 A schematic diagram of the implementation flow of a control method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, including:
[0048] Step S101: when control instructions issued by multiple control terminals are obtained, the priority of each control terminal is determined.
[0049] In the embodiment of the present application, the control terminal may be a mobile terminal, a remote controller, etc. In the embodiment of the present application, multiple control terminals can control the smart device. When multiple control terminals send control instructions simultaneously within a certain period of time, the electronic device obtains the control instructions issued by multiple control terminals.
[0050] In an embodiment of the present application, the priority of each control terminal can be established in advance. When control instructions issued by multiple control terminals are obtained, the control instructions can be parsed to obtain the identification information of each control terminal. The priority of each control terminal established in advance can be queried through the identification information to determine the priority of each control terminal.
[0051] In some embodiments, step S101 may be implemented by the following steps:
[0052] Step S1011 , obtaining from the network device interval a first device list and a second device list of the control terminal connected to the network device.
[0053] In the embodiment of the present application, the network device may be a router or other device. In the embodiment of the present application, the electronic device may interact with the router via an interval to obtain the first device list and the second device list of the control terminal connected to the network device from the network device.
[0054] Step S1012: determining the time for each control terminal to disconnect from the network device based on the first device list and the second device list.
[0055] In the embodiment of the present application, the electronic device can compare the difference between the first device list and the second device list to determine which device is disconnected from the network device and which device is connected to the network device, and can also determine the time of disconnection.
[0056] For example, if control terminal A disconnects from the home network at time c, the smart device records that A left at time c; if control terminal B disconnects from the home network at the next time d, the smart device records that B left at time d.
[0057] Step S1013, determine the priority of each control end based on the order information of the disconnection time, wherein the disconnection time includes: a first time and a second time, the time difference between the first time and the current time is less than the time length between the second time and the current time, and the priority of the control end corresponding to the first time is greater than the priority of the control end corresponding to the second time.
[0058] Continuing with the above example, the priority of each control terminal can be marked by a sequence number, 01 (mobile terminal B), 02 (mobile terminal A), etc. The later the mobile terminal leaves the home network, the smaller the sequence number. For a mobile device that has never left the home network, the sequence number of the mobile device is marked as the smallest.
[0059] Step S102 : determining a target control instruction based on the priority of each control terminal and the current working state of the smart device, so as to control the smart device based on the target control instruction.
[0060] In the embodiment of the present application, step S102 can be implemented by the following steps:
[0061] Step S1021: determine whether the control instruction sent by the control terminal of the first priority conflicts with the current working state of the smart device.
[0062] In an embodiment of the present application, the electronic device can obtain the current working status of the smart device, each working status corresponds to a working step, and the electronic device pre-stores the serial number values of the logical order of the working steps of each working status. The electronic device can determine the serial number value corresponding to the current working status, and then compare it with the serial number value corresponding to the control instruction issued by the control end of the first priority to determine whether the control instruction issued by the control end of the first priority conflicts with the current working status of the smart device.
[0063] For example, the logical order of the working steps of a smart device is: A1, A2, ... Rn. For example, the working steps of a smart washing machine are: idle, automatic addition of laundry detergent, washing, dehydration, and drying. Each process corresponds to a sequence number value. The sequence number A0 is 0 (idle), the sequence number A1 is 1, .... The sequence number An is n, and the logical order of the working steps is arranged from 1 to n. A smart washing machine has a total of 5 working steps. The logical set of working steps that the smart washing machine can execute can be expressed as:
[0064] Set 0: contains (1, 2, 3, 4), index is 0 (currently at 0, 1-4 can be executed);
[0065] Set 1: contains (2, 3, 4), index is 1 (currently at 1, 2-4 can be executed);
[0066] Set 2: contains (3, 4), index is 2 (currently at 2, 3-4 can be executed);
[0067] Set 3: contains (4), index is 3, (currently at 3, can execute 4);
[0068] Set 4: empty set, index 4 (currently at 4, all tasks cannot be executed).
[0069] Exemplarily, when the serial number value corresponding to the current working state is 1, and the serial number value corresponding to the control instruction is 0, the control instruction sent by the control terminal of the first priority conflicts with the current working state of the smart device.
[0070] For another example, when the serial number value corresponding to the current working state is 2, and the serial number value corresponding to the control instruction is 3, the control instruction sent by the control terminal of the first priority does not conflict with the current working state of the smart device.
[0071] Step S1022: If the control instruction sent by the control terminal of the first priority does not conflict with the current working state, the control instruction sent by the control terminal of the first priority is determined as the target control instruction.
[0072] In the embodiment of the present application, since the control instruction sent by the control terminal of the first priority does not conflict with the current working state, the smart device can execute the control instruction sent by the control terminal of the first priority.
[0073] Step S1023: When the control instruction sent by the control terminal of the first priority conflicts with the current working state, a target control instruction is determined based on the control instruction sent by the control terminal corresponding to the second priority next to the first priority and the current working state.
[0074] In the embodiment of the present application, the method of determining the target control instruction based on the control instruction issued by the control terminal corresponding to the second priority level next to the first priority level and the current working state is the same as the method of determining the target control instruction with the first priority level.
[0075] In some embodiments, while step S1022 is being performed, the method further includes:
[0076] Step S1024: When the control instruction sent by the control terminal of the first priority conflicts with the current working state, feedback information is sent to the control terminal of the first priority.
[0077] A control method provided by the present application determines the priority of each control terminal when control instructions issued by multiple control terminals are obtained; determines the target control instruction based on the priority of each control terminal and the current working status of the smart device, and controls the smart device based on the target control instruction, which can reduce the problem of instruction conflict.
[0078] In some embodiments, before step S101, the method further includes:
[0079] Step S1: When detecting that the smart device is connected to each control terminal, determine the current working state of the smart device.
[0080] In an embodiment of the present application, after the control end opens the APP interface for operating the smart device, the electronic device can display whether it is connected to the control end.
[0081] In the embodiment of the present application, when connected, the electronic device can read the current working state of the smart device; if not connected, the electronic device remains silent.
[0082] Step S2: determining a logical set of executable work steps based on the current work state.
[0083] In an embodiment of the present application, the electronic device can determine the serial number value corresponding to the current working state. Continuing with the above example, if the serial number value is 3, the logical set of executable working steps is set 3, that is, the steps corresponding to serial number 4 are intelligently executed.
[0084] Step S3: sending the logic set to each control terminal so that each control terminal displays the logic set.
[0085] In an embodiment of the present application, the electronic device can send a logic set to each control end, and each control end displays the logic set. Continuing with the above example, only the step with serial number 4 is displayed, while the logical order of the working steps corresponding to the serial numbers 1, 2, and 3 on the control interface is shielded.
[0086] If the current working state of the smart device is idle, the serial number value is 0, and the buttons of the steps corresponding to the serial numbers 1, 2, 3, and 4 on the control interface can all be operated.
[0087] The control method provided in the embodiment of the present application determines the current working status of the smart device when detecting the connection with each control terminal; determines a logical set of executable working steps based on the current working status; and sends the logical set to each control terminal so that each control terminal displays the logical set, which can limit the issuance of unreasonable control instructions, thereby further reducing instruction conflicts.
[0088] In some embodiments, before step S101, the method further includes:
[0089] Step S4: Detect whether the control button on the smart device is pressed.
[0090] In an embodiment of the present application, by detecting whether the button of the smart device is pressed, it is possible to know whether the smart device is in an idle state. Pressing the button will generate an electrical signal to the smart device control module. By determining whether the electrical signal is received, it is known whether the smart device is being used by someone nearby.
[0091] Step S5, determining whether the smart device is in an idle state based on whether the control button on the smart device is pressed, wherein if the control button on the smart device is not pressed, the smart device is determined to be in an idle state; if the control button on the smart device is pressed, the smart device is determined to be in use.
[0092] In the embodiment of the present application, the idle state can be considered as no one is using it nearby, and the in-use state can be considered as someone is using it nearby.
[0093] Step S6: When the smart device is in an idle state, it is allowed to receive control instructions sent by the control terminal;
[0094] Step S7: When the smart device is in use, the execution of instructions sent by the control terminal is prohibited.
[0095] In some embodiments, when the smart device is in use, a message "the device is in use" may be fed back to the control terminal.
[0096] Example 2
[0097] Based on the foregoing embodiments, an embodiment of the present application provides a control device, wherein the modules included in the device and the units included in each module can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.
[0098] The embodiment of the present application provides a control device, Figure 2 A schematic diagram of the structure of a control device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the control device 200 includes:
[0099] The first determining module 201 is configured to determine the priority of each control terminal when control instructions issued by multiple control terminals are obtained;
[0100] The second determining module 202 is configured to determine a target control instruction based on the priority of each control terminal and the current working state of the smart device, so as to control the smart device based on the target control instruction.
[0101] In some embodiments, determining the target control instruction based on the priority of each control terminal and the current working state of the smart device includes:
[0102] Determining whether the control instruction issued by the control terminal with the first priority conflicts with the current working state of the smart device;
[0103] If the control instruction issued by the control terminal with the first priority does not conflict with the current working state, determining the control instruction issued by the control terminal with the first priority as the target control instruction;
[0104] When the control instruction sent by the control terminal of the first priority conflicts with the current working state, the target control instruction is determined based on the control instruction sent by the control terminal corresponding to the second priority next to the first priority and the current working state.
[0105] In some embodiments, the control device 200 is further configured to:
[0106] When the control instruction sent by the control terminal of the first priority conflicts with the current working state, feedback information is sent to the control terminal of the first priority.
[0107] In some embodiments, the control device 200 is further configured to:
[0108] determining the current working state of the smart device when connections with the respective control terminals are detected;
[0109] Determine a logical set of executable work steps based on the current work state;
[0110] The logic set is sent to each control terminal, so that each control terminal displays the logic set.
[0111] In some embodiments, determining an executable logic set based on the current working state includes:
[0112] Determining a logical sequence number based on the current working state;
[0113] determining a sequence number of executable work steps based on a pre-established logical sequence and the sequence number;
[0114] A logical set of executable work steps is determined based on the sequence numbers of the executable work steps.
[0115] In some embodiments, determining the priority of each control terminal includes:
[0116] Obtaining, from the network device interval, a first device list and a second device list of the control terminals connected to the network device;
[0117] Determining the time for each control terminal to disconnect from the network device based on the first device list and the second device list;
[0118] The priority of the control end is determined based on the order information of the disconnection time, wherein the disconnection time includes: a first time and a second time, the time difference between the first time and the current time is less than the time length between the second time and the current time, and the priority of the control end corresponding to the first time is greater than the priority of the control end corresponding to the second time.
[0119] In some embodiments, the control device 200 is further configured to:
[0120] Detect whether a control button on the smart device is pressed;
[0121] determining whether the smart device is in an idle state based on whether a control button on the smart device is pressed, wherein if the control button on the smart device is not pressed, the smart device is determined to be in an idle state, and if the control button on the smart device is pressed, the smart device is determined to be in an active state;
[0122] When the smart device is in an idle state, it is allowed to receive control instructions sent by the control terminal;
[0123] When the smart device is in use, it is prohibited to execute instructions sent by the control terminal.
[0124] It should be noted that, in the embodiment of the present application, if the above-mentioned control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0125] Accordingly, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps in the control method provided in the above embodiment are implemented.
[0126] Example 3
[0127] An embodiment of the present application provides an electronic device; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to enable communication between these components. The user interface 503 may include a control screen, and the external communication interface 504 may include a standard wired interface and a wireless interface. The processor 501 is configured to execute the control method program stored in the memory to implement the steps of the control method provided in the above embodiment.
[0128] The description of the above electronic device and storage medium embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the computer device and storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0129] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0130] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0131] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0132] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components controlled or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0133] The units described above as separate components may or may not be physically separated, and the components controlled by the units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0134] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0135] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROMs), magnetic disks, optical disks, and other media that can store program codes.
[0136] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a controller to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0137] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A control method, characterized in that: include: When receiving control instructions from multiple control terminals, determine the priority of each control terminal; The step of determining the priority of each control terminal when control instructions issued by multiple control terminals are obtained includes: Obtaining, from the network device interval, a first device list and a second device list of the control terminals connected to the network device; Determining the time for each control terminal to disconnect from the network device based on the first device list and the second device list; Determining the priority of each control terminal based on the order of disconnection time, wherein the disconnection time includes: a first time and a second time, the time difference between the first time and the current time is less than the time difference between the second time and the current time, and the priority of the control terminal corresponding to the first time is greater than the priority of the control terminal corresponding to the second time; The control terminal that is disconnected from the network device later has a higher priority, and the control terminal that has never been disconnected from the network device has the highest priority. A target control instruction is determined based on the priority of each control terminal and the current working state of the intelligent device, so as to control the intelligent device based on the target control instruction.
2. The method according to claim 1, characterized in that The determining of the target control instruction based on the priority of each control terminal and the current working state of the intelligent device includes: Determining whether the control instruction issued by the control terminal with the first priority conflicts with the current working state of the smart device; If the control instruction issued by the control terminal with the first priority does not conflict with the current working state, determining the control instruction issued by the control terminal with the first priority as the target control instruction; When the control instruction sent by the control terminal of the first priority conflicts with the current working state, the target control instruction is determined based on the control instruction sent by the control terminal corresponding to the second priority next to the first priority and the current working state.
3. The method according to claim 2, characterized in that The method further comprises: When the control instruction sent by the control terminal of the first priority conflicts with the current working state, feedback information is sent to the control terminal of the first priority.
4. The method according to claim 1, wherein The method further comprises: determining the current working state of the smart device when connections with the respective control terminals are detected; Determine a logical set of executable work steps based on the current work state; The logic set is sent to each control terminal, so that each control terminal displays the logic set.
5. The method according to claim 4, characterized in that The determining of an executable logic set based on the current working state includes: Determining a logical sequence number based on the current working state; determining a sequence number of executable work steps based on a pre-established logical sequence and the sequence number; A logical set of executable work steps is determined based on the sequence numbers of the executable work steps.
6. The method according to claim 1, characterized in that The method further comprises: Detect whether a control button on the smart device is pressed; determining whether the smart device is in an idle state based on whether a control button on the smart device is pressed, wherein if the control button on the smart device is not pressed, the smart device is determined to be in an idle state, and if the control button on the smart device is pressed, the smart device is determined to be in an active state; When the smart device is in an idle state, it is allowed to receive control instructions sent by the control terminal; When the smart device is in use, it is prohibited to execute instructions sent by the control terminal.
7. A control device, characterized in that: include: A first determining module is used to determine the priority of each control terminal when control instructions issued by multiple control terminals are obtained; The first determining module is further configured to: determine the priority of each control terminal when the control instructions issued by multiple control terminals are obtained, including: Obtaining, from the network device interval, a first device list and a second device list of the control terminals connected to the network device; Determining the time for each control terminal to disconnect from the network device based on the first device list and the second device list; Determining the priority of each control terminal based on the order of disconnection time, wherein the disconnection time includes: a first time and a second time, the time difference between the first time and the current time is less than the time difference between the second time and the current time, and the priority of the control terminal corresponding to the first time is greater than the priority of the control terminal corresponding to the second time; The control terminal that is disconnected from the network device later has a higher priority, and the control terminal that has never been disconnected from the network device has the highest priority. The second determining module is configured to determine a target control instruction based on the priority of each control terminal and the current working state of the intelligent device, so as to control the intelligent device based on the target control instruction.
8. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the control method according to any one of claims 1 to 6 is executed.
9. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent household electrical appliance instruction conflict processing method and device, storage medium and electronic device
CN111143077A
Household appliance control method and device
CN113655727A
Method and device for avoiding control instruction conflict, processor and smart home system
CN114114941A