KR20070077734A - Method for synchronizing a database between a communication terminal and server - Google Patents
Method for synchronizing a database between a communication terminal and server Download PDFInfo
- Publication number
- KR20070077734A KR20070077734A KR1020060007486A KR20060007486A KR20070077734A KR 20070077734 A KR20070077734 A KR 20070077734A KR 1020060007486 A KR1020060007486 A KR 1020060007486A KR 20060007486 A KR20060007486 A KR 20060007486A KR 20070077734 A KR20070077734 A KR 20070077734A
- Authority
- KR
- South Korea
- Prior art keywords
- database
- communication terminal
- synchronization
- server
- user data
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
Abstract
Description
도 1은 통상적인 통신 단말과 서버와의 데이터베이스 동기화 설명도.1 is an explanatory diagram of database synchronization between a normal communication terminal and a server.
도 2는 본 발명에 따른 통신 단말과 서버와의 데이터베이스 동기화 흐름도.2 is a database synchronization flowchart of a communication terminal and a server according to the present invention.
**도면의 주요부분에 대한 부호의 설명**** Description of the symbols for the main parts of the drawings **
본 발명은 통신 단말과 서버와의 데이터베이스 동기화에 관한 것으로, 특히 최초 동기화 수행시 기존 사용자 데이터를 유지하기 위한 방법에 관한 것이다.The present invention relates to database synchronization between a communication terminal and a server, and more particularly, to a method for maintaining existing user data during initial synchronization.
이동 단말, 휴대용 컴퓨터들, 개인정보단말기(PDA)들과 같은 통신 단말은 다양한 데이터로 이루어진 데이터베이스를 구비한다.Communication terminals, such as mobile terminals, portable computers, and personal digital assistants (PDAs), have a database of various data.
정상적인 서비스 제공을 위해, 이러한 통신 단말의 데이터베이스는 서버의 데이터베이스와 매칭되어야 한다. 이와 같은 통신 단말의 데이터베이스와 서버의 데이터베이스의 매칭 동작을 데이터베이스의 동기화(Synchronization)라고 한다.In order to provide normal service, the database of such a communication terminal must match the database of the server. Such matching operation between the database of the communication terminal and the database of the server is referred to as synchronization of the database.
도 1은 통상적인 통신 단말과 서버와의 데이터베이스 동기화 설명도인데, 서 로 통신가능한 서버(11)와 통신 단말(12)이 도시되어 있다.1 is a schematic diagram of database synchronization between a general communication terminal and a server, and a
도 1을 참조하면, 서버(11)와 통신 단말(12)과의 데이터베이스의 동기화는 사용자에 의해 통신 단말(12)에 동기화 명령이 입력되면 통신 단말(11)과 서버(12) 사이에 동기화 세션이 연결되고, 이 후 통신 단말(11)이 자신의 데이터베이스에서의 변경 사항을 포함하는 메시지를 서버(12)에 전송하고, 서버(12)는 자신의 데이터베이스에서의 변경 사항을 포함하는 메시지를 통신 단말(12)에 전송함으로써 수행된다. 여기에서, 상기 통신 단말(12)과 서버(11)는 상대방으로부터의 메시지에 포함된 변경 사항을 근거로 자신의 데이터베이스를 갱신한다.Referring to FIG. 1, the synchronization of the database between the
종래 기술에서는 통신 단말에 최초로 동기화 명령이 입력되는 경우, 사용자에 의해 작성되고 통신 단말에 기저장된 사용자 데이터(예를 들어, 전화번호 데이터, 일정관리 데이터 등)를 일괄적으로 삭제하고 전술한 동기화 동작을 수행하였다.In the prior art, when the synchronization command is input to the communication terminal for the first time, the user data (for example, telephone number data, schedule data, etc.) created by the user and pre-stored in the communication terminal are collectively deleted and the above-described synchronization operation is performed. Was performed.
그러나 이와 같이 최초 동기화 동작시 기존 사용자 데이터를 삭제하는 종래 기술에 따른 최초 동기화 동작은 사용자에게 큰 불편을 주는 문제점이 있다.However, the initial synchronization operation according to the prior art, which deletes existing user data during the initial synchronization operation, has a problem in that the user is inconvenient.
따라서, 본 발명은 최초 동기화 이전에 통신 단말에 저장된 사용자 데이터를 보존할 수 있는 동기화 방법을 제공하는 것을 목적으로 한다.Accordingly, an object of the present invention is to provide a synchronization method capable of preserving user data stored in a communication terminal prior to initial synchronization.
상기와 같은 목적을 달성하기 위한 본 발명의 통신 단말과 서버와의 데이터베이스 동기화 방법은, 통신 단말에 입력된 동기화 명령이 최초 동기화 명령인지를 판단하는 단계와, 상기 입력된 동기화 명령이 최초 동기화 명령일 때, 상기 통신 단말에 기저장된 사용자 데이터를 별개 메모리에 저장하고 상기 통신 단말의 데이터베이스의 동기화를 실행하는 단계를 포함하는 것을 특징으로 한다.The database synchronization method between the communication terminal and the server of the present invention for achieving the above object comprises the steps of determining whether the synchronization command input to the communication terminal is the first synchronization command, the input synchronization command is the first synchronization command The method may include storing user data previously stored in the communication terminal in a separate memory and performing synchronization of a database of the communication terminal.
이하, 본 발명에 따른 실시 예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명에 따른 통신 단말과 서버와의 데이터베이스 동기화 흐름도인데, 이에 도시된 바와 같이, 통신 단말에 동기화 명령이 입력되는 단계(S21)와, 통신 단말 또는 서버의 데이터베이스에 마지막 앵커(last anchor)가 존재하는지 확인하는 단계(S22)와, 마지막 앵커가 존재하지 않는 경우, 통신 단말에 기저장된 사용자 데이터를 별개 메모리에 저장하는 단계(S23)와, 서버와 통신 단말의 데이터베이스를 동기화하는 단계(S24)와, 별개 메모리에 저장된 사용자 데이터를 통신 단말의 동기화된 데이터베이스에 입력하는 단계(S25)와, 상기 단계(S22)에서 마지막 앵커가 존재하는 경우, 서버와 통신 단말의 데이터베이스를 동기화하는 단계(S26)를 포함한다.2 is a flowchart illustrating a database synchronization between a communication terminal and a server according to the present invention. As shown in FIG. 2, a synchronization command is input to a communication terminal (S21), and a last anchor in a database of a communication terminal or a server. ) (S22), and if the last anchor does not exist, storing the user data previously stored in the communication terminal in a separate memory (S23), and synchronizing the database of the server and the communication terminal ( S24, inputting user data stored in a separate memory into the synchronized database of the communication terminal (S25), and if there is a last anchor in the step (S22), synchronizing the database of the server and the communication terminal ( S26).
먼저, 사용자가 통신 단말에서 동기화 명령을 입력하거나 미리 설정된 조건이 만족한 경우(예를 들어 통신 단말의 전원이 온될때마다 동기화가 실행되도록 설정하고 통신 단말의 전원이 온된 경우)에 의해 통신 단말에 동기화 명령이 입력된다(S21).First, when a user inputs a synchronization command in a communication terminal or when a preset condition is satisfied (for example, when the communication terminal is turned on and the synchronization is executed and the power of the communication terminal is turned on), A synchronization command is input (S21).
다음, 통신 단말 또는 서버의 데이터베이스에 갱신 식별자가 존재하는지를 확인한다(S22). 여기에서, 상기 통신 단말은 이동 단말(MS), 개인 휴대정보 단말기 (PDA), 휴대용 컴퓨터, 텔레매틱스 단말 등을 포함할 수 있고, 상기 서버는 데스크톱 컴퓨터, 원격 서버 등일 수 있다.Next, it is checked whether an update identifier exists in the database of the communication terminal or the server (S22). Here, the communication terminal may include a mobile terminal (MS), a personal digital assistant (PDA), a portable computer, a telematics terminal, and the like, and the server may be a desktop computer, a remote server, or the like.
상기 갱신 식별자는 통신 단말에서 마지막으로 수행된 동기화 시점에 관한 정보를 지시하는 임의의 식별자로서 데이터베이스의 갱신에 관한 순서 번호 또는 타임 스탬프일 수 있으며, SynML 표준에서는 마지막 앵커(last anchor)로 불린다. 마지막 앵커를 이용한 최초 동기화 여부 판단에 대해 구체적으로 설명하면 다음과 같다.The update identifier is an arbitrary identifier indicating information on a synchronization point last performed in a communication terminal, and may be a sequence number or a time stamp for updating a database, and is called a last anchor in the SynML standard. The first synchronization using the last anchor will be described in detail as follows.
데이터베이스의 동기화를 위해, 확장 마크업 언어(XML, eXtensible Markup Language)에 기초한 동기화 마크업 언어(SyncML, Synchronized Markup Language) 표준이 주로 사용된다.For synchronization of databases, the Synchronized Markup Language (SyncML) standard based on the Extended Markup Language (XML) is mainly used.
상기 SyncML 표준은 데이터베이스들과 연관된 동기화 앵커들을 사용한다. 상기 동기화 앵커들은 날짜 및 시간으로써 동기화 이벤트를 기술하는 문자열이다. 이와 같은 동기화 앵커들은 마지막 앵커 및 다음 앵커(next anchor)가 있는데, 마지막 앵커는 데이터베이스가 동기화된 마지막 이벤트를 지시하고 다음 앵커는 현재 진행중인 동기화 이벤트를 지시한다.The SyncML standard uses synchronization anchors associated with databases. The synchronization anchors are strings that describe synchronization events by date and time. Such synchronization anchors include a last anchor and a next anchor, where the last anchor indicates the last event that the database is synchronized with and the next anchor indicates the synchronization event currently in progress.
즉, 한번이라도 통신 단말 또는 서버의 데이터베이스에서 동기화 동작이 수행되면 마지막 앵커가 각각의 데이터베이스와 연관되어 존재하게 되기 때문에, 마지막 앵커의 존재 여부를 판단함으로써 이번 동기화 명령이 최초 동기화를 위한 명령인지 아닌지를 판단할 수 있다.That is, if a synchronization operation is performed in a database of a communication terminal or a server at least once, the last anchor is associated with each database. Therefore, whether or not this synchronization command is for initial synchronization is determined by determining whether the last anchor exists. You can judge.
상기 단계(S22)에서 마지막 앵커가 존재하지 않는 경우, 통신 단말에 기저장 된 사용자 데이터를 별개 메모리에 저장한다(S23). 즉, 사용자에 의해 작성되고 통신 단말에 기저장된 전화번호부나 일정관리부와 같은 사용자 데이터를 보존하기 위해, 최초 동기화 수행 이전에 사용자 데이터를 별개의 메모리에 저장한다.If the last anchor does not exist in the step S22, the user data previously stored in the communication terminal are stored in a separate memory (S23). That is, in order to preserve user data, such as a phone book or a schedule manager, created by the user and pre-stored in the communication terminal, the user data is stored in a separate memory before the initial synchronization is performed.
이 후에, 통신 단말과 서버와의 데이터베이스 동기화를 수행한다(S24). 상기 데이터베이스 동기화는 통신 단말과 서버 사이에 연결된 동기화 세션을 통해 메시지, 예를 들어 SyncML 표준에 따른 SyncML 메시지를 송수신함으로써 수행된다.Thereafter, database synchronization between the communication terminal and the server is performed (S24). The database synchronization is performed by sending and receiving a message, for example, a SyncML message according to the SyncML standard, through a synchronization session connected between a communication terminal and a server.
SyncML 메시지 송수신을 통한 데이터베이스 동기화를 설명하자면, 통신 단말에 동기화 명령이 입력되면 통신 단말과 서버 사이에 SyncML 메시지를 송수신하여 동기화 세션이 연결되고, 상기 동기화 세션을 통해 통신 단말 또는 서버가 자신의 데이터베이스에서의 변경 사항 정보를 포함하는 SyncML 메시지를 상대방에 전송하고, 상대방은 상기 변경 사항 정보에 근거하여 자신의 데이터베이스를 갱신한다.Referring to the synchronization of the database through the transmission and reception of the SyncML message, when a synchronization command is input to the communication terminal, a synchronization session is connected by transmitting and receiving a SyncML message between the communication terminal and the server, and the communication terminal or the server in the database through the synchronization session. Sends a SyncML message including the change information of to the counterpart, and the counterpart updates its database based on the change information.
그리고 나서, 상기 단계(S23)에서 별개 메모리에 저장된 사용자 데이터를 통신 단말의 동기화된 데이터베이스에 입력한다(S25). 구체적으로 상기 사용자 데이터는 SQL(structured query language) 질의문을 통해 데이터베이스를 구성하는 데이터 테이블에 입력될 수 있다. 이를 통해, 통신 단말의 데이터베이스와 별도로 별개 메모리에 저장해둔 사용자 데이터를 통신 단말의 데이터베이스에 일체화한다.Then, the user data stored in the separate memory in the step (S23) is input to the synchronized database of the communication terminal (S25). In more detail, the user data may be input to a data table constituting a database through a structured query language (SQL) query. Through this, the user data stored in a separate memory separate from the database of the communication terminal is integrated into the database of the communication terminal.
상기 단계(S22)에서 마지막 앵커가 존재하는 경우, 곧바로 통신 단말과 서버와의 데이터베이스 동기화를 수행한다(S26). 이는 통신 단말에 기저장된 사용자 데이터는 동기화 과정 중에 삭제되지 않기 때문인데, 오히려 상기 사용자 데이터는 통신 단말의 변경 사항으로서 서버에 전송되는 메시지에 포함되고, 서버는 상기 메 시지에 포함된 사용자 데이터를 근거로 자신의 데이터베이스를 갱신한다.If there is a last anchor in step S22, database synchronization between the communication terminal and the server is immediately performed (S26). This is because the user data previously stored in the communication terminal are not deleted during the synchronization process. Rather, the user data is included in the message transmitted to the server as a change of the communication terminal, and the server is based on the user data included in the message. Updates his database with
본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Those skilled in the art will appreciate that various modifications and variations can be made without departing from the essential features of the present invention. Therefore, the embodiments disclosed in the present invention are not intended to limit the technical idea of the present invention but to describe the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.
이상에서 상세히 설명한 바와 같이, 본 발명은 실행되는 동기화가 최초 동기화인지를 판단하고, 최초 동기화인 경우 통신 단말에 기저장된 사용자 데이터를 별도로 저장하고, 최초 동기화 실행 후에 별도로 저장된 사용자 데이터를 동기화된 데이터베이스에 입력함으로써, 최초 동기화 실행 이전에 작성된 사용자 데이터를 보존하는 효과가 있다.As described in detail above, the present invention determines whether the synchronization to be executed is the first synchronization, and in the case of the first synchronization, separately stores user data previously stored in the communication terminal, and stores the user data stored separately after the initial synchronization is performed in the synchronized database. By input, there is an effect of preserving user data created before the first synchronization execution.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020060007486A KR20070077734A (en) | 2006-01-24 | 2006-01-24 | Method for synchronizing a database between a communication terminal and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020060007486A KR20070077734A (en) | 2006-01-24 | 2006-01-24 | Method for synchronizing a database between a communication terminal and server |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20070077734A true KR20070077734A (en) | 2007-07-27 |
Family
ID=38502247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020060007486A KR20070077734A (en) | 2006-01-24 | 2006-01-24 | Method for synchronizing a database between a communication terminal and server |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20070077734A (en) |
-
2006
- 2006-01-24 KR KR1020060007486A patent/KR20070077734A/en not_active Application Discontinuation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5065482B2 (en) | Method and apparatus for synchronizing data sets in a wireless environment | |
US7716661B2 (en) | Embedded device update service | |
KR100547896B1 (en) | Data Synchronization System and Data Synchronization Method of Server and Client | |
EP1271320B1 (en) | Method and system for using a sync key | |
US20200142908A1 (en) | Database synchronization | |
EP3125509A1 (en) | Application information sharing method and apparatus | |
US20080270629A1 (en) | Data snychronization and device handling using sequence numbers | |
CA2534606C (en) | Synchronizing server and device data using device data schema | |
CN103297459A (en) | Synchronizing system of application configuration information, access server, clients and synchronizing method of application configuration information | |
CN103813000A (en) | Mobile terminal and search method thereof | |
US20100095217A1 (en) | Server-based data management system and method for mobile communication system | |
JP2010224824A (en) | Information processing apparatus | |
US20070268789A1 (en) | Mobile communication terminal device | |
KR20080060745A (en) | System and method for managing a phone book stored in mobile terminal | |
CN101795446A (en) | Updating message sending and receiving method and terminal used for terminal user information updating | |
KR20070077734A (en) | Method for synchronizing a database between a communication terminal and server | |
CN110321462A (en) | Information dynamic updating method, device, computer equipment and storage medium | |
CN112905464B (en) | Application running environment data processing method and device | |
KR20090013257A (en) | System for service phonebook wire and wireless combine | |
US20070189501A1 (en) | Method for synchronizing contact information | |
KR100655971B1 (en) | Mobile communication terminal and method for synchronizing reservation data | |
CN111917807B (en) | Method and system for invoking download client by android system WAP webpage | |
CN115617561A (en) | SQL statement execution timeout control method and device | |
KR20030020518A (en) | Method for managing telephone numbers in mobile communication terminal | |
KR20120083621A (en) | Apparatus, method, and recording medium for providing information relative to counterpart of call in mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |