Cloud data content synchronization distribution method in the industrial field

By building a data integration platform in the cloud, unified management of interface call information and data integration tasks of industrial systems, and using connectors and converters for data synchronization, the problem of data synchronization between industrial systems in the traditional method is solved, and efficient data content synchronization is achieved. and distribution, reducing the cost of interconnection between systems and improving overall system efficiency.

CN117997915BActive Publication Date: 2024-10-18蒲惠智造科技股份有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410229761.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-10-18
Estimated Expiration
2044-02-29

AI Technical Summary

Technical Problem

The traditional cloud data content synchronization method is difficult to maintain data content synchronization between locally running industrial systems and cloud-running industrial systems, mainly because the upstream and downstream account information and interface call information of the industrial system cannot be determined, and the interface resources and docking modules are difficult to Unified management and limited to one global synchronization ignores changes in local data content.

Method used

Build a data integration platform in the cloud, uniformly register the interface call information of each industrial system, declare the upstream and downstream systems and their interface call information in the form of data integration tasks, use connectors and converters to connect and synchronize data content, and realize the upstream and downstream systems The data content is distributed synchronously, and a compensation mechanism and log manager are set up to ensure data consistency.

Benefits of technology

It realizes the synchronization and distribution of data content between different industrial systems, reduces repeated development costs, improves efficiency, and simplifies the data synchronization process between different systems. It is suitable for data connection scenarios of multiple suppliers' software services and improves system efficiency. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117997915B_ABST
    Figure CN117997915B_ABST
Patent Text Reader

Abstract

The cloud data content synchronization distribution method in the industrial field belongs to the field of system data transmission docking technology. Each time the data content is docked, the data integration platform calls the connector, and the interaction of the upstream system is deposited in the data integration platform in the form of a connector. If there is a need to dock with the system later, the connector is directly reused. The interface call information exposed by each industrial system is uniformly registered to the data integration platform; the interface call information is uniformly managed through the data integration platform, so as to facilitate the docking between upstream and downstream industrial systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of system data transmission docking, and in particular relates to a cloud data content synchronization distribution method in the industrial field. Background Art

[0002] Cloud synchronization refers to data synchronization between cloud devices and servers on a cloud platform based on cloud computing, or data sharing between different devices centered on individuals.

[0003] In the SaaS model, users can use software applications provided by third parties through the Internet and pay for them according to their needs. Unlike traditional local software, SaaS does not require users to purchase, install and maintain software, saving users time and costs.

[0004] In the process of digital transformation and upgrading, manufacturing companies usually use both local industrial systems and cloud-based industrial systems. The relevant data content in different industrial systems is related and needs to be synchronized with each other.

[0005] Traditional cloud data content synchronization methods, such as the cloud storage data synchronization method disclosed in Chinese patent publication number CN107040564A, include obtaining the operation instruction received by the cloud storage server, and when the data synchronization server sends the synchronization instruction to the local database, it is preferably sent to the local master database. After the local master database and the cloud storage server achieve data synchronization, the data in it is backed up to the local slave database to improve data security.

[0006] However, the traditional cloud data content synchronization method is not suitable for keeping data content synchronized between industrial systems running locally and industrial systems running in the cloud through the cloud. The reasons are:

[0007] 1. Since the account information and interface call information of the upstream and downstream of the industrial system cannot be determined, the industrial system that needs to be synchronized cannot be located. At the same time, the interface resources and docking modules of the industrial system are difficult to manage and reuse in a unified manner.

[0008] 2. The traditional cloud data content synchronization method is limited to one-time global synchronization, while ignoring changes in local data content; it lacks a step to check changes in the layout of data content.

[0009] 3. The traditional cloud data content synchronization method emphasizes backing up data in the cloud, rather than synchronizing two or more industrial systems. Two or more industrial systems can be deployed on the factory side, on the cloud side, or partly on the factory side and partly on the cloud side, but none of them are synchronized with a fixed database on the cloud. Summary of the invention

[0010] In view of the current status and shortcomings of the above-mentioned prior art, an object of the present invention is to provide a cloud data content synchronization distribution method in the industrial field.

[0011] A method for synchronously distributing cloud data content in the industrial field, building a data integration platform in the cloud, wherein the data integration platform is signal-connected to a factory end where industrial systems are deployed and a cloud application layer;

[0012] The interface call information exposed by each industrial system is uniformly registered on the data integration platform; the data integration platform declares the upstream and downstream industrial systems and their interface call information that need data integration in each data integration task in the form of data integration tasks;

[0013] The data integration platform selects the interface call information of the upstream and downstream industrial systems for data content docking, and then respectively calls the interface call information of different downstream systems for data distribution, completing the data content docking and synchronous distribution of the upstream and downstream industrial systems;

[0014] The data integration platform is provided with a connector; the connector is configured with a docking template of the upstream and downstream industrial systems: according to the interface call information of the upstream and downstream industrial systems, the upstream and downstream systems are logged in and connected, and the data content returned by the upstream system is obtained at the same time;

[0015] Every time the data content is connected, the data integration platform calls the connector, and the interaction of the upstream system is deposited in the data integration platform in the form of a connector. If there is a need to connect with the system in the future, the connector can be reused directly.

[0016] A method for synchronously distributing cloud data content in the industrial field includes the following steps:

[0017] Step S1, data integration preparation phase, including registration transactions of data transmission interface and registration transactions of data integration tasks;

[0018] The registration affairs of the data transmission interface include the management of interface call information: configuring the interface call information of the upstream and downstream industrial systems;

[0019] The registration transaction of the data integration task includes:

[0020] 1. Configuration of data integration tasks: Configure the basic information of data integration tasks; and select the industrial system and interface call information under the corresponding tenant according to the data integration requirements;

[0021] 2. Configuration of the data integration task execution cycle plan: Configure the data integration task execution cycle plan according to the real-time requirements of data integration;

[0022] Step S2, data integration execution phase, including execution transactions of data integration tasks;

[0023] The execution transactions of the data integration tasks include scheduling of data integration tasks, obtaining configuration information required for docking with the industrial system, obtaining login authority of the upstream industrial system and logging in, calling upstream interface call information and returning data content, obtaining login authority of the downstream industrial system to be adapted and logging in, and calling the interface address information of the downstream industrial system to be adapted for data distribution synchronization.

[0024] Furthermore, the registration transaction of the data transmission interface includes:

[0025] Step S1a1, tenant management: configure the tenant code of the data integration subject;

[0026] Step S1a2, management of industrial systems: declare the upstream and downstream industrial systems for data integration, and configure the account information of the upstream and downstream industrial systems for data transmission;

[0027] Step S1a3, management of interface call information: the interface call information includes the interface address information for acquiring data, the document information parsing field in the interface response, the interface response status field, and the interface response status value.

[0028] Furthermore, the registration transaction of the data integration task also includes the configuration of the interface field conversion scheme: confirming the upstream and downstream industrial systems and interface call information according to the data integration requirements, and configuring the interface field conversion scheme of the converter;

[0029] The execution transaction of the data integration task also includes data content conversion: the data integration platform is provided with a converter, which parses the data content of the upstream industrial system obtained by the connector, and converts the data content into data content compatible with the downstream industrial system according to the interface field conversion scheme.

[0030] Furthermore, the registration transaction of the data integration task also includes: configuration of the data integration task compensation mechanism: the compensation mechanism of the data integration task, including: discard mode, limited retry mode, or infinite retry mode: discard mode, indicating that no processing is performed after the data integration task fails: limited retry mode, indicating that the maximum number of retries needs to be configured, and the data integration task is restarted in the compensation thread after the data integration task fails until the data integration task succeeds or the maximum number of retries is reached: infinite retry mode, for the data content with the highest consistency, the data integration task will be retried after failure until it succeeds.

[0031] The method for synchronously distributing cloud data content in the industrial field also includes the following steps:

[0032] The data integration execution phase also includes compensation transactions for abnormal tasks:

[0033] Step S2b1, the data integration platform is provided with a log manager; the log manager manages the task log responsible for recording the number of synchronizations; before the data content distribution synchronization task starts, the initial value of the number of synchronizations is 0; the status value of the data content distribution synchronization task is in progress, and the number of synchronizations is +1; if the data content distribution synchronization task is completed and the interface responds successfully, the status of the data content distribution synchronization task is recorded in the task log as completed; if the data content distribution synchronization task is completed and the interface responds unsuccessfully, the status of the data content distribution synchronization task is recorded in the task log as failed; if the data content distribution synchronization task is abnormal or not completed, the task log is not changed, and the status of the data content distribution synchronization task is still in progress;

[0034] Step S2b2, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with the status value in progress, query whether the data content in the downstream system has been successfully synchronized, if successful, return the result and record it in the task log, if the data content is not successfully synchronized, return to step S2b1, and the data content distribution synchronization task enters the compensation task queue and waits for the task to start;

[0035] Step S2b3, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with a failed status, return to step S2b1, and the data content distribution synchronization task directly enters the compensation task queue and waits for task start;

[0036] In step S2b2 and step S2b3, the judgment criteria of whether the compensation task queue restarts the task and the restart times are the data integration task compensation mechanism in the background management.

[0037] Further, the execution transaction of the data integration task includes:

[0038] Step S2a1, scheduling of data integration tasks: the data integration platform is provided with a task manager for triggering and scheduling data integration tasks; when a data integration task is scheduled, the data integration task execution cycle plan and the data integration task matching the current time are selected, and a work thread is created;

[0039] Then, the data integration platform is provided with a task executor for loading and executing the data integration task, and the task executor loads the data integration task, configures and initializes various configuration information of the data integration task;

[0040] Step S2a2, obtaining the configuration information required for docking the industrial system: the data integration platform is provided with a connector; the connector receives the task configuration information loaded by the task executor, obtains the account information of the upstream industrial system and the downstream industrial system for data transmission according to the unique primary key ID of the data integration task, initializes the network access client of the upstream industrial system and the downstream industrial system, and then performs a pre-access to the upstream industrial system and the downstream industrial system, and checks whether the data transmission network is normal according to the response code returned by the network request: if the pre-access response request status code is 200, it means that the next step is passed; otherwise, it means that the request fails, and the result is returned and the log is recorded;

[0041] Step S2a3, obtaining login authority of the upstream industrial system and logging in: the connector integrates the interface call information of the upstream and downstream industrial systems according to the data configured in step S1a3, obtains the interface authority token of the calling interface and transmits it to the access client of the upstream industrial system, thereby logging in to the upstream industrial system; if the login is successful, proceed to the next step; if the login fails, return the result and record the log, and wait for the account information to be updated before restarting the task;

[0042] Step S2a4, calling the upstream interface call information and returning the data content: the connector calls the interface call information of the upstream industrial system, obtains the interface response status field and the interface response status value; analyzes the interface response status field, and processes the scheduling task according to the analysis result: if the interface response status value = the interface response status success value, the connector obtains the data content of the upstream industrial system, otherwise, returns the results respectively and records the log;

[0043] Step S2a5, data content conversion: the data integration platform is provided with a converter, which parses the data content of the upstream industrial system acquired by the connector, and converts the data content into data content compatible with the downstream industrial system according to the interface field conversion scheme;

[0044] Step S2a6, obtaining the login authority of the downstream industrial system to be adapted and logging in: the task executor, according to the interface address information of the downstream industrial system for obtaining data, logs in to the downstream industrial system to obtain the interface authority token for calling the interface and passes it to the access client of the downstream industrial system, thereby logging in to the downstream industrial system;

[0045] Step S2a7, call the interface address information of the downstream industrial system to be adapted for data distribution synchronization; the task executor executes the data content distribution synchronization task, parses and transforms the data content in step S2a5, calls the interface address information of the downstream system to complete data transmission, and determines whether the interface response is successful.

[0046] Furthermore, the data integration execution phase also includes data integration upstream and downstream data consistency verification transactions:

[0047] Set up an asynchronous thread, regularly query the interface call information of the upstream and downstream systems, obtain the data content of the documents in the upstream and downstream systems, and compare whether the data content of the documents in the upstream and downstream systems within the current synchronization time is consistent. If there is any inconsistency, jump to step S1 immediately.

[0048] This solution has the following advantages:

[0049] 1. Register the interface call information exposed by each industrial system to the data integration platform; manage the interface call information in a unified manner through the data integration platform, so as to facilitate the connection between upstream and downstream industrial systems.

[0050] 2. A connector is set up. Every time the data content is connected, the data integration platform calls the connector. The interaction of the upstream system is deposited in the data integration platform in the form of a connector. If there is a need to connect with the system in the future, the connector can be reused directly, thereby reducing the cost of repeated development and improving efficiency.

[0051] 3. In this solution, data conversion is not necessary. When the document formats between the upstream and downstream industrial systems are consistent, the data content of the upstream industrial system is directly distributed to the downstream industrial system; otherwise, data conversion is performed and the data content conversion is completed in the data integration platform, which reduces the threshold for data synchronization between different industrial systems.

[0052] 4. Regarding how to confirm the data content to be circulated between upstream and downstream industrial systems, this solution, when first connected, first converts and distributes the full data content to complete the first synchronization, and then performs data integration and upstream and downstream data consistency verification. For the newly modified data content during the operation of the industrial system, it is converted and distributed separately to maintain the consistency of the data content in the upstream and downstream industrial systems.

[0053] Therefore, this solution extracts the same business attributes of the manufacturing industry, reconstructs the organization, process, mechanism, etc., realizes the rapid configuration of customers in different industries, builds a parallel and open ecological platform, and provides a fast and convenient way for data integration between different industrial systems. It is suitable for scenarios where data needs to be connected with software services of multiple suppliers, solves the problem of data sharing between different systems, and improves the overall system efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a schematic diagram of synchronous distribution of data content between industrial systems in traditional solutions;

[0055] Figure 2 It is a module diagram of the cloud data integration platform;

[0056] Figure 3 This is a flow chart of this program. DETAILED DESCRIPTION

[0057] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0058] Meaning of terms:

[0059] Industrial system is the abbreviation of "industrial application service system". It refers to a management platform based on information technology and with a systematic management concept, which provides enterprises with R&D design (such as simulation platform CAE), production and manufacturing (such as production scheduling platform APS), business management (such as office automation system OA, enterprise resource planning system ERP), or operation and maintenance services (such as production equipment maintenance management system TPM) that are related to factory production activities and have data docking needs.

[0060] Data connection: Data connection is the transmission of data between different systems. Even if an isolated system has input a lot of data, its own role is limited. Only when it is associated with other systems and data is connected and transmitted between them can its real function and role be brought into play.

[0061] Figure 1 This is a schematic diagram of the synchronous distribution of data content between industrial systems in the traditional solution. Figure 1 As shown, a 1:1 data content synchronization distribution method is adopted between industrial systems. The financial software needs to be separately connected with the enterprise resource planning system ERP, the production information management system MES, and the office automation system OA to synchronize the distribution of data content; the product life cycle management system PLM and the lathe industrial control system also need to be separately connected with other industrial systems to synchronize the distribution of data content.

[0062] Figure 2 It is a module diagram of the cloud integration platform. This solution changes the traditional point-to-point data content synchronization distribution method between systems. By building a data integration platform, the standards for data content synchronization distribution are unified to the data integration platform. The data content flow between upstream and downstream industrial systems is configured on the data integration platform. The data content synchronization distribution process of the industrial system is decoupled and independently maintained and upgraded. It can flexibly adapt to docking scenarios with different business needs, for example, the docking of 1 industrial system with N industrial systems, or the docking of N industrial systems with N industrial systems, where N is a natural number less than the total number of industrial systems.

[0063] like Figure 2 As shown in the figure, a security firewall and data integration platform are built in the cloud.

[0064] The data integration platform is signal-connected to a factory side and a cloud application layer where industrial systems are deployed.

[0065] Since the industrial system is deployed in the cloud application layer, users no longer need to buy the industrial system and place it on their own server. They no longer need to go through a long installation and implementation cycle. As long as they register and pay, users can use the industrial system through self-configuration, saving users a lot of time and resources.

[0066] The data integration platform integrates a service engine unit responsible for unifying the data transmission interface and executing data integration tasks, and uniformly manages the industrial systems and interface call information that require data integration. It collects the document data content of the factory-side industrial system and / or the document data content of the cloud application layer industrial system through a unified data transmission interface, and transforms and distributes the data by executing data integration tasks, so as to achieve data consistency between upstream and downstream industrial systems and realize data synchronization between the factory-side industrial system and the cloud application layer industrial system.

[0067] The data integration platform includes a service engine unit and a background management unit;

[0068] The service engine module includes a running container, a task executor, a connector, and a converter. The task executor loads task configuration, synchronizes data connection, and compensates for abnormal tasks. The connector connects different industrial systems for different data integration scenarios, processes personalized industrial system connection processes, and returns data content after calling its data interface call information.

[0069] The converter processes the data content to meet the different data requirements of different target industrial systems, including data parsing and repackaging.

[0070] The background management unit includes a task manager, a connector manager, a converter manager, and a log manager.

[0071] The task manager is responsible for the initialization and startup of data integration tasks, including the task startup time, execution frequency, and failure compensation method.

[0072] The connector manager manages connectors in a unified manner, including docking account information, authentication method, interface path, and data format.

[0073] Converter manager, which manages converters in a unified manner, including the configuration of interface field conversion schemes.

[0074] The log manager records the entire life cycle of the scheduling task, providing a basis for the monitoring and compensation operations of subsequent abnormal tasks.

[0075] A method for connecting and synchronizing cloud data content in an industrial field comprises the following steps:

[0076] Step S1, data integration preparation phase, includes registration transactions of data transmission interface and registration transactions of data integration tasks.

[0077] Step S1a, registration transaction of the data transmission interface.

[0078] Step S1a1, tenant management: configure the tenant code of the data integration subject. The tenant is the subject of data integration. In the cloud-based industrial system, different data integration subjects need to be isolated to ensure the confidentiality of data and information.

[0079] Step S1a2, management of industrial systems: declare the upstream and downstream industrial systems for data integration, and configure the account information of the upstream and downstream industrial systems for data transmission. The account information includes the authorization code acquisition address, the system's public domain name (or IP), the login interface address, the login user name and password.

[0080] The authorization code acquisition address is divided into two modes: static authorization code acquisition address and dynamic authorization code acquisition address. When the industrial system to be connected is in static authorization code acquisition address mode, configure the docking system code, application id and application key app_secret; when the industrial system to be connected is in dynamic authorization code acquisition address mode, configure the docking system code and application id to obtain the interface address of the dynamic authorization key.

[0081] Step S1a3, management of interface call information: configure the interface call information of the upstream and downstream industrial systems; the interface call information includes the interface address information for acquiring data, the document information parsing field in the interface response, the interface response status field status, and the interface response status value resultData.status.

[0082] In this step, in order to achieve standardized reuse of data integration, the industrial systems and interface call information that require data integration are uniformly managed. When the 1:N or N:N docking scenario is subsequently implemented, the corresponding industrial system and interface call information can be directly selected to avoid repeated declaration of industrial system and interface call information.

[0083] Step S1b, registration transaction of data integration task:

[0084] In this method, when different industrial systems and interface call information are selected for data integration in different business scenarios, they are declared in the form of data integration tasks. In each data integration task, the industrial systems and interface call information of both parties of the data integration need to be selected. In the data integration task, the system and interface can be selected freely and flexibly, so as to achieve a data integration scenario that satisfies 1 (number of upstream industrial systems): N (number of downstream industrial systems, N is a natural number less than the total number of industrial systems) or N (number of upstream industrial systems): N (number of downstream industrial systems).

[0085] Step S1b1, configuration of data integration task: configure the basic information of data integration task; and select the industrial system and interface call information under the corresponding tenant according to the data integration requirements. The basic information of the data integration task includes the data integration task name and data integration task status. The industrial system has been configured in step S1a2. The interface call information has been configured in step S1a3.

[0086] Step S1b2, configuration of interface field conversion scheme: confirm the upstream and downstream industrial systems and interface call information according to the data integration requirements, and configure the interface field conversion scheme of the converter.

[0087] Interface field conversion scheme, including downstream system interface field list and field processing mode.

[0088] Field processing modes, including:

[0089] Field processing mode 1: Direct mapping, parsing the data content returned by the interface of the upstream industrial system according to the mapping relationship and directly assigning values.

[0090] Field processing mode 2: Enumeration mapping. When the upstream and downstream industrial systems use different enumerations to represent values ​​with the same meaning, configure the enumeration definition mapping of both parties to convert the data enumeration of the upstream industrial system into the enumeration definition of the downstream industrial system.

[0091] Field processing mode 3: association mapping. When the real value in the association field of the document in the upstream industrial system needs to be translated, configure the type, code and name of the association field, and query the interface address of the translation primary key id based on the code or name.

[0092] Field processing mode 4: default value. When the downstream industrial system requires this field but the upstream industrial system does not define a field with this meaning, the default value is used to fill in the value of the field directly.

[0093] Step S1b3, configuration of a data integration task execution cycle plan: configuring a data integration task execution cycle plan according to the real-time requirements of data integration;

[0094] For the periodic plan, select the time interval for executing the data integration task. You can select month m (1-12), week w (1-7), day D (1-31L), or hour H (0-23). ​​The minimum granularity supported is the hour H level. The trigger mechanism of the data integration task is executed according to the periodic plan.

[0095] The month m configuration item of the time interval for executing the task indicates that the month for executing the task is configured based on the month dimension. If you need to select multiple months, you can select multiple months separated by English commas. For example, if the monthly m configuration value is 3,6,9,12, it means that the task needs to be executed in March, June, September and December.

[0096] The week w configuration item of the time interval for executing tasks indicates the days of the week when the tasks are to be executed. If you need to select multiple items, you can select multiple items separated by commas. For example, if the week w configuration value is 6,7, it means that the task needs to be executed on Saturday and Sunday of the current week.

[0097] The D configuration item of the time interval for executing tasks indicates the number of days in the month for executing tasks. If you need to select multiple items, you can select multiple items and separate them with English commas. The letter L is used when the number of days in a month is not fixed and the end of the month is selected for execution. For example, a data integration task needs to be configured to be executed at the end of each month. The days of the month are 28, 29, 30, and 31, which cannot be unified. In this case, you can configure D=1L to indicate execution on the last day of each month.

[0098] The hour H configuration item of the time interval for executing tasks indicates that the time of the day for executing tasks is configured in hours. If you need to select multiple items, you can use English commas to separate them.

[0099] Step S1b4, configuration of compensation mechanism for data integration tasks: configuring compensation mechanism for data integration tasks.

[0100] The compensation mechanism of the data integration task includes: discard mode, limited retry mode, or infinite retry mode. Discard mode means that no processing is performed after the data integration task fails. Limited retry mode means that the maximum number of retries needs to be configured. After the data integration task fails, the data integration task is restarted in the compensation thread until the data integration task succeeds or the maximum number of retries is reached. Infinite retry mode, for the data content with the highest consistency, the data integration task will be retried until it succeeds after failure.

[0101] Step S2, data integration execution phase, includes data integration task execution transactions, abnormal task compensation transactions, and data integration upstream and downstream data consistency verification transactions.

[0102] Step S2a, execution transaction of the data integration task.

[0103] Step S2a1, scheduling of data integration tasks: the data integration platform is provided with a task manager for triggering and scheduling data integration tasks; when a data integration task is scheduled, the data integration task execution cycle plan and the data integration task matching the current time are selected, and a work thread is created;

[0104] Then, the data integration platform is provided with a task executor for loading and executing the data integration task. The task executor loads the data integration task, configures and initializes various configuration information of the data integration task, including obtaining all configuration information configured in step S1 according to the unique primary key id of the data integration task.

[0105] Step S2a2, obtaining the configuration information required for docking with the industrial system: the data integration platform is provided with a connector; the connector accepts the task configuration information loaded by the task executor, obtains the account information of the upstream industrial system and the downstream industrial system of the data transmission configured in step S1a2 according to the unique primary key id of the data integration task, initializes the network access client of the upstream industrial system and the downstream industrial system, and then performs a pre-access to the upstream industrial system and the downstream industrial system, and checks whether the data transmission network is normal according to the response code returned by the network request: if the pre-access response request status code is 200, it means that the next step is passed; otherwise, it means that the request failed, and the result is returned and the log is recorded.

[0106] Step S2a3, obtain the login permission of the upstream industrial system and log in: the connector integrates the interface call information of the upstream and downstream industrial systems according to the data configured in step S1a3, obtains the interface permission token of the calling interface and passes it to the access client of the upstream industrial system, thereby logging in to the upstream industrial system; if the login is successful, proceed to the next step; if the login fails, return the result and record the log, and wait for the account information to be updated before restarting the task.

[0107] Step S2a4, call the upstream interface call information and return the data content: the connector calls the interface call information of the upstream industrial system, obtains the interface response status field status, the interface response status value resultData.status; analyzes the interface response status field status, and processes the scheduling task according to the analysis result: if the interface response status value resultData.status = the interface response status success value "success", the connector obtains the data content of the upstream industrial system, otherwise, returns the results separately and records the log.

[0108] Step S2a5, data content conversion: the data integration platform is provided with a converter, which parses the data content of the upstream industrial system acquired by the connector, and converts the data content into data content compatible with the downstream industrial system according to the interface field conversion scheme.

[0109] According to the interface call information configured in step S1a3, the document information resultData.data is obtained from the document information parsing field in the interface response.

[0110] According to the interface field conversion scheme configured in step S1b2, the document information resultData.data is converted and encapsulated.

[0111] The following is a list of examples of field processing modes for connecting upstream and downstream. In Tables 1 to 4, columns 1 and 2 are lists of downstream system interface fields, columns 4 and 5 are lists of upstream system interface fields, and column 3 is the field processing mode of upstream and downstream fields.

[0112] Table 1. Field processing table of material data

[0113]

[0114] Table 2. Field processing table for purchase order data

[0115]

[0116] Table 3. Field processing table of production order data

[0117]

[0118] Table 4. Field processing table of sales order data

[0119]

[0120] In Tables 1 to 4, the upstream and downstream systems are compared for field names. If they are identical, partially identical, or related synonyms, direct mapping can be used. If the upstream and downstream industrial systems use different enumerations to represent values ​​with the same meaning, enumeration mapping is used. If the attributes are interrelated, associative mapping is used. If one side is undefined, the default value is used.

[0121] There are four types of field processing modes, namely direct mapping, enumeration mapping, association mapping and default value. When the downstream system field processing mode is direct mapping, the value of this field is directly taken from the value of the upstream system field in the same row (i.e., column 4 of Table 1 to Table 4). When the downstream system field processing mode is enumeration mapping, the value of this field is obtained by direct mapping and then converted through enumeration mapping. When the downstream system field processing mode is association mapping, the value of this field is first obtained by directly mapping the field value of the upstream system, and then the primary key id corresponding to the value is queried according to the configured interface address. When the downstream system field processing mode is default value, this field directly takes the configured value, such as enableMto=1.

[0122] After selecting the upstream and downstream industrial systems and interface call information, the converter automatically matches according to the information of the upstream and downstream interface fields. The matching rules are arranged from high to low in terms of priority as follows:

[0123] 1. The field encoding is the same;

[0124] 2. The Chinese names of the fields are the same;

[0125] 3. The configuration method selected in the field mapping library (template for built-in field mapping tables);

[0126] 4. The field types are the same;

[0127] After automatic matching of field mapping, fields that have not been mapped and some fields that are incorrectly mapped need to be corrected through manual intervention.

[0128] Step S2a6, obtain the login authority of the downstream industrial system to be adapted and log in: the task executor, according to the interface address information of the downstream industrial system configured in step S1a3 to obtain data, logs in to the downstream industrial system to obtain the interface authority token for calling the interface and passes it to the access client of the downstream industrial system, thereby logging in to the downstream industrial system;

[0129] Step S2a7, call the interface address information of the downstream industrial system to be adapted for data distribution synchronization; the task executor executes the data content distribution synchronization task, parses and transforms the data content in step S2a5, calls the interface address information of the downstream system to complete data transmission, and determines whether the interface response is successful.

[0130] Step S2b, the compensation transaction of the abnormal task, includes the following steps:

[0131] Step S2b1, the data integration platform is provided with a log manager; the log manager manages the task log responsible for recording the number of synchronizations; before the data content distribution synchronization task starts, the initial value of the number of synchronizations is 0; the status value of the data content distribution synchronization task is in progress, and the number of synchronizations is +1; if the data content distribution synchronization task is completed and the interface responds successfully, the status of the data content distribution synchronization task is recorded in the task log as completed; if the data content distribution synchronization task is completed and the interface responds unsuccessfully, the status of the data content distribution synchronization task is recorded in the task log as failed; if the data content distribution synchronization task is abnormal or not completed, the task log is not changed, and the status of the data content distribution synchronization task is still set to in progress.

[0132] Step S2b2, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with a status value of ongoing, and query whether the data content in the downstream system has been synchronized successfully. If successful, return the result and record it in the task log. If the data content is not synchronized successfully, return to step S2b1, and the data content distribution synchronization task enters the compensation task queue and waits for the task to start.

[0133] Step S2b3, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with a failed status, return to step S2b1, and the data content distribution synchronization task directly enters the compensation task queue and waits for the task to start.

[0134] In step S2b2 and step S2b3, the judgment criteria for whether the compensation task queue restarts the task and the restart times are the data integration task compensation mechanism in the background management; the data integration task compensation mechanism has been configured in step S1b4.

[0135] Step S2c: Data integration upstream and downstream data consistency verification transaction.

[0136] In order to ensure the consistency of upstream and downstream data content, an asynchronous thread is set to regularly query the interface call information of the upstream and downstream systems, obtain the data content of the documents in the upstream and downstream systems, and compare whether the data content of the documents in the upstream and downstream systems within the current synchronization time is consistent. If there is any inconsistency, jump to step S1a2 immediately.

[0137] This solution provides a fast and convenient way for system data integration. After adopting this method, the interaction of the upstream system is deposited in the data integration platform in the form of a connector. If there is a need to connect with the system in the future, the connector can be directly reused to interact with it in a configured manner. The conversion scheme for the mapping required for the document input of the downstream system is saved in the system in the form of a converter. The document input of the system can be directly processed by this solution in the future.

[0138] The traditional method of data docking requires writing customized code each time to meet personalized needs, which is invasive to the original system and will have a certain impact on the stability and security of the original system. This method uses the converter configuration method to convert personalized needs into field configuration mapping. At the same time, each docking requires the intervention of the development process, which will affect the efficiency of software implementation and increase the customer's software procurement cost. This method uses the connector and converter sedimentation method to allow connectors and converters to be reused and reduce the development burden.

[0139] This method is suitable for scenarios where data integration with systems of different service providers is required. It solves the data sharing problem between different systems, reduces the cost of docking between systems, and improves the overall system efficiency.

[0140] Common scenario: Data integration and docking are required between factory local software A and cloud software B.

[0141] For ease of explanation, the configuration items involved in this case are displayed in a table. In actual use, they are completed on the system's backend management page.

[0142] Data integration completes the following docking tasks:

[0143] 1. Synchronize document a from the factory's local industrial system A to the cloud-based industrial system B.

[0144] 2. Push document b from cloud-based industrial system B to the factory's local industrial system A.

[0145] Example analysis:

[0146] Example 1: Synchronize materials in the factory-side ERP software to the cloud-based MES system. Data integration tasks require prefabricated connectors for docking systems and converters for data mapping.

[0147] Step 1.1, configure the information of the ERP system.

[0148] Table 5. Information table of ERP system

[0149]

[0150] Step 1.2, configure the software information of the MES system.

[0151] Table 6. Information table of MES system

[0152]

[0153] Step 1.3, configure the interface call information of the data source interface.

[0154] Table 7. Information table of interface call information of data source interface

[0155]

[0156] Step 1.4, configure the interface call information of the target data interface.

[0157] Table 8. Information table of interface call information of target data interface

[0158]

[0159] Step 1.5, configure the interface field conversion scheme.

[0160] Table 9. Information table of interface field conversion scheme

[0161]

[0162] Step 1.6, configure the data integration task compensation mechanism.

[0163] Table 10. Information table of data integration task compensation mechanism

[0164]

[0165] Step 1.7, actively trigger the data integration task and execute it.

[0166] The ERP system data results are as follows: In order to briefly explain the data transfer process, the following data case only gives some key fields of the document

[0167] {

[0168] "status":"success",

[0169] "data": {

[0170] "allcount": 2,

[0171] "retcount": 1,

[0172] "datas":[

[0173] {

[0174] "parentvo": {

[0175] "invcode": "010102",

[0176] "invname": "Seamless Steel Pipe 0125",

[0177] "invspec": "1*6",

[0178] "invclcode": "0101",

[0179] "invclname": "Finished Product"

[0180] },

[0181] "childrenvo": [

[0182] {

[0183] "meascode": "05",

[0184] "measname": "tons",

[0185] "fixedflag": true,

[0186] "mainmeasrate": 6

[0187] } ]

[0189] } ]

[0191] }

[0192] }

[0193] After data mapping, the cloud MES system interface input parameters are as follows:

[0194] . {

[0195] "materials": [

[0196] {

[0197] "enableBatch": 0,

[0198] "enableFifo": 0,

[0199] "enableMto": 1,

[0200] "materialCode": "010102",

[0201] "materialName": "Seamless Steel Pipe 0125",

[0202] "materialTypeId": 1110001,

[0203] "unitGroupId": 1100001,

[0204] "unitId": 1120001,

[0205] "useStatus": 1

[0206] } ]

[0208] }

[0209] This example briefly describes the whole process of using this solution configuration to synchronize the data of the industrial system on the factory side with the industrial system on the cloud side.

[0210] The method of precipitating system docking connectors and converters mentioned in this solution is to extract the system connection and personalized data assignment process in the traditional system docking process as a docking template prefabricated in the system, and use the background configuration input method to shield the personalized difference part for the uncertain part of the docking process or the part that changes with the docking scenario.

[0211] It is worth noting that in this solution, step S1b2 and step S2a5 are not necessary. When the document formats between the upstream and downstream industrial systems are consistent, the data content of the upstream industrial system is directly and synchronously distributed to the downstream industrial system; otherwise, data conversion is performed, and the conversion of data content is completed in the data integration platform, thereby lowering the threshold for data synchronization between different industrial systems.

[0212] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the claims attached to the present invention.

Claims

1. A method for synchronously distributing cloud data content in the industrial field, characterized in that: Building a data integration platform in the cloud; the data integration platform has signal connections with the factory side and cloud application layer of the industrial system deployed; The interface call information exposed by each industrial system is uniformly registered on the data integration platform; the data integration platform declares the upstream and downstream industrial systems and their interface call information that need data integration in each data integration task in the form of data integration tasks; The data integration platform selects the interface call information of the upstream and downstream industrial systems for data content docking, and then respectively calls the interface call information of different downstream systems for data distribution, completing the data content docking and synchronous distribution of the upstream and downstream industrial systems; The data integration platform is provided with a connector and a task manager that triggers and schedules data integration tasks; the connector is configured with a docking template for upstream and downstream industrial systems: according to the interface call information of the upstream and downstream industrial systems, it logs in and connects to the upstream and downstream systems, and obtains the data content returned by the upstream system; Each time data content is connected, the data integration platform calls the connector. The interaction of the upstream system is deposited in the data integration platform in the form of a connector. If there is a need to connect with the upstream system later, the connector can be reused directly. A method for synchronously distributing cloud data content in the industrial field includes the following steps: Step S1, data integration preparation phase, including registration transactions of data transmission interface and registration transactions of data integration tasks; Step S2, data integration execution phase, including data integration task execution transactions and data integration upstream and downstream data consistency verification transactions; The execution transaction of the data integration task includes calling the upstream interface call information and returning the data content and calling the interface address information of the downstream industrial system to be adapted to perform data distribution synchronization; Calling the upstream interface call information and returning the data content: the connector calls the interface call information of the upstream industrial system, obtains the interface response status field and the interface response status value; analyzes the interface response status field, and processes the scheduling task according to the analysis result: if the interface response status value = the interface response status success value, the connector obtains the data content of the upstream industrial system, otherwise, returns the results respectively and records the log; Call the interface address information of the downstream industrial system to be adapted for data distribution synchronization; the task executor executes the data content distribution synchronization task, parses and transforms the data content, calls the interface address information of the downstream system to complete the data transmission, and determines whether the interface response is successful; Data integration upstream and downstream data consistency verification transaction: set up an asynchronous thread, regularly query the interface call information of the upstream and downstream systems, obtain the data content of the documents in the upstream and downstream systems, and compare whether the data content of the documents in the upstream and downstream systems within the current synchronization time is consistent. If there is any inconsistency, jump to step S1 immediately.

2. The method for synchronously distributing cloud data content in the industrial field according to claim 1, characterized in that: The following steps are involved: In step S1, the registration transaction of the data transmission interface includes the management of interface call information: configuring the interface call information of the upstream and downstream industrial systems; The registration transaction of the data integration task includes:

1. Configuration of data integration tasks: configure the basic information of data integration tasks; And select the industrial system and interface call information under the corresponding tenant according to the data integration requirements; 2. Configuration of the data integration task execution cycle plan: Configure the data integration task execution cycle plan according to the real-time requirements of data integration; In step S2, the execution transaction of the data integration task also includes the scheduling of the data integration task, the acquisition of the configuration information required for the docking industrial system, the acquisition of the login authority of the upstream industrial system and the login, and the acquisition of the login authority of the downstream industrial system to be adapted and the login.

3. The method for synchronously distributing cloud data content in the industrial field according to claim 2, characterized in that: The registration transaction of the data transmission interface includes: Step S1a1, tenant management: configure the tenant code of the data integration subject; Step S1a2, management of industrial systems: declare the upstream and downstream industrial systems for data integration, and configure the account information of the upstream and downstream industrial systems for data transmission; Step S1a3, management of interface call information: the interface call information includes the interface address information for acquiring data, the document information parsing field in the interface response, the interface response status field, and the interface response status value.

4. The method for synchronously distributing cloud data content in the industrial field according to claim 3, characterized in that: The registration transaction of the data integration task also includes the configuration of the interface field conversion scheme: confirming the upstream and downstream industrial systems and interface call information according to the data integration requirements, and configuring the interface field conversion scheme of the converter; The execution transaction of the data integration task also includes data content conversion: the data integration platform is provided with a converter, which parses the data content of the upstream industrial system obtained by the connector, and converts the data content into data content compatible with the downstream industrial system according to the interface field conversion scheme.

5. The method for synchronously distributing cloud data content in the industrial field according to claim 3, characterized in that: The registration transaction of the data integration task also includes: configuration of the data integration task compensation mechanism: the compensation mechanism of the data integration task, including: at least one of the discard mode, limited retry mode and infinite retry mode: the discard mode means that no processing is performed after the data integration task fails: the limited retry mode means that the maximum number of retries needs to be configured, and the data integration task is restarted in the compensation thread after the data integration task fails until the data integration task succeeds or the maximum number of retries is reached: the infinite retry mode, for the data content with the highest consistency, the data integration task is retried after failure until it succeeds.

6. The method for synchronously distributing cloud data content in the industrial field according to claim 5, characterized in that: The following steps are also included: The data integration execution phase also includes compensation transactions for abnormal tasks: Step S2b1, the data integration platform is provided with a log manager; the log manager manages the task log responsible for recording the number of synchronizations; before the data content distribution synchronization task starts, the initial value of the number of synchronizations is 0; the status value of the data content distribution synchronization task is in progress, and the number of synchronizations is +1; if the data content distribution synchronization task is completed and the interface responds successfully, the status of the data content distribution synchronization task is recorded in the task log as completed; if the data content distribution synchronization task is completed and the interface responds unsuccessfully, the status of the data content distribution synchronization task is recorded in the task log as failed; if the data content distribution synchronization task is abnormal or not completed, the task log is not changed, and the status of the data content distribution synchronization task is set to in progress; Step S2b2, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with the status value in progress, query whether the data content in the downstream system has been successfully synchronized, if successful, return the result and record it in the task log, if the data content is not successfully synchronized, return to step S2b1, and the data content distribution synchronization task enters the compensation task queue and waits for the task to start; Step S2b3, regularly start the data synchronization compensation thread, scan the task log, select the data content distribution synchronization task with a failed status, return to step S2b1, and the data content distribution synchronization task directly enters the compensation task queue and waits for task start; In step S2b2 and step S2b3, the judgment criteria for whether the compensation task queue restarts the task and the restart times are the data integration task compensation mechanism in the background management.

7. The method for synchronously distributing cloud data content in the industrial field according to claim 3, characterized in that: The execution transaction of the data integration task includes: Step S2a1, scheduling of data integration tasks: when a data integration task is scheduled, a data integration task execution cycle plan and a data integration task matching the current time are selected, and a working thread is created; Then, the data integration platform is provided with a task executor for loading and executing the data integration task, and the task executor loads the data integration task, configures and initializes various configuration information of the data integration task; Step S2a2, obtaining the configuration information required for docking the industrial system: the data integration platform is provided with a connector; the connector receives the task configuration information loaded by the task executor, obtains the account information of the upstream industrial system and the downstream industrial system for data transmission according to the unique primary key ID of the data integration task, initializes the network access client of the upstream industrial system and the downstream industrial system, and then performs a pre-access to the upstream industrial system and the downstream industrial system, and checks whether the data transmission network is normal according to the response code returned by the network request: if the pre-access response request status code is 200, it means that the next step is passed; otherwise, it means that the request fails, and the result is returned and the log is recorded; Step S2a3, obtaining login authority of the upstream industrial system and logging in: the connector integrates the interface call information of the upstream and downstream industrial systems according to the data configured in step S1a3, obtains the interface authority token of the calling interface and transmits it to the access client of the upstream industrial system, thereby logging in to the upstream industrial system; if the login is successful, proceed to the next step; if the login fails, return the result and record the log, and wait for the account information to be updated before restarting the task; Step S2a4, calling the upstream interface to call information and return data content; Step S2a5, data content conversion: the data integration platform is provided with a converter, which parses the data content of the upstream industrial system acquired by the connector, and converts the data content into data content compatible with the downstream industrial system according to the interface field conversion scheme; Step S2a6, obtaining the login authority of the downstream industrial system to be adapted and logging in: the task executor, according to the interface address information of the downstream industrial system for obtaining data, logs in to the downstream industrial system to obtain the interface authority token for calling the interface and passes it to the access client of the downstream industrial system, thereby logging in to the downstream industrial system; Step S2a7, calling the interface address information of the downstream industrial system to be adapted to perform data distribution synchronization.

Citation Information

Patent Citations

  • Data synchronization method for cloud storage, data synchronization server and cloud storage system

    CN107040564A

  • Protocol conversion platform for industrial internet identifier analysis and data connection method

    CN113055378A

  • Data interface integration configuration method convenient for docking with external system

    CN114281500A