The present invention provides a method and system for synchronously storing multi-modal information of portable endoscope. The method includes: S1: when a mobile terminal acquires data collected by a portable endoscope and updates local data with the acquired data, acquiring update record of the local data of the mobile terminal; and, S2: when the mobile terminal is synchronized with a cloud, synchronizing data in the mobile terminal with data in the cloud by using the update record as information to be synchronized. By creating a table to be synchronized to store change information and location information of files and selectively performing synchronization from the mobile terminal to the cloud or from the cloud to the mobile terminal according to whether or not the table to be synchronized is null during synchronization, unnecessary synchronization operations, storage burden of the mobile terminal and synchronization time and traffic are all reduced.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A method of synchronously storing information, comprising steps of: S1: acquiring an update record of local data of a mobile terminal when the mobile terminal acquires data collected by a portable endoscope and updates the acquired data to the local data wherein the mobile terminal stores a first synchronized table recording synchronization done in the mobile terminal and a table to be synchronized, and the update record is recorded in the table to be synchronized; and S2: synchronizing data in the mobile terminal with data in a cloud-based server using the update record, wherein the cloud-based server stores a second synchronized table recording synchronization done in the cloud-based server, and wherein synchronizing data in the mobile terminal with data in the cloud-based server comprises: determining that the table to be synchronized is not null, and synchronizing the data in the cloud-based server with the local data in the mobile terminal according to the table to be synchronized stored in the mobile terminal; and determining that the table to be synchronized is null, and synchronizing the local data in the mobile terminal with the data in the cloud-based server, comprising extracting fields in the first synchronized table of the mobile terminal, which are also present in the second synchronized table of the cloud-based server, transferring the extracted fields to the cloud-based server, comparing the transferred fields with those in the second synchronized table to obtain a difference between the first synchronized table of the mobile terminal and the second synchronized table of the cloud-based server, and synchronizing the local data in the mobile terminal according to the difference; wherein: the information recorded in the table to be synchronized comprises file information and file operation information during updating; wherein operation information is recorded by an operation field; if the file is a media file, synchronous replication is performed; if the file is a non-media file, increment synchronization or synchronous replication is performed according to an actual situation, and the non-media file is preferentially synchronized followed by the media file; if the file has been synchronized, corresponding data is deleted from the table to be synchronized, and a synchronization time of the cloud-based server is updated; and after synchronization has been completed, a synchronization time of the mobile terminal is updated according to the synchronization time of the cloud-based server.
2. The method for synchronously storing information according to claim 1 , wherein the step S1 further comprises: modifying a file according to an original operation field and recording file operation information in the table to be synchronized when the mobile terminal updates the local data; if the modified file does not exist in the table to be synchronized, inserting data of the modified file in the table to be synchronized, and changing an operation field of the modified file in the table to be synchronized to COPY; and if the modified file exists in the table to be synchronized, changing the operation field of the modified file in the table to be synchronized, wherein if the original operation field of the modified file is DELETE, the operation field of the modified file in the table to be synchronized is changed to DELETE; and if the original operation field of the modified file is MODIFY, the operation field of the modified file in the table to be synchronized is kept same as the original operation field.
3. The method for synchronously storing information according to claim 2 , wherein the step S2 of synchronizing the data in the cloud-based server according to the update record further comprises: finding a corresponding file according to the information recorded in the table to be synchronized, and performing a corresponding operation in the cloud-based server according to the operation field of the file in the table to be synchronized.
4. The method for synchronously storing information according to claim 3 , wherein the step S2 of synchronizing the local data in the mobile terminal by using the data in the cloud as the latest data further comprises: comparing the data in the cloud-based server with the local data in the mobile terminal; synchronizing data existed in the cloud-based server and not in the mobile terminal, to the mobile terminal; comparing a synchronization time if data exists in both the cloud-based server and the mobile terminal, and synchronizing the corresponding file in the cloud-based server to the mobile terminal, if the synchronization time of the cloud-based server and of the mobile terminal is different.
5. A system for synchronously storing information, comprising a mobile terminal configured to store local data and acquire an update record of local data upon receipt of data collected from a portable endoscope, and a cloud-based server configured to perform information synchronization with the mobile terminal when connected to the mobile terminal, the system comprising: a table to be synchronized, configured to record information comprising file information and file operation information during updating; and a synchronization module configured to synchronize data in the mobile terminal with data in the cloud-based server according to the table to be synchronized, to synchronize the data in the cloud-based server with the local data in the mobile terminal according to the table to be synchronized in case of determining that the table to be synchronized is not null, and to synchronize the local data in the mobile terminal with the data in the cloud-based server in case of determining that the table to be synchronized is null by: extracting fields in the first synchronized table of the mobile terminal, which are also present in the second synchronized table of the cloud-based server, transferring the extracted fields to the cloud-based server, comparing the transferred fields with those in the second synchronized table to obtain a difference between the first synchronized table of the mobile terminal and the second synchronized table of the cloud-based server, and synchronizing the local data in the mobile terminal according to the difference, wherein the first synchronized table records synchronization done in the mobile terminal, and the second synchronized table records synchronization done in the cloud-based server; wherein the update record of the local data in the mobile terminal is recorded by the table to be synchronized, the information recorded in the table to be synchronized comprises file information and file operation information during updating, and the file operation information is recorded by an operation field; if the file is a media file, synchronous replication is performed; if the file is a non-media file, increment synchronization or synchronous replication is performed according to the actual situation, and the non-media file is preferentially synchronized followed by the media file; if the file has been synchronized, a corresponding data is deleted from the table to be synchronized, and a synchronization time of the cloud-based server is updated; and, after the synchronization has been completed, a synchronization time of the mobile terminal is updated according to the synchronization time of the cloud-based server.
6. The system for synchronously storing information according to claim 5 , wherein, when the table to be synchronized records the file operation information during the updating of the local data in the mobile terminal: if the modified file does not exist in the table to be synchronized, data of the modified file is inserted in the table to be synchronized, and the operation field of the modified file in the table to be synchronized is changed to COPY; or if the modified file exists in the table to be synchronized, the operation field of the modified file in the table to be synchronized is changed; wherein if the original operation field of the modified file is DELETE, the operation field of the modified file in the table to be synchronized is changed to DELETE; and, if the original operation field of the modified file is MODIFY, the operation field of the modified file in the table to be synchronized is kept same as the original operation field.
7. The system for synchronously storing information according to claim 6 , wherein the mobile terminal comprises a first synchronization module, and the cloud-based server comprises a second synchronization module; and wherein: the first synchronization module is configured to record file information of the mobile terminal and perform synchronous modification according to the original operation field of the file in the mobile terminal; and the second synchronization module is configured to record file information of the cloud-based server and perform synchronization according to the operation field of the corresponding file in the table to be synchronized during the synchronization with the mobile terminal.
8. The system for synchronously storing information according to claim 6 , wherein the synchronization module is configured to: synchronize the data in the cloud-based server according to the operation field of the corresponding file in the table to be synchronized when the table to be synchronized is not null, and update the synchronization time of the mobile terminal according to the synchronization time after the data in the cloud-based server has been synchronized; and compare the data in the cloud-based server with the local data in the mobile terminal when the table to be synchronized is null, synchronize data existed in the cloud-based server and not in the mobile terminal with the local data in the mobile terminal, compare the synchronization time if data exists in both the cloud and the mobile terminal, and synchronize the corresponding file in the cloud-based server to the mobile terminal when a synchronization time of the cloud-based server and of the mobile terminal is different.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
July 30, 2018
May 26, 2020
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.