Device control method and device, computer readable storage medium, and processor

By parsing and distributing the control instruction set when the device control is requested, the problem of insufficient control information security after the cloud platform and the device are interconnected is solved, and the security of the user device is improved.

CN114115074BActive Publication Date: 2024-10-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111511080.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-10-11
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

In the existing technology, after the cloud platform and the device are interconnected, the security of the control information cannot be effectively guaranteed, causing the control security of the user device to be threatened.

Method used

When a device control request is received, the request is parsed to obtain the information of the target device, and the control instruction set is obtained based on the information, and the instructions are sent to the terminal through the device platform to ensure the security of the instructions and the protection of user information.

Benefits of technology

By parsing and distributing the control instruction set, it is possible to improve the security of user equipment and solve the security threat problem caused by residual control information after the cloud platform and equipment are interconnected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114115074B_ABST
    Figure CN114115074B_ABST
Patent Text Reader

Abstract

The present invention discloses a device control method and its device, a computer-readable storage medium, and a processor. The method includes: when receiving a device control request, parsing the device control request to obtain device information of the target device; acquiring a control instruction set based on the control request address corresponding to the device information, wherein the control instruction set includes multiple control instructions for controlling the target device; sending the control instruction set to a predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction. The present invention solves the technical problem in the related technology that the control information remaining after the cloud platform is interconnected with each device endangers the control security of the user device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home appliances, and in particular to a device control method and device thereof, a computer-readable storage medium, and a processor. Background Art

[0002] With the development of the Internet of Things, IoT devices exist in all aspects of the home. Various IoT devices form a home network. Family members only need to use one terminal (for example, a mobile phone) to control various devices. However, due to differences among manufacturers, the operation methods are also different. It is often necessary to install apps provided by various manufacturers to control them, resulting in a poor user experience.

[0003] For the above defects, some solutions are given in the relevant technologies. For example, different manufacturers connect with each other to achieve interconnection and intercommunication, and then form a consistent communication protocol, through which the mutual control of devices between different manufacturers can be achieved; however, this method requires each manufacturer to connect separately, which is a huge workload, and multiple manufacturers cannot reach a consensus. For another example, a unified cloud platform is used to obtain the equipment and user information of each manufacturer, and the user authority of the device is uniformly checked and the control instructions are issued; however, in this way, the cloud platform can obtain the equipment information and user information of all manufacturers, and the security cannot be effectively guaranteed.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a device control method and apparatus, a computer-readable storage medium, and a processor to at least solve the technical problem in the related technology that the control information remaining after the cloud platform and each device are interconnected may endanger the control security of the user device.

[0006] According to one aspect of an embodiment of the present invention, there is provided a device control method, comprising: upon receiving a device control request, parsing the device control request to obtain device information of a target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device that the predetermined terminal requests to control; acquiring a control instruction set based on a control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device; sending the control instruction set to the predetermined terminal so that the predetermined terminal determines a target control instruction based on the control instruction set and control requirement information, and sending the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0007] Optionally, before receiving the device control request, the method further includes: receiving a registration request for the target device; analyzing the registration request to obtain the device information of the target device and the control request address; and saving the device information and the control request address correspondingly.

[0008] Optionally, before receiving the device control request, the method also includes: obtaining a network configuration request of the predetermined terminal; verifying the predetermined terminal based on the network configuration request to obtain a verification result; and establishing a communication relationship with the predetermined terminal when the verification result indicates that the verification of the predetermined terminal is successful.

[0009] Optionally, obtaining a control instruction set based on a control request address corresponding to the device information includes: obtaining the control request address based on the device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is the platform where the target device is located; and obtaining the control instruction set fed back by the target platform.

[0010] According to another aspect of an embodiment of the present invention, a device control method is also provided, including: sending a device control request to a cloud platform, wherein the cloud platform, upon receiving the device control request, parses the device control request to obtain device information of a target device, wherein the target device is the device requested to be controlled; upon receiving a control instruction set fed back by the cloud platform based on the device control request, determining a target control instruction based on the control instruction set and control requirement information; and sending the target control instruction to the target device so that the target device operates according to the target control instruction.

[0011] According to another aspect of an embodiment of the present invention, a device control method is also provided, including: obtaining a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control requirement information of the predetermined terminal, the control instruction set is an instruction set feedback from a cloud platform based on a device control request, and the device control request is a request sent by the predetermined terminal; responding to the target control instruction to operate in accordance with the target control instruction.

[0012] Optionally, before sending a device control request to the cloud platform, the method further includes: sending a registration request to the cloud platform, wherein after receiving the registration request, the cloud platform parses the registration request to obtain and store device information of the target device and a control request address.

[0013] According to another aspect of an embodiment of the present invention, there is also provided a device control apparatus, comprising: a parsing module, for parsing a device control request upon receiving the device control request to obtain device information of a target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device requested to be controlled by the predetermined terminal; a first acquisition module, for acquiring a control instruction set based on a control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device; a sending module, for sending the control instruction set to the predetermined terminal, so that the predetermined terminal determines a target control instruction based on the control instruction set and control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0014] Optionally, the device also includes: a receiving module, used to receive a registration request of the target device before receiving the device control request; an analyzing module, used to analyze the registration request to obtain the device information of the target device and the control request address; and a saving module, used to save the device information and the control request address correspondingly.

[0015] Optionally, the device also includes: a second acquisition module, used to obtain the network configuration request of the predetermined terminal before receiving the device control request; a verification module, used to verify the predetermined terminal based on the network configuration request to obtain a verification result; and an establishment module, used to establish a communication relationship with the predetermined terminal when the verification result indicates that the verification of the predetermined terminal is successful.

[0016] Optionally, the first acquisition module includes: an acquisition unit, used to acquire the control request address based on the device information; a request unit, used to request the control instruction set from the target platform based on the control request address, wherein the target platform is the platform where the target device is located; and an acquisition unit, used to acquire the control instruction set fed back by the target platform.

[0017] According to another aspect of an embodiment of the present invention, there is also provided a device control apparatus, comprising: a first sending module, used to send a device control request to a cloud platform, wherein the cloud platform, upon receiving the device control request, parses the device control request to obtain device information of a target device, wherein the target device is a device requested to be controlled; a determination module, used to determine a target control instruction based on the control instruction set and control requirement information upon receiving a control instruction set fed back by the cloud platform based on the device control request; and a second sending module, used to send the target control instruction to the target device, so that the target device operates according to the target control instruction.

[0018] According to another aspect of an embodiment of the present invention, a device control apparatus is also provided, including: an acquisition module, used to acquire a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control requirement information of the predetermined terminal, the control instruction set is an instruction set fed back by a cloud platform based on a device control request, and the device control request is a request sent by the predetermined terminal; and a response module, used to respond to the target control instruction to operate in accordance with the target control instruction.

[0019] Optionally, the device also includes: a sending module, used to send a registration request to the cloud platform before sending a device control request to the cloud platform, wherein after receiving the registration request, the cloud platform parses the registration request to obtain and store the device information of the target device and the control request address.

[0020] According to another aspect of an embodiment of the present invention, there is also provided a device control system, using any one of the device control methods described above, comprising: a predetermined terminal, used to send a device control request to a cloud platform; the cloud platform, used to parse the device control request upon receiving the device control request to obtain device information of a target device, wherein the device control request is a request sent by the predetermined terminal, and the target device is a device requested to be controlled by the predetermined terminal; a target platform, used to obtain a control instruction set based on the device information, and send the control instruction set to the cloud platform, wherein the target platform is the platform where the target device is located, and the control instruction set includes multiple control instructions for controlling the target device; the predetermined terminal, used to receive the control instruction set fed back by the cloud platform, and determine the target control instruction based on the control instruction set and control requirement information, and send the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0021] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute any of the device control methods described above.

[0022] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a computer program, wherein the computer program executes any one of the above-mentioned device control methods when running.

[0023] In an embodiment of the present invention, when a device control request is received, the device control request is parsed to obtain device information of the target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device requested to be controlled by the predetermined terminal; a control instruction set is obtained based on the control request address corresponding to the device information, wherein the control instruction set includes multiple control instructions for controlling the target device; the control instruction set is sent to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction. The device control method provided by the embodiment of the present invention achieves the purpose of controlling the device by obtaining the device control instruction set through the device platform by parsing the control request when receiving the device control request, and then sending it to the terminal, thereby achieving the technical effect of improving the security of the user device, and thus solving the technical problem of the residual control information after the cloud platform is interconnected with each device in the related technology, which endangers the control security of the user device. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] Figure 1 is a flow chart of a device control method according to an embodiment of the present invention;

