CN114114941A - Method and device for avoiding control instruction conflict, processor and intelligent home system - Google Patents

Method and device for avoiding control instruction conflict, processor and intelligent home system Download PDF

Info

Publication number
CN114114941A
CN114114941A CN202111417775.5A CN202111417775A CN114114941A CN 114114941 A CN114114941 A CN 114114941A CN 202111417775 A CN202111417775 A CN 202111417775A CN 114114941 A CN114114941 A CN 114114941A
Authority
CN
China
Prior art keywords
initial control
intelligent
control instruction
identification information
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111417775.5A
Other languages
Chinese (zh)
Inventor
史泽坤
李绍斌
宋德超
王沅召
王永永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111417775.5A priority Critical patent/CN114114941A/en
Publication of CN114114941A publication Critical patent/CN114114941A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application provides a method, a device, a processor and an intelligent home system for avoiding control instruction conflict, wherein the method comprises the following steps: receiving a plurality of initial control instructions sent by a plurality of intelligent terminals; analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction; according to the scheme, the initial control instructions sent by the intelligent terminals are accurately sent to the corresponding intelligent home equipment, and therefore the problem that control instructions sent by the terminal equipment are difficult to avoid conflict in the prior art is solved.

Description

Method and device for avoiding control instruction conflict, processor and intelligent home system
Technical Field
The application relates to the field of control of intelligent home equipment, in particular to a method and a device for avoiding control instruction conflict, a computer readable storage medium, a processor and an intelligent home system.
Background
With continuous improvement of science and technology, cloud interconnection technology is gradually matured, cooperation among a plurality of companies is increasingly close, original one-to-one cooperation cannot meet cooperation relations among the companies at present, and the relation is gradually changed into one-to-many and many-to-many relations. However, when the form is changed to one-to-many cloud docking or many-to-many cloud docking, when a plurality of terminal devices send control instructions to interconnected devices, instruction conflict easily occurs, that is, when a plurality of intelligent terminals send a plurality of control instructions to a plurality of intelligent home devices at the same time or a plurality of intelligent terminals send a plurality of control instructions to one intelligent home device at the same time, the intelligent home devices do not know which control instruction to execute, so that the problem of control instruction conflict is generated.
Therefore, a method for avoiding collision of control commands transmitted by a plurality of terminal devices is needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the technology described herein and, therefore, certain information may be included in the background that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide a method and a device for avoiding control instruction conflict, a computer readable storage medium, a processor and an intelligent home system, so as to solve the problem that the conflict of control instructions sent by a plurality of terminal devices is difficult to avoid in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for avoiding a control instruction conflict, including: receiving a plurality of initial control instructions sent by a plurality of intelligent terminals; analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction; and determining the corresponding intelligent terminal according to the first identification information, and sending at least a predetermined part of each initial control instruction to the corresponding intelligent home equipment bound by the intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the predetermined part is instruction information used for controlling the intelligent home equipment to execute the actions.
Optionally, in a case that there is one smart home device, before receiving a plurality of initial control instructions sent by a plurality of smart terminals, the method further includes: and carrying out priority sequencing on the plurality of intelligent terminals according to a preset sequencing rule, and configuring second identification information for the initial control instruction corresponding to each intelligent terminal, wherein the second identification information is used for representing the priority sequence of the corresponding intelligent terminal.
Optionally, at least a predetermined portion of each of the initial control instructions is sent to the corresponding smart home device bound to the smart terminal to control the smart home device to execute a corresponding action, where the method includes: performing priority ordering on the plurality of initial control instructions according to the second identification information carried by the initial control instructions to obtain a plurality of ordered initial control instructions; and sending at least a preset part of the corresponding initial control instruction to the corresponding intelligent home equipment bound by the intelligent terminal according to the priority sequence so as to control the intelligent home equipment to execute corresponding actions.
Optionally, the method further comprises: and under the condition that the intelligent household equipment executes a second initial control instruction, sending a first initial control instruction to the intelligent household equipment so that the intelligent household equipment suspends the execution of the second initial control instruction and executes the first initial control instruction, wherein the priority of the first initial control instruction is higher than that of the second initial control instruction.
Optionally, the sending at least a predetermined portion of each of the initial control instructions to the corresponding smart home device bound to the smart terminal includes: and performing preset processing on each initial control instruction according to preset format information to obtain the corresponding preset part.
Optionally, after controlling the smart home device to execute the corresponding action, the method further includes: receiving instruction completion information sent by the intelligent home equipment, wherein the instruction completion information is used for representing information that the intelligent home equipment finishes executing an initial control instruction; and sending the instruction completion information to the intelligent terminal.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for avoiding a control instruction conflict, including: the first receiving unit is used for receiving a plurality of initial control instructions sent by a plurality of intelligent terminals; the analysis unit is used for analyzing each received initial control instruction to obtain a plurality of first identification information, and the first identification information is used for representing the intelligent terminal which sends the initial control instruction; and the determining unit is used for determining the corresponding intelligent terminal according to the first identification information, and sending at least a predetermined part of each initial control instruction to the corresponding intelligent household equipment bound by the intelligent terminal so as to control the intelligent household equipment to execute a corresponding action, wherein the predetermined part is instruction information used for controlling the intelligent household equipment to execute the action.
According to still another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes any one of the methods.
According to still another aspect of the embodiments of the present invention, there is further provided a processor, configured to execute a program, where the program executes any one of the methods.
According to an aspect of the embodiments of the present invention, there is also provided an intelligent home system, including: intelligent household equipment; the cloud platform is in communication connection with the intelligent household equipment and is used for executing any one of the methods; and the intelligent terminal is in communication connection with the cloud platform.
In the method for avoiding the control instruction conflict, firstly, a plurality of initial control instructions for controlling the intelligent household equipment, which are sent by a plurality of intelligent terminals, are received; then, analyzing each received initial control instruction to obtain a plurality of first identification information; and finally, according to the obtained plurality of pieces of first identification information, determining the intelligent terminals corresponding to the initial control instructions, and sending at least a preset part of each initial control instruction to the intelligent household equipment bound to the corresponding intelligent terminal so as to control the intelligent household equipment to execute corresponding actions, wherein the first identification information is used for representing the intelligent terminal sending the initial control instruction, and the preset part is instruction information used for controlling the intelligent household equipment to execute the actions. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and is used for controlling which intelligent household equipment can be accurately known through the first identification information, and at least a predetermined part of each initial control instruction is sent to the corresponding intelligent household equipment bound with the intelligent terminal according to the first identification information, so that the intelligent household equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 shows a schematic diagram of a method of avoiding control instruction conflicts according to an embodiment of the present application;
FIG. 2 shows a schematic diagram of an apparatus to avoid control instruction conflicts according to an embodiment of the present application;
fig. 3 shows a schematic diagram of a plurality of terminal devices controlling a plurality of smart home devices according to an embodiment of the present application;
fig. 4 shows a schematic diagram of controlling the same smart home device by multiple terminal devices according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As mentioned in the background of the invention, in order to solve the above problem, it is difficult to avoid the conflict of control commands sent by a plurality of terminal devices in the prior art, in an exemplary embodiment of the present application, a method, an apparatus, a computer-readable storage medium, a processor and a smart home system for avoiding the conflict of control commands are provided.
According to an embodiment of the present application, a method of avoiding control instruction conflicts is provided.
Fig. 1 is a flowchart of a method of avoiding control instruction conflicts according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, receiving a plurality of initial control instructions sent by a plurality of intelligent terminals;
step S102, analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction;
step S103, determining the corresponding smart terminal according to the first identification information, and sending at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action.
In the method for avoiding the control instruction conflict, firstly, a plurality of initial control instructions for controlling the intelligent household equipment, which are sent by a plurality of intelligent terminals, are received; then, analyzing each received initial control instruction to obtain a plurality of first identification information; and finally, according to the obtained plurality of pieces of first identification information, determining the intelligent terminals corresponding to the initial control instructions, and sending at least a predetermined part of each initial control instruction to the intelligent home equipment bound with the corresponding intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the first identification information is used for representing the intelligent terminal sending the initial control instruction, and the predetermined part is instruction information used for controlling the intelligent home equipment to execute actions. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
In a specific embodiment of the application, the received initial control instruction not only carries an instruction for controlling the smart home device, but also carries user information of the smart terminal, that is, information such as an account number and a password, before the cloud platform sends the initial control instruction to the smart home device, the cloud platform can compile the initial control instruction, the compiled initial control instruction can only carry a corresponding instruction for controlling the smart home device, that is, at least a predetermined part of each initial control instruction can be sent to the smart home device bound to the corresponding smart terminal, so as to control the smart home device to execute a corresponding action.
In an actual application process, the intelligent terminal may be a smart phone, a tablet, a computer, or the like. In addition, the intelligent household equipment can be household equipment such as a washing machine, an air conditioner and a humidifier.
Specifically, the method for avoiding the control instruction conflict may be performed by the cloud platform.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
In an embodiment of the application, in a case that there is one smart home device, before receiving a plurality of initial control instructions sent by a plurality of smart terminals, the method further includes: and performing priority ranking on the plurality of intelligent terminals according to a preset ranking rule, and configuring second identification information for the initial control instruction corresponding to each intelligent terminal, wherein the second identification information is used for representing the priority sequence of the corresponding intelligent terminal. In this embodiment, according to a preset ordering rule, priority ordering is performed on a plurality of the intelligent terminals, second identification information is configured for the initial control instructions corresponding to the intelligent terminals, and a subsequent cloud platform can order the plurality of the initial control instructions according to the second identification information and send the plurality of the initial control instructions to the intelligent home equipment, so that the intelligent home equipment can correctly execute the plurality of the initial control instructions according to the received sequence, thereby not only reducing the vicious problem of deadlock of the intelligent home equipment, but also further solving the problem that in the prior art, it is difficult to avoid conflict between the control instructions sent by the plurality of the terminal equipment.
Specifically, the preset sorting rule may be set by the user, or may be set by a level of an account of the user.
In order to reduce the vicious problem of deadlock of the smart home devices, in another embodiment of the present application, at least a predetermined portion of each of the initial control instructions is sent to a corresponding smart home device bound to the smart terminal, so as to control the smart home device to execute a corresponding action, where the method includes: according to the second identification information carried by the initial control instruction, performing priority ordering on a plurality of initial control instructions to obtain a plurality of ordered initial control instructions; and sending at least a preset part of the corresponding initial control instruction to the corresponding intelligent home equipment bound by the intelligent terminal according to the priority sequence so as to control the intelligent home equipment to execute corresponding actions.
Specifically, in an actual application process, the cloud platform performs priority ordering on the received multiple initial control instructions according to the second identification information, and sends the multiple initial control instructions after the priority ordering to the intelligent home device, the intelligent home device performs execution according to the order of the received multiple initial control instructions, and when the intelligent home device performs an initial control instruction with a higher priority, the intelligent home device performs a locking mode, that is, does not receive a new initial control instruction until the initial control instruction being executed is completed, so that the intelligent home device can perform the initial control execution correctly, the vicious problem of deadlock of the intelligent home device can be avoided, and the execution efficiency of the initial control instructions is further improved.
In order to ensure that the initial control command with a higher priority can be executed in a timely manner, in another embodiment of the present application, the method further includes: and under the condition that the intelligent household equipment executes a second initial control instruction, sending a first initial control instruction to the intelligent household equipment so that the intelligent household equipment suspends executing the second initial control instruction and executes the first initial control instruction, wherein the priority of the first initial control instruction is higher than that of the second initial control instruction.
In an actual application process, under the condition that the intelligent home equipment receives the first initial control instruction, the currently executed second initial control instruction is suspended, the first initial control instruction with higher priority is preferentially executed, and after the intelligent home equipment finishes executing the first initial control instruction with higher priority, the second initial control instruction is continuously executed.
In another embodiment of the application, sending at least a predetermined portion of each of the initial control commands to a corresponding smart home device bound to the smart terminal includes: and according to preset format information, performing preset processing on each initial control instruction to obtain the corresponding preset part. In this embodiment, according to the preset format information, each initial control instruction is subjected to predetermined processing to obtain the corresponding predetermined part, and then the predetermined part is sent to the smart home device, so that not only is the readability of the control instruction received by the smart home device good, but also the smart home device can execute the control instruction more correctly and efficiently.
In a specific embodiment of the application, the preset format information may be format information of a control instruction that can be directly read by the smart home device.
In order to enable the intelligent terminal device to timely know the execution condition of the initial control instruction, in an embodiment of the application, after controlling the intelligent home device to execute a corresponding action, the method further includes: receiving instruction completion information sent by the intelligent home equipment, wherein the instruction completion information is used for representing information that the intelligent home equipment completes execution of an initial control instruction; and sending the instruction completion information to the intelligent terminal.
Certainly, in an actual application process, when the smart home device fails to execute the initial control instruction successfully, corresponding execution condition information may be sent to the smart terminal, so that the smart terminal can timely know the reason why the initial control instruction fails to be executed successfully.
It should be noted that the device for avoiding control instruction collision in the embodiment of the present application may be used to execute the method for avoiding control instruction collision in the embodiment of the present application. The following describes an apparatus for avoiding control command collision according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an apparatus for avoiding control instruction collision according to an embodiment of the present application. As shown in fig. 2, the apparatus includes:
a first receiving unit 10, configured to receive multiple initial control instructions sent by multiple intelligent terminals;
an analyzing unit 20, configured to analyze each received initial control instruction to obtain a plurality of first identification information, where the first identification information is used to represent the intelligent terminal that sent the initial control instruction;
a determining unit 30, configured to determine the corresponding smart terminal according to the first identifier information, and send at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal, so as to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action.
In the device for avoiding the control instruction conflict, the first receiving unit is used for receiving a plurality of initial control instructions sent by a plurality of intelligent terminals; the analysis unit is used for analyzing each received initial control instruction to obtain a plurality of first identification information, and the first identification information is used for representing the intelligent terminal which sends the initial control instruction; the determining unit is configured to determine the corresponding smart terminal according to the first identification information, and send at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
In a specific embodiment of the application, the received initial control instruction not only carries an instruction for controlling the smart home device, but also carries user information of the smart terminal, that is, information such as an account number and a password, before the cloud platform sends the initial control instruction to the smart home device, the cloud platform can compile the initial control instruction, the compiled initial control instruction can only carry a corresponding instruction for controlling the smart home device, that is, at least a predetermined part of each initial control instruction can be sent to the smart home device bound to the corresponding smart terminal, so as to control the smart home device to execute a corresponding action.
In an actual application process, the intelligent terminal may be a smart phone, a tablet, a computer, or the like. In addition, the intelligent household equipment can be household equipment such as a washing machine, an air conditioner and a humidifier.
Specifically, the method for avoiding the control instruction conflict may be performed by the cloud platform.
In an embodiment of the application, the apparatus further includes a configuration unit, configured to, in a case that there is one smart home device, perform priority ordering on the plurality of smart terminals according to a preset ordering rule before receiving a plurality of initial control instructions sent by the plurality of smart terminals, and configure second identification information for the initial control instruction corresponding to each of the smart terminals, where the second identification information is used to represent a priority order of the corresponding smart terminal. In this embodiment, according to a preset ordering rule, priority ordering is performed on a plurality of the intelligent terminals, second identification information is configured for the initial control instructions corresponding to the intelligent terminals, and a subsequent cloud platform can order the plurality of the initial control instructions according to the second identification information and send the plurality of the initial control instructions to the intelligent home equipment, so that the intelligent home equipment can correctly execute the plurality of the initial control instructions according to the received sequence, thereby not only reducing the vicious problem of deadlock of the intelligent home equipment, but also further solving the problem that in the prior art, it is difficult to avoid conflict between the control instructions sent by the plurality of the terminal equipment.
Specifically, the preset sorting rule may be set by the user, or may be set by a level of an account of the user.
In order to reduce the vicious problem of deadlock of the smart home device, in another embodiment of the present application, the determining unit includes a sorting module and a sending module, where the sorting module is configured to perform priority sorting on a plurality of initial control instructions according to the second identification information carried by the initial control instruction, so as to obtain a plurality of sorted initial control instructions; the sending module is configured to send at least a predetermined portion of the corresponding initial control instruction to the corresponding smart home device bound to the smart terminal according to the priority order, so as to control the smart home device to execute a corresponding action.
Specifically, in an actual application process, the cloud platform performs priority ordering on the received multiple initial control instructions according to the second identification information, and sends the multiple initial control instructions after the priority ordering to the intelligent home device, the intelligent home device performs execution according to the order of the received multiple initial control instructions, and when the intelligent home device performs an initial control instruction with a higher priority, the intelligent home device performs a locking mode, that is, does not receive a new initial control instruction until the initial control instruction being executed is completed, so that the intelligent home device can perform the initial control execution correctly, the vicious problem of deadlock of the intelligent home device can be avoided, and the execution efficiency of the initial control instructions is further improved.
In order to ensure that the initial control command with a higher priority can be executed in a timely manner, in another embodiment of the present application, the apparatus further includes a first sending unit, configured to send a first initial control command to the smart home devices when the smart home devices execute a second initial control command, so that the smart home devices suspend executing the second initial control command, and execute the first initial control command, where a priority of the first initial control command is higher than a priority of the second initial control command.
In an actual application process, under the condition that the intelligent home equipment receives the first initial control instruction, the currently executed second initial control instruction is suspended, the first initial control instruction with higher priority is preferentially executed, and after the intelligent home equipment finishes executing the first initial control instruction with higher priority, the second initial control instruction is continuously executed.
In another embodiment of the present application, the determining unit further includes a predetermined processing module, configured to perform predetermined processing on each of the initial control instructions according to preset format information to obtain the corresponding predetermined portion. In this embodiment, according to the preset format information, each initial control instruction is subjected to predetermined processing to obtain the corresponding predetermined part, and then the predetermined part is sent to the smart home device, so that not only is the readability of the control instruction received by the smart home device good, but also the smart home device can execute the control instruction more correctly and efficiently.
In a specific embodiment of the application, the preset format information may be format information of a control instruction that can be directly read by the smart home device.
In order to enable the intelligent terminal device to know the execution condition of the initial control instruction in time, in an embodiment of the application, the method further includes a second receiving unit and a second sending unit, where the second receiving unit is configured to receive instruction completion information sent by the intelligent home device after controlling the intelligent home device to execute a corresponding action, and the instruction completion information is used to represent information that the intelligent home device has executed an initial control instruction; the second sending unit is used for sending the instruction completion information to the intelligent terminal.
Certainly, in an actual application process, when the smart home device fails to execute the initial control instruction successfully, corresponding execution condition information may be sent to the smart terminal, so that the smart terminal can timely know the reason why the initial control instruction fails to be executed successfully.
The device for avoiding the control instruction conflict comprises a processor and a memory, wherein the first receiving unit, the analyzing unit, the determining unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that control instructions sent by a plurality of terminal devices are difficult to avoid conflict in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, where the program, when executed by a processor, implements the above method for avoiding control instruction collision.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for avoiding the control instruction conflict is executed when the program runs.
In an exemplary embodiment of the present application, there is further provided an intelligent home system, including: intelligent household equipment; the cloud platform is in communication connection with the intelligent household equipment and is used for executing any one of the methods; and the intelligent terminal is in communication connection with the cloud platform.
The intelligent home system comprises intelligent home equipment, a cloud platform and intelligent terminals, wherein the cloud platform can execute the method for avoiding the control instruction conflict; then, analyzing each received initial control instruction to obtain a plurality of first identification information; and finally, according to the obtained plurality of pieces of first identification information, determining the intelligent terminals corresponding to the initial control instructions, and sending at least a predetermined part of each initial control instruction to the intelligent home equipment bound with the corresponding intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the first identification information is used for representing the intelligent terminal sending the initial control instruction, and the predetermined part is instruction information used for controlling the intelligent home equipment to execute actions. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
In order to make the technical solutions of the present application more clearly understood and more obvious to those skilled in the art, the following description is given with reference to specific embodiments:
example 1
For the distribution problem of the authority of the terminal equipment, the application follows the authority distribution principle of RBAC (Role-Based Access Control, RBAC for short), the Role Control authority and the priority are distributed to each intelligent terminal, the specific format can exist in a form of a Key-value Key value pair, the design principle is not that who comes first and then uses first, the cloud platform adopts an if statement to judge the priority and the Control authority of the intelligent terminal, corresponding intelligent household equipment is provided for the intelligent terminal, the cloud platform also provides an if statement for judging the priority of the newly accessed intelligent terminal in execution, if the priority of the newly accessed intelligent terminal is larger than the current level, a Sleep is provided for the currently executed Control terminal, the thread is temporarily stopped, and after the execution of the initial Control instruction with high priority is finished, the initial Control instruction of the currently existing intelligent terminal in the if is executed again, it is again determined to execute the initial control instruction having the higher priority.
Example 2
As shown in fig. 3, a plurality of intelligent home devices are controlled for a plurality of intelligent terminals, and the control method comprises the following specific steps that firstly, the intelligent terminals issue initial control instructions to a cloud platform, the cloud platform analyzes the received initial control instructions, checks whether devices corresponding to the initial control instructions exist, when the initial control instructions are issued simultaneously, the cloud platform sends different initial control instructions to different intelligent home devices, then cross-platform calling devices are realized, and the intelligent terminals can be asynchronously executed, the precondition of the method is that the devices controlled by the intelligent terminals are not the same device, thus the cloud platform can set different authorities for the intelligent terminals for controlling different intelligent home devices, when the initial control instructions reach the cloud platform, the cloud platform analyzes the initial control instructions, the method includes the steps that keys (namely first identification information) carried by initial control commands are determined, and the intelligent terminals issue the initial control commands are judged, so that the corresponding commands can be accurately sent to the corresponding intelligent home devices, if the cloud platform sends the A commands sent by the intelligent terminals A to the intelligent home devices A, the B commands sent by the intelligent terminals B are sent to the intelligent home devices B, and the C commands sent by the intelligent terminals C are sent to the intelligent home devices C.
Example 3
As shown in fig. 4, the same intelligent home device D is controlled by a plurality of intelligent terminals (an intelligent terminal a, an intelligent terminal B, and an intelligent terminal C), when the plurality of intelligent terminals simultaneously request one intelligent home device D, the cloud platform does not know which initial control instruction should be issued at this time, and if the cloud platform completely issues the received plurality of initial control instructions, the intelligent home device D does not know which initial control instruction should be executed, and a command deadlock may be formed. Therefore, when the intelligent terminal a, the intelligent terminal B and the intelligent terminal C control one intelligent home device D, corresponding priorities need to be set for the intelligent terminal a, the intelligent terminal B and the intelligent terminal C, that is, the intelligent terminal a carries the main key 1, the intelligent terminal B carries the main key 2 and the intelligent terminal C carries the main key 3, that is, the priority of the intelligent terminal a is higher than that of the intelligent terminal B, and the priority of the intelligent terminal B is higher than that of the intelligent terminal C. When the intelligent terminal A, the intelligent terminal B and the intelligent terminal C simultaneously issue the initial control instructions, the cloud platform analyzes the received initial control instructions, compiles the instructions (namely, preset processing) according to a main key (namely, second identification information) carried by each initial control instruction, then issues all the compiled initial control instructions to the intelligent home equipment D, and the intelligent home equipment D judges the priority of the received instructions, for example, the intelligent home equipment D judges whether the priority of the received instructions is 1 (the priority of the intelligent terminal A is represented), under the condition that the priority of the received instructions is 1, the intelligent home equipment D executes the instructions issued by the intelligent terminal A, under the condition that the priority of the received instructions is not 1, the intelligent home equipment judges whether the priority of the intelligent terminal B is 2 (the priority of the intelligent terminal B is represented, under the condition that the priority of the intelligent home equipment D is 2, the intelligent home equipment D executes the instruction issued by the intelligent terminal B, under the condition that the instruction is not 2, the intelligent home equipment D executes the instruction issued by the intelligent terminal C, namely the intelligent home equipment D executes the execution issued by the corresponding terminal equipment one by one according to the received sequence, when the instruction with higher priority is executed, the intelligent home equipment D can be locked and does not accept new instructions, the new instructions can not be received until the processed instructions are completed, and the rest can be done by analogy until all the instructions are processed, so that the problem of multi-platform control instruction conflict can not occur, and the vicious problem of equipment deadlock can be reduced.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized:
step S101, receiving a plurality of initial control instructions sent by a plurality of intelligent terminals;
step S102, analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction;
step S103, determining the corresponding smart terminal according to the first identification information, and sending at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device:
step S101, receiving a plurality of initial control instructions sent by a plurality of intelligent terminals;
step S102, analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction;
step S103, determining the corresponding smart terminal according to the first identification information, and sending at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) the method for avoiding the control instruction conflict comprises the steps of firstly, receiving a plurality of initial control instructions which are sent by a plurality of intelligent terminals and used for controlling the intelligent household equipment; then, analyzing each received initial control instruction to obtain a plurality of first identification information; and finally, according to the obtained plurality of pieces of first identification information, determining the intelligent terminals corresponding to the initial control instructions, and sending at least a predetermined part of each initial control instruction to the intelligent home equipment bound with the corresponding intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the first identification information is used for representing the intelligent terminal sending the initial control instruction, and the predetermined part is instruction information used for controlling the intelligent home equipment to execute actions. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
2) In the device for avoiding the control instruction conflict, the first receiving list is used for receiving a plurality of initial control instructions sent by a plurality of intelligent terminals; the analysis unit is used for analyzing each received initial control instruction to obtain a plurality of first identification information, and the first identification information is used for representing the intelligent terminal which sends the initial control instruction; the determining unit is configured to determine the corresponding smart terminal according to the first identification information, and send at least a predetermined portion of each initial control instruction to the smart home device bound to the corresponding smart terminal to control the smart home device to execute a corresponding action, where the predetermined portion is instruction information for controlling the smart home device to execute the action. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
3) The intelligent home system comprises intelligent home equipment, a cloud platform and intelligent terminals, wherein the cloud platform can execute the method for avoiding the conflict of the control instructions; then, analyzing each received initial control instruction to obtain a plurality of first identification information; and finally, according to the obtained plurality of pieces of first identification information, determining the intelligent terminals corresponding to the initial control instructions, and sending at least a predetermined part of each initial control instruction to the intelligent home equipment bound with the corresponding intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the first identification information is used for representing the intelligent terminal sending the initial control instruction, and the predetermined part is instruction information used for controlling the intelligent home equipment to execute actions. In the scheme, a plurality of pieces of first identification information can be obtained by analyzing a plurality of received initial control instructions, that is, the intelligent terminal which sends the initial control instructions and the intelligent home equipment which is used for controlling can be accurately known through the first identification information, and according to the first identification information, at least a predetermined part of each initial control instruction is sent to the intelligent home equipment which is bound with the corresponding intelligent terminal, so that the intelligent home equipment is controlled to execute corresponding actions according to at least part of the initial control instructions To give a title.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for avoiding control instruction conflicts, comprising:
receiving a plurality of initial control instructions sent by a plurality of intelligent terminals;
analyzing each received initial control instruction to obtain a plurality of first identification information, wherein the first identification information is used for representing the intelligent terminal which sends the initial control instruction;
and determining the corresponding intelligent terminal according to the first identification information, and sending at least a predetermined part of each initial control instruction to the corresponding intelligent home equipment bound by the intelligent terminal so as to control the intelligent home equipment to execute corresponding actions, wherein the predetermined part is instruction information used for controlling the intelligent home equipment to execute the actions.
2. The method according to claim 1, wherein in a case that there is one smart home device, before receiving a plurality of initial control commands sent by a plurality of smart terminals, the method further comprises:
and carrying out priority sequencing on the plurality of intelligent terminals according to a preset sequencing rule, and configuring second identification information for the initial control instruction corresponding to each intelligent terminal, wherein the second identification information is used for representing the priority sequence of the corresponding intelligent terminal.
3. The method according to claim 2, wherein sending at least a predetermined portion of each of the initial control commands to the corresponding smart home device bound to the smart terminal to control the smart home device to perform a corresponding action, comprises:
performing priority ordering on the plurality of initial control instructions according to the second identification information carried by the initial control instructions to obtain a plurality of ordered initial control instructions;
and sending at least a preset part of the corresponding initial control instruction to the corresponding intelligent home equipment bound by the intelligent terminal according to the priority sequence so as to control the intelligent home equipment to execute corresponding actions.
4. The method of claim 2, further comprising:
and under the condition that the intelligent household equipment executes a second initial control instruction, sending a first initial control instruction to the intelligent household equipment so that the intelligent household equipment suspends the execution of the second initial control instruction and executes the first initial control instruction, wherein the priority of the first initial control instruction is higher than that of the second initial control instruction.
5. The method according to claim 1, wherein sending at least a predetermined portion of each of the initial control commands to the corresponding smart home device bound to the smart terminal comprises:
and performing preset processing on each initial control instruction according to preset format information to obtain the corresponding preset part.
6. The method according to any one of claims 1 to 5, wherein after controlling the smart home device to perform the corresponding action, the method further comprises:
receiving instruction completion information sent by the intelligent home equipment, wherein the instruction completion information is used for representing information that the intelligent home equipment finishes executing an initial control instruction;
and sending the instruction completion information to the intelligent terminal.
7. An apparatus for avoiding control instruction collisions, comprising:
the first receiving unit is used for receiving a plurality of initial control instructions sent by a plurality of intelligent terminals;
the analysis unit is used for analyzing each received initial control instruction to obtain a plurality of first identification information, and the first identification information is used for representing the intelligent terminal which sends the initial control instruction;
and the determining unit is used for determining the corresponding intelligent terminal according to the first identification information, and sending at least a predetermined part of each initial control instruction to the corresponding intelligent household equipment bound by the intelligent terminal so as to control the intelligent household equipment to execute a corresponding action, wherein the predetermined part is instruction information used for controlling the intelligent household equipment to execute the action.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 6.
9. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 6.
10. The utility model provides an intelligent home systems which characterized in that includes:
intelligent household equipment;
a cloud platform in communication with the smart home device, the cloud platform configured to perform the method of any one of claims 1 to 6;
and the intelligent terminal is in communication connection with the cloud platform.
CN202111417775.5A 2021-11-25 2021-11-25 Method and device for avoiding control instruction conflict, processor and intelligent home system Pending CN114114941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111417775.5A CN114114941A (en) 2021-11-25 2021-11-25 Method and device for avoiding control instruction conflict, processor and intelligent home system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111417775.5A CN114114941A (en) 2021-11-25 2021-11-25 Method and device for avoiding control instruction conflict, processor and intelligent home system

Publications (1)

Publication Number Publication Date
CN114114941A true CN114114941A (en) 2022-03-01

Family

ID=80373782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111417775.5A Pending CN114114941A (en) 2021-11-25 2021-11-25 Method and device for avoiding control instruction conflict, processor and intelligent home system

Country Status (1)

Country Link
CN (1) CN114114941A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024017020A1 (en) * 2022-07-20 2024-01-25 青岛海尔空调器有限总公司 Method and apparatus for controlling air conditioner, and air conditioner and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012007805A1 (en) * 2010-07-16 2012-01-19 パナソニック電工株式会社 Equipment control device, equipment control system, and equipment control method
CN103400484A (en) * 2013-07-01 2013-11-20 天脉聚源(北京)传媒科技有限公司 An equipment controlling method and device
CN103888407A (en) * 2012-12-24 2014-06-25 于智为 Solution method of controlling multiple terminals by intelligent household core server
CN104902024A (en) * 2015-05-29 2015-09-09 四川长虹电器股份有限公司 Smart home priority control system based on cloud platform and control method thereof
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
CN106597866A (en) * 2016-12-23 2017-04-26 华东交通大学 Intelligent home system and timed task conflict resolving method applied by same
CN107248943A (en) * 2017-07-06 2017-10-13 海信集团有限公司 Apparatus control method and device
CN109557885A (en) * 2018-12-19 2019-04-02 深圳市广和通无线股份有限公司 Internet of Things network control system and method
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device
CN111538250A (en) * 2020-04-28 2020-08-14 广东美的制冷设备有限公司 Control method of household appliance, electronic device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012007805A1 (en) * 2010-07-16 2012-01-19 パナソニック電工株式会社 Equipment control device, equipment control system, and equipment control method
CN103888407A (en) * 2012-12-24 2014-06-25 于智为 Solution method of controlling multiple terminals by intelligent household core server
CN103400484A (en) * 2013-07-01 2013-11-20 天脉聚源(北京)传媒科技有限公司 An equipment controlling method and device
CN104902024A (en) * 2015-05-29 2015-09-09 四川长虹电器股份有限公司 Smart home priority control system based on cloud platform and control method thereof
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
CN106597866A (en) * 2016-12-23 2017-04-26 华东交通大学 Intelligent home system and timed task conflict resolving method applied by same
CN107248943A (en) * 2017-07-06 2017-10-13 海信集团有限公司 Apparatus control method and device
CN109557885A (en) * 2018-12-19 2019-04-02 深圳市广和通无线股份有限公司 Internet of Things network control system and method
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device
CN111538250A (en) * 2020-04-28 2020-08-14 广东美的制冷设备有限公司 Control method of household appliance, electronic device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024017020A1 (en) * 2022-07-20 2024-01-25 青岛海尔空调器有限总公司 Method and apparatus for controlling air conditioner, and air conditioner and storage medium

