Adaptation method and system for multifunctional interface

By obtaining and analyzing the characteristic information of the communication interface, the adapter is built to achieve multi-function adaptation, which solves the problem of automatic adaptation of communication interfaces in the prior art, reduces the connection complexity and improves the adaptation convenience.

CN119172336AInactive Publication Date: 2024-12-20HUANENG INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410989664.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot realize automatic adaptation of communication interfaces, resulting in high complexity in communication interface connections and affecting the normal use of communication equipment.

Method used

By obtaining the characteristic information of the communication interface, parsing and converting it into format information, determining whether there is an interface resolution configuration, building an adapter if there is, and if there is no, building an adapter based on the format information, combining interface pins to achieve multi-function adaptation.

Benefits of technology

Automatic adaptation of communication interfaces is realized, reducing connection complexity and improving adaptation convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172336A_ABST
    Figure CN119172336A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication interfaces, and discloses an adaptation method and system for a multifunctional interface, and the method comprises the steps: obtaining the feature information of a communication interface, and transmitting the feature information to a processor, the feature information comprising one or more of an interface type, an interface address, an interface parameter, a header parameter and an interface protocol; analyzing the feature information based on the processor, determining an interface type, and converting the feature information into corresponding format information according to the interface type; judging whether interface analysis configuration exists or not based on the format information, if yes, obtaining the corresponding interface analysis configuration, and constructing an adapter according to the interface analysis configuration; if not, constructing an adapter according to the format information; the pins of the communication interface are combined based on the adapter, multifunctional adaptation of the communication interface is completed, automatic adaptation of the communication interface can be achieved, connection complexity of the communication interface is reduced, and adaptation convenience of the communication interface is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication interfaces, and in particular to an adaptation method and system for a multi-functional interface. Background Art

[0002] With the advent of the Internet of Things era, the Internet has become an indispensable part of people's lives. When using the Internet, people often use communication equipment. Communication equipment can provide multiple network interfaces and wireless communication, which is very convenient. At present, there are many types of communication equipment interface wiring on the market, such as http interface, https interface, MQTT transmission, websocket interface and webservice interface, etc. You need to use the correct connection line to connect these interfaces. Wrong connection will lead to abnormal communication.

[0003] The current network interface communication principles are different. There are various interface call test tools on the market. When the system is connected to an external interface, developers are usually required to customize the development to call the external interface. The external interface cannot be automatically adapted, which increases the complexity of the system calling the external interface and is extremely inconvenient to use. For many ordinary users, they have no concept of interfaces at all. In the process of connecting the interface, it is very likely to cause trouble to the user and affect the normal use of the communication equipment.

[0004] Therefore, how to provide an adaptation method and system for a multi-functional interface is a technical problem that needs to be solved. Summary of the invention

[0005] The embodiment of the present invention provides an adaptation method and system for a multi-functional interface, so as to solve the technical problem that the automatic adaptation of the communication interface cannot be realized and the connection complexity of the communication interface cannot be reduced in the prior art.

[0006] In order to achieve the above object, the present invention provides an adaptation method for a multi-functional interface, the method comprising: Acquire characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; Parsing the characteristic information based on the processor to determine the interface type, and converting the characteristic information into corresponding format information according to the interface type; Based on the format information, determine whether there is an interface parsing configuration, If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; The pins of the communication interface are combined based on the adapter to complete the multifunctional adaptation of the communication interface.

[0007] In one embodiment, when the feature information is parsed based on the processor, it includes: The characteristic information is stored in a buffer pool, and the characteristic information is retrieved from the buffer pool according to a predetermined sampling period; Parsing a frame header of the characteristic information, and obtaining a data type identifier of the characteristic information from the frame header; Selecting a parsing rule for the feature information according to the data type identifier; The feature information is parsed based on the data parsing rule.

[0008] In one embodiment, when building an adapter according to the interface parsing configuration, it includes: Acquire historical interface parsing data of the interface parsing configuration, and perform data analysis on the historical interface parsing data to determine the security data carrying capacity of the interface parsing configuration within a preset time; Setting the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The adapter is constructed based on the set low frequency and the number of low frequency interfaces.

[0009] In one embodiment, when the low frequency and the number of low frequency interfaces of the adapter are set according to the safety data carrying capacity of the interface parsing configuration, it includes: Presetting a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; Setting the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the security data carrying capacity of the interface parsing configuration, the first preset security data carrying capacity and the second preset security data carrying capacity; When the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity, the low frequency of the adapter is set to ΔH1, and the number of low frequency interfaces of the adapter is set to ΔP1; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the first preset security data carrying capacity, and the security data carrying capacity of the interface parsing configuration is less than the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH2, and the number of low frequency interfaces of the adapter is set to ΔP2; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH3, and the number of low frequency interfaces of the adapter is set to ΔP3.

[0010] In one embodiment, when building an adapter according to the format information, it includes: Parsing the format information to determine the adaptation instance, adaptation rule and adaptation table; Reading and initializing the adaptation instance, the adaptation rule and the adaptation table, and sending the initialized data to the processor; Reading an API of the communication interface, a number of physical channels of the communication interface, a specific channel of the communication interface, and a baud rate of the specific channel of the communication interface based on the processor; Generate an adapter program using the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface; The adapter is constructed according to the adapter program.

[0011] In order to achieve the above object, the present invention provides an adaptation system for a multi-functional interface, the system comprising: A sending module, used to obtain characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; A conversion module, configured to parse the characteristic information based on the processor, determine the interface type, and convert the characteristic information into corresponding format information according to the interface type; A construction module is used to determine whether there is an interface parsing configuration based on the format information, If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; The adapter module is used to combine the pins of the communication interface based on the adapter to complete the multifunctional adaptation of the communication interface.

[0012] In one embodiment, the conversion module is specifically used for: The conversion module is used to store the feature information in a buffer pool and retrieve the feature information from the buffer pool according to a predetermined sampling period; The conversion module is used to parse the frame header of the feature information, and parse the data type identifier of the feature information from the frame header; The conversion module is used to select a parsing rule for the feature information according to the data type identifier; The conversion module is used to parse the feature information based on the data parsing rule.

[0013] In one embodiment, the building block is specifically used for: The construction module is used to obtain historical interface resolution data of the interface resolution configuration, and perform data analysis on the historical interface resolution data to determine the security data carrying capacity of the interface resolution configuration within a preset time; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The construction module is used to construct the adapter based on the set low frequency and the number of low frequency interfaces.

[0014] In one embodiment, the building block is specifically used for: The construction module is used to pre-set a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the safety data carrying capacity of the interface parsing configuration, the first preset safety data carrying capacity and the second preset safety data carrying capacity; The construction module is used for setting the low frequency of the adapter to ΔH1 and the number of low frequency interfaces of the adapter to ΔP1 when the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity; The construction module is used to set the low frequency of the adapter to ΔH2 and the number of low frequency interfaces of the adapter to ΔP2 when the security data load of the interface parsing configuration is greater than or equal to the first preset security data load and the security data load of the interface parsing configuration is less than the second preset security data load; The construction module is used to set the low-frequency frequency of the adapter to ΔH3 and the number of low-frequency interfaces of the adapter to ΔP3 when the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity.

[0015] In one embodiment, the building block is specifically used for: The construction module is used to parse the format information to determine the adaptation instance, adaptation rule and adaptation table; The building module is used to read and initialize the adaptation instance, the adaptation rule and the adaptation table, and send the initialized data to the processor; The building module is used to read the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface based on the processor; The construction module is used to generate an adapter program from the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface and the baud rate of the specific channel of the communication interface; The construction module is used to construct the adapter according to the adapter program.

[0016] The present invention provides an adaptation method and system for a multi-functional interface, which has the following beneficial effects compared with the prior art: The present invention discloses an adaptation method and system for a multi-functional interface, which obtains characteristic information of a communication interface and sends it to a processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter and an interface protocol; the characteristic information is parsed based on the processor to determine the interface type, and the characteristic information is converted into corresponding format information according to the interface type; based on the format information, it is determined whether there is an interface parsing configuration, and if so, the corresponding interface parsing configuration is obtained, and an adapter is constructed according to the interface parsing configuration; if not, an adapter is constructed according to the format information; based on the adapter, the pins of the communication interface are combined to complete the multi-functional adaptation of the communication interface. The present invention can realize automatic adaptation of the communication interface, reduce the complexity of communication interface connection, and improve the convenience of communication interface adaptation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram showing a flow chart of an adaptation method for a multi-function interface in an embodiment of the present invention is shown; Figure 2 A schematic structural diagram of an adaptation system for a multi-functional interface in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0018] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0019] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0020] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0021] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0022] The following is a description of preferred embodiments of the present invention with reference to the accompanying drawings.

[0023] like Figure 1 As shown, an embodiment of the present invention discloses an adaptation method for a multi-function interface, the method comprising: S110: Acquire characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; In this embodiment, the communication interface can be an http interface, an https interface, an MQTT transmission, a websocket interface, a webservice interface, etc., which are not shown one by one here.

