KR20230052163A - Method for providing collaborative editing service and server therefor - Google Patents

Method for providing collaborative editing service and server therefor Download PDF

Info

Publication number
KR20230052163A
KR20230052163A KR1020210161876A KR20210161876A KR20230052163A KR 20230052163 A KR20230052163 A KR 20230052163A KR 1020210161876 A KR1020210161876 A KR 1020210161876A KR 20210161876 A KR20210161876 A KR 20210161876A KR 20230052163 A KR20230052163 A KR 20230052163A
Authority
KR
South Korea
Prior art keywords
electronic device
command
editing
check point
server
Prior art date
Application number
KR1020210161876A
Other languages
Korean (ko)
Inventor
박건
여재영
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/015206 priority Critical patent/WO2023063666A1/en
Priority to EP22881294.7A priority patent/EP4354374A1/en
Priority to US17/963,299 priority patent/US20230116016A1/en
Publication of KR20230052163A publication Critical patent/KR20230052163A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

According to various embodiments, a server includes a communication module, a memory, and at least one processor. The at least one processor is set to identify at least one electronic device which has been disconnected among a plurality of electronic devices connected for collaborative editing, identify a checkpoint associated with the moment of disconnection of the at least one electronic device, sequentially process editing commands performed by the connected electronic devices among the plurality of electronic devices after the checkpoint, store obtained new editing commands of the at least one electronic device in the memory, and upon reconnection of the at least one electronic device, transmit the new editing commands to the at least one electronic device through the communication module. Various other embodiments can be provided. Therefore, the server can efficiently utilize resources in the server managing collaborative editing for a plurality of electronic devices.

Description

공동 편집 서비스를 제공하기 위한 방법 및 이를 위한 서버{METHOD FOR PROVIDING COLLABORATIVE EDITING SERVICE AND SERVER THEREFOR}Method for providing co-editing service and server therefor

본 문서에 개시된 다양한 실시 예는 공동 편집 서비스를 제공하기 위한 방법 및 이를 위한 서버에 관한 것이다.Various embodiments disclosed in this document relate to a method for providing a joint editing service and a server therefor.

스마트 폰의 보급과 정보통신 기술의 발달로 인하여 모바일 메신저(Mobile messenger), 소셜 네트워크 서비스(SNS: Social Network Service)와 같은 인스턴트 메시지 전송 어플리케이션이 확산되고 이용자들 역시 폭발적으로 늘어나고 있는 추세이다. 이러한 모바일 메신저 및 소셜 네트워크 서비스는 사용자가 자신의 업무를 수행할 때 여러 사용자들과 협업을 하기 위한 목적으로도 사용할 수 있다.Due to the spread of smart phones and the development of information and communication technology, instant message transmission applications such as mobile messengers and social network services (SNS) are spreading, and the number of users is also explosively increasing. These mobile messengers and social network services can also be used for the purpose of collaborating with multiple users when users perform their tasks.

상기한 어플리케이션 이외에 공유하고자 하는 문서를 열람, 작성, 편집할 수 있도록 하는 다양한 종류의 전자 문서 관련 프로그램들도 스마트 폰과 같은 전자 장치에서 이용 가능한 어플리케이션 형태로 개발되어 설치 및 사용되고 있다. 게다가 언제 어디서든지 인터넷에 접속할 수 있음에 따라 사용자가 전자 장치에 전자 문서 관련 어플리케이션을 설치하지 않더라도 언제든지 문서를 열람, 작성, 편집할 수 있도록 하는 웹 기반의 문서 편집 서비스도 등장하고 있다. In addition to the applications described above, various types of electronic document-related programs for viewing, writing, and editing documents to be shared have been developed, installed, and used in the form of applications usable in electronic devices such as smart phones. In addition, as the Internet can be accessed anytime and anywhere, a web-based document editing service that enables users to view, create, and edit documents at any time without installing an electronic document-related application on an electronic device has emerged.

상기한 바와 같은 문서 편집 서비스는 복수의 전자 장치에서 하나의 전자 문서에 대해 공동 편집이 가능할 수 있다. 이에 따라 복수의 사용자가 동일 문서에 대하여 타인이 수정한 내용을 손쉽게 확인할 수 있으며, 사용자간 협업이 원활하게 이루어지도록 지원할 수 있다. The document editing service as described above may allow a plurality of electronic devices to jointly edit one electronic document. Accordingly, a plurality of users can easily check contents modified by others on the same document, and it is possible to support smooth collaboration between users.

특히, 서버를 통해서는 복수의 전자 장치의 사용자들이 동일한 문서에 대해 실시간으로 동시 편집이 가능할 수 있다. 일례로, 웹 기반의 문서 편집 서비스는 복수의 전자 장치들이 공동 편집을 위해 서버에 접속한 후, 각 전자 장치에서 해당 문서를 작성 및 편집함에 따른 변경 사항을 서버로 전달하면, 서버에서는 해당 변경 사항을 다른 전자 장치들로 전송할 수 있다. 이렇게 함으로써 공동 편집에 참여 중인 복수의 전자 장치 상에 표시되고 있는 문서가 항상 동일한 편집 상태로 유지될 수 있다.In particular, through the server, users of a plurality of electronic devices may simultaneously edit the same document in real time. For example, in a web-based document editing service, a plurality of electronic devices connect to a server for joint editing, and when each electronic device transmits a change resulting from writing and editing a corresponding document to the server, the server sends the corresponding change to the server. can be transmitted to other electronic devices. In this way, documents being displayed on a plurality of electronic devices participating in joint editing can always be maintained in the same edited state.

하지만, 어느 하나의 전자 장치에서 서버와 일시적으로 연결이 불안정하게 되면, 다른 전자 장치에서의 변경 사항들은 상기 전자 장치로 전달되지 못한 채 서버에 누적되게 되며, 서버와의 재연결 시 한꺼번에 누적된 변경 사항들이 상기 전자 장치로 전달될 수 밖에 없다. 누적된 변경 사항들을 한꺼번에 수신함에 따라 전자 장치에서는 변경 사항들에 대한 순차적인 연산으로 인한 부하가 가중될 수 있다. 따라서 장애로 인해 서버와의 통신 연결이 일시적으로 끊겼던 전자 장치에서 통신 회복 시 과도한 연산으로 인한 부하를 방지할 필요가 있다. However, if the connection with the server is temporarily unstable in one electronic device, changes in other electronic devices accumulate in the server without being transmitted to the electronic device, and the changes accumulated at once when reconnecting to the server Matters have no choice but to be delivered to the electronic device. As the accumulated changes are received all at once, a load due to sequential calculation of the changes may increase in the electronic device. Therefore, it is necessary to prevent a load due to excessive computation when communication is restored in an electronic device that has temporarily lost communication with a server due to a failure.

본 문서에 개시된 다양한 실시예는, 편집 명령을 실행하는 전자 장치의 부하를 감소시킬 수 있는 공동 편집 서비스를 제공하기 위한 방법 및 이를 위한 서버가 제공될 수 있다.According to various embodiments disclosed in this document, a method for providing a joint editing service capable of reducing the load of an electronic device executing an editing command and a server therefor may be provided.

다양한 실시 예에 따르면, 서버는, 통신 모듈, 메모리 및 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치를 식별하고, 상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 체크 포인트를 식별하고, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 메모리에 저장하고, 상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정될 수 있다. According to various embodiments of the present disclosure, a server includes a communication module, a memory, and at least one processor, and the at least one processor controls at least one disconnected electronic device among a plurality of electronic devices connected for joint editing. by identifying a check point associated with a point in time at which the at least one electronic device is disconnected, and sequentially processing edit commands after the check point performed by connected electronic devices among the plurality of electronic devices. Store the acquired new edit command for the at least one electronic device in the memory, and transmit the new edit command to the at least one electronic device through the communication module when the at least one electronic device is reconnected. can

다양한 실시 예에 따르면, 서버에서 공동 편집 서비스를 제공하기 위한 방법은, 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치를 식별하는 동작, 상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별하는 동작, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 저장하는 동작 및 상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method for providing a joint editing service in a server may include an operation of identifying at least one electronic device that has been disconnected from among a plurality of electronic devices connected for joint editing; An operation of identifying a first check point associated with a time point at which the connection is lost, and the at least one obtained by sequentially processing edit commands after the first check point performed by connected electronic devices among the plurality of electronic devices. An operation of storing a new editing command for the electronic device of the electronic device and an operation of transmitting the new editing command to the at least one electronic device when the at least one electronic device is reconnected.

다양한 실시 예에 따르면, 서버에서 통신이 일시적으로 끊긴 상태의 전자 장치별로 통신 연결 끊김 동안의 편집 명령을 미리 연산하여 통신 회복 시에 해당 전자 장치에 대응되도록 제공함으로써, 통신 회복 시 전자 장치에서의 편집 명령의 처리로 인한 부하를 감소시킬 수 있다. According to various embodiments of the present disclosure, an editing command during communication disconnection is calculated in advance for each electronic device in a state in which communication is temporarily disconnected from the server, and is provided to correspond to the corresponding electronic device when communication is restored, thereby editing the electronic device when communication is recovered. The load due to command processing can be reduced.

다양한 실시 예에 따르면, 전자 장치는 서버와의 신규 연결 또는 재연결 시 해당 전자 장치에 대해 미리 연산된 결과를 제공받아 공동 편집 사항을 적용함으로써 전자 장치에 가중되는 부하를 최소화할 수 있으며, 실시간 동시 편집이 가능할 수 있다. According to various embodiments of the present disclosure, upon a new connection or reconnection with a server, the electronic device may receive a pre-calculated result for the corresponding electronic device and apply a joint editing item to minimize the load on the electronic device, real-time simultaneous Editing may be possible.

다양한 실시 예에 따르면, 서버에서 연결이 끊긴 전자 장치를 식별하고, 연결이 끊긴 전자 장치의 발생 시에만 통신 연결 끊김 동안의 편집 명령을 미리 연산하는 동작을 수행함으로써, 복수의 전자 장치를 위한 공동 편집을 관리하는 서버에서의 자원을 효율적으로 활용할 수 있다. According to various embodiments, joint editing for a plurality of electronic devices is performed by identifying an electronic device disconnected from the server and pre-computing an editing command during communication disconnection only when the disconnected electronic device occurs. You can efficiently utilize the resources on the server that manages the

본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.Effects obtainable in the present disclosure are not limited to the effects mentioned above, and other effects not mentioned may be clearly understood by those skilled in the art from the description below. will be.

도 1은 다양한 실시 예에 따른 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 시스템 구성도이다.
도 3a는 연결 끊김 시의 서버와 전자 장치의 동작을 설명하기 위한 도면이다.
도 3b는 연결 재개 시의 서버와 전자 장치 간의 동작에 따른 전자 장치의 예시적인 출력 화면을 도시한 도면이다.
도 4는 다양한 실시 예에 따른 공동 편집을 위한 서버 및 전자 장치의 내부 블록 구성도이다.
도 5는 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 서버의 동작을 설명하기 위한 상세 블록도이다.
도 6은 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 서버에서의 동작 흐름도이다.
도 7은 다양한 실시 예에 따른 전자 장치와의 연결 끊김 및 재연결 시의 서버에서의 동작 흐름도이다.
도 8은 다양한 실시 예에 따른 서버와의 연결 끊김 및 재연결 시의 전자 장치에서의 동작 흐름도이다.
도 9a는 다양한 실시 예에 따른 연결 재개 시의 서버와 전자 장치 간의 동작을 설명하기 위한 도면이다.
도 9b는 다양한 실시 예에 따른 연결 재개 시의 전자 장치의 예시적인 출력 화면을 도시한 도면이다.
도 10은 다양한 실시 예에 따른 편집 명령 충돌 시의 서버에서의 동작을 설명하기 위한 도면이다.
도 11은 다양한 실시 예에 따른 서버에서의 명령어 저장 방법을 설명하기 위한 도면이다.
도 12는 다양한 실시 예에 따른 각 전자 장치에서의 공동 편집 시의 화면 예시도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성 요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
2 is a system configuration diagram for providing a joint editing service according to various embodiments.
3A is a diagram for explaining operations of a server and an electronic device when a connection is disconnected.
3B is a diagram illustrating an exemplary output screen of an electronic device according to an operation between a server and an electronic device when a connection is resumed.
4 is an internal block diagram of a server and an electronic device for joint editing according to various embodiments.
5 is a detailed block diagram illustrating operations of a server for providing a joint editing service according to various embodiments.
6 is a flowchart illustrating an operation in a server for providing a joint editing service according to various embodiments.
7 is a flowchart illustrating an operation of a server when disconnection and reconnection with an electronic device according to various embodiments of the present disclosure;
8 is a flowchart illustrating an operation in an electronic device upon disconnection and reconnection with a server according to various embodiments of the present disclosure.
9A is a diagram for explaining an operation between a server and an electronic device when a connection is resumed according to various embodiments.
9B is a diagram illustrating an exemplary output screen of an electronic device when a connection is resumed according to various embodiments of the present disclosure.
10 is a diagram for explaining an operation in a server when an editing command conflicts, according to various embodiments of the present disclosure.
11 is a diagram for explaining a method of storing a command in a server according to various embodiments.
12 is an exemplary view of a screen during joint editing in each electronic device according to various embodiments.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar elements.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments. Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, the program 140) to cause at least one other component (eg, hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or calculations. According to one embodiment, as at least part of data processing or operation, the processor 120 transfers instructions or data received from other components (e.g., sensor module 176 or communication module 190) to volatile memory 132. , processing commands or data stored in the volatile memory 132 , and storing resultant data in the non-volatile memory 134 . According to one embodiment, the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit ( NPU: neural processing unit (NPU), image signal processor, sensor hub processor, or communication processor). For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 may use less power than the main processor 121 or be set to be specialized for a designated function. can The secondary processor 123 may be implemented separately from or as part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The secondary processor 123 may, for example, take the place of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, running an application). ) state, together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 123 (eg, image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 180 or communication module 190). there is. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. AI models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself where the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning or reinforcement learning, but in the above example Not limited. The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the foregoing, but is not limited to the foregoing examples. The artificial intelligence model may include, in addition or alternatively, software structures in addition to hardware structures.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, program 140) and commands related thereto. The memory 130 may include volatile memory 132 or non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside of the electronic device 101 (eg, a user). The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output sound signals to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. A receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside of the electronic device 101 (eg, a user). The display module 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module 160 may include a touch sensor set to detect a touch or a pressure sensor set to measure the intensity of force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal or vice versa. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device connected directly or wirelessly to the electronic device 101 (eg: Sound may be output through the electronic device 102 (eg, a speaker or a headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a bio sensor, It may include a temperature sensor, humidity sensor, or light sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device 101 to an external electronic device (eg, the electronic device 102). According to one embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 may be physically connected to an external electronic device (eg, the electronic device 102). According to one embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert electrical signals into mechanical stimuli (eg, vibration or motion) or electrical stimuli that a user may perceive through tactile or kinesthetic senses. According to one embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to one embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to one embodiment, the power management module 188 may be implemented as at least part of a power management integrated circuit (PMIC), for example.

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). Establishment and communication through the established communication channel may be supported. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : a local area network (LAN) communication module or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a telecommunications network such as a computer network (eg, a LAN or a WAN). These various types of communication modules may be integrated as one component (eg, a single chip) or implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199. The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, NR access technology (new radio access technology). NR access technologies include high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and access of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low latency (URLLC)). -latency communications)) can be supported. The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 uses various technologies for securing performance in a high frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. Technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna may be supported. The wireless communication module 192 may support various requirements defined for the electronic device 101, an external electronic device (eg, the electronic device 104), or a network system (eg, the second network 199). According to one embodiment, the wireless communication module 192 is a peak data rate for eMBB realization (eg, 20 Gbps or more), a loss coverage for mMTC realization (eg, 164 dB or less), or a U-plane latency for URLLC realization (eg, Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive signals or power to the outside (eg, an external electronic device). According to one embodiment, the antenna module 197 may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (eg, PCB). According to one embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is selected from the plurality of antennas by the communication module 190, for example. can be chosen A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module 197 in addition to the radiator.

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first surface (eg, a lower surface) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, array antennas) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( e.g. commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or part of operations executed in the electronic device 101 may be executed in one or more external electronic devices among the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 101 instead of executing the function or service by itself. Alternatively or additionally, one or more external electronic devices may be requested to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service or an additional function or service related to the request, and deliver the execution result to the electronic device 101 . The electronic device 101 may provide the result as at least part of a response to the request as it is or additionally processed. To this end, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 104 or server 108 may be included in the second network 199 . The electronic device 101 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 시스템 구성도이다.2 is a system configuration diagram for providing a joint editing service according to various embodiments.

도 2를 참조하면, 공동 편집 서비스를 제공하기 위한 시스템(200)은 전자 장치(101), 적어도 하나의 서버(205) 및 적어도 하나의 외부 전자 장치(104)를 포함할 수 있다. 여기서, 전자 장치(101) 및 적어도 하나의 외부 전자 장치(104)는 서버(205)를 통해 공동 편집 서비스를 제공받는 장치이며, 공동 편집에는 복수의 클라이언트가 참여할 수 있다. 도 2의 전자 장치(101)는 도 1의 전자 장치(101)와 동일 또는 유사한 구성부를 포함할 수 있다. 예를 들어, 전자 장치(101)는 서버(205)를 통해 공동 편집 서비스를 제공받는 장치이며, 서버(205)는 외부 전자 장치(104)와 연결되어 전자 장치(101)의 사용자가 공동 편집에 참여하기를 원하는 상대방이 로그인하여 이용할 수 있도록 하는 공동 편집 서비스를 지원할 수 있다. Referring to FIG. 2 , a system 200 for providing a joint editing service may include an electronic device 101, at least one server 205, and at least one external electronic device 104. Here, the electronic device 101 and at least one external electronic device 104 are devices that receive a joint editing service through the server 205, and a plurality of clients may participate in joint editing. The electronic device 101 of FIG. 2 may include components identical to or similar to those of the electronic device 101 of FIG. 1 . For example, the electronic device 101 is a device that receives a joint editing service through the server 205, and the server 205 is connected to the external electronic device 104 so that the user of the electronic device 101 can participate in joint editing. It is possible to support a joint editing service that allows a counterpart who wants to participate to log in and use it.

다양한 실시 예에 다르면, 적어도 하나의 외부 전자 장치(104)는 서버(205)를 통해 전자 장치(101)와 공동 편집에 참여할 수 있으며, 전자 장치(101)와의 통신을 수행할 수도 있다. 예를 들어, 적어도 하나의 외부 전자 장치(104)는 스마트 폰(202a), 또는 컴퓨터(202b)와 같은 적어도 하나의 기기들을 포함할 수 있으며, 이에 한정되지 않을 수 있다.According to various embodiments, at least one external electronic device 104 may participate in joint editing with the electronic device 101 through the server 205 and may communicate with the electronic device 101 . For example, the at least one external electronic device 104 may include at least one device such as a smart phone 202a or a computer 202b, but may not be limited thereto.

다양한 실시 예에 따르면, 전자 장치(101)는 공동 편집을 할 수 있는 어플리케이션을 실행하거나 서버(205)에 접속하여 웹 기반의 공동 편집 서비스를 제공받을 수 있다. 여기서, 공동 편집이란, 복수의 클라이언트가 공유하는 컨텐트(content)(예: 전자 문서)에 대해 공동으로 편집하는 동작을 의미할 수 있다. According to various embodiments, the electronic device 101 may execute an application capable of joint editing or access the server 205 to receive a web-based joint editing service. Here, joint editing may refer to an operation of jointly editing content (eg, an electronic document) shared by a plurality of clients.

다양한 실시 예에 따르면, 전자 장치(101)는 외부 전자 장치(104)와 함께 서버(205)에 접속한 후, 전자 장치(101)에서 해당 전자 문서를 작성 및 편집함에 따른 편집 명령을 서버(205)로 전달하면, 서버(205)에서 상기 편집 명령에 해당하는 변경 사항을 다른 외부 전자 장치(104)로 전송할 수 있다. 이렇게 함으로써 공동 편집에 참여 중인 복수의 전자 장치 상에 표시되고 있는 문서가 항상 동일한 편집 상태로 유지될 수 있다. 여기서, 편집 명령이란, 복수의 클라이언트가 공유하는 전자 문서를 편집하기 위한 명령으로, 편집용 전자 문서에 입력되는 다양한 명령을 포함할 수 있다. 예를 들어, 편집 명령은 편집용 전자 문서의 내용을 수정하는 수정 명령, 문서에 삽입되어 있는 텍스트, 이미지, 표와 같은 객체를 삭제하는 삭제 명령 및 문서에 상기와 같은 객체를 추가하는 추가 명령을 포함할 수 있다. 따라서 복수의 클라이언트 중 어느 하나의 클라이언트에서 입력한 편집 명령은 서버(205)로 전송된 후, 서버(205)를 통해 공동 편집에 참여 중인 다른 모든 클라이언트로 전송될 수 있다. According to various embodiments, after the electronic device 101 accesses the server 205 together with the external electronic device 104, the electronic device 101 sends an editing command according to writing and editing a corresponding electronic document to the server 205. ), the server 205 may transmit changes corresponding to the editing command to other external electronic devices 104 . In this way, documents being displayed on a plurality of electronic devices participating in joint editing can always be maintained in the same edited state. Here, the editing command is a command for editing an electronic document shared by a plurality of clients, and may include various commands input to the electronic document for editing. For example, the editing command includes a correction command for modifying the contents of an electronic document for editing, a delete command for deleting objects such as text, images, and tables inserted in a document, and an add command for adding the above objects to a document. can include Accordingly, an editing command input by any one of a plurality of clients may be transmitted to the server 205 and then transmitted to all other clients participating in joint editing through the server 205 .

다양한 실시 예에 따르면, 적어도 하나의 서버(205)는 도 1을 참조하여 상술한 서버(108)일 수 있다. 다양한 실시 예에 따르면, 적어도 하나의 서버(205)는 네트워크를 통해 사용자측 전자 장치(101)와 통신할 수 있다. According to various embodiments, the at least one server 205 may be the server 108 described above with reference to FIG. 1 . According to various embodiments, at least one server 205 may communicate with the user-side electronic device 101 through a network.

다양한 실시 예에 따르면, 서버(205)는 전자 장치(101)의 사용자가 제공받고자 하는 공동 편집 서비스를 제공하는 서버로서, 공동 편집을 위한 어플리케이션을 통해 전자 장치(101)와 연결될 수 있으며, 전자 장치(101)에게 다양한 종류의 전자 문서 기반의 공동 편집 서비스를 제공할 수 있다. 서버(205)에는 전자 장치(101)에 제공 가능한 편집용 전자 문서가 저장되어 있을 수 있으며, 전자 장치(101)의 요청에 따라 전자 장치(101)로 상기 편집용 전자 문서를 제공할 수 있다. According to various embodiments, the server 205 is a server that provides a joint editing service that a user of the electronic device 101 wants to receive, and can be connected to the electronic device 101 through an application for joint editing, and the electronic device 205 (101) can be provided with joint editing services based on various types of electronic documents. An electronic document for editing that can be provided to the electronic device 101 may be stored in the server 205 , and the electronic document for editing may be provided to the electronic device 101 according to a request of the electronic device 101 .

도 3a는 연결 끊김 시의 서버와 전자 장치의 동작을 설명하기 위한 도면이다. 3A is a diagram for explaining operations of a server and an electronic device when a connection is disconnected.

도 3a를 참조하면, 복수의 클라이언트 각각에서 편집 명령이 발생하면 이러한 편집 명령들은 서버(205)로 전송되고, 서버(205)는 편집 명령들을 서버(205)에 접속된 모든 클라이언트로 전송할 수 있다. 이에 따라 전자 장치(101)에서는 편집 명령들을 수신한 후, 시간 순서에 따라 편집 명령들 각각을 연산하고 순차적으로 연산한 결과물을 화면 상에 표시할 수 있다. Referring to FIG. 3A , when edit commands are generated from each of a plurality of clients, these edit commands are transmitted to the server 205, and the server 205 may transmit the edit commands to all clients connected to the server 205. Accordingly, after receiving edit commands, the electronic device 101 may calculate each of the edit commands in chronological order and sequentially display the result of the calculation on the screen.

하지만, 공동 편집을 위해 서버(205)에 접속된 복수의 클라이언트들 중 적어도 하나의 클라이언트(예: 전자 장치(101))에서 서버(205)와의 일시적인 연결 끊김 상황이 발생하는 경우에는, 다른 클라이언트에서의 편집 명령들(예: 명령어5(C5) 내지 명령어10(C10))(305)은 연결이 끊긴 전자 장치(101)로 전달되지 못한 채 서버(205) 내(예: 명령어 저장 모듈)에 누적될 수 있다. However, when a temporary disconnection situation with the server 205 occurs in at least one client (e.g., the electronic device 101) among a plurality of clients connected to the server 205 for joint editing, another client The editing commands (eg, command 5 (C5) to command 10 (C10)) 305 are accumulated in the server 205 (eg, the command storage module) without being transferred to the disconnected electronic device 101. It can be.

이와 같이 연결이 일시적으로 끊기거나 통신 연결이 불안정한 상황의 경우에는, 전자 장치(101)에서는 연결이 끊기기 직전의 편집 명령들(예: 명령어1(C1) 내지 명령어4(C4))만 반영한 공동 편집 화면을 표시할 수 있으며, 네트워크가 불안정한 상태임을 안내하는 내용(310)을 출력할 수 있다. In the case of a situation where the connection is temporarily disconnected or the communication connection is unstable, the electronic device 101 reflects only the editing commands immediately before the connection is disconnected (eg, command 1 (C1) to command 4 (C4)) for joint editing. A screen may be displayed, and content 310 notifying that the network is in an unstable state may be output.

이후, 서버(205)와의 재연결 시에는 도 3b에 도시된 바와 같이 서버(205)는 누적 관리하던 다른 클라이언트에서의 편집 명령들(예: 명령어5(C5) 내지 명령어10(C10))(320)을 전자 장치(101)로 전달할 수 있다. 여기서, 도 3b는 연결 재개 시의 서버와 전자 장치 간의 동작에 따른 전자 장치의 예시적인 출력 화면을 도시한 도면이다. Thereafter, when reconnecting with the server 205, as shown in FIG. 3B, the server 205 receives editing commands (eg, command 5 (C5) to command 10 (C10)) from other clients that have been accumulated and managed (320). ) may be transferred to the electronic device 101. Here, FIG. 3B is a diagram illustrating an exemplary output screen of an electronic device according to an operation between a server and an electronic device when a connection is resumed.

도 3b를 참조하면, 서버(205)는 누적된 편집 명령들(예: 명령어5(C5) 내지 명령어10(C10))(320)을 일괄적으로 전자 장치(101)로 전달할 수 있다. 예를 들어, 각각의 편집 명령들은 리스트 형태(325)로 전자 장치(101)로 한꺼번에 전달될 수 있다. 전자 장치(101)에서는 일괄 수신된 편집 명령들(예: 명령어5(C5) 내지 명령어10(C10))을 순차적으로 연산(예: 명령어5(C5) → 명령어6(C6) → 명령어7(C7) → 명령어8(C8) → 명령어9(C9) → 명령어10(C10)의 순)할 수 있으며, 매 연산 시마다 편집 명령에 따른 변경 사항이 반영된 화면들(330, 335, 340, 345)도 순차적으로 표시할 수 있다. 이와 같이 누적된 변경 사항들을 한꺼번에 수신할 경우에는 전자 장치(101)에서는 변경 사항들에 대한 순차적인 연산으로 인한 부하가 가중될 수 있다. 따라서 공동 편집 도중에 서버(205)와의 연결이 일시적으로 끊겼던 전자 장치(101)에서 재연결 시 누적된 편집 명령들에 대한 과도한 연산으로 인해 정상적인 편집 환경을 제공하지 못하는 경우가 발생할 수 있다. 따라서 공동 편집 동안에 일시적인 연결 끊김 발생 시 전자 장치(101)에 가중되는 부하를 분산시킬 필요가 있다. Referring to FIG. 3B , the server 205 may transfer accumulated editing commands (eg, command 5 (C5) to command 10 (C10)) 320 to the electronic device 101 in batches. For example, each editing command may be delivered to the electronic device 101 at once in the form of a list 325 . The electronic device 101 sequentially operates the collectively received editing commands (eg, Command 5 (C5) to Command 10 (C10)) (eg, Command 5 (C5) → Command 6 (C6) → Command 7 (C7) ) → Command 8 (C8) → Command 9 (C9) → Command 10 (C10)), and the screens (330, 335, 340, 345) reflecting the changes according to the editing command at every operation are also sequentially displayed. can be displayed as When the accumulated changes are received all at once, a load due to sequential calculation of the changes may increase in the electronic device 101 . Therefore, when reconnecting the electronic device 101, which has been temporarily disconnected from the server 205 during joint editing, a normal editing environment may not be provided due to excessive calculation of accumulated editing commands. Therefore, it is necessary to distribute the load on the electronic device 101 when temporary connection is disconnected during joint editing.

다양한 실시 예에 따르면, 전자 장치(101)에 가중되는 부하를 분산시키기 위해 서버(205)에서 연결 끊김 동안의 누적되는 편집 명령을 순차적으로 처리함으로써 새롭게 생성한 하나의 새로운 편집 명령을 재연결 시 전자 장치(101)에 제공함으로써, 재연결 시의 전자 장치(101)에서의 편집 명령의 처리로 인한 부하를 감소시킬 수 있다. According to various embodiments of the present disclosure, in order to distribute the load on the electronic device 101, the server 205 sequentially processes accumulated edit commands during disconnection so that one newly generated edit command is generated when the electronic device 101 is reconnected. By providing it to the device 101, it is possible to reduce the load due to the processing of the editing command in the electronic device 101 at the time of reconnection.

일 실시 예에 따르면, 서버(205)에서는 전자 장치(101)와의 연결이 끊긴 동안에 공동 편집 서비스에 참여 중인 외부 전자 장치(104)에 의해 발생되는 편집 명령들을 순차적으로 처리하고, 전자 장치(101)와의 재연결 시 상기 순차적인 처리 시점과 연관된 체크 포인트를 이용하여 하나의 새로운 작업으로 정의하고, 정의된 새로운 작업과 관련하여 전자 장치(101)에 대해 별도로 새로운 편집 명령으로 생성한 후, 전자 장치(101)에 제공할 수 있다. 예를 들어, 전자 장치(101)는 서버(205)로부터 단순히 순차적인 편집 명령들(예: 명령어5(C5) → 명령어6(C6) → 명령어7(C7) → 명령어8(C8) → 명령어9(C9) → 명령어10(C10)의 순)을 단순히 하나로 합친 편집 명령들(예: 명령어5(C5) + 명령어6(C6) + 명령어7(C7) + 명령어8(C8) + 명령어9(C9) + 명령어10(C10))(325)을 수신하는 것이 아니라, 새로운 형태의 하나의 편집 명령(예: 머지된(merge) 명령 = 명령어5(C5) → 명령어10(C10))(327)을 수신할 수 있다. 이에 대응하여 전자 장치(101)는 수신된 편집 명령(327) 즉, 하나의 신규 편집 명령을 연산하여 연산 결과에 따른 변경 사항이 반영된 화면(345)을 지연없이 바로 표시할 수 있다. 전자 장치(101)와의 재연결 시 서버(205)에서의 상기 새로운 형태의 하나의 편집 명령의 생성 및 제공을 위한 구체적인 설명은 후술하기로 한다. According to an embodiment, while the connection with the electronic device 101 is disconnected, the server 205 sequentially processes editing commands generated by the external electronic device 104 participating in the joint editing service, and the electronic device 101 When reconnecting with, a new job is defined using a check point associated with the sequential processing time point, and a new editing command is created separately for the electronic device 101 in relation to the defined new job, and then the electronic device ( 101) can be provided. For example, the electronic device 101 simply executes sequential editing commands from the server 205 (eg, command 5 (C5) → command 6 (C6) → command 7 (C7) → command 8 (C8) → command 9 (C9) → Command 10 (C10)) are simply combined into one editing command (e.g. Command 5 (C5) + Command 6 (C6) + Command 7 (C7) + Command 8 (C8) + Command 9 (C9) ) + Command 10 (C10)) (325), but a new type of editing command (eg, merged command = Command 5 (C5) → Command 10 (C10)) (327) can receive Correspondingly, the electronic device 101 may calculate the received edit command 327, that is, one new edit command, and immediately display the screen 345 reflecting changes according to the result of the calculation without delay. A detailed description of generation and provision of one edit command of the new type in the server 205 upon reconnection with the electronic device 101 will be described later.

도 4는 다양한 실시 예에 따른 공동 편집을 위한 서버 및 전자 장치의 내부 블록 구성도이다. 도 4에서는 공유 편집 서비스 시 연결이 끊기는 전자 장치에 대한 예로서 전자 장치(401)를 예시하여 설명하기로 한다. 4 is an internal block diagram of a server and an electronic device for joint editing according to various embodiments. In FIG. 4 , an electronic device 401 will be exemplified and described as an example of an electronic device that is disconnected during a shared editing service.

도 4의 전자 장치(401)는 도 1의 전자 장치(101)와 동일 또는 유사한 구성부를 포함할 수 있다. 또한, 전자 장치(401)뿐만 아니라 서버(405)도 도 4에 도시된 바와 같이 동일한 또는 유사한 내부 구성 요소들을 포함할 수 있다.The electronic device 401 of FIG. 4 may include components identical to or similar to those of the electronic device 101 of FIG. 1 . In addition, the electronic device 401 as well as the server 405 may include the same or similar internal components as shown in FIG. 4 .

도 4를 참조하면, 전자 장치(401)와 서버(405)는, 적어도 하나의 프로세서(420, 421), 메모리(430, 431) 및 통신 모듈(490, 491)을 포함할 수 있다. Referring to FIG. 4 , an electronic device 401 and a server 405 may include at least one processor 420 or 421 , memory 430 or 431 , and communication module 490 or 491 .

먼저, 서버(405)의 동작을 살펴보면, 프로세서(421)는, 프로세서(421)에 연결된 메모리(431) 및 통신 모듈(491)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다.First, looking at the operation of the server 405, the processor 421 can control the memory 431 and the communication module 491 connected to the processor 421, and can perform various data processing or calculations.

다양한 실시 예에 따르면, 통신 모듈(491)은 유/무선 네트워크(403)를 통해 공동 편집 서비스를 제공하기 위해 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))와 통신 가능하도록 연결될 수 있다. 여기서, 네트워크(403)에 포함되는 통신망(예: 이동 통신망, 유선 인터넷, 무선 인터넷)에서의 통신 방식은 제한되지 않는다. According to various embodiments, the communication module 491 can communicate with a plurality of clients (eg, the electronic device 401 and the external electronic device 104) to provide a joint editing service through the wired/wireless network 403. can be connected to Here, a communication method in a communication network included in the network 403 (eg, a mobile communication network, wired Internet, or wireless Internet) is not limited.

다양한 실시 예에 따르면, 프로세서(421)는 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))와 연결 시, 공동 편집 서비스를 지원할 수 있다. 예를 들어, 각 클라이언트에서 공동 편집을 할 수 있는 어플리케이션을 실행하거나 공동 편집을 위한 세션 참가 시, 프로세서(421)는 공동 편집 서비스를 제공할 수 있다. 여기서, 공동 편집이란, 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))가 공유하는 컨텐트(content)에 대해 공동으로 편집하는 동작을 의미할 수 있다.According to various embodiments, the processor 421 may support a joint editing service when connected to a plurality of clients (eg, the electronic device 401 and the external electronic device 104). For example, when each client executes an application capable of joint editing or participates in a session for joint editing, the processor 421 may provide a joint editing service. Here, joint editing may refer to an operation of jointly editing content shared by a plurality of clients (eg, the electronic device 401 and the external electronic device 104).

일 실시 예에 따르면, 프로세서(421)는 공동 편집 세션을 개설할 수 있으며, 공동 편집 세션이 접속한 복수의 클라이언트로 공동 편집 서비스를 제공할 수 있다. 프로세서(421)는 공동 편집 세션 별로 참여 중인 클라이언트들을 관리할 수 있다. 구체적으로, 프로세서(421)는 클라이언트가 어떠한 종류의 전자 장치로 어느 계정을 통해 특정 컨텐트에 접근하는지에 따라 각각의 세션들을 구분하여 관리할 수 있다. 예를 들어, 프로세서(421)는 제1 내지 제3 클라이언트가 제1 컨텐트에 대한 공동 편집에 참여하고자 하는 경우 제1 공동 편집 세션을 생성할 수 있으며, 제1 공동 편집 세션에 접속한 제1 내지 제3 클라이언트들에 대한 연결 상태를 관리할 수 있다. 또한, 프로세서(421)는 제4 및 제5 클라이언트가 제2 컨텐트에 대한 공동 편집에 참여하고자 하는 경우 제2 공동 편집 세션을 생성할 수 있으며, 제2 공동 편집 세션에 접속한 제4 및 제5 클라이언트들에 대한 연결 상태를 관리할 수 있다. 이와 같이 프로세서(421)는 편집 대상이 되는 컨텐트에 따라 세션을 다르게 생성하고, 생성된 세션별로 공동 편집을 관리할 수 있다. According to an embodiment, the processor 421 may establish a joint editing session and provide a joint editing service to a plurality of clients connected to the joint editing session. The processor 421 may manage participating clients for each joint editing session. Specifically, the processor 421 may classify and manage sessions according to which type of electronic device and through which account a client accesses a specific content. For example, the processor 421 may create a first joint editing session when the first to third clients want to participate in joint editing on the first content, and first to third clients accessing the first joint editing session. A connection state of third clients may be managed. In addition, the processor 421 may create a second joint editing session when the fourth and fifth clients want to participate in joint editing of the second content, and the fourth and fifth clients accessing the second joint editing session. You can manage the connection state for clients. In this way, the processor 421 can create sessions differently according to content to be edited, and manage joint editing for each created session.

다른 실시 예에 따르면, 상기 어플리케이션 기반의 공동 편집의 경우, 프로세서(421)는 공동 편집에 참여하기를 원하는 사용자 및 상대방이 로그인하여 이용할 수 있도록 하는 공동 편집 서비스를 지원할 수 있다. 공동 편집 서비스에 참여하기를 원하는 복수의 클라이언트(예: 전자 장치(401) 및 외부 전자 장치(104))는 서버(405)와 연결될 수 있으며, 아이디 및 패스워드를 입력하는 로그인 방식을 통해 서버(405)에 접속할 수 있다. 예를 들어, 복수의 클라이언트들이 서버(405)에 접속함에 따라, 프로세서(421)는 공동 편집에 참여하는 상기 클라이언트들에 대한 정보를 메모리(431)에 저장할 수 있다. 여기서, 상기 클라이언트들에 대한 정보는, 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104)) 각각의 사용자 정보, 각각의 식별 정보를 포함할 수 있다. 또한, 프로세서(421)는 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104)) 접속 시 클라이언트 각각에 제공한 편집용 컨텐트에 대한 정보(예: 전자 문서의 종류, 전자 문서 버전과 같은 정보)를 메모리(431)에 저장할 수 있다. 이러한 상기 클라이언트들에 대한 정보를 메타 데이터라고 칭할 수 있다. According to another embodiment, in the case of the application-based joint editing, the processor 421 may support a joint editing service that allows users and counterparts who want to participate in joint editing to log in and use them. A plurality of clients (eg, the electronic device 401 and the external electronic device 104) desiring to participate in the joint editing service may be connected to the server 405, and the server 405 may be connected to the server 405 through a login method in which an ID and password are entered. ) can be accessed. For example, as a plurality of clients access the server 405, the processor 421 may store information about the clients participating in joint editing in the memory 431. Here, the information on the clients may include user information and identification information of each of a plurality of clients (eg, the electronic device 401 and the external electronic device 104). In addition, the processor 421 provides information (eg, type of electronic document, version of the electronic document) provided to each client upon access to a plurality of clients (eg, the electronic device 401 and the external electronic device 104). Information such as) may be stored in the memory 431. Information about the clients may be referred to as meta data.

다양한 실시 예에 따르면, 프로세서(421)는 공동 편집 세션에 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))가 접속한 상태에서, 통신 모듈(491)을 통해 공동 편집 서비스에 참여 중인 복수의 클라이언트들 중 적어도 하나에 의해 수행되는 공동 편집을 위한 편집 명령을 수신할 수 있다. 만일 적어도 하나의 클라이언트(예: 전자 장치(401))에서 해당 컨텐트를 작성 및 편집함에 따른 편집 명령을 수신하면, 상기 편집 명령에 해당하는 변경 사항을 다른 모든 클라이언트(예: 외부 전자 장치(104))로 전송할 수 있다.According to various embodiments, the processor 421 provides a joint editing service through the communication module 491 in a state in which a plurality of clients (eg, the electronic device 401 and the external electronic device 104) are connected to the joint editing session. An editing command for joint editing performed by at least one of a plurality of clients participating in may be received. If at least one client (e.g., the electronic device 401) receives an editing command for creating and editing the corresponding content, changes corresponding to the editing command are sent to all other clients (e.g., the external electronic device 104). ) can be transmitted.

일 실시 예에 따르면, 편집 대상인 컨텐트는 복수의 클라이언트가 공동으로 열람, 작성, 편집할 수 있는 편집용 파일로서, 편집용 문서를 의미할 수 있다. 예를 들어, 편집용 컨텐트는 노트, 워드 프로세서, 프리젠테이션, 스프레드시트와 같은 문서에 한정되는 것이 아니며, 그 문서의 종류는 다양할 수 있다. 이러한 편집용 컨텐트는 전자 문서 또는 공동 편집 문서라고 칭할 수도 있다. 이러한 컨텐트는 서버(405)에 저장되어 있다가 공동 편집에 참여하는 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))의 요청 시 해당 클라이언트로 전송될 수 있다. According to one embodiment, the content to be edited is an editing file that a plurality of clients can jointly view, create, and edit, and may mean a document for editing. For example, content for editing is not limited to documents such as notes, word processors, presentations, and spreadsheets, and the types of documents may vary. Such content for editing may also be referred to as an electronic document or a jointly edited document. Such content may be stored in the server 405 and transmitted to the corresponding client upon request from a client participating in joint editing (eg, the electronic device 401 or the external electronic device 104).

프로세서(421)는 공동 편집에 참여하는 복수의 클라이언트(예: 전자 장치(401), 외부 전자 장치(104))의 접속을 관리할 수 있으며, 공동 편집 도중의 비정상 연결 상태를 검출하는 동작을 수행할 수 있다. The processor 421 may manage connections of a plurality of clients (eg, the electronic device 401 and the external electronic device 104) participating in joint editing, and perform an operation to detect an abnormal connection state during joint editing. can do.

구체적으로, 프로세서(421)는 공동 편집을 위해 접속된 복수의 전자 장치들(예: 전자 장치(401), 외부 전자 장치(104)) 중 접속이 끊긴 적어도 하나의 전자 장치를 식별할 수 있다. 여기서, 접속이 끊긴 전자 장치를 전자 장치(401)이라고 가정하기로 한다. 프로세서(421)는 복수의 전자 장치 각각과의 통신을 통해 주기적으로 접속 상태를 모니터링할 수 있다. 예를 들어, 프로세서(421)는 공동 편집 세션에 타임 아웃(timeout) 또는 중지(abort)와 같은 비정상 상황이 발생하는지를 모니터링할 수 있다. Specifically, the processor 421 may identify at least one disconnected electronic device among a plurality of electronic devices (eg, the electronic device 401 and the external electronic device 104) connected for joint editing. Here, it is assumed that the disconnected electronic device is the electronic device 401 . The processor 421 may periodically monitor a connection state through communication with each of a plurality of electronic devices. For example, the processor 421 may monitor whether an abnormal situation such as a timeout or abort occurs in the collaborative editing session.

모니터링 결과 접속이 끊긴 적어도 하나의 전자 장치가 발생하는 경우, 프로세서(421)는 상기 적어도 하나의 전자 장치의 접속이 끊긴 시점 및 상기 적어도 하나의 전자 장치에 편집에 따른 변경 사항이 어디까지 적용된 상태인지를 식별할 필요가 있다. 따라서 접속이 끊긴 전자 장치를 관리하기 위해 프로세서(421)는 상기 접속이 끊긴 전자 장치의 식별에 대응하여, 상기 전자 장치의 메타 데이터를 임시로 저장할 수 있다. When at least one electronic device disconnected occurs as a result of the monitoring, the processor 421 determines when the at least one electronic device is disconnected and to what extent changes according to editing have been applied to the at least one electronic device. need to identify Accordingly, in order to manage the disconnected electronic device, the processor 421 may temporarily store meta data of the electronic device in response to identification of the disconnected electronic device.

이와 같이 전자 장치별로 편집 명령에 따른 변경 사항을 적용한 상태가 서로 다르기 때문에, 각각의 전자 장치에서는 서버(405)에서 제공한 편집 명령을 어디까지 받았는지를 나타내기 위한 용도로, 서버(405)와 전자 장치들 간에 매 접속 시마다 체크 포인트를 주고 받을 수 있다. In this way, since the state of applying the changes according to the editing command is different for each electronic device, each electronic device uses the server 405 and A check point may be exchanged between electronic devices every time they are accessed.

일 실시 예에 따르면, 체크 포인트란 공동 편집 서비스를 통해 문서를 편집하기 위해 사용자에 의해 전자 장치(401)에서의 편집이 수행될 때마다 다른 전자 장치(예: 외부 전자 장치(104))에서의 편집 명령과 중복 또는 충돌되지 않게 순차적으로 누적 생성되는 순서를 의미할 수 있다. 이러한 체크 포인트는 단순히 마지막 편집 시점을 나타내는 타임 스탬프를 의미하는 것이 아닌 직전까지 편집한 내용의 작업량을 의미할 수 있다. 예를 들어, 최초 접속 후 전자 장치(401)와 외부 전자 장치(104)에 의한 편집 명령이 동시에 서버(405)로 전달되는 경우, 각 편집 명령과 함께 각 전자 장치(401, 104)에서의 체크 포인트가 전달될 수 있는데, 동시에 체크 포인트가 서버(405)에 전달되었을지라도 전자 장치(401)에서의 체크 포인트와 외부 전자 장치(404)에서의 체크 포인트를 서로 다를 수 있다. 즉, 전자 장치(401)에서 사용자에 의해 직전까지 편집된 내용을 나타내는 변화량과 외부 전자 장치(104)에서 다른 사용자에 의해 직전까지 편집된 내용을 나타내는 변화량은 서로 다를 수 있다. 이러한 체크 포인트는 접속된 전자 장치들에 의한 편집 명령의 수신에 대응하여, 프로세서(421)에 의해 순차적으로 갱신될 수 있으며, 상기 편집 명령을 모든 전자 장치들로 전달 시 갱신된 체크 포인트가 함께 전달될 수 있다. 이러한 체크 포인트를 이용한다면, 서버(405)와 접속된 전자 장치(401, 104)들 간의 동기화가 가능할 수 있다. According to an embodiment, a check point is a checkpoint in another electronic device (eg, the external electronic device 104) whenever editing is performed by a user in the electronic device 401 to edit a document through a joint editing service. This may mean an order in which they are sequentially accumulated and created so as not to overlap or collide with editing commands. Such a check point may not simply mean a time stamp indicating the time of the last edit, but may mean the amount of work edited up to immediately. For example, when editing commands by the electronic device 401 and the external electronic device 104 are transmitted to the server 405 at the same time after initial access, each electronic device 401 and 104 checks along with each editing command The points may be transferred. Even if the check points are transferred to the server 405 at the same time, the check points in the electronic device 401 and the external electronic device 404 may differ from each other. That is, the amount of change indicating content edited up to immediately before by the user in the electronic device 401 and the amount of change indicating content edited up to immediately before by another user in the external electronic device 104 may be different from each other. These check points may be sequentially updated by the processor 421 in response to receipt of an edit command by connected electronic devices, and when the edit command is transmitted to all electronic devices, the updated check points are also transmitted. It can be. If such a check point is used, synchronization between the server 405 and the connected electronic devices 401 and 104 may be possible.

따라서 프로세서(421)는 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 전자 장치(401)가 발생하는 경우, 상기 전자 장치(401)의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별할 수 있다. 예를 들어, 모든 전자 장치들은 서버(405)에 접속 시 매번 자신이 가지고 있는 체크 포인트를 서버(405)에 알리기 때문에, 접속이 끊긴 전자 장치(401)가 어떠한 전자 장치인지를 식별할 수 있다면 상기 전자 장치(401)가 가장 최근에 보내 온 체크 포인트를 확인할 수 있다. 따라서 프로세서(421)는 전자 장치(401)의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별할 수 있다. Accordingly, when a disconnected electronic device 401 occurs among a plurality of electronic devices connected for joint editing, the processor 421 identifies a first check point associated with the point in time at which the electronic device 401 is disconnected. can do. For example, since all electronic devices notify the server 405 of their own check points each time they access the server 405, if the electronic device 401 that has been disconnected can be identified, The electronic device 401 may check the most recently sent checkpoint. Accordingly, the processor 421 may identify the first check point associated with the time point at which the electronic device 401 is disconnected.

이후, 프로세서(421)는 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 메모리(431)에 저장할 수 있다. 구체적으로, 프로세서(421)는 전자 장치(401)의 접속이 끊긴 이후에도 다른 접속된 전자 장치들로부터는 정상적으로 편집 명령을 수신할 수 있으므로, 수신된 편집 명령들을 상기 접속이 끊긴 전자 장치(401)를 제외한 나머지 전자 장치들로 전달할 수 있다. 여기서, 상기 수신된 편집 명령들은 상기 제1 체크 포인트 이후의 편집 명령들에 해당할 수 있다. 이에 따라 나머지 전자 장치들 각각에서는 서버(405)를 통해 수신된 편집 명령들에 따른 변경 사항에 기반하여 연산(또는 랜더링)한 공동 편집 화면을 출력할 수 있다. Thereafter, the processor 421 sequentially processes edit commands after the first check point executed by connected electronic devices among the plurality of electronic devices, thereby generating a new edit command for the at least one electronic device. may be stored in the memory 431. Specifically, since the processor 421 can normally receive editing commands from other connected electronic devices even after the electronic device 401 is disconnected, the processor 421 transmits the received editing commands to the disconnected electronic device 401. It can be delivered to the rest of the electronic devices except for it. Here, the received edit commands may correspond to edit commands after the first check point. Accordingly, each of the remaining electronic devices may output a joint editing screen calculated (or rendered) based on changes according to editing commands received through the server 405 .

반면, 프로세서(421)는 전자 장치(401)에 대해서는 상기 제1 체크 포인트 이후의 편집 명령들을 단순히 누적 저장하는 것이 아니라, 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리(또는 머지)하여 하나의 결과물 형태로 만들어 관리할 수 있다. 따라서 프로세서(421)는 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 하나의 신규 편집 명령을 메모리(431)에 전자 장치(401)와 연관시켜 별도로 관리 및 저장할 수 있다. On the other hand, for the electronic device 401, the processor 421 does not simply accumulate and store the edit commands after the first check point, but sequentially processes (or merges) the edit commands after the first check point into one. It can be created and managed in the form of a result of Accordingly, the processor 421 may separately manage and store one new edit command obtained by sequentially processing the edit commands after the first check point in association with the electronic device 401 in the memory 431 .

일 실시 예에 따르면, 프로세서(421)는 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트를 갱신할 수 있다. 여기서, 제2 체크 포인트는 접속이 끊긴 시점과 연관된 제1 체크 포인트와는 상이하며, 편집 명령의 수신 시마다 하나씩 증가될 수 있다. 프로세서(421)는 상기 갱신된 제2 체크 포인트와 함께 수신된 편집 명령들을 상기 접속이 끊긴 전자 장치(401)를 제외한 나머지 전자 장치들로 전달할 수 있다. 이와 같이 프로세서(421)는 나머지 전자 장치들로 갱신된 제2 체크 포인트 즉, 최신 체크 포인트를 알릴 수 있어, 각 전자 장치에서는 어디까지 편집이 진행된 것인지를 식별할 수 있으며, 이에 따라 실시간으로 편집 사항을 반영하여 출력할 수 있다. According to an embodiment, the processor 421 may update the second check point whenever edit commands after the check point are sequentially acquired by connected electronic devices among the plurality of electronic devices. Here, the second check point is different from the first check point associated with the time point of disconnection, and may be increased by one each time an edit command is received. The processor 421 may transfer the edit commands received along with the updated second check point to other electronic devices other than the disconnected electronic device 401 . In this way, the processor 421 can inform the rest of the electronic devices of the updated second check point, that is, the latest check point, so that each electronic device can identify how far the editing has progressed, and accordingly, edit items in real time. can be printed out.

또한, 일 실시 예에 따르면, 프로세서(421)는 상기 제2 체크 포인트를 갱신함에 따라 전자 장치(401)에 대해 상기 갱신된(또는 증가된) 최신 체크 포인트를 저장할 수 있다. 프로세서(421)는 신규 편집 명령의 전송 시 이러한 최신 체크 포인트를 함께 재접속한 전자 장치(401)로 전송할 수 있다. Also, according to an embodiment, the processor 421 may store the updated (or increased) latest check point for the electronic device 401 as the second check point is updated. When transmitting a new edit command, the processor 421 may transmit the latest check point to the reconnected electronic device 401 together.

예를 들어, 제1 체크 포인트를 'checkpoint 4'라고 할 경우, 제1 체크 포인트 이후에 다른 전자 장치들로부터 편집 명령이 순차적으로 6개가 수신된 경우, 프로세서(401)는 6개의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트(checkpoint 5→6→7→8→9→10)를 하나씩 증가시킬 수 있다. 프로세서(421)는 상기 6개의 편집 명령을 기 설정된 연산 알고리즘에 기반하여 하나의 새로운 편집 명령 형태로 연산하고, 연산을 통해 전자 장치(401)에 대한 하나의 신규 편집 명령으로 저장할 수 있다. 예를 들어, 프로세서(421)는 연결이 끊긴 동안에 변화되는 체크 포인트를 이용하여 상기 6개의 편집 명령들을 한꺼번에 하나의 편집 명령 형태로 머지하여 하나의 신규 편집 명령(또는 변경 사항)으로써 처리해놓을 수 있다. 여기서, 프로세서(421)는 상기 제2 체크 포인트를 갱신함에 따라 전자 장치(401)에 대해 상기 갱신된(또는 증가된) 최신 체크 포인트(예: checkpoint 10)를 저장할 수 있다. 또한, 프로세서(421)는 전자 장치(401)에 대응하도록 신규 편집 명령과 함께 최신 체크 포인트를 함께 메모리(431)에 임시로 저장할 수 있다. 프로세서(421)는 전자 장치(401)에 대응하도록 상기 신규 편집 명령을 전자 장치(401)의 메타 데이터에 대응시켜 저장할 수 있다. For example, if the first check point is referred to as 'checkpoint 4' and 6 edit commands are sequentially received from other electronic devices after the first check point, the processor 401 sequentially sends the 6 edit commands. The second checkpoint (checkpoint 5 → 6 → 7 → 8 → 9 → 10) can be increased by one for each acquisition. The processor 421 may calculate the six edit commands as one new edit command form based on a preset calculation algorithm, and may store the six edit commands as one new edit command for the electronic device 401 through the calculation. For example, the processor 421 may merge the six edit commands into one edit command at a time using a checkpoint that changes while the connection is disconnected and process them as one new edit command (or change). . Here, the processor 421 may store the updated (or increased) latest check point (eg, checkpoint 10) for the electronic device 401 as the second check point is updated. Also, the processor 421 may temporarily store the latest check point together with the new edit command in the memory 431 to correspond to the electronic device 401 . The processor 421 may store the new editing command in correspondence with metadata of the electronic device 401 so as to correspond to the electronic device 401 .

상기한 바와 같이 일 실시 예에 따르면, 프로세서(421)는 전자 장치(401)의 재접속이 이루어지기 전까지 다른 전자 장치들로부터 편집 명령이 수신될 때마다 또는 주기적으로 편집 명령들을 연산을 통해 하나의 편집 명령으로 만드는 동작을 수행할 수 있다. 이후, 프로세서(421)는 전자 장치(401)의 재접속 시 전자 장치(401)에 대해 저장 및 관리하던 신규 편집 명령을 재접속한 전자 장치(401)로 전송함으로써 공동 편집 시의 동기화를 수행할 수 있다. 예를 들어, 프로세서(421)는 전자 장치(401)와의 재연결 시 전자 장치(401)에 대해 저장해놓은 최신 체크 포인트에 해당하는 신규 편집 명령을 전자 장치(401)로 전달할 수 있다.As described above, according to an embodiment, the processor 421 calculates one edit command every time an edit command is received from other electronic devices or periodically until the electronic device 401 is reconnected. You can perform actions created by commands. Thereafter, when the electronic device 401 is reconnected, the processor 421 transmits a new editing command stored and managed in the electronic device 401 to the reconnected electronic device 401, thereby performing synchronization during joint editing. . For example, the processor 421 may transmit a new edit command corresponding to the latest check point stored for the electronic device 401 to the electronic device 401 upon reconnection with the electronic device 401 .

일 실시 예에 따르면, 프로세서(421)는 전자 장치(401)의 재접속 시 전자 장치(401)로부터 전자 장치(401)에서의 현재 체크 포인트를 획득할 수 있다. 전자 장치(401)의 경우 제1 체크 포인트(예: checkpoint 4) 이후에 접속이 끊긴 것이므로, 상기 현재 체크 포인트는 제1 체크 포인트(예: checkpoint 4)와 동일할 수 있다. 따라서, 프로세서(421)는 상기 획득된 현재 체크 포인트 및 상기 제1 체크 포인트에 기반하여, 상기 신규 편집 명령을 통신 모듈(491)을 통해 전자 장치(401)로 전송할 수 있다. According to an embodiment, the processor 421 may obtain a current check point of the electronic device 401 from the electronic device 401 when the electronic device 401 is reconnected. In the case of the electronic device 401, since the connection is lost after the first checkpoint (eg, checkpoint 4), the current checkpoint may be the same as the first checkpoint (eg, checkpoint 4). Accordingly, the processor 421 may transmit the new edit command to the electronic device 401 through the communication module 491 based on the obtained current check point and the first check point.

일 실시 예에 따르면, 상기 신규 편집 명령을 전송한 후, 프로세서(421)는 상기 메모리(431)에 저장된 전자 장치(401)에 대한 상기 신규 편집 명령을 삭제할 수 있다. 이와 같이 프로세서(421)는 접속이 끊긴 전자 장치(401)의 발생 시에만 접속이 끊긴 동안의 편집 명령들을 미리 연산하는 동작을 수행하고, 통신 회복 시에는 전자 장치(401)에 대해 연산해 놓은 데이터를 삭제함으로써, 복수의 전자 장치를 위한 공동 편집을 관리하는 서버(405)에서의 리소스를 효율적으로 활용할 수 있다.According to an embodiment, after transmitting the new edit command, the processor 421 may delete the new edit command for the electronic device 401 stored in the memory 431 . In this way, the processor 421 performs an operation of pre-calculating editing commands during the disconnection only when the disconnected electronic device 401 occurs, and when communication is restored, the calculated data for the electronic device 401 By deleting, it is possible to efficiently utilize resources in the server 405 that manages joint editing for a plurality of electronic devices.

일 실시 예에 따르면, 프로세서(421)는 전자 장치(401)의 재접속 시 전자 장치(401)로부터 전자 장치(401)에서의 현재 체크 포인트를 획득할 뿐만 아니라, 상기 접속된 전자 장치들에 의해 편집 명령 수신 시 상기 편집 명령을 전송한 각 전자 장치에서의 현재의 체크 포인트를 상기 편집 명령과 함께 획득할 수 있다. According to an embodiment, the processor 421 not only acquires the current check point in the electronic device 401 from the electronic device 401 when the electronic device 401 is reconnected, but also edits it by the connected electronic devices. When a command is received, a current check point of each electronic device that has transmitted the edit command may be acquired together with the edit command.

이에 따라 프로세서(421)는 매 편집 명령과 함께 수신되는 현재의 체크 포인트를 확인함으로써, 적어도 하나의 전자 장치에 편집에 따른 변경 사항이 어디까지 적용된 상태인지를 알 수 있어, 각 접속한 전자 장치에 대응하는 편집 명령을 제공할 수 있다. Accordingly, the processor 421 checks the current checkpoint received along with each editing command, so that it is possible to know the extent to which the change according to the editing has been applied to at least one electronic device, and to each connected electronic device. Corresponding editing commands can be provided.

공동 편집 환경의 경우 복수의 전자 장치들에 의해 하나의 컨텐트에 대해 둘 이상의 편집 명령들이 동시에 입력되는 상황이 발생할 수 있다. 이와 같이 둘 이상의 편집 명령들에 따른 변경 사항이 상기 컨텐트에 중복되는 지점에 적용되어야 하는 경우가 발생하면, 이러한 편집 명령들이 서로 충돌되지 않도록 조정할 필요가 있다. 따라서 프로세서(421)는 복수의 전자 장치들에 의해 편집 명령이 수신될 때 수신되는 편집 명령이 서로 충돌하는지를 식별하고, 상기 충돌 발생 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택할 수 있다. 예를 들어, 프로세서(421)는 충돌이 발생한 편집 명령들 중 우선 순위를 두어 어느 하나를 먼저 선택하여 처리한 후 나머지를 이어서 처리할 수 있다. 이어, 프로세서(421)는 상기 순차적인 선택에 따라 편집 명령의 수신에 따른 제2 체크 포인트를 갱신하여 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 공지할 수 있다. 이러한 충돌 시의 서버(405)의 동작은 도 10을 참조하여 후술하기로 한다.In the case of a joint editing environment, a situation in which two or more editing commands are simultaneously input for one content by a plurality of electronic devices may occur. In this way, when a case arises in which changes according to two or more editing commands must be applied to overlapping points in the content, it is necessary to adjust these editing commands so that they do not collide with each other. Accordingly, when editing commands are received by a plurality of electronic devices, the processor 421 may identify whether the received editing commands collide with each other and, when the collision occurs, sequentially select the editing commands in which the collision occurs. For example, the processor 421 may prioritize editing commands in which conflicts occur, select and process one of them first, and then process the rest sequentially. Subsequently, the processor 421 may update the second check point according to reception of the edit command according to the sequential selection and notify the rest of the electronic devices except for the at least one disconnected electronic device. The operation of the server 405 during such a collision will be described later with reference to FIG. 10 .

다양한 실시 예에 따르면, 메모리(431)는 공동 편집 서비스를 제공하기 위한 동작을 수행하기 위하여 필요한 정보 및 상기 동작의 일부를 수행하기 위한 하나 이상의 모듈들을 포함할 수 있다. 또한 메모리(431)는 공동 편집에 참여한 복수의 클라이언트와 관련한 정보를 저장할 수 있으며, 상기 참여 도중에 일시적으로 접속이 끊긴 클라이언트와 관련한 정보를 임시로 저장할 수 있다. 또한 메모리(431)는 접속이 끊긴 클라이언트를 대신하여 접속이 끊긴 이후에 발생하는 편집 명령들을 하나의 결과물로 만들기 위한 연산 알고리즘을 저장할 수 있다. 이러한 연산 알고리즘에 기반하여, 프로세서(421)는 접속이 끊긴 클라이언트가 복수일 경우 각 클라이언트마다 접속이 끊긴 시점이 다를 지라도 각 클라이언트 별로 서로 다른 결과물 형태로 만들어 임시로 저장하는 것이 가능할 수 있다. According to various embodiments, the memory 431 may include information necessary to perform an operation for providing a joint editing service and one or more modules for performing some of the operations. In addition, the memory 431 may store information related to a plurality of clients participating in joint editing, and may temporarily store information related to a client temporarily disconnected during the participation. In addition, the memory 431 may store an operation algorithm for making edit commands generated after disconnection into one result on behalf of the disconnected client. Based on such an operation algorithm, if there are a plurality of disconnected clients, the processor 421 may be able to create and temporarily store different result types for each client even if the disconnection time is different for each client.

한편, 전자 장치(401)의 동작을 살펴보면, 프로세서(420)는, 프로세서(420)에 연결된 메모리(430), 디스플레이(460) 및 통신 모듈(491)을 제어할 수 있다. 이러한 전자 장치(401)는 도 1에서 상술한 전자 장치(101)일 수 있으며, 그 구체적인 설명은 생략하기로 한다. Meanwhile, looking at the operation of the electronic device 401, the processor 420 may control the memory 430, the display 460, and the communication module 491 connected to the processor 420. The electronic device 401 may be the electronic device 101 described above with reference to FIG. 1 , and a detailed description thereof will be omitted.

다만, 일 실시 예에 따른 프로세서(420)는 통신 모듈(490)을 통해 서버(405)에 의해 개설된 공동 편집 세션에 대한 접속을 제어할 수 있다. However, the processor 420 according to an embodiment may control access to a joint editing session opened by the server 405 through the communication module 490 .

일 실시 예에 따르면, 메모리(430)는 공동 편집 세션에 접속 동안에 서버(405)로부터 제공되는 편집 명령을 순차적으로 임시로 저장하기 위한 명령어 버퍼(433)를 포함할 수 있다. 또한, 매 서버(405) 접속 시마다 현재의 체크 포인트를 서버(405)로 전달할 수 있다. 프로세서(420)는 서버(405)로부터 편집 명령이 수신될 때 수신되는 편집 명령과 함께 체크 포인트를 획득할 수 있으며, 상기 편집 명령의 처리 결과를 반영하여 현재의 체크 포인트를 갱신할 수 있다. 예를 들어, 프로세서(420)에서 접속이 끊기기 전에 마지막으로 서버(405)로 전달한 현재의 체크 포인트가 제1 체크 포인트(예: checkpoint 4)라고 하고, 재접속 이후에 수신되는 편집 명령 즉, 신규 편집 명령과 함께 획득된 체크 포인트가 갱신된 제2 체크 포인트(예: checkpoint 10)라고 할 경우, 프로세서(420)는 현재의 체크 포인트를 'checkpoint 10'으로 갱신하여 저장할 수 있다. According to one embodiment, the memory 430 may include a command buffer 433 for temporarily storing editing commands provided from the server 405 sequentially while accessing a joint editing session. In addition, the current check point may be transmitted to the server 405 every time the server 405 is accessed. When an edit command is received from the server 405, the processor 420 may obtain a check point along with the received edit command, and may update the current check point by reflecting the processing result of the edit command. For example, the current checkpoint last transmitted to the server 405 before disconnection from the processor 420 is referred to as the first checkpoint (eg, checkpoint 4), and an edit command received after reconnection, that is, new edit If the checkpoint obtained with the command is an updated second checkpoint (eg, checkpoint 10), the processor 420 may update the current checkpoint to 'checkpoint 10' and store the updated checkpoint.

상기한 바와 같이 프로세서(420)는 신규 편집 명령을 획득함으로써 한 번만 연산(또는 랜더링)하는 동작을 수행하면 되므로, 빠른 동기화를 수행할 수 있으며, 이에 따라 디스플레이(460)는 상기 랜더링을 통해 변경 사항이 빠르게 반영된 공동 편집 화면을 표시할 수 있다. 예를 들어, 공동 편집 화면은 편집 명령에 따른 편집 사항을 한 번에 표시하는 화면일 수 있으며, 하나의 결과물로서 스냅샷 형식으로 표시하는 화면일 수도 있다. As described above, since the processor 420 only needs to perform an operation (or rendering) once by obtaining a new editing command, fast synchronization can be performed, and accordingly, the display 460 displays changes through the rendering. This quickly reflected co-editing screen can be displayed. For example, the joint editing screen may be a screen displaying edits according to an editing command at once or a screen displaying a snapshot as a result.

한편, 다양한 실시 예에 따르면, 서버(405) 내의 메모리(431)는 공동 편집 서비스를 제공하기 위한 동작을 수행하기 위하여 필요한 정보 및 상기 동작의 일부를 수행하기 위한 하나 이상의 모듈들을 포함할 수 있으며, 그 모듈들은 도 5에 도시된 바와 같이 구성될 수 있다. 또한, 전자 장치(401) 내의 메모리(431)도 도 5에 도시된 바와 유사하게 적어도 하나의 모듈들을 포함할 수 있다. Meanwhile, according to various embodiments, the memory 431 in the server 405 may include information necessary to perform an operation for providing a joint editing service and one or more modules for performing some of the operations, The modules may be configured as shown in FIG. 5 . Also, the memory 431 in the electronic device 401 may also include at least one module similar to that shown in FIG. 5 .

도 5는 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 서버의 동작을 설명하기 위한 상세 블록도이다. 5 is a detailed block diagram illustrating operations of a server for providing a joint editing service according to various embodiments.

도 5를 참조하면, 다양한 실시 예에 따르면, 서버(405)는 명령어 저장 모듈(505), 명령 연산 모듈(510), 명령 송수신 모듈(515), 접속 관리 모듈(520), 체크 포인트 관리 모듈(525)를 포함할 수 있다. 일 실시 예에 따르면, 서버(405)는 공동 편집 서비스를 제공하는 동안에 일시적으로 접속이 끊긴 전자 장치를 관리하기 위해 임시 체크 포인트 저장 모듈(530), 접속 끊김 관리 모듈(540) 및 명령 조합 관리 모듈(550)을 더 포함할 수 있다. 또한, 일 실시 예에 따르면, 전자 장치(401)는 서버(405)에서와 유사하게 명령어 저장 모듈(미도시), 명령 연산 모듈(미도시), 명령 송수신 모듈(미도시) 및 체크 포인트 관리 모듈(미도시)을 포함할 수 있으며, 공동 편집 화면을 출력하기 위한 화면 출력 모듈(미도시)을 더 포함할 수 있다. Referring to FIG. 5 , according to various embodiments, the server 405 includes a command storage module 505, a command operation module 510, a command transmission/reception module 515, an access management module 520, a checkpoint management module ( 525) may be included. According to an embodiment, the server 405 includes a temporary check point storage module 530, a disconnection management module 540, and a command combination management module to manage an electronic device temporarily disconnected while providing a joint editing service. (550) may be further included. Also, according to an embodiment, the electronic device 401, similar to the server 405, includes a command storage module (not shown), a command calculation module (not shown), a command transmission/reception module (not shown), and a checkpoint management module. (not shown), and may further include a screen output module (not shown) for outputting a joint editing screen.

