KR20230119564A - Electronic device for time synchronization with external electronic device and operating method thereof - Google Patents

Electronic device for time synchronization with external electronic device and operating method thereof Download PDF

Info

Publication number
KR20230119564A
KR20230119564A KR1020220018419A KR20220018419A KR20230119564A KR 20230119564 A KR20230119564 A KR 20230119564A KR 1020220018419 A KR1020220018419 A KR 1020220018419A KR 20220018419 A KR20220018419 A KR 20220018419A KR 20230119564 A KR20230119564 A KR 20230119564A
Authority
KR
South Korea
Prior art keywords
electronic device
communication circuit
processor
time information
information managed
Prior art date
Application number
KR1020220018419A
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 삼성전자주식회사
Publication of KR20230119564A publication Critical patent/KR20230119564A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Abstract

본 발명의 다양한 실시예는 전자 장치에서 외부 전자 장치와의 시간 동기화를 위한 장치 및 방법에 관한 것이다. 다양한 실시예에 따르면, 전자 장치는, 무선랜 통신을 지원하는 통신 회로 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함하며, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 외부 전자 장치와 통신을 연결하고, 상기 통신 회로에서 관리하는 시간 정보를 획득하고, 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하고, 상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송할 수 있다. 다른 실시예들도 가능할 수 있다.Various embodiments of the present disclosure relate to an apparatus and method for time synchronization between an electronic device and an external electronic device. According to various embodiments, an electronic device includes a communication circuit supporting wireless LAN communication and at least one processor operatively connected to the communication circuit, wherein the at least one processor operates an external electronic device through the communication circuit. Connecting communication with a device, acquiring time information managed by the communication circuit, checking time information managed by the processor corresponding to the time information managed by the communication circuit, and managing time information and A frame including time information managed by the processor may be transmitted to the external electronic device through the communication circuit. Other embodiments may also be possible.

Figure P1020220018419
Figure P1020220018419

Description

외부 전자 장치와의 시간 동기화를 위한 전자 장치 및 그의 동작 방법{ELECTRONIC DEVICE FOR TIME SYNCHRONIZATION WITH EXTERNAL ELECTRONIC DEVICE AND OPERATING METHOD THEREOF}Electronic device for time synchronization with an external electronic device and its operation method

본 발명의 다양한 실시예는 외부 전자 장치와의 시간 동기화를 위한 전자 장치 및 그의 동작 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device for time synchronization with an external electronic device and an operating method thereof.

전자 장치는 정보통신 기술 및 반도체 기술의 발전으로 다양한 기능을 제공할 수 있다. 예를 들어, 다양한 기능은 통화 기능, 메시지 기능, 방송 기능, 무선 인터넷 기능, 카메라 기능, 전자 결제 기능 또는 콘텐트 재생 기능 중 적어도 하나를 포함할 수 있다.BACKGROUND Electronic devices may provide various functions due to the development of information communication technology and semiconductor technology. For example, the various functions may include at least one of a call function, a message function, a broadcasting function, a wireless Internet function, a camera function, an electronic payment function, or a content playback function.

전자 장치는 사용자의 편의를 높이기 위해 적어도 하나의 외부 전자 장치와 연동할 수 있다. 예를 들어, 전자 장치는 적어도 하나의 오디오 출력 장치(예: 이어폰)를 이용하여 오디오 데이터(예: 음성 및/또는 음악)를 출력할 수 있다. The electronic device may interwork with at least one external electronic device to enhance user convenience. For example, the electronic device may output audio data (eg, voice and/or music) using at least one audio output device (eg, earphone).

전자 장치는 무선으로 연결된 적어도 하나의 외부 전자 장치와 연동할 수 있다. 예를 들어, 전자 장치는 안경 형태의 웨어러블 장치(예: AR(augmented reality) glass)로부터 획득한 사용자와 관련된 자세(pose) 정보에 기반하여 이미지를 생성할 수 있다. 전자 장치는 이미지에 시간 정보(예: time stamp)를 추가하여 웨어러블 장치로 전송할 수 있다. 웨어러블 장치는 전자 장치로부터 수신한 이미지에 포함된 시간 정보 및 웨어러블 장치의 시간 정보에 기반하여 보정된 이미지를 출력할 수 있다.The electronic device may interwork with at least one external electronic device connected wirelessly. For example, the electronic device may generate an image based on pose information related to a user obtained from a wearable device in the form of glasses (eg, augmented reality (AR) glass). The electronic device may add time information (eg, a time stamp) to the image and transmit it to the wearable device. The wearable device may output a corrected image based on the time information included in the image received from the electronic device and the time information of the wearable device.

전자 장치 및/또는 외부 전자 장치는 시간 정보가 동기화되지 않은 경우, 시간 오차로 인해 전자 장치 및 외부 전자 장치의 연동에 기반하여 실행되는 기능의 품질이 저하될 수 있다. 예를 들어, 웨어러블 장치는 시간 정보가 동기화되지 않은 전자 장치와의 시간 오차로 인해 잘못된 시간으로 보정된 이미지를 출력함으로써, 웨어러블 장치의 사용자가 체감하는 지연(latency)이 증가될 수 있다. If the time information of the electronic device and/or the external electronic device is not synchronized, the quality of a function executed based on interworking between the electronic device and the external electronic device may deteriorate due to a time error. For example, the wearable device outputs an image corrected at an incorrect time due to a time error with an electronic device whose time information is not synchronized, so that latency experienced by a user of the wearable device may increase.

본 발명의 다양한 실시예는 전자 장치에서 외부 전자 장치와 시간 동기화를 위한 장치 및 방법에 대해 개시한다.Various embodiments of the present disclosure disclose a device and method for time synchronization with an external electronic device in an electronic device.

다양한 실시예에 따르면, 전자 장치는, 무선랜 통신을 지원하는 통신 회로 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함하며, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 외부 전자 장치와 통신을 연결하고, 상기 통신 회로에서 관리하는 시간 정보를 획득하고, 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하고, 상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송할 수 있다.According to various embodiments, an electronic device includes a communication circuit supporting wireless LAN communication and at least one processor operatively connected to the communication circuit, wherein the at least one processor operates an external electronic device through the communication circuit. Connecting communication with a device, acquiring time information managed by the communication circuit, checking time information managed by the processor corresponding to the time information managed by the communication circuit, and managing time information and A frame including time information managed by the processor may be transmitted to the external electronic device through the communication circuit.

다양한 실시예에 따르면, 통신 회로 및 프로세서를 포함하는 전자 장치의 동작 방법은, 무선랜 통신을 통해 외부 전자 장치와 통신을 연결하는 동작과 상기 프로세서에서 상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작과 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하는 동작 및 상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 외부 전자 장치로 전송하는 동작을 포함할 수 있다.According to various embodiments, a method of operating an electronic device including a communication circuit and a processor includes an operation of connecting communication with an external electronic device through wireless LAN communication and an operation of obtaining time information managed by the communication circuit by the processor. and checking the time information managed by the processor corresponding to the time information managed by the communication circuit and transmitting a frame including the time information managed by the communication circuit and the time information managed by the processor to the external electronic device. It may include an operation to transmit.

다양한 실시예에 따르면, 외부 전자 장치는, 무선랜 통신을 지원하는 통신 회로 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함하며, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 전자 장치와 통신을 연결하고, 상기 통신 회로를 통해 상기 전자 장치로부터 수신한 프레임에서 상기 전자 장치의 통신 회로에서 관리하는 시간 정보 및 상기 전자 장치의 프로세서에서 관리하는 시간 정보를 확인하고, 상기 외부 전자 장치의 통신 회로에서 관리하는 시간 정보를 획득하고, 상기 전자 장치의 통신 회로에서 관리하는 시간 정보, 상기 전자 장치의 프로세서에서 관리하는 시간 정보 및 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보에 기반하여 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 보정할 수 있다.According to various embodiments, an external electronic device includes a communication circuit supporting wireless LAN communication and at least one processor operatively connected to the communication circuit, wherein the at least one processor includes electronic communication through the communication circuit. Connect communication with the device, check time information managed by the communication circuit of the electronic device and time information managed by the processor of the electronic device in a frame received from the electronic device through the communication circuit, and check the external electronic device Obtains time information managed by a communication circuit of the electronic device, based on the time information managed by the communication circuit of the electronic device, the time information managed by the processor of the electronic device, and the time information managed by the communication circuit of the external electronic device. Thus, time information managed by the processor of the external electronic device may be corrected.

본 발명의 다양한 실시예에 따르면, 전자 장치는 외부 전자 장치와 통신을 수행하는 경우, 전자 장치의 통신 회로에서 관리하는 시간 정보(예: TSF(time synchronization function)) 및 전자 장치의 프로세서에서 관리하는 시간 정보(예: UTC(universal time coordinated 또는 coordinated universal time)에 기반하여 외부 전자 장치와 시간 동기화를 수행함으로써, 외부 전자 장치와의 시간 오차를 줄일 수 있다.According to various embodiments of the present disclosure, when an electronic device communicates with an external electronic device, time information (eg, time synchronization function (TSF)) managed by a communication circuit of the electronic device and information managed by a processor of the electronic device A time error with an external electronic device may be reduced by performing time synchronization with an external electronic device based on time information (eg, universal time coordinated or coordinated universal time (UTC)).

다양한 실시예에 따르면, 전자 장치에서 외부 전자 장치와 통신을 수행하는 경우, 전자 장치의 프로세서에서 관리하는 시간 정보(예: UTC)에 기반하여 보정된 전자 장치의 통신 회로에서 관리하는 시간 정보(예: TSF)를 외부 전자 장치로 전송하여 외부 전자 장치와의 시간 동기화를 수행함으로써, 외부 전자 장치와의 시간 오차를 줄일 수 있다.According to various embodiments, when an electronic device communicates with an external electronic device, time information (eg, UTC) managed by a communication circuit of the electronic device is corrected based on time information (eg, UTC) managed by a processor of the electronic device. : TSF) to the external electronic device to perform time synchronization with the external electronic device, thereby reducing a time error with the external electronic device.

도 1은 다양한 실시예에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치 및 외부 전자 장치의 통신을 위한 무선통신 시스템의 일예이다.
도 3은 다양한 실시예에 따른 전자 장치에서 전자 장치의 시간 정보를 외부 전자 장치로 전송하기 위한 흐름도이다.
도 4는 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와의 통신 연결을 위한 일예이다.
도 5는 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 흐름도의 일예이다.
도 6은 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 일예이다.
도 7은 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 흐름도의 다른 일예이다.
도 8은 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와 시간을 동기화하기 위한 일예이다.
도 9는 다양한 실시예에 따른 전자 장치에서 통신 회로의 시간 정보를 갱신하기 위한 흐름도이다.
도 10은 다양한 실시예에 따른 외부 전자 장치에서 전자 장치와 시간을 동기화하기 위한 흐름도의 일예이다.
도 11은 다양한 실시예에 따른 외부 전자 장치에서 외부 전자 장치의 시간 정보를 갱신하기 위한 흐름도이다.
도 12는 다양한 실시예에 따른 외부 전자 장치에서 통신 회로의 시간 정보를 획득하기 위한 흐름도이다.
도 13은 다양한 실시예에 따른 전자 장치에서 통신 회로의 시간 정보를 외부 전자 장치로 전송하기 위한 흐름도이다.
도 14는 다양한 실시예에 따른 외부 전자 장치에서 전자 장치와 시간을 동기화하기 위한 흐름도의 다른 일예이다.
도 15는 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와 시간을 동기화하기 위한 다른 일예이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2 is an example of a wireless communication system for communication between an electronic device and an external electronic device according to various embodiments.
3 is a flowchart for transmitting time information of an electronic device to an external electronic device in an electronic device according to various embodiments of the present disclosure;
4 is an example of a communication connection between an electronic device and an external electronic device according to various embodiments.
5 is an example of a flowchart for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments.
6 is an example for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments.
7 is another example of a flowchart for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments.
8 is an example of synchronizing time with an external electronic device in an electronic device according to various embodiments.
9 is a flowchart for updating time information of a communication circuit in an electronic device according to various embodiments.
10 is an example of a flowchart for synchronizing time with an external electronic device in an external electronic device according to various embodiments.
11 is a flowchart for updating time information of an external electronic device in an external electronic device according to various embodiments.
12 is a flowchart for obtaining time information of a communication circuit in an external electronic device according to various embodiments.
13 is a flowchart for transmitting time information of a communication circuit from an electronic device to an external electronic device according to various embodiments of the present disclosure.
14 is another example of a flowchart for synchronizing time with an external electronic device in an external electronic device according to various embodiments.
15 is another example of synchronizing time with an external electronic device in an electronic device according to various embodiments.

이하 다양한 실시예들이 첨부된 도면을 참고하여 상세히 설명된다.Hereinafter, various embodiments will be described in detail with reference to the accompanying drawings.

도 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 an 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, 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 includes 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, an image signal processor or a communication processor) may be implemented as part of other functionally related components (eg, the camera module 180 or the 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, but is not limited to the above 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 an embodiment, the display module 160 may include a touch sensor configured to detect a touch or a pressure sensor configured to measure the strength of a force generated by a touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electrical signal or vice versa. According to an 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 infrared (IR) 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)(예: 블루투스, Wi-Fi(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 may be 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 : 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 (Wi-Fi) direct, or infrared data association (IrDA)) or a second network 199 (eg : It can communicate with the external electronic device 104 through a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a long-distance communication network such as a computer network (eg, LAN or 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 이하)를 지원할 수 있다. 다양한 실시예에 따르면, 가입자 식별 모듈(196)은 복수의 가입자 식별 모듈을 포함할 수 있다. 예를 들어, 복수의 가입자 식별 모듈은 서로 다른 가입자 정보를 저장할 수 있다.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 throughput, 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 an embodiment, the wireless communication module 192 may be configured to achieve peak data rate (eg, 20 Gbps or more) for eMBB realization, loss coverage (eg, 164 dB or less) for mMTC realization, or U-plane latency (eg, URLLC realization). Example: downlink (DL) and uplink (UL) each of 0.5 ms or less, or round trip 1 ms or less) may be supported. According to various embodiments, the subscriber identification module 196 may include a plurality of subscriber identification modules. For example, a plurality of subscriber identification modules may store different subscriber information.

안테나 모듈(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 an 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 a plurality of antennas by the communication module 190, for example. It can be. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through at least one selected 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 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 예를 들어, 복수의 안테나들은 패치(patch) 어레이 안테나 및/또는 다이폴(dipole) 어레이 안테나를 포함할 수 있다.According to various embodiments, the antenna module 197 may form a high-frequency (eg, mmWave) antenna module. According to one embodiment, a high frequency (eg mmWave) antenna module is disposed on or adjacent to a printed circuit board, a first side (eg bottom side) of the printed circuit board and supports a designated high frequency band (eg mmWave band). an RFIC that can transmit or receive signals in a designated high frequency band (eg, an array antenna) disposed on or adjacent to a second surface (eg, a top surface or a side surface) of a printed circuit board and capable of transmitting or receiving signals in a designated high-frequency band; can include For example, the plurality of antennas may include a patch array antenna and/or a dipole array antenna.

구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 (eg, : 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.

본 문서에 개시된 다양한 실시예에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.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 interchangeably interchangeable with terms such as, for example, logic, logical blocks, components, or circuits. can be used 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 components described above may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. . 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, operations performed by modules, programs, or other components are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.

이하 설명에서 전자 장치(101)는 외부 전자 장치와 무선랜에 기반하여 통신을 수행할 수 있다. 하지만, 전자 장치(101)와 외부 전자 장치의 통신은 무선랜에 한정되지 않으며, 송신 및/또는 수신되는 데이터에 시간 정보가 추가되는 다른 통신 방식에 기반하여 수행될 수도 있다. In the following description, the electronic device 101 may perform communication with an external electronic device based on a wireless LAN. However, communication between the electronic device 101 and an external electronic device is not limited to a wireless LAN, and may be performed based on another communication method in which time information is added to transmitted and/or received data.

도 2는 다양한 실시예에 따른 전자 장치 및 외부 전자 장치의 통신을 위한 무선통신 시스템의 일예이다. 2 is an example of a wireless communication system for communication between an electronic device and an external electronic device according to various embodiments.

도 2를 참조하는 다양한 실시예에 따르면, 전자 장치(101)는 무선랜에 기반하여 외부 전자 장치(210)(예: 도 1의 전자 장치(102))와 통신을 수행할 수 있다. 일예로, 외부 전자 장치(210)는 전자 장치(101)와 무선랜에 기반한 통신을 수행하는 장치로, 웨어러블 장치(예: AR glass))를 포함할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 외부 전자 장치(210)와의 무선랜에 기반한 통신을 위해 소프트 AP(soft AP: software enabled access point)와 관련된 인터페이스를 사용할 수 있다. 외부 전자 장치(210)는 전자 장치(101)와의 무선랜에 기반한 통신을 위해 스테이션(STA: station)과 관련된 인터페이스를 사용할 수 있다. 일 실시예에 따르면, 전자 장치(101) 및 외부 전자 장치(210)는 P2P(peer to peer) 인터페이스를 사용하여 무선랜에 기반한 직접 통신을 수행할 수 있다. 예를 들어, 전자 장치(101)는 외부 전자 장치(210)와의 직접 통신을 위한 P2P GO(group owner) 모드로 동작할 수 있다. 외부 전자 장치(210)는 전자 장치(101)와의 직접 통신을 위해 P2P GC(group client) 모드로 동작할 수 있다. According to various embodiments referring to FIG. 2 , the electronic device 101 may communicate with an external electronic device 210 (eg, the electronic device 102 of FIG. 1 ) based on a wireless LAN. For example, the external electronic device 210 is a device that performs wireless LAN-based communication with the electronic device 101 and may include a wearable device (eg, AR glass). According to an embodiment, the electronic device 101 may use an interface related to a software enabled access point (soft AP) for wireless LAN-based communication with the external electronic device 210 . The external electronic device 210 may use an interface related to a station (STA) for wireless LAN-based communication with the electronic device 101 . According to an embodiment, the electronic device 101 and the external electronic device 210 may perform direct communication based on a wireless LAN using a peer to peer (P2P) interface. For example, the electronic device 101 may operate in a P2P group owner (GO) mode for direct communication with the external electronic device 210 . The external electronic device 210 may operate in a P2P group client (GC) mode for direct communication with the electronic device 101 .

다양한 실시예에 따르면, 전자 장치(101)는 외부 전자 장치(210)와의 통신 연결에 기반하여 외부 전자 장치(210)와 시간 동기화를 수행할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 외부 전자 장치(210)와의 통신 연결에 기반하여 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송할 수 있다. 외부 전자 장치(210)는 전자 장치(101)의 시간 정보에 기반하여 전자 장치(101)와의 시간 동기화를 수행할 수 있다. 일예로, 시간 동기화는 전자 장치(101) 및 외부 전자 장치(210)에서 관리하는 시간을 실질적으로 일치시키기 위한 일련의 동작을 포함할 수 있다. 예를 들어, 전자 장치(101)의 시간 정보는 전자 장치(101)에 포함되는 프로세서(202)의 UTC(universal time coordinated 또는 coordinated universal time) 또는 통신 회로(204)의 TSF(time synchronization function) 중 적어도 하나와 관련된 정보를 포함할 수 있다. 일예로, 프로세서(202)의 UTC는 프로세서(202)(예: AP)에서 관리하는 시간 정보로, 지역 시간(local time)을 포함할 수 있다. 일예로, 통신 회로(204)의 TSF는 통신 회로(204)에서 관리하는 시간 정보를 포함할 수 있다. 일예로, TSF는 무선랜과 관련된 표준(예: IEEE 802.11)에 정의된 지정된 크기(예: 약 8 byte)의 타임 스탬프(time stamp)를 포함할 수 있다. 일예로, 프로세서(202)의 UTC 및 통신 회로(204)의 TSF는 서로 다른 클럭(clock)에 기반하여 동작할 수 있다.According to various embodiments, the electronic device 101 may perform time synchronization with the external electronic device 210 based on a communication connection with the external electronic device 210 . According to an embodiment, the electronic device 101 may transmit time information of the electronic device 101 to the external electronic device 210 based on a communication connection with the external electronic device 210 . The external electronic device 210 may perform time synchronization with the electronic device 101 based on time information of the electronic device 101 . For example, time synchronization may include a series of operations to substantially match the times managed by the electronic device 101 and the external electronic device 210 . For example, the time information of the electronic device 101 is either universal time coordinated or coordinated universal time (UTC) of the processor 202 included in the electronic device 101 or time synchronization function (TSF) of the communication circuit 204. It may contain information related to at least one. For example, UTC of the processor 202 is time information managed by the processor 202 (eg, AP) and may include local time. For example, the TSF of the communication circuit 204 may include time information managed by the communication circuit 204 . For example, the TSF may include a time stamp of a specified size (eg, about 8 bytes) defined in a wireless LAN-related standard (eg, IEEE 802.11). For example, the UTC of the processor 202 and the TSF of the communication circuit 204 may operate based on different clocks.

다양한 실시예에 따르면, 전자 장치(101)는 프로세서(202), 통신 회로(204) 및/또는 메모리(206)를 포함할 수 있다. 일 실시예에 따르면, 프로세서(202)는 도 1의 프로세서(120)와 실질적으로 동일하거나, 프로세서(120)에 포함될 수 있다. 예를 들어, 프로세서(202)는 도 1의 메인 프로세서(121)(예: 어플리케이션 프로세서)를 포함할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 도 1의 무선 통신 모듈(192)과 실질적으로 동일하거나, 무선 통신 모듈(192)에 포함될 수 있다. 일 실시예에 따르면, 메모리(206)는 도 1의 메모리(130)와 실질적으로 동일하거나, 메모리(130)에 포함될 수 있다. 일 실시예에 따르면, 프로세서(202)는 통신 회로(204) 및/또는 메모리(206)와 작동적으로(operatively), 기능적으로(functionally) 및/또는 전기적으로(electrically) 연결될 수 있다.According to various embodiments, the electronic device 101 may include a processor 202 , a communication circuit 204 , and/or a memory 206 . According to one embodiment, processor 202 may be substantially the same as processor 120 of FIG. 1 or included in processor 120 . For example, the processor 202 may include the main processor 121 (eg, an application processor) of FIG. 1 . According to one embodiment, the communication circuitry 204 may be substantially the same as the wireless communication module 192 of FIG. 1 or included in the wireless communication module 192 . According to one embodiment, memory 206 may be substantially the same as memory 130 of FIG. 1 or included in memory 130 . According to one embodiment, processor 202 may be operatively, functionally and/or electrically coupled with communication circuitry 204 and/or memory 206 .

다양한 실시예에 따르면, 통신 회로(204) 는 무선랜(WLAN: wireless local area network)을 통해 적어도 하나의 외부 전자 장치(예: 도 2의 외부 전자 장치(210))와 신호 및/또는 데이터를 송신 및/또는 수신할 수 있다. 일예로, 무선랜은 근거리 무선 통신으로, Wi-Fi를 포함할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 무선랜에 기반한 통신을 위해 지정된 주파수 대역(예: 약 2.4GHz 대역, 약 5GHz 대역 또는 약 6GHz 대역)을 통해 외부 전자 장치(210)와 신호 및/또는 데이터를 송신 및/또는 수신할 수 있다. 예를 들어, 통신 회로(204)는 무선랜에 기반한 통신과 관련된 지정된 주파수 대역을 통해 외부 전자 장치(210)와의 통신을 위한 RFIC(radio frequency integrated circuit) 및/또는 RFFE(radio frequency front end)를 포함할 수 있다. According to various embodiments, the communication circuit 204 communicates signals and/or data with at least one external electronic device (eg, the external electronic device 210 of FIG. 2 ) through a wireless local area network (WLAN). transmit and/or receive. For example, the wireless LAN is short-distance wireless communication and may include Wi-Fi. According to one embodiment, the communication circuit 204 communicates with the external electronic device 210 through a designated frequency band (eg, about 2.4 GHz band, about 5 GHz band, or about 6 GHz band) for wireless LAN-based communication and / or Alternatively, data may be transmitted and/or received. For example, the communication circuit 204 uses a radio frequency integrated circuit (RFIC) and/or a radio frequency front end (RFFE) for communication with the external electronic device 210 through a designated frequency band related to wireless LAN-based communication. can include

다양한 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와 통신을 연결하도록 통신 회로(204)를 제어할 수 있다. 일 실시예에 따르면, 프로세서(202)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 예를 들어, 프로세서(202)는 통신 회로(204) 및/또는 별도의 근거리 통신 회로(미 도시)를 이용한 OOB(out of band) 통신을 통해 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 일예로, OOB 통신은 NFC(near field communication), 블루투스(Bluetooth), BLE(Bluetooth low energy), UWB(ultra-wideband), 무선랜(예: 약 2.4GHz 대역) 및/또는 QR(quick response) 코드를 포함할 수 있다. 일 실시예에 따르면, 프로세서(202)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 무선랜을 통해 외부 전자 장치(210)와 통신을 연결하도록 통신 회로(204)를 제어할 수 있다. 예를 들어, 프로세서(202)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 외부 전자 장치(210)와의 무선랜에 기반한 통신을 위한 연결 정보를 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 프로세서(202)는 무선랜에 기반한 통신을 위한 연결 정보에 기반하여 외부 전자 장치(210)와의 통신을 연결하도록 통신 회로(204)를 제어할 수 있다. 일예로, 외부 전자 장치(210)와의 무선랜에 기반한 통신을 위한 연결 정보(예: WLAN 연결 정보)는 무선랜에 기반한 외부 전자 장치(210)와의 통신을 위한 무선랜 연결 채널과 관련된 정보를 포함할 수 있다.According to various embodiments, the processor 202 may control the communication circuit 204 to establish communication with the external electronic device 210 . According to an embodiment, the processor 202 may determine whether an external electronic device 210 connectable to the electronic device 101 exists. For example, the processor 202 is an external electronic device 210 connectable to the electronic device 101 through out of band (OOB) communication using the communication circuit 204 and/or a separate short-range communication circuit (not shown). ) can be checked. For example, OOB communication may include near field communication (NFC), Bluetooth (Bluetooth), Bluetooth low energy (BLE), ultra-wideband (UWB), wireless LAN (e.g., about 2.4 GHz band), and/or quick response (QR). Can contain code. According to an embodiment, the processor 202 uses a communication circuit 204 to connect communication with the external electronic device 210 through a wireless LAN when an external electronic device 210 connectable to the electronic device 101 is detected. can control. For example, when the external electronic device 210 connectable to the electronic device 101 is detected, the processor 202 transmits connection information for wireless LAN-based communication with the external electronic device 210 to the external electronic device 210. ). The processor 202 may control the communication circuit 204 to connect communication with the external electronic device 210 based on connection information for wireless LAN-based communication. As an example, the connection information (eg, WLAN connection information) for wireless LAN-based communication with the external electronic device 210 includes information related to a wireless LAN connection channel for communication with the external electronic device 210 based on the wireless LAN. can do.

다양한 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 통신 연결에 기반하여 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 일 실시예에 따르면, 프로세서(202)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)로부터 통신 회로(204)의 TSF와 관련된 정보를 획득할 수 있다. 프로세서(202)는 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 획득할 수 있다. 일예로, 통신 회로(204)의 TSF는 통신 회로(204)를 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하거나, 통신 회로(204)를 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점의 TSF를 포함할 수 있다. 일예로, 시간 정보와 관련된 요청 메시지는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)의 실행 또는 외부 전자 장치(210)와의 통신 연결에 기반하여 발송될 수 있다. 일예로, 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC는 프로세서(202)가 통신 회로(204)로부터 TSF와 관련된 정보를 획득하는 시점의 UTC를 나타낼 수 있다. 일예로, 프레임은 무선랜에 기반한 통신을 통해 전자 장치(101)와 외부 전자 장치(210) 사이에서 송신 및/또는 수신되는 신호 및/또는 데이터의 기본 형태를 포함할 수 있다. 일예로, 프레임은 관리 프레임(management frame), 제어 프레임(control frame) 및/또는 데이터 프레임(data frame)을 포함할 수 있다. 일예로, 관리 프레임은 무선랜에 기반하여 전자 장치(101)와 외부 전자 장치(210)의 통신 연결(예: 초기 통신 연결)과 관련된 적어도 하나의 프레임을 포함할 수 있다. 일예로, 제어 프레임은 전자 장치(101)와 외부 전자 장치(210)의 무선랜에 기반한 통신이 연결된 상태에서 데이터 프레임의 송신 및/또는 수신의 제어와 관련된 적어도 하나의 프레임을 포함할 수 있다. 일예로, 데이터 프레임은 무선랜에 기반한 통신을 통해 전자 장치(101)와 외부 전자 장치(210)가 송신 및/또는 수신하기 위한 정보(또는 데이터)를 포함할 수 있다.According to various embodiments, the processor 202 may control the communication circuit 204 to transmit time information of the electronic device 101 to the external electronic device 210 based on a communication connection with the external electronic device 210. there is. According to one embodiment, the processor 202 may obtain information related to the TSF of the communication circuit 204 from the communication circuit 204 in response to a request message related to time information. The processor 202 may obtain information related to UTC of the processor 202 corresponding to the TSF of the communication circuit 204 . For example, the TSF of the communication circuit 204 receives a frame (eg, a probe request frame) from the external electronic device 210 through the communication circuit 204, or receives the external electronic device 210 through the communication circuit 204. may include the TSF at the time of transmission of the raw frame (eg, beacon frame and/or probe response frame). For example, a request message related to time information may be sent based on execution of an application program (or function) requiring time synchronization with the external electronic device 210 or communication connection with the external electronic device 210 . For example, the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 may indicate UTC at a time when the processor 202 obtains information related to the TSF from the communication circuit 204 . For example, the frame may include a basic form of signals and/or data transmitted and/or received between the electronic device 101 and the external electronic device 210 through wireless LAN-based communication. For example, the frame may include a management frame, a control frame, and/or a data frame. For example, the management frame may include at least one frame related to a communication connection (eg, initial communication connection) between the electronic device 101 and the external electronic device 210 based on a wireless LAN. For example, the control frame may include at least one frame related to control of transmission and/or reception of a data frame in a state in which wireless LAN-based communication between the electronic device 101 and the external electronic device 210 is connected. For example, the data frame may include information (or data) to be transmitted and/or received by the electronic device 101 and the external electronic device 210 through wireless LAN-based communication.

일 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 위해 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보(예: 전자 장치(101)의 시간 정보)를 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 예를 들어, 외부 전자 장치(210)로 전송되는 전자 장치(101)의 시간 정보는 프로세서(202)가 통신 회로(204)로부터 획득한 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 포함할 수 있다. 예를 들어, 외부 전자 장치(210)로 전송되는 전자 장치(101)의 시간 정보는 전자 장치(101)의 시간 정보를 전송하는 시점에 대응하는 프로세서(202)의 UTC 및 전자 장치(101)의 시간 정보를 전송하는 시점에 대응하는 프로세서(202)의 UTC에 기반하여 갱신된 통신 회로(204)의 TSF를 포함할 수 있다. According to one embodiment, the processor 202 provides information related to the TSF of the communication circuit 204 and the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 for time synchronization with the external electronic device 210 ( For example, the communication circuit 204 may be controlled to transmit time information of the electronic device 101 to the external electronic device 210 . For example, the time information of the electronic device 101 transmitted to the external electronic device 210 is the TSF of the communication circuit 204 obtained by the processor 202 from the communication circuit 204 and the TSF of the communication circuit 204. It may include information related to UTC of the processor 202 corresponding to . For example, the time information of the electronic device 101 transmitted to the external electronic device 210 is the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101 and the UTC of the electronic device 101. The TSF of the communication circuit 204 updated based on the UTC of the processor 202 corresponding to the time of transmitting the time information may be included.

일 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 위해 통신 회로(204)의 TSF와 관련된 정보(예: 전자 장치(101)의 시간 정보)를 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 예를 들어, 외부 전자 장치(210)로 전송되는 전자 장치(101)의 시간 정보는 전자 장치(101)의 시간 정보를 전송하는 시점에 대응하는 프로세서(202)의 UTC에 기반하여 갱신된 통신 회로(204)의 TSF를 포함할 수 있다. According to an embodiment, the processor 202 transmits TSF-related information (eg, time information of the electronic device 101) of the communication circuit 204 to the external electronic device 210 for time synchronization with the external electronic device 210. ). For example, the time information of the electronic device 101 transmitted to the external electronic device 210 is updated based on the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101. (204) may include the TSF.

다양한 실시예에 따르면, 메모리(206)는 전자 장치(101)의 적어도 하나의 구성 요소(예: 프로세서(202) 및/또는 통신 회로(204))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(206)는 프로세서(202)를 통해 실행될 수 있는 다양한 인스트럭션들을 저장할 수 있다. According to various embodiments, the memory 206 may store various data used by at least one component (eg, the processor 202 and/or the communication circuit 204) of the electronic device 101 . According to one embodiment, memory 206 may store various instructions that may be executed by processor 202 .

다양한 실시예에 따르면, 외부 전자 장치(210)는 프로세서(212), 통신 회로(214) 및/또는 메모리(216)를 포함할 수 있다. 일 실시예에 따르면, 프로세서(212)는 도 1의 프로세서(120)와 실질적으로 동일하거나, 프로세서(120)에 포함될 수 있다. 예를 들어, 프로세서(212)는 도 1의 메인 프로세서(121)(예: 어플리케이션 프로세서)를 포함할 수 있다. 일 실시예에 따르면, 통신 회로(214)는 도 1의 무선 통신 모듈(192)과 실질적으로 동일하거나, 무선 통신 모듈(192)에 포함될 수 있다. 일 실시예에 따르면, 메모리(216)는 도 1의 메모리(130)와 실질적으로 동일하거나, 메모리(130)에 포함될 수 있다. 일 실시예에 따르면, 프로세서(212)는 통신 회로(214) 및/또는 메모리(216)와 작동적으로, 기능적으로 및/또는 전기적으로 연결될 수 있다.According to various embodiments, the external electronic device 210 may include a processor 212 , a communication circuit 214 , and/or a memory 216 . According to one embodiment, the processor 212 may be substantially the same as the processor 120 of FIG. 1 or included in the processor 120 . For example, the processor 212 may include the main processor 121 (eg, an application processor) of FIG. 1 . According to one embodiment, the communication circuitry 214 may be substantially the same as the wireless communication module 192 of FIG. 1 or included in the wireless communication module 192 . According to one embodiment, memory 216 may be substantially the same as memory 130 of FIG. 1 or included in memory 130 . According to one embodiment, processor 212 may be operatively, functionally and/or electrically coupled with communication circuitry 214 and/or memory 216 .

다양한 실시예에 따르면, 통신 회로(214)는 무선랜(WLAN)을 통해 적어도 하나의 전자 장치(101)와 신호 및/또는 데이터를 송신 및/또는 수신할 수 있다. 일 실시예에 따르면, 통신 회로(214)는 무선랜에 기반한 통신을 위해 지정된 주파수 대역(예: 약 2.4GHz 대역, 약 5GHz 대역 또는 약 6GHz 대역)을 통해 전자 장치(101)와 신호 및/또는 데이터를 송신 및/또는 수신할 수 있다. 예를 들어, 통신 회로(214)는 지정된 주파수 대역을 통해 전자 장치(101)와의 통신을 위한 RFIC 및/또는 RFFE를 포함할 수 있다. According to various embodiments, the communication circuit 214 may transmit and/or receive signals and/or data with at least one electronic device 101 through a wireless local area network (WLAN). According to one embodiment, the communication circuit 214 communicates with the electronic device 101 through a designated frequency band (eg, about 2.4 GHz band, about 5 GHz band, or about 6 GHz band) for wireless LAN-based communication and/or Data may be transmitted and/or received. For example, the communication circuit 214 may include an RFIC and/or RFFE for communication with the electronic device 101 through a designated frequency band.

다양한 실시예에 따르면, 프로세서(212)는 전자 장치(101)와 통신을 연결하도록 통신 회로(214)를 제어할 수 있다. 일 실시예에 따르면, 프로세서(212)는 OOB 통신을 통해 전자 장치(101)로부터 전자 장치(101)와의 무선랜 통신을 위한 연결 정보를 획득할 수 있다. 프로세서(212)는 전자 장치(101)와의 무선랜 통신을 위한 연결 정보에 기반하여 통신 회로(214)를 통해, 전자 장치(101)로부터 비콘(beacon) 프레임을 수신할 수 있다. 프로세서(212)는 전자 장치(101)로부터 비콘 프레임을 수신한 경우, 프로브 요청(probe request) 프레임을 전자 장치(101)로 전송하도록 통신 회로(214)를 제어할 수 있다. 프로세서(212)는 통신 회로(214)를 통해 프로브 응답(probe response) 프레임을 수신할 수 있다. 일 실시예에 따르면, 프로세서(212)는 비콘 프레임 및/또는 프로브 응답 프레임에 포함된 전자 장치(101)의 TSF에 기반하여 통신 회로(214)의 TSF를 설정할 수 있다. 일예로, OOB 통신은 NFC, 블루투스, BLE, UWB, 무선랜(예: 약 2.4GHz 대역) 및/또는 QR 코드를 포함할 수 있다.According to various embodiments, the processor 212 may control the communication circuit 214 to establish communication with the electronic device 101 . According to an embodiment, the processor 212 may obtain connection information for wireless LAN communication with the electronic device 101 from the electronic device 101 through OOB communication. The processor 212 may receive a beacon frame from the electronic device 101 through the communication circuit 214 based on connection information for wireless LAN communication with the electronic device 101 . When receiving a beacon frame from the electronic device 101, the processor 212 may control the communication circuit 214 to transmit a probe request frame to the electronic device 101. Processor 212 may receive a probe response frame through communication circuitry 214 . According to an embodiment, the processor 212 may set the TSF of the communication circuit 214 based on the TSF of the electronic device 101 included in the beacon frame and/or the probe response frame. For example, OOB communication may include NFC, Bluetooth, BLE, UWB, wireless LAN (eg, about 2.4 GHz band) and/or QR code.

다양한 실시예에 따르면, 프로세서(212)는 전자 장치(101)와의 통신 연결에 기반하여 전자 장치(101)와 시간 동기화를 수행할 수 있다. 일 실시예에 따르면, 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)로부터 수신한 프레임(예: 데이터 프레임)에서 전자 장치(101)의 TSF 및 UTC와 관련된 정보를 획득할 수 있다. 프로세서(212)는 통신 회로(214)의 TSF, 전자 장치(101)의 TSF 및 전자 장치(101)의 UTC에 기반하여 프로세서(212)의 UTC를 보정할 수 있다. 예를 들어, 통신 회로(214)의 TSF는 전자 장치(101)로부터 수신된 프레임과 함께 통신 회로(214)로부터 수신될 수 있다. 예를 들어, 통신 회로(214)의 TSF는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(214)로부터 획득될 수 있다. 일예로, 시간 정보와 관련된 요청 메시지는 프로세서(212)가 전자 장치(101)로부터 수신된 프레임을 통신 회로(214)로부터 획득함에 기반하여 발송될 수 있다. 예를 들어, 통신 회로(214)의 TSF는 전자 장치(101)로부터 수신된 프레임을 프로세서(212)가 통신 회로(214)로부터 획득하는 시점에 대응하는 프로세서(212)의 UTC에 기반하여 갱신된 통신 회로(214)의 TSF를 포함할 수 있다. 일예로, 전자 장치(101)의 TSF는 전자 장치(101)의 통신 회로(204)에서 관리하는 시간 정보를 포함할 수 있다. 일예로, 전자 장치(101)의 UTC는 전자 장치(101)의 프로세서(202)에서 관리하는 시간 정보를 포함할 수 있다. 일예로, 통신 회로(214)의 TSF는 통신 회로(214)에서 관리하는 시간 정보를 포함할 수 있다. According to various embodiments, the processor 212 may perform time synchronization with the electronic device 101 based on a communication connection with the electronic device 101 . According to an embodiment, the processor 212 may obtain information related to TSF and UTC of the electronic device 101 from a frame (eg, data frame) received from the electronic device 101 through the communication circuit 214. there is. The processor 212 may correct the UTC of the processor 212 based on the TSF of the communication circuit 214, the TSF of the electronic device 101, and the UTC of the electronic device 101. For example, the TSF of the communication circuitry 214 may be received from the communication circuitry 214 together with the frame received from the electronic device 101 . For example, the TSF of the communication circuitry 214 may be obtained from the communication circuitry 214 in response to a request message related to time information. For example, a request message related to time information may be sent based on the processor 212 acquiring a frame received from the electronic device 101 from the communication circuit 214 . For example, the TSF of the communication circuit 214 is updated based on the UTC of the processor 212 corresponding to the time when the processor 212 acquires the frame received from the electronic device 101 from the communication circuit 214. may include the TSF of the communication circuitry 214. For example, the TSF of the electronic device 101 may include time information managed by the communication circuit 204 of the electronic device 101 . For example, UTC of the electronic device 101 may include time information managed by the processor 202 of the electronic device 101 . For example, the TSF of the communication circuit 214 may include time information managed by the communication circuit 214 .