Similar Documents

Publication Publication Date Title
CN108846630B (en) Resource control system and method
CN111143061A (en) Multi-device linkage control method and device and storage medium
CN100596055C (en) System for invoking a privileged function in a device
CN110597531B (en) Distributed module upgrading method and device and storage medium
CN112612686A (en) Performance test method and device, electronic equipment and storage medium
CN112612214B (en) Method and system for generating functional interface and electronic equipment
CN107195131A (en) A kind of method and device of analog hardware equipment
CN105259806A (en) Controller upgrade method and system, main controller and slave controller
CN108141733A (en) NFC " splitting storehouse " architectural framework
CN108445788B (en) Hotel scene control method and related device
CN112448956B (en) Authority processing method and device of short message verification code and computer equipment
CN110262878A (en) Timed task processing method, device, equipment and computer readable storage medium
CN110278192A (en) Method, apparatus, computer equipment and the readable storage medium storing program for executing of extranet access Intranet
CN114114941A (en) Method and device for avoiding control instruction conflict, processor and intelligent home system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN114244642B (en) Control method and device of equipment, computer readable storage medium and processor
CN114362983A (en) Firewall policy management method and device, computer equipment and storage medium
CN105116884B (en) A kind of control method of sweeping robot, server and service system
CN107526580A (en) Terminal applies recognition methods and device
CN109561134A (en) Electronic device, distributed type assemblies service distribution method and storage medium
CN112000019A (en) Method, device and equipment for sharing equipment instruction control
CN103077078A (en) Method of defining state transitions in a software and application control management object
CN109683762A (en) Program of mobile terminal starting control processing method, mobile terminal and storage medium
CN114328196A (en) Method, device and equipment for testing data leakage prevention system and storage medium
CN112632083A (en) Method, device and equipment for updating index data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination