Industrial software protocol automatic adaptation method and device based on swan mongolian system

By analyzing and generating prompt words to generate adapters, dynamic adaptation of industrial software protocols between the client and the server is achieved, and the problem of lack of automated adaptation mechanism in the prior art is solved, reducing system complexity and maintenance costs.

CN119011694APending Publication Date: 2024-11-22ARCHERMIND TECH (NANJING) CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411083460.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The lack of automated protocol dynamic adaptation mechanism in the prior art makes it impossible to achieve dynamic adaptation of different industrial software protocols between clients and servers, resulting in a large amount of customized development in industrial software systems, increasing system complexity and maintenance costs. .

Method used

By parsing the received industrial software protocol message, a prompt word is generated, including the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server, and input it into a large model to generate the adapter of the industrial software protocol, and the adapter serves the component's The format is orchestrated into the business logic and loaded into the service bus to achieve dynamic adaptation to different industrial software protocols.

Benefits of technology

It realizes dynamic adaptation of different industrial software protocols between clients and servers, reduces customized development needs, and reduces system complexity and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011694A_ABST
    Figure CN119011694A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides an industrial software protocol automatic adaptation method and device based on a swan mongolian system.The method is applied to a server and comprises the steps that a received industrial software protocol message is analyzed, and a protocol identifier of an industrial software protocol is obtained; under the condition that a service component corresponding to the protocol identifier does not exist locally in the server, prompt words are generated, and the prompt words comprise the protocol identifier, a programming language type and an identifier of a swan-gap system in the server; inputting the cue word into the large model to obtain an industrial software protocol adapter output by the large model; and arranging the adapters into business logic in the form of a service component, and loading the adapters to a service bus. According to the method and the system, the cue word is generated, the adapter corresponding to the industrial software protocol is generated by adopting the large model according to the cue word, and the corresponding adapter is arranged into the service logic in the form of the service component and is loaded to the service bus, so that the dynamic adaptation of different industrial software protocols between the client and the server is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for automatic adaptation of industrial software protocols based on the Hongmeng system. Background Art

[0002] At present, some existing server Hongmeng systems, especially the open source server Hongmeng system (for example: Hongmeng OpenHarmony), provide an underlying bus mechanism that can support application customization and support mutual calls between applications and between applications and system services. However, in industrial software systems, faced with a wide variety of industrial software protocols (for example: Modbus, OPC-UA, PROFINET, etc.), the built-in protocol adaptation capabilities of the Hongmeng system are seriously insufficient and fail to provide a unified adaptation layer. This results in a large amount of customized development work required for industrial software when performing protocol conversion and communication adaptation, which increases system complexity and maintenance costs. One solution of the prior art is: for different industrial software, the corresponding protocol adaptation modules of different industrial software protocols are implemented in the server in advance, and when the client with industrial software installed communicates with the server, the corresponding protocol adaptation module is selected to establish a communication link.

[0003] The above solution can only select the corresponding protocol adapter module from the pre-implemented protocol adapter modules according to the industrial software protocol. For some industrial software protocols, if the corresponding protocol adapter module is not pre-implemented, communication cannot be carried out. Therefore, in the prior art, there is a lack of an automated protocol dynamic adaptation mechanism, and it is impossible to achieve dynamic adaptation of different industrial software protocols between the client and the server. Summary of the invention

[0004] The present invention provides an automatic adaptation method and device for industrial software protocols based on the Hongmeng system, which is used to solve the problem that the prior art lacks an automated dynamic protocol adaptation mechanism and cannot achieve dynamic adaptation of different industrial software protocols between the client and the server.

[0005] The present invention provides an industrial software protocol automatic adaptation method based on the Hongmeng system, which is applied to a server and includes the following steps.

[0006] Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol.

[0007] When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word is generated, and the prompt word includes the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server.

[0008] The prompt word is input into the big model to obtain the adapter of the industrial software protocol output by the big model.

[0009] The adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus.

[0010] According to an automatic adaptation method for industrial software protocols based on Hongmeng system provided by the present invention, the generating of prompt words includes: generating the prompt words based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter; Alternatively, based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter, a quasi-prompt word is generated, at least one message type in the industrial software protocol input externally is received, and a prompt word is generated based on the message type and the quasi-prompt word.

[0011] According to an automatic adaptation method for industrial software protocols based on the Hongmeng system provided by the present invention, the programming language type is a scripting language.

[0012] According to an automatic adaptation method for industrial software protocols based on the Hongmeng system provided by the present invention, the adapter is orchestrated into the business logic in the form of a service component, including the following steps.

[0013] Convert the adapter into a service component that complies with the component specification of the Hongmeng system in the server, and store the service component in a specified directory; The externally input service orchestration instruction is received, wherein the service orchestration instruction includes a service orchestration result for the service component, and the service component is orchestrated into the business logic based on the service orchestration result.

[0014] According to an automatic adaptation method for industrial software protocols based on the Hongmeng system provided by the present invention, after converting the adapter into a service component that complies with the component specification of the Hongmeng system in the server, it also includes: naming the service component with the protocol identifier.

[0015] According to an industrial software protocol automatic adaptation method based on Hongmeng system provided by the present invention, before receiving the service orchestration instruction input from the outside, it also includes: A service description file for describing the service component attributes is generated for the service component, and the service description file is stored in the designated directory.

[0016] The present invention also provides an industrial software protocol automatic adaptation device based on the Hongmeng system, which is applied to a server and includes the following modules.

[0017] The protocol parsing module is used to parse the received industrial software protocol message and obtain the protocol identifier of the industrial software protocol.

[0018] A prompt word generation module is used to generate a prompt word when the service component corresponding to the protocol identifier does not exist locally on the server. The prompt word includes the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server.

[0019] The adapter output module is used to input the prompt word into the large model to obtain the adapter of the industrial software protocol output by the large model.

[0020] The service component loading module is used to orchestrate the adapter into the business logic in the form of a service component and load it into the service bus.

[0021] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the above-described methods for automatic adaptation of industrial software protocols based on the Hongmeng system.

[0022] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the automatic adaptation method of industrial software protocols based on the Hongmeng system as described in any one of the above.

[0023] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for automatic adaptation of industrial software protocols based on the Hongmeng system.

[0024] The method and device for automatic adaptation of industrial software protocols based on the Hongmeng system provided by the present invention obtains the protocol identifier of the industrial software protocol by parsing the received industrial software protocol message; generates a prompt word when the service component corresponding to the protocol identifier does not exist locally on the server, and the prompt word includes the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server; inputs the prompt word into the big model to obtain the adapter of the industrial software protocol output by the big model; and arranges the adapter into the business logic in the form of a service component, and loads it into the service bus. That is, when the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word including the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server is generated, and the big model is used to generate the corresponding adapter of the industrial software protocol according to the prompt word, and the corresponding adapter is arranged into the business logic in the form of a service component, and loaded into the service bus, thereby realizing dynamic adaptation of different industrial software protocols between the client and the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 It is one of the flow charts of the automatic adaptation method of industrial software protocols based on the Hongmeng system provided by the present invention.

[0027] Figure 2 This is the second flow chart of the automatic adaptation method of industrial software protocols based on the Hongmeng system provided by the present invention.

[0028] Figure 3 It is a structural diagram of the industrial software protocol automatic adaptation device based on the Hongmeng system provided by the present invention.

[0029] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0031] In the existing related technologies, although the server's Hongmeng system (such as OpenHarmony) provides an underlying bus mechanism, which can support application customization with industrial bus devices and support mutual calls between applications and between applications and system services, it lacks an automated protocol dynamic adaptation mechanism and cannot achieve dynamic adaptation of different industrial software protocols between the client and the server. Based on this, the automatic adaptation method for industrial software protocols based on the Hongmeng system in an embodiment of the present invention is applied to a server, such as a server based on an SOA architecture. The method is as follows Figure 1 As shown, the process includes the following steps S110 to S140.

[0032] Step S110: Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol. The protocol identifier may include a protocol name and a corresponding version number.

[0033] Specifically, when the industrial bus device needs to communicate with the server, it sends an industrial software protocol message to the server. The industrial software protocol message can record the protocol name and version number in the following two ways. Method 1: Provide metadata in the form of a key-value along with the message body to indicate which industrial protocol the sent message belongs to, that is, the protocol name and version number; Method 2: In the message header, reserve a certain number of bits of space for the protocol identification name and the corresponding version number. In this step, the protocol name and the corresponding version number can be parsed from the message body or message header according to Method 1 or Method 2.

[0034] Step S120: If the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word is generated, and the prompt word includes the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server (such as the Hongmeng system version number).

[0035] Specifically, if the industrial bus device has communicated with the server using a certain industrial software protocol before, then there is already a service component compatible with the industrial software protocol in the server. After parsing the protocol identifier, query whether there is a service component corresponding to the protocol identifier locally on the server. If so, direct communication is possible. If there is no service component corresponding to the protocol identifier, a prompt word is generated. Since the prompt word is used to generate the adapter corresponding to the Hongmeng system and the industrial software protocol in the large model generation server, the prompt word must at least include the protocol identifier and the Hongmeng system identifier in the server. For example: The prompt word format is "Please generate the protocol parsing code of {XX Industrial Software Protocol} {YY Version}, which is expected to run in the form of an application on the Hongmeng system of {SS Identifier}, and the programming language type of the protocol parsing code is {ZZ}", where {} contains replaceable content, which varies according to the protocol identifier, the Hongmeng system identifier in the server, and the programming language type supported in the Hongmeng system.

[0036] Step S130: Input the prompt word into the big model to obtain the adapter of the industrial software protocol output by the big model. Specifically, the big model generates the corresponding adapter, i.e., the adaptation code, through reasoning based on the protocol name and version number in the prompt word and the Hongmeng system identifier.

[0037] Step S140: The adapter is assembled into the business logic in the form of a service component and loaded into the service bus. Specifically, the adapter is componentized to form a service component under the Hongmeng system of the server, assembled into the business logic, and loaded into the service bus, and then it can be used for communication adaptation with the corresponding industrial software protocol in the industrial bus device.

[0038] In the automatic adaptation method of industrial software protocols based on the Hongmeng system in this embodiment, the industrial software protocol message is parsed to obtain the protocol identifier of the industrial software protocol. When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word including the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server is generated. A large model is used to generate an adapter corresponding to the industrial software protocol according to the prompt word, and the corresponding adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus, thereby realizing dynamic adaptation of different industrial software protocols between the client and the server.

[0039] In some embodiments, step S120 specifically includes: generating the prompt word based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter. Programming language types include: scripting language type and high-level language source code type. Scripting language types such as JavaScript can be executed in a script engine. Adapters of high-level language source code type need to be compiled and linked into executable files of target code (such as C language) or bytecode (such as Java language). In this embodiment, the programming language type of the adapter can be customized by adding the programming language type of the adapter to the prompt word.

[0040] In some embodiments, step S120 specifically includes: generating a quasi-prompt word based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter, receiving at least one message type in the industrial software protocol input externally, and generating a prompt word based on the message type and the quasi-prompt word.

[0041] Specifically, according to the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter, a quasi-prompt word is generated. If the quasi-prompt word is directly input into the large model, the large model will generate an adapter that is compatible with all message types in the industrial software protocol, and the amount of code for generating the adapter is large. Therefore, in this embodiment, according to actual business needs, at least one message type in the industrial software protocol inputted from the outside (i.e., user input) is received, and a prompt word is generated based on the message type and the quasi-prompt word. The message type can be added to the quasi-prompt word to obtain the final prompt word. For example: the final prompt word is "Please generate the protocol parsing code of {XX industrial software protocol}{YY version}{message type 1, message type 2, ...}, which is expected to run in the form of an application on the Hongmeng system of {SS identifier}, and the programming language type of the protocol parsing code is {ZZ}". In this embodiment, by adding the specific message type of the industrial software protocol to the prompt word, the amount of code for generating the adapter from the large model can be reduced, and the efficiency of generating the adapter from the large model can be improved.

[0042] In some embodiments, the programming language type is a scripting language. For example: please generate a protocol parsing code for {XX industrial control protocol} {YY version}, which is expected to run in the form of an application on the Hongmeng system of {SS identifier}, and the programming language type of the protocol parsing code is {Javascript}. For high-level language source code types, such as: Java needs to be compiled into bytecode, which requires a virtual machine to execute, and C language needs to be compiled and linked into machine code. When executed on the Hongmeng system, both compilation and linking may fail, resulting in the inability to dynamically adapt the industrial software protocol. The scripting language type adapter is parsed and executed by the script engine, with a low error rate, and does not require the compilation and linking process, and the dynamic adaptation efficiency is high.

[0043] In some embodiments, Figure 2 As shown, the step S140 specifically includes the following steps.

[0044] Step S210: Convert the adapter into a service component that complies with the component specification of the Harmony system in the server, and store the service component in a specified directory, that is, package the adapter into a service component according to the component specification of the Harmony system and place it in a specified directory so that other services can call it.

[0045] Step S220: receiving the externally input service orchestration instruction, wherein the service orchestration instruction includes a service orchestration result for the service component, and orchestrating the service component into the business logic based on the service orchestration result.

[0046] It should be noted that external input can be remote client input or input on the local display interface of the server. For example, a client user obtains a service component from a specified directory by accessing the server's web page. The user performs business logic orchestration on the service component on the web page. Business logic orchestration refers to orchestrating the calling relationship between the current service component and the previous service component. After the orchestration is completed, a service orchestration instruction including the service orchestration result is sent to the server.

[0047] In some embodiments, after converting the adapter into a service component that complies with the component specification of the Hongmeng system in the server, it also includes: naming the service component with the protocol identifier, so that in step S120, it is possible to more quickly query whether there is a service component corresponding to the protocol identifier locally on the server.

[0048] In some embodiments, before receiving the external input service orchestration instruction, it also includes: generating a service description file for the service component to describe the service component properties, storing the service description file in the designated directory, so that the service orchestration device can also obtain the service description file from the designated directory, and the service description file can be used as a reference for the orchestration of business logic, so that the business logic can be orchestrated faster and more efficiently according to the content in the service description file.

[0049] The content format of the service description file is as follows: <type>Indicates the protocol name corresponding to the adapter. <version>is the protocol version number, <package>Indicates the service component name. <outputpath>Indicates the directory where the output content during the execution of the service component is stored.

[0050] <type> CAN bus adapter< / type> .

[0051] <version> CAN FD< / version> .

[0052] <package>.\canfd.rar< / Package> .

[0053] <outputpath> .\output< / outputpath> .

[0054] <…>…< / …> .

[0055] The following is a description of the automatic adaptation device for industrial software protocols based on the Hongmeng system provided by the present invention. The automatic adaptation device for industrial software protocols based on the Hongmeng system described below and the automatic adaptation method for industrial software protocols based on the Hongmeng system described above can be referenced to each other.

[0056] The industrial software protocol automatic adaptation device based on the Hongmeng system in the embodiment of the present invention is as follows Figure 3 As shown, applied to a server, the device includes the following modules.

[0057] The protocol parsing module 310 is used to parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol.

[0058] The prompt word generation module 320 is used to generate a prompt word when the service component corresponding to the protocol identifier does not exist locally on the server. The prompt word includes the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server.

[0059] The adapter output module 330 is used to input the prompt word into the big model to obtain the adapter of the industrial software protocol output by the big model.

[0060] The service component loading module 340 is used to orchestrate the adapter into the business logic in the form of a service component and load it into the service bus.

[0061] The automatic adaptation device for industrial software protocols based on the Hongmeng system in an embodiment of the present invention parses the industrial software protocol message to obtain the protocol identifier of the industrial software protocol. When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word including the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server is generated. A large model is used to generate an adapter corresponding to the industrial software protocol according to the prompt word, and the corresponding adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus, thereby realizing dynamic adaptation of different industrial software protocols between the client and the server.

[0062] In some embodiments, the prompt word generation module 320 is specifically used to generate the prompt word based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter; Alternatively, based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter, a quasi-prompt word is generated, at least one message type in the industrial software protocol input externally is received, and a prompt word is generated based on the message type and the quasi-prompt word.

[0063] In some embodiments, the programming language type is a scripting language.

[0064] In some embodiments, the service component loading module 340 specifically includes the following modules.

[0065] A service component conversion module, used to convert the adapter into a service component that complies with the component specification of the Hongmeng system in the server, and store the service component in a specified directory; The service component orchestration module is used to receive the externally input service orchestration instruction, wherein the service orchestration instruction includes a service orchestration result for the service component, and orchestrate the service component into the business logic based on the service orchestration result.

[0066] In some embodiments, the industrial software protocol automatic adaptation device based on the Harmony system also includes: a service component naming module, which is used to name the service component with the protocol identifier after converting the adapter into a service component that complies with the component specification of the Harmony system in the server.

[0067] In some embodiments, the industrial software protocol automatic adaptation device based on the Hongmeng system also includes: a service description file generation module, which is used to generate a service description file for describing the properties of the service component for the service component before receiving the external input service orchestration instruction, and store the service description file in the designated directory.

[0068] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the industrial software protocol automatic adaptation method based on the Hongmeng system, which is applied to the server and includes the following steps.

[0069] Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol.

[0070] When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word is generated, and the prompt word includes the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server.

[0071] The prompt word is input into the big model to obtain the adapter of the industrial software protocol output by the big model.

[0072] The adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus.

[0073] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0074] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for automatically adapting industrial software protocols based on the Hongmeng system provided by the above methods. The method is applied to a server and includes the following steps.

[0075] Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol.

[0076] When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word is generated, and the prompt word includes the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server.

[0077] The prompt word is input into the big model to obtain the adapter of the industrial software protocol output by the big model.

[0078] The adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus.

[0079] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for automatically adapting industrial software protocols based on the Hongmeng system provided by the above-mentioned methods. The method is applied to a server and includes the following steps.

[0080] Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol.

[0081] When the service component corresponding to the protocol identifier does not exist locally on the server, a prompt word is generated, and the prompt word includes the protocol identifier, the programming language type of the adapter, and the Hongmeng system identifier in the server.

[0082] The prompt word is input into the big model to obtain the adapter of the industrial software protocol output by the big model.

[0083] The adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus.

[0084] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / package> < / outputpath> < / package> < / version> < / type>

Claims

1. An automatic adaptation method for industrial software protocols based on Hongmeng system, characterized in that: Applicable to servers, including: Parse the received industrial software protocol message to obtain the protocol identifier of the industrial software protocol; If the service component corresponding to the protocol identifier does not exist locally on the server, generate a prompt word, the prompt word including the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server; Input the prompt word into the big model to obtain the adapter of the industrial software protocol output by the big model; The adapter is orchestrated into the business logic in the form of a service component and loaded into the service bus.

2. According to the method for automatic adaptation of industrial software protocols based on Hongmeng system in claim 1, it is characterized in that: The generating prompt words comprises: Generate the prompt word based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter; Alternatively, based on the protocol identifier, the Hongmeng system identifier and the programming language type of the adapter, a quasi-prompt word is generated, at least one message type in the industrial software protocol input externally is received, and a prompt word is generated based on the message type and the quasi-prompt word.

3. The method for automatic adaptation of industrial software protocols based on Hongmeng system according to claim 1 is characterized in that: The programming language type is a scripting language.

4. The automatic adaptation method for industrial software protocols based on Hongmeng system according to any one of claims 1 to 3, characterized in that: Orchestrate the adapter into the business logic as a service component, including: Convert the adapter into a service component that complies with the component specification of the Hongmeng system in the server, and store the service component in a specified directory; The externally input service orchestration instruction is received, wherein the service orchestration instruction includes a service orchestration result for the service component, and the service component is orchestrated into the business logic based on the service orchestration result.

5. According to claim 4, the automatic adaptation method of industrial software protocol based on Hongmeng system is characterized in that: After converting the adapter into a service component that complies with the component specification of the Hongmeng system in the server, it also includes: naming the service component with the protocol identifier.

6. The method for automatic adaptation of industrial software protocols based on Hongmeng system according to claim 4 is characterized in that: Before receiving the service orchestration instruction input from the outside, the method further includes: A service description file for describing the service component attributes is generated for the service component, and the service description file is stored in the designated directory.

7. An industrial software protocol automatic adaptation device based on Hongmeng system, characterized in that: Applicable to servers, including: The protocol parsing module is used to parse the received industrial software protocol message and obtain the protocol identifier of the industrial software protocol; A prompt word generation module, used to generate a prompt word when the service component corresponding to the protocol identifier does not exist locally on the server, the prompt word including the protocol identifier, the programming language type of the adapter and the Hongmeng system identifier in the server; An adapter output module, used for inputting the prompt word into the big model to obtain the adapter of the industrial software protocol output by the big model; The service component loading module is used to orchestrate the adapter into the business logic in the form of a service component and load it into the service bus.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the automatic adaptation method of industrial software protocols based on the Hongmeng system as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the automatic adaptation method of industrial software protocols based on the Hongmeng system as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by the processor, it implements the automatic adaptation method of industrial software protocols based on the Hongmeng system as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Data access method and system adaptive to message bus

    CN119728330A

  • Intermittent operation switching method and system for oil and gas fields based on localization of swan Mongolia system

    CN119933609A

  • Industrial configuration software cross-platform cooperative control method and system based on Gawan

    CN120704206A