일 실시예에 따르면, 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)로부터 수신한 프레임(예: 데이터 프레임)에서 전자 장치(101)의 TSF와 관련된 정보를 획득할 수 있다. 프로세서(212)는 이전 시점에 획득한 통신 회로(214)의 TSF, 통신 회로(214)의 TSF에 대응하는 프로세서(212)의 UTC 및 전자 장치(101)의 TSF에 기반하여 전자 장치(101)가 프레임을 전송한 시점과 외부 전자 장치(210)가 프레임을 수신한 시점의 차이를 확인할 수 있다. 예를 들어, 프로세서(212)는 전자 장치(101)가 프레임을 전송한 시점과 외부 전자 장치(210)가 프레임을 수신한 시점의 차이에 기반하여 외부 전자 장치(210)에서의 콘텐트(예: 이미지)의 출력 시점을 보정할 수 있다. 일예로, 이전 시점에 획득한 통신 회로(214)의 TSF는 통신 회로(214)를 통해 전자 장치(101)로 프레임(예: 프로브 요청 프레임)을 전송하거나, 통신 회로(214)를 통해 전자 장치(101)로부터 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 수신하는 시점의 TSF를 포함할 수 있다. 일예로, 이전 시점은 외부 전자 장치(210)가 전자 장치(101)의 TSF와 관련된 정보를 획득한 시점보다 앞선 시점을 포함할 수 있다. 일예로, 프로세서(212)의 UTC는 프로세서(212)(예: AP)에서 관리하는 시간 정보로, 지역 시간(local time)을 포함할 수 있다.According to an embodiment, the processor 212 may obtain information related to the TSF of the electronic device 101 from a frame (eg, a data frame) received from the electronic device 101 through the communication circuit 214 . The processor 212 determines the electronic device 101 based on the TSF of the communication circuit 214 obtained at the previous time, the UTC of the processor 212 corresponding to the TSF of the communication circuit 214, and the TSF of the electronic device 101. A difference between when the frame is transmitted and when the external electronic device 210 receives the frame may be checked. For example, the processor 212 converts content (eg: image) can be corrected. For example, the TSF of the communication circuit 214 obtained at the previous time transmits a frame (eg, a probe request frame) to the electronic device 101 through the communication circuit 214 or the electronic device through the communication circuit 214 It may include the TSF at the time of receiving a frame (eg, a beacon frame and/or a probe response frame) from (101). For example, the previous time point may include a time point prior to the time point at which the external electronic device 210 acquires information related to the TSF of the electronic device 101 . For example, UTC of the processor 212 is time information managed by the processor 212 (eg, AP) and may include local time.

다양한 실시예에 따르면, 메모리(216)는 외부 전자 장치(210)의 적어도 하나의 구성 요소(예: 프로세서(212) 및/또는 통신 회로(214))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 일 실시예에 따르면, 메모리(216)는 프로세서(212)를 통해 실행될 수 있는 다양한 인스트럭션들을 저장할 수 있다.According to various embodiments, the memory 216 may store various data used by at least one component (eg, the processor 212 and/or the communication circuit 214) of the external electronic device 210 . According to one embodiment, memory 216 may store various instructions that may be executed by processor 212 .

다양한 실시예에 따르면, 전자 장치(101) 및 외부 전자 장치(210)는 시간 동기화에 기반하여 데이터(또는 프레임)를 송신 및/또는 수신할 수 있다. 일 실시예에 따르면, 외부 전자 장치(210)는 외부 전자 장치(210)를 착용한 사용자와 관련된 자세 정보(예: pose data)를 전자 장치(101)로 전송할 수 있다. 전자 장치(101)는 외부 전자 장치(210)로부터 획득한 사용자와 관련된 자세 정보에 기반하여 생성된 이미지를 외부 전자 장치(210)로 전송할 수 있다. 외부 전자 장치(210)는 전자 장치(101)로부터 획득한 이미지를 출력할 수 있다. 일예로, 자세 정보는 외부 전자 장치(210)에서 획득한 이미지 또는 센서 데이터 중 적어도 하나를 포함할 수 있다.According to various embodiments, the electronic device 101 and the external electronic device 210 may transmit and/or receive data (or frames) based on time synchronization. According to an embodiment, the external electronic device 210 may transmit posture information (eg, pose data) related to a user wearing the external electronic device 210 to the electronic device 101 . The electronic device 101 may transmit to the external electronic device 210 an image generated based on posture information related to the user obtained from the external electronic device 210 . The external electronic device 210 may output an image obtained from the electronic device 101 . As an example, the posture information may include at least one of an image or sensor data obtained from the external electronic device 210 .

다양한 실시예에 따르면, 프로세서(202 및/또는 212)는 무선랜과 관련된 드라이버(예: Wi-Fi driver) 또는 펌웨어로부터 통신 회로(204 및/또는 214)의 TSF와 관련된 정보를 획득할 수도 있다. 일예로, 무선랜과 관련된 드라이버는 프로세서(202 및/또는 212)에서 통신 회로(204 및/또는 214)를 구동하기 위한 드라이버 프로그램을 포함할 수 있다.According to various embodiments, the processor 202 and/or 212 may obtain information related to the TSF of the communication circuit 204 and/or 214 from a wireless LAN-related driver (eg, Wi-Fi driver) or firmware. . For example, a driver related to a wireless LAN may include a driver program for driving the communication circuits 204 and/or 214 in the processor 202 and/or 212 .

다양한 실시예에 따르면, 전자 장치(예: 도 1 또는 도 2의 전자 장치(101))는, 무선랜 통신을 지원하는 통신 회로(예: 도 1의 무선 통신 모듈(192) 또는 도 2의 통신 회로(204)) 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))를 포함하며, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 외부 전자 장치와 통신을 연결하고, 상기 통신 회로에서 관리하는 시간 정보를 획득하고, 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하고, 상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송할 수 있다.According to various embodiments, an electronic device (eg, the electronic device 101 of FIG. 1 or 2 ) may include a communication circuit supporting wireless LAN communication (eg, the wireless communication module 192 of FIG. 1 or the communication circuit of FIG. 2 ). circuit 204) and at least one processor (eg, processor 120 of FIG. 1 or processor 202 of FIG. 2) operatively coupled with the communication circuit, wherein the at least one processor comprises: Connecting communication with an external electronic device through a communication circuit, acquiring time information managed by the communication circuit, checking time information managed by the processor corresponding to the time information managed by the communication circuit, and A frame including time information managed by the processor and time information managed by the processor may be transmitted to the external electronic device through the communication circuit.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 시간 동기화를 지원하는 기능 및/또는 어플리케이션 프로그램의 실행에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고, 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하고, 상기 통신 회로에서 관리하는 시간 정보의 수신 시점에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인할 수 있다.According to various embodiments, the at least one processor transmits a request message related to time information to the communication circuit based on a function supporting time synchronization with the external electronic device and/or execution of an application program, and In response to the request message, time information managed by the communication circuit may be received from the communication circuit, and time information managed by the processor corresponding to a reception point of time information managed by the communication circuit may be checked.

다양한 실시예에 따르면, 상기 통신 회로는, 상기 무선랜을 통해 상기 외부 전자 장치와 프레임을 송신 및/또는 수신하는 경우, 상기 요청 신호에 대한 응답으로 상기 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 상기 프로세서로 전송할 수 있다.According to various embodiments, when the communication circuit transmits and/or receives a frame with the external electronic device through the wireless LAN, the time information managed by the communication circuit related to the frame in response to the request signal. may be transmitted to the processor.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 통신 연결에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고, 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하고, 상기 통신 회로에서 관리하는 시간 정보의 수신 시점에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인할 수 있다.According to various embodiments, the at least one processor transmits a request message related to time information to the communication circuit based on a communication connection with the external electronic device, and transmits the request message from the communication circuit in response to the request message. Time information managed by the communication circuit may be received, and time information managed by the processor corresponding to a receiving time point of the time information managed by the communication circuit may be checked.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 통신 회로로부터 획득한 상기 통신 회로에서 관리하는 시간 정보 및 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보에 기반하여 상기 프레임을 전송하는 시점에 대응하는 상기 통신 회로에서 관리하는 시간 정보를 추정하고, 상기 추정된 통신 회로에서 관리하는 시간 정보 및 상기 추정된 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 상기 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송할 수 있다.According to various embodiments, the at least one processor determines the information based on time information managed by the communication circuit acquired from the communication circuit and time information managed by the processor corresponding to the time information managed by the communication circuit. Estimating time information managed by the communication circuit corresponding to a frame transmission time point, and time managed by the processor corresponding to the time information managed by the estimated communication circuit and the time information managed by the estimated communication circuit Information may be transmitted to the external electronic device through the frame through the communication circuit.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고, 상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함할 수 있다.According to various embodiments, the time information managed by the communication circuit may include a time synchronization function (TSF), and the time information managed by the processor may include universal time coordinated or coordinated universal time (UTC). .

다양한 실시예에 따르면, 외부 전자 장치(예: 도 1의 전자 장치(101) 또는 도 2의 외부 전자 장치(210))는, 무선랜 통신을 지원하는 통신 회로(예: 도 1의 무선 통신 모듈(192) 또는 도 2의 통신 회로(214)) 및 상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(212))를 포함하며, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 전자 장치와 통신을 연결하고, 상기 통신 회로를 통해 상기 전자 장치로부터 수신한 프레임에서 상기 전자 장치의 통신 회로에서 관리하는 시간 정보 및 상기 전자 장치의 프로세서에서 관리하는 시간 정보를 확인하고, 상기 외부 전자 장치의 통신 회로에서 관리하는 시간 정보를 획득하고, 상기 전자 장치의 통신 회로에서 관리하는 시간 정보, 상기 전자 장치의 프로세서에서 관리하는 시간 정보 및 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보에 기반하여 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 보정할 수 있다.According to various embodiments, an external electronic device (eg, the electronic device 101 of FIG. 1 or the external electronic device 210 of FIG. 2 ) may include a communication circuit supporting wireless LAN communication (eg, the wireless communication module of FIG. 1 ). 192 or communication circuitry 214 of FIG. 2) and at least one processor in operative connection with the communication circuitry (e.g., processor 120 of FIG. 1 or processor 212 of FIG. 2), The at least one processor connects communication with the electronic device through the communication circuit, and in a frame received from the electronic device through the communication circuit, time information managed by the communication circuit of the electronic device and the processor of the electronic device Checking time information managed by the external electronic device, obtaining time information managed by the communication circuit of the external electronic device, time information managed by the communication circuit of the electronic device, time information managed by the processor of the electronic device, and the external electronic device. Time information managed by the processor of the external electronic device may be corrected based on time information managed by the communication circuit of the electronic device.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고, 상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함할 수 있다.According to various embodiments, the time information managed by the communication circuit may include a time synchronization function (TSF), and the time information managed by the processor may include universal time coordinated or coordinated universal time (UTC). .

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 상기 전자 장치로부터 상기 프레임을 수신한 시점에 대응하는 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 획득하고, 이전 시점에 획득된 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보, 상기 이전 시점에 획득된 상기 외부 전자 장치의 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보 및 상기 프레임을 수신한 시점에 대응하는 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보에 기반하여 현재 시점에 대응하는 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 추정할 수 있다.According to various embodiments, the at least one processor obtains time information managed by the processor of the external electronic device corresponding to a time point at which the frame is received from the electronic device through the communication circuit, and at a previous time point. Receiving the obtained time information managed by the communication circuit of the external electronic device, the time information managed by the processor corresponding to the time information managed by the communication circuit of the external electronic device acquired at the previous point in time, and the frame Based on the time information managed by the processor of the external electronic device corresponding to the viewpoint, time information managed by the communication circuit of the external electronic device corresponding to the current viewpoint may be estimated.

다양한 실시예에 따르면, 상기 통신 회로는, 상기 전자 장치로부터 상기 프레임을 수신한 경우, 상기 프레임이 시간 동기화와 관련된 프레임인지 여부를 판단하고, 상기 프레임이 시간 동기화와 관련된 프레임인 것으로 판단한 경우, 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보 및 상기 프레임을 상기 프로세서로 전송하고, 상기 프로세서는, 상기 통신 회로로부터 상기 프레임과 함께 수신된 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 확인할 수 있다.According to various embodiments, the communication circuit, when receiving the frame from the electronic device, determines whether the frame is a frame related to time synchronization, and when it is determined that the frame is a frame related to time synchronization, the communication circuit determines whether the frame is a frame related to time synchronization. Time information managed by the communication circuit of an external electronic device and the frame are transmitted to the processor, and the processor transmits the time information managed by the communication circuit of the external electronic device received together with the frame from the communication circuit. You can check.

다양한 실시예에 따르면, 상기 통신 회로는, 상기 프레임이 시간 동기화와 관련된 프레임이 아닌 것으로 판단한 경우, 상기 전자 장치로부터 수신한 상기 프레임을 상기 프로세서로 전송할 수 있다.According to various embodiments, the communication circuit may transmit the frame received from the electronic device to the processor when it is determined that the frame is not a frame related to time synchronization.

다양한 실시예에 따르면, 상기 적어도 하나의 프로세서는, 상기 통신 회로를 통해 상기 전자 장치로부터 상기 프레임을 수신한 경우, 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고, 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 수신할 수 있다.According to various embodiments, when the frame is received from the electronic device through the communication circuit, the at least one processor transmits a request message related to time information to the communication circuit, and in response to the request message. Time information managed by the communication circuit of the external electronic device may be received from the communication circuit.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보는, 상기 무선랜을 통해 상기 전자 장치와 송신 및/또는 수신하는 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 포함할 수 있다.According to various embodiments, the time information managed by the communication circuit may include time information managed by the communication circuit related to a frame transmitted and/or received with the electronic device through the wireless LAN.

다양한 실시예에 따르면, 상기 프로세서는, 상기 전자 장치의 통신 회로에서 관리하는 시간 정보 및 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보의 차를 검출하고, 상기 검출된 시간 정보의 차에 기반하여 상기 전자 장치의 프로세서에서 관리하는 시간 정보를 갱신하고, 상기 갱신된 시간 정보를 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 보정할 수 있다.According to various embodiments, the processor detects a difference between time information managed by the communication circuit of the electronic device and time information managed by the communication circuit of the external electronic device, and based on the difference between the detected time information. Thus, time information managed by the processor of the electronic device may be updated, and time information managed by the processor of the external electronic device may be corrected with the updated time information.

도 3은 다양한 실시예에 따른 전자 장치에서 전자 장치의 시간 정보를 외부 전자 장치로 전송하기 위한 흐름도(300)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 3의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.3 is a flowchart 300 for transmitting time information of an electronic device to an external electronic device in an electronic device according to various embodiments. In the following embodiments, each operation 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. As an example, the electronic device of FIG. 3 may be the electronic device 101 of FIG. 1 or 2 .

도 3을 참조하는 다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))는 동작 301에서, 통신 회로(204)를 통해 외부 전자 장치(210)와 통신을 연결할 수 있다. 일 실시예에 따르면, 프로세서(202)는 통신 회로(210) 및/또는 별도의 근거리 통신 회로(미 도시)를 이용한 OOB 통신을 통해 무선랜을 통해 전자 장치(101)와 연결(예: 직접 연결) 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 일예로, OOB 통신은 NFC, 블루투스, BLE, UWB, 무선랜(예: 약 2.4GHz 대역) 및/또는 QR 코드를 포함할 수 있다. 일 실시예에 따르면, 프로세서(202)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 무선랜을 통해 외부 전자 장치(210)와 통신을 연결하도록 통신 회로(204)를 제어할 수 있다. According to various embodiments of the present disclosure with reference to FIG. 3 , the electronic device 101 or a processor (eg, the processor 120 of FIG. 1 or the processor 202 of FIG. 2 ), in operation 301 , communicates with an external device via a communication circuit 204 . Communication with the electronic device 210 may be connected. According to an embodiment, the processor 202 connects (eg, direct connection) to the electronic device 101 through a wireless LAN through OOB communication using the communication circuit 210 and/or a separate short-range communication circuit (not shown). ) It is possible to check whether an external electronic device 210 exists. For example, OOB communication may include NFC, Bluetooth, BLE, UWB, wireless LAN (eg, about 2.4 GHz band) and/or QR code. According to an embodiment, the processor 202 uses a communication circuit 204 to connect communication with the external electronic device 210 through a wireless LAN when an external electronic device 210 connectable to the electronic device 101 is detected. can control.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 303에서, 전자 장치(101)에 포함되는 통신 회로(204)의 TSF를 확인할 수 있다. 일 실시예에 따르면, 프로세서(202)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)로부터 통신 회로(204)의 TSF와 관련된 정보를 획득할 수 있다. 예를 들어, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)의 실행 또는 외부 전자 장치(210)와의 통신 연결에 기반하여 시간 정보와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 통신 회로(204)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 통신 회로(204)는 통신 회로(204)를 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하거나 또는 통신 회로(204)를 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 통신 회로(204)의 TSF는 통신 회로(204)에서 관리하는 시간 정보로, 무선랜과 관련된 표준(예: IEEE 802.11)에 정의된 지정된 크기(예: 약 8 byte)의 time stamp를 포함할 수 있다. According to various embodiments, the electronic device 101 or a processor (eg, the processor 120 or 202 ) may check the TSF of the communication circuit 204 included in the electronic device 101 in operation 303 . According to one embodiment, the processor 202 may obtain information related to the TSF of the communication circuit 204 from the communication circuit 204 in response to a request message related to time information. For example, the processor 202 sends a request message related to time information based on the execution of an application program (or function) requiring time synchronization with the external electronic device 210 or a communication connection with the external electronic device 210. communication circuitry 204. The communication circuit 204 may transmit information related to the TSF of the communication circuit 204 to the processor 202 in response to a request message related to time information. For example, the communication circuit 204 receives a frame (eg, a probe request frame) from the external electronic device 210 through the communication circuit 204 or receives a frame from the external electronic device 210 through the communication circuit 204. Information related to the TSF at the time of transmitting (eg, a beacon frame and/or a probe response frame) may be transmitted to the processor 202 . As an example, the TSF of the communication circuit 204 is time information managed by the communication circuit 204, and a time stamp of a specified size (eg, about 8 bytes) defined in a standard (eg, IEEE 802.11) related to a wireless LAN. can include

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 305에서, 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 일 실시예에 따르면, 프로세서(202)는 통신 회로(204)로부터 통신 회로(204)의 TSF와 관련된 정보를 획득하는 시점의 프로세서(202)의 UTC를 확인할 수 있다. 일예로, 통신 회로(204)의 TSF와 관련된 정보를 획득하는 시점의 프로세서(202)의 UTC는 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 나타낼 수 있다. According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202 ) may check the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 in operation 305 . According to an embodiment, the processor 202 may check the UTC of the processor 202 at the time of acquiring information related to the TSF of the communication circuit 204 from the communication circuit 204 . For example, the UTC of the processor 202 at the time of obtaining information related to the TSF of the communication circuit 204 may represent the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 .

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 307에서, 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 포함하는 프레임(예: 데이터 프레임)을 외부 전자 장치(210)로 전송할 수 있다. 일 실시예에 따르면, 프로세서(202)는 통신 회로(204)로부터 획득한 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 포함하는 프레임을 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 일 실시예에 따르면, 프로세서(202)는 전자 장치(101)의 시간 정보를 전송하는 시점에 대응하는 프로세서(202)의 UTC에 기반하여 통신 회로(204)로부터 획득한 통신 회로(204)의 TSF를 갱신할 수 있다. 프로세서(202)는 갱신된 통신 회로(204)의 TSF 및 갱신된 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 포함하는 프레임을 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. 일예로, 전자 장치(101)의 시간 정보는 통신 회로(204)의 TSF 또는 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC 중 적어도 하나를 포함할 수 있다.According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202), in operation 307, the TSF of the communication circuit 204 and the processor 202 corresponding to the TSF of the communication circuit 204 A frame (eg, a data frame) including information related to UTC of may be transmitted to the external electronic device 210 . According to one embodiment, the processor 202 frames the TSF of the communication circuit 204 obtained from the communication circuit 204 and information related to the UTC of the processor 202 corresponding to the TSF of the communication circuit 204. It is possible to control the communication circuit 204 to transmit to the external electronic device 210. According to an embodiment, the processor 202 obtains the TSF of the communication circuit 204 from the communication circuit 204 based on the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101. can be updated. The processor 202 is configured to transmit a frame including the updated TSF of the communication circuit 204 and information related to the UTC of the processor 202 corresponding to the updated TSF of the communication circuit 204 to the external electronic device 210. The communication circuitry 204 can be controlled. For example, the time information of the electronic device 101 may include at least one of the TSF of the communication circuit 204 and UTC of the processor 202 corresponding to the TSF of the communication circuit 204 .

도 4는 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와의 통신 연결을 위한 일예이다.4 is an example of a communication connection between an electronic device and an external electronic device according to various embodiments.

도 4를 참조하는 다양한 실시예에 따르면, 동작 400 및 동작 402에서, 외부 전자 장치(210)는 외부 전자 장치(210)와 인접한 전자 장치(101)가 외부 전자 장치(210)의 존재를 인식할 수 있도록 OOB 통신을 통해 발견 요청 메시지(예: BLE advertisement)를 전송(또는 방송)할 수 있다. 일예로, 발견 요청 메시지는 주기적으로 전송될 수 있다. 일예로, 발견 요청 메시지는 외부 전자 장치(210)의 식별 정보를 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 4 , in operations 400 and 402 , the external electronic device 210 detects the existence of the external electronic device 210 when the electronic device 101 adjacent to the external electronic device 210 recognizes the existence of the external electronic device 210 . A discovery request message (eg, BLE advertisement) may be transmitted (or broadcasted) through OOB communication. For example, the discovery request message may be transmitted periodically. For example, the discovery request message may include identification information of the external electronic device 210 .

다양한 실시예에 따르면, 동작 404에서, 전자 장치(101)는 외부 전자 장치(210)의 발견 요청 메시지를 수신한 경우, 전자 장치(101)와 통신 연결이 가능한 외부 전자 장치(210)가 존재하는 것으로 판단할 수 있다. 일 실시예에 따르면, 동작 404에서, 전자 장치(101)는 통신 연결이 가능한 외부 전자 장치(210)가 존재하는지 확인하기 위해 스캔 모드(예: BLE scan state)로 동작할 수 있다. 동작 404에서, 전자 장치(101)는 스캔 모드에서 외부 전자 장치(210)의 발견 요청 메시지를 수신한 경우, 전자 장치(101)와 통신 연결의 가능한 외부 전자 장치(210)가 존재하는 것으로 판단할 수 있다. According to various embodiments, when the electronic device 101 receives the discovery request message of the external electronic device 210, in operation 404, the external electronic device 210 capable of communication connection with the electronic device 101 exists. can be judged to be According to an embodiment, in operation 404, the electronic device 101 may operate in a scan mode (eg, BLE scan state) to determine whether an external electronic device 210 capable of communication connection exists. In operation 404, when the electronic device 101 receives the discovery request message of the external electronic device 210 in the scan mode, it is determined that an external electronic device 210 capable of communication connection with the electronic device 101 exists. can

다양한 실시예에 따르면, 동작 406에서, 전자 장치(101)는 전자 장치(101)와 통신 연결이 가능한 외부 전자 장치(210)가 존재하는 것으로 판단한 경우, 외부 전자 장치(210)와의 통신 연결을 위한 무선랜 연결 채널을 결정할 수 있다. According to various embodiments, in operation 406, when the electronic device 101 determines that there is an external electronic device 210 capable of communication connection with the electronic device 101, the electronic device 101 is configured for communication connection with the external electronic device 210. A wireless LAN connection channel can be determined.

다양한 실시예에 따르면, 동작 408에서, 전자 장치(101)는 무선랜에 기반한 외부 전자 장치(210)와의 통신을 위한 연결 정보(예: WLAN 연결 정보)를 OOB 통신을 통해 외부 전자 장치(210)로 전송할 수 있다. 일예로, 외부 전자 장치(210)와의 통신을 위한 연결 정보(예: WLAN 연결 정보)는 무선랜에 기반하여 전자 장치(101)와 외부 전자 장치(210)의 통신을 위한 무선랜 연결 채널과 관련된 정보를 포함할 수 있다. According to various embodiments, in operation 408, the electronic device 101 transmits connection information (eg, WLAN connection information) for communication with the external electronic device 210 based on a wireless LAN to the external electronic device 210 through OOB communication. can be sent to For example, connection information (eg, WLAN connection information) for communication with the external electronic device 210 is related to a wireless LAN connection channel for communication between the electronic device 101 and the external electronic device 210 based on the wireless LAN. information may be included.

다양한 실시예에 따르면, 동작 410에서, 외부 전자 장치(210)는 OOB 통신(예: BLE)을 통해 전자 장치(101)로부터 수신한 연결 정보에 대응하는 응답 메시지를 전자 장치(101)로 전송할 수 있다. 일예로, 응답 메시지는 연결 정보의 수신 성공과 관련된 정보(예: ACK) 또는 연결 정보의 수신 실패와 관련된 정보(예: NACK)를 포함할 수 있다. According to various embodiments, in operation 410, the external electronic device 210 may transmit a response message corresponding to connection information received from the electronic device 101 to the electronic device 101 through OOB communication (eg, BLE). there is. For example, the response message may include information related to successful reception of connection information (eg, ACK) or information related to failure in reception of connection information (eg, NACK).

다양한 실시예에 따르면, 동작 410에서, 전자 장치(101)는 외부 전자 장치(210)로부터 연결 정보에 대응하는 수신 성공과 관련된 정보(예: ACK)를 수신할 수 있다. 동작 414에서, 전자 장치(101)는 연결 정보에 대응하는 수신 성공과 관련된 정보(예: ACK)의 수신에 기반하여 무선랜 통신을 통해 비콘(beacon) 프레임을 외부 전자 장치(210)로 전송할 수 있다. 일예로, 비콘 프레임은 전자 장치(101)와 외부 전자 장치(210)의 통신을 위해 설정된 무선랜 연결 채널을 통해 전송될 수 있다. 일예로, 비콘 프레임은 비콘 프레임의 전송 시점에 대응하는 전자 장치(101)에 포함되는 통신 회로(204)의 TSF와 관련된 정보를 포함할 수 있다. 일예로, 통신 회로(204)의 TSF와 관련된 정보는 비콘 프레임의 타임 스탬프 필드(time stamp field)에 포함될 수 있다.According to various embodiments, in operation 410, the electronic device 101 may receive information related to successful reception corresponding to connection information (eg, ACK) from the external electronic device 210 . In operation 414, the electronic device 101 transmits a beacon frame to the external electronic device 210 through wireless LAN communication based on reception of information (eg, ACK) related to successful reception corresponding to the connection information. there is. As an example, the beacon frame may be transmitted through a wireless LAN connection channel established for communication between the electronic device 101 and the external electronic device 210 . For example, the beacon frame may include information related to the TSF of the communication circuit 204 included in the electronic device 101 corresponding to the transmission time of the beacon frame. For example, information related to the TSF of the communication circuit 204 may be included in a time stamp field of a beacon frame.

다양한 실시예에 따르면, 외부 전자 장치(210)는 전자 장치(101)로부터 수신한 연결 정보에 기반하여 전자 장치(101)로부터 비콘 프레임이 수신되는지 확인할 수 있다. 일 실시예에 따르면, 동작 412에서, 외부 전자 장치(210)는 전자 장치(101)로부터 수신한 연결 정보(예: WLAN 연결 정보)에 기반하여 무선랜 스캔 상태(예: Wi-Fi scan state)로 동작할 수 있다. 일 실시예에 따르면, 동작 414에서, 외부 전자 장치(210)는 무선랜 스캔 상태에서 무선랜에 기반한 통신을 통해 전자 장치(101)로부터 비콘 프레임을 수신할 수 있다. 동작 416에서, 외부 전자 장치(210)는 전자 장치(101)로부터 비콘 프레임의 수신에 기반하여 프로브 요청(probe request) 프레임을 전자 장치(101)로 전송할 수 있다.According to various embodiments, the external electronic device 210 may check whether a beacon frame is received from the electronic device 101 based on connection information received from the electronic device 101 . According to an embodiment, in operation 412, the external electronic device 210 sets a wireless LAN scan state (eg, Wi-Fi scan state) based on connection information (eg, WLAN connection information) received from the electronic device 101. can work as According to an embodiment, in operation 414, the external electronic device 210 may receive a beacon frame from the electronic device 101 through wireless LAN-based communication in a wireless LAN scan state. In operation 416, the external electronic device 210 may transmit a probe request frame to the electronic device 101 based on the reception of the beacon frame from the electronic device 101.

다양한 실시예에 따르면, 동작 418에서, 전자 장치(101)는 프로브 요청 프레임에 대한 응답으로 프로브 응답(probe response) 프레임을 외부 전자 장치(210)로 전송할 수 있다.According to various embodiments, in operation 418, the electronic device 101 may transmit a probe response frame to the external electronic device 210 in response to the probe request frame.

다양한 실시예에 따르면, 전자 장치(101) 및 외부 전자 장치(210)는 인증 절차를 수행할 수 있다. 전자 장치(101) 및 외부 전자 장치(210)는 인증을 성공한 경우, 무선랜에 기반한 통신의 연결이 완료된 것으로 판단할 수 있다.According to various embodiments, the electronic device 101 and the external electronic device 210 may perform an authentication procedure. When the electronic device 101 and the external electronic device 210 succeed in authentication, it may be determined that the wireless LAN-based communication connection is completed.

다양한 실시예에 따르면, 외부 전자 장치(210)는 전자 장치(101)와 통신을 연결한 경우, 비콘 프레임에 포함된 전자 장치(101)의 TSF에 기반하여 외부 전자 장치(210)의 통신 회로(214)의 TSF를 설정할 수 있다. 일예로, 전자 장치(101)의 TSF는 전자 장치(101)에 포함되는 통신 회로(204)의 TSF를 포함할 수 있다.According to various embodiments, when the external electronic device 210 communicates with the electronic device 101, the communication circuit ( 214) TSF can be set. For example, the TSF of the electronic device 101 may include the TSF of the communication circuit 204 included in the electronic device 101 .

도 5는 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 흐름도(500)의 일예이다. 일 실시예에 따르면, 도 5의 적어도 일부는 도 3의 동작 303 및 동작 305의 상세한 동작을 포함할 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 5의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.5 is an example of a flowchart 500 for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments. According to an embodiment, at least a part of FIG. 5 may include detailed operations of operations 303 and 305 of FIG. 3 . In the following embodiments, each operation 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. As an example, the electronic device of FIG. 5 may be the electronic device 101 of FIG. 1 or 2 .

도 5를 참조하는 다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))는 동작 501에서, 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)이 실행되는지 확인할 수 있다. 일예로, 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램은 증강 현실 장치(예: AR glass)의 구동과 관련된 어플리케이션 프로그램을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 5 , the electronic device 101 or the processor (eg, the processor 120 of FIG. 1 or the processor 202 of FIG. 2 ) determines, in operation 501, time with the external electronic device 210. It can be checked whether an application program (or function) requiring synchronization is executed. For example, an application program requiring time synchronization with the external electronic device 210 may include an application program related to driving an augmented reality device (eg, AR glass).

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)이 실행되지 않는 경우(예: 동작 501의 '아니오'), 전자 장치(101)의 시간 정보를 획득하기 위한 일 실시예를 종료할 수 있다. 일예로, 전자 장치(101)의 시간 정보는 전자 장치(101)에 포함되는 프로세서(202)의 UTC 또는 통신 회로(204)의 TSF 중 적어도 하나와 관련된 정보를 포함할 수 있다. According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202) does not execute an application program (or function) that requires time synchronization with the external electronic device 210 (eg, the processor 120 or 202). : 'No' in operation 501), an embodiment for obtaining time information of the electronic device 101 may be ended. For example, the time information of the electronic device 101 may include information related to at least one of UTC of the processor 202 or TSF of the communication circuit 204 included in the electronic device 101 .

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)이 실행되는 경우(예: 동작 501의 '예'), 동작 503에서, 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일예로, 시간 정보와 관련된 요청 메시지를 무선랜과 관련된 드라이버(예: Wi-Fi driver)를 통해 통신 회로(204)로 전송될 수 있다.According to various embodiments, the electronic device 101 or a processor (eg, the processor 120 or 202) executes an application program (or function) requiring time synchronization with the external electronic device 210 (eg, the processor 120 or 202). In operation 503 (yes of operation 501), a request message related to time information (eg, TSF) may be transmitted to the communication circuit 204. For example, a request message related to time information may be transmitted to the communication circuit 204 through a driver related to a wireless LAN (eg, a Wi-Fi driver).

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 505에서, 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)로부터 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보가 수신되는지 확인할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 외부 전자 장치(210)와 관련된 트래픽이 발생하는 경우, 트래픽이 발생하는 시점의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 트래픽이 발생하는 시점은 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하는 시점 또는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점 중 적어도 하나를 포함할 수 있다.According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202), in operation 505, transmits information from the communication circuit 204 to the communication circuit 204 in response to a request message related to time information. It can be checked whether information related to time information (eg, TSF) is received. According to an embodiment, when traffic related to the external electronic device 210 occurs, the communication circuit 204 may transmit information related to the TSF at the time when the traffic occurs to the processor 202 . For example, the time at which traffic is generated is when a frame (eg, a probe request frame) is received from the external electronic device 210 through wireless LAN-based communication or transmitted to the external electronic device 210 through wireless LAN-based communication. It may include at least one of transmission timings of frames (eg, a beacon frame and/or a probe response frame).

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보가 수신되지 않는 경우(예: 동작 505의 '아니오'), 전자 장치(101)의 시간 정보를 획득하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the electronic device 101 or the processor (eg, processor 120 or 202) does not receive information related to time information (eg, TSF) of the communication circuit 204 (eg, operation 505 'No' of), an embodiment for obtaining time information of the electronic device 101 may be ended.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보를 수신한 경우(예: 동작 505의 '예'), 동작 507에서, 통신 회로(204)의 시간 정보(예: TSF)에 대응하는 프로세서(202)의 시간 정보(예: UTC)를 확인할 수 있다. 일예로, 통신 회로(204)의 시간 정보(예: TSF)에 대응하는 프로세서(202)의 시간 정보(예: UTC)는 통신 회로(204)로부터 통신 회로(204)의 TSF를 획득하는 시점의 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, when the electronic device 101 or the processor (eg, the processor 120 or 202) receives information related to time information (eg, TSF) of the communication circuit 204 (eg, in operation 505). 'Yes'), in operation 507, time information (eg, UTC) of the processor 202 corresponding to time information (eg, TSF) of the communication circuit 204 may be checked. For example, the time information (eg, UTC) of the processor 202 corresponding to the time information (eg, TSF) of the communication circuit 204 is the time point at which the TSF of the communication circuit 204 is acquired from the communication circuit 204. It may include UTC of the processor 202.

다양한 실시예에 따르면, 프로세서(202)는 지정된 개수의 통신 회로(204)의 TSF 및 통신 회로(204)에 대응하는 프로세서(202)의 UTC의 쌍(또는 집합)을 메모리(206)에 저장할 수 있다. 일예로, 지정된 개수는 프로세서(202)가 저장하기 위한 TSF와 UTC의 쌍의 최대 개수를 포함할 수 있다.According to various embodiments, processor 202 may store in memory 206 a specified number of TSFs of communication circuits 204 and pairs (or sets) of UTCs of processor 202 corresponding to communication circuits 204. there is. For example, the specified number may include the maximum number of pairs of TSF and UTC for the processor 202 to store.

다양한 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 완료한 것으로 판단하거나, 통신 회로(204)의 TSF가 필요 없다고 판단한 경우, 시간 정보와 관련된 중단 메시지를 통신 회로(204)로 전송할 수 있다. 통신 회로(204)는 시간 정보와 관련된 중단 메시지에 기반하여 통신 회로(204)의 TSF와 관련된 정보의 프로세서(202)로의 전송을 중단할 수 있다. 일예로, 통신 회로(204)의 TSF가 필요 없다고 판단하는 상태는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)의 실행이 종료된 상태를 포함할 수 있다.According to various embodiments, when the processor 202 determines that time synchronization with the external electronic device 210 has been completed or determines that the TSF of the communication circuit 204 is not needed, the processor 202 transmits a stop message related to time information to the communication circuit ( 204). The communication circuitry 204 may stop transmitting information related to the TSF of the communication circuitry 204 to the processor 202 based on the suspend message related to the time information. For example, the state in which it is determined that the TSF of the communication circuit 204 is not needed may include a state in which execution of an application program (or function) requiring time synchronization with the external electronic device 210 is terminated.

도 6은 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 일예이다.6 is an example for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments.

도 6을 참조하는 다양한 실시예에 따르면, 동작 611에서, 전자 장치(101)의 프로세서(202)는 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)이 실행되는 경우, 시간 정보와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일예로, 시간 정보와 관련된 요청 메시지를 무선랜과 관련된 드라이버(예: Wi-Fi driver)를 통해 통신 회로(204)로 전송될 수 있다.According to various embodiments of the present disclosure referring to FIG. 6 , in operation 611 , the processor 202 of the electronic device 101 may transmit a request message related to time information (eg, TSF) to the communication circuit 204 . According to an embodiment, the processor 202 may transmit a request message related to time information to the communication circuit 204 when an application program (or function) requiring time synchronization with the external electronic device 210 is executed. there is. For example, a request message related to time information may be transmitted to the communication circuit 204 through a driver related to a wireless LAN (eg, a Wi-Fi driver).

다양한 실시예에 따르면, 동작 613에서, 전자 장치(101)의 통신 회로(204)는 시간 정보와 관련된 요청 메시지를 수신한 경우, 외부 전자 장치(210)와 관련된 트래픽이 발생하는지 확인할 수 있다.According to various embodiments, in operation 613, when the communication circuit 204 of the electronic device 101 receives a request message related to time information, it may check whether traffic related to the external electronic device 210 occurs.

다양한 실시예에 따르면, 동작 615에서, 통신 회로(204)는 외부 전자 장치(210)와 관련된 트래픽의 발생에 기반하여 트래픽이 발생하는 시점에 대응하는 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 트래픽이 발생하는 시점은 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하는 시점 또는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점 중 적어도 하나를 포함할 수 있다.According to various embodiments, in operation 615, the communication circuitry 204 transmits information related to the TSF of the communication circuitry 204 corresponding to the time when traffic is generated based on the generation of traffic related to the external electronic device 210 to the processor. (202). For example, the time at which traffic is generated is when a frame (eg, a probe request frame) is received from the external electronic device 210 through wireless LAN-based communication or transmitted to the external electronic device 210 through wireless LAN-based communication. It may include at least one of transmission timings of frames (eg, a beacon frame and/or a probe response frame).

다양한 실시예에 따르면, 동작 615에서, 전자 장치(101)의 프로세서(202)는 통신 회로(204)로부터 통신 회로(204)의 TSF와 관련된 정보를 수신할 수 있다. 동작 617에서, 프로세서(202)는 통신 회로(204)의 TSF와 관련된 정보의 수신에 기반하여 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 일예로, 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC는 통신 회로(204)로부터 통신 회로(204)의 TSF를 획득하는 시점의 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, in operation 615, the processor 202 of the electronic device 101 may receive information related to the TSF of the communication circuit 204 from the communication circuit 204. In operation 617 , the processor 202 may determine the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 based on receiving information related to the TSF of the communication circuit 204 . For example, the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 may include the UTC of the processor 202 at the time of obtaining the TSF of the communication circuit 204 from the communication circuit 204 .

도 7은 다양한 실시예에 따른 전자 장치에서 프로세서 및 통신 회로의 시간 정보를 획득하기 위한 흐름도(700)의 다른 일예이다. 일 실시예에 따르면, 도 7의 적어도 일부는 도 3의 동작 303 및 동작 305의 상세한 동작을 포함할 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 7의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.7 is another example of a flowchart 700 for obtaining time information of a processor and a communication circuit in an electronic device according to various embodiments. According to an embodiment, at least a part of FIG. 7 may include detailed operations of operations 303 and 305 of FIG. 3 . In the following embodiments, each operation 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. As an example, the electronic device of FIG. 7 may be the electronic device 101 of FIG. 1 or 2 .

도 7을 참조하는 다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))는 동작 701에서, 무선랜에 기반하여 외부 전자 장치(210)와 통신이 연결되는지 확인할 수 있다. According to various embodiments of the present disclosure referring to FIG. 7 , the electronic device 101 or a processor (eg, the processor 120 of FIG. 1 or the processor 202 of FIG. 2 ), in operation 701, operates an external electronic device based on a wireless LAN. It can be confirmed that communication with (210) is connected.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)와 통신이 연결되지 않은 경우(예: 동작 701의 '아니오'), 전자 장치(101)의 시간 정보를 획득하기 위한 일 실시예를 종료할 수 있다. 일예로, 전자 장치(101)의 시간 정보는 전자 장치(101)에 포함되는 프로세서(202)의 UTC 또는 통신 회로(204)의 TSF 중 적어도 하나와 관련된 정보를 포함할 수 있다. According to various embodiments, when the electronic device 101 or the processor (eg, the processor 120 or 202) does not communicate with the external electronic device 210 (eg, 'No' in operation 701), the electronic device An embodiment for acquiring time information of (101) may be completed. For example, the time information of the electronic device 101 may include information related to at least one of UTC of the processor 202 or TSF of the communication circuit 204 included in the electronic device 101 .

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)와 통신이 연결된 경우(예: 동작 701의 '예'), 동작 703에서, 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일예로, 시간 정보와 관련된 요청 메시지를 무선랜과 관련된 드라이버(예: Wi-Fi driver)를 통해 통신 회로(204)로 전송될 수 있다.According to various embodiments, when the electronic device 101 or the processor (eg, the processor 120 or 202) communicates with the external electronic device 210 (eg, 'Yes' in operation 701), in operation 703, A request message related to time information (eg, TSF) may be transmitted to the communication circuit 204 . For example, a request message related to time information may be transmitted to the communication circuit 204 through a driver related to a wireless LAN (eg, a Wi-Fi driver).

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 705에서, 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)로부터 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보가 수신되는지 확인할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 외부 전자 장치(210)와 관련된 트래픽이 발생하는 경우, 트래픽이 발생하는 시점의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 트래픽이 발생하는 시점은 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하는 시점 또는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다.According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202), in operation 705, sends the communication circuit 204 from the communication circuit 204 in response to a request message related to time information. It can be checked whether information related to time information (eg, TSF) is received. According to an embodiment, when traffic related to the external electronic device 210 occurs, the communication circuit 204 may transmit information related to the TSF at the time when the traffic occurs to the processor 202 . For example, the time at which traffic is generated is when a frame (eg, a probe request frame) is received from the external electronic device 210 through wireless LAN-based communication or transmitted to the external electronic device 210 through wireless LAN-based communication. It may include at least one of transmission timings of frames (eg, a beacon frame and/or a probe response frame). According to one embodiment, the communication circuitry 204 may transmit information related to the TSF of the communication circuitry 204 to the processor 202 in response to a request message related to time information.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보가 수신되지 않는 경우(예: 동작 705의 '아니오'), 전자 장치(101)의 시간 정보를 획득하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, when the electronic device 101 or the processor (eg, processor 120 or 202) does not receive information related to time information (eg, TSF) of the communication circuit 204 (eg, operation 705 'No' of), an embodiment for obtaining time information of the electronic device 101 may be ended.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 통신 회로(204)의 시간 정보(예: TSF)와 관련된 정보를 수신한 경우(예: 동작 705의 '예'), 동작 707에서, 통신 회로(204)의 시간 정보(예: TSF)에 대응하는 프로세서(202)의 시간 정보(예: UTC)를 확인할 수 있다. 일예로, 통신 회로(204)의 시간 정보(예: TSF)에 대응하는 프로세서(202)의 시간 정보(예: UTC)는 통신 회로(204)로부터 통신 회로(204)의 TSF를 획득하는 시점의 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, when the electronic device 101 or the processor (eg, processor 120 or 202) receives information related to time information (eg, TSF) of the communication circuit 204 (eg, operation 705 'Yes'), in operation 707, time information (eg, UTC) of the processor 202 corresponding to time information (eg, TSF) of the communication circuit 204 may be checked. For example, the time information (eg, UTC) of the processor 202 corresponding to the time information (eg, TSF) of the communication circuit 204 is the time point at which the TSF of the communication circuit 204 is acquired from the communication circuit 204. It may include UTC of the processor 202.

다양한 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 완료한 것으로 판단하거나, 통신 회로(204)의 TSF가 필요 없다고 판단한 경우, 시간 정보와 관련된 중단 메시지를 통신 회로(204)로 전송할 수 있다. 통신 회로(204)는 시간 정보와 관련된 중단 메시지에 기반하여 통신 회로(204)의 TSF와 관련된 정보의 프로세서(202)로의 전송을 중단할 수 있다. 일예로, 통신 회로(204)의 TSF가 필요 없다고 판단하는 상태는 외부 전자 장치(210)와의 통신 연결이 해제된 상태를 포함할 수 있다.According to various embodiments, when the processor 202 determines that time synchronization with the external electronic device 210 has been completed or determines that the TSF of the communication circuit 204 is not needed, the processor 202 transmits a stop message related to time information to the communication circuit ( 204). The communication circuitry 204 may stop transmitting information related to the TSF of the communication circuitry 204 to the processor 202 based on the suspend message related to the time information. For example, the state in which the TSF of the communication circuit 204 is determined to be unnecessary may include a state in which the communication connection with the external electronic device 210 is released.

도 8은 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와 시간을 동기화하기 위한 일예이다.8 is an example of synchronizing time with an external electronic device in an electronic device according to various embodiments.

도 8을 참조하는 다양한 실시예에 따르면, 동작 811에서, 전자 장치(101)는 무선랜에 기반하여 외부 전자 장치(210)와 통신을 연결할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 OOB 통신을 통해 무선랜을 통해 전자 장치(101)와 연결(예: 직접 연결) 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 전자 장치(101)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 무선랜을 통해 외부 전자 장치(210)와 통신을 연결할 수 있다.According to various embodiments of the present disclosure referring to FIG. 8 , in operation 811, the electronic device 101 may connect communication with the external electronic device 210 based on a wireless LAN. According to an embodiment, the electronic device 101 may check whether an external electronic device 210 capable of being connected to the electronic device 101 through a wireless LAN through OOB communication (eg, direct connection) exists. When an external electronic device 210 connectable to the electronic device 101 is detected, the electronic device 101 may communicate with the external electronic device 210 through a wireless LAN.

다양한 실시예에 따르면, 동작 813에서, 전자 장치(101)의 프로세서(202)는 무선랜을 통해 외부 전자 장치(210)와의 통신 연결에 기반하여 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일예로, 시간 정보와 관련된 요청 메시지를 무선랜과 관련된 드라이버(예: Wi-Fi driver)를 통해 통신 회로(204)로 전송될 수 있다.According to various embodiments, in operation 813, the processor 202 of the electronic device 101 communicates a request message related to time information (eg, TSF) based on a communication connection with the external electronic device 210 through a wireless LAN. circuit 204. For example, a request message related to time information may be transmitted to the communication circuit 204 through a driver related to a wireless LAN (eg, a Wi-Fi driver).

다양한 실시예에 따르면, 동작 815에서, 전자 장치(101)의 통신 회로(204)는 시간 정보와 관련된 요청 메시지에 기반하여 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 예를 들어, 통신 회로(204)는 시간 정보와 관련된 요청 메시지를 수신한 시점에 대응하는 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다.According to various embodiments, in operation 815, the communication circuit 204 of the electronic device 101 may transmit information related to the TSF of the communication circuit 204 to the processor 202 based on the request message related to the time information. . According to one embodiment, the communication circuitry 204 may transmit information related to the TSF of the communication circuitry 204 to the processor 202 in response to a request message related to time information. For example, the communication circuit 204 may transmit information related to the TSF of the communication circuit 204 corresponding to the time of receiving the request message related to the time information to the processor 202 .

일 실시예에 따르면, 통신 회로(204)는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)와 관련된 트래픽이 발생하는 경우, 트래픽이 발생하는 시점에 대응하는 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 일예로, 트래픽이 발생하는 시점은 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로부터 프레임(예: 프로브 요청 프레임)을 수신하는 시점 또는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)로 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 전송하는 시점 중 적어도 하나를 포함할 수 있다.According to an embodiment, when traffic related to the external electronic device 210 is generated through wireless LAN-based communication, the communication circuit 204 is related to the TSF of the communication circuit 204 corresponding to the time when the traffic is generated. Information may be transmitted to the processor 202 . For example, the time at which traffic is generated is when a frame (eg, a probe request frame) is received from the external electronic device 210 through wireless LAN-based communication or transmitted to the external electronic device 210 through wireless LAN-based communication. It may include at least one of transmission timings of frames (eg, a beacon frame and/or a probe response frame).

다양한 실시예에 따르면, 동작 815에서, 전자 장치(101)의 프로세서(202)는 통신 회로(204)로부터 통신 회로(204)의 TSF와 관련된 정보를 수신할 수 있다. 동작 817에서, 프로세서(202)는 통신 회로(204)의 TSF와 관련된 정보의 수신에 기반하여 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 일예로, 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC는 통신 회로(204)로부터 통신 회로(204)의 TSF를 획득하는 시점의 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, in operation 815, the processor 202 of the electronic device 101 may receive information related to the TSF of the communication circuit 204 from the communication circuit 204. At operation 817 , the processor 202 may determine the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 based on receiving information related to the TSF of the communication circuit 204 . For example, the UTC of the processor 202 corresponding to the TSF of the communication circuit 204 may include the UTC of the processor 202 at the time of obtaining the TSF of the communication circuit 204 from the communication circuit 204 .

다양한 실시예에 따르면, 동작 819에서, 전자 장치(101)의 프로세서(202)는 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC와 관련된 정보를 포함하는 프레임을 통신 회로(204)를 통해 외부 전자 장치(210)로 전송할 수 있다.According to various embodiments, in operation 819, the processor 202 of the electronic device 101 includes information related to the TSF of the communication circuit 204 and the UTC of the processor 202 corresponding to the TSF of the communication circuit 204. may be transmitted to the external electronic device 210 through the communication circuit 204.

다양한 실시예에 따르면, 동작 821에서, 외부 전자 장치(210)의 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)로부터 수신한 프레임에서 전자 장치(101)의 시간 정보를 획득할 수 있다. According to various embodiments, in operation 821, the processor 212 of the external electronic device 210 obtains time information of the electronic device 101 from a frame received from the electronic device 101 through the communication circuit 214. can

다양한 실시예에 따르면, 동작 823에서, 외부 전자 장치(210)의 프로세서(212)는 전자 장치(101)의 시간 정보에 기반하여 외부 전자 장치(210)의 프로세서(212)의 UTC를 동기화할 수 있다. 일 실시예에 따르면, 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)로부터 수신한 프레임에서 전자 장치(101)의 TSF 및 UTC와 관련된 정보를 획득할 수 있다. 프로세서(212)는 통신 회로(214)의 TSF, 전자 장치(101)의 TSF 및 전자 장치(101)의 UTC에 기반하여 프로세서(212)의 UTC를 보정할 수 있다. 일예로, 전자 장치(101)의 TSF는 전자 장치(101)에 포함되는 통신 회로(204)의 TSF를 포함할 수 있다. 일예로, 전자 장치(101)의 UTC는 전자 장치(101)에 포함되는 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, in operation 823, the processor 212 of the external electronic device 210 may synchronize the UTC of the processor 212 of the external electronic device 210 based on the time information of the electronic device 101. there is. According to an embodiment, the processor 212 may obtain TSF and UTC-related information of the electronic device 101 from a frame received from the electronic device 101 through the communication circuit 214 . The processor 212 may correct the UTC of the processor 212 based on the TSF of the communication circuit 214, the TSF of the electronic device 101, and the UTC of the electronic device 101. For example, the TSF of the electronic device 101 may include the TSF of the communication circuit 204 included in the electronic device 101 . For example, UTC of the electronic device 101 may include UTC of the processor 202 included in the electronic device 101 .

도 9는 다양한 실시예에 따른 전자 장치에서 통신 회로의 시간 정보를 갱신하기 위한 흐름도(900)이다. 일 실시예에 따르면, 도 9의 적어도 일부는 도 3의 동작 307의 상세한 동작을 포함할 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 9의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.9 is a flowchart 900 for updating time information of a communication circuit in an electronic device according to various embodiments. According to an embodiment, at least a part of FIG. 9 may include a detailed operation of operation 307 of FIG. 3 . In the following embodiments, each operation 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. As an example, the electronic device of FIG. 9 may be the electronic device 101 of FIG. 1 or 2 .

도 9를 참조하는 다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))는 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 획득한 경우, 동작 901에서, 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 일예로, 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점은 전자 장치(101)의 시간 정보를 포함하는 프레임의 생성 시점을 포함할 수 있다.According to various embodiments of the present disclosure with reference to FIG. 9 , the electronic device 101 or a processor (eg, the processor 120 of FIG. 1 or the processor 202 of FIG. 2 ) includes the TSF of the communication circuit 204 and the communication circuit 204 When the UTC of the processor 202 corresponding to the TSF of ) is obtained, in operation 901, the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101 to the external electronic device 210 is obtained. You can check. For example, the time of transmitting the time information of the electronic device 101 to the external electronic device 210 may include the time of generating a frame including the time information of the electronic device 101 .

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 903에서, 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC에 기반하여 통신 회로(204)의 TSF를 갱신할 수 있다. 일 실시예에 따르면, 프로세서(202)는 수학식 1과 같이, 프로세서(202)의 UTC의 변화에 기반하여 통신 회로(204)의 TSF를 갱신할 수 있다. 일예로, 프로세서(202)의 UTC의 변화는 프로세서(202)가 통신 회로(204)의 TSF를 획득하는 시점에 대응하는 프로세서(202)의 UTC와 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC의 차를 포함할 수 있다.According to various embodiments, the electronic device 101 or a processor (eg, the processor 120 or 202), in operation 903, transmits time information of the electronic device 101 to the external electronic device 210 corresponding to a time point. Based on the UTC of the processor 202, the TSF of the communication circuitry 204 may be updated. According to an embodiment, the processor 202 may update the TSF of the communication circuit 204 based on the change in UTC of the processor 202 as shown in Equation 1. For example, the change of UTC of the processor 202 converts the UTC of the processor 202 corresponding to the time when the processor 202 acquires the TSF of the communication circuit 204 and the time information of the electronic device 101 to an external electronic device. It may include the difference between UTC of the processor 202 corresponding to the time of transmission to 210.

Figure pat00001
Figure pat00001

일예로, curr_TSF는 갱신된 통신 회로(204)의 TSF를 나타내고, pre_TSF는 프로세서(202)가 이전 시점(예: 도 3의 동작 303)에 획득한 통신 회로(204)의 TSF를 나타내고, curr_UTC는 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC를 나타내고, pre_UTC는 이전 시점(예: 도 3의 동작 303)에 획득한 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 포함할 수 있다.As an example, curr_TSF represents the updated TSF of the communication circuit 204, pre_TSF represents the TSF of the communication circuit 204 obtained by the processor 202 at a previous point in time (eg, operation 303 of FIG. 3), and curr_UTC represents Indicates the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101 to the external electronic device 210, and pre_UTC is the communication circuit obtained at the previous time (eg, operation 303 of FIG. 3) ( 204) and the UTC of the processor 202 corresponding to the TSF.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 905에서, 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC(예: curr_UTC) 및 전자 장치(101)의 시간 정보를 외부 전자 장치(210)로 전송하는 시점에 대응하는 프로세서(202)의 UTC에 기반하여 갱신된 통신 회로(204)의 TSF(예: curr_TSF)와 관련된 정보를 포함하는 프레임(예: 데이터 프레임)을 외부 전자 장치(210)로 전송할 수 있다. According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202), in operation 905, transmits the time information of the electronic device 101 to the external electronic device 210 corresponding to the timing. Communication circuit 204 updated based on the UTC of the processor 202 (eg, curr_UTC) and the UTC of the processor 202 corresponding to the time of transmitting the time information of the electronic device 101 to the external electronic device 210 A frame (eg, data frame) including information related to the TSF (eg, curr_TSF) of may be transmitted to the external electronic device 210 .

도 10은 다양한 실시예에 따른 외부 전자 장치에서 전자 장치와 시간을 동기화하기 위한 흐름도(1000)의 일예이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 10의 외부 전자 장치는 도 1의 전자 장치(101) 또는 도 2의 외부 전자 장치(210)일 수 있다.10 is an example of a flowchart 1000 for synchronizing time with an external electronic device in an external electronic device according to various embodiments. In the following embodiments, each operation 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. As an example, the external electronic device of FIG. 10 may be the electronic device 101 of FIG. 1 or the external electronic device 210 of FIG. 2 .

도 10을 참조하는 다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(212))는 동작 1001에서, 통신 회로(214)를 통해 전자 장치(101)와 통신을 연결할 수 있다. 일 실시예에 따르면, 프로세서(212)는 OOB 통신을 통해 전자 장치(101)로부터 전자 장치(101)와의 무선랜 통신을 위한 연결 정보를 획득할 수 있다. 프로세서(212)는 전자 장치(101)와의 무선랜 통신을 위한 연결 정보에 기반하여 통신 회로(214)를 통해, 전자 장치(101)로부터 비콘(beacon) 프레임을 수신한 경우, 프로브 요청(probe request) 프레임을 전자 장치(101)로 전송하도록 통신 회로(214)를 제어할 수 있다. 프로세서(212)는 통신 회로(214)를 통해 프로브 응답(probe response) 프레임을 수신할 수 있다. 프로세서(212)는 전자 장치(101)와의 인증을 성공(또는 완료)한 경우, 전자 장치(101)와의 통신 연결이 완료된 것으로 판단할 수 있다. 일예로, OOB 통신은 NFC, 블루투스, BLE, UWB, 무선랜(예: 약 2.4GHz 대역) 및/또는 QR 코드를 포함할 수 있다.According to various embodiments of the present disclosure referring to FIG. 10 , an external electronic device 210 or a processor (eg, the processor 120 of FIG. 1 or the processor 212 of FIG. 2 ), in operation 1001, via a communication circuit 214 Communication with the electronic device 101 may be established. According to an embodiment, the processor 212 may obtain connection information for wireless LAN communication with the electronic device 101 from the electronic device 101 through OOB communication. When a beacon frame is received from the electronic device 101 through the communication circuit 214 based on connection information for wireless LAN communication with the electronic device 101, the processor 212 requests a probe request. ) may control the communication circuit 214 to transmit the frame to the electronic device 101 . Processor 212 may receive a probe response frame through communication circuitry 214 . When authentication with the electronic device 101 succeeds (or is completed), the processor 212 may determine that the communication connection with the electronic device 101 is completed. For example, OOB communication may include NFC, Bluetooth, BLE, UWB, wireless LAN (eg, about 2.4 GHz band) and/or QR code.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1003에서, 전자 장치(101)와 통신 회로(214)의 시간 정보(예: TSF)를 동기화할 수 있다. 일 실시예에 따르면, 프로세서(212)는 비콘 프레임 및/또는 프로브 응답 프레임에 포함된 전자 장치(101)의 TSF에 기반하여 통신 회로(214)의 TSF를 설정할 수 있다. 일예로, 전자 장치(101)의 TSF는 전자 장치(101)에 포함되는 통신 회로(204)의 TSF를 포함할 수 있다.According to various embodiments, in operation 1003, the external electronic device 210 or a processor (eg, the processor 120 or 212) synchronizes time information (eg, TSF) of the electronic device 101 and the communication circuit 214. can do. According to an embodiment, the processor 212 may set the TSF of the communication circuit 214 based on the TSF of the electronic device 101 included in the beacon frame and/or the probe response frame. For example, the TSF of the electronic device 101 may include the TSF of the communication circuit 204 included in the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1005에서, 전자 장치(101)로부터 프레임이 수신되는지 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)의 시간 정보를 포함하는 프레임이 수신되는지 확인할 수 있다. 일예로, 전자 장치(101)의 시간 정보는 전자 장치(101)의 UTC 또는 TSF 중 적어도 하나와 관련된 정보를 포함할 수 있다. 일예로, 전자 장치(101)의 UTC는 전자 장치(101)에 포함되는 프로세서(202)의 UTC를 포함할 수 있다.According to various embodiments, the external electronic device 210 or a processor (eg, the processor 120 or 212 ) may determine whether a frame is received from the electronic device 101 in operation 1005 . According to an embodiment, the processor 212 may check whether a frame including time information of the electronic device 101 is received through the communication circuit 214 . For example, time information of the electronic device 101 may include information related to at least one of UTC and TSF of the electronic device 101 . For example, UTC of the electronic device 101 may include UTC of the processor 202 included in the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 전자 장치(101)로부터 프레임이 수신되지 않는 경우(예: 동작 1005의 '아니오'), 전자 장치(101)와 시간을 동기화하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, the external electronic device 210 or the processor (eg, the processor 120 or 212), when no frame is received from the electronic device 101 (eg, 'No' in operation 1005), the electronic device One embodiment for synchronizing time with (101) may end.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 전자 장치(101)로부터 프레임을 수신한 경우(예: 동작 1005의 '예'), 동작 1007에서, 전자 장치(101)로부터 수신한 프레임에서 전자 장치(101)의 TSF 및 UTC와 관련된 정보를 확인할 수 있다. 일예로, 전자 장치(101)의 UTC는 전자 장치(101)의 TSF에 대응하는 전자 장치(101)의 UTC를 포함할 수 있다.According to various embodiments, when the external electronic device 210 or the processor (eg, the processor 120 or 212) receives a frame from the electronic device 101 (eg, 'Yes' in operation 1005), in operation 1007 , information related to the TSF and UTC of the electronic device 101 may be checked in the frame received from the electronic device 101 . For example, the UTC of the electronic device 101 may include the UTC of the electronic device 101 corresponding to the TSF of the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1009에서, 외부 전자 장치(210)의 TSF를 확인할 수 있다. 일예로, 외부 전자 장치(210)의 TSF는 외부 전자 장치(210)에 포함되는 통신 회로(214)의 TSF를 포함할 수 있다. 예를 들어, 외부 전자 장치(210)의 TSF는 전자 장치(101)로부터 수신된 프레임과 함께 통신 회로(214)로부터 수신될 수 있다. 일예로, 외부 전자 장치(210)의 TSF는 외부 전자 장치(210)의 통신 회로(214)가 전자 장치(101)로부터 프레임을 수신하는 시점에 대응하는 통신 회로(214)의 TSF를 포함할 수 있다. 예를 들어, 외부 전자 장치(210)의 TSF는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(214)로부터 획득될 수 있다. 일예로, 시간 정보와 관련된 요청 메시지는 프로세서(212)가 전자 장치(101)로부터 수신된 프레임을 통신 회로(214)로부터 획득함에 기반하여 발송될 수 있다. 예를 들어, 외부 전자 장치(210)의 TSF는 전자 장치(101)로부터 수신된 프레임을 프로세서(212)가 통신 회로(214)로부터 획득하는 시점에 대응하는 프로세서(212)의 UTC에 기반하여 갱신된 통신 회로(214)의 TSF를 포함할 수 있다. 일예로, 통신 회로(214)의 TSF는 수학식 1에 기반하여 갱신될 수 있다. According to various embodiments, the external electronic device 210 or a processor (eg, the processor 120 or 212 ) may check the TSF of the external electronic device 210 in operation 1009 . For example, the TSF of the external electronic device 210 may include the TSF of the communication circuit 214 included in the external electronic device 210 . For example, the TSF of the external electronic device 210 may be received from the communication circuit 214 together with the frame received from the electronic device 101 . For example, the TSF of the external electronic device 210 may include the TSF of the communication circuit 214 corresponding to the timing at which the communication circuit 214 of the external electronic device 210 receives a frame from the electronic device 101. there is. For example, the TSF of the external electronic device 210 may be obtained from the communication circuit 214 in response to a request message related to time information. For example, a request message related to time information may be sent based on the processor 212 acquiring a frame received from the electronic device 101 from the communication circuit 214 . For example, the TSF of the external electronic device 210 is updated based on the UTC of the processor 212 corresponding to the time point at which the processor 212 acquires the frame received from the electronic device 101 from the communication circuit 214. may include the TSF of the communication circuit 214. As an example, the TSF of the communication circuit 214 may be updated based on Equation 1.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1011에서, 통신 회로(214)의 TSF, 전자 장치(101)의 TSF 및 전자 장치(101)의 UTC에 기반하여 프로세서(212)의 UTC를 보정할 수 있다. 일 실시예에 따르면, 프로세서(212)는 수학식 2와 같이, 통신 회로(214)의 TSF의 변화에 기반하여 프로세서(212)의 UTC를 보정할 수 있다. 일예로, 통신 회로(214)의 TSF의 변화는 전자 장치(101)의 TSF와 동작 1009에서 획득한 통신 회로(214)의 TSF의 차를 포함할 수 있다.According to various embodiments, the external electronic device 210 or the processor (eg, the processor 120 or 212), in operation 1011, the TSF of the communication circuit 214, the TSF of the electronic device 101, and the electronic device 101 UTC of the processor 212 may be corrected based on the UTC of . According to an embodiment, the processor 212 may correct the UTC of the processor 212 based on the change in TSF of the communication circuit 214 as shown in Equation 2. For example, the change in the TSF of the communication circuit 214 may include a difference between the TSF of the electronic device 101 and the TSF of the communication circuit 214 obtained in operation 1009 .

Figure pat00002
Figure pat00002

일예로, AR_curr_UTC는 보정된 프로세서(212)의 UTC를 나타내고, c_UTC는 전자 장치(101)의 UTC를 나타내고, AR_curr_TSF는 동작 1009에서 획득한 통신 회로(214)의 TSF를 나타내고, c_TSF는 전자 장치(101)의 TSF를 나타낼 수 있다.As an example, AR_curr_UTC represents the UTC of the calibrated processor 212, c_UTC represents the UTC of the electronic device 101, AR_curr_TSF represents the TSF of the communication circuit 214 obtained in operation 1009, and c_TSF represents the electronic device ( 101) can indicate the TSF.

도 11은 다양한 실시예에 따른 외부 전자 장치에서 외부 전자 장치의 시간 정보를 갱신하기 위한 흐름도(1100)이다. 일 실시예에 따르면, 도 11의 적어도 일부는 도 10의 동작 1009의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 11의 외부 전자 장치는 도 1의 전자 장치(101) 또는 도 2의 외부 전자 장치(210)일 수 있다.11 is a flowchart 1100 for updating time information of an external electronic device in an external electronic device according to various embodiments. According to an embodiment, at least a part of FIG. 11 may be a detailed operation of operation 1009 of FIG. 10 . In the following embodiments, each operation 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. For example, the external electronic device of FIG. 11 may be the electronic device 101 of FIG. 1 or the external electronic device 210 of FIG. 2 .

도 11을 참조하는 다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(212))는 전자 장치(101)의 TSF 및 UTC를 확인한 경우(예: 도 10의 동작 1007), 동작 1101에서, 외부 전자 장치(210)의 UTC를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 현재 시점에 대응하는 프로세서(212)의 UTC를 확인할 수 있다.According to various embodiments of the present disclosure referring to FIG. 11 , the external electronic device 210 or a processor (eg, the processor 120 of FIG. 1 or the processor 212 of FIG. 2 ) checks the TSF and UTC of the electronic device 101. In this case (eg, operation 1007 of FIG. 10 ), in operation 1101, the UTC of the external electronic device 210 may be checked. According to one embodiment, the processor 212 may check the UTC of the processor 212 corresponding to the current time point.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1103에서, 이전 시점에 획득한 외부 전자 장치의 UTC 및 TSF를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 외부 전자 장치(210)가 구동되거나, 또는 전자 장치(101)와 통신이 연결되는 경우, 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(214)로 전송할 수 있다. 통신 회로(214)는 시간 정보(예: TSF)와 관련된 요청 메시지에 기반하여 트래픽이 발생하는 시점에 대응하는 통신 회로(214)의 TSF와 관련된 정보를 프로세서(212)로 전송할 수 있다. 일예로, 트래픽이 발생하는 시점은 무선랜에 기반한 통신을 통해 전자 장치(101)로부터 프레임(예: 비콘 프레임 및/또는 프로브 응답 프레임)을 수신하는 시점 또는 무선랜에 기반한 통신을 통해 전자 장치(101)로 프레임(예: 프로브 요청 프레임)을 전송하는 시점 중 적어도 하나를 포함할 수 있다. 일 실시예에 따르면, 프로세서(212)는 지정된 개수의 통신 회로(214)의 TSF 및 통신 회로(214)에 대응하는 프로세서(212)의 UTC의 쌍(또는 집합)을 메모리(216)에 저장할 수 있다. 일예로, 이전 시점에 획득한 외부 전자 장치의 UTC 및 TSF는 메모리(216)에 저장된 통신 회로(214)의 TSF 및 통신 회로(214)에 대응하는 프로세서(212)의 UTC 중 적어도 하나를 포함할 수 있다. 일예로, 이전 시점은 동작 1101에서 외부 전자 장치(210)의 UTC를 획득한 시점보다 앞선 시점을 포함할 수 있다.According to various embodiments, in operation 1103, the external electronic device 210 or a processor (eg, the processor 120 or 212) may check the UTC and TSF of the external electronic device acquired at a previous point in time. According to an embodiment, the processor 212 transmits a request message related to time information (eg, TSF) to the communication circuit 214 when the external electronic device 210 is driven or communication is connected with the electronic device 101. ) can be transmitted. The communication circuit 214 may transmit information related to the TSF of the communication circuit 214 corresponding to a time point at which traffic is generated to the processor 212 based on a request message related to time information (eg, TSF). For example, the time at which traffic is generated is when a frame (eg, a beacon frame and/or a probe response frame) is received from the electronic device 101 through communication based on a wireless LAN, or a time when the electronic device 101 through communication based on a wireless LAN ( 101) may include at least one of transmission times of a frame (eg, a probe request frame). According to one embodiment, processor 212 may store in memory 216 a specified number of TSFs of communication circuits 214 and pairs (or sets) of UTCs of processor 212 corresponding to communication circuits 214. there is. For example, the UTC and TSF of the external electronic device obtained at the previous time may include at least one of the TSF of the communication circuit 214 stored in the memory 216 and the UTC of the processor 212 corresponding to the communication circuit 214. can For example, the previous time point may include a time point prior to the time point at which UTC of the external electronic device 210 is obtained in operation 1101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1105에서, 외부 전자 장치(210)의 UTC에 기반하여 이전 시점에 획득한 외부 전자 장치(210)의 TSF를 갱신할 수 있다. 일 실시예에 따르면, 프로세서(212)는 수학식 1과 같이, 프로세서(212)의 UTC의 변화에 기반하여 통신 회로(214)의 TSF를 갱신할 수 있다. 일예로, 프로세서(212)의 UTC의 변화는 프로세서(212)가 통신 회로(214)의 TSF를 획득하는 시점에 대응하는 프로세서(212)의 UTC와 동작 1101에서 획득한 프로세서(212)의 UTC의 차를 포함할 수 있다.According to various embodiments, in operation 1105, the external electronic device 210 or a processor (eg, the processor 120 or 212) obtains the external electronic device 210 based on the UTC of the external electronic device 210 at a previous time. ) can update the TSF. According to an embodiment, the processor 212 may update the TSF of the communication circuit 214 based on the change in UTC of the processor 212 as shown in Equation 1. For example, the change in UTC of the processor 212 is the difference between the UTC of the processor 212 corresponding to the time when the processor 212 acquires the TSF of the communication circuit 214 and the UTC of the processor 212 obtained in operation 1101. May contain tea.

도 12는 다양한 실시예에 따른 외부 전자 장치에서 통신 회로의 시간 정보를 획득하기 위한 흐름도(1200)이다. 일 실시예에 따르면, 도 12의 적어도 일부는 도 10의 동작 1005, 동작 1007 및 동작 1009의 상세한 동작일 수 있다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 12의 외부 전자 장치는 도 1의 전자 장치(101) 또는 도 2의 외부 전자 장치(210)일 수 있다.12 is a flowchart 1200 for obtaining time information of a communication circuit in an external electronic device according to various embodiments. According to an embodiment, at least a part of FIG. 12 may be detailed operations of operations 1005, 1007, and 1009 of FIG. 10 . In the following embodiments, each operation 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. As an example, the external electronic device of FIG. 12 may be the electronic device 101 of FIG. 1 or the external electronic device 210 of FIG. 2 .

도 12를 참조하는 다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 도 1의 무선 통신 모듈(192) 또는 도 2의 통신 회로(214))는 전자 장치(101)와 통신 회로(214)의 시간 정보(예: TSF)를 동기화한 경우(예: 도 10의 동작 1003), 동작 1201에서, 전자 장치(101)로부터 프레임이 수신되는지 확인할 수 있다. According to various embodiments of the present disclosure referring to FIG. 12 , an external electronic device 210 or a communication circuit (eg, the wireless communication module 192 of FIG. 1 or the communication circuit 214 of FIG. 2 ) communicates with the electronic device 101 . When time information (eg, TSF) of the circuit 214 is synchronized (eg, operation 1003 of FIG. 10 ), in operation 1201 , it may be checked whether a frame is received from the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 무선 통신 모듈(192) 또는 통신 회로(214))는 전자 장치(101)로부터 프레임이 수신되지 않는 경우(예: 동작 1201의 '아니오'), 전자 장치(101)와 시간을 동기화하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, the external electronic device 210 or the communication circuit (eg, the wireless communication module 192 or the communication circuit 214) may not receive a frame from the electronic device 101 (eg, in operation 1201). 'No'), an embodiment for synchronizing the time with the electronic device 101 may be terminated.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 무선 통신 모듈(192) 또는 통신 회로(214))는 전자 장치(101)로부터 프레임을 수신한 경우(예: 동작 1201의 '예'), 동작 1203에서, 전자 장치(101)로부터 수신한 프레임이 전자 장치(101)의 시간 정보를 포함하는지 확인할 수 있다. 일 실시예에 따르면, 전자 장치(101)의 시간 정보를 포함하는 프레임은 지정된 형태의 프레임(예: action frame 및/또는 management frame)으로 구성될 수 있다. 통신 회로(214)는 전자 장치(101)로부터 지정된 형태의 프레임을 수신한 경우, 해당 프레임이 전자 장치(101)의 시간 정보를 포함하는 것으로 판단할 수 있다. According to various embodiments, when the external electronic device 210 or the communication circuit (eg, the wireless communication module 192 or the communication circuit 214) receives a frame from the electronic device 101 (eg, operation 1201 ' Yes'), in operation 1203, it may be checked whether the frame received from the electronic device 101 includes time information of the electronic device 101. According to an embodiment, a frame including time information of the electronic device 101 may be configured as a frame of a specified type (eg, an action frame and/or a management frame). When receiving a frame of a specified type from the electronic device 101 , the communication circuit 214 may determine that the corresponding frame includes time information of the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 무선 통신 모듈(192) 또는 통신 회로(214))는 전자 장치(101)로부터 수신한 프레임이 전자 장치(101)의 시간 정보를 포함하는 경우(예: 동작 1203의 '예'), 동작 1205에서, 전자 장치(101)로부터 프레임을 수신한 시점에 대응하는 외부 전자 장치(210)의 TSF를 확인할 수 있다.According to various embodiments, the external electronic device 210 or the communication circuit (eg, the wireless communication module 192 or the communication circuit 214) determines that the frame received from the electronic device 101 is the time information of the electronic device 101. (eg, 'Yes' in operation 1203), in operation 1205, the TSF of the external electronic device 210 corresponding to the time of receiving the frame from the electronic device 101 may be checked.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 무선 통신 모듈(192) 또는 통신 회로(214))는 동작 1207에서, 전자 장치(101)로부터 수신한 프레임 및 외부 전자 장치(210)의 TSF와 관련된 정보를 외부 전자 장치(210)의 프로세서(212)로 전송할 수 있다. 일 실시예에 따르면, 프로세서(212)는 전자 장치(101)의 시간 정보를 포함하는 프레임과 함께 수신된 외부 전자 장치(210)의 TSF와 관련된 정보에 기반하여 외부 전자 장치(210)의 UTC를 보정할 수 있다.According to various embodiments, the external electronic device 210 or the communication circuit (eg, the wireless communication module 192 or the communication circuit 214), in operation 1207, receives the frame received from the electronic device 101 and the external electronic device ( Information related to the TSF of 210 may be transmitted to the processor 212 of the external electronic device 210 . According to an embodiment, the processor 212 determines UTC of the external electronic device 210 based on TSF-related information of the external electronic device 210 received along with a frame including time information of the electronic device 101. can be corrected

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 통신 회로(예: 무선 통신 모듈(192) 또는 통신 회로(214))는 전자 장치(101)로부터 수신한 프레임이 전자 장치(101)의 시간 정보를 포함하지 않는 경우(예: 동작 1203의 '아니오'), 동작 1209에서, 전자 장치(101)로부터 수신한 프레임을 외부 전자 장치(210)의 프로세서(212)로 전송할 수 있다. 일 실시예에 따르면, 프로세서(212)는 시간 정보와 관련된 요청 메시지를 통신 회로(214)로 전송함으로써, 외부 전자 장치(210)의 TSF와 관련된 정보를 획득할 수 있다. 일 실시예에 따르면, 프로세서(212)는 전자 장치(101)로부터 수신된 프레임을 프로세서(212)가 통신 회로(214)로부터 획득하는 시점에 대응하는 프로세서(212)의 UTC에 기반하여 이전 시점에 획득된 외부 전자 장치(210)의 TSF를 갱신할 수 있다. According to various embodiments, the external electronic device 210 or the communication circuit (eg, the wireless communication module 192 or the communication circuit 214) determines that the frame received from the electronic device 101 is the time information of the electronic device 101. is not included (eg, 'No' in operation 1203), in operation 1209, the frame received from the electronic device 101 may be transmitted to the processor 212 of the external electronic device 210. According to an embodiment, the processor 212 may acquire information related to the TSF of the external electronic device 210 by transmitting a request message related to time information to the communication circuit 214 . According to an embodiment, the processor 212 is configured to obtain a frame received from the electronic device 101 at a previous time based on UTC of the processor 212 corresponding to a time when the processor 212 acquires the frame from the communication circuit 214. The acquired TSF of the external electronic device 210 may be updated.

도 13은 다양한 실시예에 따른 전자 장치에서 통신 회로의 시간 정보를 외부 전자 장치로 전송하기 위한 흐름도(1300)이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 13의 전자 장치는 도 1 또는 도 2의 전자 장치(101)일 수 있다.13 is a flowchart 1300 for transmitting time information of a communication circuit from an electronic device to an external electronic device according to various embodiments. In the following embodiments, each operation 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. As an example, the electronic device of FIG. 13 may be the electronic device 101 of FIG. 1 or 2 .

도 13을 참조하는 다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))는 동작 1301에서, 무선랜에 기반하여 외부 전자 장치(210)와 통신을 연결할 수 있다. 일 실시예에 따르면, 프로세서(202)는 OOB 통신을 통해 무선랜을 통해 전자 장치(101)와 연결(예: 직접 연결) 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 프로세서(202)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 무선랜을 통해 외부 전자 장치(210)와 통신을 연결하도록 통신 회로(204)를 제어할 수 있다. 일예로, OOB 통신은 NFC, 블루투스, BLE, UWB, 무선랜(예: 약 2.4GHz 대역) 및/또는 QR 코드를 포함할 수 있다. According to various embodiments of the present disclosure referring to FIG. 13 , the electronic device 101 or a processor (eg, the processor 120 of FIG. 1 or the processor 202 of FIG. 2 ) in operation 1301 operates an external electronic device based on a wireless LAN. (210) and communication can be connected. According to an embodiment, the processor 202 may check whether an external electronic device 210 capable of being connected to the electronic device 101 through a wireless LAN through OOB communication (eg, direct connection) exists. When an external electronic device 210 connectable to the electronic device 101 is detected, the processor 202 may control the communication circuit 204 to establish communication with the external electronic device 210 through a wireless LAN. For example, OOB communication may include NFC, Bluetooth, BLE, UWB, wireless LAN (eg, about 2.4 GHz band) and/or QR code.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 1303에서, 외부 전자 장치(210)로 전송할 프레임이 존재하는지 확인할 수 있다.According to various embodiments, the electronic device 101 or a processor (eg, the processor 120 or 202 ) may check whether a frame to be transmitted to the external electronic device 210 exists in operation 1303 .

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)로 전송할 프레임이 존재하지 않는 경우(예: 동작 1303의 '아니오'), 통신 회로(204)의 시간 정보를 외부 전자 장치로 전송하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, the electronic device 101 or the processor (eg, the processor 120 or 202) communicates when there is no frame to be transmitted to the external electronic device 210 (eg, 'No' in operation 1303). An embodiment for transmitting the time information of the circuit 204 to an external electronic device may be completed.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 외부 전자 장치(210)로 전송할 프레임이 존재하는 경우(예: 동작 1303의 '예'), 동작 1305에서, 현재 시점에 대응하는 전자 장치(101)에 포함되는 프로세서(202)의 UTC를 확인할 수 있다. According to various embodiments, when the electronic device 101 or the processor (eg, the processor 120 or 202) has a frame to be transmitted to the external electronic device 210 (eg, 'Yes' in operation 1303), operation 1305 In , UTC of the processor 202 included in the electronic device 101 corresponding to the current time point can be checked.

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 1307에서, 프로세서(202)의 UTC에 대응하는 통신 회로(204)의 TSF를 획득할 수 있다. 일 실시예에 따르면, 프로세서(202)는 메모리(206)에서 이전 시점에 통신 회로(204)로부터 획득한 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 프로세서(202)는 수학식 1과 같이, 프로세서(202)의 UTC의 변화에 기반하여 이전 시점에 획득한 통신 회로(204)의 TSF를 갱신함으로써, 프로세서(202)의 UTC에 대응하는 통신 회로(204)의 TSF를 획득할 수 있다. 일예로, 프로세서(202)의 UTC의 변화는 프로세서(202)가 통신 회로(204)의 TSF를 획득하는 시점에 대응하는 프로세서(202)의 UTC와 동작 1305에서 확인한 프로세서(202)의 UTC의 차를 포함할 수 있다.According to various embodiments, the electronic device 101 or a processor (eg, the processor 120 or 202 ) may obtain the TSF of the communication circuit 204 corresponding to the UTC of the processor 202 in operation 1307 . According to one embodiment, the processor 202 has a TSF of the communication circuit 204 obtained from the communication circuit 204 at a previous point in time in the memory 206 and a TSF of the communication circuit 204 corresponding to the TSF of the communication circuit 204. You can check UTC. As shown in Equation 1, the processor 202 updates the TSF of the communication circuit 204 obtained at a previous point in time based on the change in UTC of the processor 202, so that the communication circuit corresponding to UTC of the processor 202 ( 204) can be obtained. For example, the change in UTC of the processor 202 is the difference between the UTC of the processor 202 corresponding to the time when the processor 202 obtains the TSF of the communication circuit 204 and the UTC of the processor 202 determined in operation 1305. can include

다양한 실시예에 따르면, 전자 장치(101) 또는 프로세서(예: 프로세서(120 또는 202))는 동작 1309에서, 통신 회로(204)의 TSF와 관련된 정보를 포함하는 프레임(예: 데이터 프레임)을 외부 전자 장치(210)로 전송할 수 있다. 일 실시예에 따르면, 프로세서(202)는 동작 1307에서 획득한 통신 회로(204)의 TSF와 관련된 정보를 포함하는 프레임을 외부 전자 장치(210)로 전송하도록 통신 회로(204)를 제어할 수 있다. According to various embodiments, in operation 1309, the electronic device 101 or a processor (eg, the processor 120 or 202) transmits a frame (eg, a data frame) including information related to the TSF of the communication circuit 204 to the outside. It can be transmitted to the electronic device 210. According to an embodiment, the processor 202 may control the communication circuit 204 to transmit a frame including information related to the TSF of the communication circuit 204 acquired in operation 1307 to the external electronic device 210. .

도 14는 다양한 실시예에 따른 외부 전자 장치에서 전자 장치와 시간을 동기화하기 위한 흐름도(1400)의 다른 일예이다. 이하 실시예에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다. 일예로, 도 14의 외부 전자 장치는 도 1의 전자 장치(101) 또는 도 2의 외부 전자 장치(210)일 수 있다.14 is another example of a flowchart 1400 for synchronizing time with an external electronic device in an external electronic device according to various embodiments. In the following embodiments, each operation 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. As an example, the external electronic device of FIG. 14 may be the electronic device 101 of FIG. 1 or the external electronic device 210 of FIG. 2 .

도 14를 참조하는 다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(212))는 동작 1401에서, 무선랜에 기반하여 전자 장치(101)와 통신을 연결할 수 있다. 일 실시예에 따르면, 프로세서(212)는 OOB 통신을 통해 전자 장치(101)로부터 전자 장치(101)와의 무선랜 통신을 위한 연결 정보를 획득할 수 있다. 프로세서(212)는 전자 장치(101)와의 무선랜 통신을 위한 연결 정보에 기반하여 통신 회로(214)를 통해, 전자 장치(101)로부터 비콘(beacon) 프레임을 수신한 경우, 프로브 요청(probe request) 프레임을 전자 장치(101)로 전송하도록 통신 회로(214)를 제어할 수 있다. 프로세서(212)는 통신 회로(214)를 통해 프로브 응답(probe response) 프레임을 수신할 수 있다. 프로세서(212)는 전자 장치(101)와의 인증을 성공(또는 완료)한 경우, 전자 장치(101)와의 통신 연결이 완료된 것으로 판단할 수 있다. According to various embodiments of the present disclosure referring to FIG. 14 , an external electronic device 210 or a processor (eg, the processor 120 of FIG. 1 or the processor 212 of FIG. 2 ), in operation 1401, the electronic device based on the wireless LAN. (101) and communication can be connected. According to an embodiment, the processor 212 may obtain connection information for wireless LAN communication with the electronic device 101 from the electronic device 101 through OOB communication. When a beacon frame is received from the electronic device 101 through the communication circuit 214 based on connection information for wireless LAN communication with the electronic device 101, the processor 212 requests a probe request. ) may control the communication circuit 214 to transmit the frame to the electronic device 101 . Processor 212 may receive a probe response frame through communication circuitry 214 . When authentication with the electronic device 101 succeeds (or is completed), the processor 212 may determine that the communication connection with the electronic device 101 is completed.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1403에서, 전자 장치(101)로부터 프레임이 수신되는지 확인할 수 있다. According to various embodiments, the external electronic device 210 or a processor (eg, the processor 120 or 212 ) may determine whether a frame is received from the electronic device 101 in operation 1403 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 전자 장치(101)로부터 프레임이 수신되지 않는 경우(예: 동작 1403의 '아니오'), 전자 장치와 시간을 동기화하기 위한 일 실시예를 종료할 수 있다.According to various embodiments, the external electronic device 210 or the processor (eg, the processor 120 or 212), when a frame is not received from the electronic device 101 (eg, 'No' in operation 1403), the electronic device One embodiment for synchronizing time with may end.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 전자 장치(101)로부터 프레임을 수신한 경우(예: 동작 1403의 '예'), 동작 1405에서, 전자 장치(101)로부터 수신한 프레임에서 전자 장치(101)의 TSF와 관련된 정보를 확인할 수 있다. According to various embodiments, when the external electronic device 210 or the processor (eg, the processor 120 or 212) receives a frame from the electronic device 101 (eg, 'Yes' in operation 1403), in operation 1405 , information related to the TSF of the electronic device 101 may be checked in the frame received from the electronic device 101 .

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1407에서, 외부 전자 장치(210)의 UTC에 대응하는 외부 전자 장치의 TSF를 획득할 수 있다. 일 실시예에 따르면, 프로세서(212)는 현재 시점에 대응하는 프로세서(212)의 UTC를 외부 전자 장치(210)의 UTC로 판단할 수 있다. 일예로, 현재 시점은 프로세서(212)가 전자 장치(101)의 TSF를 확인하는 시점을 포함할 수 있다. 프로세서(212)는 메모리(216)에서 이전 시점에 통신 회로(214)로부터 획득한 외부 전자 장치(210)의 TSF 및 외부 전자 장치의 TSF에 대응하는 외부 전자 장치(210)의 UTC를 확인할 수 있다. 프로세서(212)는 수학식 1과 같이, 외부 전자 장치(210)의 UTC의 변화에 기반하여 이전 시점에 획득한 외부 전자 장치(210)의 TSF를 갱신함으로써, 외부 전자 장치(210)의 UTC에 대응하는 외부 전자 장치의 TSF를 획득할 수 있다. 일예로, 외부 전자 장치(210)의 UTC의 변화는 이전 시점에 획득한 외부 전자 장치의 TSF에 대응하는 외부 전자 장치(210)의 UTC와 현재 시점에 대응하는 외부 전자 장치(210)의 UTC의 차를 포함할 수 있다.According to various embodiments, the external electronic device 210 or a processor (eg, the processor 120 or 212) may obtain the TSF of the external electronic device corresponding to the UTC of the external electronic device 210 in operation 1407. . According to an embodiment, the processor 212 may determine the UTC of the processor 212 corresponding to the current time point as the UTC of the external electronic device 210 . For example, the current time point may include a time point at which the processor 212 checks the TSF of the electronic device 101 . The processor 212 may check the TSF of the external electronic device 210 obtained from the communication circuit 214 at a previous time in the memory 216 and the UTC of the external electronic device 210 corresponding to the TSF of the external electronic device. . As shown in Equation 1, the processor 212 updates the TSF of the external electronic device 210 obtained at a previous time based on the change in UTC of the external electronic device 210, thereby determining the UTC of the external electronic device 210. A TSF of a corresponding external electronic device may be acquired. For example, the change in UTC of the external electronic device 210 is the difference between UTC of the external electronic device 210 corresponding to the TSF of the external electronic device obtained at a previous time point and UTC of the external electronic device 210 corresponding to the current time point. May contain tea.

다양한 실시예에 따르면, 외부 전자 장치(210) 또는 프로세서(예: 프로세서(120 또는 212))는 동작 1409에서, 전자 장치(101)의 TSF 및 외부 전자 장치(210)의 TSF에 기반하여 전자 장치(101)가 프레임을 전송한 시점과 외부 전자 장치(210)가 프레임을 수신한 시점의 차이를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 전자 장치(101)의 TSF과 동작 1407에서 획득한 외부 전자 장치(210)의 TSF의 차에 기반하여 프레임이 전자 장치(101)에서 전송된 시점과 외부 전자 장치(210)에서 수신된 시점의 차이를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 프레임이 전자 장치(101)에서 전송된 시점과 외부 전자 장치(210)에서 수신된 시점의 차이에 기반하여 외부 전자 장치(210)에서 콘텐트(예: 이미지)를 출력하기 위한 시점을 보정할 수 있다. According to various embodiments, the external electronic device 210 or the processor (eg, the processor 120 or 212), in operation 1409, based on the TSF of the electronic device 101 and the TSF of the external electronic device 210, the electronic device A difference between the time point 101 transmits the frame and the time point external electronic device 210 receives the frame can be confirmed. According to an embodiment, the processor 212 determines the time when the frame is transmitted from the electronic device 101 and the external device 210 based on the difference between the TSF of the electronic device 101 and the TSF of the external electronic device 210 obtained in operation 1407. The electronic device 210 may check the difference in received time. According to an embodiment, the processor 212 converts content (eg, an image) from the external electronic device 210 based on a difference between a time when a frame is transmitted from the electronic device 101 and a time when the frame is received from the external electronic device 210 . ) can be calibrated.

도 15는 다양한 실시예에 따른 전자 장치에서 외부 전자 장치와 시간을 동기화하기 위한 다른 일예이다.15 is another example of synchronizing time with an external electronic device in an electronic device according to various embodiments.

도 15를 참조하는 다양한 실시예에 따르면, 동작 1511에서, 전자 장치(101)는 무선랜에 기반하여 외부 전자 장치(210)와 통신을 연결할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 OOB 통신을 통해 무선랜을 통해 전자 장치(101)와 연결(예: 직접 연결) 가능한 외부 전자 장치(210)가 존재하는지 확인할 수 있다. 전자 장치(101)는 전자 장치(101)와 연결 가능한 외부 전자 장치(210)가 검출된 경우, 무선랜을 통해 외부 전자 장치(210)와 통신을 연결할 수 있다.According to various embodiments of the present disclosure referring to FIG. 15 , in operation 1511, the electronic device 101 may connect communication with the external electronic device 210 based on a wireless LAN. According to an embodiment, the electronic device 101 may check whether an external electronic device 210 capable of being connected to the electronic device 101 through a wireless LAN through OOB communication (eg, direct connection) exists. When an external electronic device 210 connectable to the electronic device 101 is detected, the electronic device 101 may communicate with the external electronic device 210 through a wireless LAN.

다양한 실시예에 따르면, 동작 1513에서, 전자 장치(101)의 프로세서(202)는 무선랜을 통해 외부 전자 장치(210)와 통신이 연결된 경우, 통신 회로(204)의 TSF를 획득할 수 있다. 일 실시예에 따르면, 프로세서(202)는 외부 전자 장치(210)와의 시간 동기화를 필요로 하는 어플리케이션 프로그램(또는 기능)의 실행 또는 외부 전자 장치(210)와의 통신 연결에 기반하여 시간 정보(예: TSF)와 관련된 요청 메시지를 통신 회로(204)로 전송할 수 있다. 일 실시예에 따르면, 통신 회로(204)는 시간 정보와 관련된 요청 메시지에 대한 응답으로 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 예를 들어, 통신 회로(204)는 시간 정보와 관련된 요청 메시지를 수신한 시점에 대응하는 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. 예를 들어, 통신 회로(204)는 무선랜에 기반한 통신을 통해 외부 전자 장치(210)와 관련된 트래픽이 발생하는 경우, 트래픽이 발생하는 시점에 대응하는 통신 회로(204)의 TSF와 관련된 정보를 프로세서(202)로 전송할 수 있다. According to various embodiments, in operation 1513, the processor 202 of the electronic device 101 may obtain the TSF of the communication circuit 204 when communication is connected with the external electronic device 210 through a wireless LAN. According to an embodiment, the processor 202 may provide time information (eg: TSF) may be transmitted to the communication circuit 204. According to one embodiment, the communication circuitry 204 may transmit information related to the TSF of the communication circuitry 204 to the processor 202 in response to a request message related to time information. For example, the communication circuit 204 may transmit information related to the TSF of the communication circuit 204 corresponding to the time of receiving the request message related to the time information to the processor 202 . For example, when traffic related to the external electronic device 210 occurs through wireless LAN-based communication, the communication circuit 204 transmits information related to the TSF of the communication circuit 204 corresponding to the time when the traffic is generated. to the processor 202.

다양한 실시예에 따르면, 동작 1515에서, 전자 장치(101)의 프로세서(202)는 외부 전자 장치(210)로 전송할 프레임이 존재하는 경우, 현재 시점에 대응하는 프로세서(202)의 UTC에 기반하여 통신 회로(204)의 TSF를 갱신할 수 있다. 일 실시예에 따르면, 프로세서(202)는 메모리(206)에서 이전 시점(예: 동작 1513)에 통신 회로(204)로부터 획득한 통신 회로(204)의 TSF 및 통신 회로(204)의 TSF에 대응하는 프로세서(202)의 UTC를 확인할 수 있다. 프로세서(202)는 수학식 1과 같이, 프로세서(202)의 UTC의 변화에 기반하여 이전 시점에 획득한 통신 회로(204)의 TSF를 갱신할 수 있다. 일예로, 프로세서(202)의 UTC의 변화는 프로세서(202)가 통신 회로(204)의 TSF를 획득하는 시점에 대응하는 프로세서(202)의 UTC와 현재 시점에 확인한 프로세서(202)의 UTC의 차를 포함할 수 있다.According to various embodiments, in operation 1515, if there is a frame to be transmitted to the external electronic device 210, the processor 202 of the electronic device 101 communicates based on the UTC of the processor 202 corresponding to the current time point. The TSF of circuit 204 can be updated. According to one embodiment, the processor 202 corresponds to the TSF of the communication circuit 204 and the TSF of the communication circuit 204 obtained from the communication circuit 204 at a previous point in time (eg, operation 1513) in the memory 206. UTC of the processor 202 may be checked. As shown in Equation 1, the processor 202 may update the TSF of the communication circuit 204 obtained at a previous time based on the change in UTC of the processor 202. For example, the change in UTC of the processor 202 is the difference between the UTC of the processor 202 corresponding to the time when the processor 202 obtains the TSF of the communication circuit 204 and the UTC of the processor 202 confirmed at the current time. can include

다양한 실시예에 따르면, 동작 1517에서, 전자 장치(101)의 프로세서(202)는 통신 회로(204)의 갱신된 TSF와 관련된 정보를 포함하는 프레임을 통신 회로(204)를 통해 외부 전자 장치(210)로 전송할 수 있다.According to various embodiments, in operation 1517, the processor 202 of the electronic device 101 transmits a frame including information related to the updated TSF of the communication circuit 204 to the external electronic device 210 via the communication circuit 204. ) can be transmitted.

다양한 실시예에 따르면, 동작 1519에서, 외부 전자 장치(210)의 프로세서(212)는 통신 회로(214)를 통해 전자 장치(101)로부터 수신한 프레임에서 전자 장치(101)의 시간 정보(예: 통신 회로(204)의 갱신된 TSF)를 획득할 수 있다. 다양한 실시예에 따르면, 동작 1521에서, 외부 전자 장치(210)의 프로세서(212)는 전자 장치(101)의 시간 정보에 기반하여 프레임의 전송 시점과 수신 시점의 차이를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 현재 시점에 대응하는 외부 전자 장치(210)의 UTC를 확인할 수 있다. 일예로, 현재 시점은 프로세서(212)가 전자 장치(101)의 TSF를 확인하는 시점을 포함할 수 있다. 일 실시예에 따르면, 프로세서(212)는 현재 시점에 대응하는 외부 전자 장치(210)의 UTC에 기반하여 외부 전자 장치(210)의 TSF를 추정할 수 있다. 예를 들어, 프로세서(212)는 이전 시점에 통신 회로(214)로부터 획득한 외부 전자 장치(210)의 TSF를 외부 전자 장치의 TSF에 대응하는 외부 전자 장치(210)의 UTC와 현재 시점에 대응하는 외부 전자 장치(210)의 UTC의 차에 기반하여 갱신함으로써, 외부 전자 장치(210)의 TSF를 추정할 수 있다. 일 실시예에 따르면, 프로세서(212)는 전자 장치(101)의 TSF과 외부 전자 장치(210)의 TSF의 차에 기반하여 전자 장치(101)가 프레임을 전송한 시점과 외부 전자 장치(210)가 프레임을 수신한 시점의 차이를 확인할 수 있다. 일 실시예에 따르면, 프로세서(212)는 프레임이 전자 장치(101)에서 전송된 시점과 외부 전자 장치(210)에서 수신된 시점의 차이에 기반하여 외부 전자 장치(210)에서 콘텐트를 출력하기 위한 시점을 보정할 수 있다.According to various embodiments, in operation 1519, the processor 212 of the external electronic device 210 receives time information of the electronic device 101 (eg: An updated TSF of the communication circuit 204 can be obtained. According to various embodiments, in operation 1521, the processor 212 of the external electronic device 210 may determine a difference between a transmission time and a reception time of a frame based on the time information of the electronic device 101. According to an embodiment, the processor 212 may check the UTC of the external electronic device 210 corresponding to the current time point. For example, the current time point may include a time point at which the processor 212 checks the TSF of the electronic device 101 . According to an embodiment, the processor 212 may estimate the TSF of the external electronic device 210 based on the UTC of the external electronic device 210 corresponding to the current time point. For example, the processor 212 corresponds to the TSF of the external electronic device 210 obtained from the communication circuit 214 at a previous point in time with the UTC of the external electronic device 210 corresponding to the TSF of the external electronic device and the current point in time. The TSF of the external electronic device 210 may be estimated by updating based on the difference between UTCs of the external electronic device 210. According to an embodiment, the processor 212 determines the timing at which the electronic device 101 transmits the frame and the external electronic device 210 based on the difference between the TSF of the electronic device 101 and the TSF of the external electronic device 210. It is possible to check the difference in the time point at which the frame is received. According to an embodiment, the processor 212 is configured to output content from the external electronic device 210 based on a difference between when the frame is transmitted from the electronic device 101 and when the frame is received by the external electronic device 210. point of view can be corrected.

다양한 실시예에 따르면, 통신 회로(예: 도 1의 무선 통신 모듈(192) 또는 도 2의 통신 회로(204)) 및 프로세서(예: 도 1의 프로세서(120) 또는 도 2의 프로세서(202))를 포함하는 전자 장치(예: 도 1 또는 도 2의 전자 장치(101))의 동작 방법은, 무선랜 통신을 통해 외부 전자 장치와 통신을 연결하는 동작과 상기 프로세서에서 상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작과 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하는 동작 및 상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 외부 전자 장치로 전송하는 동작을 포함할 수 있다.According to various embodiments, a communication circuit (eg, wireless communication module 192 of FIG. 1 or communication circuit 204 of FIG. 2 ) and a processor (eg, processor 120 of FIG. 1 or processor 202 of FIG. 2 ) A method of operating an electronic device (eg, the electronic device 101 of FIG. 1 or 2) including a) includes an operation of connecting communication with an external electronic device through wireless LAN communication and management by the communication circuit in the processor. A frame including an operation of acquiring time information, an operation of checking time information managed by the processor corresponding to the time information managed by the communication circuit, and the time information managed by the communication circuit and the time information managed by the processor. may include an operation of transmitting to the external electronic device.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작은, 상기 프로세서가 상기 외부 전자 장치와의 시간 동기화를 지원하는 기능 및/또는 어플리케이션 프로그램의 실행에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하는 동작 및 상기 프로세서가 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하는 동작을 포함할 수 있다.According to various embodiments, the operation of obtaining time information managed by the communication circuit may include a request related to time information based on a function for supporting time synchronization with the external electronic device and/or execution of an application program by the processor. The method may include transmitting a message to the communication circuit and receiving, by the processor, time information managed by the communication circuit from the communication circuit in response to the request message.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보는, 상기 무선랜을 통해 상기 외부 전자 장치와 송신 및/또는 수신하는 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 포함할 수 있다.According to various embodiments, the time information managed by the communication circuit may include time information managed by the communication circuit related to frames transmitted and/or received with the external electronic device through the wireless LAN.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작은, 상기 프로세서가 상기 외부 전자 장치와의 통신 연결에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하는 동작 및 상기 프로세서가 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하는 동작을 포함할 수 있다.According to various embodiments, the obtaining of the time information managed by the communication circuit may include transmitting, by the processor, a request message related to time information to the communication circuit based on a communication connection with the external electronic device; The processor may receive, from the communication circuit, time information managed by the communication circuit in response to the request message.