[0026] Figure 2 is a flow chart of a device registration method according to an embodiment of the present invention;

[0027] Figure 3 is a flow chart of a preferred device control method according to an embodiment of the present invention;

[0028] Figure 4 is a flowchart of an optional device registration method according to an embodiment of the present invention;

[0029] Figure 5 is a flow chart of another optional device control method according to an embodiment of the present invention;

[0030] Figure 6 is a schematic diagram of a device control apparatus according to an embodiment of the present invention;

[0031] Figure 7 is a schematic diagram of an optional device control apparatus according to an embodiment of the present invention;

[0032] Figure 8 is a schematic diagram of another optional device control apparatus according to an embodiment of the present invention;

[0033] Fig. 9 is a schematic diagram of a device control system according to an embodiment of the present invention;

[0034] Fig.10 is a structural diagram of a device control system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0037] Example 1

[0038] According to an embodiment of the present invention, a method embodiment of a device control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] Figure 1 is a flow chart of a device control method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0040] Step S102, when receiving a device control request, parsing the device control request to obtain device information of a target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device that the predetermined terminal requests to control;

[0041] Optionally, in the above steps, when a device control request sent by the terminal is received, the received device control request is parsed to obtain device information of the device to be controlled (ie, the target device).

[0042] Step S104, acquiring a control instruction set based on the control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device;

[0043] Optionally, in the above steps, the acquired device information is used to acquire its corresponding control request address, and then the control instruction set is acquired based on this. It should be noted that the control request address indicates that the corresponding control instruction set needs to be found from the manufacturer platform through this.

[0044] Step S106, sending the control instruction set to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0045] As can be seen from the above, in the embodiment of the present invention, first, when receiving a device control request, the device control request can be parsed to obtain the device information of the target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is the device that the predetermined terminal requests to control; then, a control instruction set can be obtained based on the control request address corresponding to the device information, wherein the control instruction set contains multiple control instructions for controlling the target device; finally, the control instruction set can be sent to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction. Through the device control method provided by the embodiment of the present invention, the cloud platform parses the control request when receiving the control request of the device to obtain the control instruction set of the device through the device platform and then sends it to the terminal to achieve the purpose of controlling the device, thereby achieving the technical effect of improving the security of the user's device, and then solving the technical problem of the control information remaining after the cloud platform is interconnected with each device in the related technology, which endangers the control security of the user's device.

[0046] It should be noted that the device control method provided in the embodiment of the present invention is applied to the cloud platform side.

[0047] As an optional embodiment, before receiving the device control request, the device control method also includes: receiving a registration request from the target device; analyzing the registration request to obtain device information and a control request address of the target device; and saving the device information and the control request address correspondingly.

[0048] Figure 2 is a flow chart of a device registration method according to an embodiment of the present invention. Figure 2 As shown, the device (i.e., the target device) can first send a registration request to the cloud platform; specifically, the device is a device that has completed the network configuration and has the ability to communicate with the cloud platform and transmit data. The registration request includes: device information and control request address. The device information is the unique identifier of the device, which is an identifier that does not have any device data and is unique relative to all devices; the control request address is a request address that points to the manufacturer's cloud platform and obtains the device control instruction set from the cloud platform.

[0049] Next, the cloud platform will analyze the registration request, obtain the device information and control request address and save them; specifically, the cloud platform will save the correspondence between the device information and the control request address. As a preferred implementation, the cloud platform can receive the manufacturer's request and update the control request address in the correspondence.

[0050] Through the above method, the cloud platform can obtain the corresponding control request address according to the device information, and obtain the manufacturer's control instruction set for the device according to the control request address.

[0051] As an optional embodiment, before receiving the device control request, the device control method also includes: obtaining a network configuration request of a predetermined terminal; verifying the predetermined terminal based on the network configuration request to obtain a verification result; and establishing a communication relationship with the predetermined terminal when the verification result indicates that the verification of the predetermined terminal is successful.

[0052] In the above optional embodiment, before receiving the device control instruction sent by the terminal, the terminal's network configuration request can be first received and parsed and verified. When the verification result indicates that the terminal is a trusted device (i.e., the verification is successful), a communication connection is established between the cloud platform and the terminal.

[0053] As an optional embodiment, obtaining a control instruction set based on a control request address corresponding to device information includes: obtaining a control request address based on the device information; requesting a control instruction set from a target platform based on the control request address, wherein the target platform is the platform where the target device is located; and obtaining a control instruction set fed back by the target platform.

[0054] Figure 3 is a flow chart of a preferred device control method according to an embodiment of the present invention. Figure 3 As shown, the steps of the preferred device control method of the embodiment provided by the present invention are described in detail below.

[0055] Step 1) The terminal sends a device control request to the cloud platform; specifically, the terminal is a device used by the user to communicate with the cloud platform and has a visual interface. In this embodiment, the terminal is a smart device with network communication function such as a mobile phone or a tablet. The device control request includes device information.

[0056] Step 2), the cloud platform analyzes the device control request and obtains the device information; specifically, the cloud platform parses the device control request sent by the terminal and obtains the device information.

[0057] Step 3), the cloud platform obtains the control request address according to the device information; specifically, the cloud platform finds the corresponding control request address in the saved device information and control request address according to the device information.

[0058] Step 4) The cloud platform requests the device control instruction set from the manufacturer platform through the control request address; specifically, the control instruction set includes a set of corresponding relationships between control content and control instructions. The control instruction can be a machine code that can be recognized by the machine, or it can be a request provided by the manufacturer for the manufacturer's cloud platform to remotely control the device.

[0059] Step 5), the terminal obtains the device control instruction set and controls the device; specifically, the terminal obtains the device control instruction set, selects the control content to be controlled according to the environment, and sends the control instruction corresponding to the control content to the device or the manufacturer's cloud platform. As a preferred implementation, the control instruction set also includes a visual rendering method. After the terminal obtains the control instruction set, the control instruction is visually rendered to the operation interface according to the visual rendering method, so as to facilitate the user to make control selections.

[0060] Through the above steps, when the user needs to control the device through the terminal, he obtains the manufacturer's control instruction set through the device control request. The cloud platform will not collect relevant valid information and control instructions of the device, thus ensuring the security of device information and control information.

[0061] It should be noted that the vendor cloud platform includes a control instruction encoding method, which can generate different coded control instruction sets for control instructions according to changes in fixed time intervals. The terminal includes a control instruction decoding method corresponding to the control instruction encoding method, which decodes the coded control instruction set to obtain a control instruction set. After a fixed time interval, the control instruction set becomes invalid and a new control instruction set needs to be obtained.

[0062] Therefore, when the terminal needs to control the device through the embodiment provided by the present invention, the terminal sends a control request containing the device information to the cloud platform, the cloud platform finds the corresponding manufacturer's control request based on the device information, and requests the manufacturer to control the device based on the manufacturer's control request. The manufacturer returns a control instruction set to the cloud platform, and the cloud platform returns the instruction set to the terminal. The user controls the device, and the terminal finds the corresponding control instruction through the instruction set and sends it to the device. Each device is directly connected to each manufacturer through the cloud platform, and any control information will not be saved on the cloud platform, thereby ensuring the security of user information and control information.

[0063] Example 2

[0064] According to another aspect of an embodiment of the present invention, a device control method is also provided. Figure 4 is a flow chart of an optional device control method according to an embodiment of the present invention, such as Figure 4 As shown, including:

[0065] Step S402, sending a device control request to the cloud platform, wherein the cloud platform parses the device control request upon receiving the device control request to obtain device information of a target device, where the target device is the device requested to be controlled;

[0066] Optionally, in the above steps, a device control request is sent to the cloud platform. After receiving the device control request sent by the terminal, the cloud platform parses the request to obtain device information of the target device.

[0067] Step S404, upon receiving the control instruction set fed back by the cloud platform based on the device control request, determining the target control instruction based on the control instruction set and the control requirement information;

[0068] Optionally, in the above steps, after receiving the control instruction set sent by the cloud platform, the target control instruction is determined based on the control instruction set and the control requirement information.

[0069] Step S406: sending the target control instruction to the target device so that the target device operates according to the target control instruction.

[0070] As can be seen from the above, in the embodiment of the present invention, first, a device control request can be sent to the cloud platform, wherein the cloud platform, upon receiving the device control request, parses the device control request to obtain the device information of the target device, where the target device is the device requested for control; then, upon receiving the control instruction set based on the device control request feedback from the cloud platform, the target control instruction can be determined based on the control instruction set and the control requirement information; finally, the target control instruction can be sent to the target device, so that the target device operates according to the target control instruction. The device control method provided by the embodiment of the present invention achieves the purpose of controlling the device by parsing the control request when the cloud platform receives the device control request, obtaining the device control instruction set through the device platform, and then sending it to the terminal, thereby achieving the technical effect of improving the security of the user's device, and thus solving the technical problem of the residual control information after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user's device.

[0071] It should be noted that the device control method provided in the embodiment of the present invention is applied to the terminal side.

[0072] Example 3

[0073] According to another aspect of an embodiment of the present invention, a device control method is also provided. Figure 5 is a flow chart of another optional device control method according to an embodiment of the present invention. Figure 5 As shown, including:

[0074] Step S502, obtaining a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control requirement information of the predetermined terminal, the control instruction set is an instruction set fed back by the cloud platform based on a device control request, and the device control request is a request sent by the predetermined terminal;

[0075] Optionally, in the above steps, a target control instruction sent by the receiving terminal is executed, and the target control instruction is executed.

[0076] Step S504, responding to the target control instruction to operate according to the target control instruction.

[0077] As can be seen from the above, in the embodiment of the present invention, the target control instruction sent by the predetermined terminal can be obtained first, wherein the target control instruction is an instruction generated based on the control instruction set and the control demand information of the predetermined terminal, the control instruction set is an instruction set based on the feedback of the device control request by the cloud platform, and the device control request is a request sent by the predetermined terminal; finally, the target control instruction can be responded to to operate according to the target control instruction. The device control method provided by the embodiment of the present invention achieves the purpose of controlling the device by the cloud platform by parsing the control request when receiving the control request of the device, obtaining the control instruction set of the device through the device platform, and then sending it to the terminal, thereby achieving the technical effect of improving the security of the user's device, and then solving the technical problem of the control information remaining after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user's device.

[0078] It should be noted that the device control method provided in the embodiment of the present invention is applied to the device side.

[0079] As an optional embodiment, before sending a device control request to the cloud platform, the device control method also includes: sending a registration request to the cloud platform, wherein after receiving the registration request, the cloud platform parses the registration request to obtain and store the device information of the target device and the control request address.

[0080] Example 4

[0081] According to another aspect of an embodiment of the present invention, a device control apparatus is provided. Figure 6 is a schematic diagram of a device control apparatus according to an embodiment of the present invention, such as Figure 6 As shown, it includes: an analysis module 61, a first acquisition module 63 and a sending module 65. The device control device is described below.

[0082] The parsing module 61 is used to parse the device control request when receiving it, so as to obtain the device information of the target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device that the predetermined terminal requests to control;

[0083] A first acquisition module 63, configured to acquire a control instruction set based on a control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device;

[0084] The sending module 65 is used to send the control instruction set to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0085] It should be noted that the above-mentioned parsing module 61, the first acquisition module 63 and the sending module 65 correspond to steps S102 to S106 in Embodiment 1, and the examples and application scenarios implemented by the above-mentioned modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Embodiment 1. It should be noted that the above-mentioned modules as part of the device can be executed in a computer system such as a set of computer executable instructions.

[0086] As can be seen from the above, in the embodiment of the present invention, firstly, the device control request can be parsed by the parsing module 61 when receiving the device control request to obtain the device information of the target device, wherein the device control request is a request sent by the predetermined terminal, and the target device is the device requested to be controlled by the predetermined terminal; then, the control instruction set can be obtained by the first acquisition module 63 based on the control request address corresponding to the device information, wherein the control instruction set includes multiple control instructions for controlling the target device; finally, the control instruction set can be sent to the predetermined terminal by the sending module 65, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction. Through the device control device provided by the embodiment of the present invention, the cloud platform parses the control request when receiving the control request of the device to obtain the control instruction set of the device through the device platform and then sends it to the terminal to achieve the purpose of controlling the device, thereby achieving the technical effect of improving the security of the user device, and then solving the technical problem of the residual control information after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user device.

[0087] Optionally, the device control apparatus further includes: a receiving module, used to receive a registration request of a target device before receiving a device control request; an analyzing module, used to analyze the registration request to obtain device information and a control request address of the target device; and a saving module, used to save the device information and the control request address correspondingly.

[0088] Optionally, the device control device also includes: a second acquisition module, used to obtain a network configuration request of a predetermined terminal before receiving a device control request; a verification module, used to verify the predetermined terminal based on the network configuration request to obtain a verification result; and an establishment module, used to establish a communication relationship with the predetermined terminal when the verification result indicates that the verification of the predetermined terminal is successful.

[0089] Optionally, the first acquisition module includes: an acquisition unit, used to acquire a control request address based on device information; a request unit, used to request a control instruction set from a target platform based on the control request address, wherein the target platform is the platform where the target device is located; and an acquisition unit, used to acquire a control instruction set fed back by the target platform.

[0090] Example 5

[0091] According to another aspect of an embodiment of the present invention, a device control apparatus is provided. Figure 7 is a schematic diagram of an optional device control device according to an embodiment of the present invention, such as Figure 7 As shown, it includes: a first sending module 71, a determining module 73 and a second sending module 75. The device control device is described below.

[0092] A first sending module 71 is used to send a device control request to the cloud platform, wherein the cloud platform parses the device control request upon receiving the device control request to obtain device information of a target device, where the target device is the device requested to be controlled;

[0093] A determination module 73, configured to determine a target control instruction based on the control instruction set and control requirement information when receiving a control instruction set fed back by the cloud platform based on a device control request;

[0094] The second sending module 75 is used to send the target control instruction to the target device, so that the target device operates according to the target control instruction.

[0095] It should be noted that the first sending module 71, the determining module 73 and the second sending module 75 correspond to steps S402 to S406 in Embodiment 2, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 2. It should be noted that the modules as part of the device can be executed in a computer system such as a set of computer executable instructions.

[0096] As can be seen from the above, in the embodiment of the present invention, first, the first sending module 71 can send a device control request to the cloud platform, wherein, when the cloud platform receives the device control request, it parses the device control request to obtain the device information of the target device, and the target device is the device requested to be controlled; then, the determination module 73 can determine the target control instruction based on the control instruction set and the control requirement information when receiving the control instruction set fed back by the cloud platform based on the device control request; finally, the second sending module 75 can send the target control instruction to the target device, so that the target device operates according to the target control instruction. Through the device control device provided by the embodiment of the present invention, the cloud platform parses the control request when receiving the control request of the device to obtain the control instruction set of the device through the device platform and then sends it to the terminal to achieve the purpose of controlling the device, thereby achieving the technical effect of improving the security of the user's device, and then solving the technical problem of the residual control information after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user's device.

[0097] Example 6

[0098] According to another aspect of an embodiment of the present invention, a device control apparatus is provided. Figure 8 is a schematic diagram of another optional device control device according to an embodiment of the present invention, such as Figure 8 As shown, it includes: an acquisition module 81 and a response module 83. The device control device is described below.

[0099] An acquisition module 81 is used to acquire a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control requirement information of a predetermined terminal, the control instruction set is an instruction set fed back by a cloud platform based on a device control request, and the device control request is a request sent by a predetermined terminal;

[0100] The response module 83 is used to respond to the target control instruction to operate according to the target control instruction.

[0101] It should be noted that the identification module 81, configuration module 83 and sending module 85 correspond to steps S502 to S606 in Embodiment 3, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 3. It should be noted that the modules as part of the device can be executed in a computer system such as a set of computer executable instructions.

[0102] As can be seen from the above, in the embodiment of the present invention, firstly, the target control instruction sent by the predetermined terminal can be obtained with the aid of the acquisition module 81, wherein the target control instruction is an instruction generated based on the control instruction set and the control demand information of the predetermined terminal, the control instruction set is an instruction set fed back by the cloud platform based on the device control request, and the device control request is a request sent by the predetermined terminal; finally, the target control instruction can be responded to with the aid of the response module 83 to operate according to the target control instruction. The device control device provided by the embodiment of the present invention achieves the purpose of controlling the device by the cloud platform by parsing the control request when receiving the control request of the device, obtaining the control instruction set of the device through the device platform, and then sending it to the terminal, thereby achieving the technical effect of improving the security of the user's device, and thus solving the technical problem of the residual control information after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user's device.

[0103] Optionally, the device control apparatus further includes: a sending module, for sending a registration request to the cloud platform before sending a device control request to the cloud platform, wherein after receiving the registration request, the cloud platform parses the registration request to obtain and store device information of the target device and a control request address.

[0104] Example 7

