CN115002206A - 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
CN115002206A
CN115002206A CN202210469034.XA CN202210469034A CN115002206A CN 115002206 A CN115002206 A CN 115002206A CN 202210469034 A CN202210469034 A CN 202210469034A CN 115002206 A CN115002206 A CN 115002206A
Authority
CN
China
Prior art keywords
target
control instruction
intelligent
instruction
target control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210469034.XA
Other languages
Chinese (zh)
Other versions
CN115002206B (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

Images

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

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/smart home, 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 first intelligent equipment associated with a target object to execute target equipment operation; determining second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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. By 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 the 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 smart home/smart home, in particular to a control method and device of smart equipment, a storage medium and an electronic device.
Background
Currently, a user can realize remote control of 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, which results in failure of the operation control of the devices.
Therefore, the control method of the intelligent device in the related art has the problem of low success rate of device operation control caused by the network state of the device dependent on device control.
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 are used for at least solving 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 art.
According to an aspect of an embodiment of the present application, there is provided a method for controlling an intelligent device, including: acquiring a target control instruction through a target application, wherein the target control instruction is used for controlling first intelligent equipment associated with a target object to execute target equipment operation; determining second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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 obtained 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 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 the target control instruction and determining 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 shows 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 the second smart device associated with the target object in the case that the first smart device is in the target network state and the target control instruction is in the target instruction format 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, in the case that the network quality of the first smart device is less than or equal to a network quality threshold and the target control command is in the target command format, determining the second smart device associated with the target object.
In an exemplary embodiment, the determining the 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 of 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: executing 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 of the target control instruction to the second smart device by the target application, the method further includes: receiving the target control instruction through the second intelligent device; 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 device.
According to another aspect of the embodiments of the present application, there is also provided a control apparatus for an intelligent device, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a target control instruction through a target application, and the target control instruction is used for controlling a first intelligent device associated with a target object to execute a target device operation; a determining unit, 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 parsing of 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 one exemplary embodiment, the apparatus further comprises: the analysis unit is used for analyzing the target control instruction after the target control instruction is obtained 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 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 shows 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 represents 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 smart device is in a no-network-connection state and the target control instruction is in the target instruction format, the second smart 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 is in 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, where each candidate device in the set of candidate devices allows parsing the control command in the target command format; and the selection module is used for selecting the second intelligent equipment from the group of candidate equipment according to the equipment position of each candidate equipment and the equipment position of the first intelligent equipment.
In one exemplary embodiment, the first sending 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 equipment through the target application.
In one exemplary embodiment, the apparatus further comprises: a first receiving unit, configured to receive, by the second smart device, the target control instruction after the target control instruction is sent to the second smart device by the target application; the broadcasting unit is used for broadcasting the target control instruction to the first intelligent equipment through the second intelligent equipment; a second receiving unit, configured to receive, by the second intelligent device, a target execution result returned by the first intelligent device, where the target execution result is an execution result of an operation of the target device; and the second sending unit is used for sending the target execution result to the target application through the second intelligent device.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the control method of the intelligent device when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method of the intelligent device through the computer program.
In the embodiment of the application, when one device is in a network state which is not suitable for receiving the control instruction sent by the server, the control instruction is forwarded to the device through another device, and 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 second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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 another device of the user which uses the same instruction format as the device, so that the purpose of controlling the device without depending on the network state of the device is achieved, 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 is low due to the fact that the device controls the network state depending on the device in the control method of the intelligent device in the related art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present 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 needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of an alternative control method for a smart device according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating an alternative control method for a smart device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative control method for a smart device according to an embodiment of the present application;
FIG. 4 is a flow diagram illustrating an alternative control instruction parsing according to an embodiment of the application;
fig. 5 is a block diagram of an alternative control apparatus for an intelligent device according to 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 technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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 an aspect of an embodiment of the present application, a control method of an intelligent device is provided. The control method of the intelligent device is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home device ecology, intelligent House (Intelligent House) ecology and the like. Alternatively, in this embodiment, the control method of the intelligent device may be applied to a hardware environment formed 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 configured to provide services (e.g., application services, etc.) for the terminal or a client installed on the terminal, and may configure a cloud computing and/or edge computing service on the server or separately from the server, so as to provide a data storage service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent curtain, intelligence is audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligence kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
The control method of the intelligent device according to the embodiment of the present application may be executed by the server 104, the terminal 102, or both the server 104 and the terminal 102. The terminal 102 may execute the method for controlling the smart device according to the embodiment of the present application, or may be executed by a client installed thereon.
Taking the terminal 102 as an example to execute the method for controlling the intelligent device in this embodiment, fig. 2 is a schematic flowchart of an optional method for controlling the intelligent device according to the embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, a target control instruction is obtained through the target application, wherein the target control instruction is used for controlling the first intelligent device associated with the target object to execute the operation of the target device.
The control method of the intelligent device in this embodiment may be applied to a scenario in which an intelligent device (e.g., a first intelligent device) in a network state (e.g., no network, poor network quality, etc.) that is not suitable for receiving a control instruction sent by a server is controlled, where the intelligent device may be an intelligent home device located in a user home, and may be an electronic device such as an intelligent television, an intelligent refrigerator, etc. that is equipped with an intelligent chip. In this embodiment, the type of the smart device is not limited.
In this embodiment, when the user needs to control the first smart device to perform the target device operation, the target control instruction may be triggered and generated by operating a 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 a target application; the target application may be an application corresponding to a cloud platform to which the first smart device belongs, and the internet carrier carrying the target application may be a web page, an applet, an application client, and the like, which is not limited in this embodiment.
In response to an operation performed on the target application, the terminal device may obtain, through the target application, the target control instruction, where the target control instruction is a control instruction of a first smart device associated with the target object, and the control instruction is used to control the first smart device to perform a target device operation, where the target device operation may be a device operation that the first smart device allows to be performed, may be an operation of adjusting operating power of the first smart device, may also be an operation of turning on a certain function of the first smart device, and may also be an operation of obtaining operating data of the first smart device, and the type of the target device operation is not limited in this embodiment.
The target control instruction may be obtained by the target application in various ways, 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.
Optionally, the operation performed on the target application may be a voice input operation issued to the target application, or may be an operation performed on an application interface of the target application, for example, a touch operation such as clicking, sliding, and pressing performed on the application interface of the target application, or an idle 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 recognizing a voice input or the like, for example, voice data issued by a user is used to control the intelligent light fixture to turn on the light, and after recognizing "turn on the light", the "turn on the light" is converted into a corresponding instruction, for example, an instruction number of a device to be controlled, or the like.
Step S204, under the condition that the first intelligent device is in a target network state and the target control instruction adopts a target instruction format, determining a second intelligent device associated with the target object, wherein the second intelligent device is a device which allows the control instruction in the target instruction format to be analyzed.
After the target control instruction is obtained, the terminal device may directly forward the target control instruction to the first intelligent device. When the first intelligent device is in a target network state (i.e., in a network state that is not suitable for receiving the control instruction sent by the server, for example, there is no external network or router), if the first intelligent device depends on the network, the first intelligent device cannot complete control (at this time, the instruction cannot be analyzed from the server, and the first intelligent device can only perform traditional key control), so that the target control instruction execution fails.
In this embodiment, after acquiring the target control instruction, the terminal device may first determine a network state where the first intelligent device is located; upon determining that the network quality of the first smart device is greater than or equal to a preset quality threshold (e.g., the network signal strength is higher than a preset strength threshold), the target control instruction may be sent to the first smart device by the server. And when the first intelligent device is in the target network state, the control instruction can be forwarded through another intelligent device.
Optionally, the networked smart device may periodically report the current network state of the device to the server, for example, the network state may be reported to the server in a heartbeat packet mode. 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 sends the network state of the intelligent device associated with the target object to the terminal device through active pushing or 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 currently requested network state of the first intelligent device.
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, even if the target control instruction is sent to the first smart device, the first smart device cannot execute the target control instruction. Optionally, in this embodiment, it may also be determined whether the instruction format of the target control instruction is the target instruction format, and if so, the subsequent operation is allowed to be performed (for example, the target control instruction is allowed to be forwarded to the first intelligent device), otherwise, it is determined that the instruction is not supported, at this time, the target control instruction may be discarded, or the target control instruction is collected to perform exception analysis, and the like, which is not limited in this embodiment.
In this embodiment, under the condition that the first intelligent device is in the target network state and the target control instruction is in the target instruction format, the terminal device may determine an intelligent device that is allowed to parse the control instruction in the target instruction format among the intelligent devices associated with the target object, and select an intelligent device for forwarding the target control instruction to the first intelligent device from the intelligent devices to obtain a second intelligent device, where a network state where the second intelligent device is located is not the target network state, for example, a network quality of the second intelligent device is greater than or equal to a 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, and does not need to indirectly send 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 cannot be sent to the first intelligent device no matter whether the first intelligent device is in the target network state or not.
Step S206, 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.
In this embodiment, after the second smart device is determined, the terminal device may establish a connection with the second smart device, for example, establish a connection with the second smart device through the server, and send the target control instruction to the second smart device through the established connection, or may establish a direct connection with the second smart device, and directly send the target control instruction to the second smart device through the established connection.
Optionally, the process of sending the target control instruction to the second smart device may be sending the target control instruction to the second smart device through a target component on the target application. For example, the target control instruction 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 the target control instruction is not encrypted, the target control instruction is easily decoded after being stolen, and privacy data of a target object may be leaked. Optionally, before the target control instruction is sent to the second intelligent device, the target control instruction may be encrypted, and the encrypted second control instruction is sent to the second intelligent device, so as to improve the security of data transmission.
After receiving the target control instruction, the second intelligent device may parse the target control instruction, determine that the target control instruction is the control instruction of the first intelligent device, and forward the target control instruction to the first intelligent device in a manner of transmission (for example, in a broadcast manner) between devices, so that the intelligent device in the target network state may successfully receive the control instruction, and execute a corresponding device operation according to the received control instruction.
Through the steps, a target control instruction is obtained through the target application, wherein the target control instruction is used for controlling the first intelligent equipment associated with the target object to execute the operation of the target equipment; determining second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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 device operation control is low due to the fact that 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 device operation control is improved.
In an exemplary embodiment, after the target control instruction is obtained by the target application, the method further includes:
s11, analyzing the target control command, and determining the command format adopted by the target control command;
and S12, 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 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, and determine whether an instruction format adopted by the target control instruction is the target instruction format. If the instruction format adopted by the target control instruction is determined not to be the target instruction format, first prompt information can be sent out through the target application to prompt that the first intelligent device does not support control. Alternatively, in order to reduce the consumption of the storage resources by the control instruction, when it is determined that the target control instruction is not in the target instruction format, the target control instruction may be deleted.
The process of parsing the target control instruction may be to intercept the target control instruction according to different instruction formats (for example, bit-wise interception), and match each part of intercepted instruction data with a rule corresponding to the same part in the instruction format. When each part of instruction data obtained by intercepting the target control instruction according to a certain instruction format 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 a instruction format, the first two bits represent an instruction name, and the third and fourth bits represent a 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, and 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 a instruction format.
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 intelligent device. The equipment self has private protocol analysis, and under a specific scene, when two pieces of equipment with the same brand or sharing the protocol are close to each other, control instruction transmission can be carried out, and the operation is completed after the control instruction is analyzed according to the private protocol.
Through the embodiment, when the instruction format adopted by the control instruction is not the specific instruction format, the prompt information prompts that the intelligent equipment does not support control, so that the accurate control of the intelligent equipment can be realized, and the processing resource occupied by processing the error control instruction is reduced.
In an exemplary embodiment, parsing the target control instruction and determining an instruction format adopted by the target control instruction includes:
s21, analyzing the target control command according to the target command format to obtain the analysis result of the target control command;
s22, determining that the command format adopted by the target control command is the target command format under the condition that the analysis result of the target control command shows that the target control command is successfully analyzed;
and S23, determining that the command format adopted by the target control command is not the target command format when the analysis result of the target control command indicates that the target control command analysis fails.
When the target control instruction is analyzed, the target control instruction can be sequentially analyzed according to a plurality of 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 improve 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 target control instruction fails to be analyzed when the instruction data of the target control instruction at a certain position cannot be analyzed correctly; and when the instruction data of the target control instruction at any position is correctly analyzed and no data is missing, determining that the target control instruction is successfully analyzed.
For example, the target instruction format includes 8 bits of data, the first two bits representing a first argument, the third and fourth bits representing a second argument, the fifth and sixth bits representing a third argument, and the seventh and eighth bits representing a fourth argument. 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 adopted 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; and if all the four parameters are correctly analyzed, determining that the instruction format adopted by the target control instruction is the target instruction format.
By adopting 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 can be reduced.
In one exemplary embodiment, in a case where the first smart device is in a target network state and the target control instruction is in a target instruction format, determining a second smart device associated with the target object includes:
s31, determining a second intelligent device associated with the target object under the condition that the first intelligent device is in a non-network connection state and the target control instruction adopts a target instruction format; or,
and S32, determining a 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 the network quality threshold value and the target control command adopts the target command 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, at this time, the first intelligent device may not receive the control instruction issued through the network (for example, a WIFI network), and for example, the network quality is less than or equal to a network quality threshold, at this time, because the network signal is not good, a delay of control reception is large, and even the control instruction may not be received because the control instruction is lost.
As an alternative implementation, if the first smart device is in a no-network-connection state and the target control command is in a target command format, the terminal device may determine a second smart device associated with the target object.
As another alternative, if the network quality of the first smart device is less than or equal to the network quality threshold and the target control command is in the target command format, the terminal device may determine a second smart device associated with the target object. The network quality of the first smart device may be a network delay of the first smart device or a signal strength level of a network signal of the first smart device.
For example, the network latency of the first smart device is 400ms, the network latency threshold is 200ms, and the network latency of the first smart device may be determined to be less than the network latency threshold. For another example, if the network signal of the first smart device has a signal strength level of 1 and the signal strength level threshold is 2 (the higher the level, the stronger the signal strength), it may be determined that the signal strength level of the first smart device is less than the signal strength level threshold.
Through the embodiment, when the intelligent device is in a no-network-connection state or the network quality of the intelligent device is less than or equal to the network quality threshold value, the control instruction is forwarded through other devices, and the success rate of sending the control instruction can be improved.
In one exemplary embodiment, determining a second smart device associated with the 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 the control command in the target command format to be analyzed;
s42, selecting a second smart device from the set of candidate devices according to the device location of each candidate device and the device location of the first smart 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 allows parsing the control command in the target command format, and may not be in the target network state. The 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 set of candidate devices may be obtained by determining, as the candidate devices, smart devices of the same brand as the first smart device or using the same sharing protocol among the smart devices associated with the target object.
For each candidate device, the terminal device may further determine its device location, where the device location may be a location determined by a location module of the candidate device, or may be a set room area where the candidate device is located. According to the device location of each candidate device and the device location of the first smart device, a second smart device may be selected from a group of candidate devices, where the second smart device may be a candidate device closest to the first smart device, or a candidate device located in the same room area as the first smart device.
Alternatively, when there is an intelligent device designated to receive the target control instruction in a group of candidate devices, the intelligent device may be directly determined as the second intelligent device; and when the intelligent equipment appointed to receive the target control instruction does not exist in the group of candidate equipment, selecting the second intelligent equipment from the group of candidate equipment according to the equipment position of each candidate equipment and the equipment position of the first intelligent equipment.
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: according to the device position of each candidate device and the device position of the first intelligent device, the distance between each candidate device and the first intelligent device is determined (or the relative distance between each candidate device and the first intelligent device can be directly determined based on the interaction between the devices), and the candidate device with the shortest distance to the first intelligent device is determined as the second intelligent device.
For example, the group of candidate devices includes a candidate device a and a candidate device B, and when the distance between the candidate device a and the first smart device is 20m and the distance between the candidate device B and the first smart device is 30m, the candidate device a is selected as the second smart device.
According to the embodiment, the candidate device for forwarding the control command to the intelligent device is 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 command between the devices can be reduced, and the timeliness of receiving the control command is improved.
In one exemplary embodiment, sending the target control instruction to the second smart device through the target application includes:
s51, executing conversion operation on the target control instruction, and converting the target control instruction into target binary data;
and S52, sending the target binary data to the second intelligent device through the target application.
Because different devices have different instruction analysis capabilities, if the target control instruction is directly forwarded to the second intelligent device, when the second intelligent device has a weaker instruction analysis capability, the second intelligent device cannot analyze the target control instruction, and cannot forward the target control instruction to the first intelligent device. Optionally, 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 sent to the second smart device.
In this embodiment, if the binary data is stolen, the binary data can be easily cracked, and in order to improve the security of data transmission, before the target binary data is sent to the second intelligent 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 above-mentioned 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 control instruction is compiled by the target component to obtain target binary data, or key information in the target control instruction is extracted and converted into binary data to obtain target binary data, which is not limited in this embodiment.
For example, the SDK built in the terminal device may be used to translate the control command into binary data and transmit the binary data to the smart device, and the smart device may analyze the command according to the protocol and then complete the operation.
Through the embodiment, the control instruction is translated into the binary data and then sent to the intelligent device, and the success rate of the intelligent device for receiving the control instruction can be achieved.
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 the second intelligent device;
s62, broadcasting the target control instruction to the first intelligent equipment through the second intelligent equipment;
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 the operation of the target device;
and S64, sending the target execution result to the target application through the second intelligent device.
In this embodiment, the terminal device may send the target control instruction to the second smart device through a communication connection with the second smart 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 in a broadcast manner. The method for broadcasting the target control command by the second smart device may be bluetooth broadcast, radio broadcast, or other broadcast methods supporting short-range communication, which is not limited in this embodiment.
After receiving the target control instruction broadcasted 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 the component parameters of each component in the first smart device to the component parameters indicated by the target control instruction.
In this embodiment, in order to facilitate the user to know the execution condition of the target control instruction, after the target control instruction is executed, the first smart device may return an execution result of the target control instruction, that is, a target execution result, to the second smart device in a broadcast manner or in another manner.
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 the communication connection with the terminal device, and the target application on the terminal device may receive the target execution result, may store 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 in another manner.
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 (e.g., another candidate smart device) other than the second smart device. This is not limited in this embodiment.
Through this embodiment, pass through the mode of broadcasting and transmit control command between the smart machine to give the user back the execution result of control command, can improve the success rate that control command sent, can also improve the convenience that information acquireed.
The following explains a control method of an intelligent device in the embodiment of the present application with reference to an alternative example. In this optional example, the first smart device is device a, the second smart device is device B, the terminal device is a mobile phone, and the operation executed by the target application is executed through an SDK of the mobile phone.
At present, a control instruction can be issued to the intelligent device through the WIFI. However, the intelligent device depends on the external network, and the control instruction cannot be issued without the network, so that the intelligent device cannot analyze the instruction from the server, and the user can only control the intelligent device through the keys. In addition, when the network signal is not good, the delay required by the control instruction receiving is large, and the use experience of the user is influenced.
In this regard, the present alternative example provides a way of controlling devices through a short-range communication protocol, and under the circumstance of no network or weak network, in a space composed of two or more devices with communication capability, a device that does not support bidirectional connection is controlled through a device that supports bidirectional connection, and a control result is obtained, and the device can be controlled through an analysis library built in an SDK without depending on an external network.
With reference to fig. 3, the flow of the control method of the smart device in this alternative example may include the following steps:
step S302, the user sends a control instruction through the 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 the control instruction to the equipment A.
In step S306, the device a transmits a control instruction to the device B. Device a may broadcast control commands to device B in a unidirectional manner.
In step S308, device B receives the control command and broadcasts the result to device a. After receiving the control instruction sent by device a, device B may execute the control instruction and broadcast the execution result of the control instruction to device a.
In step S310, the device a returns the execution result of the control instruction to the SDK.
For parsing the control command, determining a process of sending the control command to the device a, with reference to fig. 4, a flow of parsing the control command in this optional 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 so, executing step S406, otherwise, determining that the control instruction is not supported to control. The control command may be sent to the SDK, which determines whether the control command employs a private protocol, and if so, performs step S406, otherwise, determines that the device B does not support the control of the control command.
At step S406, the control command may be protocol parsed (i.e., converted) by the SDK.
In step S408, the control command is parsed into binary data.
In step S410, a control command is returned, that is, the parsed binary data is returned.
With this alternative example, by translating control instructions through such local small loops (i.e., the small loops between the SDK, device a, and device B), latency of instructions controlling the smart device may be reduced with low control cost.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided a control apparatus of an intelligent device for implementing the control method of the intelligent device. Fig. 5 is a block diagram of a structure of an alternative control apparatus for an intelligent device according to an embodiment of the present application, and as shown in fig. 5, the apparatus may include:
an obtaining unit 502, configured to obtain a target control instruction through a target application, 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 obtaining 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;
the first sending unit 506 is connected to the determining unit 504, and is configured to send the target control instruction to the second smart device through the target application, so that the target control instruction is forwarded to the first smart device through the second smart device.
It should be noted that the obtaining unit 502 in this embodiment may be configured to execute the step S202, the determining unit 504 in this embodiment may be configured to execute the step S204, and the first sending unit 506 in this embodiment may be configured to execute the step S206.
Through the module, a target control instruction is obtained through a target application, wherein the target control instruction is used for controlling first intelligent equipment associated with a target object to execute target equipment operation; determining second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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 device operation control is low due to the fact that 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 device operation control is improved.
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 obtained through the target application, and determining an instruction format adopted by the target control instruction;
the issuing unit is used for issuing 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 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 shows 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 shows 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 second intelligent equipment related to the target object under the condition that the first intelligent equipment is in a network connection-free state and the target control instruction adopts a target instruction format; or,
and the fourth determination module is used for determining the second intelligent equipment associated with the target object under the condition that the network quality of the first intelligent equipment is less 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, where each candidate device in the set of candidate devices allows parsing the control command in the target command format;
and the selection module is used for selecting the second intelligent equipment from a group of candidate equipment according to the equipment position of each candidate equipment and the equipment position of the first intelligent equipment.
In one exemplary embodiment, the first sending 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 equipment through the target application.
In an exemplary embodiment, the 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 equipment through the second intelligent equipment;
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 operation of the target device;
and the second sending unit is used for sending the target execution result to the target application through the second intelligent device.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of the control method of the smart device in any one of the embodiments of the present application.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, acquiring a target control instruction through the target application, wherein the target control instruction is used for controlling the first intelligent equipment associated with the target object to execute the operation of the target equipment;
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 the target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows the control instruction in the target instruction format to be analyzed;
and S3, 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.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to still another aspect of the embodiments of the present application, there is also provided an electronic apparatus for implementing the control method of the intelligent device, where the electronic apparatus 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 invention, as shown in fig. 6, including a processor 602, a communication interface 604, a memory 606, and a communication bus 608, where the processor 602, the communication interface 604, and the memory 606 communicate with each other through the communication bus 608, where,
a memory 606 for storing computer programs;
the processor 602, when executing the computer program stored in the memory 606, implements the following steps:
s1, acquiring a target control instruction through the target application, wherein the target control instruction is used for controlling the first intelligent equipment associated with the target object to execute the target equipment 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 the target control instruction adopts a target instruction format, wherein the second intelligent device is a device which allows the control instruction in the target instruction format to be analyzed;
and S3, 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.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) 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 in FIG. 6, but this is not intended to represent only one bus or type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, the memory 606 may include, but is not limited to, the obtaining unit 502, the determining unit 504, and the first sending unit 506 in the control apparatus including the smart device. In addition, the control device may further include, but is not limited to, other module units in the control apparatus of the intelligent device, which is not described in detail in this example.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 6 is only an illustration, and the device implementing the control method of the smart device may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 6 is a diagram illustrating a 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 skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where 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, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also 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 embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A control method of an 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 first intelligent equipment associated with a target object to execute target equipment operation;
determining second intelligent equipment associated with the target object under the condition that the first intelligent equipment is in a target network state and the target control instruction adopts a target instruction format, wherein the second intelligent equipment is equipment which allows 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.
2. The method of claim 1, wherein after the obtaining of the target control instruction 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 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.
3. The method of claim 2, wherein the parsing the target control command to determine the command format adopted by the target control command 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 shows 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 shows 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 determining a second smart device associated with the target object if the first smart device is in a target network state and the target control directives are in a target directive 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,
determining the second smart device associated with the target object if the network quality of the first smart device is less than or equal to a network quality threshold and the target control directive is in the target directive format.
5. The method of claim 1, wherein determining the 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 of 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.
6. The method of claim 1, wherein sending the target control instruction to the second smart device by the target application comprises:
executing 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.
7. The method of any of claims 1-6, wherein after the sending of the target control directive to the second smart device by the target application, the method further comprises:
receiving the target control instruction through the second intelligent device;
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 device.
8. A control device of an intelligent device, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a target control instruction through a target application, and the target control instruction is used for controlling a first intelligent device associated with a target object to execute a target device operation;
a determining unit, 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 parsing of 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.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. 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 of any of claims 1 to 7 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 true CN115002206A (en) 2022-09-02
CN115002206B 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 (10)

