WO2009003414A1 - Procédé et dispositif permettant une synchronisation de données entre des terminaux - Google Patents

Procédé et dispositif permettant une synchronisation de données entre des terminaux Download PDF

Info

Publication number
WO2009003414A1
WO2009003414A1 PCT/CN2008/071518 CN2008071518W WO2009003414A1 WO 2009003414 A1 WO2009003414 A1 WO 2009003414A1 CN 2008071518 W CN2008071518 W CN 2008071518W WO 2009003414 A1 WO2009003414 A1 WO 2009003414A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
user
server
terminal
access mode
Prior art date
Application number
PCT/CN2008/071518
Other languages
English (en)
French (fr)
Inventor
Jian Yang
Lei Wang
Guoqiao Chen
Original Assignee
Huawei Technologies Co, .Ltd.
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 Huawei Technologies Co, .Ltd. filed Critical Huawei Technologies Co, .Ltd.
Priority to EP08773079A priority Critical patent/EP2163989A4/en
Publication of WO2009003414A1 publication Critical patent/WO2009003414A1/zh
Priority to US12/511,764 priority patent/US20090293069A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the embodiments of the present invention relate to the field of communications, and in particular, to a method and apparatus for performing data synchronization between terminals. Background technique
  • Modern society is an information society. Users can receive and send information from mobile devices anytime, anywhere, or execute applications on mobile devices. The results of the above data interaction and execution applications need to be stored on the mobile device and consistent with this type of data in other devices. For example, in the mobile phone and in the PDA (Personal Digital Assistant), there is an address book, and the same address book is stored in the office and at home PC (Personal Computer) or notebook. The address book information in these devices can be consistent. When the address book information on one of the devices changes, the address book information in other devices needs to be updated accordingly, that is, data synchronization is performed.
  • PDA Personal Digital Assistant
  • the PIM (Personal Information Management) server can provide multiple access modes for the user terminal. Users can interact with the PIM server through multiple terminals corresponding to multiple access modes to complete data maintenance and operation. For example, the user can use the DS (Dial Service) protocol to interact with the PIM server to synchronize the local phone book to the PIM server.
  • the PC client can also interact with the PIM server through the PC client.
  • the WEB (World Wide Web) terminal interacts with the PIM server.
  • a method for data synchronization between terminals in the prior art is: a user accesses a PIM server by using a terminal corresponding to a certain access mode, and performs interaction with the PIM server, and synchronously backs up the user's phone book information to the terminal. On the PIM server. Then, after the user accesses the PIM server by using the terminal corresponding to the other access mode, the user finds that the phone book information saved on the terminal corresponding to the other access mode is the same as the above. After the PIM server is inconsistent, the other terminal interacts with the PIM server to obtain the phone book information backed up to the PIM server, and updates the locally stored phone book information, thereby implementing data synchronization between the terminals.
  • the embodiment of the invention provides a method and a device for performing data synchronization between terminals, so as to implement timely data synchronization of terminals corresponding to various access modes of the user.
  • an embodiment of the present invention provides a method for data synchronization between terminals, including:
  • the server receives data transmitted by the user corresponding to the terminal corresponding to the access mode; the server sends a notification message to the other terminals of the user, and provides the data to the other terminal.
  • an embodiment of the present invention further provides a device for performing data synchronization between terminals, including:
  • a data receiving module configured to receive data sent by the terminal to the server by using a terminal corresponding to the access mode
  • a notification message sending module configured to send a notification message to other terminals of the user after the user connects to the server through another terminal;
  • a data sending module configured to send data received by the data receiving module to a terminal corresponding to another access mode of the user.
  • the embodiment of the present invention has the following advantages:
  • the embodiment of the present invention actively sends a notification message to the terminal of the user through the server, and instructs the user terminal to perform data synchronization. Therefore, after the user sends the data to the server through the terminal corresponding to the access mode, the terminal corresponding to the other access mode of the user can effectively and timely understand The data status of the server, and the corresponding data synchronization operation.
  • FIG. 1 is a process flow diagram of a specific implementation process of a method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of processing a user to update a PIM data by a PIM server according to an embodiment of the present invention
  • FIG. 3 is a process flow diagram of a PIM server performing a corresponding synchronization operation after a user logs in to a PIM server through a terminal corresponding to some other access mode according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of an apparatus for performing data synchronization between terminals according to an embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a method and apparatus for data synchronization between terminals.
  • the data on the PIM server is updated.
  • the PIM server sends a notification message to the terminal corresponding to the other access mode in time.
  • the above terminal and the PIM server receiving the above notification message perform corresponding data synchronization operations.
  • FIG. 1 The processing flow of a specific implementation process of the method in the embodiment of the present invention is as shown in FIG. 1 , and includes the following steps:
  • Step 1-1 The user connects to the PIM server by using a mobile phone, synchronizes data between the mobile phone and the PIM server, and updates PIM data on the PIM server.
  • the process of data synchronization between the user using a mobile terminal such as a mobile terminal and the PIM server can be done based on the SyncML synchronization protocol.
  • the SyncML synchronization protocol mainly defines the data flow during the session of the data synchronization operation, the handshake process of the two parties, the type of the data synchronization operation, and the like.
  • SyncML synchronization The protocol also defines the format of the message to be passed between entities in a data synchronization operation, ie the format of the message passed between the terminal and the PIM server.
  • the SyncML synchronization protocol consists of seven synchronization methods, namely:
  • Two-way synchronization It means that both the client and the server side synchronize their respective update data to each other;
  • Slow synchronization A type of two-way synchronization. The client and the server send all their data to each other, and perform one-to-one comparison synchronization. This synchronization method takes a long time.
  • One-way synchronization of the client The client sends the data update to the server, and the server does not send the update data to the client;
  • client refresh synchronization the client sends all the data to the server, replacing all data on the server;
  • One-way synchronization on the server side The server sends the data update to the client, and the client does not send data to the server;
  • server-side refresh synchronization The server sends all the data to the client, replacing all the data of the client;
  • Server notification synchronization The server tells the client to start a certain type of synchronization with the server.
  • Step 1-2 The embodiment of the present invention needs to save the association information between the updated PIM data, the updated access mode information, the update time, the terminal notification flag, and the like in the PIM server.
  • the processing procedure for the PIM server to process the user update to the PIM data is as shown in FIG. 2, and the specific processing procedure is as follows:
  • various access mode information corresponding to each user is set in the PIM server.
  • a user has three access terminals: a mobile phone, a PC client, and a WEB terminal.
  • the PIM server After the data synchronization operation is performed, the PIM server queries various access mode information corresponding to each user set by the foregoing, and obtains various access mode information corresponding to the user who uses the mobile phone to connect to the PIM service.
  • the embodiment of the present invention improves the storage manner of the PIM data in the PIM server, and saves the update information of the PIM data and the terminal notification flag information for one PIM data.
  • the storage structure of the PIM data in the PIM server can be as shown in Table 1 below.
  • the above update flag field, timestamp field, and terminal notification flag are newly added fields.
  • the update flag field indicates how the PIM data is updated, and can be set to update terminal information or access mode information of the PIM data. For example, a mobile phone indicates that the update of the data is done by means of a mobile phone;
  • the timestamp field indicates when the PIM data is updated
  • the terminal notification flag field indicates whether the terminal corresponding to the user's various access modes needs to notify the message. Obviously, the terminal or access mode indicated by the above update flag field is updated because the PIM data is updated by the terminal or the access mode, and no message notification is needed. The terminal corresponding to other access modes needs to perform a message because no data is synchronized. Notice. After the message notification of a certain terminal is completed, the terminal notification flag field of the terminal needs to be correspondingly set to not require message notification.
  • the PIM server needs to set the terminal notification flag corresponding to the terminal to "0".
  • Step 1-3 After the user logs in to the PIM server through the terminal corresponding to some other access mode, the processing flow of the PIM server performing the corresponding synchronization operation is as shown in FIG. 3, and the specific processing procedure is as follows:
  • the PIM server may query related information between the updated PIM data, the updated access mode information, the updated time, and the terminal notification flag, according to the current access mode information of the user, to obtain the current information of the user.
  • the terminal notification flag information corresponding to the terminal corresponding to the access mode. Based on the terminal notification flag information, it is determined whether there is a data item to be notified under the terminal corresponding to the current access mode of the user.
  • the PIM server sends a notification message to the terminal corresponding to the current access mode of the user, and carries the corresponding requirement in the notification message. Index information for updated data.
  • the PIM server may send the notification message by using a PUSH (Push) mode.
  • the terminal corresponding to the current access mode of the user receives the notification message, and performs corresponding data synchronization operation with the PIM server according to the index information of the data to be updated carried in the notification message, from the PIM.
  • the corresponding data is obtained in the server, and the locally saved data is updated accordingly.
  • a notification recovery message is sent to the PIM server.
  • the PIM server updates the current access mode of the user and the terminal notification flag corresponding to the data that needs to be updated, and sets the terminal notification flag to a value corresponding to the notification message not required to be sent, ie, Set to "0".
  • the server may send a notification message to the client, an embodiment of which may be as shown in the XML document below:
  • PIM— Notification notification message the message serial number is 1, telling the current user that there are two data to be updated.
  • the two update data are: The data with index 0001 is updated by mobile phone access, the time is 2007-06-13 14:20; The data indexed to 0002 is updated by mobile phone access, and the time is 2007-06-13 14:20.
  • the user's client can send a notification reply message to the UI server, an embodiment of which can be as shown in the XML document below:
  • FIG. 4 is a schematic structural diagram of an embodiment of an apparatus for performing data synchronization between terminals according to an embodiment of the present invention, and includes the following modules:
  • the data receiving module 41 is configured to receive data sent by the terminal to the server by using a terminal corresponding to the access mode, and update the data on the server.
  • the above data can be PIM data.
  • the notification flag information saving module 42 is configured to save the association relationship between the received data and the notification flag corresponding to the various access modes of the user. In the server, it is necessary to save the association information between the updated PIM data, the updated access method information, the update time, and the terminal notification flag.
  • the notification flag corresponding to the access mode in which the user sends the data indicates that the notification message does not need to be sent, and the notification flag corresponding to the other access modes of the user indicates that the notification message needs to be sent.
  • the notification message sending module 43 is configured to: after the user connects to the server by using a terminal corresponding to another access mode, the server queries the updated PIM data, the updated access mode information, the update time, The association information between the information such as the terminal notification flag is obtained, and the terminal notification flag information corresponding to the terminal corresponding to the current access mode of the user is obtained. According to the terminal notification flag information, it is determined whether there is a data item to be notified under the terminal corresponding to the current access mode of the user. And sending, to the terminal corresponding to the other access mode of the user, a notification message carrying the index information of the received data;
  • the data sending module 44 is configured to perform information exchange with the terminal corresponding to the other access modes of the user, and send the data corresponding to the index information to the terminal corresponding to the other access mode of the user.
  • the device can be placed in a PIM server.
  • the embodiment of the present invention actively sends a notification message to the user's terminal through the server, and instructs the user's terminal to perform data synchronization, so that after the user sends the data to the server through the terminal corresponding to the access mode, the The terminal corresponding to the user's other access modes can effectively and timely understand the data status of the server and perform corresponding data synchronization operations. Avoid data conflicts of various access terminals of users.
  • the invention can be implemented by hardware, or can be realized by means of software plus necessary general hardware platform.
  • the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non- Volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform various embodiments of the present invention Said method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