[0105] According to another aspect of an embodiment of the present invention, there is also provided a device control system, using any one of the device control methods described above, Fig. 9 is a schematic diagram of a device control system according to an embodiment of the present invention, such as Fig. 9 As shown, including:

[0106] A predetermined terminal 91 is used to send a device control request to the cloud platform;

[0107] The cloud platform 93 is used to parse the device control request upon receiving the device control request to obtain device information of the target device, wherein the device control request is a request sent by a predetermined terminal and the target device is a device requested to be controlled by the predetermined terminal;

[0108] The target platform 95 is used to obtain a control instruction set based on the device information and send the control instruction set to the cloud platform, wherein the target platform is the platform where the target device is located, and the control instruction set includes multiple control instructions for controlling the target device;

[0109] The predetermined terminal 91 is used to receive the control instruction set fed back by the cloud platform, determine the target control instruction based on the control instruction set and the control requirement information, and send the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

[0110] As can be seen from the above, in an embodiment of the present invention, the device control system can use the predetermined terminal 91 to send a device control request to the cloud platform; the cloud platform 93 can also be used to parse the device control request when receiving the device control request to obtain the device information of the target device, wherein the device control request is a request sent by the predetermined terminal, and the target device is the device requested to be controlled by the predetermined terminal; the target platform 95 can also be used to obtain a control instruction set based on the device information, and send the control instruction set to the cloud platform, wherein the target platform is the platform where the target device is located, and the control instruction set includes multiple control instructions for controlling the target device; the predetermined terminal 91 can also be used to receive the control instruction set fed back by the cloud platform, and determine the target control instruction based on the control instruction set and the control requirement information, and send the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction. Through the device control system provided by the embodiment of the present invention, the cloud platform parses the control request of the device when receiving the control request, obtains the control instruction set of the device through the device platform, and then sends it to the terminal to achieve the purpose of controlling the device, thereby achieving the technical effect of improving the security of user devices, and further solves the technical problem of the control information remaining after the cloud platform and each device are interconnected in the related technology, which endangers the control security of the user device.

[0111] Fig.10 is a structural diagram of a device control system according to an embodiment of the present invention, such as Fig.10 As shown, the device control system may include: a device (i.e., a target device), a cloud platform, and a manufacturer's cloud platform (i.e., a target platform), wherein the target device may include: a processing module, responsible for processing instructions received from the cloud platform and changing the state of the device; a storage module, responsible for storing device information and a control request address; a sending module, responsible for communicating with a server; the cloud platform may include: an analysis module, responsible for analyzing device registration requests and device control requests; a storage module, responsible for storing the correspondence between device information and device control requests; a communication module, responsible for communicating with the device and the manufacturer's cloud platform; the manufacturer's cloud platform includes: an analysis module, responsible for analyzing device control requests and returning corresponding device control instruction sets; a storage module, responsible for saving the correspondence between device information and device control instruction sets; a communication module, responsible for communicating with the cloud platform, receiving device control requests, and sending device control instruction sets.

[0112] Example 8

[0113] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned device control methods.

[0114] Example 9

[0115] According to another aspect of an embodiment of the present invention, a processor is provided, and the processor is used to run a computer program, wherein the computer program executes any one of the above-mentioned device control methods when it is run.

[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0117] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A device control method, It is characterized in that include: When receiving a device control request, parsing the device control request to obtain device information of a target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device that the predetermined terminal requests to control; Acquire a control instruction set based on a control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device, wherein acquiring the control instruction set based on the control request address corresponding to the device information comprises: acquiring the control request address based on the device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is a platform where the target device is located; and acquiring the control instruction set fed back by the target platform; The control instruction set is sent to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

2. The method according to claim 1, It is characterized in that Before receiving the device control request, the method further includes: receiving a registration request of the target device; Analyzing the registration request to obtain the device information of the target device and the control request address; The device information and the control request address are correspondingly saved.

3. The method according to claim 1, It is characterized in that Before receiving the device control request, the method further includes: Obtaining a network configuration request of the predetermined terminal; Verifying the predetermined terminal based on the network configuration request to obtain a verification result; When the verification result indicates that the verification of the predetermined terminal is successful, a communication relationship with the predetermined terminal is established.