[0024] S120: parsing the characteristic information based on the processor to determine an interface type, and converting the characteristic information into corresponding format information according to the interface type; In some embodiments of the present application, when the feature information is parsed based on the processor, it includes: The characteristic information is stored in a buffer pool, and the characteristic information is retrieved from the buffer pool according to a predetermined sampling period; Parsing a frame header of the characteristic information, and obtaining a data type identifier of the characteristic information from the frame header; Selecting a parsing rule for the feature information according to the data type identifier; The feature information is parsed based on the data parsing rule.

[0025] In this embodiment, by storing the feature information in a buffer pool, sequential processing of the feature information can be ensured, thereby improving processing efficiency.

[0026] In this embodiment, the sampling period can be set according to actual conditions.

[0027] In this embodiment, the data type identifier and the corresponding parsing rule are set in advance, and the data type identifier and the corresponding parsing rule correspond one to one.

[0028] The beneficial effect of the above technical solution is that the present invention can lay a foundation for the subsequent adaptation of the communication interface by parsing the characteristic information, determining the interface type, and obtaining the corresponding format information.

[0029] S130: Determine whether there is an interface parsing configuration based on the format information. If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; In some embodiments of the present application, when building an adapter according to the interface parsing configuration, it includes: Acquire historical interface parsing data of the interface parsing configuration, and perform data analysis on the historical interface parsing data to determine the security data carrying capacity of the interface parsing configuration within a preset time; Setting the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The adapter is constructed based on the set low frequency and the number of low frequency interfaces.

[0030] Specifically, when the low frequency and the number of low frequency interfaces of the adapter are set according to the safety data carrying capacity of the interface parsing configuration, it includes: Presetting a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; Setting the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the security data carrying capacity of the interface parsing configuration, the first preset security data carrying capacity and the second preset security data carrying capacity; When the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity, the low frequency of the adapter is set to ΔH1, and the number of low frequency interfaces of the adapter is set to ΔP1; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the first preset security data carrying capacity, and the security data carrying capacity of the interface parsing configuration is less than the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH2, and the number of low frequency interfaces of the adapter is set to ΔP2; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH3, and the number of low frequency interfaces of the adapter is set to ΔP3.

[0031] In this embodiment, the first preset security data carrying capacity and the second preset security data carrying capacity can be set according to actual adaptation requirements, and are not specifically limited here, as long as the first preset security data carrying capacity is smaller than the second preset security data carrying capacity.

[0032] In this embodiment, specific values ​​of ΔH1, ΔH2, ΔH3, ΔP1, ΔP2, and ΔP3 are set according to actual conditions and are not specifically limited here.

[0033] The beneficial effect of the above technical solution is: the present invention sets the low-frequency frequency and the number of low-frequency interfaces of the adapter according to the security data carrying capacity of the interface analysis configuration, and constructs the adapter based on the set low-frequency frequency and the number of low-frequency interfaces, thereby achieving accurate construction of the adapter, ensuring the adaptability of the communication interface, improving adaptation accuracy, and avoiding major adaptation errors.

[0034] In some embodiments of the present application, when building an adapter according to the format information, it includes: Parsing the format information to determine the adaptation instance, adaptation rule and adaptation table; Reading and initializing the adaptation instance, the adaptation rule and the adaptation table, and sending the initialized data to the processor; Reading an API of the communication interface, a number of physical channels of the communication interface, a specific channel of the communication interface, and a baud rate of the specific channel of the communication interface based on the processor; Generate an adapter program using the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface; The adapter is constructed according to the adapter program.

[0035] The beneficial effect of the above technical solution is: the present invention generates an adapter program by combining the API of the communication interface, the number of physical channels of the communication interface, the specific channels of the communication interface and the baud rate of the specific channels of the communication interface, and constructs an adapter according to the adapter program. Thus, the adapter can be constructed without knowing any details of the communication interface. The adapter can support communication interfaces of all manufacturers on the market, greatly improving the adaptation efficiency of the communication interface.

[0036] S140: combining the pins of the communication interface based on the adapter to complete the multi-functional adaptation of the communication interface.

[0037] In order to further explain the technical idea of ​​the present invention, the technical solution of the present invention is now described in combination with specific application scenarios.

[0038] Correspondingly, such as Figure 2 As shown, the present application also provides an adaptation system for a multi-functional interface, the system comprising: A sending module, used to obtain characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; A conversion module, configured to parse the characteristic information based on the processor, determine the interface type, and convert the characteristic information into corresponding format information according to the interface type; A construction module is used to determine whether there is an interface parsing configuration based on the format information, If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; The adapter module is used to combine the pins of the communication interface based on the adapter to complete the multifunctional adaptation of the communication interface.

[0039] In some embodiments of the present application, the conversion module is specifically used to: The conversion module is used to store the feature information in a buffer pool and retrieve the feature information from the buffer pool according to a predetermined sampling period; The conversion module is used to parse the frame header of the feature information, and parse the data type identifier of the feature information from the frame header; The conversion module is used to select a parsing rule for the feature information according to the data type identifier; The conversion module is used to parse the feature information based on the data parsing rule.

[0040] In some embodiments of the present application, the building blocks are specifically used for: The construction module is used to obtain historical interface resolution data of the interface resolution configuration, and perform data analysis on the historical interface resolution data to determine the security data carrying capacity of the interface resolution configuration within a preset time; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The construction module is used to construct the adapter based on the set low frequency and the number of low frequency interfaces.

[0041] In some embodiments of the present application, the building blocks are specifically used for: The construction module is used to pre-set a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the safety data carrying capacity of the interface parsing configuration, the first preset safety data carrying capacity and the second preset safety data carrying capacity; The construction module is used for setting the low frequency of the adapter to ΔH1 and the number of low frequency interfaces of the adapter to ΔP1 when the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity; The construction module is used to set the low-frequency frequency of the adapter to ΔH2 and the number of low-frequency interfaces of the adapter to ΔP2 when the safety data load of the interface parsing configuration is greater than or equal to the first preset safety data load and the safety data load of the interface parsing configuration is less than the second preset safety data load; The construction module is used to set the low-frequency frequency of the adapter to ΔH3 and the number of low-frequency interfaces of the adapter to ΔP3 when the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity.

[0042] In some embodiments of the present application, the building blocks are specifically used for: The construction module is used to parse the format information to determine the adaptation instance, adaptation rule and adaptation table; The building module is used to read and initialize the adaptation instance, the adaptation rule and the adaptation table, and send the initialized data to the processor; The building module is used to read the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface based on the processor; The construction module is used to generate an adapter program from the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface and the baud rate of the specific channel of the communication interface; The construction module is used to construct the adapter according to the adapter program.

[0043] In summary, the embodiments of the present invention obtain characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of the interface type, interface address, interface parameters, header parameters and interface protocol; the processor parses the characteristic information to determine the interface type, and converts the characteristic information into corresponding format information according to the interface type; based on the format information, it is determined whether there is an interface parsing configuration, and if so, the corresponding interface parsing configuration is obtained, and an adapter is constructed according to the interface parsing configuration; if not, an adapter is constructed according to the format information; based on the adapter, the pins of the communication interface are combined to complete the multi-functional adaptation of the communication interface. The present invention can realize automatic adaptation of the communication interface, reduce the complexity of communication interface connection, and improve the convenience of communication interface adaptation.

[0044] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0045] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed by the present invention may be used in combination with each other in any manner, and the fact that these combinations are not fully described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

[0046] Those skilled in the art can understand that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for adapting a multifunctional interface, characterized in that: The method comprises: Acquire characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; Parsing the characteristic information based on the processor to determine the interface type, and converting the characteristic information into corresponding format information according to the interface type; Based on the format information, determine whether there is an interface parsing configuration, If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; The pins of the communication interface are combined based on the adapter to complete the multifunctional adaptation of the communication interface.

2. The adaptation method for a multi-functional interface according to claim 1, characterized in that: When the characteristic information is parsed based on the processor, it includes: The characteristic information is stored in a buffer pool, and the characteristic information is retrieved from the buffer pool according to a predetermined sampling period; Parsing a frame header of the characteristic information, and obtaining a data type identifier of the characteristic information from the frame header; Selecting a parsing rule for the feature information according to the data type identifier; The feature information is parsed based on the data parsing rule.

3. The adaptation method for a multi-functional interface according to claim 1, characterized in that: When building an adapter according to the interface parsing configuration, it includes: Acquire historical interface parsing data of the interface parsing configuration, and perform data analysis on the historical interface parsing data to determine the security data carrying capacity of the interface parsing configuration within a preset time; Setting the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The adapter is constructed based on the set low frequency and the number of low frequency interfaces.

4. The adaptation method for a multi-functional interface according to claim 2, characterized in that: When the low frequency and the number of low frequency interfaces of the adapter are set according to the safety data carrying capacity of the interface parsing configuration, it includes: Presetting a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; Setting the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the security data carrying capacity of the interface parsing configuration, the first preset security data carrying capacity and the second preset security data carrying capacity; When the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity, the low frequency of the adapter is set to ΔH1, and the number of low frequency interfaces of the adapter is set to ΔP1; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the first preset security data carrying capacity, and the security data carrying capacity of the interface parsing configuration is less than the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH2, and the number of low frequency interfaces of the adapter is set to ΔP2; When the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity, the low frequency of the adapter is set to ΔH3, and the number of low frequency interfaces of the adapter is set to ΔP3.

5. The adaptation method for a multi-functional interface according to claim 1, characterized in that: When constructing an adapter according to the format information, it includes: Parsing the format information to determine the adaptation instance, adaptation rule and adaptation table; Reading and initializing the adaptation instance, the adaptation rule and the adaptation table, and sending the initialized data to the processor; Reading an API of the communication interface, a number of physical channels of the communication interface, a specific channel of the communication interface, and a baud rate of the specific channel of the communication interface based on the processor; Generate an adapter program using the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface; The adapter is constructed according to the adapter program.

6. An adaptation system for a multifunctional interface, characterized in that: The system comprises: A sending module, used to obtain characteristic information of the communication interface and send it to the processor, wherein the characteristic information includes one or more of an interface type, an interface address, an interface parameter, a header parameter, and an interface protocol; A conversion module, configured to parse the characteristic information based on the processor, determine the interface type, and convert the characteristic information into corresponding format information according to the interface type; A construction module is used to determine whether there is an interface parsing configuration based on the format information, If so, obtain the corresponding interface parsing configuration and construct an adapter according to the interface parsing configuration; If not, constructing an adapter according to the format information; The adapter module is used to combine the pins of the communication interface based on the adapter to complete the multifunctional adaptation of the communication interface.

7. The adaption system for the multifunctional interface according to claim 6, characterized in that: The conversion module is specifically used for: The conversion module is used to store the feature information in a buffer pool and retrieve the feature information from the buffer pool according to a predetermined sampling period; The conversion module is used to parse the frame header of the feature information, and parse the data type identifier of the feature information from the frame header; The conversion module is used to select a parsing rule for the feature information according to the data type identifier; The conversion module is used to parse the feature information based on the data parsing rule.

8. The adaption system for a multifunctional interface according to claim 6, characterized in that: The building blocks are specifically used for: The construction module is used to obtain historical interface resolution data of the interface resolution configuration, and perform data analysis on the historical interface resolution data to determine the security data carrying capacity of the interface resolution configuration within a preset time; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the safety data carrying capacity of the interface parsing configuration; The construction module is used to construct the adapter based on the set low frequency and the number of low frequency interfaces.

9. The adaption system for the multifunctional interface according to claim 8, characterized in that: The building blocks are specifically used for: The construction module is used to pre-set a first preset security data carrying capacity and a second preset security data carrying capacity, wherein the first preset security data carrying capacity is smaller than the second preset security data carrying capacity; The construction module is used to set the low frequency and the number of low frequency interfaces of the adapter according to the relationship between the safety data carrying capacity of the interface parsing configuration, the first preset safety data carrying capacity and the second preset safety data carrying capacity; The construction module is used for setting the low frequency of the adapter to ΔH1 and the number of low frequency interfaces of the adapter to ΔP1 when the safety data carrying capacity of the interface parsing configuration is less than the first preset safety data carrying capacity; The construction module is used to set the low frequency of the adapter to ΔH2 and the number of low frequency interfaces of the adapter to ΔP2 when the security data load of the interface parsing configuration is greater than or equal to the first preset security data load and the security data load of the interface parsing configuration is less than the second preset security data load; The construction module is used to set the low-frequency frequency of the adapter to ΔH3 and the number of low-frequency interfaces of the adapter to ΔP3 when the security data carrying capacity of the interface parsing configuration is greater than or equal to the second preset security data carrying capacity.

10. The adaption system for a multifunctional interface according to claim 6, characterized in that: The building blocks are specifically used for: The construction module is used to parse the format information to determine the adaptation instance, adaptation rule and adaptation table; The building module is used to read and initialize the adaptation instance, the adaptation rule and the adaptation table, and send the initialized data to the processor; The building block is used to read the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface, and the baud rate of the specific channel of the communication interface based on the processor; The construction module is used to generate an adapter program from the API of the communication interface, the number of physical channels of the communication interface, the specific channel of the communication interface and the baud rate of the specific channel of the communication interface; The construction module is used to construct the adapter according to the adapter program.

Citation Information

Patent Citations

  • A method and a device for adapting a universal bus interface

    CN109189704A

  • Interface adaptation method, device and system

    CN109600381A

  • External interface adaptation method and device and external interface adapter

    CN109614338A

  • Method and device for adapting special transmission modules across different local systems

    CN112671936A

  • Interface adaptation method and device, electronic equipment and computer readable storage medium

    CN113051202A