CN114137888B - Linkage control method of equipment, processor and equipment linkage control system - Google Patents
Linkage control method of equipment, processor and equipment linkage control system Download PDFInfo
- Publication number
- CN114137888B CN114137888B CN202111509309.XA CN202111509309A CN114137888B CN 114137888 B CN114137888 B CN 114137888B CN 202111509309 A CN202111509309 A CN 202111509309A CN 114137888 B CN114137888 B CN 114137888B
- Authority
- CN
- China
- Prior art keywords
- instruction
- equipment
- instruction set
- target
- shadow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000004891 communication Methods 0.000 claims description 23
- 238000011161 development Methods 0.000 abstract description 13
- 230000008569 process Effects 0.000 description 16
- 230000004044 response Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a linkage control method of equipment, a processor and a linkage control system of the equipment, wherein the control method comprises the following steps: establishing an association relationship between a first device and at least one second device; under the condition that a first instruction is received, determining target equipment and a second instruction according to the association relation and the first instruction, wherein the target equipment is second equipment associated with the first instruction, and the second instruction is a control instruction of the target equipment; the second instruction is sent to the target equipment so that the target equipment executes the second instruction, and the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is low, the permission problem that the server corresponding to the first equipment acquires a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
Description
Technical Field
The application relates to the field of linkage control of equipment, in particular to a linkage control method of equipment, a computer-readable storage medium, a processor and an equipment linkage control system.
Background
In the new generation of internet of things, a plurality of devices are often required to perform coordinated control, such as turning on an air conditioner while turning on light, turning on a projector while dimming light, and the like. There are also some conflicting first instructions such as opening the window while opening the air conditioner. In the prior art, each intelligent device is often controlled to reach a required state only by manual operation.
In the prior art, there is a concept of shadow equipment, that is, by pre-storing the current state information of the equipment in a server, after receiving a state instruction sent by a client, the server changes state according to the pre-stored state information and returns to the client, and then sends the state to the equipment in a state synchronization manner.
The method for realizing the fusion control of the internet of things equipment provided in the CN110501988B stores a plurality of shadow equipment to a server so as to realize the linkage control of the plurality of equipment.
The technical scheme can solve the problem of difficult operation in the multi-equipment linkage operation, but the technical scheme needs to synchronize all the equipment with the server in state, but not all the equipment can perform data intercommunication with the current server, and if a plurality of server platforms are mutually communicated with a plurality of equipment, the development cost of each manufacturer can be greatly increased.
Therefore, a method is needed to solve the problem that the devices of different platforms cannot be linked in the prior art.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide a linkage control method, a computer readable storage medium, a processor and a linkage control system of equipment, which are used for solving the problem that equipment of different platforms cannot be linked in the prior art.
According to an aspect of the embodiment of the present application, there is provided a linkage control method of an apparatus, including: establishing an association relationship between a first device and at least one second device; under the condition that a first instruction is received, determining target equipment and a second instruction according to the association relation and the first instruction, wherein the target equipment is the second equipment associated with the first instruction, and the second instruction is a control instruction of the target equipment; and sending the second instruction to the target equipment so that the target equipment executes the second instruction.
Optionally, establishing the association relationship between the first device and at least one second device includes: establishing a communication connection between the first device and the second device; transmitting a first instruction set to the second device, wherein the first instruction set is an instruction set for controlling the first device; and receiving an associated instruction set, wherein the associated instruction set is generated by the second device according to the first instruction set and the second instruction set, the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is an instruction associated with the first preset instruction in the second instruction set.
Optionally, the method further comprises: acquiring first state information, wherein the first state information is the current equipment state of the first equipment; receiving second state information, wherein the second state information is the current equipment state of the second equipment; generating control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set; and sending the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, wherein the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
Optionally, the method further comprises: and controlling the first equipment to execute the first instruction under the condition that the first instruction is received.
According to another aspect of the embodiment of the present invention, there is also provided a linkage control method of an apparatus, including: establishing an association relationship between the second equipment and at least one first equipment; and under the condition that a second instruction is received, controlling the second equipment to execute the second instruction, wherein the second instruction is determined by the first equipment according to the association relation and the first instruction under the condition that the first instruction is received, and the second equipment is associated with the first instruction.
Optionally, establishing the association relationship between the second device and the at least one first device includes: establishing a communication connection between the second device and the first device; receiving a first instruction set, wherein the first instruction set is an instruction set for controlling the first equipment; generating an associated instruction set according to the first instruction set and a second instruction set, wherein the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is an instruction associated with the first preset instruction in the second instruction set; and sending the associated instruction set to the first device.
Optionally, generating an associated instruction set according to the first instruction set and the second instruction set includes: determining the first predetermined instruction according to the first instruction set and the second instruction set; determining the second predetermined instruction from the second instruction set that is associable with the first predetermined instruction; and associating the second predetermined instruction with the first predetermined instruction to generate the associated instruction set.
Optionally, the method further comprises: acquiring second state information, wherein the second state information is the current equipment state of the second equipment; and sending the second state information to the first device so that the first device generates control information and sends the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, wherein the control information is generated by the first device according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, the first state information is the current device state of the first device, the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to still another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, where the program executes any one of the methods.
According to an aspect of the embodiment of the present invention, there is also provided an apparatus linkage control system, including: a first system comprising at least one first device and control means of said first device for performing any of said methods; a second system comprising at least one second device and control means of said second device for performing any of the methods.
In the linkage control method of the device, firstly, an association relation between a first device and at least one second device is established, then, under the condition that a first instruction is received, a target device and a second instruction for controlling the target device are determined according to the established association relation and the received first instruction, wherein the target device is the second device associated with the first instruction, and finally, the determined second instruction is sent to the target device, so that the target device executes the second instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending control instructions to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is lower, the problem that the server corresponding to the first equipment acquires the authority of a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 shows a schematic diagram of a coordinated control method of an apparatus according to an embodiment of the application;
FIG. 2 illustrates a flow chart of a method of coordinated control of an apparatus according to an embodiment of the application;
FIG. 3 illustrates a flow diagram for creating a shadow device according to one embodiment of the application;
fig. 4 shows a schematic diagram of a coordinated control of an apparatus according to an embodiment of the application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. 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 described in the background art, in order to solve the above-mentioned problem, in an exemplary embodiment of the present application, a linkage control method for a device, a computer readable storage medium, a processor, and a linkage control system for a device are provided.
According to the embodiment of the application, a linkage control method of equipment is provided.
Fig. 1 is a flowchart of a coordinated control method of an apparatus according to an embodiment of the present application. As shown in fig. 1, the method may be applied to a first device, the method comprising the steps of:
step S101, establishing an association relationship between a first device and at least one second device;
step S102, when a first instruction is received, determining a target device and a second instruction according to the association relation and the first instruction, wherein the target device is the second device associated with the first instruction, and the second instruction is a control instruction of the target device;
step S103, the second instruction is sent to the target device, so that the target device executes the second instruction.
In the linkage control method of the equipment, firstly, an association relation between a first equipment and at least one second equipment is established, then, under the condition that a first instruction is received, a target equipment and a second instruction for controlling the target equipment are determined according to the established association relation and the received first instruction, wherein the target equipment is the second equipment associated with the first instruction, and finally, the determined second instruction is sent to the target equipment so that the target equipment executes the second instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending control instructions to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is lower, the problem that the server corresponding to the first equipment acquires the authority of a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
In the actual application process, the first instruction received by the first device may be a control instruction that the client directly communicates with the first device and sends the first command, or may be a control instruction that the server sends the first command to the first device.
In addition, under the condition that the first device receives the first instruction, the first device analyzes the first instruction, so that the unique identifier of the second device which is in association with the first device can be obtained, for example, the ID information of the second device can be obtained, then the corresponding second device is found according to the determined unique identifier of the second device, the determined corresponding second device is determined as the target device, finally, the determined second instruction is sent to the target device, so that the target device can execute the second instruction after receiving the second instruction, namely, linkage operation of the second device can be realized according to the first instruction received by the first device, and therefore, the problem that linkage cannot be realized among a plurality of devices of different platforms is solved.
In a specific embodiment of the present application, as shown in fig. 2, the first device receives a first instruction, specifically: the first instruction may be a control instruction that the client directly communicates with the first device, or may be a control instruction that the server sends to the first device; the first device determines a target device and a second instruction according to the first instruction and the established association relation, and the specific steps are as follows: analyzing the first instruction to obtain a unique identifier of the second device and a second instruction of the second device; and finding out the corresponding second equipment according to the unique identifier of the second equipment, sending a second instruction to the second equipment, and executing the corresponding second instruction after the second equipment receives the control instruction.
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 other than that illustrated herein.
In one embodiment of the present application, establishing an association between a first device and at least one second device includes: establishing a communication connection between the first device and the second device; transmitting a first instruction set to the second device, wherein the first instruction set is an instruction set for controlling the first device; and receiving an associated instruction set, wherein the associated instruction set is generated by the second device according to the first instruction set and the second instruction set, the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is the instruction associated with the first preset instruction in the second instruction set. In the embodiment, the first device sends the first instruction set of the first device to the second device, the second device generates the associated instruction set according to the second instruction set of the second device and the first instruction set, and sends the generated associated instruction set to the first device, namely the scheme does not need to penetrate through a server, so that the binding of the linkage relation between the first device and the second device is realized, and the permission problem that the server corresponding to the first device acquires the control instruction set of the second device is further avoided.
In a specific embodiment of the present application, the association instruction set is generated by the second device according to the first instruction set and the second instruction set, and the specific process includes: the association instruction set is generated by the second device associating a second predetermined instruction with a first predetermined instruction, the first predetermined instruction being determined by the second device according to the first instruction set and the second instruction set, the second predetermined instruction being determined by the second device from the second instruction set, the second predetermined instruction being an instruction associable with the first predetermined instruction.
In an actual application process, the communication connection between the first device and the second device may be a short-distance connection through near field communication or a local area network.
In the case of poor network, there may be a delay in the communication between the device and the server, so as to ensure that the client or the application program can obtain the current state of the device more quickly. Acquiring first state information, wherein the first state information is the current equipment state of the first equipment; receiving second state information, wherein the second state information is the current equipment state of the second equipment; generating control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set; and sending the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, wherein the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
In an actual application process, when the server receives a first instruction sent by the client, the first instruction may be input into the first shadow device to simulate and obtain response information after the first device receives the first instruction, where the response information includes a second instruction associated with the first instruction and first feedback information of the first device, and meanwhile, the server inputs the second instruction in the response information into the second shadow device to simulate and obtain second feedback information after the second device receives the second instruction, and then feeds back the first feedback information and the second feedback information to the client.
In a specific embodiment of the present application, as shown in fig. 3, a first device establishes a communication connection with a second device, and after the connection is successful, the first device sends a first instruction set of the first device itself to the second device; the second device receives a first instruction set and analyzes the received first instruction set to obtain a first preset instruction, and the first preset instruction is specifically: the second equipment analyzes the first instruction set to obtain each first preset instruction, determines a second preset instruction which can be associated with each first preset instruction from the second instruction set, and generates an associated instruction set, wherein the associated instruction set comprises the second preset instruction for controlling the second equipment and a unique identifier for confirming the second equipment; the second device sends an associated instruction set to the first device; the first device receives an associated instruction set; the first device obtains the current device state of the first device, namely first state information, receives the current device state of the second device, namely second state information, generates control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, and sends the generated control information to the server, so that the server establishes the first shadow device and the second shadow device according to the control information, wherein the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
In yet another embodiment of the present application, the method further includes: under the condition that a first instruction is received, the first equipment is controlled to execute the first instruction, a second instruction and target equipment are determined according to the first instruction, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely under the condition that the first instruction is received by the first equipment, linkage between the first equipment and the target equipment is realized, and the problem that linkage between equipment of different platforms cannot be realized in the prior art is further solved.
In an exemplary embodiment of the present application, there is also provided a method for controlling linkage of devices, the method being applicable to a second device, the method including: establishing an association relationship between the second equipment and at least one first equipment; and controlling the second device to execute the second instruction when receiving the second instruction, wherein the second instruction is determined by the first device according to the association relation and the first instruction when receiving the first instruction, and the second device is associated with the first instruction.
In the linkage control method of the equipment, firstly, an association relation between the second equipment and at least one first equipment is established; and then, under the condition that a second device receives a second instruction, controlling the second device to execute the second instruction, wherein the second instruction is determined by the first device according to the association relation and the first instruction under the condition that the first device receives the first instruction, and the second device is associated with the first instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, and under the condition that the second instruction is received by the target equipment, the target equipment is controlled to execute the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is ensured to be lower, and the problem that the server corresponding to the first equipment acquires the authority of the control instruction set of the second equipment is avoided, thereby the problem that the equipment of different platforms cannot be linked in the prior art is solved.
In a specific embodiment of the present application, when receiving a first instruction, a first device controls the first device to execute the first instruction.
In the actual application process, the first instruction received by the first device may be a control instruction that the client directly communicates with the first device and sends the first command, or may be a control instruction that the server sends the first command to the first device.
In addition, under the condition that the first device receives the first instruction, the first device analyzes the first instruction, so that the unique identifier of the second device which is in association with the first device can be obtained, for example, the ID information of the second device can be obtained, then the corresponding second device is found according to the determined unique identifier of the second device, the determined corresponding second device is determined as the target device, finally, the determined second instruction is sent to the target device, so that the target device can execute the second instruction after receiving the second instruction, namely, linkage operation of the second device can be realized according to the first instruction received by the first device, and therefore, the problem that linkage cannot be realized among a plurality of devices of different platforms is solved.
In a specific embodiment of the present application, as shown in fig. 2, the first device receives a first instruction, specifically: the first instruction may be a control instruction that the client directly communicates with the first device, or may be a control instruction that the server sends to the first device; the first device determines a target device and a second instruction according to the first instruction and the established association relation, and the specific steps are as follows: analyzing the first instruction to obtain a unique identifier of the second device and a second instruction of the second device; and finding out the corresponding second equipment according to the unique identifier of the second equipment, sending a second instruction to the second equipment, and executing the corresponding second instruction after the second equipment receives the control instruction.
In one embodiment of the present application, establishing an association between a second device and at least one first device includes: establishing a communication connection between the second device and the first device; receiving a first instruction set, wherein the first instruction set is an instruction set for controlling the first device; generating an associated instruction set according to the first instruction set and a second instruction set, wherein the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is the instruction associated with the first preset instruction in the second instruction set; and sending the associated instruction set to the first device. In the embodiment, the second device receives the first instruction set sent by the first device, generates the associated instruction set according to the second instruction set of the second device and the received first instruction set of the first device, and sends the generated associated instruction set to the first device, namely the scheme does not need to penetrate through a server, so that the linkage relation between the first device and the second device is bound, and the problem of permission of the server corresponding to the first device to acquire the control instruction set of the second device is further avoided.
In an actual application process, the communication connection between the first device and the second device may be a short-distance connection through near field communication or a local area network.
In yet another embodiment of the present application, generating an associated instruction set according to the first instruction set and the second instruction set includes: determining the first predetermined instruction according to the first instruction set and the second instruction set; determining the second predetermined instruction from the second instruction set, the second predetermined instruction being associable with the first predetermined instruction; and the second preset instruction is associated with the first preset instruction to generate the associated instruction set, and then the target equipment and the second instruction corresponding to the first instruction in the associated instruction set can be queried under the condition that the first equipment receives the first instruction, and then the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, linkage between the first equipment and the second equipment is further realized, and the problem that linkage between equipment of different platforms cannot be realized in the prior art is further solved.
In the case of poor network, there may be a delay in the communication between the device and the server, so as to ensure that the client or the application program can obtain the current state of the device more quickly. Acquiring second state information, wherein the second state information is the current equipment state of the second equipment; and transmitting the second state information to the first device, so that the first device generates control information and transmits the control information to a server, and the server establishes a first shadow device and a second shadow device according to the control information, wherein the control information is generated by the first device according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, the first state information is the current device state of the first device, the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
In an actual application process, when the server receives a first instruction sent by the client, the first instruction may be input into the first shadow device to simulate and obtain response information after the first device receives the first instruction, where the response information includes a second instruction associated with the first instruction and first feedback information of the first device, and meanwhile, the server inputs the second instruction in the response information into the second shadow device to simulate and obtain second feedback information after the second device receives the second instruction, and then feeds back the first feedback information and the second feedback information to the client.
In a specific embodiment of the present application, as shown in fig. 3, a first device establishes a communication connection with a second device, and after the connection is successful, the first device sends a first instruction set of the first device itself to the second device; the second device receives a first instruction set and analyzes the received first instruction set to obtain a first preset instruction, and the first preset instruction is specifically: the second equipment analyzes the first instruction set to obtain each first preset instruction, determines a second preset instruction which can be associated with each first preset instruction from the second instruction set, and generates an associated instruction set, wherein the associated instruction set comprises the second preset instruction for controlling the second equipment and a unique identifier for confirming the second equipment; the second device sends an associated instruction set to the first device; the first device receives an associated instruction set; the first device obtains the current device state of the first device, namely first state information, receives the current device state of the second device, namely second state information, generates control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, and sends the generated control information to the server, so that the server establishes the first shadow device and the second shadow device according to the control information, wherein the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
The embodiment of the application also provides a linkage control device of the equipment, and the linkage control device of the equipment can be used for executing the linkage control method for the equipment. The following describes a linkage control device of the device provided by the embodiment of the application.
Fig. 4 is a schematic diagram of a coordinated control of an apparatus according to an embodiment of the application. As shown in fig. 4, the apparatus includes:
a first establishing unit 10, configured to establish an association relationship between a first device and at least one second device;
a determining unit 20, configured to determine, when a first instruction is received, a target device and a second instruction according to the association relationship and the first instruction, where the target device is the second device associated with the first instruction, and the second instruction is a control instruction of the target device;
and a first sending unit 30, configured to send the second instruction to the target device, so that the target device executes the second instruction.
In the linkage control device of the equipment, the first establishing unit is used for establishing the association relation between the first equipment and at least one second equipment; the determining unit is used for determining target equipment and a second instruction according to the association relation and the first instruction when the first instruction is received, wherein the target equipment is the second equipment associated with the first instruction, and the second instruction is a control instruction of the target equipment; the first sending unit is configured to send the second instruction to the target device, so that the target device executes the second instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending control instructions to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is established, the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is lower, the problem that the server corresponding to the first equipment acquires the authority of a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
In the actual application process, the first instruction received by the first device may be a control instruction that the client directly communicates with the first device and sends the first command, or may be a control instruction that the server sends the first command to the first device.
In addition, under the condition that the first device receives the first instruction, the first device analyzes the first instruction, so that the unique identifier of the second device which is in association with the first device can be obtained, for example, the ID information of the second device can be obtained, then the corresponding second device is found according to the determined unique identifier of the second device, the determined corresponding second device is determined as the target device, finally, the determined second instruction is sent to the target device, so that the target device can execute the second instruction after receiving the second instruction, namely, linkage operation of the second device can be realized according to the first instruction received by the first device, and therefore, the problem that linkage cannot be realized among a plurality of devices of different platforms is solved.
In a specific embodiment of the present application, as shown in fig. 2, the first device receives a first instruction, specifically: the first instruction may be a control instruction that the client directly communicates with the first device, or may be a control instruction that the server sends to the first device; the first device determines a target device and a second instruction according to the first instruction and the established association relation, and the specific steps are as follows: analyzing the first instruction to obtain a unique identifier of the second device and a second instruction of the second device; and finding out the corresponding second equipment according to the unique identifier of the second equipment, sending a second instruction to the second equipment, and executing the corresponding second instruction after the second equipment receives the control instruction.
In one embodiment of the present application, the first establishing unit includes a first establishing module, a first transmitting module, and a first receiving module, where the first establishing module is configured to establish a communication connection between the first device and the second device; the first sending module is configured to send a first instruction set to the second device, where the first instruction set is an instruction set for controlling the first device; the first receiving module is configured to receive an associated instruction set, where the associated instruction set is generated by the second device according to the first instruction set and a second instruction set, and the second instruction set is an instruction set for controlling the second device, and the associated instruction set includes a first predetermined instruction and a second predetermined instruction, where the first predetermined instruction is at least part of the first instruction set, and the second predetermined instruction is an instruction associated with the first predetermined instruction in the second instruction set. In the embodiment, the first device sends the first instruction set of the first device to the second device, the second device generates the associated instruction set according to the second instruction set of the second device and the first instruction set, and sends the generated associated instruction set to the first device, namely the scheme does not need to penetrate through a server, so that the binding of the linkage relation between the first device and the second device is realized, and the permission problem that the server corresponding to the first device acquires the control instruction set of the second device is further avoided.
In a specific embodiment of the present application, the association instruction set is generated by the second device according to the first instruction set and the second instruction set, and the specific process includes: the association instruction set is generated by the second device associating a second predetermined instruction with a first predetermined instruction, the first predetermined instruction being determined by the second device according to the first instruction set and the second instruction set, the second predetermined instruction being determined by the second device from the second instruction set, the second predetermined instruction being an instruction associable with the first predetermined instruction.
In an actual application process, the communication connection between the first device and the second device may be a short-distance connection through near field communication or a local area network.
In another embodiment of the present application, the apparatus further includes an acquiring unit, a first receiving unit, a generating unit, and a second sending unit, where the acquiring unit is configured to acquire first state information, where the first state information is a current device state of the first device; the first receiving unit is configured to receive second state information, where the second state information is a current device state of the second device; the generating unit is configured to generate control information according to the first state information, the second state information, the first instruction set, the second instruction set, and the associated instruction set; the second sending unit is configured to send the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, where the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
In an actual application process, when the server receives a first instruction sent by the client, the first instruction may be input into the first shadow device to simulate and obtain response information after the first device receives the first instruction, where the response information includes a second instruction associated with the first instruction and first feedback information of the first device, and meanwhile, the server inputs the second instruction in the response information into the second shadow device to simulate and obtain second feedback information after the second device receives the second instruction, and then feeds back the first feedback information and the second feedback information to the client.
In a specific embodiment of the present application, as shown in fig. 3, a first device establishes a communication connection with a second device, and after the connection is successful, the first device sends a first instruction set of the first device itself to the second device; the second device receives a first instruction set and analyzes the received first instruction set to obtain a first preset instruction, and the first preset instruction is specifically: the second equipment analyzes the first instruction set to obtain each first preset instruction, determines a second preset instruction which can be associated with each first preset instruction from the second instruction set, and generates an associated instruction set, wherein the associated instruction set comprises the second preset instruction for controlling the second equipment and a unique identifier for confirming the second equipment; the second device sends an associated instruction set to the first device; the first device receives an associated instruction set; the first device obtains the current device state of the first device, namely first state information, receives the current device state of the second device, namely second state information, generates control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, and sends the generated control information to the server, so that the server establishes the first shadow device and the second shadow device according to the control information, wherein the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
In still another embodiment of the present application, the apparatus further includes a second receiving unit, configured to control the first device to execute the first instruction when the first instruction is received, and then determine the second instruction and the target device according to the first instruction, and send the second instruction to the target device, so that the target device executes the second instruction, that is, when the first device receives the first instruction, linkage between the first device and the target device is implemented, and further solve a problem in the prior art that linkage between devices of different platforms cannot be implemented.
In an exemplary embodiment of the present application, there is further provided a coordinated control device of an apparatus, where the device includes a second establishing unit and a second receiving unit, where the second establishing unit is configured to establish an association relationship between a second apparatus and at least one first apparatus; the second receiving unit is configured to control the second device to execute the second instruction when receiving the second instruction, where the second instruction is determined by the first device according to the association relationship and the first instruction when receiving the first instruction, and the second device is associated with the first instruction.
The linkage control device of the equipment comprises a second establishing unit and a second receiving unit, wherein the second establishing unit is used for establishing the association relation between the second equipment and at least one first equipment; the second receiving unit is configured to control the second device to execute the second instruction when receiving the second instruction, where the second instruction is determined by the first device according to the association relationship and the first instruction when receiving the first instruction, and the second device is associated with the first instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is established, the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, and the target equipment is controlled to execute the second instruction under the condition that the second instruction is received, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is ensured to be lower, and the problem that the server corresponding to the first equipment acquires the authority of the control instruction set of the second equipment is solved, thereby solving the problem that the equipment of different platforms cannot be linked in the prior art.
In a specific embodiment of the present application, when receiving a first instruction, a first device controls the first device to execute the first instruction.
In the actual application process, the first instruction received by the first device may be a control instruction that the client directly communicates with the first device and sends the first command, or may be a control instruction that the server sends the first command to the first device.
In addition, under the condition that the first device receives the first instruction, the first device analyzes the first instruction, so that the unique identifier of the second device which is in association with the first device can be obtained, for example, the ID information of the second device can be obtained, then the corresponding second device is found according to the determined unique identifier of the second device, the determined corresponding second device is determined as the target device, finally, the determined second instruction is sent to the target device, so that the target device can execute the second instruction after receiving the second instruction, namely, linkage operation of the second device can be realized according to the first instruction received by the first device, and therefore, the problem that linkage cannot be realized among a plurality of devices of different platforms is solved.
In a specific embodiment of the present application, as shown in fig. 2, the first device receives a first instruction, specifically: the first instruction may be a control instruction that the client directly communicates with the first device, or may be a control instruction that the server sends to the first device; the first device determines a target device and a second instruction according to the first instruction and the established association relation, and the specific steps are as follows: analyzing the first instruction to obtain a unique identifier of the second device and a second instruction of the second device; and finding out the corresponding second equipment according to the unique identifier of the second equipment, sending a second instruction to the second equipment, and executing the corresponding second instruction after the second equipment receives the control instruction.
In one embodiment of the present application, the second establishing unit includes a second establishing module, a second receiving module, a generating module, and a second sending module, where the second establishing module is configured to establish a communication connection between the second device and the first device; the second receiving module is configured to receive a first instruction set, where the first instruction set is an instruction set for controlling the first device; the generation module is configured to generate an associated instruction set according to the first instruction set and a second instruction set, where the second instruction set is an instruction set for controlling the second device, the associated instruction set includes a first predetermined instruction and a second predetermined instruction, the first predetermined instruction is at least part of the first instruction set, and the second predetermined instruction is an instruction associated with the first predetermined instruction in the second instruction set; the second sending module is configured to send the association instruction set to the first device. In the embodiment, the second device receives the first instruction set sent by the first device, generates the associated instruction set according to the second instruction set of the second device and the received first instruction set of the first device, and sends the generated associated instruction set to the first device, namely the scheme does not need to penetrate through a server, so that the linkage relation between the first device and the second device is bound, and the problem of permission of the server corresponding to the first device to acquire the control instruction set of the second device is further avoided.
In an actual application process, the communication connection between the first device and the second device may be a short-distance connection through near field communication or a local area network.
In yet another embodiment of the present application, the generating module includes a first determining submodule, a second determining submodule, and a generating submodule, where the first determining submodule is configured to determine the first predetermined instruction according to the first instruction set and the second instruction set; the second determining submodule is used for determining the second preset instruction which can be associated with the first preset instruction from the second instruction set; the generation sub-module is used for associating the second preset instruction with the first preset instruction to generate the associated instruction set, and then under the condition that the first device receives the first instruction, the target device and the second instruction corresponding to the first instruction in the associated instruction set can be queried, and then the second instruction is sent to the target device, so that the target device executes the second instruction, linkage between the first device and the second device is further realized, and the problem that linkage between devices of different platforms in the prior art cannot be realized is further solved.
In another embodiment of the present application, the apparatus further includes a second obtaining unit and a third sending unit, where the second obtaining unit is configured to obtain second state information, where the second state information is a current device state of the second device; the third sending unit is configured to send the second state information to the first device, so that the first device generates control information and sends the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, where the control information is generated by the first device according to the first state information, the second state information, the first instruction set, the second instruction set, and the associated instruction set, the first state information is a current device state of the first device, the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
In an actual application process, when the server receives a first instruction sent by the client, the first instruction may be input into the first shadow device to simulate and obtain response information after the first device receives the first instruction, where the response information includes a second instruction associated with the first instruction and first feedback information of the first device, and meanwhile, the server inputs the second instruction in the response information into the second shadow device to simulate and obtain second feedback information after the second device receives the second instruction, and then feeds back the first feedback information and the second feedback information to the client.
In a specific embodiment of the present application, as shown in fig. 3, a first device establishes a communication connection with a second device, and after the connection is successful, the first device sends a first instruction set of the first device itself to the second device; the second device receives a first instruction set and analyzes the received first instruction set to obtain a first preset instruction, and the first preset instruction is specifically: the second equipment analyzes the first instruction set to obtain each first preset instruction, determines a second preset instruction which can be associated with each first preset instruction from the second instruction set, and generates an associated instruction set, wherein the associated instruction set comprises the second preset instruction for controlling the second equipment and a unique identifier for confirming the second equipment; the second device sends an associated instruction set to the first device; the first device receives an associated instruction set; the first device obtains the current device state of the first device, namely first state information, receives the current device state of the second device, namely second state information, generates control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, and sends the generated control information to the server, so that the server establishes the first shadow device and the second shadow device according to the control information, wherein the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
The linkage control device of the equipment comprises a processor and a memory, wherein the first establishing unit, the determining unit, the first sending unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that the devices of different platforms cannot be linked in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a computer readable storage medium, wherein a program is stored in the computer readable storage medium, and the program is executed by a processor to realize the linkage control method of the equipment.
The embodiment of the application provides a processor, which is used for running a program, wherein the program runs to execute a linkage control method of equipment.
In an exemplary embodiment of the present application, there is also provided an apparatus linkage control system including: a first system comprising at least one first device and control means of said first device for performing any of the methods described above; the second system comprises at least one second device and a control device of the second device, wherein the control device of the second device is used for executing any one of the methods.
The linkage control system of the equipment comprises a first system and a second system, wherein the first system comprises at least one first equipment and a control device of the first equipment, and the control device of the first equipment is used for executing any one of the methods; the second system comprises at least one second device and control means of said second device for performing any of the methods described above. Compared with the prior art that the linkage control method of the equipment realizes the linkage of the first equipment and the second equipment of different platforms by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely the scheme can realize the linkage between the equipment of different platforms without a plurality of servers, thus ensuring lower development cost of manufacturers corresponding to each equipment, and avoiding the problem that the server corresponding to the first equipment can not acquire the authority of a control instruction set of the second equipment, thereby solving the problem that the equipment of different platforms can not be linked in the prior art.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S101, establishing an association relationship between a first device and at least one second device;
step S102, when a first instruction is received, determining a target device and a second instruction according to the association relation and the first instruction, wherein the target device is the second device associated with the first instruction, and the second instruction is a control instruction of the target device;
step S103, the second instruction is sent to the target device, so that the target device executes the second instruction.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
step S101, establishing an association relationship between a first device and at least one second device;
step S102, when a first instruction is received, determining a target device and a second instruction according to the association relation and the first instruction, wherein the target device is the second device associated with the first instruction, and the second instruction is a control instruction of the target device;
Step S103, the second instruction is sent to the target device, so that the target device executes the second instruction.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the linkage control method of the equipment, firstly, the association relation between the first equipment and at least one second equipment is established, then, under the condition that a first instruction is received, the target equipment and a second instruction for controlling the target equipment are determined according to the established association relation and the received first instruction, wherein the target equipment is the second equipment associated with the first instruction, and finally, the determined second instruction is sent to the target equipment so that the target equipment executes the second instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending control instructions to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is lower, the problem that the server corresponding to the first equipment acquires the authority of a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
2) In the linkage control method of the equipment, firstly, the association relation between the second equipment and at least one first equipment is established; and then, under the condition that a second device receives a second instruction, controlling the second device to execute the second instruction, wherein the second instruction is determined by the first device according to the association relation and the first instruction under the condition that the first device receives the first instruction, and the second device is associated with the first instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, and under the condition that the second instruction is received by the target equipment, the target equipment is controlled to execute the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is ensured to be lower, and the problem that the server corresponding to the first equipment acquires the authority of the control instruction set of the second equipment is avoided, thereby the problem that the equipment of different platforms cannot be linked in the prior art is solved.
3) In the linkage control device of the equipment, the first establishing unit is used for establishing the association relation between the first equipment and at least one second equipment; the determining unit is used for determining target equipment and a second instruction according to the association relation and the first instruction when the first instruction is received, wherein the target equipment is the second equipment associated with the first instruction, and the second instruction is a control instruction of the target equipment; the first sending unit is configured to send the second instruction to the target device, so that the target device executes the second instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending control instructions to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is established, the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is lower, the problem that the server corresponding to the first equipment acquires the authority of a control instruction set of the second equipment is avoided, and the problem that the equipment of different platforms cannot be linked in the prior art is solved.
4) In the linkage control device of the equipment, the control device comprises a second establishing unit and a second receiving unit, wherein the second establishing unit is used for establishing the association relation between the second equipment and at least one first equipment; the second receiving unit is configured to control the second device to execute the second instruction when receiving the second instruction, where the second instruction is determined by the first device according to the association relationship and the first instruction when receiving the first instruction, and the second device is associated with the first instruction. Compared with the prior art that the linkage of the first equipment and the second equipment of different platforms is realized by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is established, the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, and the target equipment is controlled to execute the second instruction under the condition that the second instruction is received, namely, the linkage between the equipment of different platforms can be realized without a plurality of servers, so that the development cost of manufacturers corresponding to each equipment is ensured to be lower, and the problem that the server corresponding to the first equipment acquires the authority of the control instruction set of the second equipment is solved, thereby solving the problem that the equipment of different platforms cannot be linked in the prior art.
5) In the linkage control system of the equipment, the system comprises a first system and a second system, wherein the first system comprises at least one first equipment and a control device of the first equipment, and the control device of the first equipment is used for executing any one of the methods; the second system comprises at least one second device and control means of said second device for performing any of the methods described above. Compared with the prior art that the linkage control method of the equipment realizes the linkage of the first equipment and the second equipment of different platforms by respectively sending the control instruction to the first equipment and the server corresponding to the second equipment through the server corresponding to the first equipment, in the scheme, the association relation between the first equipment and the second equipment is firstly established, then the target equipment associated with the first equipment and the second instruction corresponding to the target equipment are determined according to the established association relation and the first instruction received by the first equipment, and the second instruction is sent to the target equipment, so that the target equipment executes the second instruction, namely the scheme can realize the linkage between the equipment of different platforms without a plurality of servers, thus ensuring lower development cost of manufacturers corresponding to each equipment, and avoiding the problem that the server corresponding to the first equipment can not acquire the authority of a control instruction set of the second equipment, thereby solving the problem that the equipment of different platforms can not be linked in the prior art.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (9)
1. A method for coordinated control of a device, comprising:
establishing an association relationship between a first device and at least one second device;
under the condition that a first instruction is received, determining target equipment and a second instruction according to the association relation and the first instruction, wherein the target equipment is the second equipment associated with the first instruction, and the second instruction is a control instruction of the target equipment;
sending the second instruction to the target device, so that the target device executes the second instruction, and establishing an association relationship between the first device and at least one second device, including:
establishing a communication connection between the first device and the second device;
transmitting a first instruction set to the second device, wherein the first instruction set is an instruction set for controlling the first device;
And receiving an associated instruction set, wherein the associated instruction set is generated by the second device according to the first instruction set and the second instruction set, the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is an instruction associated with the first preset instruction in the second instruction set.
2. The method according to claim 1, wherein the method further comprises:
acquiring first state information, wherein the first state information is the current equipment state of the first equipment;
receiving second state information, wherein the second state information is the current equipment state of the second equipment;
generating control information according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set;
and sending the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, wherein the first shadow device is a shadow device of the first device, and the second shadow device is a shadow device of the second device.
3. The method according to claim 1, wherein the method further comprises:
and controlling the first equipment to execute the first instruction under the condition that the first instruction is received.
4. A method for coordinated control of a device, comprising:
establishing an association relationship between the second equipment and at least one first equipment;
controlling the second device to execute a second instruction under the condition that the second instruction is received, wherein the second instruction is determined by the first device according to the association relation and the first instruction under the condition that the first instruction is received, the second device is associated with the first instruction,
establishing an association relationship between the second device and at least one first device, including:
establishing a communication connection between the second device and the first device;
receiving a first instruction set, wherein the first instruction set is an instruction set for controlling the first equipment;
generating an associated instruction set according to the first instruction set and a second instruction set, wherein the second instruction set is an instruction set for controlling the second device, the associated instruction set comprises a first preset instruction and a second preset instruction, the first preset instruction is at least part of the first instruction set, and the second preset instruction is an instruction associated with the first preset instruction in the second instruction set;
And sending the associated instruction set to the first device.
5. The method of claim 4, wherein generating an associated instruction set from the first instruction set and the second instruction set comprises:
determining the first predetermined instruction according to the first instruction set and the second instruction set;
determining the second predetermined instruction from the second instruction set that is associable with the first predetermined instruction;
and associating the second predetermined instruction with the first predetermined instruction to generate the associated instruction set.
6. The method according to claim 4, wherein the method further comprises:
acquiring second state information, wherein the second state information is the current equipment state of the second equipment;
and sending the second state information to the first device so that the first device generates control information and sends the control information to a server, so that the server establishes a first shadow device and a second shadow device according to the control information, wherein the control information is generated by the first device according to the first state information, the second state information, the first instruction set, the second instruction set and the associated instruction set, the first state information is the current device state of the first device, the first shadow device is the shadow device of the first device, and the second shadow device is the shadow device of the second device.
7. 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 3 or the method of any one of claims 4 to 6.
8. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 3 or the method of any one of claims 4 to 6.
9. An equipment coordinated control system, characterized by comprising:
a first system comprising at least one first device and control means of the first device for performing the method of any one of claims 1 to 3;
a second system comprising at least one second device and control means of the second device for performing the method of any of claims 4 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111509309.XA CN114137888B (en) | 2021-12-10 | 2021-12-10 | Linkage control method of equipment, processor and equipment linkage control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111509309.XA CN114137888B (en) | 2021-12-10 | 2021-12-10 | Linkage control method of equipment, processor and equipment linkage control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114137888A CN114137888A (en) | 2022-03-04 |
CN114137888B true CN114137888B (en) | 2023-10-03 |
Family
ID=80385823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111509309.XA Active CN114137888B (en) | 2021-12-10 | 2021-12-10 | Linkage control method of equipment, processor and equipment linkage control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114137888B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115460052B (en) * | 2022-09-15 | 2024-06-18 | 中国工商银行股份有限公司 | Remote instruction processing method, device, computer equipment and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089559A (en) * | 2017-11-02 | 2018-05-29 | 珠海格力电器股份有限公司 | Method, device and system for controlling equipment |
WO2018192487A1 (en) * | 2017-04-21 | 2018-10-25 | 北京京东尚科信息技术有限公司 | Method and apparatus for controlling smart device linkage |
CN109618202A (en) * | 2018-12-24 | 2019-04-12 | 深圳创维-Rgb电子有限公司 | Control method, TV and the readable storage medium storing program for executing of peripheral hardware |
CN109634251A (en) * | 2019-01-31 | 2019-04-16 | 广东美的制冷设备有限公司 | Smart home device inter-linked controlling method, device and smart home device |
CN110493270A (en) * | 2019-09-25 | 2019-11-22 | 北京金茂绿建科技有限公司 | Internet of things equipment accesses fused controlling method and device thereof |
CN110501988A (en) * | 2019-09-25 | 2019-11-26 | 北京金茂绿建科技有限公司 | A kind of realization internet of things equipment fused controlling method and device thereof |
CN110545222A (en) * | 2019-08-23 | 2019-12-06 | 珠海格力电器股份有限公司 | Method and device for controlling equipment, computing equipment and storage medium |
CN111200535A (en) * | 2018-11-16 | 2020-05-26 | 阿里巴巴集团控股有限公司 | Simulation system and method for equipment |
CN111766788A (en) * | 2020-06-01 | 2020-10-13 | 珠海格力电器股份有限公司 | Intelligent household control method and device |
CN111770156A (en) * | 2020-06-24 | 2020-10-13 | 青岛海尔科技有限公司 | Linkage control method and device and computer readable storage medium |
CN113037771A (en) * | 2021-03-29 | 2021-06-25 | 北京金山云网络技术有限公司 | Method and device for controlling device shadow, storage medium and electronic device |
CN113110147A (en) * | 2021-03-31 | 2021-07-13 | 青岛海尔科技有限公司 | Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium |
CN113341742A (en) * | 2021-06-04 | 2021-09-03 | 海尔(深圳)研发有限责任公司 | Method and device for linkage control of household appliances and cloud control equipment |
-
2021
- 2021-12-10 CN CN202111509309.XA patent/CN114137888B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018192487A1 (en) * | 2017-04-21 | 2018-10-25 | 北京京东尚科信息技术有限公司 | Method and apparatus for controlling smart device linkage |
CN108089559A (en) * | 2017-11-02 | 2018-05-29 | 珠海格力电器股份有限公司 | Method, device and system for controlling equipment |
CN111200535A (en) * | 2018-11-16 | 2020-05-26 | 阿里巴巴集团控股有限公司 | Simulation system and method for equipment |
CN109618202A (en) * | 2018-12-24 | 2019-04-12 | 深圳创维-Rgb电子有限公司 | Control method, TV and the readable storage medium storing program for executing of peripheral hardware |
CN109634251A (en) * | 2019-01-31 | 2019-04-16 | 广东美的制冷设备有限公司 | Smart home device inter-linked controlling method, device and smart home device |
CN110545222A (en) * | 2019-08-23 | 2019-12-06 | 珠海格力电器股份有限公司 | Method and device for controlling equipment, computing equipment and storage medium |
CN110501988A (en) * | 2019-09-25 | 2019-11-26 | 北京金茂绿建科技有限公司 | A kind of realization internet of things equipment fused controlling method and device thereof |
CN110493270A (en) * | 2019-09-25 | 2019-11-22 | 北京金茂绿建科技有限公司 | Internet of things equipment accesses fused controlling method and device thereof |
CN111766788A (en) * | 2020-06-01 | 2020-10-13 | 珠海格力电器股份有限公司 | Intelligent household control method and device |
CN111770156A (en) * | 2020-06-24 | 2020-10-13 | 青岛海尔科技有限公司 | Linkage control method and device and computer readable storage medium |
CN113037771A (en) * | 2021-03-29 | 2021-06-25 | 北京金山云网络技术有限公司 | Method and device for controlling device shadow, storage medium and electronic device |
CN113110147A (en) * | 2021-03-31 | 2021-07-13 | 青岛海尔科技有限公司 | Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium |
CN113341742A (en) * | 2021-06-04 | 2021-09-03 | 海尔(深圳)研发有限责任公司 | Method and device for linkage control of household appliances and cloud control equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114137888A (en) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102242413B1 (en) | Methods for downloading an app and executing an app | |
US9596501B2 (en) | Remote control processing method, device and system | |
CN108632068B (en) | Network slice template generation method, network slice template application method and device | |
CN105471686B (en) | Terminal control method, device and system | |
CN106992989B (en) | Sharing authorization method of smart home, server and readable storage medium | |
CN109525540B (en) | Intelligent device binding method and device | |
US10264424B2 (en) | Information processing method and central control device | |
CN107276864A (en) | The method of intelligent sound equipment control household electrical appliances, apparatus and system | |
CN113225744B (en) | Intelligent device ad hoc network method, intelligent networking system and storage medium | |
CN110932944A (en) | Method and system for controlling intelligent household equipment by visitor terminal | |
CN114137888B (en) | Linkage control method of equipment, processor and equipment linkage control system | |
CN106301772A (en) | Cipher set-up method, device and for arranging the device of password | |
CN113438314B (en) | Equipment control method and device, storage medium and electronic device | |
CN115190147B (en) | Intelligent device control method, device and system | |
CN107145439A (en) | A kind of test request processing method and processing device | |
CN106961677A (en) | A kind of management method and server, terminal | |
CN112689006A (en) | Internet of things equipment control method and device, storage medium and electronic device | |
CN103138961B (en) | server control method, controlled server and central control server | |
CN104820612B (en) | A kind of internal memory of executable file performs method | |
CN113777935B (en) | Control method and device of intelligent equipment and computer readable storage medium | |
CN114115074B (en) | Device control method and apparatus, computer readable storage medium, and processor | |
CN115022857A (en) | Terminal system supporting rapid distribution network and setting NFC label function | |
CN105208085A (en) | Authority configuration method of intelligent equipment based on instant communication, and device | |
CN112989314B (en) | Data authentication method, device and terminal | |
CN114244645A (en) | Network distribution method, server, computer readable storage medium and processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |