Edge connection device adaptation method, device and computer-readable storage medium

By obtaining the format conversion list and determining the target format conversion template, the problem of inconsistent communication formats when the edge gateway is connected to the platform is solved, fast and convenient connection and adaptation are achieved, and the cost of equipment deployment is reduced.

CN115842861BActive Publication Date: 2025-09-16广东省工业边缘智能创新中心有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211482755.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2025-09-16
Estimated Expiration
2042-11-24

AI Technical Summary

Technical Problem

The existing connection solutions between edge gateways and platforms have inconsistent communication message formats due to different manufacturers, types, and protocols. They cannot quickly access the Industrial Internet platform and require secondary development, which increases the time cost of connection deployment.

Method used

By pre-acquiring a format conversion list and determining a target format conversion template according to the communication information of the IoT platform, the information format of the first IoT platform is converted into a format recognizable by the second IoT platform and sent to the second IoT platform.

Benefits of technology

It achieves fast and convenient connection and adaptation between the edge gateway and the platform, reducing the difficulty and cost of device connection deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842861B_ABST
    Figure CN115842861B_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of industrial Internet technology, and disclose an edge connection device adaptation method, device and computer-readable storage medium. By pre-acquiring a format conversion list including multiple format conversion templates, and then determining the target format conversion template to be used from the format conversion list according to the format of the first communication information and the second communication information of the first Internet of Things platform and the second Internet of Things platform, the information format of the first Internet of Things platform is converted into the information format of the second Internet of Things platform through the target format conversion template and sent, so as to achieve fast and convenient connection and adaptation between the first Internet of Things platform and the second Internet of Things platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of industrial Internet technology, and specifically to an edge connection device adaptation method, device, and computer-readable storage medium. Background Art

[0002] The Industrial Internet represents a new type of infrastructure, application model, and industrial ecosystem that deeply integrates next-generation information and communication technologies with the industrial economy. By comprehensively connecting people, machines, objects, and systems, it builds a new manufacturing and service system that covers the entire industrial chain and value chain, providing a path for the digitalization, networking, and intelligent development of industry and beyond. The Industrial Internet is currently being widely adopted across all industries, with data collection from industrial equipment being a key component. The collected data is a crucial support for applications on various Industrial Internet platforms. Currently, data collection is primarily performed through edge gateways, making the connection and adaptation between edge gateways and platforms particularly important.

[0003] The existing connection solution between edge gateways and platforms often connects the gateways to the platforms directly for communication. However, due to differences in gateway manufacturers, types, protocols, data, etc., the formats of communication messages sent when connecting to the platforms are often different. The gateway cannot quickly access the platform, and the same gateway often requires secondary development when connecting to different industrial Internet platforms, which makes the time cost of deploying the connection between the edge gateway and the platform high. Summary of the Invention

[0004] In view of the above problems, an embodiment of the present invention provides an edge connection device adaptation method to solve the problems existing in the prior art.

[0005] According to one aspect of an embodiment of the present invention, there is provided an edge connection device adaptation method, characterized by comprising: obtaining a format conversion list, the format conversion list including multiple format conversion templates;

[0006] Obtain first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform;

[0007] determining, based on the first communication information and the second communication information, an information characteristic of the first communication information and a second format of the second communication information, the information characteristic including the first format of the first communication information;

[0008] determining a target format conversion template from a plurality of format conversion templates in a format conversion list according to the information feature and the second format;

[0009] converting the first format of the first communication information into a second format according to the target format conversion template;

[0010] The first communication information in the second format is sent to the second Internet of Things platform.

[0011] In an optional manner, determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information, includes:

[0012] Identify the first communication information, determine the number of sub-data included in the first communication information, and use the number and the first format as information features;

[0013] Before determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format, the edge connection device adaptation method further includes:

[0014] Determining a format conversion template group from the format conversion list according to the quantity, the format conversion template group including at least one format conversion template for converting the sub-data of the quantity;

[0015] The step of determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes:

[0016] A target format conversion template is determined from the format conversion template group according to the information feature and the second format.

[0017] In an optional manner, determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information, includes:

[0018] Identifying the first communication information, determining a type of sub-data included in the first communication information, and using the type and the first format as information features;

[0019] Before determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format, the edge connection device adaptation method further includes:

[0020] Determining a format conversion template group from the format conversion list according to the category, the format conversion template group including at least one format conversion template for converting the sub-data of the category;

[0021] The step of determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes:

[0022] The target format conversion template is determined from the format conversion template group according to the information feature and the second format.

[0023] In an optional manner, determining a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes:

[0024] Determine, according to the first format, a preliminary format conversion template from a format conversion list, wherein the preliminary format conversion template includes a plurality of format conversion templates for converting the first format into other formats;

[0025] According to the second format, a target format conversion template is determined from the preliminary format conversion templates.

[0026] In an optional manner, before obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform, the edge connection device adaptation method further includes:

[0027] Obtain first registration information of the first Internet of Things platform and second registration information of the second Internet of Things platform;

[0028] Determine whether the first registration information of the first Internet of Things platform meets the first condition, and simultaneously determine whether the second registration information of the second Internet of Things platform meets the second condition;

[0029] If so, execute the step of obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform.

[0030] In an optional manner, obtaining the first registration information of the first Internet of Things platform and the second registration information of the second Internet of Things platform includes:

[0031] Obtaining a first ID, a first manufacturer, a first main parameter, and a first communication channel information of a first Internet of Things platform;

[0032] Obtain a second ID, a second manufacturer, a second main parameter, and second communication channel information of a second Internet of Things platform.

[0033] In an optional manner, before obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform, the edge connection device adaptation method further includes:

[0034] Obtain the first historical registration information of the first IoT platform and the second historical registration information of the second IoT platform in the previous operation;

[0035] Determining whether the first historical registration information and the first registration information are identical, and whether the second historical registration information and the second registration information are identical;

[0036] If so, the historical format conversion template in the previous operation is determined as the target format conversion template, and the step of obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform is executed, and then jump to the step of converting the first format of the first communication information into the second format according to the target format conversion template.

[0037] According to another aspect of an embodiment of the present invention, there is provided an edge connection device adaptation apparatus, comprising:

[0038] A first acquisition module is used to acquire a format conversion list, where the format conversion list includes multiple format conversion templates;

[0039] A second acquisition module is used to acquire first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform;

[0040] a first determining module, configured to determine, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information;

[0041] a second determining module, configured to determine a target format conversion template from a plurality of format conversion templates in the format conversion list according to the information feature and the second format;

[0042] a format conversion module, configured to convert a first format of the first communication information into a second format according to a target format conversion template;

[0043] The sending module is used to send the first communication information in the second format to the second Internet of Things platform.

[0044] According to another aspect of an embodiment of the present invention, an edge connection device adapter is provided, including:

[0045] Processor, memory, communication interface and communication bus, the processor, memory and communication interface communicate with each other via the communication bus;

[0046] The memory is used to store at least one program, and the program enables the processor to execute operations such as the above-mentioned edge connection device adaptation method.

[0047] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which at least one program is stored. The program enables an edge connection device adapter device to perform operations corresponding to the above method.

[0048] According to the edge connection device adaptation method, apparatus and computer-readable storage medium of the embodiments of the present invention, a format conversion list including multiple format conversion templates is obtained in advance, and then according to the formats of the first communication information and the second communication information of the first Internet of Things platform and the second Internet of Things platform, the target format conversion template to be used is determined from the format conversion list, and then the information format of the first Internet of Things platform is converted into the information format of the second Internet of Things platform through the target format conversion template and sent, so as to achieve fast and convenient connection and adaptation between the first Internet of Things platform and the second Internet of Things platform.

[0049] The above description is only an overview of the technical solutions of the embodiments of the present invention. In order to more clearly understand the technical means of the embodiments of the present invention, they can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiments of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the drawings. In the drawings:

[0051] Figure 1 A schematic diagram showing a flow chart of an edge connection device adaptation method provided by an embodiment of the present invention;

[0052] Figure 2 A schematic diagram showing a first embodiment of a flow chart of an edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0053] Figure 3 A schematic flow chart of a second embodiment of the edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0054] Figure 4 A schematic flow chart of a third embodiment of the edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0055] Figure 5 A schematic flow chart of a fourth embodiment of the edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0056] Figure 6 A schematic flow chart of a fifth embodiment of the edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0057] Figure 7 A schematic flow chart of a sixth embodiment of the edge connection device adaptation method provided by an embodiment of the present invention is shown;

[0058] Figure 8 It shows a functional block diagram of an edge connection device adaptation device provided by an embodiment of the present invention;

[0059] Figure 9 A schematic structural diagram of an edge connection device adapter device provided in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0060] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0061] Regarding the current common connection adaptation method between edge gateways and platforms, the inventors noticed that the existing connection solutions between edge gateways and platforms often directly connect the gateway and the platform for communication. However, due to the differences in gateway manufacturers, types, protocols and data, the formats of communication messages sent when connecting to the platform are often different. The gateway cannot quickly access the platform, and the same gateway often requires secondary development when accessing different industrial Internet platforms, which makes the time cost of deploying the connection between the edge gateway and the platform high. Therefore, it is particularly important to develop an efficient method for connection adaptation between the gateway and the platform.

[0062] In order to solve the above problems, the inventors of this application have designed an edge connection device adaptation method after research. By pre-acquiring a format conversion list including multiple format conversion templates, and then determining the target format conversion template to be used from the format conversion list according to the format of the first communication information and the second communication information of the first Internet of Things platform and the second Internet of Things platform, the target format conversion template is converted into the information format of the second Internet of Things platform through the target format conversion template and sent, so as to achieve fast and convenient connection and adaptation between the first Internet of Things platform and the second Internet of Things platform.

[0063] Figure 1 The flowchart of the edge connection device adaptation method provided by an embodiment of the present invention is shown. The method is executed by an edge connection device adapter device. The edge connection device adapter device can be a connection management device that is separately set and connected between the first IoT platform and the second IoT platform, or it can be the first IoT platform or the second IoT platform. In the process of interactive communication between the first IoT platform and the second IoT platform, the format of the communication information is converted by the first IoT platform or the second IoT platform. Figure 1 As shown, the method includes the following steps:

[0064] Step 110: Obtain a format conversion list, which includes multiple format conversion templates.

[0065] In this step, the format conversion list is a plurality of pre-generated format conversion templates. The format conversion list can be generated by manual writing. The technician writes the conversion methods between the various commonly used formats in this field into the templates respectively. For example, the commonly used formats in this field are XML format and JSON format. Then, two format conversion templates can be written for converting XML format to JSON format and for converting JSON format to XML format. Both format conversion templates contain sub-data commonly used in this field. Sub-data refers to multiple different types of information contained in the same communication information. For example, the communication information in XML format can contain GatewaySrv, PlatformAddr and PlcProtocol sub-data. The above sub-data are all commonly used sub-data in this field. The technicians in this field can pre-write the corresponding format conversion method into the format conversion template according to each commonly used sub-data in this field.

[0066] Since the sub-data recording the IP and port in the XML format can simultaneously represent both the IP and port data, while the two data in the JSON format need to be represented by two sub-data, the format conversion template can determine whether the entry in the XML format contains two data by segmentation. If so, the port data is added as an independent entry GatewayComm. Those skilled in the art can make adaptive adjustments to the format conversion method in the conversion template according to the characteristics of different formats based on actual conditions to ensure stability after format conversion, including but not limited to splitting, merging and changing the sub-data, which is not specifically limited in the embodiments of the present application.

[0067] In this step, obtaining the format conversion list refers to reading the data in the format conversion list for backup, providing a data basis for subsequent steps.

[0068] Step 120: Acquire first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform.

[0069] In this step, the first Internet of Things platform and the second Internet of Things platform can be gateways or industrial software running on the industrial Internet platform, or any other virtual platform or device with a software operating environment. The device that runs the method proposed in this application can be the first Internet of Things platform or the second Internet of Things platform itself, or it can be an additional device that undertakes connection transfer between the first Internet of Things platform and the second Internet of Things platform. The embodiments of this application do not specifically limit this.

[0070] In this step, obtaining the first communication information of the first Internet of Things platform refers to receiving and obtaining the communication information of the first Internet of Things platform. It can be obtained by directly establishing a connection with the first Internet of Things platform, or by running the method proposed in this application on the first Internet of Things platform or the second Internet of Things platform. It can also be run on an additional device and use the additional device as a transit to obtain the first communication information and the second communication information of the first Internet of Things platform and the second Internet of Things platform. The same applies to the second Internet of Things platform. For example, the first Internet of Things platform is connected to the device running the method proposed in this application, and the second Internet of Things platform is connected to the device running the method proposed in this application, that is, the device running the method proposed in this application serves as a transit between the first Internet of Things platform and the second Internet of Things platform. At this time, the communication information between the first Internet of Things platform and the second Internet of Things platform is transmitted through the device running the method proposed in this application, and the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform can be easily obtained.

[0071] In this step, the connection between the first IoT platform, the second IoT platform and the device running the method proposed in this application can be based on the Internet Protocol (Internet Protocol), such as the MQTT protocol, AMQP protocol and CoAP protocol, etc., or data can be directly obtained through a serial port-based data transmission protocol. This application does not make any special restrictions on this.

[0072] In this step, there may be multiple first IoT platforms and second IoT platforms. The device running the method proposed in this application can connect to multiple first IoT platforms and second IoT platforms through any connection method or protocol. The embodiment of this application does not specifically limit the number of first IoT platforms and second IoT platforms.

[0073] Step 130: Determine information characteristics of the first communication information and a second format of the second communication information based on the first communication information and the second communication information, where the information characteristics include the first format of the first communication information.

[0074] In this step, based on the first communication information and the second communication information obtained in step 120, the features and formats of the first communication information and the second communication information are analyzed to determine the formats of the first communication information and the second communication information, and at the same time obtain other information features of the first communication information.

[0075] In this step, the information feature refers to a set of data that may include features such as the format, data type, and number of entries of the first communication information. The data in the information feature may be obtained by performing data analysis or data classification on the first communication information.

[0076] The first format and the second format are text formats of the first information and the second information. For example, the first format and the second format may be json, xml or sql. The first format and the second format may be identified by any format identification method.

[0077] Step 140: Determine a target format conversion template from the multiple format conversion templates in the format conversion list according to the information feature and the second format.

[0078] In this step, the target format conversion template can be determined in the format conversion list according to the first format included in the second format information feature. Specifically, one or more format conversion templates that convert the first format into other formats can be screened out from the format conversion list according to the first format, and then a format conversion template that converts the first format into the second format can be determined from the screened out one or more format conversion templates according to the second format. Alternatively, the format conversion template that converts the first format into the second format can be directly retrieved from the format conversion list according to the first format and the second format. Specifically, different methods can be adopted according to actual needs to determine the required target format conversion template from the format conversion list according to the first format and the second format, and this embodiment of the present application is not particularly limited to this.

[0079] Step 150: Convert the first format of the first communication information into a second format according to the target format conversion template.

[0080] In this step, the method of converting the first format of the first communication information into the second format according to the target format conversion template determined in step 140 can be specifically as follows: each sub-data contained in the first communication information is input into the target format conversion template, and each sub-data is converted in the target format conversion template and output to form the first information in a new second format. For example, if the first format is xml format and the second format is json format, the first information in xml format includes two sub-data, GatewaySrv and PlatformAddr, then the target format conversion template for converting the xml format into the json format includes conversion statements for converting the sub-data GatewaySrv and PlatformAddr in xml format into sub-data GatewaySrv and PlatformAddr in json format respectively, and finally the sub-data GatewaySrv and PlatformAddr in json format are output through the target format conversion template.

[0081] The target conversion template may also adopt other conversion methods to ensure that each sub-data contained in the first communication information can be converted into a corresponding format, that is, any conversion method that extracts data from the first communication information and places the data into a new format can be adopted. The embodiment of the present application does not specifically limit this.

[0082] Step 160: Send the first communication information in the second format to the second Internet of Things platform.

[0083] In this step, the first communication information converted into the second format is sent to the second Internet of Things platform. At this time, the format of the first communication information is consistent with the format that can be recognized by the second Internet of Things platform.

[0084] Among them, the sending of the first communication information in the second format of the first Internet of Things platform to the second Internet of Things platform can be one-to-one, that is, one first Internet of Things platform corresponds to one second Internet of Things platform for sending, or it can be one-to-many, many-to-one or many-to-many. The embodiment of the present application does not specifically limit the number of first information sent after format conversion.

[0085] By obtaining a pre-set format conversion list including multiple format conversion templates, and obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform and obtaining the first format of the first communication information and the second format of the second communication information, it can be known that the format that the second Internet of Things platform can recognize is the second format, and the target format conversion template is determined in the format conversion list according to the first format and the second format, and the first format of the first information is converted into the second format that the second Internet of Things platform can recognize according to the target format conversion template and sent to the second Internet of Things platform, so that the second Internet of Things platform can directly recognize the first communication information sent by the first Internet of Things platform, without the need to modify the first Internet of Things platform or the second Internet of Things platform, thereby shortening the time for connection deployment between devices and reducing the difficulty and cost of connection deployment between devices.

[0086] like Figure 2 As shown, in one embodiment of the present application, step 130 further includes:

[0087] Step 131: Identify the first communication information, determine the number of sub-data included in the first communication information, and use the number and the first format as information features.

[0088] Depending on the first format of the first communication information, the method for identifying the number of sub-data contained in the first communication information also varies. Conventional methods exist for indexing and querying data for different information formats. Alternatively, a text keyword search method can be used to identify the number of sub-data contained in the first communication information. For example, if the first communication information in XML format includes the sub-data GatewaySrv, PlatformAddr, CpuUser, CpuSys, and MemFree, a query list containing all possible fields in this field is established based on conventional communication information types used in industrial equipment data collection. Based on the query list, the corresponding fields GatewaySrv, PlatformAddr, CpuUser, CpuSys, and MemFree are sequentially queried in the first communication information. The number of sub-data is then determined based on the query results and the format of the first communication information. Similarly, the above query method can be used to obtain the number of sub-data for first communication information in other formats, as long as the format of the first communication information is readable text. Different methods can be used to identify the number of sub-data in the first communication information based on actual circumstances, and this is not specifically limited in this embodiment of the present application.

[0089] like Figure 2 As shown, in one embodiment of the present application, before step 140, the following steps are further included:

[0090] Step 1401: Determine a format conversion template group from a format conversion list according to the quantity, where the format conversion template group includes at least one format conversion template for converting sub-data of the quantity.

[0091] Among them, the format conversion list should include multiple format conversion templates containing different numbers of sub-data. For example, the first format conversion template in the format conversion list contains 2 sub-data, GatewaySrv and PlatformAddr, and the second format conversion template contains 6 sub-data, namely GatewaySrv, PlatformAddr, CpuUser, CpuSys, MemFree, and MemUsed. If the number of sub-data contained in the identified first communication information is 6, all format conversion templates containing 6 sub-data can be determined from the format conversion list as a format conversion template group, that is, the format conversion template group includes the above-mentioned second format conversion template, but does not include the above-mentioned first format conversion template.

[0092] like Figure 2 As shown, in one embodiment of the present application, step 140 further includes:

[0093] Step 141: Determine a target format conversion template from the format conversion template group according to the information feature and the second format.

[0094] The format conversion template group is determined by the number of sub-data included in the information feature. That is, the format conversion template group includes multiple format conversion templates for converting to different formats, and each format conversion template performs format conversion on the same number of sub-data. By finding a format conversion template in the format conversion template group that is used for converting to the second format, the format conversion template can be determined as the target format conversion template.

[0095] Through steps 131, 1401, and 141, the number of sub-data in the first communication information is added to the information feature as a condition for determining the format conversion template, so that the number of sub-data of the target format conversion template finally determined is consistent with that of the first communication information. This makes it less likely for the first communication information to make errors due to the mismatch in the number of sub-data when the format is converted through the target format conversion template, thereby improving the stability of the format conversion.

[0096] like Figure 3 As shown, in one embodiment of the present application, step 130 further includes:

[0097] Step 132: Identify the first communication information, determine the type of sub-data included in the first communication information, and use the type and the first format as information features.

[0098] Various methods can be used to identify the types of sub-data contained in the first communication information. The purpose is to obtain the types of all sub-data contained in the first communication information as a basis for identification in subsequent steps. For example, if the first communication information in JSON format includes two sub-data items, PlatformAddr and PlcProtocol, then after identification, the types of sub-data contained in the first communication information are PlatformAddr and PlcProtocol. Various methods can be used to identify the types of sub-data contained in the first communication information. For example, the names of sub-data types commonly used in the field are sequentially searched. If the name of a sub-data type exists in the first communication information, it is understood that the first communication information includes sub-data of this type. The search is repeated until all names of sub-data types commonly used in the field are searched, and the names of the sub-data types found are stored in the information feature. Depending on the actual situation, other methods can also be used to identify the types of sub-data contained in the first communication information. For example, a recognition model is generated through machine learning combined with information on the types of sub-data commonly used in the field, and the types of sub-data contained in the first communication information are identified using the recognition model. This embodiment of the present application is not particularly limited in this regard.

[0099] like Figure 3 As shown, in one embodiment of the present application, before step 140, the following steps are further included:

[0100] Step 1402: Determine a format conversion template group from the format conversion list according to the category, where the format conversion template group includes at least one format conversion template for converting sub-data of the category.

[0101] Among them, the format conversion list should include multiple format conversion templates containing different types of sub-data. For example, the first format conversion template in the format conversion list includes the sub-data PlatformAddr and PlcProtocol, and the second format conversion template includes the sub-data MemFree and MemUsed. If it is identified that the data types contained in the first communication information are PlatformAddr and PlcProtocol, then all format conversion templates containing data of the types PlatformAddr and PlcProtocol can be determined from the format conversion list as a format conversion template group, that is, the format conversion template group includes the above-mentioned first format conversion template, but does not include the above-mentioned second format conversion template.

[0102] like Figure 3 As shown, in one embodiment of the present application, step 140 further includes:

[0103] Step 142: Determine a target format conversion template from the format conversion template group according to the information feature and the second format.

[0104] The format conversion template group is determined by the type of sub-data included in the information feature. That is, the format conversion template group includes multiple format conversion templates for converting to different formats, and each format conversion template performs format conversion on the same type of sub-data. By finding a format conversion template in the format conversion template group that is used for converting to the second format, it can be determined that this format conversion template is the target format conversion template.

[0105] Among them, step 131 can be executed simultaneously with step 132 or in any order. When step 131 and step 132 are executed for the same first communication information, the information feature includes both quantity and type. Then, in the subsequent steps, when determining the format conversion template group, the format conversion templates included in the format conversion template group should satisfy that both the quantity and type are consistent with the quantity and type in the information feature, and step 141 and step 142 can only execute any one of them. Those skilled in the art can make the most favorable order adjustment for the above steps to determine the target format conversion template according to actual conditions. The embodiment of the present application does not specifically limit the execution order of the above steps.

[0106] Through steps 132, 1402, and 142, the type of sub-data in the first communication information is added to the information features as a condition for determining the format conversion template, so that the type of sub-data of the target format conversion template finally determined is consistent with that of the first communication information. This makes it less likely for the first communication information to make errors due to different types of sub-data when format conversion is performed through the target format conversion template, thereby improving the stability of the format conversion.

[0107] like Figure 4 As shown, in one embodiment of the present application, step 130 further includes:

[0108] Step 131: Identify the first communication information, determine the number of sub-data contained in the first communication information, and use the number and the first format as information features;

[0109] Step 132: Identify the first communication information, determine the type of sub-data included in the first communication information, and use the type and the first format as information features.

[0110] By simultaneously taking the quantity and type of the sub-data as information features, the information features include more information in the first communication information, so that the subsequent step of determining the format conversion template can be more accurate.

[0111] like Figure 4 As shown, in one embodiment of the present application, before step 140, the following steps are further included:

[0112] Step 1401: Determine a format conversion template group from a format conversion list according to the quantity, where the format conversion template group includes at least one format conversion template for converting sub-data of the quantity;

[0113] Step 1402: Determine a format conversion template group from the format conversion list according to the category, where the format conversion template group includes at least one format conversion template for converting sub-data of the category.

[0114] In step 1401 and step 1402, those skilled in the art may determine the format conversion template group in the format conversion list based on quantity and type in different ways or orders according to actual circumstances. For example, the format conversion template group may be determined based on both quantity and type, or may be determined based on both quantity and type separately to obtain two format conversion template groups. The purpose is to determine the most appropriate format conversion template group by adding more parameters that conform to the first communication information, thereby providing a more accurate data basis for determining the target format conversion template in subsequent steps.

[0115] By determining the format conversion template group in the format conversion list by quantity and type, the target format conversion template can be determined more accurately in subsequent steps.

[0116] like Figure 4 As shown, in one embodiment of the present application, step 140 further includes:

[0117] Step 141: Determine a target format conversion template from the format conversion template group according to the information feature and the second format.

[0118] like Figure 5 As shown, in one embodiment of the present application, step 140 further includes:

[0119] Step 143: Determine a preliminary format conversion template from the format conversion list according to the first format, where the preliminary format conversion template includes at least one format conversion template for converting the first format into another format;

[0120] Step 144: Determine a target format conversion template from the preliminary format conversion templates according to the second format.

[0121] In step 143, a preliminary format conversion template is determined from a format conversion list based on the first format. The determination is as follows: the format conversion list includes AB, AC, AD, BA, BC, BD, CA, CB, CD, DA, DB, and DC, where A, B, C, and D represent various formats. AB represents a format conversion template for converting from format A to format B. When the first format is B, a format conversion template is required for converting format B. Therefore, templates for converting format B are selected from the format conversion list: BA, BC, and BD. The preliminary format conversion templates then include BA, BC, and BD.

[0122] In step 144, based on the preliminary format conversion template determined in step 133, a format conversion template that converts the first format into the second format is found from the preliminary format conversion templates according to the second format. For example, if the second format is C and the preliminary format conversion templates include BA, BC, and BD, then format conversion template BC can be determined as the target format conversion template.

[0123] Through steps 143 and 144, the determination of the target conversion template follows the basic rules of format conversion, that is, the format conversion order of the template should be consistent with the format conversion order actually required, thereby avoiding the problem of determining a format conversion template with a reversed format conversion order from the format conversion list based on the first format and the second format, and reducing the failure rate during format conversion.

[0124] like Figure 6 As shown, in one embodiment of the present application, before step 120, the following steps are further included:

[0125] Step 1201: Obtain first registration information of a first IoT platform and second registration information of a second IoT platform;

[0126] Step 1202: Determine whether the first registration information of the first IoT platform meets the first condition, and simultaneously determine whether the second registration information of the second IoT platform meets the second condition;

[0127] If the answer is yes, perform the following steps:

[0128] Step 120: Acquire first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform.

[0129] In step 1201, the first and second registration information may include the software IDs or gateway IDs of the first and second IoT platforms, the manufacturer of the device or software, key parameters of the device or software (software or hardware version number, identification code, etc.), and communication channel information. This information is used to provide identity verification for subsequent steps, determining whether the first IoT platform to which the first registration information belongs, or the second IoT platform to which the second registration information belongs, is the target for the current operation. The content of the first and second registration information may be modified based on actual circumstances, as long as it can provide identification for the device or software, and this embodiment of the application does not impose any specific limitations on this.

[0130] In step 1202, the first condition and the second condition should be set according to the registration information of the target device or software of the current operation. When the first registration information obtained satisfies the first condition, it can be considered that the first Internet of Things platform to which the first registration information belongs is the correct connection target. When the second registration information obtained satisfies the second condition, it can be considered that the second Internet of Things platform to which the second registration information belongs is also the correct connection target, and the subsequent normal connection operation steps can be performed. If the first registration information does not meet the first condition or the second registration information does not meet the second condition, it means that the current first Internet of Things platform and / or second Internet of Things platform may not be the operation target. Those skilled in the art can make corresponding adjustments and corrections in a timely manner. The adjustment and correction methods include but are not limited to replacing the first Internet of Things platform and / or the second Internet of Things platform, checking the connection configuration, etc., and then executing the above steps again until both the first Internet of Things platform and the second Internet of Things platform are determined to be the correct connection targets.

[0131] Through steps 1201 and 1202, before the connection communication between the first IoT platform and the second IoT platform is established, it is verified whether it is the target device or software that needs to be connected for the operation, thereby improving data security and avoiding connection to the wrong device or software that affects normal operation.

[0132] like Figure 6As shown, in one embodiment of the present application, step 1201 further includes:

[0133] Step 12011: Obtain the first ID, first manufacturer, first main parameter, and first communication channel information of the first Internet of Things platform;

[0134] Step 12012: Obtain the second ID, second manufacturer, second main parameters and second communication channel information of the second Internet of Things platform.

[0135] In step 12011 and step 12012, obtaining multiple information as the first registration information and the second registration information can improve the accuracy of the verification in step 1201 to step 1203, and further avoid operating on the wrong device or software.

[0136] like Figure 7 As shown, in one embodiment of the present application, before step 120, the following steps are further included:

[0137] Step 1203: Acquire first historical registration information of the first IoT platform and second historical registration information of the second IoT platform in the previous operation;

[0138] Step 1204: Determine whether the first historical registration information is identical to the first registration information and whether the second historical registration information is identical to the second registration information.

[0139] If the answer is yes, perform the following steps:

[0140] Step 1205 : Determine the historical format conversion template in the previous operation as the target format conversion template, execute step 120 , and then jump to step 150 .

[0141] In step 1203, the first historical registration information of the first IoT platform and the second historical registration information of the second IoT platform in the last operation refer to the registration information of the first IoT platform and the second IoT platform that have been identified as target devices or software during the last normal operation. The purpose is to obtain the registration information of the device or software that was normally operated last time for verification in subsequent steps.

[0142] In step 1204 and step 1205, the first registration information and the second registration information currently obtained are judged. If they are consistent with the registration information of the last normal operation, it can be understood that the target software or device of this operation is consistent with that of the last operation, so their target format conversion template can also use the target format conversion template determined during the last operation.

[0143] Through step 1203, step 1204 and step 1205, the registration information of the software or device of the current operation is compared with the registration information of the software or device of the previous operation. If they are consistent, it can be considered that the software or device of the current operation is the same as the previous one. Therefore, there is no need to repeatedly determine the target format conversion template. The target format conversion template that has been determined in the previous operation can be directly used, which improves the operation efficiency, shortens the operation process, and saves time and cost.

[0144] Figure 8 FIG. 8 shows a functional block diagram of an edge connection device adaptation apparatus 800 according to an embodiment of the present invention. Figure 8 As shown, the edge connection device adaptation apparatus 800 includes: a first acquisition module 810 , a second acquisition module 820 , a first determination module 830 , a second determination module 840 , a format conversion module 850 and a sending module 860 .

[0145] A first acquisition module 810 is configured to acquire a format conversion list, where the format conversion list includes multiple format conversion templates;

[0146] A second acquisition module 820 is configured to acquire first communication information of the first IoT platform and second communication information of the second IoT platform;

[0147] A first determining module 830 is configured to determine, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information;

[0148] A second determining module 840 is configured to determine a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format;

[0149] a format conversion module 850, configured to convert a first format of the first communication information into a second format according to a target format conversion template;

[0150] The sending module 860 is configured to send the first communication information in the second format to the second Internet of Things platform.

[0151] In some embodiments, the first determining module 830 further includes:

[0152] The first identification unit is configured to identify the first communication information, determine the number of sub-data contained in the first communication information, and use the number and the first format as information features.

[0153] In some embodiments, the edge connection device adaptation apparatus 800 further includes:

[0154] The first calculation module is configured to determine a format conversion template group from the format conversion list according to the quantity, where the format conversion template group includes at least one format conversion template for converting sub-data of the quantity.

[0155] In some embodiments, the second determining module 840 further includes:

[0156] The first calculation unit is configured to determine a target format conversion template from the format conversion template group according to the information feature and the second format.

[0157] In some embodiments, the first determining module 830 further includes:

[0158] The second identification unit is configured to identify the first communication information, determine the type of sub-data included in the first communication information, and use the type and the first format as information features.

[0159] In some embodiments, the edge connection device adaptation apparatus 800 further includes:

[0160] The second calculation module is configured to determine a format conversion template group from the format conversion list according to the category, wherein the format conversion template group includes at least one format conversion template for converting sub-data of the category.

[0161] In some embodiments, the second determining module 840 further includes:

[0162] The second calculation unit is configured to determine a target format conversion template from the format conversion template group according to the information feature and the second format.

[0163] In some embodiments, the second determining module 840 further includes:

[0164] a third calculating unit, configured to determine, according to the first format, a preliminary format conversion template from the format conversion list, the preliminary format conversion template including a plurality of format conversion templates for converting the first format into other formats;

[0165] The fourth calculation unit is configured to determine a target format conversion template from the preliminary format conversion template according to the second format.

[0166] In some embodiments, the edge connection device adaptation apparatus 800 further includes:

[0167] A third calculation module is used to obtain first registration information of the first Internet of Things platform and second registration information of the second Internet of Things platform;

[0168] A fourth calculation module is used to determine whether the first registration information of the first Internet of Things platform meets the first condition, and at the same time determine whether the second registration information of the second Internet of Things platform meets the second condition;

[0169] A fifth computing module is configured to execute the step of determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information when the first registration information of the first Internet of Things platform meets the first condition and the second registration information of the second Internet of Things platform meets the second condition.

[0170] In some embodiments, the third computing module further includes:

[0171] A fifth calculation unit is used to obtain the first ID, the first manufacturer, the first main parameter and the first communication channel information of the first Internet of Things platform;

[0172] The sixth calculation unit is used to obtain the second ID, the second manufacturer, the second main parameter and the second communication channel information of the second Internet of Things platform.

[0173] In some embodiments, the edge connection device adaptation apparatus 800 further includes:

[0174] A sixth calculation module, configured to obtain first historical registration information of the first Internet of Things platform and second historical registration information of the second Internet of Things platform in a previous operation;

[0175] a seventh calculation module, configured to determine whether the first historical registration information is identical to the first registration information, and whether the second historical registration information is identical to the second registration information;

[0176] The eighth calculation module is used to determine the historical format conversion template in the previous operation as the target format conversion template when the first historical registration information and the first registration information and the second historical registration information and the second registration information are the same, and execute the step of obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform, and then jump to the step of converting the first format of the first communication information into the second format according to the target format conversion template.

[0177] Figure 9 A schematic structural diagram of an edge connection device adapter device according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the edge connection device adapter device.

[0178] like Figure 9 As shown, the edge connection device adapter device may include: a processor 902 , a memory 906 , a communication interface 904 and a communication bus 908 .

[0179] The processor 902 , the memory 906 , and the communication interface 904 communicate with each other via a communication bus 908 .

[0180] The memory 906 is used to store at least one program 910 , and the program 910 enables the processor 902 to execute the relevant steps in the embodiment of the edge connection device adaptation method.

[0181] An embodiment of the present invention also provides a computer-readable storage medium, which stores at least one program. When the program runs on an edge connection device adapter device, the edge connection device adapter device can execute the edge connection device adaptation method of any of the above method embodiments.