명령어 저장 모듈(505)은 공동 편집에 참여 중인 전자 장치들로부터의 편집 명령을 순차적으로 저장할 수 있다. The command storage module 505 may sequentially store editing commands from electronic devices participating in joint editing.

명령 연산 모듈(510)은 수신된 편집 명령을 다른 모든 전자 장치로 전송하기 위한 연산을 수행할 수 있다. The command calculation module 510 may perform calculations for transmitting the received edit command to all other electronic devices.

명령 송수신 모듈(515)은 전자 장치들로부터의 편집 명령을 수신하거나 다른 타 전자 장치로 편집 명령에 따른 변경 사항을 통지할 수 있다. 예를 들어, 수신된 편집 명령 및 편집 명령의 수신에 따라 갱신된 체크 포인트를 전송할 수 있다. The command transmission/reception module 515 may receive an editing command from electronic devices or notify other electronic devices of changes according to the editing command. For example, a received edit command and a check point updated according to the reception of the edit command may be transmitted.

접속 관리 모듈(520)은 공동 편집 세션에 대한 복수의 전자 장치들의 접속을 관리할 수 있다. 예를 들어, 접속 관리 모듈(520)은 공동 편집 세션별로 전자 장치들의 접속을 관리할 수 있으며, 이에 따라 어떠한 종류의 전자 장치가 어느 계정을 통해 어떠한 공동 편집용 컨텐트에 접속하는지를 관리할 수 있다. The connection management module 520 may manage access of a plurality of electronic devices to a joint editing session. For example, the access management module 520 may manage access of electronic devices for each co-editing session, and accordingly, manage which type of electronic device accesses which content for co-editing through which account.

체크 포인트 관리 모듈(525)은 각 전자 장치별 체크 포인트를 기록 및 관리할 수 있다. The check point management module 525 may record and manage check points for each electronic device.

한편, 공동 편집 서비스를 제공하는 동안에 일시적으로 접속이 끊긴 전자 장치를 관리하기 위한 모듈로, 서버(405)는 임시 체크 포인트 저장 모듈(530), 접속 끊김 관리 모듈(540) 및 명령 조합 관리 모듈(550)을 더 포함할 수 있다. Meanwhile, as a module for managing an electronic device temporarily disconnected while providing a joint editing service, the server 405 includes a temporary check point storage module 530, a disconnection management module 540, and a command combination management module ( 550) may be further included.

임시 체크 포인트 저장 모듈(530)은 접속이 끊긴 시점 이후의 편집 명령들을 미리 연산하는 데 기준이 되는 체크 포인트를 임시로 저장할 수 있다. 예를 들어, 임시 체크 포인트 저장 모듈(530)은 전자 장치(401)의 접속이 끊긴 시점과 연관된 제1 체크 포인트 이후에 다른 전자 장치로부터 편집 명령이 수신됨에 따른 제2 체크 포인트를 갱신하여 저장할 수 있다. The temporary check point storage module 530 may temporarily store a check point that is a criterion for pre-computing edit commands after the point in time when the connection is disconnected. For example, the temporary checkpoint storage module 530 may update and store a second checkpoint according to an edit command received from another electronic device after the first checkpoint associated with the time point at which the electronic device 401 is disconnected. there is.

접속 끊김 관리 모듈(540)은 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치를 식별할 수 있다. 예를 들어, 접속 관리 모듈(520)은 공동 편집 세션에 접속 중인 복수의 전자 장치들 중 적어도 하나의 전자 장치의 접속 해제 이벤트가 발생하는지를 식별할 수 있으며, 접속 해제 이벤트 발생을 접속 끊김 관리 모듈(540)에 알릴 수 있다. 또한, 접속 관리 모듈(520)은 상기 접속 해제된 전자 장치의 접속 재개를 접속 끊김 관리 모듈(540)에 알릴 수도 있다. 공동 편집 세션에 참여 중인 전자 장치들에 대한 정보는 상기 세션 개설 시에 이미 획득된 상태이므로, 그 중에서도 접속이 끊긴 전자 장치에 대한 정보 예컨대, 메타 데이터를 임시로 저장할 수 있다. 예를 들면, 상기 메타 데이터는 접속이 끊긴 전자 장치와 연관된 사용자 정보, 전자 장치의 식별 정보, 또는 공동 편집 중인 컨텐트에 대한 정보 중 적어도 하나를 포함할 수 있다. 접속 끊김 관리 모듈(540)은 상기 임시로 저장한 메타 데이터를 명령 조합 관리 모듈(550)에 제공할 수 있다. 이러한 메타 데이터의 전달은 명령 조합 관리 모듈(550)로 하여금 전자 장치(401)에 대한 접속이 끊긴 동안의 편집 명령들만 하나의 편집 명령 형태로 미리 연산하도록 트리거링하는 역할을 할 수 있다. The disconnection management module 540 may identify at least one disconnected electronic device among a plurality of electronic devices connected for joint editing. For example, the connection management module 520 may identify whether a connection release event occurs in at least one electronic device among a plurality of electronic devices accessing the joint editing session, and the connection disconnection management module ( 540) can be notified. Also, the connection management module 520 may inform the connection disconnection management module 540 of resuming the connection of the disconnected electronic device. Since information on electronic devices participating in the joint editing session has already been acquired at the time of opening the session, information on electronic devices that have been disconnected among them, for example, meta data, can be temporarily stored. For example, the meta data may include at least one of user information associated with a disconnected electronic device, identification information of the electronic device, and information about content being jointly edited. The disconnection management module 540 may provide the temporarily stored metadata to the command combination management module 550 . Transmission of such meta data may serve to trigger the command combination management module 550 to pre-calculate only the edit commands while the connection to the electronic device 401 is disconnected in the form of one edit command.

한편, 명령 조합 관리 모듈(550)은 공동 편집에 참여 중인 모든 전자 장치들로부터의 편집 명령을 순차적으로 연산한 최신 결과(예: 서버 최신 형상)를 가지고 있을 수 있다. 또한, 명령 조합 관리 모듈(550)은 접속이 끊긴 전자 장치(401)의 발생 시에만 접속이 끊긴 동안의 편집 명령들을 미리 연산하는 동작을 수행하고, 이를 저장해 놓을 수 있다. 예를 들어, 명령 조합 관리 모듈(550)은 접속 끊김 관리 모듈(540)에 의해 접속이 끊긴 전자 장치(401)의 발생을 인지할 수 있으며, 임시 체크 포인트 저장 모듈(530)에 임시로 저장된 전자 장치(401)의 체크 포인트를 확인할 수 있다. 따라서 명령 조합 관리 모듈(550)은 명령어 저장 모듈(505)에 순차적으로 저장된 편집 명령들 중 상기 확인된 체크 포인트 이후의 편집 명령들을 가져올 수 있다. 명령 조합 관리 모듈(550)은 상기 편집 명령들을 명령 연산 모듈(510)을 이용하여 연산할 수 있다. 명령 조합 관리 모듈(550)은 순차적인 연산을 통해 생성된 하나의 결과물을 전자 장치(401)에 대응시켜 저장할 수 있다. 만일 접속이 끊긴 전자 장치가 복수일 경우, 명령 조합 관리 모듈(550)은 전자 장치 별로 신규 편집 명령을 저장할 수 있다. 다시 말하면, 전자 장치마다 접속이 끊긴 시점이 다를 수 있기 때문에 각 전자 장치에 대해 저장된 신규 편집 명령도 서로 다를 수 있다. 신규 편집 명령은 각각의 전자 장치에 대해 하나의 컨텐트에 해당하는 단위로 저장될 수 있다. 예를 들어, 노트 어플리케이션을 사용하여 공동 편집을 수행하는 경우, 상기 신규 편집 명령은 한 화면에 표시되는 1개의 노트를 의미할 수 있다. Meanwhile, the command combination management module 550 may have a latest result (eg, a latest server configuration) obtained by sequentially calculating edit commands from all electronic devices participating in joint editing. In addition, the command combination management module 550 may perform an operation of pre-computing editing commands while the connection is disconnected only when the disconnected electronic device 401 occurs, and store the edited commands. For example, the command combination management module 550 may recognize the occurrence of the electronic device 401 disconnected by the disconnection management module 540, and temporarily store electronic devices in the temporary checkpoint storage module 530. Check points of the device 401 can be checked. Accordingly, the command combination management module 550 may retrieve edit commands after the checked check point among edit commands sequentially stored in the command storage module 505 . The command combination management module 550 may calculate the editing commands using the command calculation module 510 . The command combination management module 550 may store one result generated through sequential operations in correspondence with the electronic device 401 . If there are a plurality of disconnected electronic devices, the command combination management module 550 may store a new editing command for each electronic device. In other words, since the disconnection point may be different for each electronic device, new editing commands stored for each electronic device may also be different. A new editing command may be stored in a unit corresponding to one content for each electronic device. For example, when joint editing is performed using a note application, the new editing command may mean one note displayed on one screen.

명령 조합 관리 모듈(550)은 상기 신규 편집 명령을 저장한 이후에도, 순차적인 편집 명령이 수신될 때마다 또는 주기적으로 추가적인 편집 명령들을 상기 신규 편집 명령에 반영하여 연산하는 동작을 수행할 수 있다. 이와 같이 순차적인 연산을 한 번만 수행하는 것이 아니라 명령 조합 관리 모듈(550)은 접속이 끊긴 전자 장치(401)와의 접속이 재개되기 전까지 다른 전자 장치로부터의 추가적인 편집 명령을 지속적으로 반영하여 연산하는 동작을 수행할 수 있다. Even after the new edit command is stored, the command combination management module 550 may reflect additional edit commands to the new edit command whenever sequential edit commands are received or periodically, and perform an operation of calculating the new edit commands. In this way, rather than performing sequential operations only once, the command combination management module 550 continuously reflects and calculates additional editing commands from other electronic devices until the connection with the disconnected electronic device 401 is resumed. can be performed.

한편, 접속 끊김 관리 모듈(540)은 모니터링을 통해 전자 장치(401)의 재접속 여부를 확인할 수 있다. 만일 재접속이 확인되면, 접속 끊김 관리 모듈(540)은 명령 조합 관리 모듈(550)로부터 상기 미리 연산해 놓은 신규 편집 명령(예: 전자 장치 1 최신 형상)을 가져와서 명령 송수신 모듈(515)을 통해 전자 장치(401)로 전송할 수 있다.Meanwhile, the disconnection management module 540 may check whether the electronic device 401 is reconnected through monitoring. If reconnection is confirmed, the disconnection management module 540 retrieves the previously calculated new edit command (eg, the latest shape of electronic device 1) from the command combination management module 550 and transmits the command through the command transmission/reception module 515. It can be transmitted to the electronic device 401.

이후, 상기 신규 편집 명령이 전자 장치(401)로 성공적으로 전송된 경우, 명령 조합 관리 모듈(550)은 접속 끊김 관리 모듈(540)로부터의 요청에 대응하여 전자 장치(401)에 대해 연산해 놓은 상기 신규 편집 명령을 삭제할 수 있다. 또한, 더 이상 전자 장치(401)에 대한 정보를 관리할 필요가 없으므로, 접속 끊김 관리 모듈(540)는 임시로 저장한 메타 데이터를 삭제할 수 있다. 이에 따라 접속 재개 시에는 전자 장치(401)와 관련된 모든 데이터 예컨대, 신규 편집 명령 및 메타 데이터를 일괄 삭제함으로써, 복수의 전자 장치를 위한 공동 편집을 관리하는 서버(405)에서의 리소스를 효율적으로 활용할 수 있다.Thereafter, when the new edit command is successfully transmitted to the electronic device 401, the command combination management module 550 calculates for the electronic device 401 in response to a request from the disconnection management module 540. The new edit command may be deleted. Also, since it is no longer necessary to manage information on the electronic device 401, the disconnection management module 540 may delete temporarily stored meta data. Accordingly, when access is resumed, all data related to the electronic device 401, for example, new editing commands and meta data are collectively deleted, so that resources in the server 405 that manages joint editing for a plurality of electronic devices are efficiently utilized. can

한편, 상기한 바 이외에 명령어 저장 모듈(505), 명령 연산 모듈(510), 명령 송수신 모듈(515) 및 체크 포인트 관리 모듈(525) 각각에서의 구체적인 동작은 후술하기로 한다. 예를 들어, 명령 송수신 모듈(515) 및 체크 포인트 관리 모듈(525)에서의 동작은 도 9a를 참조하여 후술하며, 명령 연산 모듈(510)에서의 동작은 도 10을 참조하여 후술하며, 명령어 저장 모듈(505)에서의 동작은 도 11을 참조하여 후술하기로 한다. Meanwhile, in addition to the above, specific operations of each of the command storage module 505, command operation module 510, command transmission/reception module 515, and checkpoint management module 525 will be described later. For example, operations in the command transmission/reception module 515 and checkpoint management module 525 will be described later with reference to FIG. 9A, operations in the command operation module 510 will be described later with reference to FIG. 10, and command storage Operations in module 505 will be described later with reference to FIG. 11 .

다양한 실시 예에 따르면, 서버(405)는, 통신 모듈(491), 메모리(431) 및 적어도 하나의 프로세서(421)를 포함하고, 상기 적어도 하나의 프로세서(421)는, 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치(예: 도 4의 전자 장치(401))를 식별하고, 상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 체크 포인트를 식별하고, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 메모리(431)에 저장하고, 상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 통신 모듈(491)을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정될 수 있다. According to various embodiments, the server 405 includes a communication module 491, a memory 431, and at least one processor 421, and the at least one processor 421 is connected for joint editing. Identifying at least one electronic device (eg, the electronic device 401 of FIG. 4 ) from which connection is lost among a plurality of electronic devices, identifying a check point associated with a point in time at which the at least one electronic device is disconnected, Storing in the memory 431 a new edit command for the at least one electronic device obtained by sequentially processing edit commands after the check point executed by connected electronic devices among a plurality of electronic devices; When the at least one electronic device is reconnected, the new editing command may be transmitted to the at least one electronic device through the communication module 491 .

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 신규 편집 명령을 전송한 후, 상기 메모리에 저장된 상기 적어도 하나의 전자 장치에 대한 상기 신규 편집 명령을 삭제하도록 설정될 수 있다. According to various embodiments of the present disclosure, after transmitting the new edit command, the at least one processor may be configured to delete the new edit command for the at least one electronic device stored in the memory.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트를 갱신하고, 상기 적어도 하나의 전자 장치에 대해 상기 갱신에 대응하는 최신 체크 포인트를 저장하도록 설정될 수 있다.According to various embodiments of the present disclosure, the at least one processor updates a second check point whenever edit commands after the check point are sequentially acquired by connected electronic devices among the plurality of electronic devices, and It may be set to store the latest check point corresponding to the update for at least one electronic device.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 신규 편집 명령과 상기 최신 체크 포인트를 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정될 수 있다.According to various embodiments, the at least one processor may be configured to transmit the new edit command and the latest check point to the at least one electronic device through the communication module.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 전자 장치의 재접속 시 상기 적어도 하나의 전자 장치로부터 상기 적어도 하나의 전자 장치에서의 현재 체크 포인트를 획득하고, 상기 획득된 현재 체크 포인트 및 상기 제1 체크 포인트에 기반하여, 상기 신규 편집 명령을 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정될 수 있다.According to various embodiments of the present disclosure, the at least one processor obtains a current check point of the at least one electronic device from the at least one electronic device when the at least one electronic device is reconnected, and the obtained current check point and based on the first check point, the new editing command may be transmitted to the at least one electronic device through the communication module.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다, 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 상기 수신되는 편집 명령을 상기 통신 모듈을 통해 전송하도록 설정될 수 있다.According to various embodiments of the present disclosure, whenever an edit command is received by connected electronic devices among the plurality of electronic devices, the at least one processor controls the rest of the electronic devices except for the at least one disconnected electronic device. It may be set to transmit the received editing command through the communication module.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다 제2 체크 포인트를 갱신하고, 상기 갱신된 제2 체크 포인트와 함께 상기 수신된 편집 명령을 상기 통신 모듈을 통해 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 전송하도록 설정될 수 있다.According to various embodiments of the present disclosure, the at least one processor updates a second check point whenever an edit command is received by connected electronic devices among the plurality of electronic devices, and the updated second check point and Together, the received editing commands may be set to be transmitted to the remaining electronic devices except for the at least one disconnected electronic device through the communication module.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 접속된 전자 장치들에 의해 편집 명령 수신 시 상기 편집 명령을 전송한 각 전자 장치에서의 현재의 체크 포인트를 상기 편집 명령과 함께 획득하도록 설정될 수 있다.According to various embodiments of the present disclosure, when an editing command is received by the connected electronic devices, the at least one processor may be configured to acquire a current checkpoint of each electronic device that has transmitted the editing command together with the editing command. can

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 접속된 전자 장치들에 의해 편집 명령이 수신될 때 수신되는 편집 명령이 서로 충돌하는지를 식별하고, 상기 충돌 발생 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택하고, 상기 순차적인 선택에 따라 상기 제2 체크 포인트를 갱신하여 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 공지하도록 설정될 수 있다.According to various embodiments of the present disclosure, when editing commands are received by the connected electronic devices, the at least one processor identifies whether the received edit commands collide with each other, and when the collision occurs, the edit commands in which the collision occurs It may be set to sequentially select, update the second check point according to the sequential selection, and notify remaining electronic devices except for the at least one disconnected electronic device.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 접속이 끊긴 적어도 하나의 전자 장치의 식별에 대응하여, 상기 적어도 하나의 전자 장치의 메타 데이터를 임시로 저장하도록 설정될 수 있다.According to various embodiments of the present disclosure, the at least one processor may be configured to temporarily store metadata of the at least one electronic device in response to the identification of the at least one disconnected electronic device.

다양한 실시 예에 따르면, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 적어도 하나의 전자 장치의 메타 데이터에 대응시켜 상기 메모리에 저장하도록 설정될 수 있다.According to various embodiments of the present disclosure, the at least one processor may be configured to store a new editing command for the at least one electronic device in the memory in correspondence with meta data of the at least one electronic device.

도 6은 다양한 실시 예에 따른 공동 편집 서비스를 제공하기 위한 서버에서의 동작 흐름도이다.6 is a flowchart illustrating an operation in a server for providing a joint editing service according to various embodiments.

도 6의 동작 방법의 각 단계/동작은, 서버(예: 도 1의 서버(108), 도 4의 서버(405), 서버의 적어도 하나의 프로세서(예: 도 4의 프로세서(421)) 중 적어도 하나에 의해 수행될 수 있다. 한 실시 예에서, 605 동작 내지 620 동작들 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 또한, 이하 실시 예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다.Each step/operation of the operating method of FIG. 6 is performed by a server (eg, server 108 of FIG. 1 , server 405 of FIG. 4 ), or at least one processor of the server (eg, processor 421 of FIG. 4 ). In one embodiment, at least one of operations 605 to 620 may be omitted, the order of some operations may be changed, or another operation may be added. Operations may be performed sequentially, but not necessarily sequentially, for example, the order of each operation may be changed, or at least two operations may be performed in parallel.

도 6을 참조하면, 605 동작에서, 서버(예: 도 4의 서버(405))는 공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치(예: 도 4의 전자 장치(401))를 식별할 수 있다. Referring to FIG. 6 , in operation 605, a server (eg, the server 405 of FIG. 4 ) selects at least one disconnected electronic device among a plurality of electronic devices connected for joint editing (eg, the electronic device of FIG. 4 ). Device 401) can be identified.

610 동작에서, 서버(405)는 상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별할 수 있다. In operation 610, the server 405 may identify a first check point associated with a point in time at which the at least one electronic device is disconnected.

615 동작에서, 서버(405)는 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 저장할 수 있다. In operation 615, the server 405 sequentially processes edit commands after the first check point performed by the connected electronic devices among the plurality of electronic devices, thereby generating a new information about the at least one electronic device. Editing commands can be saved.

620 동작에서, 서버(405)는 상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송할 수 있다. In operation 620, the server 405 transmits the new edit command to the at least one electronic device when the at least one electronic device is reconnected.

다양한 실시 예에 따르면, 상기 방법은, 상기 신규 편집 명령을 전송한 후, 상기 저장된 상기 적어도 하나의 전자 장치에 대한 상기 신규 편집 명령을 삭제하는 동작을 더 포함할 수 있다. According to various embodiments, the method may further include, after transmitting the new edit command, deleting the stored new edit command for the at least one electronic device.

다양한 실시 예에 따르면, 상기 방법은, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트를 갱신하는 동작 및 상기 적어도 하나의 전자 장치에 대해 상기 갱신에 대응하는 최신 체크 포인트를 저장하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, the method may include an operation of updating a second check point whenever edit commands after the check point executed by connected electronic devices among the plurality of electronic devices are sequentially acquired, and the at least one The method may further include an operation of storing the latest check point corresponding to the update for the electronic device of .

다양한 실시 예에 따르면, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작은, 상기 신규 편집 명령과 상기 최신 체크 포인트를 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함할 수 있다. According to various embodiments, the transmitting of the new editing command to the at least one electronic device may include transmitting the new editing command and the latest check point to the at least one electronic device.

다양한 실시 예에 따르면, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작은, 상기 적어도 하나의 전자 장치의 재접속 시 상기 적어도 하나의 전자 장치로부터 상기 적어도 하나의 전자 장치에서의 현재 체크 포인트를 획득하는 동작 및 상기 획득된 현재 체크 포인트 및 상기 제1 체크 포인트에 기반하여, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함할 수 있다. According to various embodiments of the present disclosure, the transmitting of the new edit command to the at least one electronic device may include a current check point in the at least one electronic device from the at least one electronic device when the at least one electronic device is reconnected. and an operation of transmitting the new edit command to the at least one electronic device based on the obtained current check point and the first check point.

다양한 실시 예에 따르면, 상기 방법은, 상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다, 제2 체크 포인트를 갱신하는 동작 및 상기 갱신된 제2 체크 포인트와 함께 상기 수신된 편집 명령을 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 전송하는 동작을 더 포함할 수 있다. According to various embodiments of the present disclosure, the method may include an operation of updating a second check point whenever an editing command is received by connected electronic devices among the plurality of electronic devices, and the updated second check point The method may further include transmitting the received editing command to remaining electronic devices except for the at least one disconnected electronic device.

다양한 실시 예에 따르면, 상기 방법은, 상기 접속된 전자 장치들에 의해 편집 명령 수신 시 상기 편집 명령을 전송한 각 전자 장치에서의 현재의 체크 포인트를 상기 편집 명령과 함께 획득하는 동작을 더 포함할 수 있다. According to various embodiments of the present disclosure, the method may further include, when an edit command is received by the connected electronic devices, acquiring a current checkpoint of each electronic device that has transmitted the edit command together with the edit command. can

다양한 실시 예에 따르면, 상기 방법은, 상기 접속된 전자 장치들에 의해 편집 명령이 수신될 때 수신되는 편집 명령이 서로 충돌하는지를 식별하는 동작, 상기 충돌 발생 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택하는 동작 및 상기 순차적인 선택에 따라 상기 제2 체크 포인트를 갱신하여 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 공지하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, the method may include, when an edit command is received by the connected electronic devices, identifying whether received edit commands collide with each other; The method may further include an operation of selecting and an operation of updating the second check point according to the sequential selection and notifying the rest of the electronic devices except for the at least one disconnected electronic device.

다양한 실시 예에 따르면, 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 저장하는 동작은, 상기 접속이 끊긴 적어도 하나의 전자 장치의 식별에 대응하여, 상기 적어도 하나의 전자 장치의 메타 데이터를 임시로 저장하는 동작 및 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 적어도 하나의 전자 장치의 메타 데이터에 대응시켜 저장하는 동작을 더 포함할 수 있다. According to various embodiments of the present disclosure, the operation of storing the new edit command for the at least one electronic device temporarily stores metadata of the at least one electronic device in response to the identification of the at least one electronic device that has been disconnected. The method may further include an operation of storing and an operation of storing a new editing command for the at least one electronic device in correspondence with metadata of the at least one electronic device.

도 7은 다양한 실시 예에 따른 전자 장치와의 연결 끊김 및 재연결 시의 서버에서의 동작 흐름도이다. 도 7에서는 공동 편집 세션에 복수의 전자 장치들이 접속한 상태를 예로 들어 설명하기로 한다. 또한, 도 7에서의 설명의 편의를 위해 도 9a를 참조하기로 한다. 도 9a는 다양한 실시 예에 따른 연결 재개 시의 서버와 전자 장치 간의 동작을 설명하기 위한 도면이다. 7 is a flowchart illustrating an operation of a server when disconnection and reconnection with an electronic device according to various embodiments of the present disclosure; In FIG. 7 , a state in which a plurality of electronic devices are connected to a joint editing session will be described as an example. Also, for convenience of description in FIG. 7 , FIG. 9A will be referred to. 9A is a diagram for explaining an operation between a server and an electronic device when a connection is resumed according to various embodiments.

도 7을 참조하면, 750 동작에서, 서버(405)는 상기 복수의 전자 장치들 중 전자 장치(401)와의 연결 끊김 여부를 식별할 수 있다. Referring to FIG. 7 , in operation 750, the server 405 may identify whether or not the connection with the electronic device 401 among the plurality of electronic devices is disconnected.

710 동작에서, 전자 장치(401)와의 연결 끊김의 식별에 대응하여, 서버(405)는 전자 장치(401)에 대한 체크 포인트를 식별할 수 있다. 예를 들어, 모든 전자 장치들은 서버(405)에 접속 시마다 각 전자 장치에서의 체크 포인트를 서버(405)에 알릴 수 있다. 따라서 서버(405)는 공동 편집 세션을 모니터링함으로써 접속이 끊긴 전자 장치(401)를 식별할 수 있으며, 식별된 전자 장치(401)가 어떠한 전자 장치인지를 알 수 있기 때문에 상기 전자 장치(401)가 가장 최근에 보내 온 체크 포인트를 확인할 수 있다. 따라서 서버(405)는 전자 장치(401)의 접속이 끊긴 시점과 연관된 체크 포인트를 식별할 수 있다. In operation 710, in response to identification of disconnection with the electronic device 401, the server 405 may identify a check point for the electronic device 401. For example, all electronic devices may notify the server 405 of a check point in each electronic device whenever accessing the server 405 . Therefore, the server 405 can identify the disconnected electronic device 401 by monitoring the co-editing session, and since it can know which electronic device the identified electronic device 401 is, the electronic device 401 can You can check the most recently sent checkpoint. Accordingly, the server 405 may identify a check point associated with the point in time when the connection of the electronic device 401 is disconnected.

도 9a를 참조하면, 전자 장치(401)에서 접속이 끊기기 전에 서버(405)에 제공한 체크 포인트를 'checkpoint 4'라고 할 경우, 전자 장치(401)에서의 명령어 저장 모듈에는 접속이 끊기기 전의 편집 명령들(예: C1, C2, C3, C4)만 저장되어 있을 수 있다. 서버(405)는 전자 장치(401)의 접속이 끊김을 식별한 경우, 접속이 끊긴 전자 장치(401)의 체크 포인트가 'checkpoint 4'임을 확인할 수 있다. Referring to FIG. 9A , when the checkpoint provided to the server 405 before disconnection from the electronic device 401 is referred to as 'checkpoint 4', the command storage module in the electronic device 401 includes edits before disconnection. Only commands (e.g. C1, C2, C3, C4) may be stored. When the server 405 identifies that the electronic device 401 is disconnected, it can confirm that the check point of the disconnected electronic device 401 is 'checkpoint 4'.

715 동작에서, 서버(405)는 식별된 체크 포인트 이후의 변경 사항이 있는지를 식별할 수 있다. 예를 들어, 도 9a를 참조하면, 상기 접속이 끊긴 시점과 연관된 체크 포인트 'checkpoint 4' 이후에 다른 전자 장치(예: 전자 장치 2(404))로부터 편집 명령이 순차적으로 6개가 수신됨에 따라, 서버(405)는 순차적인 편집 명령들과 함께 전자 장치 2(404)에서의 현재 체크 포인트인 'checkpoint 10'을 함께 획득할 수 있다. 이에 따라 서버(405)는 6개의 편집 명령들을 순차적으로 획득 시마다 서버(405)에서의 체크 포인트(checkpoint 5→6→7→8→9→10)를 하나씩 증가시킬 수 있다.In operation 715, the server 405 may identify whether there is a change after the identified checkpoint. For example, referring to FIG. 9A , as 6 edit commands are sequentially received from another electronic device (e.g., electronic device 2 404) after checkpoint 'checkpoint 4' associated with the time of the disconnection, The server 405 may acquire 'checkpoint 10', which is the current checkpoint in the electronic device 2 404, along with sequential editing commands. Accordingly, the server 405 may increase the checkpoint (checkpoint 5→6→7→8→9→10) in the server 405 by one whenever six editing commands are sequentially obtained.

720 동작에서, 상기 식별된 체크 포인트 이후의 변경 사항이 있는 경우, 서버(405)는 체크 포인트 이후의 변경 사항을 순차적으로 연산하여 신규 편집 명령(915)으로 관리 및 최신 체크 포인트로 갱신할 수 있다. 또한, 서버(405)는 6개의 편집 명령들을 순차적으로 연산한 최신 결과(예: 서버 최신 형상)(910)를 가지고 있을 수 있다. 예를 들어, 도 9a를 참조하면, 상기 6개의 편집 명령을 기 설정된 연산 알고리즘에 기반하여 하나로 통합하는 형태로 연산하고, 연산을 통해 전자 장치(401)에 대한 하나의 신규 편집 명령(915)으로 저장할 수 있다. 여기서, 서버(405)는 서버(405)에서의 체크 포인트를 편집 명령의 수신 시마다 하나씩 증가시켜 갱신함에 따라 전자 장치(401)에 대해 상기 갱신된(또는 증가된) 최신 체크 포인트(예: checkpoint 10)를 저장할 수 있다.In operation 720, if there is a change after the identified checkpoint, the server 405 sequentially calculates the change after the checkpoint, manages it with a new edit command 915, and updates it to the latest checkpoint. . In addition, the server 405 may have the latest result (eg, the latest server shape) 910 obtained by sequentially calculating the six editing commands. For example, referring to FIG. 9A , the six edit commands are calculated in a form of integrating them into one based on a preset calculation algorithm, and through the calculation, one new edit command 915 for the electronic device 401 is obtained. can be saved Here, the server 405 updates the checkpoints in the server 405 by incrementing them by one each time an edit command is received, so that the updated (or increased) latest checkpoint (eg, checkpoint 10) for the electronic device 401 is updated. ) can be stored.

725 동작에서, 서버(405)는 전자 장치(401)와 재연결 되는지 여부를 식별할 수 있다. 730 동작에서, 재연결의 식별에 대응하여, 서버(405)는 갱신된 최신 체크 포인트 및 순차 연산된 신규 편집 명령(916)을 재연결된 전자 장치(401)로 전달할 수 있다. 따라서 전자 장치(401)의 명령어 저장 모듈에 하나의 결과물 형태로 신규 편집 명령(920)이 저장되므로, 이러한 신규 편집 명령 하나에 의한 변경 사항을 빠르게 반영할 수 있다.In operation 725, the server 405 may identify whether reconnection with the electronic device 401 is established. In operation 730 , in response to identification of reconnection, the server 405 may transfer the updated latest check point and the sequentially operated new edit command 916 to the reconnected electronic device 401 . Accordingly, since the new editing command 920 is stored in the command storage module of the electronic device 401 in the form of a single result, changes made by this new editing command can be quickly reflected.

도 8은 다양한 실시 예에 따른 서버와의 연결 끊김 및 재연결 시의 전자 장치에서의 동작 흐름도이다. 또한, 도 8에서의 설명의 편의를 위해 도 9b를 참조하기로 한다. 도 9b는 다양한 실시 예에 따른 연결 재개 시의 전자 장치의 예시적인 출력 화면을 도시한 도면이다. 8 is a flowchart illustrating an operation in an electronic device upon disconnection and reconnection with a server according to various embodiments of the present disclosure. Also, for convenience of description in FIG. 8 , FIG. 9B will be referred to. 9B is a diagram illustrating an exemplary output screen of an electronic device when a connection is resumed according to various embodiments of the present disclosure.

805 동작에서, 전자 장치(401)는 서버(405)와의 접속 시마다 체크 포인트를 전달할 수 있다. 810 동작에서, 전자 장치(401)는 체크 포인트 이후의 변경 사항을 포함하는 편집 명령을 서버(405)로부터 획득할 수 있다. 예를 들어, 전자 장치(401)는 공동 편집 시에 서버(405)를 통해 다른 전자 장치(404)에 의한 편집 명령을 수신할 수 있으며, 상기 수신된 편집 명령을 공동 편집 화면에 반영한 후 체크 포인트를 최신 체크 포인트로 갱신할 수 있다. 이와 같이 전자 장치(401)는 서버(405)에 접속 시 동기화를 위해 전자 장치(401)에서의 최신 체크 포인트 즉, 현재의 체크 포인트를 서버(405)로 알려줄 수 있으며, 이에 따라 현재의 체크 포인트 이후의 편집 명령을 획득할 수 있다. 이와 같이 서버(405)에 접속된 동안에는 전자 장치(401)에서의 편집 명령을 전송할 수 있으며, 서버(405)로부터는 다른 전자 장치에 의해 수행된 편집 명령을 획득할 수도 있다. 하지만, 서버(405)에 접속이 일시적으로 끊기게 되면, 전자 장치(401)에서의 편집 명령은 서버(405)로 전달되지 못하며, 마찬가지로 다른 전자 장치에 의해 수행된 편집 명령도 획득할 수 없어 편집 명령을 처리하기 위한 동작은 중지될 수 있다. In operation 805, the electronic device 401 may transmit a check point whenever accessing the server 405. In operation 810, the electronic device 401 may obtain an editing command including changes after the check point from the server 405. For example, the electronic device 401 may receive an editing command from another electronic device 404 through the server 405 during joint editing, reflect the received editing command on the joint editing screen, and then check point can be updated with the latest checkpoint. In this way, when accessing the server 405, the electronic device 401 may inform the server 405 of the latest checkpoint, that is, the current checkpoint in the electronic device 401 for synchronization, and accordingly, the current checkpoint Subsequent editing commands can be acquired. While connected to the server 405 as described above, an editing command from the electronic device 401 may be transmitted, and an editing command performed by another electronic device may be obtained from the server 405 . However, if the connection to the server 405 is temporarily disconnected, the editing command from the electronic device 401 cannot be transmitted to the server 405, and similarly, the editing command performed by another electronic device cannot be obtained. The operation for processing may be stopped.

815 동작에서, 전자 장치(401)는 서버(405)와의 연결 끊김 이후 재연결 되는지 여부를 식별할 수 있다. 만일 재연결되는 경우, 820 동작에서, 전자 장치(401)는 체크 포인트 이후의 변경 사항을 순차적으로 연산한 신규 편집 명령을 서버(405)로부터 획득할 수 있다. 여기서, 재연결 시에는 전자 장치(401)는 신규 편집 명령과 함께 최신 체크 포인트를 획득할 수 있으며, 명령어 저장 모듈에 한번에 저장될 수 있다. 반면, 연결 끊김이 발생하지 않는 경우에는 전술한 동작을 반복 수행할 수 있다. In operation 815, the electronic device 401 may identify whether reconnection is established after disconnection with the server 405. If reconnected, in operation 820, the electronic device 401 may obtain a new editing command obtained by sequentially calculating changes after the check point from the server 405. Here, upon reconnection, the electronic device 401 may obtain the latest check point along with a new edit command, and may store the command storage module at once. On the other hand, when disconnection does not occur, the above-described operation may be repeatedly performed.