4. A device control method, It is characterized in that include: Sending a device control request to the cloud platform, wherein the cloud platform, upon receiving the device control request, parses the device control request to obtain device information of a target device, wherein the target device is the device requested to be controlled; Upon receiving the control instruction set fed back by the cloud platform based on the device control request, determining the target control instruction based on the control instruction set and the control requirement information, wherein the control instruction set is obtained by: obtaining a control request address based on the device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is the platform where the target device is located; and obtaining the control instruction set fed back by the target platform; The target control instruction is sent to the target device, so that the target device operates according to the target control instruction.

5. The method according to claim 4, It is characterized in that Before sending the device control request to the cloud platform, the method further includes: A registration request is sent to the cloud platform, wherein after receiving the registration request, the cloud platform parses the registration request to obtain and store device information of the target device and a control request address.

6. A device control method, It is characterized in that include: Obtaining a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control demand information of the predetermined terminal, the control instruction set is an instruction set fed back by a cloud platform based on a device control request, the device control request is a request sent by the predetermined terminal, and the control instruction set is obtained in the following manner: obtaining a control request address based on device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is a platform where a target device is located; and obtaining the control instruction set fed back by the target platform; Respond to the target control instruction to operate according to the target control instruction.

7. A device control device, It is characterized in that include: A parsing module, configured to parse a device control request upon receipt of the device control request to obtain device information of a target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device that the predetermined terminal requests to control; A first acquisition module is used to acquire a control instruction set based on a control request address corresponding to the device information, wherein the control instruction set includes a plurality of control instructions for controlling the target device, wherein the first acquisition module is further used to acquire the control request address based on the device information; request the control instruction set from a target platform based on the control request address, wherein the target platform is a platform where the target device is located; and acquire the control instruction set fed back by the target platform; A sending module is used to send the control instruction set to the predetermined terminal, so that the predetermined terminal determines the target control instruction based on the control instruction set and the control requirement information, and sends the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

8. A device control device, It is characterized in that include: A first sending module, configured to send a device control request to the cloud platform, wherein upon receiving the device control request, the cloud platform parses the device control request to obtain device information of a target device, wherein the target device is a device requested to be controlled; A determination module, configured to determine a target control instruction based on the control instruction set and control requirement information when receiving a control instruction set fed back by the cloud platform based on the device control request, wherein the control instruction set is obtained by: obtaining a control request address based on the device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is the platform where the target device is located; and obtaining the control instruction set fed back by the target platform; The second sending module is used to send the target control instruction to the target device, so that the target device operates according to the target control instruction.

9. A device control device, It is characterized in that include: An acquisition module is used to acquire a target control instruction sent by a predetermined terminal, wherein the target control instruction is an instruction generated based on a control instruction set and control demand information of the predetermined terminal, the control instruction set is an instruction set fed back by a cloud platform based on a device control request, the device control request is a request sent by the predetermined terminal, and the control instruction set is acquired in the following manner: acquiring a control request address based on device information; requesting the control instruction set from a target platform based on the control request address, wherein the target platform is a platform where a target device is located; and acquiring the control instruction set fed back by the target platform; The response module is used to respond to the target control instruction to operate according to the target control instruction.

10. A device control system, It is characterized in that The device control method using any one of claims 1 to 6 comprises: A predetermined terminal is used to send a device control request to the cloud platform; The cloud platform is used to parse the device control request upon receiving the device control request to obtain device information of the target device, wherein the device control request is a request sent by a predetermined terminal, and the target device is a device requested to be controlled by the predetermined terminal; A target platform, used for acquiring a control instruction set based on the device information, and sending the control instruction set to the cloud platform, wherein the target platform is the platform where the target device is located, and the control instruction set includes a plurality of control instructions for controlling the target device; The predetermined terminal is used to receive the control instruction set fed back by the cloud platform, determine the target control instruction based on the control instruction set and control requirement information, and send the target control instruction to the target device, wherein the target device operates according to the target control instruction after receiving the target control instruction.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the device control method described in any one of claims 1 to 6.

12. A processor, It is characterized in that The processor is used to run a computer program, wherein the computer program executes the device control method according to any one of claims 1 to 6 when running.

Citation Information

Patent Citations

  • Method and device of switching instruction sets

    CN105843097A

  • Control method and device of smart home appliance

    CN107493211A

  • Equipment operation state feedback monitoring method and device

    CN111302177A

  • Smart home control method and device, equipment and storage medium

    CN113253625A

  • Smart home scheduling method, apparatus and system, server and storage medium

    WO2020206693A1