A field operation robot and intranet platform data synchronization method and system
By deploying synchronization services and clients on the intranet platform, mobile terminals, and field robots, and utilizing USB and LAN communication, the isolation problem of data synchronization between field robots and the intranet platform is solved, achieving efficient and secure data transmission and management.
Patent Information
- Application Number
- CN202510953782.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2045-07-11
AI Technical Summary
Data synchronization between on-site robots and the intranet platform suffers from isolation issues, leading to difficulties in data exchange, requiring extensive manual intervention, low security, and a lack of effective offline and reverse synchronization mechanisms.
Synchronization services and clients are deployed on the intranet platform, mobile terminals, and field robots, respectively. Data is synchronized bidirectionally via USB and LAN communication. File transfer is performed using MTP and HTTP protocols, and file integrity is verified using MD5 values.
It enables data synchronization without a public network connection, improving data security and transmission reliability, reducing manual intervention, increasing operational efficiency and data consistency, and reducing operational error rate and cost.
Smart Images

Figure CN120455475B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of robot data synchronization, and particularly relates to a field operation robot and intranet platform data synchronization method and system. BACKGROUND
[0002] At present, there is a significant isolation problem between the communication of the field operation robot and the intranet platform. The robot is usually located in the field and cannot directly exchange data with the intranet platform through the network. The existing solution mainly relies on the field technician to connect the robot network through the PC, complete the import and export of the robot storage file through the control interface, transfer the file to the intranet computer through the U disk, and finally manually complete the file upload to the intranet platform. The main defects are as follows:
[0003] The technical personnel need to have certain computer operation ability and need to be skilled in operating the interface software, which causes high quality requirements for the field personnel, and only those who have undergone professional training can be competent, which not only increases the training cost but also increases the labor cost. 2) The technical personnel need to screen various storage files, which is time-consuming and prone to errors, and the operation efficiency is low. 3) The data cannot be effectively controlled through manual export through the interface, and there is a certain risk in data security. 4) The existing technology lacks effective offline and reverse synchronization mechanism in data transmission, and cannot conveniently realize complete synchronization and management of data.
[0004] For example, but not limited to, the prior art document 1 (CN115239240A) discloses a mobile robot remote monitoring system and method, and the edge end and the cloud platform end are connected through the external network communication, which is used to send a data synchronization request to the cloud platform end. However, this network architecture means that the cloud platform end is exposed in the external network environment, which has security risks and does not meet the network security control requirements.
[0005] For example, the prior art document 2 (CN103227774A) discloses an internal and external network data synchronization method of a power operation site management and control system. The operation site management and control external network server needs to first transmit data to the mobile client through the 3G public network, then inserts the synchronization messenger tool into the mobile device through the interface, and dumps the data on the mobile device to the synchronization messenger tool by clicking the mobile device button. Finally, the synchronization messenger tool is inserted into the intranet client through the interface, and a series of operations are performed to synchronize the data back to the intranet risk management and control system. However, using the 3G public network will also expose the data in the external network environment, which has security risks and does not meet the network security control requirements. SUMMARY
[0006] In order to solve the problems in the prior art, the application provides a field operation robot and intranet platform data synchronization method and system, solves the problem that the isolation between the field operation robot and the intranet platform cannot be synchronized in time through the conventional network, reduces the labor cost, and improves the operation efficiency and data security.
[0007] The application adopts the following technical scheme.
[0008] The first aspect of the application provides a field operation robot and intranet platform data synchronization method, comprising:
[0009] The intranet platform is deployed with an intranet platform synchronization service, the mobile terminal is deployed with a data synchronization client, and the field operation robot is deployed with a data synchronization microservice, and the corresponding services are started after the deployment is completed; wherein the intranet platform is connected with the mobile terminal through a USB, and the mobile terminal is connected with the field operation robot through a local area network WIFI;
[0010] The first data synchronization process is executed between the intranet platform and the mobile terminal based on the intranet platform synchronization service and the data synchronization client; wherein the first data synchronization process comprises: establishing a USB communication connection between the intranet platform and the mobile terminal, configuring the data synchronization client as an MTP mode, synchronizing data between the intranet platform and the mobile terminal based on the MTP protocol, disconnecting the USB connection by the intranet platform synchronization service, and storing the synchronized data by the data synchronization client;
[0011] The second data synchronization process is executed between the mobile terminal and the field operation robot based on the data synchronization microservice and the data synchronization client; wherein in the second data synchronization process, data is synchronized between the mobile terminal and the field operation robot based on the HTTP protocol;
[0012] The field operation robot and the intranet platform are synchronized based on the first data synchronization process and the second data synchronization process.
[0013] Optionally, the data synchronization between the intranet platform and the mobile terminal based on the MTP protocol comprises:
[0014] The intranet platform synchronization service generates a first local storage file list, and issues a USB mode instruction to the data synchronization client;
[0015] After the data synchronization client receives the USB mode instruction, a second local storage file list is generated, and the second local storage file list is stored in a first preset storage directory of the mobile terminal;
[0016] The intranet platform synchronization service queries the first preset storage directory based on the MTP protocol through a disk symbol, copies the second local storage file list, and analyzes and compares the second local storage file list and the first local storage file list to obtain the first differential data and the first incremental data.
[0017] The intranet platform synchronization service copies the first differential data from the first preset storage directory to the second preset storage directory; and copies the first incremental data to a source data directory agreed in the first preset storage directory, and copies the first incremental data list to the first preset storage directory.
[0018] Optionally, the intranet platform synchronization service disconnects the USB connection, and the data synchronization client stores the synchronized data, including:
[0019] The intranet platform synchronization service disconnects the USB connection, and the data synchronization client detects the disconnection of the USB, reads the first incremental data list in the first preset storage directory and analyzes the data, stores the analyzed data into the local database of the mobile terminal, and completes the data bidirectional synchronization between the intranet platform and the mobile terminal.
[0020] Optionally, the USB communication connection between the intranet platform and the mobile terminal includes:
[0021] The intranet platform synchronization service is configured as a USB communication host, and the data synchronization client is configured as a USB communication slave;
[0022] When the USB communication host listens to the connection request of the USB communication slave, the connection request is analyzed to obtain the device unique identifier;
[0023] The device unique identifier is verified for legality;
[0024] After the legality verification is passed, a communication connection is established between the intranet platform synchronization service and the data synchronization client.
[0025] Optionally, the analyzing and comparing of the second local storage file list and the first local storage file list to obtain the first differential data and the first incremental data includes:
[0026] The second local storage file list and the first local storage file list are merged to obtain a union set;
[0027] The union set and the difference set of the second local storage file list are confirmed as the first incremental data;
[0028] The union set and the difference set of the first local storage file list are confirmed as the first differential data.
[0029] Optionally, the second data synchronization process between the mobile terminal and the field operation robot based on the data synchronization micro-service and the data synchronization client includes:
[0030] The data synchronization client sends a data synchronization request to the data synchronization microservice, the data synchronization request comprising a device unique identifier corresponding to the mobile terminal;
[0031] After receiving the data synchronization request, the data synchronization microservice performs device legality verification, and after the device legality verification is passed, performs local storage file list query to obtain a third local storage file list, and sends the third local storage file list to the data synchronization client;
[0032] After obtaining the third local storage file list, the data synchronization client packages local data to generate a second local storage file list, and then merges and compares the second local storage file list with the third local storage file list to obtain second incremental data and second differential data;
[0033] The data synchronization client downloads the second incremental data to the mobile terminal through an HTTP file download interface, and updates the local database, and uploads the second differential data to the field operation robot through an HTTP file upload interface, to complete bidirectional data synchronization between the mobile terminal and the field operation robot.
[0034] Optionally, the method further comprises:
[0035] During the synchronization process, the MD5 value is used to verify the integrity of the file, and if the verification fails, retransmission, prompting or interrupting the synchronization process is performed.
[0036] The second aspect of the application provides a field operation robot and intranet platform data synchronization method system, the system comprising:
[0037] A deployment module is configured to deploy an intranet platform synchronization service on the intranet platform, deploy a data synchronization client on the mobile terminal, and deploy a data synchronization microservice on the field operation robot, and start the corresponding services after deployment is completed; wherein the intranet platform is connected to the mobile terminal through a USB, and the mobile terminal is connected to the field operation robot through a local area network;
[0038] A first synchronization module is configured to perform a first data synchronization process between the intranet platform and the mobile terminal based on the intranet platform synchronization service and the data synchronization client;
[0039] A second synchronization module is configured to perform a second data synchronization process between the mobile terminal and the field operation robot based on the data synchronization microservice and the data synchronization client;
[0040] A third synchronization module is configured to complete the data synchronization between the field operation robot and the intranet platform based on the first data synchronization process and the second data synchronization process.
[0041] The third aspect of the present application provides an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when loaded into the processor, implements the above-mentioned method for synchronizing data of a field operation robot and an intranet platform.
[0042] The fourth aspect of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the above-mentioned method for synchronizing data of a field operation robot and an intranet platform.
[0043] Compared with the prior art, the present application has at least the following beneficial effects:
[0044] The intranet platform of the present application is deployed in an intranet environment and is completely isolated from the extranet. The intranet platform is isolated from the extranet through local area network communication technology and interface interaction technology, preventing the risk of data interception and tampering, strengthening data protection measures, providing a reliable service mode, and ensuring the security of stored data and the reliability of transmission at each end, thereby further improving network security and preventing malicious attacks.
[0045] In the present application, the USB is connected to the intranet host, the mobile terminal is a data dump medium, the ADB instruction is used to automatically enter the MTP mode, the USB interface is used to connect to the intranet host for data transmission, the data synchronization is completed, the intranet platform client automatically completes the version check of the index file and the local storage file through the interface, and the manual intervention is significantly reduced through the automatic processing process, thereby improving the operation efficiency and accuracy.
[0046] In the present application, the field operation robot does not need to be exposed to the public network, the local area network communication technology is used for communication between the mobile terminal and the robot, other specific interface devices are not needed, the USB interface is used to connect to the intranet platform end, and the bidirectional synchronization of data can be automatically completed, thereby having high security and convenience. Moreover, the network environment and bandwidth have no influence, thereby ensuring the safety and timeliness of data transmission. In addition, the mobile terminal has interface capability, special devices are not needed, the cost is reduced, the general-purpose capability is increased, and general mobile terminal devices can meet the field application.
[0047] In the present application, the mobile terminal device at the operation site communicates with the robot through the local area network, the data synchronization instruction is issued by one key, the one-key operation process design makes the system more stable and easier to operate. Moreover, with the addition of the automatic process, the manual intervention link is reduced, the operation steps are simplified, the bidirectional interaction of end-to-end data is realized, the data consistency is ensured, the problems caused by version differences and manual errors in the field application are reduced, thereby reducing the operation failure rate and improving the operation efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description only constitute some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings. Among them:
[0049] Figure 1 is a field operation robot and intranet platform data synchronization system architecture provided by an embodiment of the present application;
[0050] Figure 2 is a field operation robot and intranet platform data synchronization method flowchart provided by an embodiment of the present application;
[0051] Figure 3 is an intranet platform and mobile terminal data interaction flowchart provided by an embodiment of the present application;
[0052] Figure 4 is a mobile terminal and field operation robot terminal data interaction flowchart provided by an embodiment of the present application;
[0053] Figure 5 is a combined manifest to obtain incremental data and differential data diagram provided by an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. The embodiments described in the present application are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art without any creative effort on the basis of the spirit of the present application are within the protection scope of the present application.
[0055] Figure 1 is a field operation robot and intranet platform data synchronization system architecture provided by an embodiment of the present application, as shown in Figure 1 , the system comprises an intranet platform, a mobile terminal and a field operation robot, the intranet platform communicates with the mobile terminal through USB, and the mobile terminal communicates with the field operation robot through local area network WIFI. Among them, the intranet platform is a robot operation and maintenance platform deployed in the company intranet; the operation site personnel are equipped with mobile terminal devices, one team can be equipped with one or more, in the form of mobile phones, tablets and other portable mobile devices, which are required to support WIFI and USB communication; the field operation distribution network live working robot is an intelligent device for live working in the field, and the model is RJ1300 or a new product model.
[0056] It should be noted that the "intranet" in the present application is a technical term according to the definition of "Information Security Technology Terminology" (GB / T 25069-2023), which refers to an internal special-purpose network of an organization, which is physically or logically isolated from external networks.
[0057] In combination Figure 2 Embodiment 1 of the present application provides a method for synchronizing data between a field robot and an intranet platform, which realizes bidirectional synchronization of data between the intranet platform and the field robot through USB communication technology and local area network communication technology in a field operation environment, and ensures one-key complete transmission and management of operation data, robot health reports, maintenance records and other files. The method comprises the following steps:
[0058] Step 1: deploy intranet platform synchronization service, data synchronization client and data synchronization microservice on the intranet platform, mobile terminal and field operation robot respectively, and start the corresponding services after deployment. Step 1 specifically includes:
[0059] Step 1.1: deploy intranet platform synchronization service on the intranet platform, and start the intranet platform synchronization service after deployment.
[0060] The intranet platform synchronization service provides device legitimacy verification, USB mode instruction issuance and bidirectional data synchronization with the mobile terminal.
[0061] Specifically, the application service deployed in the company intranet realizes bidirectional synchronization between the intranet platform storage data and the mobile terminal storage data by interacting with the data service client. The services provided include device legitimacy verification, USB interface listening, client USB storage mode instruction issuance, intranet platform storage file list query, merged list, upload of differential data and issuance of incremental data.
[0062] Differential data refers to the part of the data stored in the mobile terminal that is not in the data list stored in the intranet platform or the robot. It can be understood that the differential data is the data that exists in the mobile terminal storage but is missing in the platform or robot storage.
[0063] Incremental data refers to the part of the data stored in the intranet platform or the robot that is not in the mobile terminal data list. It can be understood that the incremental data is the data that exists in the platform or robot storage but is missing in the mobile terminal storage.
[0064] The data list refers to the list of locally stored data, and the file list is in JSON format, containing file name, size, file type, download address, version number, file MD5 value and other information. The file types include robot and tool health reports, maintenance and fault records, script files, operation process files, offline operation files and software and hardware version files.
[0065] Step 1.2: The mobile terminal deploys a data synchronization client, and after deployment, it starts the data synchronization client.
[0066] The data synchronization client is installed on the mobile terminal, and it provides end-to-end data synchronization services, i.e., from the robot to the mobile terminal and from the mobile terminal to the robot.
[0067] The data synchronization client also provides USB communication services. Specifically, after the mobile terminal is inserted into the intranet platform server and receives the intranet synchronization interface command, it automatically switches to MTP (Media Transfer Protocol) mode. In this mode, the mobile terminal is recognized as a normal storage device, and the computer can directly access the file system in the mobile terminal, allowing it to browse, copy, and paste files in the device as if it were using a USB flash drive. Through the above services, the data synchronization client realizes file version checking, file size consistency checking, and one-key file transfer, ultimately completing the transfer of data from the intranet platform to the mobile terminal through the USB mode, and then transferring the data to the robot through the local area network, achieving bidirectional synchronization of data between the intranet platform and the robot.
[0068] In this embodiment, data is transferred by automatically switching to MTP mode, which does not affect the applications on the mobile terminal, and does not require mounting the internal storage of the mobile terminal. Compared with traditional file transfer through a USB flash drive, this method reduces the risk of data loss and improves security. In this embodiment, the mobile terminal and the field operation robot synchronize data bidirectionally through interaction with the data synchronization microservice, and the mobile terminal and the intranet platform synchronize data bidirectionally through interaction with the intranet platform synchronization service, thereby achieving bidirectional synchronization of data between the field operation robot and the intranet platform. This is the core component of the data synchronization method and plays a key role.
[0069] The specific functions of the data synchronization client include obtaining the unique identifier of the device, setting the USB mode of the device, packaging all types of files and generating a list, reading the incremental list to update the database, one-key data synchronization, merging the list, downloading incremental data, and uploading differential data.
[0070] Step 1.3: The field operation robot deploys the data synchronization microservice, and after deployment, it starts the data synchronization microservice.
[0071] Data synchronization microservice: The data synchronization microservice is installed on the field operation robot, providing the ability to verify the legality of the device, obtain the file list, and upload and download files. The file list is in JSON format and contains information such as file name, size, type, download address, version number, and file MD5 value.
[0072] Data synchronization microservice: a microservice deployed on the field operation robot host, which realizes the bidirectional synchronization of the field operation robot storage data and the mobile terminal data through the interaction with the data synchronization client. The microservice adopts the HTTP communication protocol, the mobile terminal and the field operation robot are connected through WIFI to form a local area network communication environment, and the data upload and download are completed through the network interface. The microservice interface specifically includes device legality verification, robot storage file list query, file upload interface and file download interface.
[0073] In some embodiments, Docker and Nginx are combined to complete the deployment of the above services. Specifically, the Nginx image is pulled from the Docker Hub, the Nginx container is started using the Docker command, and the port corresponding to the container is mapped to the corresponding port of the intranet platform. In this way, the Nginx service can be accessed by accessing the corresponding port. Through the combination of Docker and Nginx, the deployment of the above services can be more efficiently completed. In some embodiments, the above services can also be deployed through Sring Boot, and the deployment method of the services is not limited by the present application.
[0074] Step 2: The intranet platform synchronization service and the data synchronization client execute a first data synchronization process between the intranet platform and the mobile terminal.
[0075] As shown in Figure 3 , step 2 specifically includes:
[0076] Step 2.1: The mobile terminal is connected to the intranet platform through the USB interface, and the mobile terminal is in the default debugging mode and can be controlled and transmitted through the USB protocol.
[0077] Step 2.2: The intranet platform synchronization service is configured as the USB communication host, and the data synchronization client is configured as the USB communication slave. After listening to the connection request of the USB slave, the unique device identifier is obtained through device identification, the legality of the device is verified, it is judged whether the device identifier is in the platform whitelist, the communication connection is established after the verification is passed, and the communication connection is not performed after the verification is not passed.
[0078] Step 2.3: After the intranet platform synchronization service and the mobile terminal establish the USB communication connection, the first local storage file list B is generated, which is named “b.xml”, and the USB mode instruction is issued to the mobile terminal through the control protocol.
[0079] Step 2.4: After receiving the USB mode instruction, the mobile terminal generates a second local storage file list A, stores the second local storage file list A in a first preset storage directory in the internal storage of the mobile terminal, the first preset storage directory is named as "U", and finally sets the USB mode as the MTP mode.
[0080] In some embodiments, the mobile terminal device is inserted into the intranet platform client through the USB interface, and is automatically set as the MTP mode through the ADB command. After being set as the MTP mode, the data synchronization is started.
[0081] As one of the prominent and essential features of the present application, the present application connects the intranet host through the USB, the mobile terminal is a data dump medium, automatically enters the MTP mode through the ADB instruction, connects the intranet host through the USB interface to perform data transmission, and completes the data synchronization. The data transmission security and timeliness are guaranteed without being affected by the network environment and bandwidth. In addition, the mobile terminal has the interface capability, does not need to be customized with special equipment, reduces the cost, and also increases the general-purpose capability. The general mobile terminal device can meet the field application.
[0082] Step 2.5: The intranet platform and the mobile terminal establish the MTP protocol communication, the intranet platform synchronization service finds the first preset storage "U" directory through the disk symbol, copies the second local storage file list A, and analyzes and compares the second local storage file list A and the first local storage file list B to obtain the first differential data and the first incremental data. The acquisition method is referred to Figure 5 .
[0083] It can be understood that the disk symbol represents the mobile device and uses the storage space of the mobile device. The mobile device set as the MTP mode is identified as a disk symbol. The disk symbol is used as an external storage device of the intranet platform, and the intranet platform can write and read data to and from the disk symbol. The MTP mode device is equivalent to a disk symbol of a PC. The intranet platform can write and read data to and from the disk symbol through the ADB instruction to find the MTP mode device.
[0084] Preferably but not limitatively, in combination with Figure 5 As shown in the figure, the second local storage file list A and the first local storage file list B are analyzed and compared, including:
[0085] The second local storage file list B and the first local storage file list A are merged to obtain a union set;
[0086] The union set and the difference set of the second local storage file list A are confirmed as the first incremental data;
[0087] The union set and the difference set of the first local storage file list B are confirmed as the first differential data.
[0088] It can be understood that, in the second local storage file list A, the data existing in the first local storage file list B but not existing in the second local storage file list A is confirmed as the first incremental data; in the first local storage file list B, the data existing in the first local storage file list B but not existing in the second local storage file list A is confirmed as the first differential data.
[0089] Step 2.6: uploading the differential data, the intranet platform synchronization service copies the first differential data from the source data directory under the first preset storage "U" directory to the second preset storage directory of the platform.
[0090] In the synchronization process, each file needs to be checked for integrity, and MD5 value is used to verify the integrity of the file. If the file in the synchronization process is tampered with or lost, the system will automatically prompt an error and interrupt the synchronization.
[0091] Step 2.7: issuing the incremental data, the intranet platform synchronization service generates a first incremental data list C, referred to as "c.xml", according to the first incremental data, and copies the first incremental data in the second preset storage directory of the platform to the agreed source data directory under the first preset storage "U" directory, and copies the first incremental data list C to the first preset storage "U" directory.
[0092] Preferably but not limitedly, in the synchronization process, each file needs to be checked for integrity, and MD5 value is used to verify the integrity of the file. If the file in the synchronization process is tampered with or lost, the system will automatically prompt an error and interrupt the synchronization.
[0093] Step 2.8: the intranet platform synchronization service disconnects the USB connection, and the mobile terminal automatically reads the first incremental data list "c.xml" under the first preset storage "U" directory after detecting the disconnection of the USB, stores the data to the local database of the mobile terminal after parsing, and archives the "c.xml" file, completing the data bidirectional synchronization between the intranet platform and the mobile terminal.
[0094] As one of the prominent and substantial features of the present application, the intranet platform client automatically completes the index file and local storage file version check through the interface, significantly reduces the manual intervention through the automatic processing flow, and improves the operation efficiency and accuracy.
[0095] Step 3: based on the data synchronization micro service and the data synchronization client, a second data synchronization process is performed between the mobile terminal and the field operation robot.
[0096] As shown in Figure 4 , step 3 specifically includes:
[0097] Step 3.1: The mobile terminal connects the robot network through WIFI, and establishes a local area network communication environment.
[0098] Step 3.2: The mobile terminal initiates a one-key data synchronization request to the field operation robot through the HTTP interface, and sends the unique identification of the mobile terminal corresponding device as a request parameter to the robot data synchronization microservice.
[0099] Step 3.3: After receiving the request, the robot data synchronization microservice performs device legitimacy verification, preloads the device whitelist to the robot, and if the verification is passed, it queries the local storage file list, outputs the third local storage file list D, and returns it to the mobile terminal in the format of JSON string through HTTP RESPONSE. If the verification fails, it returns a failure and terminates the subsequent actions.
[0100] Step 3.4: After receiving the third local storage file list D, the mobile terminal packages the local data to generate the mobile terminal second local storage file list A, and then merges and compares the second local storage file A with the third local storage file list D to obtain the second incremental data and the second differential data. The acquisition method is referred to Figure 5 .
[0101] Step 3.5: Download the second incremental data. The mobile terminal downloads the second incremental data source data to the mobile terminal through the HTTP file download interface, and updates the database. After downloading each file, it performs integrity and consistency check through the file MD5 value, and re-downloads the file that fails the check.
[0102] Step 3.6: Upload the second differential data. The mobile terminal uploads the second differential data to the robot through the HTTP file upload interface, and receives the file MD5 after uploading each file. It completes the integrity and consistency check by comparing it with the locally stored MD5, and re-uploads the file that fails the check.
[0103] Step 3.7: After all the download and upload check results are passed, the bidirectional data synchronization between the mobile terminal and the field operation robot is completed.
[0104] Step 4: Based on the first data synchronization process and the second data synchronization process, the field robot and the internal network platform data synchronization is completed. Step 4 specifically includes:
[0105] Step 4.1: First, perform the first data synchronization process related operation in step 2, and then perform the second data synchronization process related operation in step 3, to complete the data synchronization from the internal network platform to the field operation robot.
[0106] Step 4.2: first, the operation related to the second data synchronization process in step 3 is performed, and then the operation related to the first data synchronization process in step 2 is performed, to complete the data synchronization of the field operation robot to the intranet platform.
[0107] As one of the prominent substantial features of the present application, the mobile terminal is used as an intermediate device in data synchronization to connect the robot and the intranet platform, which can not be limited by the site and can more conveniently realize data synchronization in different scenes, and data transmission is performed through the local area network and the USB, which not only improves the stability of data transmission, but also improves the flexibility of data synchronization, and is particularly suitable for environments without public network access or data transmission environments requiring high security.
[0108] Embodiment 2 of the present application provides a field robot and intranet platform data synchronization method system, which runs the field robot and intranet platform data synchronization method as described in Embodiment 1, and the system comprises:
[0109] A deployment module is configured to deploy an intranet platform synchronization service on the intranet platform, deploy a data synchronization client on the mobile terminal, and deploy a data synchronization microservice on the field operation robot, and start the corresponding services after the deployment is completed; wherein the intranet platform and the mobile terminal are connected through the USB, and the mobile terminal and the field operation robot are connected through the local area network;
[0110] A first synchronization module is configured to perform a first data synchronization process between the intranet platform and the mobile terminal based on the intranet platform synchronization service and the data synchronization client;
[0111] A second synchronization module is configured to perform a second data synchronization process between the mobile terminal and the field operation robot based on the data synchronization microservice and the data synchronization client;
[0112] A third synchronization module is configured to complete the data synchronization of the field robot and the intranet platform based on the first data synchronization process and the second data synchronization process.
[0113] As for the system in the above embodiments, the specific manner in which each unit performs the operation has been described in detail in the embodiments related to the method, and will not be described in detail here.
[0114] Embodiment 3 of the present application provides an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when loaded into the processor, implements the field robot and intranet platform data synchronization method described in Embodiment 1.
[0115] Embodiment 4 of the present application provides a computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the field robot and intranet platform data synchronization method according to embodiment 1.
[0116] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0117] The present disclosure can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium (or media) having computer readable program instructions stored therein for causing a processor to implement various aspects of the present disclosure.
[0118] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch cards or punched tape, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0119] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0120] Computer readable program instructions for carrying out operations of the present disclosure can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.
[0121] Finally, it should be noted that the above-mentioned embodiments are merely used to illustrate the technical solutions of the present application, but not to limit it. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that the specific embodiments of the present application can be modified or replaced, and any modification or replacement without departing from the spirit and scope of the present application should be covered in the protection scope of the claims of the present application.
Claims
1. A method for synchronizing field operation robot and intranet platform data, characterized in that, The method comprises the following steps: deploying an intranet platform synchronization service on the intranet platform, deploying a data synchronization client on the mobile terminal, and deploying a data synchronization microservice on the field operation robot, and starting the corresponding services after deployment; wherein the intranet platform is connected to the mobile terminal through a USB connection, and the mobile terminal is connected to the field operation robot through a local area network WIFI connection; performing a first data synchronization process between the intranet platform and the mobile terminal based on the intranet platform synchronization service and the data synchronization client, wherein the first data synchronization process comprises: establishing a USB communication connection between the intranet platform and the mobile terminal, automatically configuring the data synchronization client to MTP mode after the mobile terminal is inserted into the intranet platform and the intranet synchronization interface instruction is received, performing data synchronization between the intranet platform and the mobile terminal based on the MTP protocol, and disconnecting the USB connection by the intranet platform synchronization service, and storing the synchronized data by the data synchronization client; performing a second data synchronization process between the mobile terminal and the field operation robot based on the data synchronization microservice and the data synchronization client, wherein in the second data synchronization process, data synchronization is performed between the mobile terminal and the field operation robot based on the HTTP protocol; completing data synchronization between the field operation robot and the intranet platform based on the first data synchronization process and the second data synchronization process, specifically: completing data synchronization from the intranet platform to the field operation robot after the first data synchronization process and the second data synchronization process, and completing data synchronization from the field operation robot to the intranet platform after the second data synchronization process and the first data synchronization process; the data synchronization between the intranet platform and the mobile terminal based on the MTP protocol comprises: the intranet platform synchronization service generates a first local storage file list and issues a USB mode instruction to the data synchronization client; the data synchronization client receives the USB mode instruction, generates a second local storage file list, and stores the second local storage file list in a first preset storage directory of the mobile terminal; the intranet platform synchronization service queries the first preset storage directory based on the MTP protocol, copies the second local storage file list, and analyzes and merges the second local storage file list and the first local storage file list to obtain first differential data and first incremental data; the intranet platform synchronization service copies the first differential data from the first preset storage directory to a second preset storage directory, and copies the first incremental data to a designated source data directory in the first preset storage directory, and copies a first incremental data list to the first preset storage directory.
2. The method for synchronizing data between the field operation robot and the intranet platform according to claim 1, wherein: the intranet platform synchronization service disconnects the USB connection, the data synchronization client detects the disconnection of the USB, reads the first incremental data list in the first preset storage directory, analyzes the data, stores the analyzed data in the local database of the mobile terminal, and completes the data bidirectional synchronization between the intranet platform and the mobile terminal. 3. The method of claim 1, wherein the method further comprises: establishing a USB communication connection between the intranet platform and the mobile terminal comprises: configuring the intranet platform synchronization service as a USB communication host and configuring the data synchronization client as a USB communication slave; after the USB communication host listens to the connection request of the USB communication slave, parsing the connection request to obtain a device unique identifier; performing legality verification on the device unique identifier; and after the legality verification passes, establishing a communication connection between the intranet platform synchronization service and the data synchronization client.
4. The method of claim 1, wherein the method further comprises: after the second local storage file list and the first local storage file list are parsed and merged, a first difference data and a first incremental data are obtained, which comprises: merging the second local storage file list and the first local storage file list to obtain a union set; confirming a difference set of the union set and the second local storage file list as the first incremental data; and confirming a difference set of the union set and the first local storage file list as the first difference data.
5. The method of claim 1, wherein the method further comprises: after the data synchronization micro service and the data synchronization client perform a second data synchronization process between the mobile terminal and the field operation robot, which comprises: the data synchronization client sends a data synchronization request to the data synchronization micro service, wherein the data synchronization request comprises a device unique identifier corresponding to the mobile terminal; after the data synchronization micro service receives the data synchronization request, performing device legality verification, and after the device legality verification passes, performing local storage file list query to obtain a third local storage file list, and sending the third local storage file list to the data synchronization client; after the data synchronization client obtains the third local storage file list, packing the local data to generate a second local storage file list, and then merging and comparing the second local storage file list and the third local storage file list to obtain a second incremental data and a second difference data; the data synchronization client downloads the second incremental data to the mobile terminal through an HTTP file download interface, and updates the local database, and uploads the second difference data to the field operation robot through an HTTP file upload interface, to complete the bidirectional data synchronization between the mobile terminal and the field operation robot.
6. The method of claim 1, wherein the method further comprises: during the synchronization process, using MD5 value to verify the integrity of the file, if the verification fails, retransmitting or prompting or interrupting the synchronization process. The system comprises: a deployment module, configured to deploy an intranet platform synchronization service on the intranet platform, deploy a data synchronization client on the mobile terminal, and deploy a data synchronization micro service on the field operation robot, and start the corresponding services after the deployment is completed; wherein the intranet platform and the mobile terminal are connected through a USB, and the mobile terminal and the field operation robot are connected through a local area network. 7. A field operation robot and intranet platform data synchronization method system using the field operation robot and intranet platform data synchronization method of any one of claims 1 to 6, characterized by, The first synchronization module is configured to execute a first data synchronization process between the intranet platform and the mobile terminal based on an intranet platform synchronization service and a data synchronization client. The second synchronization module is configured to execute a second data synchronization process between the mobile terminal and the field operation robot based on a data synchronization microservice and the data synchronization client. The third synchronization module is configured to complete data synchronization between the field operation robot and the intranet platform based on the first data synchronization process and the second data synchronization process. 8.An electronic device comprising a processor and a storage medium; characterized in that: The storage medium is configured to store instructions; The processor is configured to operate according to the instructions to perform the steps of the field operation robot and intranet platform data synchronization method according to any one of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the steps of the field operation robot and intranet platform data synchronization method according to any one of claims 1-6.
Citation Information
Patent Citations
Mobile robot remote monitoring system and method
CN115239240A
Internal and external network data synchronization method for electric power working site management and control system
CN103227774A
Data synchronization method based on MTP between terminals and terminals
CN105205100A