Method and apparatus for data synchronization

CN117349379BActive Publication Date: 2026-09-15THE 404 COMPANY LIMITED CHINA NAT NUCLEAR
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311319860.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2026-09-15
Estimated Expiration
2043-10-12

AI Technical Summary

Technical Problem

[0005]本发明的目的在于提供一种数据同步的方法及装置,旨在解决数据同步的问题

Benefits of technology

[0070] 1. This invention designs and implements a method for synchronizing structured data in a business system between a PC business system and an APP business application in a physically isolated environment. This solves the problem that structured data cannot be synchronized between a PC business system and an APP business application in a physically isolated environment, and breaks down the data silos of APP business applications in mobile terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349379B_ABST
    Figure CN117349379B_ABST
Patent Text Reader

Abstract

The application discloses a data synchronization method and device, comprising the following steps: confirming release when data audit is passed, obtaining release data; pulling the release data to the local to obtain local data, persisting the local data to obtain persistent data, storing the persistent data into a first data file in the mobile terminal storage medium, and updating the data synchronization state in the protocol file; analyzing the first specific data file to obtain first structured data, and sending the first structured data to the mobile terminal APP business application; obtaining second data, persisting the second data into a second data file, and updating the data synchronization state in the protocol file; reading the protocol file in the second data file, identifying that there is data to be synchronized to the PC business system, analyzing the second data file to obtain second structured data, and sending the second structured data to the desktop program; and sending the second structured data to the PC business application, and completing the data synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data synchronization, and in particular to a method and apparatus for data synchronization. Background Technology

[0002] According to the provisions of the Law on Guarding State Secrets, classified information systems must not be directly or indirectly connected to the Internet and must be physically isolated. Classified computers are prohibited from using external devices with wireless capabilities. Therefore, the wireless modules of mobile terminals used on the production site have been removed. The connection and data synchronization between the mobile terminal and the desktop machine must go through an adapter and then file transfer is carried out by manually copying files. Data transmission cannot be carried out through wireless networks or communication protocols commonly used in wired networks such as USB, serial port, Ethernet, and MBus. This makes data synchronization between mobile terminals and desktop information systems extremely inconvenient in a physically isolated environment.

[0003] Even if data is transferred by manually copying files, only the stored files can be copied; the problem of data synchronization between the structured data stored in the database within the mobile app and the information system on the desktop can not be solved.

[0004] The above constraints have led to the data silo problem of mobile terminals, which seriously affects the use and promotion of mobile terminals in physically isolated environments. Summary of the Invention

[0005] The purpose of this invention is to provide a method and apparatus for data synchronization, aiming to solve the problem of data synchronization.

[0006] This invention provides a data synchronization method, comprising:

[0007] S1. Obtain the first data that the PC business system needs to synchronize to the APP business application, review the security and compliance of the first data, and confirm the release if the first data passes the review, and obtain the release data;

[0008] S2. Retrieve the release data to the local machine to obtain local data, persist the local data to obtain persistent data, store the persistent data in the first data file in the mobile terminal storage medium, and update the data synchronization status in the protocol file at the same time.

[0009] S3. Parse the first specific data file to obtain the first structured data, and send the first structured data to the mobile APP business application;

[0010] S4. Obtain the second data that the APP business application needs to synchronize to the PC business system, persist the second data to the second data file, and update the data synchronization status in the protocol file at the same time.

[0011] S5. Read the protocol file in the second data file, identify that there is data that needs to be synchronized to the PC business system, parse the second data file to obtain the second structured data, and send the second structured data to the desktop program.

[0012] S6. Send the structured data to the PC business application to complete the data synchronization.

[0013] This invention also provides a data synchronization apparatus, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the above method.

[0014] The embodiments of the present invention can realize a method for synchronizing data between mobile and desktop information systems in a physically isolated environment.

[0015] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0017] Figure 1 This is a flowchart of a data synchronization method according to an embodiment of the present invention;

[0018] Figure 2 This is a hardware schematic diagram of a data synchronization method according to an embodiment of the present invention;

[0019] Figure 3 This is a schematic diagram of the data flow of a data transaction system based on the data synchronization method of this invention.

[0020] Figure 4 This is a schematic diagram of a data transaction system illustrating the data synchronization method of this invention.

[0021] Figure 5 This is a schematic diagram illustrating the process of synchronizing data from a PC business system to an APP business application using the data synchronization method of this invention.

[0022] Figure 6This is a schematic diagram illustrating the process of synchronizing data from an APP business application to a PC business system using the data synchronization method of this invention.

[0023] Figure 7 This is a schematic diagram of a data synchronization device according to an embodiment of the present invention. Detailed Implementation

[0024] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] Method Implementation Examples

[0026] According to an embodiment of the present invention, a data synchronization method is provided. Figure 1 This is a flowchart of a data synchronization method according to an embodiment of the present invention, such as... Figure 1 As shown, it specifically includes:

[0027] S1. Obtain the first data that the PC business system needs to synchronize to the APP business application, review the security and compliance of the first data, and confirm the release if the first data passes the review, and obtain the release data;

[0028] S2. Retrieve the release data to the local machine to obtain local data, persist the local data to obtain persistent data, store the persistent data in the first data file in the mobile terminal storage medium, and update the data synchronization status in the protocol file at the same time.

[0029] S3. Parse the first specific data file to obtain the first structured data, and send the first structured data to the mobile APP business application;

[0030] S4. Obtain the second data that the APP business application needs to synchronize to the PC business system, persist the second data to the second data file, and update the data synchronization status in the protocol file at the same time.

[0031] S5. Read the protocol file in the second data file, identify that there is data that needs to be synchronized to the PC business system, parse the second data file to obtain the second structured data, and send the second structured data to the desktop program.

[0032] S6. Send the second structured data to the PC business application to complete the data synchronization.

[0033] S1 specifically includes: the PC business application calls the data temporary storage interface provided by the desktop B / S program to temporarily store the data that needs to be synchronized to the APP business application, and the data administrator reviews the security and compliance of the first data through the desktop B / S program. If the first data passes the review, it is confirmed to be released and the released data is obtained.

[0034] S2 specifically includes: connecting the mobile terminal to the dedicated machine via a dedicated machine adapter; after the desktop C / S program detects the insertion of the mobile terminal, it calls the interface of the desktop B / S program to pull the confirmation and release data to the local machine and persist it to the first data file of the mobile terminal, while updating the data synchronization status in the protocol file.

[0035] S3 specifically includes: unplugging the mobile terminal from the dedicated machine, opening the APP application management program, the APP application management program starting to detect the protocol file of the first data file, searching for the first data file according to the rules and parsing and extracting the first structured data, and sending it to the APP business application.

[0036] S4 specifically includes: the APP business application calls the interface of the APP application management program to obtain the second data that the APP business application needs to synchronize to the PC business system, persists the second data to the second data file, and updates the data synchronization status in the protocol file.

[0037] S5 specifically includes: connecting the mobile terminal to the dedicated machine via a dedicated adapter; the desktop C / S program detects the insertion of the mobile terminal, reads the protocol file in the second data file, recognizes that there is data that needs to be synchronized to the PC business system, parses the data file to obtain the second structured data, calls the interface of the desktop B / S program, and sends the second structured data to the desktop B / S program for temporary storage.

[0038] S6 specifically includes: the data administrator logs into the desktop B / S program, verifies the security of the data to be synchronized and confirms its release, calls the interface address registered in the desktop B / S program by the PC business system to send the second structured data, and finally completes the data synchronization.

[0039] The specific implementation method is as follows:

[0040] This invention addresses the problem of data silos between mobile terminal apps and desktop information systems in physically isolated environments, where data synchronization between apps on mobile terminals and desktop information systems is difficult due to security concerns. It proposes a method and system for data synchronization between mobile and desktop information systems in physically isolated environments.

[0041] This method utilizes information technology to provide a way to synchronize and transmit structured data between mobile and desktop devices. It also designs a data transaction system that includes a desktop B / S program, a desktop C / S program, and an APP application management program. Combined with a custom protocol file for file transfer, it achieves bidirectional synchronization of structured data between APP business applications and PC business systems.

[0042] 2. Technical Solution

[0043] The method of this invention is based on the field of domestic physical isolation environment. The implementation of the data synchronization method requires the use of two main parts: hardware and software.

[0044] Figure 2 This is a hardware schematic diagram of a data synchronization method according to an embodiment of the present invention;

[0045] The hardware components of this invention are as follows: Figure 2 As shown, it mainly includes domestically produced mobile terminals, dedicated machines, and dedicated machine adapters. The domestically produced mobile terminals are primarily used to run APP application management programs and APP business applications. The dedicated machine adapter is a confidential computer and mobile storage media security management system, often referred to as a "three-in-one" system. Its function is to disable all external devices not registered with the computer. Only registered and authorized domestically produced mobile terminals can complete file copying between the domestically produced mobile terminal and the dedicated machine via the adapter. The dedicated machine is mainly used to run desktop client / server programs.

[0046] The software component of this invention mainly includes a desktop B / S program, a desktop C / S program, and an APP application management program. The C / S program is used for identifying and processing protocol files and data files in the storage medium after the mobile terminal is inserted into the dedicated device. The APP application management program is used for identifying and processing protocol files and data files in the storage medium when the domestic mobile terminal is offline. The two software programs work together to automatically synchronize data based on files.

[0047] This invention patent mainly focuses on the construction and processing method of data synchronization protocol files. It also provides a set of data transaction system interfaces for persisting data into data files and reading data from data files for APP business applications and PC business systems. The data transaction system identifies and processes the protocol files and data files, and finally completes the bidirectional synchronization of structured data between APP business applications and PC business systems in a physically isolated environment.

[0048] One embodiment of the present invention discloses a data synchronization method, the synchronization method comprising the following steps:

[0049] Step 1: Collect data from the PC business system that needs to be synchronized to the APP business application;

[0050] PC business applications call the data storage interface provided by the desktop B / S program to temporarily store the data that needs to be synchronized to the APP business application. The data administrator reviews the security and compliance of the data to be synchronized through the desktop B / S program and confirms its release.

[0051] Step 2: Persist the data confirmed for release in Step 1 to the dedicated machine;

[0052] When a domestically produced mobile terminal is connected to a dedicated device via a dedicated adapter, the desktop C / S program detects the insertion of the mobile terminal and calls the interface of the desktop B / S program to pull the structured data confirmed in step 1 to the local machine and persist it to a specific data file in a specific folder under the storage medium of the domestically produced mobile terminal. At the same time, the data synchronization status in the protocol file is updated.

[0053] Step 3: Parse the persistent data file from Step 2 and pass it to the APP business application;

[0054] The domestically produced mobile terminal is unplugged from the dedicated machine, and then the APP application management program is opened. The APP application management program starts to detect the protocol file in the storage medium, finds the data file according to the rules, parses and extracts the structured data, and sends it to the APP business application.

[0055] Step 4: Collect the data that the APP business application needs to synchronize to the PC business system;

[0056] The APP business application calls the interface of the APP application management program to send the structured data that needs to be synchronized to the PC business system to the APP application management program for persistence to a data file in a specific folder of the storage medium, and updates the data synchronization status in the protocol file.

[0057] Step 5: Parse the data file from Step 4 and send the data to the desktop B / S program for temporary storage.

[0058] When a domestically produced mobile terminal is connected to a dedicated machine via a dedicated adapter, the desktop client / server program detects the insertion of the domestically produced mobile terminal and begins to read the protocol file in a specific folder on the storage medium. If it recognizes that there is data that needs to be synchronized to the PC business system, it parses the data file to obtain structured data, calls the interface of the desktop client / server program, and sends the data to the desktop client / server program for temporary storage.

[0059] Step 6: Send the data temporarily stored in the desktop B / S program to the PC business application;

[0060] The data administrator logs into the desktop B / S program, reviews the security of the data to be synchronized and confirms its release, calls the interface address registered in the desktop B / S program by the PC business system to send structured data, and finally completes the data synchronization.

[0061] Another embodiment of the present invention discloses a data transaction system, which includes the following key components:

[0062] Step 1: A desktop B / S application

[0063] This desktop B / S program is used to collect and temporarily store data that the PC business system needs to synchronize to the corresponding APP business application, as well as data that the APP business application needs to synchronize to the PC business system. The data administrator can review the security and compliance of the data in this B / S program and decide whether to allow the data synchronization.

[0064] Step 2: A desktop client / server application

[0065] The desktop client / server application calls the interface of the desktop client / server application to obtain the data that needs to be synchronized to the APP business application, and persists the data to the mobile terminal storage medium. At the same time, it can identify the data files sent from the APP business application to the PC business system in the mobile terminal storage medium, and call the interface of the desktop client / server application to indirectly synchronize the structured data to the PC business system.

[0066] Step 3: An APP application management program

[0067] The APP application management program can identify and parse data files sent from the PC business system to the APP business application, and send the parsed data back to the APP business application to complete data synchronization. At the same time, it can receive data storage requests from the APP business application, persist the data to data files, and indirectly synchronize it to the PC business system.

[0068] 3. Beneficial effects

[0069] This invention, by utilizing information technology, has the following beneficial effects:

[0070] 1. This invention designs and implements a method for synchronizing structured data in a business system between a PC business system and an APP business application in a physically isolated environment. This solves the problem that structured data cannot be synchronized between a PC business system and an APP business application in a physically isolated environment, and breaks down the data silos of APP business applications in mobile terminals.

[0071] 2. This invention designs and implements a data transaction system capable of synchronizing structured data between PC business systems and APP business applications in a physically isolated environment. This system enables various business information systems to synchronize data between PC and APP terminals in a physically isolated environment, further expanding the business application scenarios of the APP terminal and promoting the widespread use of APP applications in physically isolated environments. It facilitates the flow of data between PC systems and APP applications, making subsequent data processing and statistics more centralized and convenient.

[0072] like Figure 2 As shown in the figure, the hardware device on which this invention patent depends can be implemented by combining the hardware in the figure with the methods and systems in this invention patent.

[0073] Figure 3 This is a schematic diagram of the data flow of a data transaction system based on the data synchronization method of this invention.

[0074] The diagram shows the data flow of the data trading system. Data flows from the PC environment through the data trading system and method disclosed in this invention to the APP business application of the domestic mobile terminal. The data trading system includes several parts: desktop B / S program, desktop C / S program, and APP application management program.

[0075] Figure 4 This is a schematic diagram of a data transaction system illustrating the data synchronization method of this invention.

[0076] like Figure 4 As shown in the figure, the distribution of several programs of the data transaction system in this invention patent in the network and the interface call connection between the programs are illustrated.

[0077] Figure 5 This is a schematic diagram illustrating the process of synchronizing data from a PC business system to an APP business application using the data synchronization method of this invention.

[0078] like Figure 5 As shown, in this invention, the process of synchronizing data from the PC business system to the APP business application involves the PC business system sending data to the client B / S program, the data administrator approving the data in the client B / S program, the client C / S program pulling the data and persisting it into a data file, and the APP application management program parsing the data file and sending the data to the APP business application.

[0079] Figure 6 This is a schematic diagram illustrating the process of synchronizing data from an APP business application to a PC business system using the data synchronization method of this invention.

[0080] like Figure 6As shown, in this invention, the process of synchronizing data from the APP business application to the PC business system involves the APP business application sending data to the APP application management program, the APP application management program persisting the data into a data file, the client C / S program parsing the data file and sending the data to the client B / S program, the data administrator approving the data in the client B / S program, and after approval, sending the data to the PC business system.

[0081] Device Example 1

[0082] This invention provides a data synchronization device, such as... Figure 7 As shown, it includes: a memory 70, a processor 72, and a computer program stored on the memory 70 and executable on the processor 72. When the computer program is executed by the processor, it implements the steps in the above method embodiments.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions to the technical solutions of the embodiments of the present invention do not cause the essence of the corresponding technical solutions to deviate from the scope of the present solution.

Claims

1. A method for data synchronization in a physically isolated environment, characterized in that, include: S1. The desktop B / S program obtains the first data that the PC business system needs to synchronize to the APP business application, reviews the security and compliance of the first data, and confirms the release if the first data passes the review, thus obtaining the released data. S2. The desktop C / S program pulls the release data to the local machine to obtain local data, persists the local data to obtain persistent data, stores the persistent data in the first data file in the mobile terminal's storage medium, and updates the data synchronization status in the protocol file at the same time. S3. The mobile terminal's APP application management program parses the first specific data file to obtain the first structured data, and sends the first structured data to the mobile terminal APP business application. S4. The APP application management program obtains the second data that the APP business application needs to synchronize to the PC business system, persists the second data to the second data file, and updates the data synchronization status in the protocol file at the same time. S5. The desktop C / S program reads the protocol file in the second data file, identifies that there is data that needs to be synchronized to the PC business system, parses the second data file to obtain the second structured data, and sends the second structured data to the desktop B / S program. S6, the desktop B / S program sends the second structured data to the PC business application to complete the data synchronization.

2. The method according to claim 1, characterized in that, S1 specifically includes: the PC business application calls the data temporary storage interface provided by the desktop B / S program to temporarily store the data that needs to be synchronized to the APP business application, and the data administrator reviews the security and compliance of the first data through the desktop B / S program. If the first data passes the review, it is confirmed to be released and the released data is obtained.

3. The method according to claim 2, characterized in that, S2 specifically includes: connecting the mobile terminal to the dedicated machine via a dedicated machine adapter; after the desktop C / S program detects the insertion of the mobile terminal, it calls the interface of the desktop B / S program to pull the confirmation and release data to the local machine and persist it to the first data file of the mobile terminal, while updating the data synchronization status in the protocol file.

4. The method according to claim 3, characterized in that, S3 specifically includes: unplugging the mobile terminal from the dedicated machine, opening the APP application management program, the APP application management program starting to detect the protocol file of the first data file, searching for the first data file according to the rules and parsing and extracting the first structured data, and sending it to the APP business application.

5. The method according to claim 4, characterized in that, S4 specifically includes: the APP business application calling the interface of the APP application management program to obtain the second data that the APP business application needs to synchronize to the PC business system, persisting the second data to the second data file, and updating the data synchronization status in the protocol file at the same time.

6. The method according to claim 5, characterized in that, S5 specifically includes: connecting the mobile terminal to the dedicated machine via a dedicated machine adapter; the desktop C / S program detects the insertion of the mobile terminal, reads the protocol file in the second data file, identifies that there is data that needs to be synchronized to the PC business system, parses the data file to obtain the second structured data, calls the interface of the desktop B / S program, and sends the second structured data to the desktop B / S program for temporary storage.

7. The method according to claim 6, characterized in that, S6 specifically includes: the data administrator logs into the desktop B / S program, verifies the security of the data to be synchronized and confirms its release, calls the interface address registered by the PC business system in the desktop B / S program to send the second structured data, and finally completes the data synchronization.

8. A data synchronization device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the data synchronization method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an implementation program for information transmission, which, when executed by a processor, implements the steps of the data synchronization method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Mobile terminal based on data packet and method for synchronizing business system data

    CN102917020A

  • Method and system for penetrating and pushing to-be-handled service data based on network interaction

    CN115460281A