[go: up one dir, main page]

CN1937504A - Synchronization system and method - Google Patents

Synchronization system and method Download PDF

Info

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
Application number
CN 200510105846
Other languages
Chinese (zh)
Other versions
CN100521605C (en
Inventor
邱全成
蔡敏捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CNB2005101058462A priority Critical patent/CN100521605C/en
Publication of CN1937504A publication Critical patent/CN1937504A/en
Application granted granted Critical
Publication of CN100521605C publication Critical patent/CN100521605C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A synchronous system and method, mainly used for carrying on the data transmission to the database of electronic device and server end database, the synchronous system includes: the setting module is used for setting the transmission direction; the mapping module is used for establishing an intermediate file and mapping the data of the electronic equipment database; the comparison module is used for comparing the intermediate file with the server data and determining the data to be transmitted; the updating module updates the intermediate file or the server database according to the comparison result and the transmission direction set by the setting module; the import module imports the intermediate file data into the electronic equipment database; the synchronization system and the synchronization method can transmit data to the electronic equipment database and the server database, and the data transmission processing is carried out through an intermediate file, so that the electronic equipment database is not needed to be used in the transmission process, and the electronic equipment is not needed to be started, thereby achieving the purpose of fast and efficient data transmission synchronization.

Description

同步系统以及方法Synchronization system and method

技术领域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 electronic device database 11 and the server database 12, and the synchronization system 1 includes: a setting module 13, an image module 14, a comparison module 15, and an update module 16 As well as the import module 17, the synchronization system 1 can be installed in the electronic device or server.

该电子设备数据库11是置于该电子设备中,用于储存该电子设备的数据,该数据例如是音频数据、视频数据(其中包括图片数据)以及音视频混合数据。该电子设备例如是多媒体播放设备(在此未标出)。The electronic device database 11 is placed in the electronic device for storing data of the electronic device, such as audio data, video data (including picture data) and audio-video mixed data. The electronic device is, for example, a multimedia playback device (not shown here).

该服务端数据库12是置于该服务端(在此未标出),用于储存数据,该数据例如是音频数据、视频数据(其中包括图片数据)以及音视频混合数据,该服务端例如是个人计算机、笔记本型计算机、服务端以及工作站,一个服务端可以对多个电子设备进行数据传输。此外,该服务端还提供一个可与该电子设备电性连接的接口,需特别说明的是,该电子设备与该服务端的连接方式是现有技术,为简化说明,在此不再详细说明。The server database 12 is placed on the server (not shown here) for storing data, such as audio data, video data (including picture data) and audio-video mixed data, the server is for example Personal computers, notebook computers, servers and workstations, one server can transmit data to multiple electronic devices. In addition, the server also provides an interface that can be electrically connected to the electronic device. It should be noted that the connection method between the electronic device and the server is an existing technology, and will not be described in detail here for simplification.

该设置模块13用于设置数据传输方向,该数据传输方向是该电子设备数据库11数据传送到该服务端数据库12或者该服务端数据库12数据传送到电子设备数据库11中的一个。在本实施例中,该设置模块13还用于设置数据传输类型以及传输处理规则,其中,该数据传输类型包括音频数据、视频数据(其中包括图片数据)或音视频混合数据;该传输处理规则是若传输处理过程中出现重名数据,则处理方式包括跳过该重名数据(缺省传输规则)、由该电子设备端数据覆盖服务端的同名数据或由服务端数据覆盖该电子设备端数据端同名数据,其中跳过该重名数据的处理规则是指不对该数据进行处理。The setting module 13 is used to set the data transmission direction, the data transmission direction is one of the data transmission direction of the electronic equipment database 11 to the server database 12 or the data transmission of the server database 12 to the electronic equipment database 11 . In this embodiment, the setting module 13 is also used to set data transmission types and transmission processing rules, wherein the data transmission types include audio data, video data (including picture data) or audio-video mixed data; the transmission processing rules Yes, if there is data with the same name during the transmission process, the processing method includes skipping the data with the same name (default transmission rule), overwriting the data with the same name on the server side by the data on the electronic device side, or overwriting the data on the electronic device side by the data on the server side Data with the same name at the end, where the processing rule of skipping the data with the same name means that the data will not be processed.

该映像模块14用于借由该设置模块13设置的传输选项,对该电子设备数据库11的数据进行映像,并生成一用于储存映像数据的中间文件(未标出),该中间文件的内容与该电子设备数据库11完全相同,相当于该电子设备数据库的一张相片,其数据格式是能够被该电子设备以及该服务端进行读写操作。由于常见电子设备在与服务端电性连接进行数据传输时均会自动关闭其电源,如此会造成无法调用其原有的数据库11,更无法正确的从该数据库中11中获取有用信息,在数据传输完成后,也无法将更新的数据写入该电子设备数据库11中。因此,本发明利用一中间文件在该电子设备关闭电源进行数据同步传输之前,映像该电子设备数据库11的内容,并将其保存在该电子设备,以便后续进行数据同步传输操作。在数据同步传输过程中该电子设备与该服务端电性连接,并借由该服务端的电源进行该中间文件的读写同步操作;读写同步完成后,断开该电子设备与该服务端的连接,打开该电子设备的电源,即可将该中间文件的内容导入该电子设备数据库11中完成数据传输同步。The image module 14 is used to image the data of the electronic device database 11 by means of the transmission option set by the setting module 13, and generate an intermediate file (not shown) for storing image data, the content of the intermediate file It is exactly the same as the electronic device database 11, which is equivalent to a photo of the electronic device database, and its data format can be read and written by the electronic device and the server. Because common electronic devices will automatically turn off their power when they are electrically connected to the server for data transmission, this will cause the original database 11 to be unable to be called, and useful information cannot be correctly obtained from the database 11. In the data After the transmission is completed, the updated data cannot be written into the electronic device database 11 . Therefore, the present invention uses an intermediate file to map the content of the electronic device database 11 before the electronic device is powered off for synchronous data transmission, and saves it in the electronic device for subsequent data synchronous transmission operations. During the data synchronization transmission process, the electronic device is electrically connected to the server, and the intermediate file is read and written synchronously by the power of the server; after the read and write synchronization is completed, the electronic device is disconnected from the server After turning on the power of the electronic device, the content of the intermediate file can be imported into the database 11 of the electronic device to complete data transmission synchronization.

该对比模块15用于对该映像模块14生成的中间文件的内容与该服务端数据进行对比,确定需要同步传输的数据。对比时首先判断该设置模块13设置的数据类型,若该数据类型为音频数据,则仅对比音频数据,若数据类型为视频数据(其中包括图片数据),则仅对比视频数据,若数据类型为音视频混合数据,则仅对比音视频混合数据,数据同步传输类型为缺省设置下将对所有数据进行对比。The comparison module 15 is used to compare the content of the intermediate file generated by the image module 14 with the server data, and determine the data that needs to be transmitted synchronously. First judge the data type that this setting module 13 is set during contrast, if this data type is audio data, then only compare audio data, if data type is video data (including picture data), then only compare video data, if data type is For mixed audio and video data, only the mixed audio and video data will be compared, and all data will be compared when the data synchronous transmission type is set to the default setting.

该更新模块16用于借由该对比模块15的对比结果,并通过该设置模块13设置的数据传输方向,对该中间文件或该服务端数据库12进行更新。若该设置模块13设置的数据传输方向是该电子设备数据库11数据传送到该服务端数据库12(即数据上传),则通过该中间文件对该服务端数据库12进行更新,即可完成同步更新;否则通过该服务端数据库12对该中间文件进行更新(即数据下载)。在同步更新中,若出现同名数据,则借由该设置模块13设置传输处理规则对该同名数据进行处理。其中该处理规则包括跳过该重名数据、由该电子设备端数据覆盖服务端的同名数据或者由服务端数据覆盖该电子设备端数据端同名数据,其中跳过该重名数据即表示不对其进行更新。The update module 16 is used to update the intermediate file or the server database 12 by using the comparison result of the comparison module 15 and the data transmission direction set by the setting module 13 . If the data transmission direction that this setting module 13 is provided with is that this electronic equipment database 11 data is sent to this server database 12 (being data upload), then this server database 12 is updated by this intermediate file, can finish synchronous update; Otherwise, update the intermediate file through the server database 12 (that is, download data). In synchronous updating, if there is data with the same name, the setting module 13 is used to set transmission processing rules to process the data with the same name. The processing rules include skipping the data with the same name, overwriting the data with the same name on the server side by the data on the electronic device side, or overwriting the data with the same name on the data side on the electronic device side by the data on the server side, where skipping the data with the same name means that it will not be processed renew.

该导入模块17是用于将该中间文件数据导入该电子设备中,其中若该更新模块16是对该中间文件进行更新,则该导入模块17在该更新模块16对该中间文件进行更新完成后重新启动该电子设备时,将该中间文件数据导入到该电子设备数据库11,以完成同步更新。The import module 17 is used to import the intermediate file data into the electronic device, wherein if the update module 16 updates the intermediate file, the import module 17 will update the intermediate file after the update module 16 completes the update. When the electronic device is restarted, the intermediate file data is imported into the electronic device database 11 to complete the synchronous update.

请参阅图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 server database 12 also stores a second image relationship table, which is used to record the data sent to the electronic device, the first The second mapping table is used to record the identification code of the server, the identification code of the electronic equipment (machine id), the data name of the transmitted data, the data modification time and the identification code of the data identification, as shown in Figure 2 (C), with the first column 111 For example, the server identification code is 1, the electronic equipment identification code is 1000, the corresponding data name is C:\1.mp3, the data modification time is 100001, and the data identification code is 7. After each data transmission process is completed, the data modification time will be recorded in the first image relationship table and the second image relationship table. If a new data transmission process is performed again, a new one will be selected according to whether the modification date matches. Data items are transmitted to achieve data processing synchronization and improve processing efficiency. In addition, in this embodiment, the synchronization system 1 is implemented by operating a script (script) and a command line (command line).

如图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 electronic device database 11 is imaged. After mapping, the content of the intermediate file is exactly the same as the corresponding data of the electronic device database 11, and then proceeds to step S3.

在该步骤S3,对比该中间文件与该服务端数据库12的数据内容,确定需要传输的数据以便后续进行数据传输处理(即数据上传或下载的同步处理),接着进到步骤S4。In the step S3, the intermediate file is compared with the data content of the server database 12, and the data to be transmitted is determined for subsequent data transmission processing (ie, synchronous processing of data upload or download), and then proceeds to step S4.

在该步骤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 server database 12, then go directly to the step S5; otherwise, skip to the step S6.

在该步骤S5,借由该步骤S3的对比结果,通过该中间文件对该服务端数据库12进行数据的上传处理,并结束流程步骤。In the step S5, based on the comparison result in the step S3, uploading data to the server database 12 is performed through the intermediate file, and the process steps are ended.

在该步骤S6,借由该步骤S3的对比结果,通过该服务端数据库12对该中间文件进行更新处理。In the step S6, the intermediate file is updated through the server database 12 according to the comparison result of the step S3.

在该步骤S7,在重新启动该电子设备后,通过该中间文件对该电子设备数据库11进行更新,并完成流程步骤。In this step S7, after restarting the electronic device, the electronic device database 11 is updated through the intermediate file, and the process steps are completed.

在本实施例中,同步方法是可通过脚本(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 electronic equipment database 11 and the server database 12, and the synchronization transmission processing is performed through an intermediate file, and the electronic equipment database does not need to be used in the synchronization process, and The electronic device does not need to be turned on, so as to achieve the purpose of fast and efficient synchronous data transmission.

Claims (18)

1.一种同步系统,用于对电子设备数据库与服务端数据库进行数据传输,其特征在于,该同步系统包括:1. A synchronous system, for carrying out data transmission to electronic equipment database and server database, it is characterized in that, this synchronous system comprises: 设置模块,用于设置传输方向为该电子设备数据库数据传送到该服务端数据库或者该服务端数据库传送到电子设备;The setting module is used to set the transmission direction as the electronic device database data is transmitted to the server database or the server database is transmitted to the electronic device; 映像模块,用于对该电子设备数据库的数据进行映像,并生成一用于储存映像数据的中间文件;An imaging module, configured to image the data in the electronic device database, and generate an intermediate file for storing the image data; 对比模块,用于对该映像模块生成的中间文件与该服务端数据进行对比,判断需要传输的数据;The comparison module is used to compare the intermediate file generated by the image module with the server data, and determine the data 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 导入模块,在该更新模块对该中间文件进行更新后,将中间文件数据导入到该电子设备数据库。An import module, after the update module updates the intermediate file, imports the intermediate file data into the electronic device database. 2.如权利要求1所述的同步系统,其特征在于,该设置模块还用于设置传输数据的类型为音频数据、视频数据或音视频混合数据组合组中的一个。2. The synchronization system according to claim 1, wherein the setting module is further configured to set the type of the transmission data as one of audio data, video data or audio-video mixed data combination group. 3.如权利要求1所述的同步系统,其特征在于,在该对比模块对比出电子设备端及服务端的数据为重名时,则该设置模块还提供传输处理规则供使用者设定,该传输处理规则是跳过该重名数据、由该电子设备端数据覆盖服务端的同名数据或由服务端数据覆盖电子设备端数据端同名数据其中之一。3. The synchronization system according to claim 1, wherein when the comparison module compares the data of the electronic device end and the server end with the same name, the setting module also provides transmission processing rules for the user to set, the The transmission processing rule is one of skipping the data with the same name, overwriting the data with the same name at the server side by the data at the electronic device side, or overwriting the data with the same name at the data side at the electronic device side by the data at the server side. 4.如权利要求1所述的同步系统,其特征在于,该电子设备是多媒体播放设备。4. The synchronization system according to claim 1, wherein the electronic device is a multimedia playback device. 5.如权利要求1所述的同步系统,其特征在于,该电子设备数据库还储存有一第一映像关系表,用于记录传送到该服务端的数据。5. The synchronization system according to claim 1, wherein the electronic device database further stores a first image relationship table for recording data sent to the server. 6.如权利要求5所述的同步系统,其特征在于,该第一映像关系表用于记录电子设备中的数据标示识别码、修改时间以及传送数据信息组成群组中的一个。6 . The synchronization system according to claim 5 , wherein the first mapping relationship table is used to record one of a data identification code, a modification time, and a transmission data information composition group in the electronic device. 7.如权利要求1所述的同步系统,其特征在于,该服务端数据库还储存有一第二映像关系表,用于记录传送到该电子设备的数据。7. The synchronization system according to claim 1, wherein the server database further stores a second mapping table for recording data sent to the electronic device. 8.如权利要求7所述的同步系统,其特征在于,该第二映像表用于记录服务端标示码、电子设备标示码、被传送数据信息、数据修改时间或电子设备中的数据标示识别码组成群组中的一个。8. The synchronization system according to claim 7, wherein the second mapping table is used to record the identification code of the server, the identification code of the electronic device, the transmitted data information, the data modification time or the identification of the data in the electronic device code to form one of the groups. 9.如权利要求1所述的同步系统,其特征在于,该服务端数据库可对多个电子设备数据库进行数据传输。9. The synchronization system according to claim 1, wherein the server database can transmit data to a plurality of electronic device databases. 10.一种同步方法,用于对电子设备数据库与服务端数据库进行数据传输,其特征在于,该同步方法包括以下步骤:10. A synchronization method for data transmission between an electronic device database and a server database, characterized in that the synchronization method comprises the following steps: (1)设置传输方向是对该电子设备数据库进行传输或者对该服务端数据库进行传输;(1) Setting the transmission direction is to transmit the electronic device database or the server database; (2)建立中间文件,对电子设备数据库数据进行映像;(2) Establish an intermediate file to image the electronic equipment database data; (3)对比该中间文件与该服务端数据库数据,确定需要传输的数据;(3) comparing the intermediate file with the server database data to determine the data to be transmitted; (4)判断该步骤(1)设置的传输方向,若传输方向是对电子设备数据库进行传输,则跳到步骤(6),否则进到步骤(5);(4) Judging the transmission direction set by the step (1), if the transmission direction is to transmit the electronic equipment database, then skip to step (6), otherwise proceed to step (5); (5)根据该步骤(3)的对比结果,对该服务端数据库进行传输,并结束同步方法的处理步骤;(5) According to the comparison result of the step (3), the server database is transmitted, and the processing steps of the synchronization method are terminated; (6)借由该步骤(3)的对比结果,对该中间文件进行更新;以及(6) Update the intermediate file based on the comparison result of the step (3); and (7)将该中间文件内容导入到该电子设备数据库。(7) Import the content of the intermediate file into the electronic device database. 11.如权利要求10所述的同步方法,其特征在于,该步骤(1)还包括设置数据传输的类型,且该数据类型包括音频数据、视频数据或音视频混合数据组成群组中的一个。11. The synchronization method according to claim 10, characterized in that, the step (1) also includes setting the type of data transmission, and the data type includes audio data, video data or audio-video mixed data forming a group . 12.如权利要求10所述的同步方法,其特征在于,该步骤(1)还包括设置传输处理规则,根据该步骤(3)的对比结果为电子设备端及服务端的数据重名时,则提供传输处理规则,该传输处理规则是跳过该重名数据、由该电子设备端数据覆盖服务端的同名数据或者由服务端数据覆盖电子设备端数据端同名数据其中之一。12. The synchronization method according to claim 10, wherein the step (1) also includes setting transmission processing rules, and when the comparison result of the step (3) is that the data of the electronic device end and the service end have the same name, then A transmission processing rule is provided, and the transmission processing rule is one of skipping the data with the same name, overwriting the data with the same name on the server side by the data on the electronic device side, or overwriting the data with the same name on the data side on the electronic device side by the data on the server side. 13.如权利要求10所述的同步方法,其特征在于,该电子设备是多媒体播放设备。13. The synchronization method according to claim 10, wherein the electronic device is a multimedia playback device. 14.如权利要求10所述的同步方法,其特征在于,该电子设备数据库还储存一第一映像关系表,用于记录传送到该服务端的数据。14. The synchronization method according to claim 10, wherein the electronic device database further stores a first mapping relational table for recording data sent to the server. 15.如权利要求14所述的同步方法,其特征在于,该第一映像关系表用于记录电子设备中的数据标示识别码、修改时间或数据信息组成群组中的一个。15. The synchronization method according to claim 14, wherein the first mapping relationship table is used to record one of a data identification code, a modification time, or a data information composition group in the electronic device. 16.如权利要求10所述的同步方法,其特征在于,该服务端数据库还储存一第二映像关系表,用于记录传送到该电子设备的数据。16. The synchronization method according to claim 10, wherein the server database further stores a second mapping relationship table for recording data transmitted to the electronic device. 17.如权利要求16所述的同步方法,其特征在于,该第二映像表用于记录服务端标示码、电子设备标示码、被传输数据信息、数据修改时间或电子设备中的数据标示识别码所组成群组中的一个。17. The synchronization method according to claim 16, wherein the second mapping table is used to record the identification code of the server, the identification code of the electronic device, the transmitted data information, the modification time of the data or the identification of the data in the electronic device One of the groups of codes. 18.如权利要求10所述的同步方法,其特征在于,该服务端数据库可对多个电子设备数据库进行数据传输。18. The synchronization method according to claim 10, wherein the server database can transmit data to a plurality of electronic device databases.
CNB2005101058462A 2005-09-23 2005-09-23 Synchronization system and method Expired - Fee Related CN100521605C (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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