CN1937504A - Synchronization system and method - Google Patents
Synchronization system and method Download PDFInfo
- Publication number
- CN1937504A CN1937504A CN 200510105846 CN200510105846A CN1937504A CN 1937504 A CN1937504 A CN 1937504A CN 200510105846 CN200510105846 CN 200510105846 CN 200510105846 A CN200510105846 A CN 200510105846A CN 1937504 A CN1937504 A CN 1937504A
- Authority
- CN
- China
- Prior art keywords
- data
- electronic device
- database
- server
- intermediate file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明是关于一种数据传输同步技术,特别是关于一种电子设备数据库与服务端数据库数据进行数据传输、达到同步处理的同步系统以及方法。The invention relates to a data transmission synchronization technology, in particular to a synchronization system and method for data transmission between an electronic device database and server database data to achieve synchronous processing.
背景技术Background technique
电子产品发展至今,数字化、便携式的电子产品凭借强大的功能、简单的操作以及方便携带等诸多优点发展为目前电子产品的一大主流,使得现代人在日常生活中均可享受电子产品带来的便利。Since the development of electronic products, digital and portable electronic products have developed into a major mainstream of current electronic products with many advantages such as powerful functions, simple operation and convenient portability, so that modern people can enjoy the benefits brought by electronic products in their daily lives. convenient.
以数字多媒体播放设备为例,数据处理能力以及储存空间都有所限制。然而在现代化的今日信息社会,计算机已成为大众接触、处理数字数据最重要的平台之一。尤其近年来,随着计算机的价格逐渐降低,计算机几乎成为家庭及公司中的标准配置,计算机以其简单易行的操作方式以及低廉的价格,让数字信息能深入社会各阶层,即使是一般未受过计算机操作训练的民众,也能轻易操控此类电子设备,达到增加知识的目的。此外,随着计算机的运算速度的大幅提高,以及多媒体处理技术的发展,计算机的应用层次不再局限于文书处理等,它能对声音、图像等多媒体数据进行有效处理。再者,计算机的储存空间也相对从前有了极大发展,更可通过购买硬盘等储存媒介的方式无限扩充。因此,电子设备与计算机交互数据是目前大势所趋以及发展热点。Taking a digital multimedia playback device as an example, the data processing capability and storage space are limited. However, in today's modern information society, computers have become one of the most important platforms for the public to contact and process digital data. Especially in recent years, as the price of computers has gradually decreased, computers have almost become standard configurations in families and companies. Computers, with their simple and easy operation methods and low prices, allow digital information to penetrate into all walks of life, even ordinary people People who have received computer operation training can also easily manipulate such electronic devices to achieve the purpose of increasing knowledge. In addition, with the dramatic increase in the computing speed of computers and the development of multimedia processing technology, the application level of computers is no longer limited to document processing, etc., and it can effectively process multimedia data such as sound and images. Furthermore, the storage space of the computer has also greatly developed compared with the past, and can be expanded infinitely by purchasing storage media such as hard disks. Therefore, data exchange between electronic devices and computers is the current general trend and development hotspot.
当今的电子设备均以数据库的方式储存数据,在电子设备与计算机连接后的数据处理也仅仅进行简单的数据传输处理,尚没有用数据库的形式提供数据传输的同步处理。Today's electronic devices store data in the form of a database, and the data processing after the electronic device is connected to the computer is only a simple data transmission process, and there is no synchronous processing of data transmission in the form of a database.
因此,如何解决以数据库为储存方式的电子设备数据的传输同步处理(也就是数据上传/下载处理),是目前需要解决的问题。Therefore, how to solve the synchronization processing (that is, data uploading/downloading processing) of electronic device data stored in a database is a problem that needs to be solved at present.
发明内容Contents of the invention
为克服上述现有技术的缺点,本发明的主要目的在于提供一种同步系统以及方法,能够对电子设备数据库与服务端数据库数据进行数据传输,实现快速、高效的数据同步传输的目的。In order to overcome the above-mentioned shortcomings of the prior art, the main purpose of the present invention is to provide a synchronization system and method, which can perform data transmission between the electronic device database and the server database data, and realize the purpose of fast and efficient data synchronization transmission.
本发明的另一目的在于提供一种同步系统以及方法,借由一对电子设备数据库做映像中间文件,进行电子设备数据库与服务端数据库数据的同步传输。Another object of the present invention is to provide a synchronization system and method for synchronous transmission of data between the electronic device database and the server database by using a pair of electronic device databases as image intermediate files.
为达成上述及其它目的,本发明提供一种同步系统以及方法。本发明的同步系统,用于对电子设备数据库与服务端数据库数据进行数据传输,该同步系统包括:设置模块,用于设置传输方向为该电子设备数据库数据传送到该服务端数据库或者该服务端数据库传送到电子设备;映像模块,用于对该电子设备数据库的数据进行映像,并生成一用于储存映像数据的中间文件;对比模块,用于对该映像模块生成的中间文件与该服务端数据进行对比,判断需要传输的数据;更新模块,借由该对比模块的对比结果,并通过该设置模块设置的传输方向,对该中间文件或该服务端数据库进行更新;以及导入模块,在该更新模块对该中间文件进行更新后,将中间文件数据导入到该电子设备数据库。To achieve the above and other objectives, the present invention provides a synchronization system and method. The synchronization system of the present invention is used for data transmission between the electronic equipment database and the server database data. The synchronization system includes: a setting module, which is used to set the transmission direction so that the electronic equipment database data is transmitted to the server database or the server The database is transmitted to the electronic device; the image module is used to image the data of the electronic device database and generate an intermediate file for storing image data; the comparison module is used to compare the intermediate file generated by the image module with the server Compare the data to determine the data that needs to be transmitted; the update module updates the intermediate file or the server database based on the comparison result of the comparison module and the transmission direction set by the setting module; and the import module, in the After updating the intermediate file, the update module imports the intermediate file data into the electronic device database.
本发明的同步方法,用于对电子设备数据库与服务端数据库进行数据传输,该同步方法包括以下步骤:(1)设置传输方向是对该电子设备数据库进行传输或者对该服务端数据库进行传输;(2)建立中间文件,对电子设备数据库数据进行映像;(3)对比该中间文件与该服务端数据库数据,确定需要传输的数据;(4)判断该步骤(1)设置的传输方向,若传输方向是对电子设备数据库进行传输,则跳到步骤(6),否则进到步骤(5);(5)根据该步骤(3)的对比结果,对该服务端数据库进行传输,并结束同步方法的处理步骤;(6)借由该步骤(3)的对比结果,对该中间文件进行更新;以及(7)将该中间文件内容导入到该电子设备数据库,完成该电子设备数据库的更新处理。The synchronization method of the present invention is used for data transmission between the electronic equipment database and the server database, and the synchronization method includes the following steps: (1) setting the transmission direction to transmit the electronic equipment database or the server database; (2) establish an intermediate file to image the electronic device database data; (3) compare the intermediate file with the server database data to determine the data to be transmitted; (4) judge the transmission direction set by the step (1), if If the transmission direction is to transmit the electronic device database, then skip to step (6), otherwise go to step (5); (5) transmit the server database according to the comparison result of the step (3), and end the synchronization The processing steps of the method; (6) update the intermediate file according to the comparison result of step (3); and (7) import the content of the intermediate file into the electronic device database to complete the update process of the electronic device database .
综上所述,与现有的数据传输同步技术相比,本发明的同步系统以及方法可以对电子设备数据库与服务端数据库进行数据传输,且数据传输处理是通过一中间文件进行,传输过程中不必借助该电子设备数据库,且该电子设备也不必开机,达到快速及高效的数据传输同步的目的。In summary, compared with the existing data transmission synchronization technology, the synchronization system and method of the present invention can perform data transmission between the electronic device database and the server database, and the data transmission process is performed through an intermediate file. There is no need to rely on the electronic device database, and the electronic device does not need to be turned on, so that the purpose of fast and efficient data transmission synchronization is achieved.
附图说明Description of drawings
图1是本发明的同步系统的基本框架方块示意图。FIG. 1 is a schematic block diagram of the basic framework of the synchronization system of the present invention.
图2(A)至图2(C)是本发明的同步系统中第一映像关系表以及第二映像关系表示例图。2(A) to 2(C) are illustrations of the first image relationship table and the second image relationship table in the synchronization system of the present invention.
图3是本发明的同步方法的运行流程图。Fig. 3 is a flow chart of the operation of the synchronization method of the present invention.
具体实施方式Detailed ways
实施例Example
如图1所示是本发明的同步系统的基本结构方块示意图,须特别说明的是,该同步系统另也包括其它的构件,为简化附图及说明,此处的基本结构仅显示与本发明有关的构件。As shown in Figure 1, it is a schematic block diagram of the basic structure of the synchronous system of the present invention. It should be noted that the synchronous system also includes other components. related components.
在本实施例中,本发明的同步系统1是用于对电子设备数据库11与服务端数据库12进行数据传输,该同步系统1包括:设置模块13、映像模块14、对比模块15、更新模块16以及导入模块17,可将同步系统1安装在该电子设备或服务端中。In this embodiment, the synchronization system 1 of the present invention is used for data transmission between the
该电子设备数据库11是置于该电子设备中,用于储存该电子设备的数据,该数据例如是音频数据、视频数据(其中包括图片数据)以及音视频混合数据。该电子设备例如是多媒体播放设备(在此未标出)。The
该服务端数据库12是置于该服务端(在此未标出),用于储存数据,该数据例如是音频数据、视频数据(其中包括图片数据)以及音视频混合数据,该服务端例如是个人计算机、笔记本型计算机、服务端以及工作站,一个服务端可以对多个电子设备进行数据传输。此外,该服务端还提供一个可与该电子设备电性连接的接口,需特别说明的是,该电子设备与该服务端的连接方式是现有技术,为简化说明,在此不再详细说明。The
该设置模块13用于设置数据传输方向,该数据传输方向是该电子设备数据库11数据传送到该服务端数据库12或者该服务端数据库12数据传送到电子设备数据库11中的一个。在本实施例中,该设置模块13还用于设置数据传输类型以及传输处理规则,其中,该数据传输类型包括音频数据、视频数据(其中包括图片数据)或音视频混合数据;该传输处理规则是若传输处理过程中出现重名数据,则处理方式包括跳过该重名数据(缺省传输规则)、由该电子设备端数据覆盖服务端的同名数据或由服务端数据覆盖该电子设备端数据端同名数据,其中跳过该重名数据的处理规则是指不对该数据进行处理。The
该映像模块14用于借由该设置模块13设置的传输选项,对该电子设备数据库11的数据进行映像,并生成一用于储存映像数据的中间文件(未标出),该中间文件的内容与该电子设备数据库11完全相同,相当于该电子设备数据库的一张相片,其数据格式是能够被该电子设备以及该服务端进行读写操作。由于常见电子设备在与服务端电性连接进行数据传输时均会自动关闭其电源,如此会造成无法调用其原有的数据库11,更无法正确的从该数据库中11中获取有用信息,在数据传输完成后,也无法将更新的数据写入该电子设备数据库11中。因此,本发明利用一中间文件在该电子设备关闭电源进行数据同步传输之前,映像该电子设备数据库11的内容,并将其保存在该电子设备,以便后续进行数据同步传输操作。在数据同步传输过程中该电子设备与该服务端电性连接,并借由该服务端的电源进行该中间文件的读写同步操作;读写同步完成后,断开该电子设备与该服务端的连接,打开该电子设备的电源,即可将该中间文件的内容导入该电子设备数据库11中完成数据传输同步。The
该对比模块15用于对该映像模块14生成的中间文件的内容与该服务端数据进行对比,确定需要同步传输的数据。对比时首先判断该设置模块13设置的数据类型,若该数据类型为音频数据,则仅对比音频数据,若数据类型为视频数据(其中包括图片数据),则仅对比视频数据,若数据类型为音视频混合数据,则仅对比音视频混合数据,数据同步传输类型为缺省设置下将对所有数据进行对比。The
该更新模块16用于借由该对比模块15的对比结果,并通过该设置模块13设置的数据传输方向,对该中间文件或该服务端数据库12进行更新。若该设置模块13设置的数据传输方向是该电子设备数据库11数据传送到该服务端数据库12(即数据上传),则通过该中间文件对该服务端数据库12进行更新,即可完成同步更新;否则通过该服务端数据库12对该中间文件进行更新(即数据下载)。在同步更新中,若出现同名数据,则借由该设置模块13设置传输处理规则对该同名数据进行处理。其中该处理规则包括跳过该重名数据、由该电子设备端数据覆盖服务端的同名数据或者由服务端数据覆盖该电子设备端数据端同名数据,其中跳过该重名数据即表示不对其进行更新。The
该导入模块17是用于将该中间文件数据导入该电子设备中,其中若该更新模块16是对该中间文件进行更新,则该导入模块17在该更新模块16对该中间文件进行更新完成后重新启动该电子设备时,将该中间文件数据导入到该电子设备数据库11,以完成同步更新。The
请参阅图2(A)至图2(C),在本实施例中,该电子设备中还有一第一映像关系表,用于记录传送到该服务端的数据。该第一映像关系表用于记录数据标示识别码、数据名称以及数据修改时间等信息,在本实施例具有该第一映像关系表的电子设备的电子设备标示码(machineid)为1001,其中该电子设备标示码是由电子设备自身提供的,接着如图2(A)所示,以第一列110为例,数据标示识别码为7对应数据修改时间为100001,数据名称为\my location\1.mp3;接着,如图2(B)所示,该表即储存在另一个电子设备中的第一映像关系表,其中,该电子设备标示码是1001,该第一映像关系表所示的列113的数据区位与图2(A)一致,故在此不予赘述;接着,该服务端数据库12还储存有一第二映像关系表,用于记录传送到该电子设备的数据,该第二映像表用于记录服务端标示码、电子设备标示码(machine id)、被传送数据的数据名称、数据修改时间以及数据标示识别码,如图2(C)所示,以第一列111为例,服务端标示码为1,电子设备标示码为1000对应的数据名称为C:\1.mp3,数据修改时间为100001,数据标示识别码为7。在每次数据传输处理结束之后,均会在该第一映像关系表以及该第二映像关系表中记录数据修改时间,若再次进行新的数据传输处理,则根据修改日期是否匹配挑出新的数据项进行传输,实现数据处理同步及提高处理效率的目的。此外,在本实施例中,该同步系统1是通过操作脚本(script)与命令行(command line)的方式进行。Please refer to FIG. 2(A) to FIG. 2(C). In this embodiment, the electronic device also has a first image relationship table for recording data sent to the server. The first image relationship table is used to record information such as data identification code, data name, and data modification time. In this embodiment, the electronic equipment identification code (machineid) of the electronic device with the first image relationship table is 1001, wherein the The electronic equipment identification code is provided by the electronic equipment itself, and then as shown in Figure 2(A), taking the first column 110 as an example, the data identification code is 7, the corresponding data modification time is 100001, and the data name is \my location\ 1.mp3; then, as shown in Figure 2 (B), this table is the first image relationship table stored in another electronic device, wherein the electronic device identification code is 1001, as shown in the first image relationship table The data location of the column 113 is consistent with that of Fig. 2 (A), so it will not be described in detail here; then, the
如图3所示,它是本发明的同步方法的运行流程图。As shown in FIG. 3 , it is an operation flowchart of the synchronization method of the present invention.
首先进行步骤S1,设置传输方向为将数据传送到该电子设备数据库11(即数据下载的同步处理)或将数据传送到对该服务端数据库12(即数据上传的同步处理);在本实施例中,该步骤S1还包括设置的传输类型为音频数据、视频数据或音视频混合数据,以及设置的传输处理规则为传输过程中出现重名的数据,处理方式包括跳过该重名数据、由该电子设备端数据覆盖服务端的同名数据或由服务端数据覆盖电子设备端数据同名数据,接着进到步骤S2。At first carry out step S1, setting transmission direction is that data is sent to this electronic equipment database 11 (being the synchronous processing of data download) or data is sent to this server database 12 (being the synchronous processing of data upload); In this embodiment In this step S1, the transmission type is also set to be audio data, video data or audio-video mixed data, and the transmission processing rule is set to be data with the same name during the transmission process, and the processing method includes skipping the data with the same name, by The data on the electronic device side overwrites the data with the same name on the server side or the data on the server side overwrites the data on the electronic device side with the same name, and then proceed to step S2.
在该步骤S2,建立该中间文件,对该电子设备数据库11的数据进行映像,映像后该中间文件的内容与该电子设备数据库11对应数据完全相同,接着进到步骤S3。In the step S2, the intermediate file is created, and the data of the
在该步骤S3,对比该中间文件与该服务端数据库12的数据内容,确定需要传输的数据以便后续进行数据传输处理(即数据上传或下载的同步处理),接着进到步骤S4。In the step S3, the intermediate file is compared with the data content of the
在该步骤S4,判断该步骤S2设置的数据传输方向,若数据传输方向为将数据传送到该服务端数据库12,则直接进到步骤S5;否则跳至步骤S6。In the step S4, judge the data transmission direction set in the step S2, if the data transmission direction is to transmit the data to the
在该步骤S5,借由该步骤S3的对比结果,通过该中间文件对该服务端数据库12进行数据的上传处理,并结束流程步骤。In the step S5, based on the comparison result in the step S3, uploading data to the
在该步骤S6,借由该步骤S3的对比结果,通过该服务端数据库12对该中间文件进行更新处理。In the step S6, the intermediate file is updated through the
在该步骤S7,在重新启动该电子设备后,通过该中间文件对该电子设备数据库11进行更新,并完成流程步骤。In this step S7, after restarting the electronic device, the
在本实施例中,同步方法是可通过脚本(script)与命令行(commandline)的方式进行。In this embodiment, the synchronization method can be performed by means of script (script) and command line (commandline).
总而言之,借由本发明的同步系统以及方法能够对电子设备数据库11与服务端数据库12数据进行数据同步传输处理,且同步传输处理是通过一中间文件进行,同步过程中不必借助该电子设备数据库,且该电子设备也不必开机,达到快速及高效的数据同步传输的目的。In a word, the synchronization system and method of the present invention can perform data synchronization transmission processing on the data of the
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101058462A CN100521605C (en) | 2005-09-23 | 2005-09-23 | Synchronization system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101058462A CN100521605C (en) | 2005-09-23 | 2005-09-23 | Synchronization system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1937504A true CN1937504A (en) | 2007-03-28 |
CN100521605C CN100521605C (en) | 2009-07-29 |
Family
ID=37954792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101058462A Expired - Fee Related CN100521605C (en) | 2005-09-23 | 2005-09-23 | Synchronization system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100521605C (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604234B (en) * | 2008-06-13 | 2011-06-01 | 英业达股份有限公司 | Data synchronization system and method for storage device |
CN101499069B (en) * | 2008-02-02 | 2013-06-05 | 中兴通讯股份有限公司 | Internal memory database file updating method and apparatus |
WO2019085471A1 (en) * | 2017-11-02 | 2019-05-09 | 平安科技(深圳)有限公司 | Database synchronization method, application server, and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5392390A (en) * | 1992-04-10 | 1995-02-21 | Intellilink Corp. | Method for mapping, translating, and dynamically reconciling data between disparate computer platforms |
US5729735A (en) * | 1995-02-08 | 1998-03-17 | Meyering; Samuel C. | Remote database file synchronizer |
CN1249600C (en) * | 2003-01-21 | 2006-04-05 | 无敌科技(西安)有限公司 | Data synchronizing system of personal digital assistant machine and method thereof |
DE602005003553T2 (en) * | 2004-01-27 | 2008-12-11 | Koninklijke Philips Electronics N.V. | AUDIO VIDEO CONTENT SYNCHRONIZATION BY PLAYLISTS |
-
2005
- 2005-09-23 CN CNB2005101058462A patent/CN100521605C/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499069B (en) * | 2008-02-02 | 2013-06-05 | 中兴通讯股份有限公司 | Internal memory database file updating method and apparatus |
CN101604234B (en) * | 2008-06-13 | 2011-06-01 | 英业达股份有限公司 | Data synchronization system and method for storage device |
WO2019085471A1 (en) * | 2017-11-02 | 2019-05-09 | 平安科技(深圳)有限公司 | Database synchronization method, application server, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN100521605C (en) | 2009-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7502820B2 (en) | System and method for optimized property retrieval of stored objects | |
US8683009B2 (en) | Wireless synchronization between media player and host device | |
CN100520773C (en) | System and method for encapsulation of representative sample of media object | |
CN100504864C (en) | System and method for music synchronization in mobile devices | |
US7877814B2 (en) | Content transferring apparatus, content transferring method, and computer program | |
US20070088747A1 (en) | Automatic multimedia searching method and multimedia downloading system thereof | |
WO2003092006A1 (en) | Recording medium and program | |
CN101506838A (en) | Host configured for interoperation with coupled portable media player device | |
WO2011155350A1 (en) | Content reproduction device, control method for content reproduction device, control program, and recording medium | |
JP2006252478A (en) | Information processor, content reproducing device, content management device and data updating method | |
WO2010063088A1 (en) | System, method, and computer program for remote management of digital content | |
US20060074851A1 (en) | Management of play count of content data | |
CN103246729A (en) | Method and system for processing multi-media files of android mobile terminal | |
CN1835112B (en) | Data capture apparatus and data capture method | |
JP2007527575A (en) | Method and apparatus for synchronizing and identifying content | |
CN101452727B (en) | Vehicle-mounted media playing system and method | |
CN103136264A (en) | Accessory inquiring method and user terminal | |
CN100521605C (en) | Synchronization system and method | |
CN101217613A (en) | Printing method and apparatus, print control method, and multimedia apparatus | |
KR100601682B1 (en) | A method for moving a media file, a device, and a storage medium storing a program for performing the method | |
WO2015000433A1 (en) | Multimedia search method, terminal, server and system | |
JP3878497B2 (en) | Image reproduction method, image reproduction apparatus, and recording medium recording image reproduction processing program | |
KR100834543B1 (en) | Real time presentation file sharing method and device | |
US9087057B2 (en) | Content processing apparatus, method, and system | |
US20110125710A1 (en) | Efficient change tracking of transcoded copies |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090729 Termination date: 20110923 |