Equipment control method and equipment based on instruction set, and storage medium

Through the device control method based on the instruction set, the problem of users needing to install complex clients is solved, and the device control without downloading clients is realized, which improves user experience and control efficiency.

CN120263458APending Publication Date: 2025-07-04LIVEFAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510384662.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The existing remote device control technology requires users to install complex client software in the control terminal system, resulting in version incompatibility problems and increasing the difficulty of users to use.

Method used

Through the device control method based on the instruction set, the control terminal system sends device control instructions to the remote control system, the remote control system performs key data checks and device name matching, and the target device system executes control instructions and returns execution results, avoiding the problem of downloading and version compatibility of client software.

Benefits of technology

It simplifies user operations, reduces the problem of software version incompatibility, and improves the efficiency and reliability of device control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120263458A_ABST
    Figure CN120263458A_ABST
Patent Text Reader

Abstract

The invention relates to the field of equipment control, and discloses an equipment control method and equipment based on an instruction set, and a storage medium. The equipment control system based on the instruction set comprises a control terminal, a remote control system and a target equipment system, and the equipment control method based on the instruction set comprises the steps that the control terminal system sends an equipment control instruction to the remote control system, and the remote control system receives the equipment control instruction, verifies key data, and sends the key data to the target equipment system; a verification result is obtained; when the verification result is qualified, carrying out matching processing on the equipment name to obtain a matched name; the equipment control instruction is sent to a target equipment system; and the target device executes the control entity command and the check code according to the address corresponding to the matched name. In the embodiment of the invention, a user does not need to download a complex client, the difficulty of incompatibility of software versions is reduced, and the use difficulty of the user is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device control, and particularly relates to a device control method, a device and a storage medium based on an instruction set. Background Art

[0002] In the wave of modern technology, remote device control technology has gradually become one of the core requirements in the fields of industrial automation, smart home, Internet of Things, etc. With the explosion of the number of devices and the increasing complexity of application scenarios, how to achieve efficient, safe and reliable device control has become the focus of the industry, and remote device control technology has been widely used in the smart home field. Users can control smart devices at home anytime and anywhere through mobile phones or other terminal devices. Remote device control technology is used to remotely monitor and manage production devices, improving production efficiency and device utilization rate.

[0003] Most of the existing remote control solutions are complex and rely on specific network environments. Users need to install complex client software on the control terminal system. These software may cause usage troubles due to version incompatibility or updates. Users need to find specific control terminal systems for their own devices, and these limitations increase the difficulty of use for users. Summary of the Invention

[0004] The main purpose of the present invention is to solve the technical problem in the prior art that users need to install complex client software on the control terminal system and need to find specific control terminal systems for their own devices, which increases the difficulty of use for users.

[0005] The first aspect of the present invention provides a device control method based on an instruction set. The device control method based on an instruction set is used for a device control system based on an instruction set. The device control system based on an instruction set includes: a control terminal system, a remote control system, and a target device system. The device control method based on an instruction set includes:

[0006] The control terminal system sends a device control instruction to the remote control system, where the device control instruction includes: key data, device name, control entity command, and check code;

[0007] The remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result;

[0008] When the verification result is qualified, the device name is subjected to a matching process to obtain a matching name;

[0009] The control entity command, the check code, and the matching name are sent to the target device system;

[0010] The target device system receives the control entity command, the verification code, and the matching name, executes the control entity command and the verification code according to the address corresponding to the matching name, obtains an execution result, and returns the execution result to the remote control system;

[0011] The remote control system receives the execution result and forwards the execution result to the control terminal system.

[0012] Optionally, in the first implementation manner of the first aspect of the present invention, before the target device system receives the control entity command, the verification code, and the matching name, executes the control entity command and the verification code according to the address corresponding to the matching name, obtains an execution result, and returns the execution result to the remote control system, it further includes:

[0013] When the matching name does not match the target device system, the remote control system stops matching with the target device system, generates a matching result, and sends the matching result to the control terminal system.

[0014] Optionally, in the second implementation manner of the first aspect of the present invention, the control entity command includes: a C / C++ code entity command, and the sending the control entity command, the verification code, and the matching name to the target device system includes:

[0015] The remote control system creates a socket in the C / C++ code entity command and sends the socket to the target device system;

[0016] The target device system receives the socket, parses the socket, generates a parsing result, obtains parsing data based on the parsing result, and generates a receiving result according to the parsing data.

[0017] Optionally, in the third implementation manner of the first aspect of the present invention, the executing the control entity command and the verification code according to the address corresponding to the matching name, and obtaining an execution result includes:

[0018] Based on the verification code, perform integrity verification on the control entity command to obtain command verification data;

[0019] When the command verification data is qualified, send the control entity command to the address corresponding to the matching name, and listen for feedback data from the address corresponding to the matching name;

[0020] Generate an execution result based on the feedback data.

[0021] Optionally, in the fourth implementation manner of the first aspect of the present invention, after the remote control system receives the execution result and forwards the execution result to the control terminal system, the method further includes:

[0022] The control terminal system receives the execution result, stores and processes the execution result according to a preset log database, and generates a modified log database;

[0023] Receives a user query instruction, and queries the modified log database based on the user query instruction to generate a query feedback message.

[0024] Optionally, in the fifth implementation manner of the first aspect of the present invention, before the remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result, the method further includes:

[0025] The control terminal system sends a first communication detection request to the remote control system;

[0026] The remote control system receives the first communication detection request and sends a connection request to the remote control system according to a preset TCP / IP protocol.

[0027] Optionally, in the sixth implementation manner of the first aspect of the present invention, before the remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result, the method further includes:

[0028] The control terminal system sends a second communication detection request to the remote control system;

[0029] The remote control system receives the second communication detection request, configures itself into an AP mode based on the device control instruction, generates a WIFI hotspot request, and sends the WIFI hotspot request to the remote control system.

[0030] Optionally, in the seventh implementation manner of the first aspect of the present invention, before performing a matching process on the device name to obtain a matching name when the verification result is qualified, the method further includes:

[0031] The remote control system generates a device name based on a user instruction and stores the device name in a database.

[0032] The second aspect of the present invention provides a device based on a preset instruction set, including: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected by a line; the at least one processor invokes the instructions in the memory to enable the device based on the preset instruction set to control a device to execute the above-mentioned device control method based on an instruction set.

[0033] The third aspect of the present invention provides a computer-readable storage medium, in which instructions are stored. When the instructions run on a computer, the computer is caused to execute the above-mentioned device control method based on an instruction set.

[0034] In an embodiment of the present invention, the device control method based on an instruction set controls a terminal system to send a device control instruction to a remote control system. The remote control system verifies the device control instruction and sends it to a target device system. The target device system executes the received device instruction set and matches the corresponding address according to the device name, so that there is no need for a user to download a complex client, reducing the difficulty of software version incompatibility and lowering the user's usage difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of an embodiment of the device control method based on an instruction set in an embodiment of the present invention;

[0036] Figure 2 It is a schematic diagram of a specific embodiment of step 1042 of the device control method based on an instruction set in an embodiment of the present invention;

[0037] Figure 3 It is a schematic diagram of a specific embodiment of step 105 of the device control method based on an instruction set in an embodiment of the present invention;

[0038] Figure 4 It is a schematic diagram of a specific embodiment of step 106 of the device control method based on an instruction set in an embodiment of the present invention;

[0039] Figure 5 It is a schematic diagram of an embodiment of a device based on a preset instruction set in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0040] The embodiments of the present invention provide a device control method, a device and a storage medium based on an instruction set.

[0041] The embodiments disclosed by the present invention will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the accompanying drawings and embodiments of the present invention are only for exemplary purposes and are not used to limit the protection scope of the present invention.

[0042] In the description of the embodiments disclosed in the present invention, the term "including" and its similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "an embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. There may also be other explicit and implicit definitions below.

[0043] For ease of understanding, the specific process of the embodiments of the present invention will be described below. Please refer to Figure 1 , Figure 1 FIG. is a schematic diagram of an embodiment of the device control method based on an instruction set in the embodiments of the present invention. An embodiment of the device control method based on an instruction set in the embodiments of the present invention includes: The device control method based on an instruction set is used for a device control system based on an instruction set. The device control system based on an instruction set includes: a control terminal system, a remote control system, and a target device system. The device control method based on an instruction set includes:

[0044] 101. The control terminal system sends a device control instruction to the remote control system. Among them, the device control instruction includes: key data, device name, control entity command, and check code;

[0045] In this embodiment, the control terminal system sends a device control instruction to the remote control system. The remote control system receives the device control instruction. The remote control system sends a device instruction to the target device system. The remote control system performs key data processing, device name matching, control entity command, and check processing on the target device.

[0046] Specifically, the following specific implementation manners are included before step 101:

[0047] 1011. The control terminal system sends a first communication detection request to the remote control system;

[0048] 1012. The remote control system receives the first communication detection request and sends a connection request to the remote control system according to the preset TCP / IP protocol.

[0049] In steps 1011-1012, the control terminal system sends a first communication detection request to the remote control system through the network communication module according to the threshold TCP / IP protocol. After the remote control system receives the first communication detection request sent by the control terminal system, it will respond. After the remote control system passes the verification, the remote control system is connected to the control terminal system.

[0050] Further, the following specific implementation manners are included before step 101:

[0051] 1013. The control terminal system sends a second communication detection request to the remote control system;

[0052] 1014. The remote control system receives the second communication detection request, configures itself into the AP mode based on the device control instruction, generates a WIFI hotspot request, and sends the WIFI hotspot request to the remote control system.

[0053] In steps 1013 - 1014, after the protocol parsing module of the remote control system receives the second communication detection request, it executes, parses the communication mode identification bit, triggers the mode switching instruction of the network interface controller, configures the wireless network card to enter the SoftAP mode, generates a WIFI hotspot conforming to the IEEE 802.11ac standard, and the control terminal system scans and parses the WIFI hotspot parameters in the response message and makes a connection.

[0054] 102. The remote control system receives the device control instruction, performs a verification process on the key data, and obtains a verification result;

[0055] In this embodiment, the control terminal system is a smart phone or a tablet computer, the remote control system is a data center, and the target device system is various intelligent devices. The control terminal system sends a device control instruction to the remote control system, and the remote control system receives the device control instruction and performs a verification process on the secret key data to obtain a verification result.

[0056] 103. When the verification result is qualified, the device name is subjected to a matching process to obtain a matching name;

[0057] In this embodiment, the remote control system receives the device control instruction and detects the verification result. After the remote control system determines that the verification result is qualified, a matching name is obtained.

[0058] Specifically, step 103 includes the following specific implementation manners:

[0059] 1031. When the matching name does not match the target device system, the remote control system stops matching with the target device system, generates a matching result, and sends the matching result to the control terminal system.

[0060] In step 1031, the remote control system receives the device control instruction and detects the detection result. When the detection result is determined to be unqualified, the remote control system terminates the matching with the target system and generates a matching result. At the same time, the remote control system sends the matching result to the control terminal system.

[0061] 104. Send the control entity command, the check code, and the matching name to the target device system;

[0062] In this embodiment, when the remote control system receives a device control instruction, and when the inspection result is qualified, the remote control system sends the control entity command, the check code, and the matching name to the target device system.

[0063] Specifically, the following specific implementation manners are included in step 104:

[0064] 1041. The remote control system generates a device name based on a user instruction and stores the device name in a database.

[0065] In step 1041, the user sends an instruction to the remote control system to register a device name in the remote control system, so as to store the device name in the remote control system. For example, when sending an instruction to the remote control system to register a device name, such as registering the device name as "admin", the remote control system generates a device name of "admin" and stores the device name of "admin" in the database.

[0066] Specifically, please refer to Figure 2 , Figure 2 which is a schematic diagram of a specific embodiment of step 1042 of the device control method based on an instruction set in the embodiment of the present invention. The control entity command includes: a C / C++ code entity command. The following specific implementation manners are included in step 104:

[0067] 1042. The remote control system creates a socket in the C / C++ code entity command and sends the socket to the target device system;

[0068] 1043. The target device system receives the socket, parses the socket to generate a parsing result, obtains parsing data based on the parsing result, and generates a receiving result according to the parsing data.

[0069] In steps 1042-1043, the C / C++ code entity command refers to specific and executable instructions or statements in the code. These commands are the basic building blocks of the program and are used to implement specific functions or operations. The remote control system sends the socket to the target device system, and the target device system receives and parses the socket to obtain parsing data. The target device system analyzes the parsing data and generates and obtains a receiving result.

[0070] 105. The target device system receives the control entity command, the verification code, and the matching name, executes the control entity command and the verification code according to the address corresponding to the matching name, obtains an execution result, and returns the execution result to the remote control system;

[0071] In this embodiment, the remote control system sends a control entity command, a verification code, and a matching name to the target device system. The target device system receives and parses this information, finds the corresponding execution address in the address mapping table of the matching name, and then uses the verification code to verify the integrity of the control entity command to ensure that the command has not been tampered with or damaged. After the verification passes, the control entity command is executed according to the execution address, and the relevant data and status information during the support process are recorded as the execution standard. Finally, the result is encapsulated in a preset format and returned to the remote control system through the communication module. For example, when the remote control system wants to adjust the speed of a motor with the device name "admin", it will generate a corresponding control entity command, as well as a corresponding verification code and matching name. After receiving this information, the target device system first parses out the control entity command, the verification code, and the matching name, finds the execution address of the motor control module in the address mapping according to the matching name, and then uses the verification code to check whether the control entity command is complete and valid. After the verification passes, the speed of the motor is adjusted according to the execution address, and parameters such as the actual speed and current change of the motor are recorded as the execution result. Finally, these execution results are encapsulated into data in a preset format and sent back to the remote control system through the communication module.

[0072] Specifically, please refer to Figure 3 , Figure 3 FIG. is a schematic diagram of a specific embodiment of step 105 of the device control method based on an instruction set in an embodiment of the present invention. In step 105, "executing the control entity command and the verification code according to the address corresponding to the matching name to obtain an execution result" includes the following specific embodiments:

[0073] 1051. Based on the verification code, perform integrity verification on the control entity command to obtain command verification data;

[0074] 1052. When the command verification data is qualified, send the control entity command to the address corresponding to the matching name, and listen for the feedback data of the address corresponding to the matching name;

[0075] 1053. Generate an execution result based on the feedback data.

[0076] In steps 1051 - 1053, the target device system performs CRC check on the control entity command based on the dfnk check code, recalculates the received control entity command according to the CRC algorithm to obtain the check data, and compares the check data with the check code. If the data is the same, the check is passed. After the check is passed, the target device system matches the check data with the corresponding address of the name, thereby listening for the feedback data of the corresponding address. According to the listened feedback data, the execution result is finally obtained, and the execution result is packaged in a preset format such as XML or JSON format and sent back to the remote control system through the communication module. For example, after the target device system passes the check, the target device system sends the check database to the device name of "admin" and feeds back data to the device name of "admin", so that the device of "admin" executes the result according to the feedback data.

[0077] 106. The remote control system receives the execution result and forwards the execution result to the control terminal system.

[0078] In this embodiment, the remote control system receives the execution result from the target device system through the communication module, parses the received execution result, and sends the execution result data to the control terminal system according to the preset communication protocol and the address information of the control terminal system.

[0079] Specifically, please refer to Figure 4 , Figure 4 which is a schematic diagram of a specific embodiment of step 106 of the device control method based on the instruction set in the embodiment of the present invention. The following specific implementation manners are included in step 106:

[0080] 1061. The control terminal system receives the execution result, stores and processes the execution result according to the preset log database, and generates a modified log database;

[0081] 1062. Receive a user query instruction, and perform a query process on the modified log database based on the user query instruction to generate a query feedback message.

[0082] In steps 1061 - 1062, the control terminal system receives the execution result from the remote control system through the communication module. The control terminal system stores the execution result according to the preset log database. The log database classifies the execution result and associates it with the previous records, etc., to generate an updated log database. The user inputs a query instruction through the interface (such as a mobile phone, a tablet computer, etc.) of the control terminal system, and the control terminal system queries in the updated log database according to the query instruction input by the user.

[0083] In an embodiment of the present invention, in the device control method based on an instruction set, a device control instruction is sent from a control terminal system to a remote control system. The remote control system verifies the device control instruction and sends it into a target device system. The target device system executes the received device instruction set and matches the corresponding address according to the device name. As a result, there is no need for a user to download a complex client, the difficulty of software version incompatibility is reduced, and the usage difficulty of the user is lowered.

[0084] Figure 5 FIG. 4 is a schematic structural diagram of a device based on a preset instruction set provided by an embodiment of the present invention. The device 500 based on the preset instruction set may vary greatly due to configuration or performance, and may include one or more processors (central processing units, CPUs) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage media 530 may be transient storage or persistent storage. The program stored in the storage media 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the device 500 based on the preset instruction set. Further, the processor 510 may be configured to communicate with the storage media 530 and execute a series of instruction operations in the storage media 530 on the device 500 based on the preset instruction set.

[0085] The device 500 based on the instruction set may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art can understand that Figure 5 the shown structural diagram of the device based on the preset instruction set does not limit the device based on the instruction set, and may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements.

[0086] The present invention further provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a computer, the computer is caused to execute the steps of the device control method based on the instruction set.

[0087] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0088] Moreover, although the operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed to achieve the desired result. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation can also be implemented separately or in any suitable sub-combination in multiple implementations.

[0089] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A device control method based on an instruction set, characterized in that, The device control method based on an instruction set is used for a device control system based on an instruction set. The device control system based on an instruction set includes: a control terminal system, a remote control system, and a target device system. The device control method based on an instruction set includes: The control terminal system sends a device control instruction to the remote control system. Among them, the device control instruction includes: key data, device name, control entity command, and check code; The remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result; When the verification result is qualified, a matching process is performed on the device name to obtain a matching name; The control entity command, the check code, and the matching name are sent to the target device system; The target device system receives the control entity command, the check code, and the matching name, executes the control entity command and the check code according to the address corresponding to the matching name to obtain an execution result, and returns the execution result to the remote control system; The remote control system receives the execution result and forwards the execution result to the control terminal system.

2. The device control method based on an instruction set according to claim 1, wherein Before the target device system receives the control entity command, the check code, and the matching name, executes the control entity command and the check code according to the address corresponding to the matching name to obtain an execution result, and returns the execution result to the remote control system, it further includes: When the matching name does not match the target device system, the remote control system stops matching with the target device system, generates a matching result, and sends the matching result to the control terminal system.

3. The device control method based on an instruction set according to claim 1, wherein The control entity command includes: a C / C++ code entity command. Sending the control entity command, the check code, and the matching name to the target device system includes: The remote control system creates a socket in the C / C++ code entity command and sends the socket to the target device system; The target device system receives the socket, parses the socket to generate a parsing result, obtains parsing data based on the parsing result, and generates a receiving result according to the parsing data.

4. The device control method based on an instruction set according to claim 1, wherein Executing the control entity command and the check code according to the address corresponding to the matching name to obtain an execution result includes: Based on the check code, perform an integrity check on the control entity command to obtain command check data; When the command check data is qualified, send the control entity command to the address corresponding to the matching name and listen for feedback data at the address corresponding to the matching name; Generate an execution result based on the feedback data.

5. The device control method based on an instruction set according to claim 1, wherein After the remote control system receives the execution result and forwards the execution result to the control terminal system, it further includes: The control terminal system receives the execution result and performs a storage process on the execution result according to a preset log database to generate a modified log database; Receive a user query instruction, and based on the user query instruction, perform a query process on the modified log database to generate a query feedback message.

6. The device control method based on an instruction set according to claim 1, characterized in that, Before the remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result, it further includes: The control terminal system sends a first communication detection request to the remote control system; The remote control system receives the first communication detection request and sends a connection request to the remote control system according to the preset TCP / IP protocol.

7. The device control method based on an instruction set according to claim 1, characterized in that Before the remote control system receives the device control instruction and performs a verification process on the key data to obtain a verification result, it further includes: The control terminal system sends a second communication detection request to the remote control system; The remote control system receives the second communication detection request, configures it into AP mode based on the device control instruction, generates a WIFI hotspot request, and sends the WIFI hotspot request to the remote control system.

8. The device control method based on an instruction set according to claim 1, wherein Before performing a matching process on the device name to obtain a matching name when the verification result is qualified, it further includes: The remote control system generates a device name based on a user instruction and stores the device name in a database.

9. A device based on a preset instruction set, characterized in that, The instruction set-based device includes: a memory and at least one processor, instructions are stored in the memory, and the memory and the at least one processor are interconnected by a line; The at least one processor invokes the instructions in the memory so that the instruction set-based device executes the instruction set-based device control method according to any one of claims 1-8.

10. A computer-readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements the instruction set-based device control method according to any one of claims 1-8.