CN114697399A - Equipment control system, method and device, electronic equipment and storage medium - Google Patents

Equipment control system, method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114697399A
CN114697399A CN202210462968.0A CN202210462968A CN114697399A CN 114697399 A CN114697399 A CN 114697399A CN 202210462968 A CN202210462968 A CN 202210462968A CN 114697399 A CN114697399 A CN 114697399A
Authority
CN
China
Prior art keywords
central node
equipment
control instruction
node device
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.)
Pending
Application number
CN202210462968.0A
Other languages
Chinese (zh)
Inventor
王衍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN202210462968.0A priority Critical patent/CN114697399A/en
Publication of CN114697399A publication Critical patent/CN114697399A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The embodiment of the application provides an equipment control system, an equipment control method, an equipment control device, electronic equipment and a storage medium, which are applied to the technical field of information and comprise a client and a plurality of terminal equipment, wherein the plurality of terminal equipment comprise central node equipment and one or more non-central node equipment, wherein the central node equipment is selected from the plurality of terminal equipment in advance through a preset selection rule; the client is used for sending a first control instruction to the central node equipment; the central node equipment is used for receiving a first control instruction sent by the client and forwarding the first control instruction to the target non-central node equipment; and the target non-central node equipment is used for receiving the first control instruction forwarded by the central node equipment and executing the first control instruction. According to the device control system provided by the embodiment of the application, the control instruction can be sent to the central node device through the client and forwarded to the target non-central node device, so that time consumption for controlling the intelligent terminal device through the client is reduced, and the control efficiency is improved.

Description

Equipment control system, method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a system, a method, an apparatus, an electronic device, and a storage medium for operating and controlling a device.
Background
At present, with the popularization of intelligent devices, the control of intelligent terminal devices through clients is becoming more and more common. For example, the client performs rotation and recording of the smart camera.
When the intelligent terminal device is controlled through the client, the control instruction is often sent to the back-end platform through the client through the network of the client, and the control instruction is forwarded to the device to be controlled through the back-end platform.
Disclosure of Invention
An object of the embodiments of the present application is to provide an apparatus control system, an apparatus, an electronic device, and a storage medium, so as to solve the problem in the prior art that it takes long time to control an intelligent terminal apparatus through a client. The specific technical scheme is as follows:
in a first aspect of an embodiment of the present application, an apparatus control system is provided, including a client and a plurality of terminal apparatuses, where the plurality of terminal apparatuses include a central node apparatus and one or more non-central node apparatuses, the central node apparatus being pre-selected from the plurality of terminal apparatuses by a preset selection rule;
the client is used for sending a first control instruction to the central node equipment;
the central node device is configured to receive the first control instruction sent by the client, and forward the first control instruction to a target non-central node device;
the target non-central node device is configured to receive the first control instruction forwarded by the central node device, and execute the first control instruction.
Optionally, the system further comprises a cloud end,
the client is further used for sending a second control instruction to the cloud;
the cloud end is used for receiving the second control instruction and forwarding the second control instruction to the central node equipment;
the center node device is further configured to receive the second control instruction forwarded by the cloud, and forward the second control instruction to the target non-center node device;
the target non-central node device is configured to receive the second control instruction forwarded by the central node device, and execute the second control instruction.
Optionally, the central node device is configured to receive the first control instruction sent by the client; and forwarding the first control instruction to a first associated device connected with the target non-central node device, and forwarding the first control instruction to the target non-central node device through the first associated device.
Optionally, the central node device is configured to receive the second control instruction sent by the client; and forwarding the second control instruction to a second associated device connected with the target non-central node device, and forwarding the second control instruction to the target non-central node device through the second associated device.
Optionally, each of the terminal devices is configured to send its performance parameter to any target terminal device of the remaining terminal devices;
the target terminal device is used for carrying out priority comparison of the device according to the self performance parameters and the received performance parameters of the target terminal device by presetting a priority comparison rule; if the priority comparison result of the equipment is that the self priority is superior to the object terminal equipment, marking the object terminal equipment and the child nodes of the object terminal equipment as the child nodes of the equipment, and if the priority comparison result of the equipment is that the self priority is inferior to the object terminal equipment, marking the self and the child nodes of the equipment as the child nodes of the object terminal equipment;
and the central node device is further configured to determine itself as the central node device when the remaining terminal devices in the plurality of terminal devices are child nodes of itself.
Optionally, the client is further configured to send a preset identifier to each of the terminal devices, where the preset identifier is used to add the multiple terminal devices to an account of the same user;
each terminal device is specifically configured to encrypt its performance parameter through the preset identifier; and sending the encrypted performance parameters to any target terminal equipment in the rest terminal equipment.
Optionally, the target terminal device is specifically configured to determine, according to a preset priority relationship of device types, whether the priority of the device type of the target terminal device is better than that of the target terminal device; if the priority of the equipment category of the target terminal equipment is superior to that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment as the sub-nodes of the target terminal equipment, if the priority of the equipment category of the target terminal equipment is lower than that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment as the sub-nodes of the target terminal equipment, and if the priority of the equipment category of the target terminal equipment is the same as that of the target terminal equipment, performing priority comparison on the performance parameters of the target terminal equipment and the received performance parameters of the target terminal equipment through the priority relation of preset performance parameters; and according to the priority comparison result of the performance parameters, marking the sub-nodes of the object terminal equipment and the object terminal equipment as the sub-nodes of the object terminal equipment, or marking the sub-nodes of the object terminal equipment and the sub-nodes of the object terminal equipment as the sub-nodes of the object terminal equipment.
Optionally, the target terminal device is specifically configured to perform priority comparison on the performance parameter of the target terminal device and the received performance parameter of the target terminal device based on the sequence of the network card performance, the computing capability, and the storage capability.
In a second aspect of the embodiments of the present application, an apparatus control method is provided, which is applied to a central node apparatus in an apparatus control system, where the apparatus control system includes a client and a plurality of terminal apparatuses, and the plurality of terminal apparatuses include the central node apparatus pre-selected from the plurality of terminal apparatuses by a preset selection rule, and one or more non-central node apparatuses;
the method comprises the following steps:
receiving a first control instruction sent by the client;
forwarding the first control instruction to a target non-central node device, so that the target non-central node device executes the first control instruction.
Optionally, the system further includes a cloud, and the method further includes:
receiving a second control instruction forwarded by the cloud, wherein the second control instruction is a control instruction which is sent to the cloud by the client and forwarded by the cloud;
forwarding the second control instruction to a target non-central node device, so that the target non-central node device executes the second control instruction.
Optionally, the forwarding the first manipulation instruction to a target non-central node device, so that the target non-central node device executes the first manipulation instruction, includes:
and forwarding the first control instruction to a first associated device connected with the target non-central node device, and forwarding the first control instruction to the target non-central node device through the first associated device, so that the target non-central node device executes the first control instruction.
Optionally, the forwarding the second manipulation instruction to the target non-central node device, so that the target non-central node device executes the second manipulation instruction, includes:
and forwarding the second control instruction to a second associated device connected with the target non-central node device, and forwarding the second control instruction to the target non-central node device through the second associated device, so that the target non-central node device executes the second control instruction.
A third aspect of the embodiments of the present application provides an apparatus control device, which is applied to a central node device in an apparatus control system, where the apparatus control system includes a client and a plurality of terminal devices, and the plurality of terminal devices include the central node device pre-selected from the plurality of terminal devices according to a preset selection rule, and one or more non-central node devices;
the device comprises:
the first instruction receiving module is used for receiving a first control instruction sent by the client;
the first instruction execution module is configured to forward the first control instruction to a target non-central node device, so that the target non-central node device executes the first control instruction.
Optionally, the device control system further includes a cloud, and the apparatus further includes:
the second instruction receiving module is used for receiving a second control instruction forwarded by the cloud, wherein the second control instruction is a control instruction which is sent to the cloud by the client and forwarded by the cloud;
and the second instruction execution module is used for forwarding the second control instruction to target non-central node equipment so as to enable the target non-central node equipment to execute the second control instruction.
Optionally, the first instruction execution module is specifically configured to: and forwarding the first control instruction to first associated equipment connected with the target non-central node equipment, and forwarding the first control instruction to the target non-central node equipment through the first associated equipment so that the target non-central node equipment executes the first control instruction.
Optionally, the second instruction executing module is specifically configured to forward the second control instruction to a second associated device connected to the target non-central node device, and forward the second control instruction to the target non-central node device through the second associated device, so that the target non-central node device executes the second control instruction.
In another aspect of the embodiments of the present application, an electronic device is provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the control method of any equipment when executing the program stored in the memory.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned device control methods.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above device control methods.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides an equipment control system, an equipment control method, an equipment control device, electronic equipment and a storage medium, wherein the equipment control system comprises a client and a plurality of terminal equipment, wherein the plurality of terminal equipment comprise central node equipment and one or more non-central node equipment, and the central node equipment is pre-selected from the plurality of terminal equipment through a preset selection rule; the client is used for sending a first control instruction to the central node equipment; the central node device is configured to receive the first control instruction sent by the client, and forward the first control instruction to a target non-central node device; the target non-central node device is configured to receive the first control instruction forwarded by the central node device, and execute the first control instruction. According to the equipment control system provided by the embodiment of the application, the control instruction can be sent to the central node equipment selected in advance according to the preset selection rule through the client, and then the control instruction is forwarded to the target non-central node equipment through the central node equipment, so that the target non-central node equipment executes the control instruction without other intermediate equipment, time consumption for controlling the intelligent terminal equipment through the client is reduced, and control efficiency is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is also obvious for a person skilled in the art to obtain other embodiments according to the drawings.
Fig. 1 is a schematic structural diagram of an apparatus control system according to an embodiment of the present disclosure;
fig. 2 is a diagram illustrating an example of an apparatus control system according to an embodiment of the present disclosure;
fig. 3 is another schematic structural diagram of an apparatus control system according to an embodiment of the present application;
fig. 4 is a diagram of another example of an apparatus control system according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus control device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the description herein are intended to be within the scope of the present disclosure.
First, terms of art that may be used in the embodiments of the present application are explained:
the mobile phone client side: the special program which runs on the mobile phone system and provides the function of the control equipment can be downloaded from an application store by a user;
near field: a scene with a short distance refers to a spatial relationship between an APP (application) and a device in the same network environment;
multicast: also known as multicast, a transport scheme used in networks that allows for the delivery of a message to a selected subset of all possible destinations, i.e., to deliver information to a variety of addresses as specified.
In order to solve the problem that in the prior art, when a client performs control on an intelligent terminal device, time is consumed, an embodiment of the present application aims to provide a device control system, a method, an apparatus, an electronic device, and a storage medium.
In a first aspect of an embodiment of the present application, an apparatus control system is provided first, and referring to fig. 1, the apparatus control system includes a client 101, a plurality of terminal apparatuses, where the plurality of terminal apparatuses include a central node apparatus 102 pre-selected from the plurality of terminal apparatuses by a preset selection rule, and one or more non-central node apparatuses, where the one or more non-central node apparatuses include a target non-central node apparatus 103;
the client 101 is used for sending a first control instruction to the central node equipment;
the central node device 102 is configured to receive a first control instruction sent by a client, and forward the first control instruction to a target non-central node device;
and the target non-central node device 103 is configured to receive the first control instruction forwarded by the central node device, and execute the first control instruction.
The client in the embodiment of the application can be various intelligent terminals, specifically a mobile phone client, a computer terminal and the like. The user can send the control instruction through the client. The central node device may be a device capable of receiving and sending a manipulation instruction, and specifically may be a gateway, a surveillance camera, or other intelligent devices with gateway capability. The target non-central node device may be an intelligent device executing the control instruction, specifically, a device having a central node capability or a device not having the central node capability, for example, a security and smart home device, such as a monitoring camera, a gateway, a detector, and the like having a network capability. The control command may be a command to be executed by the target non-central node device, such as moving, recording, and the like.
In the embodiment of the application, the client, the central node device and the target non-central node device can be in a near-field scene, wherein the client can directly send the control instruction to the central node device without passing through an intermediate device.
In actual use, the central node device may be a device with gateway capabilities and not a routing device. In the actual use process, attacks on the routing device often occur, so that information is leaked, and communication safety is affected. In the embodiment of the application, a certain terminal device is selected from a plurality of terminal devices as a central node device in advance through a preset selection rule, and then the central node device receives and sends the control command, so that information leakage can be prevented, and communication safety is improved.
For example, referring to fig. 2, a mobile phone client held by a user sends a control instruction to a central node device, and then sends the control instruction to a target non-central node device through the central node device. In an actual use process, a situation that the central node device and the target non-central node device cannot be directly communicated may occur, for example, other node devices such as a gateway and a router still exist between the central node device and the target non-central node device, and for the situation, the central node device may forward the control instruction to the node device first, and then forward the control instruction to the target non-central node device through the node device. In fig. 2, when the manipulation instruction is sent by the mobile phone client held by the user, the manipulation instruction may be directly sent to the non-central node device a, and the manipulation instructions may be sent to the device C and the device D through the central node device, but the manipulation instruction may not be directly sent to the device B through the central node device, where B, C and D are devices without central node capability, and the manipulation instruction is sent to the first associated device through the central node device, and the manipulation instruction is sent to the device B through the first associated device.
Therefore, by the device control system provided by the embodiment of the application, the control instruction can be sent to the central node device selected in advance according to the preset selection rule through the client, and then the control instruction is forwarded to the target non-central node device through the central node device, so that the target non-central node device executes the control instruction without other intermediate devices, time consumption for controlling the intelligent terminal device through the client is reduced, and control efficiency is improved.
Optionally, referring to fig. 3, the system further includes a cloud 104,
the client 101 is further configured to send a second control instruction to the cloud;
the cloud 104 is configured to receive the second control instruction and forward the second control instruction to the central node device;
the central node device 102 is further configured to receive a second control instruction forwarded by the cloud, and forward the second control instruction to the target non-central node device;
and the target non-central node device 103 is configured to receive the second control instruction forwarded by the central node device, and execute the second control instruction.
In the actual use process, the client and the central node device may not be able to directly communicate, for example, the distance between the client and the central node device is long. In the embodiment of the application, the second control instruction can be sent to the cloud end, received through the cloud end, and forwarded to the center node device, and finally the second control instruction forwarded through the cloud end is received through the center node device, and forwarded to the target non-center node device, so that the control of the target non-center node device is realized. The first control instruction and the second control instruction are only for distinguishing whether the control instructions are forwarded through the cloud, and specifically, the first control instruction and the second control instruction may be the same or different instructions. In an actual use process, in the process of forwarding the second control instruction from the cloud to the central node device, forwarding may also be performed through the routing device. For example, it may be impossible to forward the control instruction to the node device through the central node device, and then forward the control instruction to the target non-central node device through the node device.
For example, referring to fig. 4, a mobile phone client held by a user sends a control instruction to a cloud, then forwards the control instruction to a routing device through the cloud, then forwards the control instruction to a central node device through the routing device, and finally sends the control instruction to a non-central node device through the central node device.
By the method, the communication continuity can be guaranteed and the user experience can be improved by forwarding the control instruction to the cloud under the condition that the client and the central node device cannot directly communicate.
Optionally, the central node device 102 is configured to receive a first control instruction sent by the client; and forwarding the first control instruction to first associated equipment connected with the target non-central node equipment, and forwarding the first control instruction to the target non-central node equipment through the first associated equipment.
Optionally, the central node device 102 is configured to receive a second control instruction sent by the client; and forwarding the second control instruction to second associated equipment connected with the target non-central node equipment, and forwarding the second control instruction to the target non-central node equipment through the second associated equipment.
In an actual use process, it often happens that a certain device cannot directly communicate, a node device still exists between the central node device and the target non-central node device, for example, a gateway, a router, and the like, and the control instruction can be forwarded to the node device through the central node device first, and then forwarded to the target non-central node device through the node device. For example, there are routers between devices, etc. For the situation, the forwarding of the control instruction may be performed through the first associated device or the second associated device, where the first associated device and the second associated device are only associated devices for distinguishing whether forwarding is performed through the cloud, and in an actual use process, the first associated device and the second associated device may be the same device or different devices.
For example, referring to fig. 2, a mobile phone client held by a user sends a control instruction to a central node device, then sends the control instruction to a first associated device through the central node device, and finally sends the control instruction to a target non-central node device through the first associated device.
For example, referring to fig. 4, a mobile phone client held by a user sends a control instruction to a cloud, then forwards the control instruction to a routing device through the cloud, then forwards the control instruction to a central node device through the routing device, then sends the control instruction to a related device through the central node device, and finally sends the control instruction to a target non-central node device through the related device. In fig. 4, when the manipulation instruction is sent through a mobile phone client held by a user, the manipulation instruction may be sent to a cloud service, and the manipulation instruction is forwarded to a router through the cloud service, then the manipulation instruction is forwarded to a central node device through the router, and finally the manipulation instruction is sent to a non-central node device a, C and D through the central node device, but the manipulation instruction cannot be directly sent to a device B through the central node device, where B, C and D are devices without central node capability, and the manipulation instruction may be sent to a second associated device through the central node device, and then the manipulation instruction is sent to a device B through the second associated device.
Optionally, the client 101 is further configured to send a preset identifier to each terminal device, where the preset identifier is used to add multiple terminal devices to an account of the same user;
each terminal device is specifically used for encrypting the performance parameters of the terminal device through a preset identifier; and sending the encrypted performance parameters to any target terminal equipment in the rest terminal equipment.
Optionally, each terminal device is configured to send its performance parameter to any target terminal device of the remaining terminal devices;
the target terminal equipment is used for carrying out equipment priority comparison according to the self performance parameters and the received performance parameters of the target terminal equipment by presetting a priority comparison rule; if the priority comparison result of the equipment shows that the self priority is superior to that of the object terminal equipment, the sub-nodes of the object terminal equipment and the sub-nodes of the object terminal equipment are marked as the sub-nodes of the self, and if the priority comparison result of the equipment shows that the self priority is inferior to that of the object terminal equipment, the self and the sub-nodes of the self are marked as the sub-nodes of the object terminal equipment;
the central node device 102 is further configured to determine itself as the central node device when the remaining terminal devices in the plurality of terminal devices are all child nodes of itself.
In an actual use process, before each terminal device sends its performance parameter to any target terminal device among the other terminal devices, each terminal device may further determine whether its own specific central node capability is determined according to its performance parameter, for example, when itself lacks a gateway capability, then the central node device is not selected, that is, its own performance parameter is not sent.
In one example, the specific process of selecting the central node includes:
1. when the equipment with the central node capability is online, a multicast protocol is initiated to discover the equipment;
2. initiating central node election to the discovered equipment, and selecting the central nodes from the two after comparison according to rules;
3. equipment which fails in election is carried with all equipment under the node to join a new central node;
4. the new central node continues to initiate multicast protocol search;
5. the central node reports the local node network topology to the service according to time.
Optionally, the target terminal device is specifically configured to determine whether the priority of the device class of the target terminal device is better than that of the target terminal device according to a preset priority relationship of the device class; if the priority of the equipment type of the target terminal equipment is superior to that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment as the sub-nodes of the target terminal equipment, if the priority of the equipment type of the target terminal equipment is inferior to that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment, and if the priority of the equipment type of the target terminal equipment is the same as that of the target terminal equipment, performing priority comparison on the performance parameters of the target terminal equipment and the received performance parameters of the target terminal equipment through the priority relation of preset performance parameters; and marking the child nodes of the object terminal equipment and the child nodes of the object terminal equipment as the child nodes of the object terminal equipment or marking the child nodes of the object terminal equipment and the child nodes of the object terminal equipment as the child nodes of the object terminal equipment according to the priority comparison result of the performance parameters.
Optionally, the target terminal device is specifically configured to perform priority comparison on the performance parameter of the target terminal device and the received performance parameter of the target terminal device based on the sequence of the network card performance, the computing capability, and the storage capability.
The priority relation of the equipment types is preset, the gateway type equipment can be better than the monitoring camera type equipment, and the monitoring camera type equipment is better than intelligent equipment with gateway capability. The priority relation of the preset performance parameters can be that the network card performance is firstly compared, and if the priority relation is larger than the preset performance parameters, the network card performance is better than the preset performance parameters; if the data are the same, comparing the computing power of a Central Processing Unit (CPU), and if the data are larger than the computing power of the CPU, comparing the computing power of the CPU with the computing power of the CPU; if the data are the same, the storage capacity is compared, and if the data are larger, the comparison is better. In an actual use process, if the network card performance, the CPU computation capability, and the storage capability of the two devices, for example, the two same devices, are the same, the device that first sends its performance parameter may be the central node device according to the time of each initiating election of the central node device.
In one example, the central node election rule:
1. device type priority: a gateway, a monitoring camera and intelligent equipment with gateway capability;
2. same device performance priority: network card performance > CPU computing power > storage capability;
3. the central node equipment has independent network connection capacity, and intelligent equipment such as other subordinate detectors and mobile phone clients with unstable connection states cannot be used as central nodes;
4. when the capacity is completely the same, the initiator is used as the central node.
To illustrate aspects of embodiments of the present application, the following description, in conjunction with specific embodiments, includes:
1. a user configures equipment network to connect with a home router in a home environment;
2. the device registers to the cloud service through the router;
3. the user adds the equipment to the account of the user through the mobile phone client;
4. the platform issues the unique identifier of the user account to the equipment;
5. under the condition that the equipment has a network, sending a multicast protocol to discover all the equipment in the same network;
6. the equipment with the same user identifier carries out encryption communication through the identifier, and the equipment with the best competitive performance is used as a central node;
7. the user holds a mobile phone client to obtain the same user identifier from the cloud service;
8. when the mobile phone client is in the same network with the equipment, the mobile phone client can be discovered by other equipment through a multicast protocol;
9. the mobile phone client is used as a child node to join the equipment network;
10. when a user operates the equipment on the mobile phone and the step 9 is effective, the user can directly send an operation instruction to the central node through a route;
11. and when the step 9 is not effective, sending an operation instruction to the cloud service through the base station, and sending the operation instruction to the central node by the cloud service.
In a second aspect of the embodiments of the present application, an apparatus control method is provided, referring to fig. 5, and is applied to a central node apparatus in an apparatus control system, where the apparatus control system includes a client and a plurality of terminal apparatuses, and the plurality of terminal apparatuses include a central node apparatus pre-selected from the plurality of terminal apparatuses by a preset selection rule, and one or more non-central node apparatuses;
the method comprises the following steps:
step S51, receiving a first control instruction sent by the client;
step S52, forwarding the first manipulation instruction to the target non-central node device, so that the target non-central node device executes the first manipulation instruction.
Optionally, the system further includes a cloud, and the method further includes:
receiving a second control instruction forwarded by the cloud, wherein the second control instruction is a control instruction which is sent to the cloud by the client and forwarded by the cloud;
and forwarding the second control instruction to the target non-central node device so that the target non-central node device executes the second control instruction.
Optionally, forwarding the first manipulation instruction to the target non-central node device, so that the target non-central node device executes the first manipulation instruction, where the method includes:
and forwarding the first control instruction to first associated equipment connected with the target non-central node equipment, and forwarding the first control instruction to the target non-central node equipment through the first associated equipment so that the target non-central node equipment executes the first control instruction.
Optionally, forwarding the second manipulation instruction to the target non-central node device, so that the target non-central node device executes the second manipulation instruction, where the method includes:
and forwarding the second control instruction to second associated equipment connected with the target non-central node equipment, and forwarding the second control instruction to the target non-central node equipment through the second associated equipment so that the target non-central node equipment executes the second control instruction.
Therefore, according to the device control method provided by the embodiment of the application, the control instruction can be sent to the central node device selected in advance according to the preset selection rule through the client, and then the control instruction is forwarded to the target non-central node device through the central node device, so that the target non-central node device executes the control instruction without other intermediate devices, time consumption for controlling the intelligent terminal device through the client is reduced, and control efficiency is improved.
In a third aspect of the embodiments of the present application, an apparatus control device is provided, referring to fig. 6, and is applied to a central node device in an apparatus control system, where the apparatus control system includes a client and a plurality of terminal devices, and the plurality of terminal devices include a central node device pre-selected from the plurality of terminal devices according to a preset selection rule and one or more non-central node devices;
referring to fig. 6, the above apparatus includes:
a first instruction receiving module 601, configured to receive a first control instruction sent by a client;
the first instruction executing module 602 is configured to forward the first control instruction to the target non-central node device, so that the target non-central node device executes the first control instruction.
Optionally, the device control system further includes a cloud, and the apparatus further includes:
the second instruction receiving module is used for receiving a second control instruction forwarded by the cloud, wherein the second control instruction is a control instruction which is sent to the cloud by the client and forwarded by the cloud;
and the second instruction execution module is used for forwarding the second control instruction to the target non-central node equipment so as to enable the target non-central node equipment to execute the second control instruction.
Optionally, the first instruction execution module is specifically configured to: and forwarding the first control instruction to first associated equipment connected with the target non-central node equipment, and forwarding the first control instruction to the target non-central node equipment through the first associated equipment so that the target non-central node equipment executes the first control instruction.
Optionally, the second instruction execution module is specifically configured to forward the second control instruction to a second associated device connected to the target non-central node device, and forward the second control instruction to the target non-central node device through the second associated device, so that the target non-central node device executes the second control instruction.
Therefore, by the device control device provided by the embodiment of the application, the control instruction can be sent to the center node device selected in advance according to the preset selection rule through the client, and then the control instruction is forwarded to the target non-center node device through the center node device, so that the target non-center node device executes the control instruction without other intermediate devices, time consumption for controlling the intelligent terminal device through the client is reduced, and control efficiency is improved.
The embodiment of the present application further provides an electronic device, as shown in fig. 7, which includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:
receiving a first control instruction sent by a client;
and forwarding the first control instruction to the target non-central node equipment so that the target non-central node equipment executes the first control instruction.
The communication bus 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 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above-mentioned device control methods.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, cause the computer to perform any one of the above-mentioned device control methods.
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 in 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 wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, 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 incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method, apparatus, electronic device, storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the system embodiments, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (14)

1. An equipment control system is characterized by comprising a client and a plurality of terminal equipment, wherein the plurality of terminal equipment comprise central node equipment and one or more non-central node equipment, wherein the central node equipment is selected from the plurality of terminal equipment in advance through a preset selection rule;
the client is used for sending a first control instruction to the central node equipment;
the central node device is configured to receive the first control instruction sent by the client, and forward the first control instruction to a target non-central node device;
the target non-central node device is configured to receive the first control instruction forwarded by the central node device, and execute the first control instruction.
2. The system of claim 1, further comprising a cloud,
the client is further used for sending a second control instruction to the cloud;
the cloud end is used for receiving the second control instruction and forwarding the second control instruction to the central node equipment;
the center node device is further configured to receive the second control instruction forwarded by the cloud, and forward the second control instruction to the target non-center node device;
the target non-central node device is configured to receive the second control instruction forwarded by the central node device, and execute the second control instruction.
3. The system of claim 1,
the central node device is configured to receive the first control instruction sent by the client; and forwarding the first control instruction to a first associated device connected with the target non-central node device, and forwarding the first control instruction to the target non-central node device through the first associated device.
4. The system of claim 2,
the central node device is configured to receive the second control instruction sent by the client; and forwarding the second control instruction to a second associated device connected with the target non-central node device, and forwarding the second control instruction to the target non-central node device through the second associated device.
5. The system of claim 1,
each terminal device is used for sending the performance parameter of the terminal device to any target terminal device in the rest terminal devices;
the target terminal device is used for carrying out priority comparison of the device according to the self performance parameters and the received performance parameters of the target terminal device by presetting a priority comparison rule; if the priority comparison result of the equipment shows that the self priority is superior to the object terminal equipment, marking the object terminal equipment and the child nodes of the object terminal equipment as the child nodes of the equipment, and if the priority comparison result of the equipment shows that the self priority is inferior to the object terminal equipment, marking the self and the child nodes of the equipment as the child nodes of the object terminal equipment;
and the central node device is further configured to determine itself as the central node device when the remaining terminal devices in the plurality of terminal devices are child nodes of itself.
6. The system of claim 5,
the client is further configured to send a preset identifier to each terminal device, where the preset identifier is used to add the multiple terminal devices to an account of the same user;
each terminal device is specifically configured to encrypt its performance parameter through the preset identifier; and sending the encrypted performance parameters to any target terminal equipment in the rest terminal equipment.
7. The system of claim 5,
the target terminal device is specifically configured to determine whether the priority of the device class of the target terminal device is better than that of the target terminal device according to a preset priority relationship of the device class; if the priority of the equipment category of the target terminal equipment is superior to that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment as the sub-nodes of the target terminal equipment, if the priority of the equipment category of the target terminal equipment is lower than that of the target terminal equipment, marking the sub-nodes of the target terminal equipment and the sub-nodes of the target terminal equipment as the sub-nodes of the target terminal equipment, and if the priority of the equipment category of the target terminal equipment is the same as that of the target terminal equipment, performing priority comparison on the performance parameters of the target terminal equipment and the received performance parameters of the target terminal equipment through the priority relation of preset performance parameters; and according to the priority comparison result of the performance parameters, marking the sub-nodes of the object terminal equipment and the object terminal equipment as the sub-nodes of the object terminal equipment, or marking the sub-nodes of the object terminal equipment and the sub-nodes of the object terminal equipment as the sub-nodes of the object terminal equipment.
8. The system of claim 7,
the target terminal device is specifically configured to perform priority comparison on the performance parameters of the target terminal device and the received performance parameters of the target terminal device based on the sequence of the network card performance, the computing capability and the storage capability.
9. The equipment control method is characterized by being applied to central node equipment in an equipment control system, wherein the equipment control system comprises a client and a plurality of terminal equipment, and the plurality of terminal equipment comprise the central node equipment and one or more non-central node equipment, wherein the central node equipment is selected from the plurality of terminal equipment in advance through a preset selection rule;
the method comprises the following steps:
receiving a first control instruction sent by the client;
forwarding the first control instruction to a target non-central node device, so that the target non-central node device executes the first control instruction.
10. The method of claim 9, wherein the system further comprises a cloud, the method further comprising:
receiving a second control instruction forwarded by the cloud, wherein the second control instruction is a control instruction which is sent to the cloud by the client and forwarded by the cloud;
forwarding the second control instruction to a target non-central node device, so that the target non-central node device executes the second control instruction.
11. The method according to claim 9, wherein forwarding the first steering instruction to a target non-central node device to cause the target non-central node device to execute the first steering instruction comprises:
and forwarding the first control instruction to a first associated device connected with the target non-central node device, and forwarding the first control instruction to the target non-central node device through the first associated device, so that the target non-central node device executes the first control instruction.
12. The method according to claim 10, wherein forwarding the second steering instruction to a target non-central node device to cause the target non-central node device to execute the second steering instruction comprises:
and forwarding the second control instruction to a second associated device connected with the target non-central node device, and forwarding the second control instruction to the target non-central node device through the second associated device, so that the target non-central node device executes the second control instruction.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 9 to 12 when executing a program stored in the memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any of the claims 9-12.
CN202210462968.0A 2022-04-28 2022-04-28 Equipment control system, method and device, electronic equipment and storage medium Pending CN114697399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210462968.0A CN114697399A (en) 2022-04-28 2022-04-28 Equipment control system, method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210462968.0A CN114697399A (en) 2022-04-28 2022-04-28 Equipment control system, method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114697399A true CN114697399A (en) 2022-07-01

Family

ID=82144608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210462968.0A Pending CN114697399A (en) 2022-04-28 2022-04-28 Equipment control system, method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114697399A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180164785A1 (en) * 2012-03-27 2018-06-14 Sirqul, Inc. Controlling distributed device operations
CN108702313A (en) * 2018-04-28 2018-10-23 深圳魔耳智能声学科技有限公司 Intelligent home voice control method, device, equipment and system
WO2019138414A1 (en) * 2018-01-12 2019-07-18 Telefonaktiebolaget Lm Ericsson (Publ) Data center failure management in an sdn deployment using switching node control
WO2020019437A1 (en) * 2018-07-25 2020-01-30 平安科技(深圳)有限公司 Method and apparatus for monitoring terminal operating data, terminal device, and medium
CN113872782A (en) * 2020-06-30 2021-12-31 漳州立达信光电子科技有限公司 Equipment networking method, control equipment and Internet of things system
CN114328143A (en) * 2021-12-31 2022-04-12 珠海格力电器股份有限公司 Multi-device linkage method, module and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180164785A1 (en) * 2012-03-27 2018-06-14 Sirqul, Inc. Controlling distributed device operations
WO2019138414A1 (en) * 2018-01-12 2019-07-18 Telefonaktiebolaget Lm Ericsson (Publ) Data center failure management in an sdn deployment using switching node control
CN108702313A (en) * 2018-04-28 2018-10-23 深圳魔耳智能声学科技有限公司 Intelligent home voice control method, device, equipment and system
WO2020019437A1 (en) * 2018-07-25 2020-01-30 平安科技(深圳)有限公司 Method and apparatus for monitoring terminal operating data, terminal device, and medium
CN113872782A (en) * 2020-06-30 2021-12-31 漳州立达信光电子科技有限公司 Equipment networking method, control equipment and Internet of things system
CN114328143A (en) * 2021-12-31 2022-04-12 珠海格力电器股份有限公司 Multi-device linkage method, module and system

Similar Documents

Publication Publication Date Title
US11757932B2 (en) Event driven route control
US9984158B2 (en) Finding services in a service-oriented architecture (SOA) network
TW201543243A (en) Capability monitoring in a service oriented architecture
CN104883267A (en) Network configuration accessing method and device thereof
CN113595897B (en) Path detection method and device
CN107566292B (en) Message forwarding method and device
CN113452594B (en) Inner layer message matching method and device of tunnel message
CN112929241B (en) Network testing method and device
CN107786448B (en) Method and device for establishing forwarding path of service flow
WO2023173993A1 (en) Communication system and method based on dynamic gateway
CN109981462B (en) Message processing method and device
US11595419B2 (en) Communication monitoring system, communication monitoring apparatus, and communication monitoring method
CN114697399A (en) Equipment control system, method and device, electronic equipment and storage medium
CN109067666B (en) Message transmission method and device
CN114978563A (en) Method and device for blocking IP address
US20200341968A1 (en) Differential Update of Local Cache from Central Database
CN111385371A (en) MAC address acquisition method, device and equipment
CN113676540B (en) Connection establishment method and device
WO2024021896A1 (en) Data transmission method, slice relationship mapping method, electronic device, and medium
CN114245402A (en) Network distribution method and device of intelligent device, electronic device and storage medium
CN117499917A (en) Terminal authentication method, distribution equipment and storage medium
CN115801808A (en) Mirror image flow control method and device, electronic equipment and readable storage medium
CN115701055A (en) User information diffusion method and network equipment
CN114727169A (en) Method, device and equipment for establishing connection and readable storage medium
CN115632980A (en) Method and device for realizing routing configuration, storage medium and electronic equipment

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