CN-122027711-A - Internet of things protocol component development method and related equipment
Abstract
The application discloses a method for developing an Internet of things protocol assembly and related equipment, which are characterized in that a protocol model is converted from a protocol document input by a user through a trained large language model to obtain a protocol model, the protocol model is loaded and operated according to a preset protocol assembly execution engine to generate first protocol information, simulation is carried out according to the obtained protocol model and preset simulation parameters, the function of the preset protocol assembly execution engine is verified through interaction between simulation real equipment and the protocol model, an equipment access protocol is generated according to the converted protocol model through the preset protocol assembly execution engine, the input document is subjected to model conversion through the large language model to realize unified standardized description, compatibility of different protocols is improved, meanwhile, an access protocol is generated according to the converted model to realize zero code development, and the embodiment of the application can improve project development efficiency. The method and the device can be widely applied to the technical field of the Internet of things.
Inventors
- YANG HAO
- ZHANG HUA
- ZHANG FENG
- ZHU SHIYI
Assignees
- 天翼物联科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260123
Claims (10)
- 1. The method for developing the protocol component of the internet of things is characterized by comprising the following steps: acquiring a user input protocol document, and performing protocol model conversion on the user input protocol document according to a trained large language model to obtain a protocol model; Loading the protocol model according to a preset protocol assembly execution engine to obtain first protocol information; and generating the component according to the first protocol information to obtain the Internet of things equipment access component.
- 2. The method according to claim 1, wherein the performing a protocol model conversion on the user input protocol document according to the trained large language model to obtain a protocol model specifically comprises: the user input protocol document is subjected to data extraction to determine metadata information, and the matching result is determined according to the metadata information and a preset prompt word; if the matching result is that the matching fails, returning the user input protocol document; And if the matching result is that the matching is successful, processing the user input protocol document and the metadata according to the trained large language model, generating a message model list, and determining the protocol model according to the message model list.
- 3. The method according to claim 2, wherein said generating said protocol model for said metadata information from said trained large language model, in particular comprises: analyzing the metadata, determining protocol parameters, analyzing the user input protocol document, and determining the relationship between the current message information and the current field; And carrying out protocol modeling on the current message information according to a preset general modeling specification, the trained large language model and the protocol parameters to obtain the message model list, and generating the protocol model according to the message model list.
- 4. The method according to claim 2, wherein the method further comprises: Extracting data from the user input protocol document to determine a plurality of message information; And extracting and analyzing the message information according to the large language model, determining the field relations, and updating the large language model according to the message information and the field relations.
- 5. The method according to claim 1, wherein the method further comprises: analyzing a preset protocol general modeling specification, determining layering information, and generating a protocol assembly execution engine according to the layering information; Constructing a large language model, and training the large language model according to a preset training data set to obtain a trained large language model, wherein the preset training data set comprises protocol document-protocol model data.
- 6. The method according to claim 1, wherein the method further comprises: Solidifying the protocol model to obtain a solidified model, storing the solidified model, and integrating the target protocol information.
- 7. An internet of things protocol component development system, the system comprising: the conversion module is used for acquiring a user input protocol document, and carrying out protocol model conversion on the user input protocol document according to the trained large language model to obtain a protocol model; The test module is used for loading the protocol model according to a preset protocol assembly execution engine to obtain first protocol information; And the generating module is used for generating the assembly according to the first protocol information to obtain the equipment access assembly of the Internet of things.
- 8. An electronic device, comprising: At least one processor; at least one memory for storing at least one program; the at least one program, when executed by the at least one processor, causes the at least one processor to implement the method of any one of claims 1 to 6.
- 9. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method of any one of claims 1 to 6.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of any one of claims 1 to 6.
Description
Internet of things protocol component development method and related equipment Technical Field The application relates to the technical field of the Internet of things, in particular to a method for developing an Internet of things protocol component and related equipment. Background The internet of things equipment is connected into the internet of things platform through developing corresponding protocols, interaction and communication among different internet of things are realized through the developed protocols, in the prior art, the protocols adopted by the internet of things equipment are various, the data formats or types output by the different internet of things equipment have isomerism, the internet of things platform needs to develop corresponding communication analysis by combining the diversified protocols and isomerism data of the internet of things equipment, and the protocol development efficiency is low. Disclosure of Invention The embodiment of the application mainly aims to provide a method and related equipment for developing an Internet of things protocol component, which can improve the protocol development efficiency. In order to achieve the above object, an aspect of an embodiment of the present application provides a method for developing an internet of things protocol component, where the method includes: acquiring a user input protocol document, and performing protocol model conversion on the user input protocol document according to a trained large language model to obtain a protocol model; Loading the protocol model according to a preset protocol assembly execution engine to obtain first protocol information; and generating the component according to the first protocol information to obtain the Internet of things equipment access component. In some embodiments, the performing a protocol model conversion on the user input protocol document according to the trained large language model to obtain a protocol model specifically includes: the user input protocol document is subjected to data extraction to determine metadata information, and the matching result is determined according to the metadata information and a preset prompt word; if the matching result is that the matching fails, returning the user input protocol document; And if the matching result is that the matching is successful, processing the user input protocol document and the metadata according to the trained large language model, generating a message model list, and determining the protocol model according to the message model list. In some embodiments, the generating the protocol model for the metadata information according to the trained large language model specifically includes: analyzing the metadata, determining protocol parameters, analyzing the user input protocol document, and determining the relationship between the current message information and the current field; And carrying out protocol modeling on the current message information according to a preset general modeling specification, the trained large language model and the protocol parameters to obtain the message model list, and generating the protocol model according to the message model list. In some embodiments, the method further comprises: Extracting data from the user input protocol document to determine a plurality of message information; And extracting and analyzing the message information according to the large language model, determining the field relations, and updating the large language model according to the message information and the field relations. In some embodiments, the method further comprises: analyzing a preset protocol general modeling specification, determining layering information, and generating a protocol assembly execution engine according to the layering information; Constructing a large language model, and training the large language model according to a preset training data set to obtain a trained large language model, wherein the preset training data set comprises protocol document-protocol model data. In some embodiments, the method further comprises: Solidifying the protocol model to obtain a solidified model, storing the solidified model, and integrating the target protocol information. To achieve the above object, another aspect of the embodiments of the present application provides an internet of things protocol component development system, including: the conversion module is used for acquiring a user input protocol document, and carrying out protocol model conversion on the user input protocol document according to the trained large language model to obtain a protocol model; The test module is used for loading the protocol model according to a preset protocol assembly execution engine to obtain first protocol information; And the generating module is used for generating the assembly according to the first protocol information to obtain the equipment access assembly of the Internet of things. To achieve the abo