CN115002206B - Control method and device of intelligent equipment, storage medium and electronic device - Google Patents

Control method and device of intelligent equipment, storage medium and electronic device Download PDF

Info

Publication number
CN115002206B
CN115002206B CN202210469034.XA CN202210469034A CN115002206B CN 115002206 B CN115002206 B CN 115002206B CN 202210469034 A CN202210469034 A CN 202210469034A CN 115002206 B CN115002206 B CN 115002206B
Authority
CN
China
Prior art keywords
target
control instruction
intelligent
intelligent device
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210469034.XA
Other languages
Chinese (zh)
Other versions
CN115002206A (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210469034.XA priority Critical patent/CN115002206B/en
Publication of CN115002206A publication Critical patent/CN115002206A/en
Application granted granted Critical
Publication of CN115002206B publication Critical patent/CN115002206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a control method and device of intelligent equipment, a storage medium and an electronic device, and relates to the technical field of intelligent home/intelligent families, wherein the method comprises the following steps: acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed; and sending the target control instruction to the second intelligent device through the target application so as to forward the target control instruction to the first intelligent device through the second intelligent device. According to the method and the device, the problem that the success rate of equipment operation control is low due to the fact that equipment control depends on the network state of equipment in the control method of the intelligent equipment in the related technology is solved.

Description

Control method and device of intelligent equipment, storage medium and electronic device
Technical Field
The application relates to the technical field of intelligent home/intelligent families, in particular to a control method and device of intelligent equipment, a storage medium and an electronic device.
Background
Currently, a user can realize remote control over a smart device through a network. However, the operation state control of some intelligent devices depends on a network, and the operation control of the intelligent devices cannot be completed without an external network or a router, so that the operation control of the devices fails.
As can be seen from the above, the control method of the intelligent device in the related art has a problem that the success rate of the device operation control is low due to the fact that the device control depends on the network state of the device.
Disclosure of Invention
The embodiment of the application provides a control method and device of intelligent equipment, a storage medium and an electronic device, which at least solve the problem that the success rate of equipment operation control is low due to the fact that equipment control depends on the network state of the equipment in the control method of the intelligent equipment in the related technology.
According to an aspect of the embodiments of the present application, there is provided a control method of an intelligent device, including: acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed; and sending the target control instruction to the second intelligent device through the target application so as to forward the target control instruction to the first intelligent device through the second intelligent device.
In an exemplary embodiment, after the target control instruction is acquired by the target application, the method further includes: analyzing the target control instruction and determining an instruction format adopted by the target control instruction; and under the condition that the instruction format adopted by the target control instruction is not the target instruction format, sending out first prompt information through the target application, wherein the first prompt information is used for prompting that the first intelligent equipment does not support control.
In an exemplary embodiment, the parsing the target control instruction to determine an instruction format adopted by the target control instruction includes: analyzing the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction; under the condition that the analysis result of the target control instruction indicates that the target control instruction is successfully analyzed, determining that the instruction format adopted by the target control instruction is the target instruction format; and under the condition that the analysis result of the target control instruction indicates that the analysis of the target control instruction fails, determining that the instruction format adopted by the target control instruction is not the target instruction format.
In an exemplary embodiment, the determining, when the first smart device is in a target network state and the target control instruction is in a target instruction format, a second smart device associated with the target object includes: determining the second intelligent device associated with the target object under the condition that the first intelligent device is in a network connection-free state and the target control instruction adopts the target instruction format; or determining the second intelligent device associated with the target object under the condition that the network quality of the first intelligent device is less than or equal to a network quality threshold value and the target control instruction adopts the target instruction format.
In one exemplary embodiment, the determining a second smart device associated with the target object includes: determining a set of candidate devices associated with the target object, wherein each candidate device in the set of candidate devices allows parsing control instructions in the target instruction format; and selecting the second intelligent device from the group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
In an exemplary embodiment, the sending, by the target application, the target control instruction to the second smart device includes: performing a conversion operation on the target control instruction, and converting the target control instruction into target binary data; and sending the target binary data to the second intelligent device through the target application.
In an exemplary embodiment, after the sending, by the target application, the target control instruction to the second smart device, the method further comprises: receiving the target control instruction through the second intelligent equipment; broadcasting the target control instruction to the first intelligent device through the second intelligent device; receiving a target execution result returned by the first intelligent device through the second intelligent device, wherein the target execution result is an execution result of the target device operation; and sending the target execution result to the target application through the second intelligent equipment.
According to another aspect of the embodiments of the present application, there is also provided a control device of an intelligent device, including: the system comprises an acquisition unit, a target application and a control unit, wherein the acquisition unit is used for acquiring a target control instruction through the target application, and the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; the determining unit is used for determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows analyzing the control instruction in the target instruction format; and the first sending unit is used for sending the target control instruction to the second intelligent device through the target application so as to forward the target control instruction to the first intelligent device through the second intelligent device.
In an exemplary embodiment, the apparatus further comprises: the analysis unit is used for analyzing the target control instruction after the target control instruction is acquired through the target application, and determining an instruction format adopted by the target control instruction; and the sending unit is used for sending first prompt information through the target application under the condition that the instruction format adopted by the target control instruction is not the target instruction format, wherein the first prompt information is used for prompting that the first intelligent equipment does not support control.
In an exemplary embodiment, the parsing unit includes: the analysis module is used for analyzing the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction; the first determining module is used for determining that an instruction format adopted by the target control instruction is the target instruction format under the condition that the analysis result of the target control instruction indicates that the target control instruction is successfully analyzed; and the second determining module is used for determining that the instruction format adopted by the target control instruction is not the target instruction format under the condition that the analysis result of the target control instruction indicates that the analysis of the target control instruction fails.
In an exemplary embodiment, the determining unit includes: a third determining module, configured to determine, when the first intelligent device is in a network connection-free state and the target control instruction adopts the target instruction format, the second intelligent device associated with the target object; or, a fourth determining module, configured to determine the second smart device associated with the target object when the network quality of the first smart device is less than or equal to a network quality threshold and the target control instruction adopts the target instruction format.
In an exemplary embodiment, the determining unit includes: a fifth determining module configured to determine a set of candidate devices associated with the target object, wherein each candidate device in the set of candidate devices allows parsing control instructions in the target instruction format; and the selecting module is used for selecting the second intelligent device from the group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
In an exemplary embodiment, the first transmitting unit includes: the execution module is used for executing conversion operation on the target control instruction and converting the target control instruction into target binary data; and the sending module is used for sending the target binary data to the second intelligent device through the target application.
In an exemplary embodiment, the apparatus further comprises: the first receiving unit is used for receiving the target control instruction through the second intelligent device after the target control instruction is sent to the second intelligent device through the target application; the broadcasting unit is used for broadcasting the target control instruction to the first intelligent device through the second intelligent device; the second receiving unit is used for receiving a target execution result returned by the first intelligent device through the second intelligent device, wherein the target execution result is an execution result of the target device operation; and the second sending unit is used for sending the target execution result to the target application through the second intelligent equipment.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the control method of the smart device described above when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the control method of the smart device described above through the computer program.
In the embodiment of the application, when one device is in a network state unsuitable for receiving a control instruction sent by a server, the control instruction is forwarded to the device by the other device, and a target control instruction is acquired by a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed; the target control instruction is sent to the second intelligent device through the target application, so that the target control instruction is forwarded to the first intelligent device through the second intelligent device, and when one device of a user is in a network state (namely, a target network state) which is not suitable for receiving the control instruction sent by the server, the control instruction is forwarded to the device through the other device of the user, which uses the same instruction format with the device, so that the purpose of device control independent of the network state of the device is realized, the technical effect of improving the success rate of device operation control is achieved, and the problem that the success rate of device operation control caused by the network state of the device dependent on the device in the control method of the intelligent device in the related art is low is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative method of controlling a smart device according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of controlling a smart device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative smart device control method according to an embodiment of the present application;
FIG. 4 is a flow diagram of an alternative control instruction parsing according to an embodiment of the present application;
FIG. 5 is a block diagram of an alternative smart device control apparatus in accordance with an embodiment of the present application;
fig. 6 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a control method of an intelligent device is provided. The control method of the intelligent equipment is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the control method of the above-described smart device may be applied to a hardware environment configured by the terminal 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal 102 through a network, and may be used to provide services (such as application services, etc.) for the terminal or clients installed on the terminal, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data storage services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
The control method of the intelligent device in the embodiment of the present application may be executed by the server 104, may be executed by the terminal 102, or may be executed by both the server 104 and the terminal 102. The control method of the terminal 102 for executing the intelligent device according to the embodiment of the present application may also be executed by a client installed thereon.
Taking the control method of the smart device in the embodiment performed by the terminal 102 as an example, fig. 2 is a schematic flow chart of an alternative control method of the smart device according to an embodiment of the present application, as shown in fig. 2, the flow of the method may include the following steps:
step S202, a target control instruction is obtained through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation.
The control method of the intelligent device in this embodiment may be applied to a scenario of controlling an intelligent device (for example, a first intelligent device) in a network state (for example, no network, poor network quality, etc.) that is not suitable for receiving a control instruction sent by a server, where the intelligent device may be an intelligent home device located in a user's home, and may be an electronic device with an intelligent chip mounted on an intelligent television, an intelligent refrigerator, or the like. The type of the intelligent device is not limited in this embodiment.
In this embodiment, when the user needs to control the first smart device to perform the target device operation, the generation of the target control instruction may be triggered by operating the target application running on the terminal device (an example of the terminal 102). Here, the user may correspond to a target object, which may be characterized by the target application; the target application may be an application corresponding to the cloud platform to which the first intelligent device belongs, and the internet carrier carrying the target application may be a web page, an applet, an application client, etc., which is not limited in this embodiment.
In response to the operation performed on the target application, the terminal device may obtain the target control instruction through the target application, where the target control instruction is a control instruction of the first intelligent device associated with the target object, where the control instruction is used to control the first intelligent device to perform the target device operation, where the target device operation may be a device operation allowed to be performed by the first intelligent device, an operation of adjusting the operating power of the first intelligent device, an operation of opening a certain function of the first intelligent device, or an operation of obtaining the operating data of the first intelligent device, and in this embodiment, the type of the target device operation is not limited.
There are various ways to obtain the target control instruction by the target application, for example, the target control instruction may be obtained by a target component on the target application, and the target component may be an SDK (Software Development Kit ) component. Alternatively, the target component may also belong to the terminal device, that is, the target component of the terminal device may obtain the target control instruction through the target application, or the target component of the terminal device may receive the target control instruction obtained by the target application.
Alternatively, the operation performed on the target application may be a voice input operation sent to the target application, or an operation performed on an application interface of the target application, for example, a touch operation such as clicking, sliding, pressing, or the like performed on the application interface of the target application, or a space gesture operation performed on the application interface of the target application, which is not limited in this embodiment.
Here, the target control instruction may be a command converted after recognition of voice input or the like, for example, voice data issued by a user is used to control the intelligent light fixture to turn on, and after recognition of "turn on", the "turn on" is converted into a corresponding instruction, for example, an instruction number of a device to be controlled, or the like.
In step S204, when the first smart device is in the target network state and the target control instruction adopts the target instruction format, determining a second smart device associated with the target object, where the second smart device is a device that allows parsing of the control instruction in the target instruction format.
After the target control instruction is acquired, the terminal device may directly forward the target control instruction to the first intelligent device. When the first smart device is in the target network state (i.e., in a network state where it is not suitable to receive the control instruction sent by the server, for example, there is no external network or no router), if the first smart device depends on the network, the control cannot be completed (at this time, the instruction cannot be parsed from the server, and the first smart device can only be controlled by the conventional key), thereby causing the target control instruction to fail to execute.
In this embodiment, after the target control instruction is acquired, the terminal device may first determine a network state in which the first intelligent device is located; when the network quality of the first intelligent device is determined to be greater than or equal to a preset quality threshold (for example, the network signal strength is higher than the preset strength threshold), a target control instruction can be sent to the first intelligent device through the server. And when the first intelligent device is in the target network state, the control instruction can be forwarded through the other intelligent device.
Alternatively, the intelligent device that has been logged into the network may periodically report the current network state of the device to the server, for example, report the network state to the server by means of a heartbeat packet. The server can determine the network state of the intelligent device based on the received data such as the heartbeat packet reported by the intelligent device, and send the network state of the intelligent device associated with the target object to the terminal device through active pushing or based on a network state acquisition request sent by the terminal device. And determining the network state of the first intelligent device based on the received network state of the first intelligent device or the network state of the first intelligent device requested currently.
In addition, the instruction formats that can be parsed and executed by different smart devices may be different, and when the instruction format of the target control instruction is not the instruction format that can be parsed and executed by the first smart device, that is, the target instruction format, the first smart device cannot execute the target control instruction even if the target control instruction is sent to the first smart device. Optionally, in this embodiment, it may also be determined whether the instruction format of the target control instruction is the target instruction format, if so, then subsequent operations are allowed to be performed (for example, allowing the target control instruction to be forwarded to the first intelligent device), otherwise, it is determined that the instruction is not supported, where the target control instruction may be discarded, or the target control instruction may be collected for exception analysis, etc., which is not limited in this embodiment.
In this embodiment, when the first intelligent device is in the target network state and the target control instruction adopts the target instruction format, the terminal device may determine an intelligent device that is associated with the target object and is allowed to parse the control instruction in the target instruction format, and select an intelligent device for forwarding the target control instruction to the first intelligent device, so as to obtain the second intelligent device, where the network state where the second intelligent device is located is not the target network state, for example, the network quality of the second intelligent device is greater than or equal to the preset quality threshold, which is not limited in this embodiment.
In this embodiment, when the first intelligent device is not in the target network state and the target control instruction adopts the target instruction format, the terminal device may directly send the obtained target control instruction to the first intelligent device, without indirectly sending the target control instruction to the first intelligent device through the second intelligent device; when the instruction format adopted by the target control instruction is not the target instruction format, the target control instruction is not sent to the first intelligent device no matter whether the first intelligent device is in the target network state or not.
In step S206, the target control instruction is sent to the second smart device by the target application, so that the target control instruction is forwarded to the first smart device by the second smart device.
In this embodiment, after determining the second intelligent device, the terminal device may establish a connection with the second intelligent device, for example, establish a connection with the second intelligent device through the server, and send the target control instruction to the second intelligent device through the established connection, or may establish a direct connection with the second intelligent device, and directly send the target control instruction to the second intelligent device through the established connection.
Alternatively, the process of sending the target control instruction to the second intelligent device may be that the target control instruction is sent to the second intelligent device through a target component on the target application. For example, the target control instructions may be sent through an SDK component on the target application.
In the process of sending the target control instruction to the second intelligent device, if encryption is not performed, the target control instruction is easily decoded after being stolen, and privacy data of the target object may be leaked. Optionally, before sending the target control instruction to the second intelligent device, the target control instruction may be encrypted, and the encrypted second control instruction may be sent to the second intelligent device, so as to improve security of data transmission.
After receiving the target control instruction, the second intelligent device can analyze the target control instruction, determine that the target control instruction is a control instruction of the first intelligent device, and forward the target control instruction to the first intelligent device in a transmission mode (for example, a broadcasting mode) between devices, so that the intelligent device in a target network state can successfully receive the control instruction, and execute corresponding device operation according to the received control instruction.
Through the steps, a target control instruction is obtained through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed; the target control instruction is sent to the second intelligent device through the target application, so that the target control instruction is forwarded to the first intelligent device through the second intelligent device, the problem that the success rate of the device operation control is low due to the fact that the device control depends on the network state of the device in the control method of the intelligent device in the related art is solved, and the success rate of the device operation control is improved.
In an exemplary embodiment, after the target control instruction is acquired by the target application, the method further includes:
s11, analyzing the target control instruction and determining an instruction format adopted by the target control instruction;
and S12, under the condition that the instruction format adopted by the target control instruction is not the target instruction format, sending out first prompt information through the target application, wherein the first prompt information is used for prompting that the first intelligent equipment does not support control.
In this embodiment, after the target control instruction is acquired, the terminal device (or the SDK of the target application) may parse the target control instruction to determine whether the instruction format adopted by the target control instruction is the target instruction format. If the instruction format adopted by the target control instruction is not the target instruction format, the first prompt information can be sent out through the target application to prompt the first intelligent device to not support control. Alternatively, in order to reduce the consumption of memory resources by the control instruction, the target control instruction may be deleted when it is determined that the target control instruction is in a format other than the target instruction.
The process of parsing the target control instruction may be to intercept the target control instruction according to different instruction formats (for example, intercept the target control instruction according to bits), and match each intercepted part of instruction data with a rule corresponding to the same part in the instruction format. When the target control instruction is intercepted according to a certain instruction format and each part of instruction data obtained after the target control instruction is intercepted can be matched with the rule corresponding to the same part in the instruction format, the instruction format adopted by the target control instruction can be determined to be the instruction format.
For example, in the instruction format a, the first two bits represent the instruction name, the third and fourth bits represent the device ID (Identifier), and if the instruction data of the first two bits in the target control instruction can be resolved into the corresponding instruction name, the third and fourth bits can be resolved into the device ID of a certain device, it can be determined that the instruction format adopted by the target control instruction is the instruction format a.
It should be noted that, the process of determining the instruction format adopted by the target control instruction may be a process of determining whether the target control instruction adopts a private protocol corresponding to the first smart device. The equipment itself has private protocol analysis, and under a specific scene, when two equipment with the same brand or mutually shared protocol are close, control instruction transmission can be performed, and the operation is completed after the control instruction is analyzed according to the private protocol.
According to the embodiment, when the instruction format adopted by the control instruction is not a specific instruction format, the intelligent equipment is prompted to not support control through the prompt information, so that the accurate control of the intelligent equipment can be realized, and the processing resources occupied by processing the error control instruction are reduced.
In one exemplary embodiment, parsing the target control instruction to determine an instruction format employed by the target control instruction includes:
S21, analyzing the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction;
s22, determining that the instruction format adopted by the target control instruction is the target instruction format under the condition that the analysis result of the target control instruction indicates that the target control instruction is successfully analyzed;
s23, when the analysis result of the target control instruction shows that the target control instruction fails to be analyzed, determining that the instruction format adopted by the target control instruction is not the target instruction format.
When the target control instruction is analyzed, the target control instruction can be sequentially analyzed according to various instruction formats to obtain an analysis result of the target control instruction, and the analysis result of the target control instruction can represent the instruction format adopted by the target control instruction, so that whether the instruction format adopted by the target control instruction is the target instruction format or not can be determined.
In this embodiment, in order to increase the analysis speed of the control instruction, the terminal device may directly analyze the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction, where the obtained analysis result of the target control instruction may indicate whether the target control instruction is successfully analyzed.
Optionally, the process of parsing the target control instruction according to the target instruction format may be: analyzing the instruction data of each position of the target control instruction according to the target instruction format, and determining that the analysis of the target control instruction fails when the instruction data of the target control instruction at a certain position cannot be accurately analyzed; and when the instruction data of the target control instruction at any position is correctly analyzed and the data is not missing, determining that the analysis of the target control instruction is successful.
For example, the target instruction format includes 8 bits of data, the first two bits representing the first parameter, the third and fourth bits representing the second parameter, the fifth and sixth bits representing the third parameter, and the seventh and eighth bits representing the fourth parameter. If the number of bits of the target control instruction is not 8 bits (e.g., more than 8 bits or less than 8 bits), determining that the instruction format employed by the target control instruction is not the target instruction format; if a certain parameter cannot be correctly analyzed, determining that the instruction format adopted by the target control instruction is not the target instruction format; if all the four parameters are correctly analyzed, determining that the instruction format adopted by the target control instruction is the target instruction format.
According to the embodiment, the control instruction is analyzed by adopting the specific instruction format, so that the analysis speed of the control instruction can be improved, and the occupation of the instruction analysis on processing resources is reduced.
In one exemplary embodiment, where the first smart device is in a target network state and the target control instructions are in a target instruction format, determining a second smart device associated with the target object includes:
s31, determining a second intelligent device associated with a target object under the condition that the first intelligent device is in a network connection-free state and a target control instruction adopts a target instruction format; or,
s32, determining a second intelligent device associated with the target object under the condition that the network quality of the first intelligent device is smaller than or equal to a network quality threshold value and the target control instruction adopts a target instruction format.
The target network state may be a network state that is not suitable for directly receiving the control instruction sent by the server, for example, a network connection-free state, where the first intelligent device cannot receive the control instruction issued by the network (for example, a WIFI network), and for example, a state where the network quality is less than or equal to a network quality threshold, where the delay of control reception is large due to poor network signals, and may even not receive the control instruction due to loss of the control instruction.
As an alternative embodiment, if the first smart device is in a network connection-free state and the target control instruction adopts the target instruction format, the terminal device may determine the second smart device associated with the target object.
As another alternative embodiment, the terminal device may determine the second smart device associated with the target object if the network quality of the first smart device is less than or equal to the network quality threshold and the target control instruction is in the target instruction format. The network quality of the first smart device may be a network delay of the first smart device, or may be a signal strength level of a network signal of the first smart device.
For example, the network delay of the first intelligent device is 400ms, the network delay threshold is 200ms, and it may be determined that the network delay of the first intelligent device is less than the network delay threshold. For another example, the signal strength level of the network signal of the first smart device is level 1, the signal strength level threshold is level 2 (the higher the level, the stronger the signal strength), and it may be determined that the signal strength level of the first smart device is less than the signal strength level threshold.
According to the embodiment, when the intelligent equipment is in a network connection-free state or the network quality of the intelligent equipment is smaller than or equal to the network quality threshold value, the control instruction is forwarded through other equipment, so that the success rate of sending the control instruction can be improved.
In one exemplary embodiment, determining a second smart device associated with a target object includes:
s41, determining a group of candidate devices associated with the target object, wherein each candidate device in the group of candidate devices allows parsing of control instructions in a target instruction format;
s42, selecting a second intelligent device from a group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
In this embodiment, the terminal device may determine a set of candidate devices associated with the target object, where each candidate device in the set of candidate devices is allowed to parse the control instruction in the target instruction format, or may not be in the target network state. A set of candidate devices may be determined based on the network status of each associated device of the target object and the instruction format employed by each associated device. For example, a smart device of the smart devices associated with the target object that is the same brand as the first smart device or uses the same shared protocol may be determined as a candidate device, resulting in a set of candidate devices.
For each candidate device, the terminal device may also determine its device location, where the device location may be a location determined by the location module of the candidate device, or may be a set room area in which the candidate device is located. According to the device position of each candidate device and the device position of the first intelligent device, a second intelligent device may be selected from a group of candidate devices, where the second intelligent device may be a candidate device closest to the first intelligent device, or may be a candidate device located in the same room area as the first intelligent device, and in this embodiment, the selection manner of the second intelligent device is not limited as long as the second intelligent device may forward the target control instruction to the candidate device of the first intelligent device.
Alternatively, when there is a smart device designated to receive the target control instruction in the set of candidate devices, the smart device may be directly determined as the second smart device; and when the intelligent device appointed to receive the target control instruction does not exist in the group of candidate devices, selecting a second intelligent device from the group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
Optionally, the process of selecting the second smart device from the group of candidate devices according to the device location of each candidate device and the device location of the first smart device may be: and determining the distance between each candidate device and the first intelligent device according to the device position of each candidate device and the device position of the first intelligent device (the relative distance between each candidate device and the first intelligent device can also be directly determined based on the interaction between the devices), and determining the candidate device with the shortest distance between each candidate device and the first intelligent device as the second intelligent device.
For example, a set of candidate devices includes candidate device a and candidate device B, where candidate device a is selected as the second smart device when the distance between candidate device a and the first smart device is 20m and the distance between candidate device B and the first smart device is 30 m.
According to the embodiment, the candidate devices forwarding the control instruction to the intelligent device are selected according to the device position of each candidate device and the device position of the intelligent device, so that the transmission delay of the control instruction between the devices can be reduced, and the timeliness of receiving the control instruction is improved.
In one exemplary embodiment, sending, by the target application, the target control instruction to the second smart device includes:
s51, performing conversion operation on the target control instruction, and converting the target control instruction into target binary data;
and S52, transmitting the target binary data to the second intelligent device through the target application.
Because the resolving power of different devices to the instruction is different, if the target control instruction is directly forwarded to the second intelligent device, when the resolving power of the second intelligent device to the instruction is weaker, the second intelligent device cannot resolve the target control instruction, and also cannot forward the target control instruction to the first intelligent device. Alternatively, a conversion operation may be performed on the target control instruction, the target control instruction is converted into target binary data, and the target binary data is then sent to the second smart device.
In this embodiment, if the binary data is stolen, the binary data may be easily cracked, so as to improve the security of data transmission, and before the target binary data is sent to the second smart device, the target binary data may be encrypted by the target application, so as to improve the security of the target binary data in the transmission process.
The process of performing the conversion operation on the target control instruction and converting the target control instruction into the target binary data may be: the target component compiles the target control instruction to obtain target binary data, or extracts key information in the target control instruction, converts the key information into binary data, and obtains the target binary data, which is not limited in this embodiment.
For example, the control instruction can be translated into binary data by using an SDK built in the terminal device and transmitted to the intelligent device, and the intelligent device analyzes the instruction according to a protocol and then completes the operation.
According to the embodiment, the control instruction is translated into binary data and then sent to the intelligent device, so that the success rate of receiving the control instruction by the intelligent device can be improved.
In an exemplary embodiment, after the target control instruction is sent to the second smart device by the target application, the method further includes:
s61, receiving a target control instruction through a second intelligent device;
s62, broadcasting a target control instruction to the first intelligent device through the second intelligent device;
s63, receiving a target execution result returned by the first intelligent device through the second intelligent device, wherein the target execution result is an execution result of target device operation;
S64, the target execution result is sent to the target application through the second intelligent device.
In this embodiment, the terminal device may send the target control instruction to the second intelligent device through a communication connection with the second intelligent device. The second intelligent device may receive the target control instruction, and after the target control instruction passes the verification, forward the target control instruction to the first intelligent device by broadcasting. The mode of broadcasting the target control command by the second intelligent device may be bluetooth broadcast, radio broadcast, or other broadcasting modes supporting short-range communication, which is not limited in this embodiment.
After receiving the target control instruction broadcast by the second smart device, the first smart device may respond to the target control instruction, and optionally, the first smart device may perform a target device operation according to the target control instruction, for example, adjust component parameters of each component in the first smart device to component parameters indicated by the target control instruction.
In this embodiment, in order to facilitate the user to learn about the execution situation of the target control instruction, after executing the target control instruction, the first intelligent device may return, by broadcasting or otherwise, the execution result of the target control instruction, that is, the target execution result, to the second intelligent device.
After receiving the target execution result returned by the first intelligent device, the second intelligent device may send the target execution result to the target application on the terminal device through communication connection with the terminal device, where the target application on the terminal device may receive the target execution result, may save the target execution result, and may also prompt the target execution result to the target object through an application interface of the target application or other manners.
Optionally, when the target execution result indicates that the first smart device successfully executes the target control instruction, the target application may send a prompt message to the target object to prompt the first smart device to successfully execute the target control instruction, and when the target execution result indicates that the first smart device fails to successfully execute the target control instruction, the target application may send the target control instruction to the first smart device again through the second smart device or another device (for example, another candidate device) other than the second smart device. This is not limited in this embodiment.
According to the embodiment, the control instruction is transmitted between the intelligent devices in a broadcast mode, and the execution result of the control instruction is fed back to the user, so that the success rate of sending the control instruction can be improved, and the convenience of information acquisition can be improved.
The following explains the control method of the intelligent device in the embodiment of the present application with reference to an alternative example. In this optional example, the first intelligent device is a device a, the second intelligent device is a device B, the terminal device is a mobile phone, and the operation performed by the target application is performed by the SDK of the mobile phone.
At present, a control instruction can be issued to the intelligent device through WIFI. However, the intelligent device depends on the external network, and cannot issue a control instruction under the condition of no network, so that the intelligent device cannot analyze the instruction from the server, and a user can only control the intelligent device through a key. In addition, when the network signal is bad, the delay required by the control instruction receiving is large, and the use experience of the user is affected.
In this regard, in this alternative example, a manner of controlling devices by a short-range communication protocol is provided, where the device is allowed to be in a network-free or network-weak environment, in a space formed by two or more devices having communication capabilities, devices that do not support bidirectional connection are controlled by devices that support bidirectional connection, and a control result is obtained, and devices can be controlled by an analysis library built in an SDK without depending on an external network.
In connection with fig. 3, the flow of the control method of the smart device in this alternative example may include the following steps:
step S302, a user sends a control instruction through a mobile phone.
Step S304, a control instruction is sent to the device a. And establishing connection with the equipment A through the SDK of the mobile phone, and transmitting a control instruction to the equipment A.
In step S306, the device a transmits a control instruction to the device B. Device a may send unidirectional broadcast control instructions to device B.
In step S308, the device B receives the control instruction and broadcasts the result to the device a. After receiving the control instruction sent by the device a, the device B may execute the control instruction and broadcast the execution result of the control instruction to the device a.
In step S310, the device a returns the execution result of the control instruction to the SDK.
For parsing control instructions, determining a procedure for sending control instructions to device a, in connection with fig. 4, the flow of control instruction parsing in this alternative example may include the following steps:
step S402, receiving a control instruction sent by a user.
Step S404, judging whether the control instruction is a private protocol, if yes, executing step S406, otherwise, determining that the control of the control instruction is not supported. The control instruction may be sent to the SDK, and the SDK determines whether the control instruction adopts a private protocol, and if so, performs step S406, otherwise, determines that the device B does not support control of the control instruction.
In step S406, the control instruction may be subjected to protocol parsing (i.e., conversion) by the SDK.
In step S408, the control command is parsed into binary data.
In step S410, a control instruction is returned, that is, the parsed binary data is returned.
By this alternative example, the latency of instruction control of the smart device can be reduced at low control cost by translating control instructions in such a way that the local loop (i.e., the loop between SDK, device a, and device B) is small.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM (Read-Only Memory)/RAM (Random Access Memory ), magnetic disk, optical disc), including instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiment of the application, a control device of an intelligent device for implementing the control method of the intelligent device is also provided. Fig. 5 is a block diagram of a control device of an alternative smart device according to an embodiment of the present application, where, as shown in fig. 5, the device may include:
an obtaining unit 502, configured to obtain, by using a target application, a target control instruction, where the target control instruction is used to control a first smart device associated with a target object to execute a target device operation;
a determining unit 504, connected to the acquiring unit 502, configured to determine, when the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, a second intelligent device associated with the target object, where the second intelligent device is a device that allows analysis of the control instruction in the target instruction format;
and the first sending unit 506 is connected to the determining unit 504, and is configured to send the target control instruction to the second intelligent device through the target application, so as to forward the target control instruction to the first intelligent device through the second intelligent device.
It should be noted that, the acquiring unit 502 in this embodiment may be used to perform the above-described step S202, the determining unit 504 in this embodiment may be used to perform the above-described step S204, and the first transmitting unit 506 in this embodiment may be used to perform the above-described step S206.
Through the module, a target control instruction is acquired through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed; the target control instruction is sent to the second intelligent device through the target application, so that the target control instruction is forwarded to the first intelligent device through the second intelligent device, the problem that the success rate of the device operation control is low due to the fact that the device control depends on the network state of the device in the control method of the intelligent device in the related art is solved, and the success rate of the device operation control is improved.
In an exemplary embodiment, the above apparatus further includes:
the analysis unit is used for analyzing the target control instruction after the target control instruction is acquired through the target application, and determining an instruction format adopted by the target control instruction;
and the sending unit is used for sending out first prompt information through the target application under the condition that the instruction format adopted by the target control instruction is not the target instruction format, wherein the first prompt information is used for prompting the first intelligent equipment not to support control.
In one exemplary embodiment, the parsing unit includes:
the analysis module is used for analyzing the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction;
the first determining module is used for determining that the instruction format adopted by the target control instruction is the target instruction format under the condition that the analysis result of the target control instruction indicates that the target control instruction is successfully analyzed;
and the second determining module is used for determining that the instruction format adopted by the target control instruction is not the target instruction format under the condition that the analysis result of the target control instruction indicates that the analysis of the target control instruction fails.
In one exemplary embodiment, the determining unit includes:
the third determining module is used for determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a network connection-free state and the target control instruction adopts a target instruction format; or,
and the fourth determining module is used for determining the second intelligent device associated with the target object under the condition that the network quality of the first intelligent device is smaller than or equal to the network quality threshold value and the target control instruction adopts the target instruction format.
In one exemplary embodiment, the determining unit includes:
A fifth determining module configured to determine a set of candidate devices associated with the target object, wherein each candidate device in the set of candidate devices allows parsing the control instructions in the target instruction format;
and the selecting module is used for selecting the second intelligent device from a group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
In one exemplary embodiment, a first transmitting unit includes:
the execution module is used for executing conversion operation on the target control instruction and converting the target control instruction into target binary data;
and the sending module is used for sending the target binary data to the second intelligent device through the target application.
In an exemplary embodiment, the above apparatus further includes:
the first receiving unit is used for receiving the target control instruction through the second intelligent device after the target control instruction is sent to the second intelligent device through the target application;
the broadcasting unit is used for broadcasting the target control instruction to the first intelligent device through the second intelligent device;
the second receiving unit is used for receiving a target execution result returned by the first intelligent device through the second intelligent device, wherein the target execution result is an execution result of target device operation;
And the second sending unit is used for sending the target execution result to the target application through the second intelligent equipment.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to yet another aspect of embodiments of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute a program code of the control method of any one of the smart devices described in the embodiments of the present application.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
s1, acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation;
S2, determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and a target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows analysis of the control instruction of the target instruction format;
and S3, transmitting the target control instruction to the second intelligent device through the target application so as to forward the target control instruction to the first intelligent device through the second intelligent device.
Alternatively, specific examples in the present embodiment may refer to examples described in the above embodiments, which are not described in detail in the present embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, ROM, RAM, a mobile hard disk, a magnetic disk or an optical disk.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the control method of the above-mentioned smart device, where the electronic device may be a server, a terminal, or a combination thereof.
Fig. 6 is a block diagram of an alternative electronic device, according to an embodiment of the present application, including a processor 602, a communication interface 604, a memory 606, and a communication bus 608, as shown in fig. 6, wherein the processor 602, the communication interface 604, and the memory 606 communicate with each other via the communication bus 608, wherein,
A memory 606 for storing a computer program;
the processor 602, when executing the computer program stored on the memory 606, performs the following steps:
s1, acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation;
s2, determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and a target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows analysis of the control instruction of the target instruction format;
and S3, transmitting the target control instruction to the second intelligent device through the target application so as to forward the target control instruction to the first intelligent device through the second intelligent device.
Alternatively, in the present embodiment, the communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 606 may include, but is not limited to, the acquisition unit 502, the determination unit 504, and the first transmission unit 506 in the control apparatus including the smart device. In addition, other module units in the control device of the intelligent device may be included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be understood by those skilled in the art that the structure shown in fig. 6 is only schematic, and the device implementing the control method of the smart device may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 6 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the present embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (9)

1. The control method of the intelligent device is characterized by comprising the following steps:
acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation;
determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device allowing the control instruction in the target instruction format to be analyzed;
Transmitting the target control instruction to the second intelligent device through the target application so as to broadcast the target control instruction to the first intelligent device through the second intelligent device;
wherein determining a second smart device associated with the target object when the first smart device is in a target network state and the target control instruction adopts a target instruction format, comprises:
determining the second intelligent device associated with the target object under the condition that the first intelligent device is in a network connection-free state and the target control instruction adopts the target instruction format; or,
and determining the second intelligent device associated with the target object under the condition that the network quality of the first intelligent device is smaller than or equal to a network quality threshold value and the target control instruction adopts the target instruction format.
2. The method of claim 1, wherein after the target control instruction is obtained by the target application, the method further comprises:
analyzing the target control instruction and determining an instruction format adopted by the target control instruction;
And under the condition that the instruction format adopted by the target control instruction is not the target instruction format, sending out first prompt information through the target application, wherein the first prompt information is used for prompting that the first intelligent equipment does not support control.
3. The method of claim 2, wherein parsing the target control instruction to determine an instruction format used by the target control instruction comprises:
analyzing the target control instruction according to the target instruction format to obtain an analysis result of the target control instruction;
under the condition that the analysis result of the target control instruction indicates that the target control instruction is successfully analyzed, determining that the instruction format adopted by the target control instruction is the target instruction format; and under the condition that the analysis result of the target control instruction indicates that the analysis of the target control instruction fails, determining that the instruction format adopted by the target control instruction is not the target instruction format.
4. The method of claim 1, wherein the determining a second smart device associated with the target object comprises:
determining a set of candidate devices associated with the target object, wherein each candidate device in the set of candidate devices allows parsing control instructions in the target instruction format;
And selecting the second intelligent device from the group of candidate devices according to the device position of each candidate device and the device position of the first intelligent device.
5. The method of claim 1, wherein the sending, by the target application, the target control instruction to the second smart device comprises:
performing a conversion operation on the target control instruction, and converting the target control instruction into target binary data;
and sending the target binary data to the second intelligent device through the target application.
6. The method of any of claims 1 to 5, wherein after the sending of the target control instruction to the second smart device by the target application, the method further comprises:
receiving the target control instruction through the second intelligent equipment;
broadcasting the target control instruction to the first intelligent device through the second intelligent device;
receiving a target execution result returned by the first intelligent device through the second intelligent device, wherein the target execution result is an execution result of the target device operation;
And sending the target execution result to the target application through the second intelligent equipment.
7. The utility model provides a controlling means of smart machine which characterized in that includes:
the system comprises an acquisition unit, a target application and a control unit, wherein the acquisition unit is used for acquiring a target control instruction through the target application, and the target control instruction is used for controlling a first intelligent device associated with a target object to execute target device operation; the determining unit is used for determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows analyzing the control instruction in the target instruction format;
the first sending unit is used for sending the target control instruction to the second intelligent device through the target application so as to broadcast the target control instruction to the first intelligent device through the second intelligent device;
wherein the determining unit includes:
a third determining module, configured to determine, when the first intelligent device is in a network connection-free state and the target control instruction adopts the target instruction format, the second intelligent device associated with the target object; or,
And a fourth determining module, configured to determine, when the network quality of the first smart device is less than or equal to a network quality threshold and the target control instruction adopts the target instruction format, the second smart device associated with the target object.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 6 by means of the computer program.
CN202210469034.XA 2022-04-29 2022-04-29 Control method and device of intelligent equipment, storage medium and electronic device Active CN115002206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210469034.XA CN115002206B (en) 2022-04-29 2022-04-29 Control method and device of intelligent equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210469034.XA CN115002206B (en) 2022-04-29 2022-04-29 Control method and device of intelligent equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115002206A CN115002206A (en) 2022-09-02
CN115002206B true CN115002206B (en) 2024-01-26

Family

ID=83025289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210469034.XA Active CN115002206B (en) 2022-04-29 2022-04-29 Control method and device of intelligent equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115002206B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000661A1 (en) * 2015-06-29 2017-01-05 中兴通讯股份有限公司 Method and device for controlling media sharing, enhanced media server, and computer readable storage medium thereof
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN111143077A (en) * 2019-12-31 2020-05-12 青岛海尔科技有限公司 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
WO2020228042A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Device operation method and apparatus, and gateway, electronic device and computer-readable medium
CN112331213A (en) * 2020-11-06 2021-02-05 深圳市欧瑞博科技股份有限公司 Intelligent household equipment control method and device, electronic equipment and storage medium
CN112466303A (en) * 2020-11-25 2021-03-09 青岛海尔科技有限公司 Device discovery method, device, storage medium, and electronic apparatus
CN113921004A (en) * 2021-09-26 2022-01-11 北京金山云网络技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN114242054A (en) * 2021-12-16 2022-03-25 云知声智能科技股份有限公司 Intelligent device control method and device, storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100313A1 (en) * 2013-10-09 2015-04-09 Verizon Patent And Licensing, Inc. Personification of computing devices for remote access
JP7373063B2 (en) * 2020-06-29 2023-11-01 バイドゥ オンライン ネットワーク テクノロジー(ペキン) カンパニー リミテッド Mini program voice control method, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000661A1 (en) * 2015-06-29 2017-01-05 中兴通讯股份有限公司 Method and device for controlling media sharing, enhanced media server, and computer readable storage medium thereof
WO2020228042A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Device operation method and apparatus, and gateway, electronic device and computer-readable medium
CN110708222A (en) * 2019-10-14 2020-01-17 珠海格力电器股份有限公司 Control method, control device, gateway and storage medium
CN111143077A (en) * 2019-12-31 2020-05-12 青岛海尔科技有限公司 Intelligent household appliance instruction conflict processing method and device, storage medium and electronic device
CN112331213A (en) * 2020-11-06 2021-02-05 深圳市欧瑞博科技股份有限公司 Intelligent household equipment control method and device, electronic equipment and storage medium
CN112466303A (en) * 2020-11-25 2021-03-09 青岛海尔科技有限公司 Device discovery method, device, storage medium, and electronic apparatus
CN113921004A (en) * 2021-09-26 2022-01-11 北京金山云网络技术有限公司 Intelligent device control method and device, storage medium and electronic device
CN114242054A (en) * 2021-12-16 2022-03-25 云知声智能科技股份有限公司 Intelligent device control method and device, storage medium and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于柔性一次补偿设备的配网控制技术研究;郎瑛;大连理工大学;10-34 *

Also Published As

Publication number Publication date
CN115002206A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
EP3640936B1 (en) Apparatus control device, method, and apparatus having same
CN106371322B (en) Intelligent household control method, device and system
WO2022001674A1 (en) Communication system, method and device for miniature intelligent sensor
WO2016173189A1 (en) Smart household control method, device and system
CN111629452A (en) Data transmission control method and device, storage medium and electronic equipment
CN105187480A (en) Configuration file acquisition method, configuration file acquisition device and configuration file acquisition system
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN115175152A (en) Intelligent device binding method and device, storage medium and electronic device
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
KR102320027B1 (en) Voice transmission method, voice transmission apparatus implementing the same, and system including the same
CN115002206B (en) Control method and device of intelligent equipment, storage medium and electronic device
CN113709239A (en) Intelligent household equipment communication method, equipment and medium
CN114884975B (en) Service message processing method and device, storage medium and electronic device
CN116361155A (en) Method and device for testing software development kit, storage medium and electronic device
CN106331163B (en) Method and device for controlling service platform
CN115314331B (en) Control method and device of intelligent terminal, storage medium and electronic device
CN115174296B (en) Equipment function access method and device, storage medium and electronic device
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN116506245A (en) Networking method and system for equipment
CN113132774B (en) Control method of intelligent television and related equipment
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN116486802A (en) Equipment control method, device, storage medium and electronic device
CN116600172A (en) Video playing method and device, storage medium and electronic device

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