[0182] The algorithm or demonstration provided herein are not inherently relevant to any particular computer, virtual system or other equipment. Various general-purpose systems may also be used together with the teachings based on this. According to the above description, it is apparent that the structure required for constructing this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the best mode of the present invention.

[0183] In the description provided herein, numerous specific details are described. However, it is understood that embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.

[0184] Similarly, it should be understood that in order to streamline the present invention and facilitate understanding of one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0185] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed so far can be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0186] It should be noted that the above embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by a person skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising several different elements and by means of appropriately programmed computers. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments should not be understood as limiting the order of execution unless otherwise specified.

Claims

1. A method for adapting an edge connection device, characterized in that: include: Acquire a format conversion list, the format conversion list including multiple format conversion templates; Obtain first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform; determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, the information feature including the first format of the first communication information; determining a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format; converting the first format of the first communication information into the second format according to the target format conversion template; sending the first communication information in the second format to the second Internet of Things platform; The determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information, includes: identifying the first communication information, determining the number of sub-data included in the first communication information, and using the number and the first format as the information feature; Before determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format, the edge connection device adaptation method further includes: Determining a format conversion template group from the format conversion list according to the quantity, the format conversion template group including at least one format conversion template for converting the quantity of sub-data; The step of determining a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes: The target format conversion template is determined from the format conversion template group according to the information feature and the second format.

2. The edge connection device adaptation method according to claim 1, characterized in that: determining, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, wherein the information feature includes the first format of the first communication information, and further comprising: identifying the first communication information, determining a type of sub-data included in the first communication information, and using the type and the first format as the information feature; Before determining the target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format, the edge connection device adaptation method further includes: Determining a format conversion template group from the format conversion list according to the category, the format conversion template group including at least one format conversion template for converting the sub-data of the category; The step of determining a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes: The target format conversion template is determined from the format conversion template group according to the information feature and the second format.

3. The edge connection device adaptation method according to claim 1 or 2, characterized in that: The step of determining a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format includes: determining, according to the first format, a preliminary format conversion template from the format conversion list, the preliminary format conversion template including at least one format conversion template for converting the first format into another format; The target format conversion template is determined from the preliminary format conversion template according to the second format.

4. The edge connection device adaptation method according to claim 1, characterized in that: Before obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform, the edge connection device adaptation method further includes: Obtaining first registration information of the first Internet of Things platform and second registration information of the second Internet of Things platform; Determine whether the first registration information of the first Internet of Things platform meets a first condition, and simultaneously determine whether the second registration information of the second Internet of Things platform meets a second condition; If so, execute the step of obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform.

5. The edge connection device adaptation method according to claim 4, characterized in that: The obtaining of the first registration information of the first Internet of Things platform and the second registration information of the second Internet of Things platform includes: Obtaining a first ID, a first manufacturer, a first main parameter, and first communication channel information of the first Internet of Things platform; Obtain the second ID, second manufacturer, second main parameters, and second communication channel information of the second Internet of Things platform.

6. The edge connection device adaptation method according to claim 4, characterized in that: Before obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform, the edge connection device adaptation method further includes: Obtaining first historical registration information of the first Internet of Things platform and second historical registration information of the second Internet of Things platform in a previous operation; Determining whether the first historical registration information and the first registration information are identical, and whether the second historical registration information and the second registration information are identical; If so, the historical format conversion template in the previous operation is determined as the target format conversion template, and the step of obtaining the first communication information of the first Internet of Things platform and the second communication information of the second Internet of Things platform is executed, and then jump to the step of converting the first format of the first communication information into the second format according to the target format conversion template.

7. An edge connection device adapter, characterized in that: include: A first acquisition module is configured to acquire a format conversion list, wherein the format conversion list includes multiple format conversion templates; A second acquisition module is used to acquire first communication information of the first Internet of Things platform and second communication information of the second Internet of Things platform; a first determining module, configured to determine, based on the first communication information and the second communication information, an information feature of the first communication information and a second format of the second communication information, the information feature including the first format of the first communication information; The first determining module includes a first identifying unit, the first identifying unit being configured to identify the first communication information, determine the number of sub-data included in the first communication information, and use the number and the first format together as the information feature; a first calculation module, configured to determine, according to the quantity, a format conversion template group from the format conversion list, the format conversion template group including at least one format conversion template for converting the quantity of sub-data; a second determining module, configured to determine a target format conversion template from the plurality of format conversion templates in the format conversion list according to the information feature and the second format; The second determining module includes a first calculating unit, and the first calculating unit is used to determine the target format conversion template from the format conversion template group according to the information feature and the second format; a format conversion module, configured to convert the first format of the first communication information into the second format according to the target format conversion template; A sending module is used to send the first communication information in the second format to the second Internet of Things platform.

8. An edge connection device adapter, characterized in that: include: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one program, and the program enables the processor to perform the operations of the edge connection device adaptation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that The storage medium stores at least one program, and when the program is run on the edge connection device adapter, the edge connection device adapter enables the edge connection device adapter to perform the operation of the edge connection device adaptation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Internet of Things adaptation method and system, computer equipment and storage medium

    CN110971614A