다양한 실시예에 따르면, 상기 외부 전자 장치로 전송하는 동작은, 상기 프로세서가 상기 통신 회로로부터 획득한 상기 통신 회로에서 관리하는 시간 정보 및 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보에 기반하여 상기 프레임을 전송하는 시점에 대응하는 상기 통신 회로에서 관리하는 시간 정보를 추정하는 동작 및 상기 추정된 통신 회로에서 관리하는 시간 정보 및 상기 추정된 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 상기 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하는 동작을 포함할 수 있다.According to various embodiments, the operation of transmitting to the external electronic device may include time information managed by the communication circuit obtained by the processor from the communication circuit and time information managed by the processor corresponding to the time information managed by the communication circuit. An operation of estimating time information managed by the communication circuit corresponding to a point in time at which the frame is transmitted based on time information and corresponding to the time information managed by the estimated communication circuit and the time information managed by the estimated communication circuit and transmitting the time information managed by the processor to the external electronic device through the communication circuit.

다양한 실시예에 따르면, 상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고, 상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함할 수 있다.According to various embodiments, the time information managed by the communication circuit may include a time synchronization function (TSF), and the time information managed by the processor may include universal time coordinated or coordinated universal time (UTC). .

본 명세서와 도면에 개시된 본 발명의 실시예는 본 발명의 실시예에 따른 기술 내용을 쉽게 설명하고 본 발명의 실시예의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 발명의 실시예의 범위를 한정하고자 하는 것은 아니다. 따라서 본 발명의 다양한 실시예의 범위는 여기에 개시된 실시예 이외에도 본 발명의 다양한 실시예의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 발명의 다양한 실시예의 범위에 포함되는 것으로 해석되어야 한다. The embodiments of the present invention disclosed in the present specification and drawings are only presented as specific examples to easily explain the technical content according to the embodiments of the present invention and help understanding of the embodiments of the present invention, and limit the scope of the embodiments of the present invention. It's not what I want to do. Therefore, the scope of various embodiments of the present invention should be construed as including all changes or modified forms derived based on the technical spirit of various embodiments of the present invention in addition to the embodiments disclosed herein are included in the scope of various embodiments of the present invention.

Claims (20)

전자 장치에 있어서,
무선랜 통신을 지원하는 통신 회로, 및
상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함하며,
상기 적어도 하나의 프로세서는,
상기 통신 회로를 통해 외부 전자 장치와 통신을 연결하고,
상기 통신 회로에서 관리하는 시간 정보를 획득하고,
상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하고,
상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하는 전자 장치.
In electronic devices,
A communication circuit supporting wireless LAN communication, and
at least one processor in operative connection with the communication circuitry;
The at least one processor,
Connecting communication with an external electronic device through the communication circuit;
obtaining time information managed by the communication circuit;
Checking time information managed by the processor corresponding to time information managed by the communication circuit;
An electronic device that transmits a frame including time information managed by the communication circuit and time information managed by the processor to the external electronic device through the communication circuit.
제 1항에 있어서,
상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 시간 동기화를 지원하는 기능 및/또는 어플리케이션 프로그램의 실행에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고,
상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하고,
상기 통신 회로에서 관리하는 시간 정보의 수신 시점에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하는 전자 장치.
According to claim 1,
The at least one processor transmits a request message related to time information to the communication circuit based on a function supporting time synchronization with the external electronic device and/or execution of an application program;
receiving time information managed by the communication circuit from the communication circuit in response to the request message;
An electronic device for checking time information managed by the processor corresponding to a reception point of time information managed by the communication circuit.
제 2항에 있어서,
상기 통신 회로는, 상기 무선랜을 통해 상기 외부 전자 장치와 프레임을 송신 및/또는 수신하는 경우, 상기 요청 신호에 대한 응답으로 상기 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 상기 프로세서로 전송하는 전자 장치.
According to claim 2,
The communication circuit transmits time information managed by the communication circuit related to the frame to the processor in response to the request signal when transmitting and/or receiving a frame with the external electronic device through the wireless LAN. electronic device.
제 1항에 있어서,
상기 적어도 하나의 프로세서는, 상기 외부 전자 장치와의 통신 연결에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고,
상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하고,
상기 통신 회로에서 관리하는 시간 정보의 수신 시점에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하는 전자 장치.
According to claim 1,
The at least one processor transmits a request message related to time information to the communication circuit based on a communication connection with the external electronic device;
receiving time information managed by the communication circuit from the communication circuit in response to the request message;
An electronic device for checking time information managed by the processor corresponding to a reception point of time information managed by the communication circuit.
제 1항에 있어서,
상기 적어도 하나의 프로세서는, 상기 통신 회로로부터 획득한 상기 통신 회로에서 관리하는 시간 정보 및 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보에 기반하여 상기 프레임을 전송하는 시점에 대응하는 상기 통신 회로에서 관리하는 시간 정보를 추정하고,
상기 추정된 통신 회로에서 관리하는 시간 정보 및 상기 추정된 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 포함하는 상기 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하는 전자 장치.
According to claim 1,
The at least one processor transmits the frame based on time information managed by the communication circuit obtained from the communication circuit and time information managed by the processor corresponding to the time information managed by the communication circuit. Estimating time information managed by the corresponding communication circuit;
Transmitting the frame including time information managed by the estimated communication circuit and time information managed by the processor corresponding to the time information managed by the estimated communication circuit to the external electronic device through the communication circuit Device.
제 1항에 있어서,
상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고,
상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함하는 전자 장치.
According to claim 1,
The time information managed by the communication circuit includes a time synchronization function (TSF),
The time information managed by the processor includes universal time coordinated or coordinated universal time (UTC).
통신 회로 및 프로세서를 포함하는 전자 장치의 동작 방법에 있어서,
무선랜 통신을 통해 외부 전자 장치와 통신을 연결하는 동작,
상기 프로세서에서 상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작,
상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 확인하는 동작, 및
상기 통신 회로에서 관리하는 시간 정보 및 상기 프로세서에서 관리하는 시간 정보를 포함하는 프레임을 상기 외부 전자 장치로 전송하는 동작을 포함하는 방법.
A method of operating an electronic device including a communication circuit and a processor,
An operation of connecting communication with an external electronic device through wireless LAN communication;
obtaining, by the processor, time information managed by the communication circuit;
checking time information managed by the processor corresponding to time information managed by the communication circuit; and
and transmitting a frame including time information managed by the communication circuit and time information managed by the processor to the external electronic device.
제 7항에 있어서,
상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작은,
상기 프로세서가 상기 외부 전자 장치와의 시간 동기화를 지원하는 기능 및/또는 어플리케이션 프로그램의 실행에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하는 동작, 및
상기 프로세서가 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하는 동작을 포함하는 방법.
According to claim 7,
The operation of obtaining time information managed by the communication circuit,
Transmitting, by the processor, a request message related to time information to the communication circuit based on a function supporting time synchronization with the external electronic device and/or execution of an application program; and
and receiving, by the processor, time information managed by the communication circuit from the communication circuit in response to the request message.
제 8항에 있어서,
상기 통신 회로에서 관리하는 시간 정보는, 상기 무선랜을 통해 상기 외부 전자 장치와 송신 및/또는 수신하는 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 포함하는 방법.
According to claim 8,
The time information managed by the communication circuit includes time information managed by the communication circuit related to frames transmitted and/or received with the external electronic device through the wireless LAN.
제 7항에 있어서,
상기 통신 회로에서 관리하는 시간 정보를 획득하는 동작은,
상기 프로세서가 상기 외부 전자 장치와의 통신 연결에 기반하여 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하는 동작, 및
상기 프로세서가 상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 통신 회로에서 관리하는 시간 정보를 수신하는 동작을 포함하는 방법.
According to claim 7,
The operation of obtaining time information managed by the communication circuit,
transmitting, by the processor, a request message related to time information to the communication circuit based on a communication connection with the external electronic device; and
and receiving, by the processor, time information managed by the communication circuit from the communication circuit in response to the request message.
제 7항에 있어서,
상기 외부 전자 장치로 전송하는 동작은,
상기 프로세서가 상기 통신 회로로부터 획득한 상기 통신 회로에서 관리하는 시간 정보 및 상기 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보에 기반하여 상기 프레임을 전송하는 시점에 대응하는 상기 통신 회로에서 관리하는 시간 정보를 추정하는 동작, 및
상기 추정된 통신 회로에서 관리하는 시간 정보 및 상기 추정된 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보를 포함하는 상기 프레임을 상기 통신 회로를 통해 상기 외부 전자 장치로 전송하는 동작을 포함하는 방법.
According to claim 7,
The operation of transmitting to the external electronic device,
The communication corresponding to a time point at which the frame is transmitted based on time information managed by the communication circuit acquired by the processor from the communication circuit and time information managed by the processor corresponding to the time information managed by the communication circuit. An operation of estimating time information managed by the circuit, and
Transmitting the frame including time information managed by the estimated communication circuit and time information managed by the processor corresponding to the time information managed by the estimated communication circuit to the external electronic device through the communication circuit How to include.
제 7항에 있어서,
상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고,
상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함하는 방법.
According to claim 7,
The time information managed by the communication circuit includes a time synchronization function (TSF),
The time information managed by the processor includes universal time coordinated or coordinated universal time (UTC).
외부 전자 장치에 있어서,
무선랜 통신을 지원하는 통신 회로, 및
상기 통신 회로와 작동적으로 연결되는 적어도 하나의 프로세서를 포함하며,
상기 적어도 하나의 프로세서는,
상기 통신 회로를 통해 전자 장치와 통신을 연결하고,
상기 통신 회로를 통해 상기 전자 장치로부터 수신한 프레임에서 상기 전자 장치의 통신 회로에서 관리하는 시간 정보 및 상기 전자 장치의 프로세서에서 관리하는 시간 정보를 확인하고,
상기 외부 전자 장치의 통신 회로에서 관리하는 시간 정보를 획득하고,
상기 전자 장치의 통신 회로에서 관리하는 시간 정보, 상기 전자 장치의 프로세서에서 관리하는 시간 정보 및 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보에 기반하여 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 보정하는 전자 장치.
In the external electronic device,
A communication circuit supporting wireless LAN communication, and
at least one processor in operative connection with the communication circuitry;
The at least one processor,
Connecting communication with an electronic device through the communication circuit,
Checking time information managed by a communication circuit of the electronic device and time information managed by a processor of the electronic device in a frame received from the electronic device through the communication circuit;
obtaining time information managed by a communication circuit of the external electronic device;
Time managed by the processor of the external electronic device based on time information managed by the communication circuit of the electronic device, time information managed by the processor of the electronic device, and time information managed by the communication circuit of the external electronic device. An electronic device that calibrates information.
제 13항에 있어서,
상기 통신 회로에서 관리하는 시간 정보는, TSF(time synchronization function)를 포함하고,
상기 프로세서에서 관리하는 시간 정보는, UTC(universal time coordinated 또는 coordinated universal time)를 포함하는 전자 장치.
According to claim 13,
The time information managed by the communication circuit includes a time synchronization function (TSF),
The time information managed by the processor includes universal time coordinated or coordinated universal time (UTC).
제 13항에 있어서,
상기 적어도 하나의 프로세서는,
상기 통신 회로를 통해 상기 전자 장치로부터 상기 프레임을 수신한 시점에 대응하는 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 획득하고,
이전 시점에 획득된 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보, 상기 이전 시점에 획득된 상기 외부 전자 장치의 통신 회로에서 관리하는 시간 정보에 대응하는 상기 프로세서에서 관리하는 시간 정보 및 상기 프레임을 수신한 시점에 대응하는 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보에 기반하여 현재 시점에 대응하는 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 추정하는 전자 장치.
According to claim 13,
The at least one processor,
obtaining time information managed by the processor of the external electronic device corresponding to a time point at which the frame is received from the electronic device through the communication circuit;
Time information managed by the communication circuit of the external electronic device obtained at a previous time, time information managed by the processor corresponding to time information managed by the communication circuit of the external electronic device obtained at a previous time, and the frame An electronic device for estimating time information managed by the communication circuit of the external electronic device corresponding to a current point of time based on time information managed by the processor of the external electronic device corresponding to the point of time when the .
제 13항에 있어서,
상기 통신 회로는, 상기 전자 장치로부터 상기 프레임을 수신한 경우, 상기 프레임이 시간 동기화와 관련된 프레임인지 여부를 판단하고,
상기 프레임이 시간 동기화와 관련된 프레임인 것으로 판단한 경우, 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보 및 상기 프레임을 상기 프로세서로 전송하고,
상기 프로세서는, 상기 통신 회로로부터 상기 프레임과 함께 수신된 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 확인하는 전자 장치.
According to claim 13,
The communication circuit, when receiving the frame from the electronic device, determines whether the frame is a frame related to time synchronization,
When it is determined that the frame is a frame related to time synchronization, transmitting time information managed by the communication circuit of the external electronic device and the frame to the processor;
The processor checks time information managed by the communication circuit of the external electronic device, which is received together with the frame from the communication circuit.
제 16항에 있어서,
상기 통신 회로는, 상기 프레임이 시간 동기화와 관련된 프레임이 아닌 것으로 판단한 경우, 상기 전자 장치로부터 수신한 상기 프레임을 상기 프로세서로 전송하는 전자 장치.
According to claim 16,
wherein the communication circuit transmits the frame received from the electronic device to the processor when it is determined that the frame is not a frame related to time synchronization.
제 13항에 있어서,
상기 적어도 하나의 프로세서는,
상기 통신 회로를 통해 상기 전자 장치로부터 상기 프레임을 수신한 경우, 시간 정보와 관련된 요청 메시지를 상기 통신 회로로 전송하고,
상기 요청 메시지에 대한 응답으로 상기 통신 회로로부터 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보를 수신하는 전자 장치.
According to claim 13,
The at least one processor,
When the frame is received from the electronic device through the communication circuit, transmits a request message related to time information to the communication circuit;
An electronic device receiving time information managed by the communication circuit of the external electronic device from the communication circuit in response to the request message.
제 18항에 있어서,
상기 통신 회로에서 관리하는 시간 정보는, 상기 무선랜을 통해 상기 전자 장치와 송신 및/또는 수신하는 프레임과 관련된 상기 통신 회로에서 관리하는 시간 정보를 포함하는 전자 장치.
According to claim 18,
The electronic device of claim 1 , wherein the time information managed by the communication circuit includes time information managed by the communication circuit related to a frame transmitted and/or received with the electronic device through the wireless LAN.
제 13항에 있어서,
상기 프로세서는, 상기 전자 장치의 통신 회로에서 관리하는 시간 정보 및 상기 외부 전자 장치의 상기 통신 회로에서 관리하는 시간 정보의 차를 검출하고,
상기 검출된 시간 정보의 차에 기반하여 상기 전자 장치의 프로세서에서 관리하는 시간 정보를 갱신하고,
상기 갱신된 시간 정보를 상기 외부 전자 장치의 상기 프로세서에서 관리하는 시간 정보를 보정하는 전자 장치.
According to claim 13,
The processor detects a difference between time information managed by a communication circuit of the electronic device and time information managed by the communication circuit of the external electronic device;
Update time information managed by a processor of the electronic device based on the difference between the detected time information;
An electronic device that corrects time information managed by the processor of the external electronic device with the updated time information.
KR1020220018419A 2022-02-07 2022-02-11 Electronic device for time synchronization with external electronic device and operating method thereof KR20230119564A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020220015346 2022-02-07
KR20220015346 2022-02-07

Publications (1)

Publication Number Publication Date
KR20230119564A true KR20230119564A (en) 2023-08-16

Family

ID=87848748

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220018419A KR20230119564A (en) 2022-02-07 2022-02-11 Electronic device for time synchronization with external electronic device and operating method thereof

Country Status (1)

Country Link
KR (1) KR20230119564A (en)

Similar Documents

Publication Publication Date Title
US20230221430A1 (en) Positioning method using multiple devices and electronic device therefor
US20230362795A1 (en) Electronic device for broadcasting advertisement packets together with counterpart electronic device, and operating method thereof
KR20220102492A (en) Audio device for processing audio data and operating method thereof
US20220319553A1 (en) Electronic device for processing audio data and method for operating same
KR20230119564A (en) Electronic device for time synchronization with external electronic device and operating method thereof
KR20230047870A (en) Method for measuring location using wireless communication and electronic device supportion the same
KR20220073352A (en) Accessory device controlling power consumption of external device and operating method thereof
US20220222036A1 (en) Audio device for processing audio data and operation method thereof
EP4329363A1 (en) Electronic device for reducing power consumption due to measurement, and operation method of same
EP4346321A1 (en) Electronic device, method, and non-transitory computer-readable storage medium for performing advertising process synchronized with advertising process in another electronic device
US20230410633A1 (en) Electronic device and loss reporting method therefor
US20230050948A1 (en) Apparatus and method for establishing a connection
US20240015216A1 (en) Electronic device for providing blockchain-based service, and operation method thereof
US20220353330A1 (en) Electronic device and method for recording audio data acquired from multiple devices
US20230213642A1 (en) Electronic device and method for measuring position using the same
US20230113030A1 (en) Method for performing wireless communication and electronic device supporting the same
US20230155733A1 (en) Device and method for transmitting response packet
US20230003866A1 (en) Electronic device and method using uwb signal
KR20230106473A (en) Electronic device and method for measuring position using the same
KR20230056963A (en) Electronic device for performing sa query in wlan system and operating method thereof
KR20240022940A (en) Electronic device, method, and non-transitory computer readable storage medium performing advertising process synchronized with advertising process of another electronic device
KR20240063713A (en) Electronic device for merging clusters of communication of neighbor awareness networking and method for the same
KR20220120164A (en) Method of detecting lost wearable device
KR20240015539A (en) Electronic device for improving a reception restriction of a signal due to a wireless connection error with a network and operating method thereof
KR20220083338A (en) Electronic device for selecting beam and operating method thereof