825 동작에서, 서버(405)로부터 신규 편집 명령 수신 시, 전자 장치(401)는 전자 장치(401)의 버퍼 내에 편집 명령이 존재하는지 여부를 식별할 수 있다. 예를 들어, 서버(405)에 접속이 일시적으로 끊긴 상황에서 사용자에 의해 전자 장치(401)에서의 편집이 수행되는 경우가 있을 수 있다. 이러한 경우 전자 장치(401)에서의 편집 명령은 서버(405)로 전달되지는 않았지만 버퍼 내에는 서버(405)로 전달되지 못한 편집 명령이 존재할 수 있다.In operation 825, upon receiving a new edit command from the server 405, the electronic device 401 may identify whether the edit command exists in a buffer of the electronic device 401. For example, there may be a case in which editing is performed on the electronic device 401 by a user in a situation where the connection to the server 405 is temporarily disconnected. In this case, the edit command from the electronic device 401 has not been delivered to the server 405, but the edit command that has not been delivered to the server 405 may exist in the buffer.

830 동작에서, 상기 버퍼 내에 편집 명령이 존재하는 경우에 대응하여, 전자 장치(401)는 획득한 신규 편집 명령과 버퍼 내의 편집 명령을 비교하여 연산 후 체크 포인트 갱신을 수행할 수 있다. 반면, 상기 버퍼 내에 편집 명령이 존재하지 않는 경우에는 전자 장치(401)는 840 동작을 수행할 수 있다. In operation 830, in response to the case where an edit command exists in the buffer, the electronic device 401 compares the acquired new edit command with the edit command in the buffer to perform checkpoint update after calculation. On the other hand, when the editing command does not exist in the buffer, the electronic device 401 may perform operation 840.

835 동작에서, 전자 장치(401)는 갱신된 체크 포인트와 연산된 편집 명령을 서버(405)로 전송할 수 있으며, 840 동작에서, 전자 장치(401)는 신규 편집 명령 또는 연산된 편집 명령을 반영한 공동 편집 결과를 출력할 수 있다. 예를 들어, 전자 장치(401)는 도 9b에 도시된 바와 같이, 접속이 일시적으로 끊기는 상황일 경우 공동 편집 화면(930) 상에 이를 알리는 내용을 출력할 수 있으며, 재연결 시에는 최신 체크 포인트에 해당하는 신규 편집 명령이 한 번에 반영된 공동 편집 화면(940)을 표시할 수 있다. 예를 들어, 도 9b에 도시된 바와 같이, 신규 편집 명령이 반영된 공동 편집 화면은 편집 명령에 따른 편집 사항을 한 번에 표시하는 화면일 수 있으며, 하나의 결과물로서 스냅샷 형식으로 표시하는 화면일 수도 있다.In operation 835, the electronic device 401 may transmit the updated checkpoint and the calculated edit command to the server 405. Editing results can be output. For example, as shown in FIG. 9B , when the connection is temporarily disconnected, the electronic device 401 may output content notifying this on the joint editing screen 930, and upon reconnection, the latest check point A joint editing screen 940 in which a new editing command corresponding to is reflected at once may be displayed. For example, as shown in FIG. 9B , a joint editing screen reflecting a new editing command may be a screen displaying edits according to an editing command at once, or a screen displaying a snapshot as a result. may be

도 10은 다양한 실시 예에 따른 편집 명령 충돌 시의 서버에서의 동작을 설명하기 위한 도면이다. 10 is a diagram for explaining an operation in a server when an editing command conflicts, according to various embodiments of the present disclosure.

도 10을 참조하면, 공동 편집 환경의 경우 복수의 전자 장치들에 의해 하나의 컨텐트에 대해 동일한 체크 포인트를 가지는 둘 이상의 편집 명령들이 동시에 입력되는 상황이 발생할 수 있다. 따라서 동일한 체크 포인트를 가지는 편집 명령들이 중복 수신되는 경우가 발생하면, 이러한 편집 명령들이 서로 충돌되지 않도록 조정할 필요가 있다. Referring to FIG. 10 , in the case of a joint editing environment, a situation in which two or more editing commands having the same check point for one content are simultaneously input by a plurality of electronic devices may occur. Therefore, if edit commands having the same checkpoint are repeatedly received, it is necessary to adjust the edit commands so that they do not collide with each other.

이를 위해 서버(405) 내의 명령 연산 모듈(510)은 충돌이 발생하는 편집 명령들에 대한 순서를 조정하는 동작을 수행할 수 있다. 도 10을 참조하면, 명령 연산 모듈(510)은 복수의 전자 장치들(예: 클라이언트 1, 클라이언트 2)에 의해 편집 명령들(1001, 1004)이 수신될 때 수신되는 편집 명령들(1001, 1004)이 서로 충돌하는지를 식별하고, 상기 충돌 발생(1000) 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택할 수 있다. To this end, the command calculation module 510 in the server 405 may perform an operation of adjusting the order of conflicting editing commands. Referring to FIG. 10 , the command operation module 510 performs editing commands 1001 and 1004 received when edit commands 1001 and 1004 are received by a plurality of electronic devices (eg, client 1 and client 2). ) may collide with each other, and when the collision occurs (1000), editing commands in which the collision occurs may be sequentially selected.

예를 들어, 도 10을 참조하면, 명령 연산 모듈(510)은 상기 충돌이 발생한 편집 명령들을 순차적으로 선택함에 있어, 서버(405) 시간 기준으로 먼저 수신된 편집 명령에 대한 체크 포인트를 유지하고, 나중에 수신된 편집 명령에 대한 체크 포인트를 변경할 수 있다. For example, referring to FIG. 10, the command calculation module 510 maintains a checkpoint for the first received edit command based on the time of the server 405 in sequentially selecting the conflicting edit commands, You can change the checkpoint for editing commands received later.

여기서, 도 10에 도시된 바와 같이 클라이언트 1의 형상과 클라이언트 2의 형상은 "가나다"로 형상이 일치하는 상황을 전제로 한다. 이러한 전제 하에 클라이언트 1은 "가A나다" 로 변경하고, 클라이언트 2는 "가xyz나다"로 변경하여 서로 현재의 체크 포인트를 checkpoint 0 → checkpoint 1로의 변경을 요청하고 있는 상황일 수 있다. 이에 대응하여, 서버(405)의 명령 연산 모듈(510)은 편집 명령의 순서를 조정하고, 이러한 조정을 통해 실제 명령 연산값을 수정할 수 있다. Here, as shown in FIG. 10, it is assumed that the shape of client 1 and the shape of client 2 are "Kanada" and the shapes match. Under this premise, client 1 changes to "ga A" and client 2 changes to "xyz", which may be a situation in which they request each other to change the current checkpoint from checkpoint 0 to checkpoint 1. Correspondingly, the command calculation module 510 of the server 405 adjusts the order of editing commands, and through this adjustment, actual command calculation values may be corrected.

따라서 클라이언트 1로의 편집 명령이 클라이언트 2로부터의 편집 명령보다 앞선다고 가정을 했을 때, 클라이언트 1의 checkpoint1의 편집 명령(1-"A"-2)(예:"가A나다" 형상)을 명령 저장 모듈(505)에 먼저 저장할 수 있으며, 상기 편집 명령의 저장에 대응하여 체크 포인트 checkpoint 0을 하나 증가시킨 checkpoint 1로 갱신하여 저장할 수 있다. 이어, 클라이언트 2의 checkpoint 1에 해당하는 편집 명령(1-"xyz"-2)(예:"가xyz"형상)은, 먼저 수신된 것으로 간주된 클라이언트 1의 checkpoint 1과 충돌할 수 있다. 따라서 명령 연산 모듈(510)은 현재의 체크 포인트 checkpoint 0을 checkpoint 1로 변경하는 것이 아닌 checkpoint 2로 변경(1010)한 후 상기 클라이언트 2의 편집 명령을 추가 연산하는 동작을 수행할 수 있다. Therefore, assuming that the edit command to client 1 precedes the edit command from client 2, the edit command (1-"A"-2) of checkpoint 1 of client 1 (e.g., "A" shape) is saved as a command. It can be first stored in the module 505, and can be stored after updating to checkpoint 1, which increases checkpoint 0 by one in response to the saving of the editing command. Subsequently, an edit command (1-"xyz"-2) corresponding to checkpoint 1 of client 2 (eg, shape "xyz") may collide with checkpoint 1 of client 1, which is considered to have been received first. Therefore, the command calculation module 510 may change the current checkpoint checkpoint 0 to checkpoint 2 instead of checkpoint 1 (1010), and then perform an operation of additionally calculating the editing command of the client 2.

일 실시 예에 따르면, 명령 연산 모듈(510)에서 사용되는 연산 알고리즘의 종류는 다양할 수 있으며, 그 종류에는 제한이 없을 수 있다. 예를 들어, 오퍼레이셔널 트랜스포밍(Operational Transforming) 방식의 연산 알고리즘을 예로 들어 설명하면, checkpoint 1의 변경 명령 값인 1-"A"-2의 "A"값이 추가로 들어왔음을 인지하고 1-"xyz"-2 의 앞선 1 값을 "A" 만큼의 길이인 1을 추가로 더한 2로 연산 처리할 수 있다. According to an embodiment, the types of calculation algorithms used in the command calculation module 510 may vary, and there may be no restrictions on the types. For example, taking the operation algorithm of the Operational Transforming method as an example, recognizing that the “A” value of 1-“A”-2, which is the change command value of checkpoint 1, has been added, and -The preceding 1 value of "xyz"-2 can be processed as 2 by adding 1, which is the length of "A".

이어, 명령 연산 모듈(510)은 "xyz"에 대해서는 문자 추가에 해당하므로 별도의 연산 처리 없이 넘긴 후, 마지막으로 2의 값이 checkpoint 1의 2와 동일함을 확인한 후 별도의 연산 처리를 하지 않으며, 이에 따라 최종적으로 checkpoint 2의 값은 2-"xyz"-2 로 연산됨을 확인할 수 있다. 상기와 같은 충돌 조정 과정(1005)을 통해 조정된 체크 포인트는 공동 편집에 참여하고 있는 모든 전자 장치들이 알 수 있도록 전체 전자 장치들로 통지될 수 있다. Next, the command operation module 510 passes “xyz” without additional operation processing because it corresponds to character addition, and finally confirms that the value of 2 is the same as 2 of checkpoint 1, and does not perform separate operation processing. , it can be confirmed that the value of checkpoint 2 is finally calculated as 2-"xyz"-2. The checkpoint adjusted through the collision adjustment process 1005 as described above can be notified to all electronic devices so that all electronic devices participating in joint editing can be aware of it.

도 11은 다양한 실시 예에 따른 서버에서의 명령어 저장 방법을 설명하기 위한 도면이다. 도 11에서의 동작은 서버(405) 내의 명령어 저장 모듈(505)에 의해 수행될 수 있다. 11 is a diagram for explaining a method of storing a command in a server according to various embodiments. The operations in FIG. 11 may be performed by the instruction storage module 505 in the server 405 .

도 11을 참조하면, 명령어 저장 모듈(505)은 서버(405)가 수신한 편집 명령을 체크 포인트를 이용하여 순번을 부여하고 순차적으로 저장하는 역할을 할 수 있다. 이러한 편집 명령은 크게 문서의 길이를 표현하는 숫자와 추가하고자 하는 문자 및 삭제하고자 하는 숫자를 포함할 수 있다. 예를 들어, 명령어 저장 모듈(505)은 편집용 전자 문서의 내용을 수정하는 수정 명령, 문서에 삽입되어 있는 텍스트, 이미지, 표와 같은 객체를 삭제하는 삭제 명령 및 문서에 상기와 같은 객체를 추가하는 추가 명령의 형태로 편집 명령을 저장할 수 있다. 예를 들어, 오퍼레이셔널 트랜스포밍 연산 알고리즘에 기반하여, 최초 문서 내의 내용 예컨대, "가나다라마바사아자차카타파하"인 기본 형상에 대해 "가A나다라마바사아자차카타파하"로 편집을 수행하는 경우를 예로 들어 설명하기로 한다. Referring to FIG. 11 , the command storage module 505 may play a role of assigning order numbers to edit commands received by the server 405 using check points and sequentially storing them. These editing commands may largely include numbers representing the length of the document, characters to be added, and numbers to be deleted. For example, the command storage module 505 includes a correction command for modifying the contents of an electronic document for editing, a delete command for deleting objects such as text, images, and tables inserted into a document, and adding the above objects to the document. You can save editing commands in the form of additional commands to For example, based on the operational transformation algorithm, edit the basic shape of the content in the original document, for example, "Kanadaramabasa ajachakatapaha" to "GaNadaramavasa ajachakatapaha" A case in which this will be explained as an example.

명령어 저장 모듈(505)은 "가A나다라마바사아자차카타파하" 와 같은 형태의 모든 데이터를 가지고 처리하는 것이 아니라, 이를 1-"A"-13 와 같은 간략한 명령어 형태로 저장할 수 있다. 예를 들어, 1-"A"-13 와 같은 명령어는, "A" 앞에 하나의 데이터(예: '가')가 존재하며, "A" 뒤에 13개의 데이터(예: '나다라마바사아자차카타파하')가 존재함을 나타낼 수 있다. The command storage module 505 may store all data in the form of a simple command such as 1-"A"-13 instead of processing all data in the form of "GaAnadaramabasaajachakatapaha". For example, in a command such as 1-"A"-13, there is one data (e.g., 'Ga') before "A", and 13 data (e.g., 'Nadaramavasajacha') after "A". katapaha') can indicate the existence.

도 11을 참조하면, 명령어 저장 모듈(505) 내의 C1 명령어(예: 1-"A"-2) 는, "A" 앞에 하나의 데이터(예: '가')가 존재하며, "A" 뒤에 2개의 데이터(예: '나다')가 존재함을 나타내는 것으로, 기본 형상 "가나다"에 C1 명령어를 반영할 경우 "가A나다"와 같은 기본 형상이 도출될 수 있다. C2 명령어(예: 2-"B"-2) 는, "B" 앞에 2의 데이터(예: '가A')가 존재하며, "B" 뒤에 2개의 데이터(예: '나다')가 존재함을 나타내는 것으로, C1 명령어에 C2 명령어를 반영할 경우 "가AB나다"와 같은 기본 형상이 도출될 수 있다. C3 명령어(예: D"1"4)는, 첫번째(예: '가')는 삭제(delete)하며, 그 이후에 4개의 데이터(예: 'AB나다')가 존재함을 나타내는 것으로, C2 명령어에 C3 명령어를 반영할 경우 "AB나다"와 같은 기본 형상이 도출될 수 있다. C4 명령어(예: 4-"CD") 는, "CD" 앞에 4개의 데이터가 존재함을 나타내는 것으로, C3 명령어에 C4 명령어를 반영할 경우 "AB나다CD"와 같은 기본 형상이 도출될 수 있다.Referring to FIG. 11, in the C1 instruction (eg, 1-"A"-2) in the instruction storage module 505, one data (eg, 'A') exists before "A" and after "A" This indicates that there are two data (eg, 'Nada'), and when the C1 command is reflected in the basic shape "Nada", a basic shape such as "Nada" can be derived. In the C2 instruction (eg 2-"B"-2), 2 data (eg 'A') exists before "B", and 2 data (eg 'I am') exists after "B". Indicates that, when the C2 command is reflected in the C1 command, a basic shape such as “Ga AB Nada” can be derived. The C3 command (e.g. D"1"4) indicates that the first (e.g. 'a') is deleted, and thereafter 4 data (e.g. 'AB me') exist. When the C3 command is reflected in the command, a basic shape such as "AB" may be derived. The C4 command (eg 4-"CD") indicates that there are 4 data in front of "CD", and when the C4 command is reflected in the C3 command, a basic shape such as "AB NadaCD" can be derived. .

이와 같이 서버(405)에서 이용되는 간략한 명령어 형태는 명령어 저장 모듈(505) 내의 저장 공간을 효율적으로 활용하는데 이용될 수 있으며, 다른 편집 명령의 연산으로 인해 가중되는 것이 없기 때문에 빠른 처리가 가능할 수 있다. 따라서, 기본 형상에 명령어 저장 모듈(505)의 명령들을 순차적으로 연산함으로써 전자 장치(401)에 대해 새로운 형태 즉, 신규 형상 도출이 가능한 명령을 저장할 수 있다.In this way, the simple command form used in the server 405 can be used to efficiently utilize the storage space in the command storage module 505, and fast processing is possible because there is no weight due to the operation of other editing commands. . Accordingly, by sequentially calculating the commands of the command storage module 505 in the basic shape, it is possible to store a command capable of deriving a new shape, that is, a new shape for the electronic device 401 .

도 12는 다양한 실시 예에 따른 각 전자 장치에서의 공동 편집 시의 화면 예시도이다. 12 is an exemplary view of a screen during joint editing in each electronic device according to various embodiments.

도 12에서는, 서로 다른 종류의 전자 장치(1210, 1220, 1230)에서는 현재 공동으로 작업 중인 편집 화면을 예시하고 있다. 도 12에 도시된 바와 같이 각 전자 장치(1210, 1220, 1230) 상에는 공통적인 편집 화면이 제공될 수 있다. 예를 들어, 공동 편집 화면이란 동일한 전자 문서를 편집하는 화면을 의미하는 것으로, 각 전자 장치(1210, 1220, 1230) 상에 표시되는 공동 편집 화면 자체는 디스플레이의 크기 또는 설정 방식에 따라 표시되는 것이 다를 수 있다. In FIG. 12 , edit screens currently being jointly worked on are illustrated in different types of electronic devices 1210 , 1220 , and 1230 . As shown in FIG. 12 , a common editing screen may be provided on each of the electronic devices 1210 , 1220 , and 1230 . For example, the co-editing screen refers to a screen for editing the same electronic document, and the co-editing screen itself displayed on each of the electronic devices 1210, 1220, and 1230 is not displayed according to the size or setting method of the display. can be different.

공동 편집에 참여하는 복수의 전자 장치(1210, 1220, 1230) 중 적어도 하나의 전자 장치의 사용자는 입력 수단(예: 키보드, 스타일러스 펜)을 이용하여 공동 편집 화면 상에 표시되는 컨텐트에 대한 편집할 수 있다. 예를 들어, 텍스트, 이미지 및 동영상을 포함한 다양한 종류의 컨텐트에 대한 편집을 통해 사용자는 내용을 수정하거나 삽입되어 있는 텍스트, 이미지, 표와 같은 객체를 삭제하거나 이를 추가할 수 있다. 이러한 편집에 대응하는 편집 명령은 서버(405)를 통해 다른 모든 전자 장치로 전송될 수 있으며, 상기 편집 명령을 수신한 각각의 전자 장치는 상기 편집 명령에 대응하는 변경 사항을 공동 편집 화면 상에 반영함으로써 공동 편집에 참여 중인 복수의 전자 장치 상에 표시되고 있는 컨텐트가 항상 동일한 편집 상태로 유지될 수 있다. 특히, 일시적으로 통신이 지연되거나 연결이 끊긴 전자 장치가 발생할지라도 상기 연결이 끊긴 전자 장치를 대신하여 서버(405)에서 연결 끊김 동안에 발생하는 다른 사용자에 의한 편집 명령에 의한 변경 사항들을 주기적으로 또는 편집 명령 발생 시마다 미리 연산하여 상기 전자 장치와 연관시켜 하나의 결과물로 저장 및 관리할 수 있다. 이후, 상기 전자 장치와의 재연결 시 서버가 상기 전자 장치에 대해 개별적으로 저장해 놓았던 결과물을 제공함으로써, 상기 전자 장치에서는 새롭게 생성된 결과물만 한 번에 연산하여 출력하면 되므로, 상기 전자 장치에서의 과도한 데이터 처리로 인한 부하를 감소시킬 수 있다. 이와 같이 서버(405)를 통해서는 복수의 전자 장치(1210, 1220, 1230)의 사용자들이 동일한 컨텐트에 대해 실시간으로 동시 편집이 가능할 수 있다. A user of at least one electronic device among the plurality of electronic devices 1210, 1220, and 1230 participating in co-editing can edit content displayed on the co-editing screen by using an input means (eg, a keyboard or a stylus pen). can For example, through editing of various types of content including text, image, and video, the user can modify the content or delete or add objects such as inserted text, image, and table. An editing command corresponding to such editing may be transmitted to all other electronic devices through the server 405, and each electronic device receiving the editing command reflects a change corresponding to the editing command on a joint editing screen. By doing so, content being displayed on a plurality of electronic devices participating in joint editing can always be maintained in the same edited state. In particular, even if communication is temporarily delayed or a disconnected electronic device occurs, the server 405 periodically or edits changes caused by an edit command by another user during disconnection on behalf of the disconnected electronic device. Whenever a command is generated, it may be calculated in advance and associated with the electronic device to be stored and managed as one result. Thereafter, when reconnecting with the electronic device, the server provides the individually stored result for the electronic device, so that the electronic device only needs to calculate and output the newly generated result at once. The load due to data processing can be reduced. As such, through the server 405, users of a plurality of electronic devices 1210, 1220, and 1230 may simultaneously edit the same content in real time.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, like reference numbers may be used for like or related elements. The singular form of a noun corresponding to an item may include one item or a plurality of items, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A Each of the phrases such as "at least one of , B, or C" may include any one of the items listed together in that phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited. A (e.g., first) component is said to be "coupled" or "connected" to another (e.g., second) component, with or without the terms "functionally" or "communicatively." When mentioned, it means that the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). It may be implemented as software (eg, the program 140) including them. For example, a processor (eg, the processor 120 ) of a device (eg, the electronic device 101 ) may call at least one command among one or more instructions stored from a storage medium and execute it. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' only means that the storage medium is a tangible device and does not contain a signal (e.g. electromagnetic wave), and this term refers to the case where data is stored semi-permanently in the storage medium. It does not discriminate when it is temporarily stored.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. A computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is. According to various embodiments, one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. . According to various embodiments, the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.

Claims (20)

서버에 있어서,
통신 모듈;
메모리; 및
적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는,
공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치를 식별하고,
상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별하고,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 메모리에 저장하고,
상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정된, 서버.
in the server,
communication module;
Memory; and
including at least one processor, wherein the at least one processor comprises:
Identifying at least one disconnected electronic device among a plurality of electronic devices connected for joint editing;
Identifying a first check point associated with a point in time at which the at least one electronic device is disconnected;
storing in the memory a new edit command for the at least one electronic device obtained by sequentially processing edit commands after the first checkpoint executed by connected electronic devices among the plurality of electronic devices;
The server configured to transmit the new edit command to the at least one electronic device through the communication module when the at least one electronic device is reconnected.
제1 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 신규 편집 명령을 전송한 후, 상기 메모리에 저장된 상기 적어도 하나의 전자 장치에 대한 상기 신규 편집 명령을 삭제하도록 설정된, 서버.
The method of claim 1, wherein the at least one processor,
and to delete the new edit command for the at least one electronic device stored in the memory after sending the new edit command.
제1 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트를 갱신하고, 상기 적어도 하나의 전자 장치에 대해 상기 갱신에 대응하는 최신 체크 포인트를 저장하도록 설정된, 서버.
The method of claim 1, wherein the at least one processor,
A second check point is updated whenever edit commands after the check point executed by connected electronic devices among the plurality of electronic devices are sequentially obtained, and the latest check point corresponding to the update is updated for the at least one electronic device. A server, set up to store checkpoints.
제3 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 신규 편집 명령과 상기 최신 체크 포인트를 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정된, 서버.
The method of claim 3, wherein the at least one processor,
The server configured to transmit the new edit command and the latest check point to the at least one electronic device through the communication module.
제1 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 적어도 하나의 전자 장치의 재접속 시 상기 적어도 하나의 전자 장치로부터 상기 적어도 하나의 전자 장치에서의 현재 체크 포인트를 획득하고,
상기 획득된 현재 체크 포인트 및 상기 제1 체크 포인트에 기반하여, 상기 신규 편집 명령을 상기 통신 모듈을 통해 상기 적어도 하나의 전자 장치로 전송하도록 설정된, 서버.
The method of claim 1, wherein the at least one processor,
obtaining a current check point in the at least one electronic device from the at least one electronic device when the at least one electronic device is reconnected;
The server configured to transmit the new edit command to the at least one electronic device through the communication module based on the obtained current check point and the first check point.
제1 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다, 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 상기 수신되는 편집 명령을 상기 통신 모듈을 통해 전송하도록 설정된, 서버.
The method of claim 1, wherein the at least one processor,
Whenever an edit command is received by connected electronic devices among the plurality of electronic devices, the received edit command is transmitted to the remaining electronic devices except for the at least one disconnected electronic device through the communication module. set to do so, the server.
제6 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다 제2 체크 포인트를 갱신하고,
상기 갱신된 제2 체크 포인트와 함께 상기 수신된 편집 명령을 상기 통신 모듈을 통해 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 전송하도록 설정된, 서버.
The method of claim 6, wherein the at least one processor,
Renewing a second check point whenever an edit command is received by connected electronic devices among the plurality of electronic devices;
The server configured to transmit the received edit command together with the updated second check point to remaining electronic devices except for the at least one disconnected electronic device through the communication module.
제6 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 접속된 전자 장치들에 의해 편집 명령 수신 시 상기 편집 명령을 전송한 각 전자 장치에서의 현재의 체크 포인트를 상기 편집 명령과 함께 획득하도록 설정된, 서버.
The method of claim 6, wherein the at least one processor,
The server configured to acquire a current check point in each electronic device that has transmitted the edit command together with the edit command when an edit command is received by the connected electronic devices.
제6 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 접속된 전자 장치들에 의해 편집 명령이 수신될 때 수신되는 편집 명령이 서로 충돌하는지를 식별하고,
상기 충돌 발생 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택하고,
상기 순차적인 선택에 따라 상기 제2 체크 포인트를 갱신하여 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 공지하도록 설정된, 서버.
The method of claim 6, wherein the at least one processor,
Identifying whether received editing commands collide with each other when editing commands are received by the connected electronic devices;
When the conflict occurs, sequentially select editing commands in which the conflict occurs,
The server configured to update the second check point according to the sequential selection and notify the rest of the electronic devices except for the at least one disconnected electronic device.
제1 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 접속이 끊긴 적어도 하나의 전자 장치의 식별에 대응하여, 상기 적어도 하나의 전자 장치의 메타 데이터를 임시로 저장하도록 설정된, 서버.
The method of claim 1, wherein the at least one processor,
The server configured to temporarily store meta data of the at least one electronic device in response to identification of the at least one electronic device to which the connection is lost.
제10 항에 있어서, 상기 적어도 하나의 프로세서는,
상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 적어도 하나의 전자 장치의 메타 데이터에 대응시켜 상기 메모리에 저장하도록 설정된, 서버.
11. The method of claim 10, wherein the at least one processor,
The server configured to store a new editing command for the at least one electronic device in the memory in correspondence with meta data of the at least one electronic device.
서버에서 공동 편집 서비스를 제공하기 위한 방법에 있어서,
공동 편집을 위해 접속된 복수의 전자 장치들 중 접속이 끊긴 적어도 하나의 전자 장치를 식별하는 동작;
상기 적어도 하나의 전자 장치의 접속이 끊긴 시점과 연관된 제1 체크 포인트를 식별하는 동작;
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 제1 체크 포인트 이후의 편집 명령들을 순차적으로 처리함으로써 획득한 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 저장하는 동작; 및
상기 적어도 하나의 전자 장치의 재접속 시 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
A method for providing a joint editing service in a server,
identifying at least one disconnected electronic device among a plurality of electronic devices connected for joint editing;
identifying a first check point associated with a point in time at which the at least one electronic device is disconnected;
storing a new edit command for the at least one electronic device obtained by sequentially processing edit commands after the first check point executed by connected electronic devices among the plurality of electronic devices; and
and transmitting the new editing command to the at least one electronic device when the at least one electronic device is reconnected.
제12항에 있어서,
상기 신규 편집 명령을 전송한 후, 상기 저장된 상기 적어도 하나의 전자 장치에 대한 상기 신규 편집 명령을 삭제하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
According to claim 12,
After transmitting the new editing command, the method further comprising deleting the stored new editing command for the at least one electronic device.
제12항에 있어서,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 수행된 상기 체크 포인트 이후의 편집 명령들을 순차적으로 획득 시마다 제2 체크 포인트를 갱신하는 동작; 및
상기 적어도 하나의 전자 장치에 대해 상기 갱신에 대응하는 최신 체크 포인트를 저장하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
According to claim 12,
updating a second check point whenever edit commands after the check point are sequentially acquired by connected electronic devices among the plurality of electronic devices; and
The method for providing a joint editing service, further comprising storing a latest check point corresponding to the update in the at least one electronic device.
제14항에 있어서, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작은,
상기 신규 편집 명령과 상기 최신 체크 포인트를 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
The method of claim 14, wherein transmitting the new edit command to the at least one electronic device comprises:
and transmitting the new editing command and the latest check point to the at least one electronic device.
제12항에 있어서, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작은,
상기 적어도 하나의 전자 장치의 재접속 시 상기 적어도 하나의 전자 장치로부터 상기 적어도 하나의 전자 장치에서의 현재 체크 포인트를 획득하는 동작; 및
상기 획득된 현재 체크 포인트 및 상기 제1 체크 포인트에 기반하여, 상기 신규 편집 명령을 상기 적어도 하나의 전자 장치로 전송하는 동작을 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
The method of claim 12, wherein transmitting the new edit command to the at least one electronic device comprises:
obtaining a current check point of the at least one electronic device from the at least one electronic device when the at least one electronic device is reconnected; and
and transmitting the new editing command to the at least one electronic device based on the obtained current check point and the first check point.
제12항에 있어서,
상기 복수의 전자 장치들 중 접속된 전자 장치들에 의해 편집 명령이 수신될 때마다, 제2 체크 포인트를 갱신하는 동작; 및
상기 갱신된 제2 체크 포인트와 함께 상기 수신된 편집 명령을 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 전송하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
According to claim 12,
updating a second check point whenever an editing command is received by connected electronic devices among the plurality of electronic devices; and
The method of providing a joint editing service, further comprising transmitting the received edit command together with the updated second check point to remaining electronic devices except for the at least one disconnected electronic device.
제17항에 있어서,
상기 접속된 전자 장치들에 의해 편집 명령 수신 시 상기 편집 명령을 전송한 각 전자 장치에서의 현재의 체크 포인트를 상기 편집 명령과 함께 획득하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
According to claim 17,
The method of providing a joint editing service, further comprising acquiring a current checkpoint in each electronic device that has transmitted the edit command together with the edit command when an edit command is received by the connected electronic devices.
제17항에 있어서,
상기 접속된 전자 장치들에 의해 편집 명령이 수신될 때 수신되는 편집 명령이 서로 충돌하는지를 식별하는 동작;
상기 충돌 발생 시, 상기 충돌이 발생한 편집 명령들을 순차적으로 선택하는 동작; 및
상기 순차적인 선택에 따라 상기 제2 체크 포인트를 갱신하여 상기 접속이 끊긴 적어도 하나의 전자 장치를 제외한 나머지 전자 장치들로 공지하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
According to claim 17,
identifying whether received edit commands collide with each other when edit commands are received by the connected electronic devices;
when the conflict occurs, sequentially selecting edit commands in which the conflict occurs; and
The method of providing a joint editing service, further comprising an operation of updating the second check point according to the sequential selection and notifying the rest of the electronic devices except for the at least one disconnected electronic device.
제12항에 있어서, 상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 저장하는 동작은,
상기 접속이 끊긴 적어도 하나의 전자 장치의 식별에 대응하여, 상기 적어도 하나의 전자 장치의 메타 데이터를 임시로 저장하는 동작; 및
상기 적어도 하나의 전자 장치에 대한 신규 편집 명령을 상기 적어도 하나의 전자 장치의 메타 데이터에 대응시켜 저장하는 동작을 더 포함하는, 공동 편집 서비스를 제공하기 위한 방법.
13. The method of claim 12, wherein storing a new editing command for the at least one electronic device comprises:
temporarily storing metadata of the at least one electronic device in response to identification of the at least one electronic device from which the connection is lost; and
The method of providing a joint editing service, further comprising storing a new editing command for the at least one electronic device in correspondence with meta data of the at least one electronic device.
KR1020210161876A 2021-10-12 2021-11-23 Method for providing collaborative editing service and server therefor KR20230052163A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/KR2022/015206 WO2023063666A1 (en) 2021-10-12 2022-10-07 Method for providing collaborative editing service and server therefor
EP22881294.7A EP4354374A1 (en) 2021-10-12 2022-10-07 Method for providing collaborative editing service and server therefor
US17/963,299 US20230116016A1 (en) 2021-10-12 2022-10-11 Method for providing collaborative editing service and server therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20210135152 2021-10-12
KR1020210135152 2021-10-12

Publications (1)

Publication Number Publication Date
KR20230052163A true KR20230052163A (en) 2023-04-19

Family

ID=86142344

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210161876A KR20230052163A (en) 2021-10-12 2021-11-23 Method for providing collaborative editing service and server therefor

Country Status (1)

Country Link
KR (1) KR20230052163A (en)

Similar Documents

Publication Publication Date Title
KR20220017193A (en) Electronic device and method for providing application scrren of diplay of external device thereof
KR20230052163A (en) Method for providing collaborative editing service and server therefor
EP4354374A1 (en) Method for providing collaborative editing service and server therefor
KR20220016727A (en) Method for capturing images for multi windows and electronic device therefor
US20230007088A1 (en) Network connection method and electronic device supporting same
WO2023063666A1 (en) Method for providing collaborative editing service and server therefor
KR20230037304A (en) Electronic device for providing seamless user experience and operating method thereof
KR20230046172A (en) Method and electronic device for utilizing data of external electronic device
US20230188782A1 (en) Input-based streaming control method and electronic device therefor
US20240118857A1 (en) Electronic device, and method for reconstructing screen using external device
KR20230119549A (en) Method and apparatus for editing video in electronic device
KR20240020138A (en) Electronic device and method for managinh shooting date and time of image file in the electronic device
KR20230022772A (en) Electronic device for changing screen based on swipe input and method of opearating the same
KR20230014479A (en) Method of displaying integrated screen and electronic device supporting the same
KR20230011795A (en) Electronic device displaying widget and method for controlling the same
KR20240066940A (en) Method for recovery of damaged metadata and electronic device supporting the same
KR20230069855A (en) Method and electronic device for displaying recommendation information
KR20230011780A (en) Method and electronic device for generating content based on capacity of external device
KR20230067443A (en) An electronic device and method for automatically generating edited video
KR20240052570A (en) Electronic device and method for co-editing in multiple device environment
KR20220130917A (en) Electronic device providing service based on blockchain and operating method thereof
KR20240055586A (en) Electronic device and method for synchronizing display
KR20240076332A (en) Electronic device for controlling function of process corresponding to one or more messenger datasets and method thereof
KR20220027586A (en) Method for operating instant message and electronic device supporting the same
KR20240077358A (en) Electronic device for processing muti user editing instructions and a method thereof