* 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
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
KR20210091328A (en) * 2020-06-29 2021-07-21 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Applet's voice control method, device and storage medium
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

Patent Citations (11)

* 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
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
KR20210091328A (en) * 2020-06-29 2021-07-21 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 Applet's voice control method, device and storage medium
US20210327426A1 (en) * 2020-06-29 2021-10-21 Beijing Baidu Netcom Science Technology Co., Ltd. Voice control method for applet and device, and storage 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

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN115002206B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
EP3640936B1 (en) Apparatus control device, method, and apparatus having same
EP3896916B1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium
CN110545569B (en) Network distribution method and system of intelligent device and readable medium
US11979274B2 (en) Network management method and apparatus
CN110740460A (en) device network access method, device, network device and storage medium
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN112751699A (en) OTA upgrade and upgrade management method, device, network and storage medium
CN113169992A (en) Equipment network distribution method and device, electronic equipment and storage medium
CN105187480A (en) Configuration file acquisition method, configuration file acquisition device and configuration file acquisition system
CN112684995B (en) Cross-screen input method and device
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN103634657A (en) Television and mobile terminal synchronous WIFI connection setup method and device
CN103997521A (en) File operating method and device based on router and router
CN116760567A (en) Account association method, device, electronic equipment and storage medium
CN108093390B (en) Intelligent device discovery method based on characteristic information
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN115175152A (en) Intelligent device binding method and device, storage medium and electronic device
CN113573254A (en) Networking control method and device for smart home, control equipment and storage medium
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system
CN111478816A (en) Method, system, device and medium for configuring Zigbee and ZigBee sub-equipment
CN115002206A (en) Control method and device of intelligent equipment, storage medium and electronic device
CN106331163B (en) Method and device for controlling service platform
CN115356937A (en) Device control method, device, storage medium, and electronic apparatus
CN112261706A (en) Wireless network connection method, device, equipment and storage medium
CN112533187A (en) Network access method, equipment, storage medium and device of Bluetooth low energy consumption 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
GR01 Patent grant
GR01 Patent grant