A method and system for automatically generating driving instructions for Internet of Things devices

The AI ​​recognition module analyzes the device instructions and generates driver instructions, which solves the complexity and error rate problems of traditional manual driver writing, realizes efficient configuration and quick connection of IoT devices, is suitable for a variety of devices, and improves production efficiency and market competitiveness.

CN117608548BActive Publication Date: 2024-09-17BEIJING PILOT ZHILIAN INTERNET OF THINGS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311416955.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-09-17
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

The traditional method requires manual writing of drivers for IoT devices, which is complex, tedious, and error-prone. It limits the mass production and use of devices, and the drivers for different devices are different, resulting in repeated development work.

Method used

Analyze the device instruction manual through the AI ​​recognition module to generate driver instructions, including fixed and dynamic command codes. Use the editor to set dynamic command code rules by the user, generate command codes through rule expressions, and verify the command and command code through the driver program. Corresponding relationship, automatically adjust the command code.

Benefits of technology

It improves the efficiency of device configuration and drive instructions, reduces error rates, realizes quick connection and drive operations of devices, is suitable for a variety of IoT devices, reduces manual operation time costs, and improves market competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117608548B
    Figure CN117608548B
Patent Text Reader

Abstract

The present invention belongs to the field of automation control technology, and specifically relates to a method for automatically generating driving instructions for an Internet of Things device, comprising the following steps: a user uploads the user manual of the device, analyzes the user manual through an AI recognition module, and obtains key information about the device instructions in the user manual; fills the obtained key information into the fields required by the driver template one by one to generate a command code; calls the command through the driver to verify the correspondence between the command and the command code, and if the executed command corresponds to the command code, stores the command code; if the executed command is inconsistent with the command code, prompts manual adjustment of the command code. The method overcomes the shortcomings of the prior art, can greatly improve the efficiency of device configuration and driving instructions, reduce the error rate of manual operation, and conveniently and quickly realize the production and application of large-scale equipment, and has broad application prospects and economic benefits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of automatic control, and in particular relates to a method and system for automatically generating drive instructions for an Internet of Things device. Background Art

[0002] With the widespread application of IoT devices, people's demand for device configuration and driving instructions is also increasing.

[0003] The traditional method of accessing IoT devices is to manually write the corresponding driver program, which requires finding the control instructions from the device technical manual that is dozens of pages long and then writing a special program to convert and implement it based on a small part of it.

[0004] This process is not only complicated and cumbersome, but also prone to errors. Manually writing drivers takes a lot of time and manpower, which limits the mass production and use of IoT devices. In addition, due to differences in technical manuals and equipment manufacturers, the drivers that need to be written are also different. When a large number of devices need to be operated and controlled through the Internet of Things, they face a lot of repetitive development work. Summary of the invention

[0005] The purpose of the present invention is to provide a method for automatically generating driving instructions for Internet of Things devices, which overcomes the shortcomings of the prior art, can greatly improve the efficiency of device configuration and driving instructions, reduce the error rate of manual operation, and conveniently and quickly realize the production and application of large-scale equipment, and has broad application prospects and economic benefits.

[0006] To solve the above problems, the technical solutions adopted by the present invention are as follows:

[0007] A method for automatically generating driving instructions for an Internet of Things device comprises the following steps:

[0008] Step 1: The user uploads the instruction manual of the device, and the AI ​​recognition module analyzes the instruction manual to obtain key information about the device instructions in the instruction manual;

[0009] Step 2: Fill the acquired key information into the fields required by the driver template one by one to generate a command code;

[0010] Step 3: Call the command through the driver program to verify the correspondence between the command and the command code. If the executed command corresponds to the command code, the command code is stored. If the executed command is inconsistent with the command code, a manual adjustment of the command code is prompted.

[0011] Furthermore, the key information in step 1 includes a list of supported protocols, a supported command set, a corresponding fixed command code set, or a corresponding instruction generation rule summary.

[0012] Furthermore, the command code in step 2 includes a fixed command code and a dynamic command code. If all command codes of the device are fixed command codes, a command set of the device is directly generated. If there is a dynamic command code in the command code of the device, a command code editor is generated.

[0013] Furthermore, in step 3, the command code editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination of regular expressions.

[0014] Furthermore, the dynamic command code is expressed by a set of rules, the rule set is executed sequentially, each rule is composed of a free combination of variables, constants, operators, and built-in escape functions, and the execution result of each rule becomes a new variable.

[0015] Furthermore, the method for generating the dynamic command code comprises the following steps:

[0016] Step 1: Traverse all current variables;

[0017] Step 2: Determine whether the result code is correct. If the result code is correct, the process ends. If the result code is incorrect, the process proceeds to step 3.

[0018] Step 3: Add new rule variables, insert variables / constants / operators, insert calculation functions, fill in constant / variable parameters, calculate results in real time, and then return to step 2.

[0019] The present invention also protects an automatic generation system of driving instructions for IoT devices, including a data uploading module, an AI recognition module, a command code splicing module, an editor, a command code verification module and a storage module;

[0020] The data upload module is used to obtain the device manual uploaded by the user;

[0021] The AI ​​recognition module is connected to the data upload module and is used to analyze the instruction manual and obtain key information about the device instructions in the instruction manual;

[0022] The command code splicing module is connected to the AI ​​recognition module and is used to fill the acquired key information into the fields required by the driver program template one by one to generate a command code;

[0023] The editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination of regular expressions;

[0024] The command code verification module is used to call the command through the driver program, verify the corresponding relationship between the command and the command code, if the executed command corresponds to the command code, then store the command code, if the executed command is inconsistent with the command code, then prompt the manual to adjust the command code;

[0025] The storage module is used to store the executed command and the command code corresponding to the command code.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] 1. The present invention is an automatic splicing system for IoT device drive instructions based on artificial intelligence technology, which can automatically parse and summarize the control instructions and command formats in the device manual, automatically generate corresponding drive instructions, improve the efficiency of device configuration and drive instructions, and reduce the error rate. The system can be applied to a series of IoT devices including but not limited to sensors, smart homes, smart devices, etc.

[0028] 2. The present invention uses artificial intelligence technology to realize the function of automatic splicing of IoT device driving instructions, which solves the problems of cumbersome operation, high time cost and high error rate of traditional methods, improves efficiency, has wide applicability, is compatible with the instructions and formats of different devices, and realizes fast connection and driving operation of devices, which is innovative and practical.

[0029] 3. The present invention realizes the unified and standardized processing of the extraction, calculation and escape process of heterogeneous device driver data formats through a simple rule engine, thereby avoiding tedious programming and achieving broad adaptability to a large number of non-standard devices and simple communication protocols.

[0030] 4. The present invention solves the problem of IoT device configuration and driving instructions, can fundamentally improve the efficiency and security of the IoT ecosystem, and creates more favorable conditions for the stable development of the IoT ecosystem.

[0031] 5. The system of automatic splicing through AI-driven instructions in the present invention can also be used as production optimization at the enterprise level, which will greatly reduce the time cost of manual operation, improve work efficiency and accuracy, and thus improve the overall profit level and market competitiveness of the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 The present invention is a flowchart of a method for automatically generating driver instructions for an IoT device.

[0033] Figure 2 The present invention discloses a process of generating dynamic command codes in a method for automatically generating driver instructions for an IoT device. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention. Example

[0035] like Figure 1 As shown, this embodiment discloses a method for automatically generating driving instructions for an IoT device, comprising the following steps:

[0036] Step 1: The user uploads the instruction manual of the device, and the AI ​​recognition module analyzes the instruction manual to obtain key information about the device instructions in the instruction manual;

[0037] The key information includes a list of supported protocols, a supported command set, a corresponding fixed command code set, or a corresponding instruction generation rule summary.

[0038] Step 2: Fill the acquired key information into the fields required by the driver template one by one to generate a command code;

[0039] The command code includes fixed command codes and dynamic command codes. If all the command codes of the device are fixed command codes, the command set of the device is directly generated. If there are dynamic command codes in the command codes of the device, a command code editor is generated. The command code editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination of rule expressions.

[0040] The dynamic command code is expressed by a set of rules. The rule set is executed sequentially. Each rule is composed of a free combination of variables, constants, operators, and built-in escape functions. The execution result of each rule becomes a new variable.

[0041] like Figure 2 As shown, the method for generating a dynamic command code includes the following steps:

[0042] Step 1: Traverse all current variables;

[0043] Step 2: Determine whether the result code is correct. If the result code is correct, the process ends. If the result code is incorrect, the process proceeds to step 3.

[0044] Step 3: Add new rule variables, insert variables / constants / operators, insert calculation functions, fill in constant / variable parameters, calculate results in real time, and then return to step 2.

[0045] Step 3: Call the command through the driver program to verify the correspondence between the command and the command code. If the executed command corresponds to the command code, the command code is stored. If the executed command is inconsistent with the command code, a manual adjustment of the command code is prompted.

[0046] In summary, the present invention provides a method for automatically generating driver instructions for Internet of Things devices, which can automatically parse the control instructions in the device manual and automatically generate corresponding driver instructions, saving cumbersome operating steps and the time for writing driver programs, making the configuration and operation of the device faster and more efficient. At the same time, it can also be compatible with the manuals and formats of different devices, thereby improving the versatility and extensibility of the system. Example

[0047] This embodiment discloses an automatic generation system of IoT device driver instructions, including a data upload module, an AI recognition module, a command code splicing module, an editor, a command code verification module, and a storage module;

[0048] The data upload module is used to obtain the device manual uploaded by the user;

[0049] The AI ​​recognition module is connected to the data upload module and is used to analyze the instruction manual and obtain key information about the device instructions in the instruction manual;

[0050] The command code splicing module is connected to the AI ​​recognition module and is used to fill the acquired key information into the fields required by the driver template one by one to generate the command code;

[0051] The editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination and execution of the rule expression;

[0052] The command code verification module is used to call the command through the driver program, verify the correspondence between the command and the command code, and if the executed command corresponds to the command code, store the command code; if the executed command is inconsistent with the command code, prompt the user to adjust the command code manually;

[0053] The storage module is used to store the executed command and the command code corresponding to the command code.

[0054] In this embodiment, the data upload module transmits the device manual uploaded by the user to the AI ​​recognition module. The AI ​​recognition module analyzes the device manual, extracts key information, and then fills the key information into the fields required by the driver template one by one through the command code splicing module to generate a command code. Finally, the command is called through the command code verification module to verify the correspondence between the command and the command code, and the command code with the correct correspondence is determined and stored in the storage module.

[0055] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A method for automatically generating driving instructions for an Internet of Things device, characterized in that: The following steps are involved: Step 1: The user uploads the instruction manual of the device, and the AI ​​recognition module analyzes the instruction manual to obtain key information about the device instructions in the instruction manual; Step 2: Fill the acquired key information into the fields required by the driver template one by one to generate a command code; The command code in step 2 includes a fixed command code and a dynamic command code. If all command codes of the device are fixed command codes, a command set of the device is directly generated. If there is a dynamic command code in the command code of the device, a command code editor is generated. Step 3: Call the command through the driver program to verify the correspondence between the command and the command code. If the executed command corresponds to the command code, the command code is stored. If the executed command is inconsistent with the command code, the command code is manually adjusted. In step 3, the command code editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination of regular expressions.

2. The method for automatically generating driving instructions for an Internet of Things device according to claim 1, characterized in that: The key information in step 1 includes a list of supported protocols, a supported command set, a corresponding fixed command code set, or a corresponding instruction generation rule summary.

3. The method for automatically generating driving instructions for an Internet of Things device according to claim 1, characterized in that: The dynamic command code is expressed by a set of rules, and the rule set is executed sequentially. Each rule is composed of a free combination of variables, constants, operators, and built-in escape functions. The execution result of each rule becomes a new variable.

4. The method for automatically generating driving instructions for an Internet of Things device according to claim 3, characterized in that: The method for generating the dynamic command code comprises the following steps: Step 1: Traverse all current variables; Step 2: Determine whether the result code is correct. If the result code is correct, the process ends. If the result code is incorrect, the process proceeds to step 3. Step 3: Add new rule variables, insert variables / constants / operators, insert calculation functions, fill in constant / variable parameters, calculate results in real time, and then return to step 2.

5. A system for automatically generating driving instructions for IoT devices, characterized in that: Including data upload module, AI recognition module, command code splicing module, editor, command code verification module and storage module; The data upload module is used to obtain the device manual uploaded by the user; The AI ​​recognition module is connected to the data upload module and is used to analyze the instruction manual and obtain key information about the device instructions in the instruction manual; The command code splicing module is connected to the AI ​​recognition module, and is used to fill the acquired key information into the fields required by the driver template one by one to generate command codes, wherein the command codes include fixed command codes and dynamic command codes. If all command codes of the device are fixed command codes, a command set of the device is directly generated; if there is a dynamic command code in the command code of the device, a command code editor is generated; The editor allows the user to set the rule combination of the dynamic command code through the display interface, and completes the generation of the dynamic command code through the combination of regular expressions; The command code verification module is used to call the command through the driver program, verify the corresponding relationship between the command and the command code, if the executed command corresponds to the command code, then store the command code, if the executed command is inconsistent with the command code, then prompt the manual to adjust the command code; The storage module is used to store the executed command and the command code corresponding to the command code.