终端间进行数据同步的方法和装置 技术领域
本发明实施例涉及通信领域,尤其涉及一种终端间进行数据同步 的方法和装置。 背景技术
现代社会是信息社会。用户可以随时随地通过移动设备进行信息 的接收和发送, 或执行移动设备中的应用程序。 上述数据交互和执行 应用程序的结果需要存储到移动设备中,并与其他设备中这种类型的 数据保持一致。 比如, 在手机中和 PDA ( Personal Digital Assistant, 个人数字助理) 中都存有通讯录, 在办公室和家里的 PC ( Personal Computer, 个人计算机)机或者笔记本也都存有相同的通讯录, 人们 希望这些设备中的通讯录信息能保持一致, 当其中一个设备上的通讯 录信息发生变化时, 其他设备中的通信录信息需要做相应的更新, 即 进行数据同步。
PIM ( Personal Information Management, 个人信息管理)服务器 可以为用户终端提供多种接入方式,用户可以通过多种接入方式对应 的多种终端分别同 PIM服务器进行交互, 完成对数据的维护和操作。 例如, 用户可以通过移动终端使用 DS ( Dial Service, 自动电话业务) 协议同 PIM服务器进行交互,将本地的电话本同步到 PIM服务器上; 也可以通过 PC客户端同 PIM服务器进行交互; 也可以通过 WEB ( World wide Web, 万维网 )终端来同 PIM服务器进行交互。
现有技术中一种终端间进行数据同步的方法为:用户使用某种接 入方式对应的终端接入到 PIM服务器, 同该 PIM服务器之间进行交 互, 将用户的电话本信息同步备份到该 PIM服务器上。 然后, 当该 用户使用其它接入方式对应的终端接入到上述 PIM服务器后, 当该 用户发现该其它接入方式对应的终端上保存的电话本信息同上述 PIM服务器不一致后, 该其它终端同上述 PIM服务器进行交互, 获 取上述备份到 PIM服务器上的电话本信息, 将本地保存的电话本信 息进行更新, 从而实现终端间的数据同步。
在实现本发明的过程中,发明人发现上述现有技术的方法的缺点 为: 当用户使用某个接入方式对应的终端和 PIM服务器进行交互, 更新了 PIM服务器上的数据时, 该用户的其它接入方式对应的终端 不能及时进行相应的数据同步。 发明内容
本发明实施例提供了一种终端间进行数据同步的方法和装置,以 实现用户的各种接入方式对应的终端及时进行数据同步。
为了达到上述目的,本发明实施例一方面提供一种终端间进行数 据同步的方法, 包括:
服务器接收用户通过某种接入方式对应的终端发送的数据; 所述服务器向所述用户的其它终端发送通知消息,并且向所述其 它终端提供所述数据。
另一方面, 本发明实施例还提供一种终端间进行数据同步的装 置, 包括:
数据接收模块,用于接收用户通过某种接入方式对应的终端向服 务器发送的数据;
通知消息发送模块,用于当所述用户通过其它终端连接所述服务 器后, 向所述用户的其它终端发送通知消息;
数据发送模块,用于将所述数据接收模块接收到的数据发送给所 述用户的其它接入方式对应的终端。
与现有技术相比, 本发明实施例具有以下优点: 本发明实施例通 过服务器向用户的终端主动发送通知消息,指示用户的终端进行数据 同步。从而可以实现当用户通过某种接入方式对应的终端向服务器发 送了数据后,该用户的其它接入方式对应的终端能够及时有效地了解 服务器的数据状态, 并进行相应的数据同步操作。 附图说明
图 1为本发明实施例所述方法的一个具体实现过程的处理流程 图;
图 2为本发明实施例所述 PIM服务器处理用户对 PIM数据更新的 处理流程图;
图 3为本发明实施例所述当用户再次通过某种其它接入方式对应 的终端登陆 PIM服务器后, PIM服务器进行相应的同步操作的处理流 程图;
图 4 为本发明实施例所述终端间进行数据同步的装置的实施例 的结构示意图。 具体实施方式
本发明实施例提供了一种终端间进行数据同步的方法和装置。 本发明实施例在用户通过某种接入方式对应的终端和 PIM服务 器进行交互, 更新了 PIM服务器上的数据后。 当该用户通过其它接入 方式对应的终端接入到上述 PIM服务器后, PIM服务器及时向该其它 接入方式对应的终端发送通知消息。接收到上述通知消息的上述终端 和 PIM服务器进行相应的数据同步操作。
本发明实施例所述方法的一个具体实现过程的处理流程如图 1所 示, 包括如下步骤:
步骤 1-1、 用户使用手机连接 PIM服务器, 在手机和 PIM服务器之 间进行数据同步, 更新 PIM服务器上的 PIM数据。 用户使用手机等移 动终端和 PIM服务器之间进行数据同步的过程可以基于 SyncML同步 协议来完成。
SyncML同步协议主要定义数据同步操作的会话过程中的数据流 程, 同步双方的握手过程, 数据同步操作的类型等等。 SyncML同步 协议还定义了用于数据同步操作中实体之间传递的消息的格式,即定 义了终端和 PIM服务器之间传递的消息的格式。
SyncML同步协议包含七种同步方式, 分别为:
1、 双向同步: 表示客户端与服务器端双方把各自的更新数据同 步给对方;
2、 慢同步: 双向同步的一种, 客户端与服务器端把自己的所有 数据都发送给对方, 进行一对一的比较同步, 该同步方式需要较长的 时间。
3、 客户端单路同步: 客户端把数据更新发送到服务器端, 服务 端不发送更新数据给客户端;
4、 客户端刷新同步: 客户端把全部的数据发送到服务器端, 代 替服务器端的所有数据;
5、 服务器端单路同步: 服务器端把数据更新送到客户端, 客户 端不发送数据给服务器端;
6、 服务器端刷新同步: 服务器端把全部的数据发送到客户端, 代替客户端的所有数据;
7、 服务端通知同步: 服务器端告知客户端要与服务端开始某种 特定类型的同步。
步骤 1-2、本发明实施例需要在 PIM服务器中保存上述更新的 PIM 数据、 更新的接入方式信息、 更新的时间、 终端通知标志等信息之间 的关联信息。 在该步骤中, PIM服务器处理用户对 PIM数据更新的处 理流程如图 2所示, 具体处理过程如下:
首先, 在 PIM服务器中设置各个用户对应的各种接入方式信息。 比如, 一个用户分别拥有手机、 PC客户端和 WEB终端三种接入终端。
所述 PIM服务器进行完所述数据同步操作后, 查询上述设置的各 个用户对应的各种接入方式信息, 获取所述使用手机连接 PIM服务的 用户对应的各种接入方式信息。 本发明实施例对 PIM服务器中的 PIM数据的存储方式进行改进, 针对一个 PIM数据, 相应地保存该 PIM数据的更新信息和终端通知标 志信息。
PIM服务器中的 PIM数据的存储结构可以如下述表 1所示。
表 1
Figure imgf000007_0001
上述更新标志字段、 时间戳字段和终端通知标志是新增加的字 段。
更新标志字段表明该 PIM数据更新的方式, 可以设置为更新 PIM 数据的终端信息或接入方式信息。 例如手机, 则表明该数据的更新是 通过手机方式完成的;
时间戳字段表明更新 PIM数据的时间;
终端通知标志字段表明用户的各种接入方式对应的终端是否需 要进行消息通知。 显然, 上述更新标志字段所表明的终端或接入方式 因为 PIM数据是该终端或接入方式所更新的, 不需要进行消息通知。 而其它接入方式对应的终端由于没有进行数据同步,则需要进行消息 通知。 当完成某个终端的消息通知后, 则需要将该终端的终端通知标 志字段相应地设置为不需要进行消息通知。
在上述表 1中, "Γ 代表需要进行消息通知, "0" 代表不需要进 行消息通知。 因此, 当用户通过手机来完成 PIM服务器中的 PIM数据 的更新后, 则 PIM服务器将手机所对应的终端通知标志置为 "0" , 表 明用户下次通过手机来登陆 PIM服务器, 则不发送通知消息。 将 PC客 户端、 WEB终端所对应的终端通知标志置为 "Γ , 表明用户下次通 过 PC客户端、 WEB终端来登陆 PIM服务器, 则需要发送通知消息。
当完成某个终端的消息通知后, 则 PIM服务器需要将该终端对应 的终端通知标志置为 "0"。
步骤 1-3、 当用户再次通过某种其它接入方式对应的终端登陆上 述 PIM服务器后, PIM服务器进行相应的同步操作的处理流程如图 3 所示, 具体处理过程如下:
当用户通过 PC客户端访问 PIM服务器, 进行注册登陆后。 PIM服 务器可以根据该用户的当前接入方式信息,查询其保存的上述更新的 PIM数据、 更新的接入方式信息、 更新的时间、 终端通知标志等信息 之间的关联信息 ,获得该用户的当前接入方式对应的终端对应的终端 通知标志信息。根据该终端通知标志信息判断在该用户的当前接入方 式对应的终端下, 是否有需要通知的数据项。
如果经过判断确定在该用户的当前接入方式对应的终端下有需 要通知的数据项, 则 PIM服务器向该用户的当前接入方式对应的终端 发送通知消息,并在通知消息中携带相应的需要更新的数据的索引信 息。 当用户的当前接入方式对应的终端为使手机时, PIM服务器可以 通过 PUSH (推送)方式来发送上述通知消息。
当上述通知消息发送成功,上述用户的当前接入方式对应的终端 接收到上述通知消息后,根据通知消息中携带的需要更新的数据的索 引信息, 和 PIM服务器进行相应的数据同步操作, 从 PIM服务器中获 取相应的数据, 将本地保存的数据进行相应的更新。 然后, 向 PIM服 务器发送通知恢复消息。 PIM服务器接收到上述通知恢复消息后, 将该用户的当前接入方 式以及上述需要更新的数据所对应的终端通知标志进行更新,将终端 通知标志置为不需要发送通知消息所对应的值, 即置为 "0"。
上述通知消息 PIM— Notification和通知回复消息 PIM— Response数 据结构可以如下述 XML ( Extensible Markup Language, 可扩展标记语 言)文档所示:
<?xml version:" 1.0" encoding="UTF-8 " ?>
<! -- SequenceNO表明通知消息标识 -->
<!ELEMENT SequnceNO (#PCDATA)>
<! -Update— sum表明当前通知消息中的更新数据项总数- >
<!ELEMENT Update— sum (#PCDATA)>
<! -Update— data表明通知消息的更新数据项列表-〉
<!ELEMENT Update— data (#PCDATA)>
<! -Status表明通知的回复消息中表明接收是否成功的状态, 200 表明成功- >
<!ELEMENT Status (#PCDATA)>
<!—Update— data属性列表: Index表明当前数据索引; timestamp 表明更新时间; Update— Method表明更新数据的接入方式, 可以是手 机、 PC客户端、 Web客户端— >
<!ATTLIST Update— data
Index ID #REQUIRED
timestamp CDATA #REQUIRED
Update_Method (手机 | PC客户端 | WEB客户端) #REQUIRED
>
<!—PIM— Notification表明通知消息结构—>
<! ELEMENT PIM— Notification (SequnceNO, Update— sum*, Update— data)>
<! ELEMENT PIM— Response (SequnceNO, Status)> 服务器可以向客户端发送一个通知消息,该通知消息的一个实施 例可以如下述 XML文档所示:
<?xml version:" 1.0" encoding="UTF-8 " ?>
<!— edited with XML SPY v5 rel. 4 U (http://www.xmlspy.com) by Registred (Registred) -- >
<PIM— Notification
<SequnceNO>K/SequnceNO>
<Update_sum>2</Update_sum>
<Update_data Index="0001" timestamp="2007-06-13 14:20" Update— Method="手机 "/>
<Update_data Index="0002" timestamp="2007-06-13 14:20" Update— Method="手机 "/>
</PIM— Notification
PIM— Notification通知消息, 该消息流水号为 1 , 告知当前用户有 两条需要更新数据, 这两条更新数据为: 索引为 0001的数据通过手机 方式接入进行更新, 时间为 2007-06-13 14:20; 索引为 0002的数据通 过手机方式接入进行更新, 时间为 2007-06- 13 14:20。
用户的客户端可以向 ΡΙΜ服务器发送通知回复消息, 该通知回复 消息的一个实施例可以如下述 XML文档所示:
<?xml version:" 1.0" encoding="UTF-8 " ?>
<!DOCTYPE PIM— Response SYSTEM "C:\Documents and Settings\yangj ian\桌面 \PIM— Notification. dtd">
<PIM_Response>
<SequnceNO>K/SequnceNO>
<Status>200</Status>
</PIM_Response>
客户端返回通知回复消息,在通知回复消息中携带通知消息的流 水号和状态 200信息, 表明客户端成功接收到了上述通知消息。 本发明实施例所述终端间进行数据同步的装置的实施例的结构 示意图如图 4所示, 包括如下模块:
数据接收模块 41 ,用于接收用户通过某种接入方式对应的终端向 服务器发送的数据, 对服务器上的数据进行更新。 上述数据可以为 PIM数据。
通知标志信息保存模块 42,用于保存接收到的数据和所述用户的 各种接入方式对应的通知标志之间的关联关系。在服务器中需要保存 上述更新的 PIM数据、 更新的接入方式信息、 更新的时间、 终端通知 标志等信息之间的关联信息。所述用户发送所述数据的接入方式对应 的通知标志表示不需要发送通知消息,所述用户的其它接入方式对应 的通知标志表示需要发送通知消息。
通知消息发送模块 43,用于当所述用户通过其它接入方式对应的 终端连接所述服务器后, 所述服务器查询其保存的上述更新的 PIM数 据、 更新的接入方式信息、 更新的时间、 终端通知标志等信息之间的 关联信息,获得该用户的当前接入方式对应的终端对应的终端通知标 志信息。根据该终端通知标志信息判断在该用户的当前接入方式对应 的终端下, 是否有需要通知的数据项。 当判断结果为有时, 向所述用 户的其它接入方式对应的终端发送携带所述接收到的数据的索引信 息的通知消息;
数据发送模块 44,用于和所述用户的其它接入方式对应的终端进 行信息交互,将所述索引信息对应的数据发送给所述用户的其它接入 方式对应的终端。
所述装置可以设置于 PIM服务器中。
综上所述,本发明实施例通过服务器向用户的终端主动发送通知 消息, 指示用户的终端进行数据同步, 从而可以实现当用户通过某种 接入方式对应的终端向服务器发送了数据后,该用户的其它接入方式 对应的终端能够及时有效地了解服务器的数据状态,并进行相应的数 据同步操作。 避免用户的各种接入终端的数据冲突。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解 到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平 台的方式来实现基于这样的理解,本发明的技术方案可以以软件产品 的形式体现出来, 该软件产品可以存储在一个非易失性存储介质(可 以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一 台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述的方法。
总之, 以上所述仅为本发明的较佳实施例而已, 并非用于限定本 发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求
1、 一种终端间进行数据同步的方法, 其特征在于, 包括: 服务器接收用户通过某种接入方式对应的终端发送的数据; 所述服务器向所述用户的其它终端发送通知消息,并且向所述其 它终端提供所述数据。
2、 如权利要求 1所述的方法, 其特征在于, 所述用户的其它终端 包括所述用户的其它接入方式的终端,或者所述用户在某种接入方式 的其它终端。
3、 如权利要求 1所述的方法, 其特征在于, 所述服务器接收到所 述数据之后, 发送所述通知消息之前, 具体包括:
所述服务器接收到所述数据后, 将所述数据进行保存, 并且保存 所述数据和所述用户的各种接入方式之间的对应关系。
4、 如权利要求 3所述的方法, 其特征在于, 所述服务器保存所述 数据和所述用户的各种接入方式之间的对应关系的过程, 具体包括: 所述服务器接收到所述数据后,查询设置的各个用户对应的各种 接入方式信息, 获取发送所述数据的所述用户对应的各种接入方式; 所述服务器保存所述数据和所述用户的各种接入方式对应的通 知标志之间的关联关系,所述用户的当前接入方式对应的通知标志表 示不需要发送通知消息,所述用户的其它接入方式对应的通知标志表 示需要发送通知消息。
5、 如权利要求 3或 4所述的方法, 其特征在于, 所述服务器向所 述用户的其它接入方式对应的终端发送通知消息,所述其它接入方式 对应的终端通过所述服务器获取所述数据的过程, 具体包括:
当所述用户通过其它接入方式对应的终端连接所述服务器后,所 述服务器查询所述保存的所述数据和所述用户的各种接入方式之间 的对应关系, 获取所述其它接入方式对应的需要通知的数据信息; 所述服务器向所述其它接入方式对应的终端发送携带所述需要 通知的数据信息的索引信息的通知消息,所述其它接入方式对应的终 端接收到所述通知消息后,从所述服务器获取所述索引信息对应的数 据, 并进行相应的数据更新。
6、 如权利要求 5所述的方法, 其特征在于, 所述方法还包括: 所述服务器将所述其它接入方式对应的通知标志进行更新,更新 后的通知标志表示不需要发送通知消息。
7、 如权利要求 5所述的方法, 其特征在于, 所述方法还包括: 所述服务器接收所述其它接入方式对应的终端发送的通知回复 消息。
8、 一种终端间进行数据同步的装置, 其特征在于, 包括: 数据接收模块,用于接收用户通过某种接入方式对应的终端向服 务器发送的数据;
通知消息发送模块,用于当所述用户通过其它终端连接所述服务 器后, 向所述用户的其它终端发送通知消息;
数据发送模块,用于将所述数据接收模块接收到的数据发送给所 述用户的其它终端。
9、如权利要求 8所述的终端间进行数据同步的装置,其特征在于, 所述的其它终端包括所述用户的其它接入方式的终端,或者所述用户 在某种接入方式的其它终端。
10、 如权利要求 8所述的终端间进行数据同步的装置, 其特征在 于, 所述装置还包括:
通知标志信息保存模块,用于保存接收到的数据和所述用户的各 种接入方式对应的通知标志之间的关联关系,所述用户发送所述数据 的接入方式对应的通知标志表示不需要发送通知消息,所述用户的其 它接入方式对应的通知标志表示需要发送通知消息。
11、如权利要求 8或 9所述的终端间进行数据同步的装置, 其特征 在于,所述通知消息发送模块向所述用户的其它接入方式对应的终端 发送携带所述接收到的数据的索引信息的通知消息;所述数据发送模 块将所述索引信息对应的数据发送给所述用户的其它接入方式对应 的终端。
12、如权利要求 8或 9所述的终端间进行数据同步的装置, 其特征 在于, 所述装置设置于个人信息管理 PIM服务器中。
PCT/CN2008/071518 2007-07-02 2008-07-02 Procédé et dispositif permettant une synchronisation de données entre des terminaux WO2009003414A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP08773079A EP2163989A4 (en) 2007-07-02 2008-07-02 METHOD AND DEVICE FOR DATA SYNCHRONIZATION BETWEEN TERMINALS
US12/511,764 US20090293069A1 (en) 2007-07-02 2009-07-29 Method and apparatus for synchronizing data between terminals

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710118216.8 2007-07-02
CNA2007101182168A CN101340425A (zh) 2007-07-02 2007-07-02 终端间进行数据同步的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/511,764 Continuation-In-Part US20090293069A1 (en) 2007-07-02 2009-07-29 Method and apparatus for synchronizing data between terminals

Publications (1)

Publication Number Publication Date
WO2009003414A1 true WO2009003414A1 (fr) 2009-01-08

Family

ID=40214380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071518 WO2009003414A1 (fr) 2007-07-02 2008-07-02 Procédé et dispositif permettant une synchronisation de données entre des terminaux

Country Status (4)

Country Link
US (1) US20090293069A1 (zh)
EP (1) EP2163989A4 (zh)
CN (1) CN101340425A (zh)
WO (1) WO2009003414A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900497A (zh) * 2018-06-25 2018-11-27 江苏欧软信息科技有限公司 一种异构系统间的数据同步方法及系统

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008059158A1 (fr) * 2006-11-15 2008-05-22 France Telecom Procede et systeme de telecommunication offrant une pluralite de moyens d'acces mutuellement coherents a une base de messages
US8059809B1 (en) * 2007-03-16 2011-11-15 Nextel Communications Inc. Systems and methods of establishing group calls
US8010487B2 (en) * 2008-06-27 2011-08-30 Microsoft Corporation Synchronization and collaboration within peer-to-peer and client/server environments
KR20110040185A (ko) * 2009-10-13 2011-04-20 한국전자통신연구원 선박과 육상간의 적응적 정보 동기화 장치 및 방법
CN101730085B (zh) * 2009-11-18 2012-09-05 中国电信股份有限公司 通信录数据同步方法和系统
US8909662B2 (en) * 2009-12-30 2014-12-09 Sybase, Inc. Message based mobile object with native PIM integration
US9857177B1 (en) 2012-06-20 2018-01-02 Amazon Technologies, Inc. Personalized points of interest for mapping applications
US9538319B1 (en) * 2012-06-20 2017-01-03 Amazon Technologies, Inc. Synchronization for mapping applications
EP2723041A1 (en) * 2012-10-19 2014-04-23 Telefonica S.A. A multi device synchronization method and system
CN105763650B (zh) * 2013-11-26 2019-08-02 北京奇虎科技有限公司 一种离线文件传输的方法、系统、终端设备以及服务器
CN107453894B (zh) * 2016-05-30 2021-05-25 北京京东尚科信息技术有限公司 支持智能客服机器人入口开放的方法、系统、装置和计算机可读存储介质
US20180004829A1 (en) * 2016-06-30 2018-01-04 Facebook, Inc. Techniques for database replication between client devices
US10706069B2 (en) 2016-06-30 2020-07-07 Facebook, Inc. Techniques for replication of a client database to remote devices
CN112130773A (zh) * 2020-11-24 2020-12-25 北京联想协同科技有限公司 一种数据访问方法、装置及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5884325A (en) * 1996-10-09 1999-03-16 Oracle Corporation System for synchronizing shared data between computers
JP2000035910A (ja) * 1998-07-17 2000-02-02 Ntt Mobil Communication Network Inc データベースシステム用端末装置、データベース管理システム及びデータベース管理方法
CN1526099A (zh) * 2001-03-16 2004-09-01 ������������ʽ���� 使数据同步的系统、用于该系统的装置和数据同步方法
CN1647071A (zh) * 2001-10-24 2005-07-27 Bea系统公司 数据同步

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2203571B (en) * 1986-11-08 1990-07-25 Trident Trade And Management S Data bank update system
US6694336B1 (en) * 2000-01-25 2004-02-17 Fusionone, Inc. Data transfer and synchronization system
US20040093342A1 (en) * 2001-06-27 2004-05-13 Ronald Arbo Universal data mapping system
US8880735B2 (en) * 2003-09-05 2014-11-04 Sierra Wireless, Inc. Mail server based application record synchronization
US20050203905A1 (en) * 2004-03-12 2005-09-15 Samsung Electronics Co., Ltd. Method of synchronizing data between server and user terminal using messenger service system and system using the same
US20090300169A1 (en) * 2008-06-03 2009-12-03 Microsoft Corporation Synchronization throttling based on user activity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5884325A (en) * 1996-10-09 1999-03-16 Oracle Corporation System for synchronizing shared data between computers
JP2000035910A (ja) * 1998-07-17 2000-02-02 Ntt Mobil Communication Network Inc データベースシステム用端末装置、データベース管理システム及びデータベース管理方法
CN1526099A (zh) * 2001-03-16 2004-09-01 ������������ʽ���� 使数据同步的系统、用于该系统的装置和数据同步方法
CN1647071A (zh) * 2001-10-24 2005-07-27 Bea系统公司 数据同步

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2163989A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900497A (zh) * 2018-06-25 2018-11-27 江苏欧软信息科技有限公司 一种异构系统间的数据同步方法及系统
CN108900497B (zh) * 2018-06-25 2021-11-02 江苏欧软信息科技有限公司 一种异构系统间的数据同步方法及系统

Also Published As

Publication number Publication date
EP2163989A4 (en) 2010-09-29
CN101340425A (zh) 2009-01-07
US20090293069A1 (en) 2009-11-26
EP2163989A1 (en) 2010-03-17

Similar Documents

Publication Publication Date Title
WO2009003414A1 (fr) Procédé et dispositif permettant une synchronisation de données entre des terminaux
CN102148817B (zh) 配置网络设备的方法、客户端、服务器端及网络系统
US10951395B2 (en) Data fetching in data exchange networks
US20100322236A1 (en) Method and apparatus for message routing between clusters using proxy channels
US8667122B2 (en) Method and apparatus for message routing optimization
US20080155112A1 (en) System and method for updating information feeds
TW200521748A (en) Transport and administration model for offline browsing
JP4546801B2 (ja) 同期通知をクライアント装置に提供する方法
CN111143382B (zh) 数据处理方法、系统和计算机可读存储介质
US20100287253A1 (en) Method, apparatus, and system for data synchronization
TW201246103A (en) Category information transmission method, system and apparatus
WO2009039764A1 (fr) Méthode de groupage de messages instantanés de contact de mobiles et système et équipements associés
WO2012151993A1 (zh) 业务推送方法和装置
JP4940304B2 (ja) 無線通信システムにおけるデータベース管理
WO2014206346A1 (zh) 一种终端与服务器进行同步的方法和装置
WO2010028571A1 (zh) 大数据对象的传输方法、传输系统及发送设备和接收设备
CN105978948B (zh) 一种云服务的方法和系统
CN103812900A (zh) 一种数据同步方法、装置及系统
WO2013170747A1 (zh) 一种文档共享的方法及系统、设备
CN101325611A (zh) 一种点对点下载的方法及装置
US8463744B2 (en) Method and system for synchronizing data
WO2012116579A1 (zh) 一种信息反馈方法和相应的服务器
CN105635222A (zh) 云终端升级方法、系统、网管服务器及代理服务器
WO2012152076A1 (zh) 业务适配方法、装置及系统
WO2023186154A1 (zh) 数据传输系统以及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08773079

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2008773079

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE