Industrial Internet Data Synchronization System
By monitoring the edge side network status in real time in the industrial Internet platform, recording the on-off time, and automatically synchronizing data after the network is restored, the incompleteness problem caused by data transmission interruption is solved and the integrity of the data is ensured.
Patent Information
- Application Number
- CN202011545292.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-12-23
AI Technical Summary
Existing industrial Internet platforms cause data transmission interruptions during network failures, leading to problems with incomplete data.
By recording the network on-and-off time in the resumption task table of the edge-side relational database, the network status is monitored in real time, and after the network is restored, the edge-side relational data and real-time data are automatically synchronized to the center side, using the TCP protocol to connect the sender and The receiving end network monitoring module and synchronization module configure the monitoring cycle, timeout settings and receiving end information to ensure data integrity.
It realizes automatic completion of missing data after network failure recovery, maintains data integrity, and solves the problem of data transmission interruption on the industrial Internet platform.
Smart Images

Figure CN112702427B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial Internet, and specifically relates to an industrial Internet data synchronization system. Background Art
[0002] The Industrial Internet is an open, global network that connects people, data and machines, and belongs to the category of the pan-Internet. It is a high degree of integration of the global industrial system with advanced computing, analysis, sensor technology and the Internet. The essence of the Industrial Internet is to closely connect and integrate equipment, production lines, factories, suppliers, products and customers through an open, global industrial-grade network platform, and efficiently share various elements of resources in the industrial economy, thereby reducing costs and increasing efficiency through automated and intelligent production methods. It can help the manufacturing industry extend the industrial chain and form cross-device, cross-system, cross-factory and cross-regional interconnection, thereby improving efficiency and promoting the intelligence of the entire manufacturing service system. It is also conducive to promoting the integrated development of the manufacturing industry, realizing the leapfrog development between the manufacturing industry and the service industry, and enabling the efficient sharing of various elements of resources in the industrial economy.
[0003] The existing industrial Internet platform has completed the main functional development of the application layer, and the platform layer and infrastructure layer are deployed locally. When the network where the data acquisition software is located (collectively referred to as the edge side) fails, the data processed by the data acquisition software will not be synchronized to the company's server or cloud (collectively referred to as the center side), resulting in missing data during the network failure and incomplete data caused by data transmission interruption. Summary of the invention
[0004] The purpose of the present invention is to provide an industrial Internet data synchronization system to solve the problem of incomplete data caused by network failure during data transmission on an industrial Internet platform.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] An industrial Internet data synchronization system, characterized in that it is used to monitor the on-off status of the edge side network in real time and record the on-off time in the retransmission task table of the edge side relational database; when the network is restored, the edge side relational data and real-time data are synchronized to the center side according to the on-off time of the edge side network in the retransmission task table; it includes a sending end running on the edge side and a receiving end running on the center side;
[0007] The transmitting end is used for:
[0008] 1. Monitor the network connectivity between the sender and the receiver, and record the network connection and disconnection time points in the retransmission task table of the edge-side relational database;
[0009] 2. When the network is unobstructed, the relational data in the edge-side relational database is sent to the receiving end, and the real-time data in the edge-side real-time database during the network disconnection period is sent to the receiving end;
[0010] The receiving end is used for:
[0011] 1. Cooperate with the sender to conduct network monitoring;
[0012] 2. Receive relational data and real-time data from the sender, and store them in the relational database and real-time database on the center side after processing.
[0013] Furthermore, it includes a network monitoring module, which mainly monitors the network connectivity between the sending end and the receiving end based on the configuration information. When the network status changes, the interruption time and recovery time are stored in the retransmission task table of the edge side relational database, and the real-time data during the network disconnection period in the edge side real-time database is marked.
[0014] Furthermore, the network monitoring module includes a sending end network monitoring module and a receiving end network monitoring module respectively running on the sending end and the receiving end, and the sending end network monitoring module and the receiving end network monitoring module are connected using the TCP protocol.
[0015] Further,
[0016] Perform the following configuration on the sending end network monitoring module:
[0017] 1) Configure the monitoring cycle,
[0018] 2) Configure timeout settings,
[0019] 3) Configure TCP receiving end information,
[0020] The specific process of the sending end network monitoring module:
[0021] 1) The network monitoring module at the sending end starts a monitoring thread, which executes the monitoring task at the specified frequency;
[0022] 2) The monitoring task creates a TCP client to connect to the TCP server of the receiving network monitoring module and send a message;
[0023] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the central network where the receiver is located are interrupted, and the sender network monitoring module will store the current system time in the retransmission task table of the edge relationship database as the interruption time;
[0024] 4) When the network is restored, the network monitoring module at the sending end will store the current system time in the retransmission task table of the edge-side relational database as the recovery time, and mark the real-time data during the network disconnection period in the edge-side real-time database;
[0025] Perform the following configuration on the receiving end network monitoring module:
[0026] 1) Configure timeout settings,
[0027] 2) Configure TCP receiving end information,
[0028] The specific process of the receiving end network monitoring module is as follows: the receiving end network monitoring module creates a TCP server to receive the message sent by the sending end network monitoring module and responds immediately; if no connection is received from the sending end within the time set by the timeout setting, it means that the network between the center side and the edge side is not connected.
[0029] Furthermore, it includes a relational data synchronization module, which takes timed synchronization for the resuming task table in the edge-side relational database. Whenever relational data is stored in the relational database, a corresponding synchronization task record will be generated and stored in the resuming task table in the relational database. When the network is unobstructed, the task table will be patrolled at a set interval and the acquired relational data will be sent to the receiving end. After the receiving end receives the relational data, it will be synchronized to the central-side relational database.
[0030] Furthermore, the relational data synchronization module includes a sending-end relational data synchronization module and a receiving-end relational data synchronization module respectively running on the sending end and the receiving end. The sending-end relational data synchronization module and the receiving-end relational data synchronization module use the TCP protocol to confirm the network status and transmit data.
[0031] Further,
[0032] Configure the sender relationship data synchronization module as follows:
[0033] 1) Configure the synchronization period,
[0034] 2) Configure timeout settings,
[0035] 3) Configure the relationship task table information,
[0036] 4) Configure TCP receiving end information,
[0037] The specific process of the sending end relationship data synchronization module:
[0038] 1) The sending end relationship data synchronization module starts a thread, which executes the data synchronization task according to the specified delay frequency;
[0039] 2) Create a TCP client to connect to the TCP server of the receiving-end relational data synchronization module and send a message;
[0040] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution;
[0041] 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed, then a certain number of records are queried from the relationship task table, converted into json data and encrypted, and then sent to the receiving end through the TCP protocol;
[0042] 5) After receiving the response message, the TCP client deletes the transmitted record from the relational task table and continues to wait for the next round of execution;
[0043] Configure the receiving-side relational data synchronization module as follows:
[0044] 1) Configure the relationship task table information,
[0045] 2) Configure TCP receiving end information,
[0046] The specific process of the receiving-end relational data synchronization module is as follows: the receiving-end relational data synchronization module creates a TCP server, and after receiving the data, first decrypts the received data, then extracts the SQL information, and finally uses JdbcTemplate to execute it into the central-side relational database.
[0047] Furthermore, it includes a real-time data retransmission module. When the network is unobstructed, the real-time data retransmission module queries the task record from the retransmission task table, extracts the real-time data during the network disconnection period in the edge side real-time database, and sends the real-time data to the receiving end; after the receiving end receives the real-time data, it synchronizes the real-time data to the center side real-time database according to the synchronization path.
[0048] Furthermore, the real-time data retransmission module includes a sending end real-time data retransmission module and a receiving end real-time data retransmission module respectively running on the sending end and the receiving end. The sending end real-time data retransmission module and the receiving end real-time data retransmission module use the TCP protocol to confirm the network status and transmit data.
[0049] Further,
[0050] Perform the following configuration on the real-time data retransmission module at the sender:
[0051] 1) Configure the synchronization period,
[0052] 2) Configure timeout settings,
[0053] 3) Configure the transmission frequency,
[0054] 4) Configure TCP receiving end information,
[0055] 5) Configure real-time database information,
[0056] The specific process of the real-time data retransmission module at the sending end:
[0057] 1) The real-time data transmission module at the sending end starts a thread, which executes the data synchronization task according to the specified delay frequency;
[0058] 2) Create a TCP client to connect to the TCP server of the real-time data transmission module at the receiving end and send a message;
[0059] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution;
[0060] 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed. The first record after the network disconnection time is queried from the edge side real-time database. According to the network disconnection time and the recovery time, the real-time data within the network disconnection time period is retrieved with one second as the query range, and converted into the format required by the real-time database interface, and sent to the receiving end via the TCP protocol; after that, the data within the next second is cyclically retrieved for processing until the recovery time;
[0061] 5) After receiving the response message, the TCP client deletes the processed real-time task record from the relational task table and continues to wait for the next round of execution;
[0062] Perform the following configuration on the receiving end real-time data retransmission module:
[0063] 1) Configure the real-time database receiving interface,
[0064] 2) Configure TCP receiving end information,
[0065] The specific process of the real-time data retransmission module at the receiving end is as follows: the real-time data retransmission module at the receiving end creates a TCP server, and after receiving the data, calls the real-time database receiving interface to process the data to achieve synchronization of the real-time data.
[0066] The beneficial effects of the present invention are as follows: the method and system of the present invention can monitor the network status of the edge side in real time, and when the network failure is restored, it can automatically synchronize the data of the edge side to the center side, thereby completing the data missing during the network failure and maintaining the integrity of the data. It is used to solve the problem of incomplete data caused by network failure during data transmission on the industrial Internet platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is a schematic diagram of the industrial Internet data synchronization system.
[0068] Figure 2 It is a specific flow chart of the network monitoring module at the sending end.
[0069] Figure 3 It is a specific flow chart of the sending-side relational data synchronization module.
[0070] Figure 4 It is a specific flow chart of the real-time data retransmission module at the sending end. DETAILED DESCRIPTION
[0071] In order to better understand the present invention, the technical solution of the present invention is further described below in conjunction with embodiments.
[0072] An industrial Internet data synchronization system, such as Figure 1 , which is used to monitor the on / off status of the edge side network in real time, and record the on / off time (including interruption time and recovery time) in the retransmission task table of the edge side relational database; when the network is restored, the edge side relational data and real-time data are synchronized to the center side according to the on / off time of the edge side network in the retransmission task table.
[0073] It includes a transmitter running on the edge side and a receiver running on the center side.
[0074] The transmitting end is used for:
[0075] 1. Monitor the network connectivity between the sender and the receiver, and record the network connection and disconnection time points in the retransmission task table of the edge-side relational database;
[0076] 2. When the network is unobstructed, the relational data in the edge-side relational database (MySQL) is sent to the receiving end, and the real-time data in the edge-side real-time database (InfluxDB) during the network disconnection period is sent to the receiving end;
[0077] The receiving end is used for:
[0078] 1. Cooperate with the sender to perform network monitoring;
[0079] 2. Receive relational data and real-time data from the sender, and store them in the relational database and real-time database on the center side after processing.
[0080] It may also include a network monitoring module, a relational data synchronization module and a real-time data transmission module.
[0081] Network monitoring module
[0082] Mainly based on the configuration information, the network connectivity between the sending end and the receiving end is monitored. When the network status changes, the interruption time and recovery time are stored in the retransmission task table of the edge side relational database, and the real-time data during the network disconnection period in the edge side real-time database is marked. The network monitoring module includes a sending end network monitoring module and a receiving end network monitoring module respectively running on the sending end and the receiving end, and the sending end network monitoring module and the receiving end network monitoring module are connected using the TCP protocol.
[0083] Perform the following configuration on the sending end network monitoring module:
[0084] 1) Configure the monitoring period, unit: seconds,
[0085] 2) Configure timeout settings, unit: seconds,
[0086] 3) Configure the TCP receiving end information: IP and port number.
[0087] Perform the following configuration on the receiving end network monitoring module:
[0088] 1) Configure timeout settings, unit: seconds,
[0089] 2) Configure the TCP receiving end information: IP and port number.
[0090] The specific process of the sending end network monitoring module (such as Figure 2 ):
[0091] 1) Start the sending end network monitoring module through the UI interface, and the sending end network monitoring module starts a monitoring thread, which executes the monitoring task at the specified frequency;
[0092] 2) The monitoring task creates a TCP client to connect to the TCP server of the receiving network monitoring module and send a simple network monitoring message;
[0093] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the central network where the receiver is located are interrupted, and the sender network monitoring module will store the current system time in the retransmission task table of the edge relationship database as the interruption time;
[0094] 4) When the network is restored, the network monitoring module at the sending end will store the current system time in the retransmission task table of the edge-side relational database as the recovery time, and mark the real-time data during the network disconnection period in the edge-side real-time database;
[0095] 5) When the network is interrupted or restored, the network status is displayed in the UI interface in the form of icons and text.
[0096] The specific process of the receiving end network monitoring module:
[0097] The receiving end network monitoring module creates a TCP server to receive the message sent by the sending end network monitoring module and responds immediately; if no connection is received from the sending end within the time set by the timeout setting, it means that the network between the center side and the edge side is not connected, and the network status is displayed in the receiving end UI interface in the form of icons and text.
[0098] Relational data synchronization module
[0099] The relational data synchronization module adopts timed synchronization for the retransmission task table in the edge-side relational database. Whenever relational data is stored in the relational database, a corresponding synchronization task record will be generated and stored in the retransmission task table in the relational database. When the network is unobstructed, the task table will be patrolled at the set interval and the acquired relational data will be sent to the receiving end. After the receiving end receives the relational data, it will be synchronized to the central-side relational database. The relational data synchronization module includes a sending-end relational data synchronization module and a receiving-end relational data synchronization module respectively running on the sending end and the receiving end. The sending-end relational data synchronization module and the receiving-end relational data synchronization module use the TCP protocol to confirm the network status and transmit data.
[0100] Configure the sender relationship data synchronization module as follows:
[0101] 1) Configure the synchronization period, unit: seconds,
[0102] 2) Configure timeout settings, unit: seconds,
[0103] 3) Configure the relationship task table information: relationship database IP and port number, user name and password,
[0104] 4) Configure the TCP receiving end information: IP and port number.
[0105] Configure the receiving-side relational data synchronization module as follows:
[0106] 1) Configure the relationship task table information: relationship database IP and port number, user name and password,
[0107] 2) Configure the TCP receiving end information: IP and port number.
[0108] The specific process of the sending end relationship data synchronization module (such as Figure 3 ):
[0109] 1) Start the relationship data synchronization module on the sender through the UI interface. The relationship data synchronization module on the sender starts a thread, which executes the data synchronization task according to the specified delay frequency;
[0110] 2) Create a TCP client to connect to the TCP server of the receiving-end relational data synchronization module and send a simple network monitoring message;
[0111] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution;
[0112] 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed, then a certain number of records (up to 40) are queried from the relationship task table, converted into json data, encrypted, and sent to the receiving end through the TCP protocol;
[0113] 5) After the receiving end processes the data normally, it will give a response; after the TCP client receives the response message, it deletes the transmitted record from the relationship task table and continues to wait for the next round of execution.
[0114] The specific process of the receiving end relationship data synchronization module is as follows:
[0115] The receiving-end relational data synchronization module creates a TCP server. After receiving the data, it first decrypts the received data, then extracts SQL information from the decrypted data, and finally uses JdbcTemplate to execute it into the central-side relational database, thereby realizing data synchronization.
[0116] Real-time data transmission module
[0117] When the network is unobstructed, the real-time data retransmission module queries the task record from the retransmission task table (the record refers to the record of the real-time data during the network disconnection period in the marked edge-side real-time database), extracts the real-time data during the network disconnection period in the edge-side real-time database according to the configuration information, and sends the real-time data to the receiving end according to the target address and port in the configuration information; after the receiving end receives the real-time data, it synchronizes the real-time data to the center-side real-time database according to the synchronization path in the interface configuration information. The real-time data retransmission module includes a sending-end real-time data retransmission module and a receiving-end real-time data retransmission module respectively running on the sending end and the receiving end, and the sending-end real-time data retransmission module and the receiving-end real-time data retransmission module use the TCP protocol to confirm the network status and transmit data.
[0118] Perform the following configuration on the real-time data retransmission module at the sender:
[0119] 1) Configure the synchronization period, unit: seconds,
[0120] 2) Configure timeout settings, unit: seconds,
[0121] 3) Configure the transmission frequency, unit: seconds,
[0122] 4) Configure TCP receiving end information: IP and port number,
[0123] 5) Configure real-time database information: database IP and port number, user name and password, database name and table name.
[0124] Perform the following configuration on the receiving end real-time data retransmission module:
[0125] 1) Configure the real-time database receiving interface,
[0126] 2) Configure the TCP receiving end information: IP and port number.
[0127] The specific process of the real-time data retransmission module at the sending end (such as Figure 4 ):
[0128] 1) Start the real-time data retransmission module on the sender through the UI interface. The real-time data retransmission module on the sender starts a thread, which executes the data synchronization task according to the specified delay frequency;
[0129] 2) Create a TCP client to connect to the TCP server of the real-time data transmission module at the receiving end and send a simple network monitoring message;
[0130] 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution;
[0131] 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed. The first record after the network disconnection time is queried from the edge side real-time database. According to the network disconnection time and the recovery time, the real-time data within the network disconnection time period is retrieved with one second as the query range, and converted into the format required by the real-time database interface, and sent to the receiving end via the TCP protocol; after that, the data within the next second is cyclically retrieved for processing until the recovery time;
[0132] 5) After the receiving end processes the data normally, it will give a response; after the TCP client receives the response message, it deletes the processed real-time task record from the relationship task table and continues to wait for the next round of execution.
[0133] The specific process of the real-time data retransmission module at the receiving end is as follows:
[0134] The receiving end real-time data retransmission module creates a TCP server, and after receiving the data, calls the real-time database receiving interface to process the data, thereby realizing the synchronization of the real-time data.
[0135] The above description is only an application embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention still fall within the protection scope of the present invention.
Claims
1. An industrial Internet data synchronization system, characterized in that: Used to monitor the on / off status of the edge side network in real time and record the on / off time in the retransmission task table of the edge side relational database; When the network is restored, the edge-side relational data and real-time data are synchronized to the center side according to the on-off time of the edge-side network in the retransmission task table; including the sending end running on the edge side and the receiving end running on the center side; The transmitting end is used for:
1. Monitor the network connectivity between the sender and the receiver, and record the network connection and disconnection time points in the retransmission task table of the edge-side relational database; 2. When the network is unobstructed, the relational data in the edge-side relational database is sent to the receiving end, and the real-time data in the edge-side real-time database during the network disconnection period is sent to the receiving end; The receiving end is used for:
1. Cooperate with the sender to conduct network monitoring; 2. Receive relational data and real-time data from the sender, and store them in the relational database and real-time database on the center side after processing; The specific process of the real-time data retransmission module at the sending end is as follows: 1) Start the real-time data retransmission module on the sender through the UI interface. The real-time data retransmission module on the sender starts a thread, which executes the data synchronization task according to the specified delay frequency; 2) Create a TCP client to connect to the TCP server of the real-time data retransmission module on the receiving end and send a simple network monitoring message; 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution; 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed. The first record after the network disconnection time is queried from the edge side real-time database. According to the network disconnection time and recovery time, the real-time data within the network disconnection time period is retrieved with one second as the query range, and converted into the format required by the real-time database interface, and sent to the receiving end via the TCP protocol; after that, the data within the next second is cyclically retrieved for processing until the recovery time; 5) After the receiving end processes the data normally, it will give a response; after the TCP client receives the response message, it deletes the processed real-time task record from the relationship task table and continues to wait for the next round of execution.
2. The industrial Internet data synchronization system according to claim 1, characterized in that: It includes a network monitoring module, which mainly monitors the network connectivity between the sender and the receiver based on the configuration information. When the network status changes, the interruption time and recovery time are stored in the resume task table of the edge side relational database, and the real-time data during the network disconnection period is marked in the edge side real-time database.
3. The industrial Internet data synchronization system according to claim 2, characterized in that: The network monitoring module comprises a sending end network monitoring module and a receiving end network monitoring module respectively running on the sending end and the receiving end, and the sending end network monitoring module and the receiving end network monitoring module are connected by using the TCP protocol.
4. The industrial Internet data synchronization system according to claim 3 is characterized in that: Perform the following configuration on the sending end network monitoring module: 1) Configure the monitoring cycle, 2) Configure timeout settings, 3) Configure TCP receiving end information, The specific process of the sending end network monitoring module: 1) The network monitoring module at the sending end starts a monitoring thread, which executes the monitoring task at the specified frequency; 2) The monitoring task creates a TCP client to connect to the TCP server of the receiving network monitoring module and send messages; 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the central network where the receiver is located are interrupted. The sender network monitoring module will store the current system time in the retransmission task table of the edge relational database as the interruption time; 4) When the network is restored, the network monitoring module at the sending end will store the current system time in the retransmission task table of the edge-side relational database as the recovery time, and mark the real-time data during the network disconnection period in the edge-side real-time database; Perform the following configuration on the receiving end network monitoring module: 1) Configure timeout settings, 2) Configure TCP receiving end information, The specific process of the receiving end network monitoring module is as follows: the receiving end network monitoring module creates a TCP server to receive the message sent by the sending end network monitoring module and responds immediately; if no connection is received from the sending end within the time set by the timeout setting, it means that the network between the center side and the edge side is not connected.
5. The industrial Internet data synchronization system according to claim 4, characterized in that: It includes a relational data synchronization module, which adopts timed synchronization for the retransmission task table in the edge-side relational database. Whenever relational data is stored in the relational database, a corresponding synchronization task record will be generated and stored in the retransmission task table in the relational database. When the network is unobstructed, the task table will be patrolled at the set interval and the acquired relational data will be sent to the receiving end. After the receiving end receives the relational data, it will be synchronized to the central-side relational database.
6. The industrial Internet data synchronization system according to claim 5, characterized in that: The relationship data synchronization module includes a sending end relationship data synchronization module and a receiving end relationship data synchronization module respectively running on the sending end and the receiving end. The sending end relationship data synchronization module and the receiving end relationship data synchronization module use the TCP protocol to confirm the network status and transmit data.
7. The industrial Internet data synchronization system according to claim 6, characterized in that: Configure the sender relationship data synchronization module as follows: 1) Configure the synchronization period, 2) Configure timeout settings, 3) Configure the relationship task table information, 4) Configure TCP receiving end information, The specific process of the sending end relationship data synchronization module: 1) The sending-side relation data synchronization module starts a thread, which executes the data synchronization task according to the specified delay frequency; 2) Create a TCP client to connect to the TCP server of the receiving-end relational data synchronization module and send a message; 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution; 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed, then a certain number of records are queried from the relationship task table, converted into json data, encrypted, and sent to the receiving end through the TCP protocol; 5) After receiving the response message, the TCP client deletes the transmitted record from the relational task table and continues to wait for the next round of execution; Configure the receiving-side relational data synchronization module as follows: 1) Configure the relationship task table information, 2) Configure TCP receiving end information, The specific process of the receiving-end relational data synchronization module is as follows: the receiving-end relational data synchronization module creates a TCP server, and after receiving the data, first decrypts the received data, then extracts the SQL information, and finally uses JdbcTemplate to execute it into the central-side relational database.
8. The industrial Internet data synchronization system according to claim 4, characterized in that: It includes a real-time data retransmission module. When the network is unobstructed, the real-time data retransmission module queries the task record from the retransmission task table, extracts the real-time data during the network disconnection period in the edge side real-time database, and sends the real-time data to the receiving end; after the receiving end receives the real-time data, it synchronizes the real-time data to the central side real-time database according to the synchronization path.
9. The industrial Internet data synchronization system according to claim 8, characterized in that: The real-time data retransmission module comprises a sending end real-time data retransmission module and a receiving end real-time data retransmission module respectively running on the sending end and the receiving end. The sending end real-time data retransmission module and the receiving end real-time data retransmission module use the TCP protocol to confirm the network status and transmit data.
10. The industrial Internet data synchronization system according to claim 9, characterized in that: Perform the following configuration on the real-time data retransmission module at the sender: 1) Configure the synchronization period, 2) Configure timeout settings, 3) Configure the transmission frequency, 4) Configure TCP receiving end information, 5) Configure real-time database information, The specific process of the real-time data retransmission module at the sending end: 1) The real-time data retransmission module at the sending end starts a thread, which executes the data synchronization task according to the specified delay frequency; 2) Create a TCP client to connect to the TCP server of the real-time data retransmission module on the receiving end and send a message; 3) If the TCP client cannot connect to the TCP server, or the waiting time for the response message from the TCP server exceeds the timeout setting, the edge network where the sender is located and the center network where the receiver is located are disconnected, and no data is sent, and the client continues to wait for the next round of execution; 4) If the TCP client is connected to the TCP server, it means that the network is unobstructed. The first record after the network disconnection time is queried from the edge side real-time database. According to the network disconnection time and recovery time, the real-time data within the network disconnection time period is retrieved with one second as the query range, and converted into the format required by the real-time database interface, and sent to the receiving end via the TCP protocol; after that, the data within the next second is cyclically retrieved for processing until the recovery time; 5) After receiving the response message, the TCP client deletes the processed real-time task record from the relational task table and continues to wait for the next round of execution; Perform the following configuration on the receiving end real-time data retransmission module: 1) Configure the real-time database receiving interface, 2) Configure TCP receiving end information, The specific process of the real-time data retransmission module at the receiving end is as follows: the real-time data retransmission module at the receiving end creates a TCP server, and after receiving the data, calls the real-time database receiving interface to process the data to achieve synchronization of the real-time data.
