CN114153153A - Device control method, system, apparatus, electronic device, and storage medium - Google Patents
Device control method, system, apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- CN114153153A CN114153153A CN202111523147.5A CN202111523147A CN114153153A CN 114153153 A CN114153153 A CN 114153153A CN 202111523147 A CN202111523147 A CN 202111523147A CN 114153153 A CN114153153 A CN 114153153A
- Authority
- CN
- China
- Prior art keywords
- control
- information
- control instruction
- controlled
- target
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000004891 communication Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 7
- 230000000739 chaotic effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000006855 networking Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000002955 isolation Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
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
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- 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/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- 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/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application relates to a device control method, a system, a device, an electronic device and a storage medium, which are applied to the technical field of device control, wherein the method comprises the following steps: acquiring a control instruction sent by a control end to a controlled end; and after determining that the control end subscribes the target theme information of the controlled end, sending a control instruction to the controlled end according to the target theme information, so that the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction. In order to solve prior art, the wrong control between different home equipment causes the chaotic problem of instruction of intelligent home equipment.
Description
Technical Field
The present application relates to the field of device control technologies, and in particular, to a device control method, system, apparatus, electronic device, and storage medium.
Background
With the development of society, the application of smart home is more and more extensive, and a plurality of smart home devices are arranged in many families.
Generally, a user controls a home appliance through an intelligent terminal, and the intelligent terminal generally controls the home appliance in a manner that the intelligent terminal sends a control instruction to a controlled device by acquiring an identifier of the controlled device input by the user.
However, in this way, when the identifier of the controlled device input by the user is wrong and points to a device of another home, the error control on the device of the other home may be caused, and the instruction confusion of the smart home device may be caused.
Disclosure of Invention
The application provides a device control method, a system, a device, electronic equipment and a storage medium, which are used for solving the problem that in the prior art, instructions of intelligent household equipment are disordered due to error control among different household equipment.
In a first aspect, an embodiment of the present application provides an apparatus control method, including:
acquiring a control instruction sent by a control end to a controlled end;
after determining that the control end has subscribed the target theme information of the controlled end, sending the control instruction to the controlled end according to the target theme information, so that the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction.
Optionally, the process of the control terminal subscribing to the target topic information of the controlled terminal includes:
acquiring a subscription request sent by a control terminal, wherein the subscription request comprises a first identifier of the control terminal and target subject information of a controlled terminal;
determining first scene information corresponding to the control terminal according to the first identifier;
determining second scene information corresponding to the controlled terminal according to the target subject information;
and if the first scene information is consistent with the second scene information, controlling the control terminal to subscribe the target theme information of the controlled terminal.
Optionally, the controlling end to subscribe to the target topic information of the controlled end includes:
and binding and storing the first identifier, the second scene information and the target subject information.
Optionally, the determining, according to the first identifier, first scene information corresponding to the control end includes:
and searching the first scene information corresponding to the first identifier from a pre-stored first relation set, wherein the first relation set is a set of corresponding relations between the identifier of the equipment and the scene information.
Optionally, the determining, according to the target subject information, second scene information corresponding to the controlled terminal includes:
and searching the second scene information corresponding to the target topic information from a pre-stored second relation set, wherein the second relation set is a set of corresponding relations between the subscribed topic information and the scene information of the device.
Optionally, the sending the control instruction to the controlled end according to the target subject information includes:
determining a target identifier corresponding to the target subject information from a third relationship set of corresponding relationships between pre-stored identifiers and subject information;
and sending the control instruction to a controlled end corresponding to the target identifier.
In a second aspect, an embodiment of the present application provides an apparatus control method, which is applied to a control end, and includes:
sending a control instruction for a controlled end to a server, so that the server sends the control instruction to the controlled end according to the target theme information after determining that the control end subscribes the target theme information of the controlled end, and the controlled end executes an operation corresponding to the control instruction after acquiring the control instruction.
Optionally, before sending the control instruction to the controlled end to the server, the method further includes:
sending a subscription request to the server, where the subscription request includes a first identifier of the control end and target topic information of the controlled end, so that the server determines first scene information corresponding to the control end according to the first identifier, determines second scene information corresponding to the controlled end according to the target topic information, and controls the control end to subscribe to the target topic information of the controlled end if the first scene information is consistent with the second scene information.
In a third aspect, an embodiment of the present application provides an apparatus control system, including: the system comprises a server, a control end and a controlled end;
the control end is used for sending a control instruction of the controlled end to the server;
the server is used for acquiring the control instruction; after determining that the control terminal has subscribed the target subject information of the controlled terminal, sending the control instruction to the controlled terminal according to the target subject information;
and the controlled end is used for executing the operation corresponding to the control instruction after the control instruction is obtained.
In a fourth aspect, an embodiment of the present application provides an apparatus control device, including:
the acquisition module is used for acquiring a control instruction sent by the control end to the controlled end;
and the first sending module is used for sending the control instruction to the controlled terminal according to the target theme information after the control terminal is determined to subscribe the target theme information of the controlled terminal, so that the controlled terminal executes the operation corresponding to the control instruction after acquiring the control instruction.
In a fifth aspect, an embodiment of the present application provides an apparatus control device, including:
and the second sending module is used for sending a control instruction for the controlled end to the server, so that the server sends the control instruction to the controlled end according to the target theme information after determining that the control end subscribes the target theme information of the controlled end, and the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the device control method according to the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the device control method according to the first aspect or the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, the control instruction of the controlled terminal sent by the control terminal is obtained; and after determining that the control end subscribes the target theme information of the controlled end, sending a control instruction to the controlled end according to the target theme information, so that the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction. Therefore, after the control end subscribes the theme information of the controlled end, the controlled end can be controlled, the isolation among the devices is realized, the control end can be controlled by the control end subscribing the theme information of the controlled end, and the error control among the devices is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a scene diagram of device networking in a device control method according to an embodiment of the present application;
fig. 2 is a flowchart of an apparatus control method according to an embodiment of the present application;
fig. 3 is a flowchart of an apparatus control method according to an embodiment of the present application;
fig. 4 is a block diagram of an apparatus control system according to another embodiment of the present application;
fig. 5 is a structural diagram of an apparatus control device according to an embodiment of the present application;
fig. 6 is a block diagram of an apparatus control device according to another embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before further detailed description of the embodiments of the present invention, terms and expressions referred to in the embodiments of the present invention are described, and the terms and expressions referred to in the embodiments of the present invention are applicable to the following explanations.
Topic is a transmission intermediary between a message publisher (Pub) and a subscriber (Sub). The device can realize the sending and receiving of the message through the Topic, thereby realizing the communication between the server side and the device side.
Message Queue Telemetry Transport (MQTT): a client-server based message publish/subscribe transport protocol. The MQTT protocol is lightweight, simple, open, and easy to implement, which makes it very versatile. In many cases, including in restricted environments, such as: machine to machine (M2M) communication and internet of things (IoT). It has found widespread use in communication sensors via satellite links, occasionally dial-up medical devices, smart homes, and some miniaturized devices.
Mac Address (Media Access Control Address), an Address used to identify the location of the network device.
In the embodiment of the application, before the device control method is executed, the device needs to be networked. When each device is networked, a user subscribes the corresponding theme (Topic) of the device based on an MQTT protocol, binds the device in an application scene, and binds and stores the identifier, the theme information and the scene information of the device by a server.
Referring to fig. 1, the device in fig. 1 includes a device a, a device B, and a device C, where the device a and the device B are in the same application scenario, and the device C is in another application scenario, and after networking the three devices, each device has respective subscribed theme information, and the server implements networking of the devices by binding and storing the association relationship between the respective identifier of each device, the theme information, and the scenario information.
The Topic information may include a device identifier, so that it can be determined whether the Topic corresponds to a device or not at the time of subscription. Specifically, the identifier may be a Mac address of the device, the scene information may be, but is not limited to, a home name, an office name, and the like, and the first segment of the configuration of the Topic is some predetermined character strings, and the second segment is the Mac address of the device subscribed to the Topic.
Specifically, some preset character strings may be fields related to the device, or may be character strings set for uniqueness.
The context information may be, but is not limited to, a name of a context of the device application, for example, after the device networking is completed, the context information may be a name of a local area network (e.g., a wireless network name of a router) or an IP address of the networking when the device is networked.
An embodiment of the present application provides a device control method, which may be applied to any form of electronic device, such as a server. As shown in fig. 2, the device control method includes:
In some embodiments, when a user wants to control a certain controlled terminal, the user may perform corresponding operations on the control terminal, and send a control instruction to the controlled terminal through the server. For example, after the second identifier of the controlled terminal or the target subject information of the controlled terminal is input in the display interface of the control terminal, the control instruction carrying the second identifier or the target subject information is sent to the server, so that the server acquires the control instruction.
The control end may be but not limited to a PC, a mobile phone, a tablet computer, etc., and the controlled end may be but not limited to a home appliance, such as an air conditioner, a sound box, a refrigerator, a television, etc.
In some embodiments, after the server determines that the control end has subscribed the target theme information of the controlled end, it may be determined that the control end can control the controlled end, and therefore, the controlled end is determined according to the target theme information, and a control instruction is sent to the controlled end, so that the controlled end performs a corresponding operation according to the control instruction, so as to implement control of the controlled end by the control end.
Therefore, after the control end subscribes the theme information of the controlled end, the controlled end can be controlled, the isolation among the devices is realized, the control end can be controlled by the control end subscribing the theme information of the controlled end, and the error control among the devices is avoided.
In an optional embodiment, the process of the control end subscribing to the target topic information of the controlled end includes:
acquiring a subscription request sent by a control terminal, wherein the subscription request comprises a first identifier of the control terminal and target subject information of a controlled terminal; determining first scene information corresponding to the control terminal according to the first identifier; determining second scene information corresponding to the controlled terminal according to the target subject information; and if the first scene information is consistent with the second scene information, the control terminal subscribes the target theme information of the controlled terminal.
Specifically, when subscribing the target subject information of the controlled terminal, the control terminal needs to send a subscription request to the server, the server determines first scene information corresponding to the control terminal according to a first identifier in the subscription request, and the server determines second scene information of the controlled terminal according to the target subject information in the subscription request, and determines whether the control terminal and the controlled terminal are in the same scene by comparing the first scene information with the second scene information, and if the first scene information is consistent with the second scene information, the control terminal subscribes the target subject information of the controlled terminal.
For example, taking the control end as the device B and the controlled end as the device a, after the device a and the device B are networked, the server stores respective corresponding relationships of the device a and the device B, that is, the server stores a first corresponding relationship of a first identifier of the device B, first theme information, and first scene information, and a second corresponding relationship of a second identifier of the device a, target theme information, and second scene information, and after the server determines that the first scene information is consistent with the second scene information, the server also binds and stores the corresponding relationships of the first identifier, the second scene information, and the target theme information. Therefore, after the device B sends the control instruction to the device A, the server can determine that the device B subscribes the target theme information of the device A according to the first identifier in the control instruction, and further sends the control instruction to the device A, so that the device B controls the device A.
Further, the control terminal subscribes the target theme information of the controlled terminal, including:
and binding and storing the first identifier, the second scene information and the target subject information.
In some embodiments, when the scene information of the control end and the scene information of the controlled end are consistent, it may be determined that the control end and the controlled end are in the same scene, and therefore, the first identifier of the control end, the second scene information, and the target theme information of the controlled end may be bound, so that the control end can send a control instruction to the controlled end through the target theme information of the controlled end.
In an optional embodiment, determining, according to the first identifier, first scenario information corresponding to the control end includes:
and searching first scene information corresponding to the first identifier from a pre-stored first relation set, wherein the first relation set is a set of corresponding relations between the identifier of the equipment and the scene information.
Specifically, a first relationship set of the identifier and the scene information is stored in the server, and after the first identifier in the subscription request is obtained, the first scene information corresponding to the first identifier can be found from the first relationship set according to the first identifier.
It is understood that the first relationship set may be a relationship set identifying a corresponding relationship with the scene information, or may be a relationship set identifying a corresponding relationship with the scene information and the topic information.
In an optional embodiment, determining second scene information corresponding to the controlled end according to the target topic information includes:
and searching second scene information corresponding to the target topic information from a pre-stored second relation set, wherein the second relation set is a set of corresponding relations between the subscribed topic information and the scene information of the device.
Specifically, a second relationship set of the topic information and the scene information is stored in the server, and after the target topic information in the subscription request is acquired, the second scene information corresponding to the target topic information can be searched from the second relationship set according to the target topic information.
It can be understood that the second relationship set may be a relationship set of correspondence between the subject information and the scene information, or may be a relationship set of correspondence between the identifier, the scene information, and the subject information. When the first relationship set and the second relationship set are both relationship sets of corresponding relationships among the identifiers, the scene information and the subject information, the first relationship set and the second relationship set may be the same relationship set.
In an optional embodiment, sending a control instruction to the controlled end according to the target theme information includes:
determining a target identifier corresponding to the target subject information from a third relationship set of corresponding relationships between pre-stored identifiers and subject information; and sending a control instruction to the controlled end corresponding to the target identifier.
Specifically, a third relationship set of the identifier and the topic information is stored in the server, and after the target topic information in the subscription request is acquired, the target identifier corresponding to the target topic information can be found from the third relationship set according to the target topic information. After the target identifier is determined, the corresponding controlled terminal can be determined according to the target identifier, so that a control instruction is sent to the controlled terminal.
It is understood that the third relationship set may be a relationship set identifying a corresponding relationship with the topic information, or may be a relationship set identifying a corresponding relationship with the scene information and the topic information. When the first relationship set, the second relationship set and the third relationship set are relationship sets of corresponding relationships among the identifiers, the scene information and the subject information, the first relationship set, the second relationship set and the third relationship set may be the same relationship set.
In one embodiment, the scenario information is taken as a wireless network name (e.g., the wireless network name is a home name) as an example. Since the home name and Mac of the device are both stored in the database, it is necessary to correspond Mac and home name in the database in order to bind the device a and the device B under the same home name. Each device needs to receive different information, so that the corresponding TopicA and TopicB are pre-configured for the device a and the device B in the background. This forms a correspondence of device (Mac address) -home 1(home1) -Topic.
To ensure that the device is not controlled by mistake, it is required that only Topic under the same family name can be acquired. If the Topic and Mac have no mapping relation with the family name, the device C subscribes to the Topic of the device A if knowing the Mac of the device A, and then the device C sends a control instruction to the device A through the TopicA, so that the device is controlled incorrectly among different families.
According to the device control method, isolation is set between the devices through the mapping relation between the Topic and the family name, and then when the device C wants to subscribe to the TopicA of the device A, a request is sent to the server. After receiving the request, the server acquires the family to which the equipment C in the database belongs by using the Mac address of the equipment C in the request; then find the family to which the device A belongs through TopicA through the mapping relation. The two are then compared and if under the same family name, device C is allowed to subscribe to TopicA. If not, no subscription to TopicA is allowed. Thus, it can be determined which devices are under the same family name, and only allow devices to subscribe to Topic under the same family, solving the problem of cross-family subscription.
Based on the same concept, another device control method is provided in an embodiment of the present application, and specific implementation of the method may refer to the description in the method embodiment section, and repeated descriptions are omitted, and the method may be applied to any form of electronic device, such as a control terminal. As shown in fig. 3, the device control method includes:
Optionally, before sending the control instruction to the controlled end to the server, the method further includes:
and sending a subscription request to a server, wherein the subscription request comprises a first identifier of the control terminal and target subject information of the controlled terminal, so that the server determines first scene information corresponding to the control terminal according to the first identifier, determines second scene information corresponding to the controlled terminal according to the target subject information, and controls the control terminal to subscribe the target subject information of the controlled terminal if the first scene information is consistent with the second scene information.
Based on the same concept, an apparatus control system is provided in the embodiments of the present application, and specific implementation of the system may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 4, the system mainly includes: a control end 401, a server 402 and a controlled end 403;
the control end is used for sending a control instruction of the controlled end to the server;
the server is used for acquiring a control instruction; after determining that the control end subscribes the target theme information of the controlled end, sending a control instruction to the controlled end according to the target theme information;
and the controlled end is used for executing the operation corresponding to the control instruction after the control instruction is acquired.
Based on the same concept, an apparatus control device is provided in the embodiments of the present application, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 5, the apparatus mainly includes:
an obtaining module 501, configured to obtain a control instruction sent by a control end to a controlled end;
the first sending module 502 is configured to send a control instruction to the controlled end according to the target topic information after determining that the control end has subscribed the target topic information of the controlled end, so that the controlled end executes an operation corresponding to the control instruction after acquiring the control instruction.
Based on the same concept, an apparatus control device is provided in the embodiments of the present application, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated descriptions are omitted, as shown in fig. 6, the apparatus mainly includes:
the second sending module 601 is configured to send a control instruction for the controlled end to the server, so that the server sends the control instruction to the controlled end according to the target theme information after determining that the control end has subscribed the target theme information of the controlled end, and executes an operation corresponding to the control instruction after the controlled end obtains the control instruction.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
acquiring a control instruction sent by a control end to a controlled end;
and after determining that the control end subscribes the target theme information of the controlled end, sending a control instruction to the controlled end according to the target theme information, so that the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction. Or the like, or, alternatively,
and sending a control instruction for the controlled terminal to the server, so that the server sends the control instruction to the controlled terminal according to the target theme information after determining that the control terminal subscribes the target theme information of the controlled terminal, and the controlled terminal executes the operation corresponding to the control instruction after acquiring the control instruction.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In still another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the apparatus control method described in the above-described embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (13)
1. An apparatus control method, applied to a server, includes:
acquiring a control instruction sent by a control end to a controlled end;
after determining that the control end has subscribed the target theme information of the controlled end, sending the control instruction to the controlled end according to the target theme information, so that the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction.
2. The device control method according to claim 1, wherein the process of subscribing the target subject information of the controlled terminal by the control terminal comprises:
acquiring a subscription request sent by a control terminal, wherein the subscription request comprises a first identifier of the control terminal and target subject information of a controlled terminal;
determining first scene information corresponding to the control terminal according to the first identifier;
determining second scene information corresponding to the controlled terminal according to the target subject information;
and if the first scene information is consistent with the second scene information, controlling the control terminal to subscribe the target theme information of the controlled terminal.
3. The device control method according to claim 2, wherein the controlling end subscribes to the target topic information of the controlled end, including:
and binding and storing the first identifier, the second scene information and the target subject information.
4. The device control method according to claim 2 or 3, wherein the determining the first scene information corresponding to the control end according to the first identifier includes:
and searching the first scene information corresponding to the first identifier from a pre-stored first relation set, wherein the first relation set is a set of corresponding relations between the identifier of the equipment and the scene information.
5. The device control method according to claim 2 or 3, wherein the determining second scene information corresponding to the controlled end according to the target subject information includes:
and searching the second scene information corresponding to the target topic information from a pre-stored second relation set, wherein the second relation set is a set of corresponding relations between the subscribed topic information and the scene information of the device.
6. The device control method according to claim 1, wherein the sending the control instruction to the controlled end according to the target subject information includes:
determining a target identifier corresponding to the target subject information from a third relationship set of corresponding relationships between pre-stored identifiers and subject information;
and sending the control instruction to a controlled end corresponding to the target identifier.
7. The equipment control method is applied to a control end and comprises the following steps:
sending a control instruction for a controlled end to a server, so that the server sends the control instruction to the controlled end according to the target theme information after determining that the control end subscribes the target theme information of the controlled end, and the controlled end executes an operation corresponding to the control instruction after acquiring the control instruction.
8. The device control method according to claim 7, wherein before sending the control instruction for the controlled end to the server, the method further comprises:
sending a subscription request to the server, where the subscription request includes a first identifier of the control end and target topic information of the controlled end, so that the server determines first scene information corresponding to the control end according to the first identifier, determines second scene information corresponding to the controlled end according to the target topic information, and controls the control end to subscribe to the target topic information of the controlled end if the first scene information is consistent with the second scene information.
9. An appliance control system, comprising: the system comprises a server, a control end and a controlled end;
the control end is used for sending a control instruction of the controlled end to the server;
the server is used for acquiring the control instruction; after determining that the control terminal has subscribed the target subject information of the controlled terminal, sending the control instruction to the controlled terminal according to the target subject information;
and the controlled end is used for executing the operation corresponding to the control instruction after the control instruction is obtained.
10. An apparatus control device, characterized by comprising:
the acquisition module is used for acquiring a control instruction sent by the control end to the controlled end;
and the first sending module is used for sending the control instruction to the controlled terminal according to the target theme information after the control terminal is determined to subscribe the target theme information of the controlled terminal, so that the controlled terminal executes the operation corresponding to the control instruction after acquiring the control instruction.
11. An apparatus control device, characterized by comprising:
and the second sending module is used for sending a control instruction for the controlled end to the server, so that the server sends the control instruction to the controlled end according to the target theme information after determining that the control end subscribes the target theme information of the controlled end, and the controlled end executes the operation corresponding to the control instruction after acquiring the control instruction.
12. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and implement the apparatus control method according to any one of claims 1 to 6 or the apparatus control method according to any one of claims 7 to 8.
13. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the device control method of any one of claims 1 to 6 or the device control method of any one of claims 7 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111523147.5A CN114153153B (en) | 2021-12-13 | 2021-12-13 | Device control method, system, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111523147.5A CN114153153B (en) | 2021-12-13 | 2021-12-13 | Device control method, system, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114153153A true CN114153153A (en) | 2022-03-08 |
CN114153153B CN114153153B (en) | 2024-05-03 |
Family
ID=80451010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111523147.5A Active CN114153153B (en) | 2021-12-13 | 2021-12-13 | Device control method, system, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153153B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114785850A (en) * | 2022-05-07 | 2022-07-22 | 北京卡特加特智能科技有限公司 | Scene linkage synchronization method and system |
CN115190147A (en) * | 2022-06-29 | 2022-10-14 | 北京奕斯伟计算技术股份有限公司 | Intelligent equipment control method, device and system |
CN115314332A (en) * | 2022-07-11 | 2022-11-08 | 青岛海尔科技有限公司 | Method and device for setting equipment theme, storage medium and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3070550A1 (en) * | 2015-03-16 | 2016-09-21 | Rockwell Automation Technologies, Inc. | Modeling of an industrial automation environment in the cloud |
CN110062041A (en) * | 2019-04-12 | 2019-07-26 | 深圳前海微众银行股份有限公司 | A kind of method and device of the IOT equipment changing based on block chain |
WO2020206693A1 (en) * | 2019-04-12 | 2020-10-15 | 深圳市欢太科技有限公司 | Smart home scheduling method, apparatus and system, server and storage medium |
CN111970363A (en) * | 2020-08-17 | 2020-11-20 | 北京金山云网络技术有限公司 | Data processing method and device based on Internet of things |
CN112579877A (en) * | 2019-09-30 | 2021-03-30 | 北京国双科技有限公司 | Information source system control method, device, storage medium and equipment |
-
2021
- 2021-12-13 CN CN202111523147.5A patent/CN114153153B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3070550A1 (en) * | 2015-03-16 | 2016-09-21 | Rockwell Automation Technologies, Inc. | Modeling of an industrial automation environment in the cloud |
CN110062041A (en) * | 2019-04-12 | 2019-07-26 | 深圳前海微众银行股份有限公司 | A kind of method and device of the IOT equipment changing based on block chain |
WO2020206693A1 (en) * | 2019-04-12 | 2020-10-15 | 深圳市欢太科技有限公司 | Smart home scheduling method, apparatus and system, server and storage medium |
CN113330724A (en) * | 2019-04-12 | 2021-08-31 | 深圳市欢太科技有限公司 | Intelligent home scheduling method, device, system, server and storage medium |
CN112579877A (en) * | 2019-09-30 | 2021-03-30 | 北京国双科技有限公司 | Information source system control method, device, storage medium and equipment |
CN111970363A (en) * | 2020-08-17 | 2020-11-20 | 北京金山云网络技术有限公司 | Data processing method and device based on Internet of things |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114785850A (en) * | 2022-05-07 | 2022-07-22 | 北京卡特加特智能科技有限公司 | Scene linkage synchronization method and system |
CN115190147A (en) * | 2022-06-29 | 2022-10-14 | 北京奕斯伟计算技术股份有限公司 | Intelligent equipment control method, device and system |
CN115190147B (en) * | 2022-06-29 | 2024-03-22 | 北京奕斯伟计算技术股份有限公司 | Intelligent device control method, device and system |
CN115314332A (en) * | 2022-07-11 | 2022-11-08 | 青岛海尔科技有限公司 | Method and device for setting equipment theme, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN114153153B (en) | 2024-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114153153A (en) | Device control method, system, apparatus, electronic device, and storage medium | |
US11546389B2 (en) | Methods and apparatus for registering a device to server | |
CN1332541C (en) | Control point server system and method for admission of effective access for household network devices | |
US9137292B2 (en) | Remote management of DLNA system | |
CN111510425B (en) | Intelligent household equipment management method, device, equipment and storage medium | |
EP1058422A1 (en) | Methods for bridging a HAVi sub-network and a UPnP sub-network and device for implementing said methods | |
EP3057281B1 (en) | M2m application remote registration method, device, system and storage medium | |
CN111405042B (en) | Electronic device discovery method and device, storage medium and electronic device | |
US11792865B2 (en) | Device binding method and apparatus, and electronic device | |
CN112235811B (en) | Method for networking multiple routers, router, electronic device and storage medium | |
CN112532711A (en) | Edge computing application deployment method, terminal, edge computing node and storage medium | |
US20230045914A1 (en) | Method and apparatus for controlling device in internet of things, and gateway device and storage medium | |
CN113596795B (en) | Device binding method, device and computer readable storage medium | |
CN106779881A (en) | Member's sharing method and device | |
WO2021179944A1 (en) | Device sharing method and server | |
CN113595839B (en) | Device binding method, terminal device and storage medium | |
CN107534598B (en) | Method, device and system for media service proxy | |
TW201006191A (en) | UPnP/DLNA device support apparatus, system, and method | |
WO2023231357A1 (en) | Remote calling method, system and apparatus, and electronic device and storage medium | |
CN112165417B (en) | Networking method of household appliance, electronic device and storage medium | |
CN114189402A (en) | Network switching method, device, equipment and storage medium | |
CN114019821A (en) | Smart home control method, device and system | |
WO2020113405A1 (en) | Configuration updates of service functions in service-based network architecture | |
US8233461B1 (en) | Complementing network discovery with physical discovery | |
CN113347284B (en) | Resource access method, resource access device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |