KR20220093964A - electronic device and sensor data calibration method of electronic device - Google Patents

electronic device and sensor data calibration method of electronic device Download PDF

Info

Publication number
KR20220093964A
KR20220093964A KR1020200185170A KR20200185170A KR20220093964A KR 20220093964 A KR20220093964 A KR 20220093964A KR 1020200185170 A KR1020200185170 A KR 1020200185170A KR 20200185170 A KR20200185170 A KR 20200185170A KR 20220093964 A KR20220093964 A KR 20220093964A
Authority
KR
South Korea
Prior art keywords
calibration
electronic device
display
external device
distance
Prior art date
Application number
KR1020200185170A
Other languages
Korean (ko)
Inventor
김건우
남장현
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020200185170A priority Critical patent/KR20220093964A/en
Priority to PCT/KR2021/019950 priority patent/WO2022145926A1/en
Publication of KR20220093964A publication Critical patent/KR20220093964A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/38Displays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

An electronic device according to various embodiments includes a display, a camera for photographing an external device, a short-range communication module for transmitting and/or receiving an Ultra Wide Band (UWB) signal from the external device, a memory, and a processor operatively connected to the camera, the display, the short-range communication module, and the memory, wherein the processor is set to display an image of the external device, which is obtained using the camera, on the display, measure a distance between the electronic device and the external device based on the UWB signal received through the short-range communication module, when the distance is a reference distance, display a first calibration line on the display, when the first calibration line and the image of the external device are at least partially overlapping, calculate first angle information based on the UWB signal and perform a first calibration based on the first angle information. According to the present invention, users can easily calibrate an Angle of Arrival (AoA) value error.

Description

전자 장치 및 전자 장치의 센서 데이터 교정 방법 {electronic device and sensor data calibration method of electronic device}Electronic device and sensor data calibration method of electronic device

본 문서는 전자 장치에 관한 것으로, AoA(angle of arrival)를 측정할 수 있는 센서를 포함하는 전자 장치에 관한 것이다.This document relates to an electronic device, and to an electronic device including a sensor capable of measuring an angle of arrival (AoA).

스마트 폰(smart phone), 태블릿 PC(tablet pc), PMP(portable multimedia player), PDA(personal digital assistant), 랩탑 PC(laptop personal computer) 및 웨어러블 기기(wearable device)와 같은 다양한 전자 장치들이 보급되고 있으며, 전자 장치 사이의 통신기술 또한 급속히 발전하고 있다.Various electronic devices, such as a smart phone, a tablet PC, a portable multimedia player (PMP), a personal digital assistant (PDA), a laptop personal computer, and a wearable device, have been distributed and In addition, communication technology between electronic devices is also rapidly developing.

차세대 통신 기술인 UWB(ultra-wideband)는 기존에 비하여 매우 넓은 대역의 주파수(3.1~10.6 GHz)를 사용하며, 낮은 전력을 대용량의 정보를 전송할 수 있다. UWB에는 중요한 두 가지의 기능이 있는데, UWB를 탑재한 2개의 전자 장치 사이의 거리를 정확히 측정하는 ranging 기능과 외부 장치가 기준으로부터 몇 도의 위치에 있는지 각도를 정확히 판단하는 AoA(angle of arrival) 기능이다.UWB (ultra-wideband), a next-generation communication technology, uses a very wide frequency band (3.1 to 10.6 GHz) compared to the existing one, and can transmit large amounts of information with low power. UWB has two important functions: a ranging function that accurately measures the distance between two UWB-equipped electronic devices, and an angle of arrival (AoA) function that accurately determines how many degrees an external device is located from a reference. to be.

전자 장치 제조 시 센서의 초기 오차가 발생할 수 있는데, 이를 교정하기 위해 공정에서 AoA 교정 값이 입력될 수 있다. 그런데 실제 사용자 조건에서 AoA 기능을 사용하다가 HW(hardware) 혹은 SW(software)적인 이슈로 AoA 교정 값이 지워질 수 있고, 전자 장치에 케이스, 커버 등을 적용하여 AoA 교정 값에 오차가 발생할 수도 있다. 공정에서 진행하는 교정 장비를 서비스 센터에 모두 공급하는 것이 현실적으로 어렵기 때문에 서비스 센터 혹은 사용자가 직접 오차를 교정하기에는 어려움이 있을 수 있다.When manufacturing an electronic device, an initial error of the sensor may occur, and an AoA calibration value may be input in the process to correct this. However, while using the AoA function under actual user conditions, the AoA calibration value may be erased due to hardware (hardware) or software (software) issues, or an error may occur in the AoA calibration value by applying a case or cover to an electronic device. Since it is realistically difficult to supply all of the calibration equipment in the process to the service center, it may be difficult for the service center or the user to directly correct the error.

본 발명의 다양한 실시 예들은발명은 UWB 신호를 이용한 통신 및 카메라 어플리케이션을 사용하여 사용자가 자가로 혹은 서비스 센터에서 간편하게 AoA 값 오차를 교정하는 방법을 제공할 수 있다.Various embodiments of the present invention may provide a method for a user to easily correct an AoA value error by himself or at a service center using a communication and camera application using a UWB signal.

다양한 실시예에 따른 전자 장치에는, 디스플레이, 외부 장치를 촬영하기 위한 카메라, 상기 외부 장치로부터 UWB(ultra wide band) 신호를 송신 및/또는 수신하는 근거리 통신 모듈, 메모리 및 상기 카메라, 상기 디스플레이, 상기 근거리 통신 모듈, 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하여 획득한 상기 외부 장치의 이미지를 상기 디스플레이에 표시하고, 상기 근거리 통신 모듈을 통해 수신한 UWB 신호에 기초하여, 상기 전자 장치와 상기 외부 장치의 거리를 측정하고, 상기 거리가 기준거리인 경우, 상기 디스플레이에 제1교정 라인을 표시하고, 상기 제1교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제1각도 정보를 계산하고, 상기 제1각도 정보에 기초하여 제1교정을 수행하도록 설정될 수 있다.The electronic device according to various embodiments includes a display, a camera for photographing an external device, a short-range communication module for transmitting and/or receiving an ultra wide band (UWB) signal from the external device, a memory and the camera, the display, and the A short-range communication module, comprising a processor operatively connected to the memory, wherein the processor displays the image of the external device acquired using the camera on the display, and receives it through the short-range communication module Based on one UWB signal, the distance between the electronic device and the external device is measured, and when the distance is a reference distance, a first calibration line is displayed on the display, and an image of the first calibration line and the external device is displayed. It may be configured to calculate first angle information based on the UWB signal and perform a first calibration based on the first angle information when at least partially overlap.

다양한 실시예에 따른 전자 장치의 오차 자가교정 방법은, 카메라를 이용하여 외부 장치의 이미지를 디스플레이에 표시하는 동작, 근거리 통신 모듈을 통해 수신한 UWB 신호에 기초하여, 상기 전자 장치와 상기 외부 장치의 거리를 측정하는 동작, 상기 거리가 기준거리인 경우, 상기 디스플레이에 제1교정 라인을 표시하는 동작, 상기 제1교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제1각도 정보를 계산하는 동작, 및 상기 제1각도 정보에 기초하여 제1교정을 수행하는 동작을 포함할 수 있다.A method for self-correcting an error of an electronic device according to various embodiments includes an operation of displaying an image of an external device on a display using a camera, and a UWB signal received through a short-distance communication module, between the electronic device and the external device. An operation of measuring a distance, an operation of displaying a first calibration line on the display when the distance is the reference distance, and an operation of displaying a first calibration line on the display when the first calibration line and an image of the external device overlap at least partially based on the UWB signal It may include an operation of calculating one angle information, and an operation of performing a first calibration based on the first angle information.

다양한 실시예에 따르면, 본 발명을 통해 사용자는 AoA교정이 필요한 경우 서비스 센터에서 혹은 직접 교정을 수행할 수 있다. 지그 박스(jig box)를 이용하여 기준거리를 쉽게 맞출 수 있으며, portrait mode, landscape mode의 두 경우 모두에 대해서 AoA 오차를 교정할 수 있다.According to various embodiments, through the present invention, when AoA calibration is required, a user may perform calibration at a service center or directly. The reference distance can be easily adjusted using a jig box, and the AoA error can be corrected in both cases of portrait mode and landscape mode.

도 1은 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치의 블록도이다.
도 3은 다양한 실시예에 따른 전자 장치, 외부 장치 및 지그 박스를 도시한 것이다.
도 4a, 4b, 4c 및 4d는 다양한 실시예에 따른 제1교정 수행 시 디스플레이에 나타나는 화면을 동작대로 도시한 것이다.
도 5a 및 5b는 다양한 실시예에 따른 제1교정 수행 후 제2교정 수행 시 디스플레이에 나타나는 화면을 동작대로 도시한 것이다.
도 6a 및 6b는 다양한 실시예에 따른 카메라와 근거리 통신 모듈 사이의 거리에 기초하여 각도 정보를 생성하는 방법을 나타낸 것이다.
도 7a 및 7b는 다양한 실시예에 따른 AoA 자가 교정 방법의 흐름도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device according to various embodiments of the present disclosure;
3 illustrates an electronic device, an external device, and a jig box according to various embodiments of the present disclosure.
4A, 4B, 4C, and 4D are diagrams of screens displayed on a display when the first calibration is performed according to various embodiments of the present disclosure.
5A and 5B are diagrams illustrating screens displayed on a display when the second calibration is performed after the first calibration is performed according to various embodiments of the present disclosure.
6A and 6B are diagrams illustrating a method of generating angle information based on a distance between a camera and a short-range communication module according to various embodiments of the present disclosure.
7A and 7B are flowcharts of an AoA self-calibration method according to various embodiments.

도 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 in 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 a second network 199 . It may communicate with at least one of the electronic device 104 and 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 , a sound output module 155 , a display module 160 , an audio module 170 , and 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 an antenna module 197 may be included. In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). 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, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the 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) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a 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 auxiliary processor 123 is, for example, on behalf 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, executing an application). ), 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 an embodiment, the co-processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have. 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. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a 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 in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . 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 a sound signal 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. The receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

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

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

센서 모듈(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, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance 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 by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an 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 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an 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 an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an 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 an 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 an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(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, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

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

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

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

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

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a 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, the command 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 a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received 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 transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, 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 an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. 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 device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

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

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an 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)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, 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) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. 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-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(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 provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

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

도 2는 다양한 실시예에 따른 전자 장치의 블록도이다.2 is a block diagram of an electronic device according to various embodiments of the present disclosure;

도 2를 참조하면, 전자 장치(200)는 디스플레이(240), 카메라(250), 근거리 통신 모듈(220), 프로세서(210) 및/또는 메모리(230)를 포함할 수 있으며, 다양한 실시예에서, 도시된 구성 중 일부가 생략 또는 치환 될 수도 있다. 전자 장치(200)는 도 1의 전자 장치의 구성 및/또는 기능 중 적어도 일부를 더 포함할 수 있다. 도시된(또는 도시되지 않은) 전자 장치(200)의 각 구성 중 적어도 일부는 상호 작동적으로(operatively), 기능적으로(functionally) 및/또는 전기적으로 (electrically) 연결될 수 있다.Referring to FIG. 2 , the electronic device 200 may include a display 240 , a camera 250 , a short-range communication module 220 , a processor 210 and/or a memory 230 , and in various embodiments , some of the illustrated components may be omitted or substituted. The electronic device 200 may further include at least some of the configuration and/or functions of the electronic device of FIG. 1 . At least some of the respective components of the illustrated (or not illustrated) electronic device 200 may be operatively, functionally, and/or electrically connected.

다양한 실시예에 따르면, 디스플레이(240)는 프로세서(210)의 제어에 따라 다양한 영상을 표시할 수 있다. 디스플레이(240)는 액정 디스플레이(liquid crystal display(LCD)), 발광 다이오드(light-emitting diode(LED)) 디스플레이, 또는 유기 발광 다이오드(organic light-emitting diode(OLED)) 디스플레이 중 어느 하나로 구현될 수 있으며, 이에 한정되지는 않는다. 디스플레이(240)는 사용자의 신체 일부(예: 손가락) 또는 입력 장치(예: 스타일러스 펜)를 이용한 터치 및/또는 근접 터치(또는 호버링) 입력을 감지하는 터치 스크린으로 형성될 수 있다. 디스플레이(240)는 도 1의 디스플레이 모듈의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.According to various embodiments, the display 240 may display various images under the control of the processor 210 . The display 240 may be implemented as any one of a liquid crystal display (LCD), a light-emitting diode (LED) display, or an organic light-emitting diode (OLED) display. and is not limited thereto. The display 240 may be formed as a touch screen that senses a touch and/or proximity touch (or hovering) input using a part of the user's body (eg, a finger) or an input device (eg, a stylus pen). The display 240 may include at least some of the configuration and/or functions of the display module of FIG. 1 .

다양한 실시예에 따르면, 디스플레이(240)는 적어도 일부가 플렉서블(flexible) 할 수 있으며, 폴더블(foldable) 디스플레이, 또는 롤러블(rollable) 디스플레이로 구현될 수도 있다.According to various embodiments, at least a part of the display 240 may be flexible, and may be implemented as a foldable display or a rollable display.

다양한 실시예에 따르면, 카메라(250)는 외부의 이미지 데이터를 획득할 수 있다. 카메라(250)는 CCD(charge coupled device), 또는 CMOS(complementary metal oxide semiconductor)와 같은 다양한 방식의 이미지 센서를 이용해 이미지 데이터를 획득할 수 있다. 카메라(250)는 도 1의 카메라 모듈(180)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 전자 장치(200)는 하나 이상의 카메라(250)를 하우징의 전면 및/또는 후면에 배치할 수 있으며, 이하에서는 다른 설명이 없는 한 외부 장치를 포함하는 이미지 데이터는 후면의 카메라(250)를 이용해 획득된 것일 수 있다.According to various embodiments, the camera 250 may acquire external image data. The camera 250 may acquire image data using various types of image sensors such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS). The camera 250 may include at least some of the configuration and/or functions of the camera module 180 of FIG. 1 . The electronic device 200 may place one or more cameras 250 on the front and/or rear of the housing, and hereinafter, unless otherwise specified, image data including an external device is acquired using the rear camera 250 . it may have been

다양한 실시예에 따르면, 근거리 통신 모듈(220)은 외부 장치와 근거리 무선 통신을 지원하는 안테나(미도시), RF 프론트 엔드(미도시), 또는 통신 프로세서(미도시)를 포함하는 다양한 구성을 포함할 수 있다. 근거리 통신 모듈(220)은 다양한 근거리 무선 통신 방식(예: 블루투스(bluetooth), BLE(bluetooth low energy), 또는 UWB(ultra-wideband), Wi-Fi)을 지원할 수 있으며, 각각의 무선 통신 방식을 지원하기 위한 독립적인 하드웨어 및/또는 소프트웨어 구성을 포함할 수 있다. 근거리 통신 모듈(220)은 도 1의 통신 모듈(190)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다. 일 실시예에 따르면, 근거리 통신 모듈(220)은 외부 장치와의 근거리 무선 통신으로 UWB 신호를 수신할 수 있다.According to various embodiments, the short-range communication module 220 includes various components including an antenna (not shown), an RF front end (not shown), or a communication processor (not shown) supporting short-range wireless communication with an external device. can do. The short-range communication module 220 may support various short-range wireless communication methods (eg, Bluetooth, bluetooth low energy (BLE), or ultra-wideband (UWB), Wi-Fi), and each wireless communication method It may include independent hardware and/or software configurations to support it. The short-range communication module 220 may include at least some of the configuration and/or functions of the communication module 190 of FIG. 1 . According to an embodiment, the short-range communication module 220 may receive a UWB signal through short-range wireless communication with an external device.

다양한 실시예에 따르면, 메모리(230)는 휘발성 메모리(예: 도 1의 휘발성 메모리(132)) 및/또는 비휘발성 메모리(예: 도 1의 비휘발성 메모리(134))를 포함하여, 다양한 데이터들을 일시적 또는 영구적으로 저장할 수 있다. 메모리(230)는 도 1의 메모리(130)의 구성 및/또는 기능 중 적어도 일부를 포함하고, 도 1의 프로그램(140)을 저장할 수 있다.According to various embodiments, memory 230 may include a variety of data, including volatile memory (eg, volatile memory 132 of FIG. 1 ) and/or non-volatile memory (eg, non-volatile memory 134 of FIG. 1 ). can be stored temporarily or permanently. The memory 230 may include at least some of the configuration and/or functions of the memory 130 of FIG. 1 , and may store the program 140 of FIG. 1 .

다양한 실시예에 따르면, 메모리(230)는 프로세서(210)에서 수행될 수 있는 다양한 인스트럭션(instruction)들을 저장할 수 있다. 이와 같은 인스트럭션들은 프로세서(210)에 의해 인식될 수 있는 산술 및 논리 연산, 데이터 이동, 입출력 등과 같은 제어 명령을 포함할 수 있다.According to various embodiments, the memory 230 may store various instructions that may be executed by the processor 210 . Such instructions may include control commands such as arithmetic and logical operations, data movement, input/output, and the like, which may be recognized by the processor 210 .

다양한 실시예에 따르면, 프로세서(210)는 디스플레이(240), 카메라(250), 근거리 통신 모듈(220), 메모리(230) 등 전자 장치(200)의 각 구성요소들과 작동적으로(operatively), 기능적으로(functionally), 및/또는 전기적으로(electrically) 연결되어, 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성일 수 있다. 프로세서(210)는 도 1의 프로세서(120)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.According to various embodiments, the processor 210 is operatively with each component of the electronic device 200 such as the display 240 , the camera 250 , the short-range communication module 220 , and the memory 230 . , functionally, and/or electrically connected to each other, may be a configuration capable of performing operations or data processing related to control and/or communication of each component. The processor 210 may include at least some of the configuration and/or functions of the processor 120 of FIG. 1 .

다양한 실시예에 따르면, 프로세서(210)가 전자 장치(200) 상에서 구현할 수 있는 연산 및 데이터 처리 기능에는 한정됨이 없을 것이나, 이하에서는 전자 장치(200)의 AoA 교정값이 지워지거나 오차가 발생한 경우, 그 오차를 자가 교정하기 위한 다양한 실시예에 대해 설명하기로 한다. 후술할 프로세서(210)의 동작들은 메모리(230)에 저장된 인스트럭션들을 로딩(loading)함으로써 수행될 수 있다.According to various embodiments, there will be no limitations to the arithmetic and data processing functions that the processor 210 can implement on the electronic device 200, but hereinafter, when the AoA calibration value of the electronic device 200 is erased or an error occurs, Various embodiments for self-correcting the error will be described. Operations of the processor 210 to be described later may be performed by loading instructions stored in the memory 230 .

다양한 실시예에 따르면, 프로세서(210)는 카메라(250)를 실행하여 이미지 데이터를 획득할 수 있다. 카메라(250)는 전면 또는 후면 카메라를 포함할 수 있으며, 후면 카메라가 복수 개인 경우 그 중 적어도 하나의 카메라를 사용할 수 있다. 프로세서(210)는 카메라(250)를 통해 획득한 이미지 데이터를 디스플레이(240)에 나타낼 수 있다. 예를 들어, 외부 장치가 후면 카메라의 촬영 범위 내에 위치하는 경우 프로세서(210)는 후면 카메라를 통하여 획득한 외부 장치의 이미지를 디스플레이(240)에 표시할 수 있다.According to various embodiments, the processor 210 may acquire image data by executing the camera 250 . The camera 250 may include a front or rear camera, and when there are a plurality of rear cameras, at least one of them may be used. The processor 210 may display image data acquired through the camera 250 on the display 240 . For example, when the external device is located within the shooting range of the rear camera, the processor 210 may display an image of the external device acquired through the rear camera on the display 240 .

다양한 실시예에 따르면, 프로세서(210)는 근거리 통신 모듈(220)이 수신한 UWB 신호에 대한 정보를 획득할 수 있다. 일 실시예에 따르면, 프로세서(210)는 획득한 UWB 신호에 대한 정보를 이용하여 거리 정보를 생성할 수 있다. 외부 장치와 UWB 신호를 주고 받으며 ranging 기능을 통해 외부 장치와의 거리를 정확히 측정할 수 있다. 일 실시예에 따르면, 프로세서(210)는 수신한 UWB 신호를 이용하여 각도 정보를 생성할 수 있다. UWB의 AoA 기능을 통해 외부 장치가 전자 장치(200)를 기준으로 몇 도에 있는지 판단할 수 있다. AoA는 위치 측정 방법의 하나로, 안테나 어레이의 개별 수신기에서 신호가 수신되는 각도를 측정하여 위치를 계산하는 방법이다. 전자 장치(200)는 독립 측위 기법으로 AOA를 측정할 수 있으며, Wi-Fi, UWB, BLE, 또는 TDoA 등 무선 통신 기술과 연계한 복합 측위 기법이 적용될 수도 있다. 더 구체적인 거리 및 각도 측정 동작에 대해서는 도 6a 및 6b에서 후술하도록 한다.According to various embodiments, the processor 210 may obtain information about the UWB signal received by the short-range communication module 220 . According to an embodiment, the processor 210 may generate distance information by using the acquired information on the UWB signal. It exchanges UWB signals with an external device and can accurately measure the distance to and from the external device through the ranging function. According to an embodiment, the processor 210 may generate angle information using the received UWB signal. Through the AoA function of UWB, it is possible to determine at what degree the external device is located with respect to the electronic device 200 . AoA is one of the position measurement methods, and is a method of calculating a position by measuring an angle at which a signal is received by an individual receiver of an antenna array. The electronic device 200 may measure AOA using an independent positioning technique, and a composite positioning technique linked to wireless communication technologies such as Wi-Fi, UWB, BLE, or TDoA may be applied. A more detailed distance and angle measurement operation will be described later with reference to FIGS. 6A and 6B .

다양한 실시예에 따르면, 프로세서(210)는 전자 장치(200)와 외부 장치의 거리가 기준거리인지 확인할 수 있다. 기준거리는 후술할 교정 프로세스를 위하여 특정한 값으로 정해질 수 있는데, 예를 들어, 약 250mm일 수 있다. 프로세서(210)는 전자 장치(200)와 외부 장치의 거리가 기준거리 이내의 소정 범위를 벗어나는 경우, 이를 지시하는 팝업 메시지를 표시할 수 있다. 예를 들어, 기준거리가 250mm인 경우 전자 장치(200)와 외부 장치 사이의 거리가 200mm라면,"폰을 더 멀리 떨어트리세요"라는 문구의 팝업 메시지를 디스플레이(240) 상에 표시할 수 있다. 또 다른 예로, 전자 장치(200)와 외부 장치 사이의 거리가 400mm라면,"폰이 너무 멀리 있습니다"라는 문구의 팝업 메시지를 디스플레이(240) 상에 표시할 수 있다.According to various embodiments, the processor 210 may determine whether the distance between the electronic device 200 and the external device is a reference distance. The reference distance may be set to a specific value for a calibration process to be described later, for example, may be about 250 mm. When the distance between the electronic device 200 and the external device is out of a predetermined range within the reference distance, the processor 210 may display a pop-up message indicating this. For example, if the reference distance is 250 mm and the distance between the electronic device 200 and the external device is 200 mm, a pop-up message stating “Put your phone further away” may be displayed on the display 240 . . As another example, if the distance between the electronic device 200 and the external device is 400 mm, a pop-up message stating “the phone is too far away” may be displayed on the display 240 .

다양한 실시예에 따르면, 프로세서(210)는 전자 장치(200)와 외부 장치의 거리가 기준거리인 경우 알림음, 진동, 또는 메시지 중 적어도 하나를 포함하는 방법으로 알림(440)을 줄 수 있다.According to various embodiments, when the distance between the electronic device 200 and the external device is the reference distance, the processor 210 may provide the notification 440 in a method including at least one of a notification sound, a vibration, or a message.

다양한 실시예에 따르면, 프로세서(210)는 전자 장치(200)와 외부 장치의 거리가 기준거리인 상태에서, UWB 데이터의 자가 교정 프로세스를 수행할 수 있다. 예를 들어, 전자 장치(200)는 수직 방향 및 수평 방향의 UWB 데이터에 대해 각각의 교정 프로세스를 수행할 수 있다.According to various embodiments, the processor 210 may perform a self-calibration process of the UWB data in a state where the distance between the electronic device 200 and the external device is the reference distance. For example, the electronic device 200 may perform each calibration process on UWB data in a vertical direction and a horizontal direction.

다양한 실시예에 따르면, 프로세서(210)는 전자 장치(200)와 외부 장치의 거리가 기준거리인 경우 디스플레이(240) 상에 제1교정 라인을 표시할 수 있다. 예를 들어, 제1교정 라인은 디스플레이(240)가 세로 방향으로 놓인 상태에서, 수직 방향으로 디스플레이(240)의 가운데에 표시될 수 있다. 다양한 실시예에 따르면, 프로세서(210)는 제1교정 라인을 카메라(250)가 획득하는 이미지와 중첩하여 표시할 수 있고, 제1교정 라인은 적어도 일부가 투명한(또는 반투명한) 이미지일 수 있다.According to various embodiments, when the distance between the electronic device 200 and the external device is the reference distance, the processor 210 may display the first calibration line on the display 240 . For example, the first calibration line may be displayed in the center of the display 240 in the vertical direction while the display 240 is placed in the vertical direction. According to various embodiments, the processor 210 may display the first calibration line overlapping the image acquired by the camera 250, and the first calibration line may be an image at least partially transparent (or translucent). .

다양한 실시예에 따르면, 프로세서(210)는, 전자 장치(200)가 제1회전각에서 물체를 촬영하는 제1모드에서, 제1교정 라인과 외부 장치의 이미지가 적어도 일부 중첩되는 경우 근거리 통신 모듈(220)로부터 수신한 UWB 신호를 이용하여 제1각도 정보를 생성할 수 있다. 예를 들어, portrait mode에서 제1교정 라인과 외부 장치의 이미지가 중첩된 경우 portrait mode에서 발생한 AoA값에 대한 각도 정보를 생성할 수 있다. 제1각도 정보는 예를 들어, UWB 신호를 이용하여 측정한 PDoA(phase difference of arrival)값을 보정하고, 보정한 PDoA 값에서 AoA값을 산출해낸 값일 수 있다. 다양한 실시예에 따르면, 프로세서(210)는 현재 위치에서 교정 프로세스를 하도록 선택할 수 있는 교정 버튼을 디스플레이(240) 상에 표시할 수 있다. 예를 들어, 교정 버튼은 사각형 형태에 제한되지 않고 다른 어떤 형태의 도형일 수 있으며, 윤곽이 없는 영역 형태로 표시될 수도 있다. 일 실시예에 따르면, 교정 버튼은 색이나 음영으로 별도 표시될 수 있으며, 'Set Cal'등의 현재 수신되는 UWB 데이터에 기반하여 교정을 수행함을 지시하는 메시지가 함께 표시될 수 있다.According to various embodiments of the present disclosure, the processor 210 may include a short-distance communication module when, in a first mode in which the electronic device 200 captures an object at a first rotation angle, the first calibration line and the image of the external device at least partially overlap. The first angle information may be generated using the UWB signal received from 220 . For example, when the first calibration line and the image of the external device overlap in the portrait mode, angle information about the AoA value generated in the portrait mode may be generated. The first angle information may be, for example, a value obtained by correcting a phase difference of arrival (PDoA) value measured using a UWB signal and calculating an AoA value from the corrected PDoA value. According to various embodiments, the processor 210 may display a calibration button on the display 240 that can be selected to do the calibration process at the current location. For example, the correction button is not limited to a rectangular shape, may be any other shape, and may be displayed in the form of an area without an outline. According to an embodiment, the calibration button may be separately displayed in color or shade, and a message instructing to perform calibration based on currently received UWB data such as 'Set Cal' may be displayed together.

다양한 실시예에 따르면, 프로세서(210)는 교정 버튼 상에 터치 입력이 수신되는 경우 생성한 제1각도 정보가 단말의 EFS(embedded file system) 영역 상에 저장되는 제1교정을 수행할 수 있다. 일 실시예에 따르면, 프로세서(210)는 제1교정이 수행되면 완료되었음을 알리는 메시지 창을 디스플레이(240)에 표시할 수 있다.According to various embodiments, the processor 210 may perform the first calibration in which the generated first angle information is stored in an embedded file system (EFS) area of the terminal when a touch input is received on the calibration button. According to an embodiment, when the first calibration is performed, the processor 210 may display a message window indicating that the first calibration is completed on the display 240 .

다양한 실시예에 따르면, 프로세서(210)는 제1교정이 완료된 이후 제2교정 라인을 디스플레이(240)에 표시할 수 있다. 사용자는 제2교정 라인을 이용하여, 전자 장치(200)를 제1회전각에서 일정 각도만큼 더 회전시킨 제2회전각에서 물체를 촬영하는 제2모드의 AoA 오차를 교정할 수 있다. 제2교정 라인은 제1교정 라인과 직교하는 방향, 예컨대, 디스플레이(240)가 수직 방향으로 놓인 상태에서, 수평 방향으로 디스플레이(240)의 가운데에 표시될 수 있다. 예를 들면, portrait mode에 대한 제1교정이 완료된 이후 landscape mode에 대한 제2교정이 진행될 때 제1교정 라인과 직교하는 방향으로 제2교정 라인을 표시할 수 있다. 제2교정 라인은 디스플레이(240)의 중앙에 표시될 수 있고, 다른 위치에 표시될 수도 있다. 이하 제2교정에 대한 동작은 제1교정과 유사하게 수행될 수 있으며, 앞서 설명한 바 있는 기술적 특징에 대해서는 이하에서 그 설명을 생략하기로 한다.According to various embodiments, the processor 210 may display the second calibration line on the display 240 after the first calibration is completed. The user may use the second calibration line to correct the AoA error in the second mode of photographing the object at the second rotation angle at which the electronic device 200 is further rotated from the first rotation angle by a predetermined angle. The second calibration line may be displayed in the center of the display 240 in a direction orthogonal to the first calibration line, for example, in a state in which the display 240 is placed in a vertical direction, in a horizontal direction. For example, when the second calibration for the landscape mode is performed after the first calibration for the portrait mode is completed, the second calibration line may be displayed in a direction orthogonal to the first calibration line. The second calibration line may be displayed in the center of the display 240 or may be displayed at another location. Hereinafter, the operation for the second calibration may be performed similarly to the first calibration, and the description of the technical features described above will be omitted below.

다양한 실시예에 따르면, 프로세서(210)는 카메라(250)와 근거리 통신 모듈(220) 사이의 거리를 확인하고, 확인된 거리에 기반하여 제1교정을 더 수행할 수 있다. 사용자는 외부 장치의 이미지를 카메라(250)를 통해 확인하게 되므로, AoA 측정의 실제 기준이 되는 근거리 통신 모듈(220)과의 거리만큼 오차가 발생할 수 있다. 이를 보정하기 위하여 프로세서(210)는 카메라(250)와 근거리 통신 모듈(220) 사이의 거리에 대한 정보를 메모리(230)에 저장하고 그에 기반하여 오차를 보정할 수 있다.According to various embodiments, the processor 210 may check a distance between the camera 250 and the short-range communication module 220 and further perform a first calibration based on the checked distance. Since the user checks the image of the external device through the camera 250, an error may occur as much as the distance from the short-distance communication module 220, which is an actual reference for AoA measurement. In order to correct this, the processor 210 may store information on the distance between the camera 250 and the short-range communication module 220 in the memory 230 and correct the error based thereon.

다양한 실시예에 따르면, 프로세서(210)는 제1각도 정보와 제2각도 정보를 메모리(230)에 저장할 수 있다. 제1각도 정보를 이용해 제1모드에서 수신한 UWB 신호 정보를 보정할 수 있고, 제2각도 정보를 이용해 제2모드에서 수신한 UWB 신호 정보를 보정할 수 있다. 예를 들면, 제1모드에서 근거리 통신 모듈(220)이 UWB 신호를 수신하여 프로세서(210)에 전송한 경우, 프로세서(210)는 해당 신호에서 PDoA 값을 계산한 뒤 외부 장치와 근거리 통신 모듈(220) 사이의 거리를 이용하여 보정하고, 보정한 PDoA 값을 AoA 값으로 변환하여 제1각도 정보를 생성할 수 있다.According to various embodiments, the processor 210 may store the first angle information and the second angle information in the memory 230 . UWB signal information received in the first mode may be corrected using the first angle information, and UWB signal information received in the second mode may be corrected using the second angle information. For example, in the first mode, when the short-range communication module 220 receives a UWB signal and transmits it to the processor 210, the processor 210 calculates a PDoA value from the corresponding signal and then communicates with the external device and the short-distance communication module ( 220), and the corrected PDoA value is converted into an AoA value to generate the first angle information.

다양한 실시예에 따르면, 프로세서(210)는 사용자의 선택에 따라 커버류 등을 전자 장치(200)에서 제거하는 경우 메모리(230)에 저장된 AoA 교정 값을 이용하지 않을 수 있다. 예를 들어, 사용자가 전자 장치(200)에 케이스를 적용하는 경우 AoA 값에 오차가 발생할 수 있으나, 케이스를 제거하는 경우 다시 오차가 사라질 수 있다. 이러한 경우, 케이스의 탈부착을 감지하여 케이스가 전자 장치(200)에 적용된 경우에만 메모리(230)에 저장된 교정 값을 적용할 수 있다.According to various embodiments, the processor 210 may not use the AoA calibration value stored in the memory 230 when a cover or the like is removed from the electronic device 200 according to a user's selection. For example, when the user applies a case to the electronic device 200, an error may occur in the AoA value, but when the case is removed, the error may disappear again. In this case, the correction value stored in the memory 230 may be applied only when the case is applied to the electronic device 200 by detecting attachment or detachment of the case.

도 3은 다양한 실시예에 따른 전자 장치(300), 외부 장치(310) 및 지그 박스(320)를 도시한 것이다.3 illustrates an electronic device 300 , an external device 310 , and a jig box 320 according to various embodiments of the present disclosure.

다양한 실시예에 따르면, 전자 장치(300)는 외부 장치(310)와 정해진 기준거리(예: 약 250mm)를 유지한 상태에서 UWB 데이터의 교정 프로세스를 수행할 수 있다. 한 실시 예에 따르면, 전자 장치(300)와 외부 장치(310)를 기준거리로 위치 시키기 위해 지그 박스(320)가 사용될 수 있다.According to various embodiments, the electronic device 300 may perform a calibration process of UWB data while maintaining a predetermined reference distance (eg, about 250 mm) with the external device 310 . According to an embodiment, the jig box 320 may be used to position the electronic device 300 and the external device 310 at a reference distance.

도 3을 참조 하면, 지그 박스(320)의 형태는 정다면체, 다각기둥, 또는 구를 포함하여 어떤 것이든 가능하여 정해져 있지 않으며, 대칭적인 형태가 아닐 수도 있다. 예를 들어, 지그 박스(320)의 제1면에는 전자 장치(300)를 고정하기 위한 홈이 있을 수 있고, 제1면과 마주보는 제2면에는 외부 장치(310)를 고정하기 위한 홈이 있을 수 있다. 한 실시 예에서, 홈의 위치는 정확한 교정을 할 수 있는 위치에 고정되어 있을 수도 있고, 사용자가 조정할 수도 있다.Referring to FIG. 3 , the shape of the jig box 320 is not determined as it is possible to include any regular polyhedron, polygonal prism, or sphere, and may not have a symmetrical shape. For example, a first surface of the jig box 320 may have a groove for fixing the electronic device 300 , and a second surface facing the first surface may have a groove for fixing the external device 310 . there may be In one embodiment, the position of the groove may be fixed to a position capable of performing accurate correction, or may be adjusted by a user.

다양한 실시예에 따르면, 외부 장치(310)는 UWB 기능을 활용할 수 있는 전자 장치일 수 있다. 외부 장치(310)는 전자 장치(300)의 근거리 통신 모듈(예: 도 2의 근거리 통신 모듈(220))과의 무선 통신을 통하여 UWB 신호를 생성할 수 있다. 예를 들어, 외부 장치(310)가 UWB 신호를 송신하면 근거리 통신 모듈 내의 송신부에서 UWB 신호를 감지하고 수신할 수 있다.According to various embodiments, the external device 310 may be an electronic device capable of utilizing a UWB function. The external device 310 may generate a UWB signal through wireless communication with a short-range communication module (eg, the short-range communication module 220 of FIG. 2 ) of the electronic device 300 . For example, when the external device 310 transmits a UWB signal, the transmitter in the short-range communication module may detect and receive the UWB signal.

다양한 실시예에 따르면, 외부 장치(310)와 지그 박스(320)는 일체형으로 제작될 수 있다. 예를 들어, 외부 장치(310)가 지그 박스(320)에 고정되어 있고, 외부 장치(310)가 고정된 면과 마주보는 면에 전자 장치(300)가 위치할 수 있는 홈이 있을 수 있다. 이 경우 사용자가 교정 라인이나 기준거리를 맞추기 위해 전자 장치(300)를 이동시킬 필요 없이 몇 번의 터치만으로 교정을 수행할 수 있다. 일 실시예에 따르면, 지그 박스(320)와 외부 장치(310)가 일체형이 아닌 경우, 외부 장치(310)를 탈착할 수 있는 별도 장치가 있을 수 있고, 외부 장치(310)를 상자 속으로 집어넣기 위한 개폐식 도어가 존재할 수도 있다.According to various embodiments, the external device 310 and the jig box 320 may be integrally manufactured. For example, the external device 310 is fixed to the jig box 320 , and there may be a groove in which the electronic device 300 can be positioned on a surface opposite to the surface on which the external device 310 is fixed. In this case, the user can perform the calibration with just a few touches without the need to move the electronic device 300 to match the calibration line or the reference distance. According to one embodiment, when the jig box 320 and the external device 310 are not integrated, there may be a separate device capable of detaching the external device 310, and the external device 310 is put into the box. A retractable door for entry may be present.

도 4a, 4b, 4c 및 4d는 다양한 실시예에 따른 제1교정 수행 시 디스플레이에 나타나는 화면을 동작대로 도시한 것이다.4A, 4B, 4C, and 4D are diagrams of screens displayed on a display when the first calibration is performed according to various embodiments of the present disclosure.

도 4a를 참조하면, 교정 프로세스가 실행되면 프로세서(예: 도 2의 프로세서(210))는 카메라(예: 도 2의 카메라(250))를 동작시키고 근거리 통신 모듈(예: 도 2의 근거리 통신 모듈(220))에서 UWB 신호를 이용한 외부 장치(예: 도 3의 외부 장치(310))와의 통신을 수행하도록 할 수 있다. 근거리 통신 모듈은 외부 장치에서 송신하는 UWB 신호를 수신하고, UWB 신호에 대한 정보를 프로세서로 전달할 수 있다. 프로세서는 상기 정보를 이용하여 각도 정보 및 거리 정보를 생성할 수 있다.Referring to FIG. 4A , when the calibration process is executed, the processor (eg, the processor 210 of FIG. 2 ) operates a camera (eg, the camera 250 of FIG. 2 ) and a short-range communication module (eg, the short-range communication of FIG. 2 ) The module 220) may communicate with an external device (eg, the external device 310 of FIG. 3 ) using a UWB signal. The short-range communication module may receive a UWB signal transmitted from an external device and transmit information about the UWB signal to the processor. The processor may generate angle information and distance information by using the information.

다양한 실시예에 따르면, 전자 장치(400)는 외부 장치와의 거리가 기준거리에 위치한 상태에서 교정 프로세스를 수행할 수 있다. 이를 위해, 프로세서는 전자 장치(400)와 외부 장치의 거리가 기준거리와 다른 경우 전자 장치(400)의 위치를 조정하라고 지시하는 팝업 메시지(420)를 디스플레이(예: 도 2의 디스플레이(240)) 상에 표시할 수 있다. 예를 들어, 기준거리보다 전자 장치(400)와 외부 장치의 거리가 가까운 경우에는 거리를 더 떨어트리라고 지시하는 팝업 메시지(420)를 표시할 수 있다.According to various embodiments, the electronic device 400 may perform the calibration process in a state where the distance to the external device is located at the reference distance. To this end, when the distance between the electronic device 400 and the external device is different from the reference distance, the processor displays a pop-up message 420 instructing to adjust the location of the electronic device 400 (eg, the display 240 of FIG. 2 ). ) can be displayed on the For example, when the distance between the electronic device 400 and the external device is closer than the reference distance, a pop-up message 420 instructing to further increase the distance may be displayed.

도 4b를 참조하면, 전자 장치(400)와 외부 장치의 거리가 기준거리인 경우 프로세서는 디스플레이에 제1교정 라인(430)을 표시할 수 있다. 제1교정 라인(430)의 두께는 교정 오차를 줄이기 위하여 지정된 값 이하로 설정될 수 있다. 일 실시예에 따르면, 제1교정 라인(430)에는 특정 색 및/또는 음영이 포함될 수 있으며, 외부 장치를 포함하는 이미지와 중첩되어 표시될 수 있도록 투명(또는 반투명)할 수도 있다. 제1교정 라인(430)은 지정된 문구(예: cal line)를 포함할 수 있다.Referring to FIG. 4B , when the distance between the electronic device 400 and the external device is the reference distance, the processor may display the first calibration line 430 on the display. The thickness of the first calibration line 430 may be set to be less than or equal to a specified value in order to reduce a calibration error. According to an embodiment, the first calibration line 430 may include a specific color and/or shade, and may be transparent (or semi-transparent) so that it can be displayed while being overlapped with an image including an external device. The first calibration line 430 may include a designated phrase (eg, cal line).

다양한 실시예에 따르면, 전자 장치(400)와 외부 장치의 거리가 기준거리인 경우 프로세서는 기준거리에 위치함을 알림음, 진동, 또는 애니메이션 중 적어도 하나를 포함하는 방법을 통해 알림(440)을 줄 수 있다.According to various embodiments, when the distance between the electronic device 400 and the external device is the reference distance, the processor notifies that the electronic device 400 is located at the reference distance through a method including at least one of a sound, vibration, or animation. can give

다양한 실시예에 따르면, 기준거리가 맞지 않는 경우 프로세서는 제1교정 라인(430)을 지우고 팝업 메시지(420)를 표시할 수 있다. 예를 들어, 기준거리가 250mm인 경우, 전자 장치(400)와 외부 장치 사이의 거리가 250mm를 만족하여 제1교정 라인(430)이 디스플레이에 표시된 이후에 거리가 230mm로 더 가까워졌다면, 제1교정 라인(430)이 사라지고 디스플레이에 거리를 멀리 떨어트리라는 팝업 메시지(420)가 표시될 수 있다. 사용자가 다시 기준거리를 맞추면 프로세서는 제1교정 라인(430)을 디스플레이 상에 표시할 수 있다.According to various embodiments, when the reference distance does not match, the processor may erase the first calibration line 430 and display a pop-up message 420 . For example, if the reference distance is 250 mm, the distance between the electronic device 400 and the external device satisfies 250 mm, and after the first calibration line 430 is displayed on the display, the distance becomes closer to 230 mm, the first The calibration line 430 may disappear and a pop-up message 420 may appear on the display prompting the user to distance themselves further. When the user adjusts the reference distance again, the processor may display the first calibration line 430 on the display.

다양한 실시예에 따르면, 프로세서는 제1모드 교정을 위해 제1교정 라인(430)을 디스플레이의 일면에 수직으로 배치할 수 있다. 일 실시예에 따르면, 제1교정 라인(430)은 디스플레이의 실질적인 중앙에 위치할 수 있다.According to various embodiments, the processor may vertically arrange the first calibration line 430 on one surface of the display for the first mode calibration. According to one embodiment, the first calibration line 430 may be located substantially in the center of the display.

다양한 실시예에 따르면, 프로세서는 카메라가 획득하는 이미지 데이터 위에 제1교정 라인(430)의 이미지를 동시에 표시할 수 있다. 예를 들어, 전자 장치(400)의 후면 카메라 앞에 시계가 놓여있는 경우 디스플레이 상에는 시계의 이미지 데이터가 표시됨과 동시에 제1교정 라인(430)이 겹치게 표시될 수 있다.According to various embodiments, the processor may simultaneously display the image of the first calibration line 430 on the image data acquired by the camera. For example, when a watch is placed in front of the rear camera of the electronic device 400 , image data of the watch may be displayed on the display and the first calibration line 430 may be displayed to overlap.

도 4c를 참조하면, 전자 장치(400) 혹은 외부 장치(예: 도 3의 외부 장치(310))의 이동으로 외부 장치의 이미지(410)와 교정 라인의 이미지가 적어도 일부 중첩된 경우, 프로세서는 알림음, 진동, 또는 애니메이션 중 적어도 하나를 포함하는 다양한 방법으로 사용자에게 알림(440)을 줄 수 있다.Referring to FIG. 4C , when the image 410 of the external device and the image of the calibration line at least partially overlap with the movement of the electronic device 400 or the external device (eg, the external device 310 of FIG. 3 ), the processor The notification 440 may be given to the user in various ways including at least one of a notification sound, vibration, or animation.

다양한 실시예에 따르면, 외부 장치의 이미지(410)의 윤곽과 교정 라인의 윤곽이 만나거나, 외부 장치의 이미지(410)가 교정 라인과 겹치는 경우 외부 장치의 이미지(410)와 제1교정 라인(430)이 중첩될 수 있다. 오차를 줄이기 위하여 교정 라인의 두께는 지정된 값 이하로 설정될 수 있다.According to various embodiments, when the contour of the image 410 of the external device and the contour of the correction line meet or the image 410 of the external device overlaps the correction line, the image 410 of the external device and the first correction line ( 430) may overlap. In order to reduce the error, the thickness of the calibration line may be set to be less than or equal to a specified value.

다양한 실시예에 따르면, 프로세서는 외부 장치의 이미지(410)와 제1교정 라인(430)이 중첩되는 경우 교정 버튼(450)도 함께 디스플레이 상에 표시할 수 있다. 교정 버튼(450)은 도면 상에서는 중앙 하단부에 표시되어 있으나 그 위치는 정해져 있지 않고 사용자가 설정할 수도 있다. 버튼의 형태도 사각형에 한정되지 않는다. 교정 버튼(450)은 지정된 문구(예: Set Cal)를 포함할 수도 있다.According to various embodiments, when the image 410 of the external device and the first calibration line 430 overlap, the processor may also display the calibration button 450 on the display. The calibration button 450 is displayed on the lower center of the drawing, but its location is not determined and may be set by the user. The shape of the button is also not limited to a rectangle. The calibration button 450 may include a designated phrase (eg, Set Cal).

다양한 실시예에 따르면, 전자 장치(400) 혹은 외부 장치의 이동으로 외부 장치의 이미지(410)와 교정 라인이 중첩되지 않는 경우 프로세서는 애니메이션 등의 알림(440)을 없애고 교정 버튼(450)을 디스플레이 상에 표시하지 않을 수 있다.According to various embodiments, when the image 410 of the external device and the calibration line do not overlap due to the movement of the electronic device 400 or the external device, the processor removes the notification 440 such as animation and displays the calibration button 450 may not be displayed.

다양한 실시예에 따르면, 전자 장치(400)와 외부 장치 사이의 거리가 기준거리와 다른 경우 프로세서는 제1교정 라인(430)의 표시를 제거하고 팝업 메시지(420)를 디스플레이에 표시할 수도 있다.According to various embodiments, when the distance between the electronic device 400 and the external device is different from the reference distance, the processor may remove the display of the first calibration line 430 and display the pop-up message 420 on the display.

다양한 실시예에 따르면, 전자 장치(400)는 제1교정 라인(430)과 외부 장치의 이미지(410)가 중첩되는 경우, 현재 전자 장치(400)와 외부 장치의 거리 정보 및 각도 정보, 외부 장치에서 수신되는 UWB 데이터로부터 획득된 거리 정보 및 각도 정보에 기반하여 UWB 데이터에 대한 교정 정보를 생성할 수 있다. 또 다른 예로, 전자 장치(400)는 도 4c에 도시된 교정 버튼(450)의 선택에 기초하여 교정 정보를 생성할 수 있다. 도 4c를 참조하면, 프로세서는 교정 버튼(450)에 대한 사용자 입력(예: 터치, 또는 클릭)에 기초하여 제1교정을 수행할 수 있다. 예를 들어, 전자 장치(400)와 외부 장치가 기준거리만큼 떨어져있고, 외부 장치의 이미지(410)와 제1교정 라인(430)의 이미지의 적어도 일부가 중첩되며 교정 버튼(450)에 사용자 입력이 수신되는 경우 프로세서는 사용자 입력이 수신되는 때의 각도 정보를 제1각도 정보로 메모리(예: 도 2의 메모리(230))에 저장할 수 있다.According to various embodiments of the present disclosure, when the first calibration line 430 and the image 410 of the external device overlap, the electronic device 400 includes distance information and angle information between the current electronic device 400 and the external device, and the external device. Calibration information for UWB data may be generated based on distance information and angle information obtained from UWB data received from . As another example, the electronic device 400 may generate calibration information based on selection of the calibration button 450 illustrated in FIG. 4C . Referring to FIG. 4C , the processor may perform the first calibration based on a user input (eg, a touch or click) for the calibration button 450 . For example, the electronic device 400 and the external device are separated by a reference distance, the image 410 of the external device and at least a portion of the image of the first calibration line 430 overlap, and a user input to the calibration button 450 When this is received, the processor may store the angle information when the user input is received as the first angle information in a memory (eg, the memory 230 of FIG. 2 ).

도 4d를 참조하면, 다양한 실시예에 따르면, 프로세서는 제1교정을 수행한 후 디스플레이 상에 제1교정 라인(430)과 교정 버튼(450)을 지우고 완료 메시지(460)를 표시할 수 있다. 예를 들어, 완료 메시지(460)는 디스플레이 상에 자유롭게 위치할 수 있으며, 색이나 음영으로 표시될 수 있다. 또 다른 예로, 완료 메시지(460)는 문구(예: calibration completed)를 포함할 수 있다. 일 실시예에 따르면, 프로세서가 완료 메시지(460)를 표시하는 동시에 카메라가 획득하는 이미지 데이터를 일시적으로 지우거나, 어둡게 표시할 수 있다.Referring to FIG. 4D , according to various embodiments, after performing the first calibration, the processor may erase the first calibration line 430 and the calibration button 450 on the display and display a completion message 460 . For example, the completion message 460 may be freely positioned on the display, and may be displayed in color or shade. As another example, the completion message 460 may include a phrase (eg, calibration completed). According to an embodiment, the processor may temporarily erase or darken image data acquired by the camera while displaying the completion message 460 .

다양한 실시예에 따르면, 제1교정만으로도 완성된 교정 작업일 수 있다. 예를 들어, 사용자가 제1모드에서의 AoA 값에만 문제가 생긴 경우, 해당 모드에 대한 교정을 수행하는 제1교정만 진행하고 중단할 수 있다. 그러나 제2모드에서의 AoA 기능 사용에도 문제가 있는 경우 사용자의 설정에 따라서 해당 모드에서의 교정을 한 차례 더 수행할 수도 있다.According to various embodiments, only the first calibration may be a completed calibration work. For example, when the user has a problem only in the AoA value in the first mode, only the first calibration that performs the calibration for the corresponding mode may proceed and stop. However, if there is a problem in using the AoA function in the second mode, calibration in the corresponding mode may be performed once more according to the user's setting.

도 5a 및 5b는 다양한 실시예에 따른 제1교정 수행 후 제2교정 수행 시 디스플레이(예: 도 2의 디스플레이(240))에 나타나는 화면을 동작대로 도시한 것이다. 제2교정에 대한 동작은 제1교정과 유사하게 수행될 수 있으며, 앞서 설명한 바 있는 기술적 특징에 대해서는 이하에서 그 설명을 생략하기로 한다.5A and 5B are diagrams illustrating screens displayed on a display (eg, the display 240 of FIG. 2 ) in operation when the second calibration is performed after the first calibration is performed according to various embodiments of the present disclosure. The operation for the second calibration may be performed similarly to the first calibration, and the description of the technical features described above will be omitted below.

도 5a를 참조하면, 제2교정 수행 시 전자 장치(500)와 외부 장치(예: 도 3의 외부 장치(310))의 거리가 이미 기준거리를 만족하는 경우, 프로세서(예: 도 2의 프로세서(210))는 팝업 메시지(예: 도 4의 팝업 메시지(420))를 표시하지 않고 바로 제2교정 라인(520)을 디스플레이에 표시할 수 있다. 예를 들어, 사용자가 제1교정 수행 이후 곧바로 제2교정을 수행하는 경우이거나 지그 박스(예: 도 3의 지그 박스(320))를 이용하는 경우, 전자 장치(500)와 외부 장치의 거리가 기준거리를 유지할 것이므로 프로세서는 팝업 메시지를 표시할 필요 없이 바로 제2교정 라인(520)을 디스플레이에 표시할 수 있다.Referring to FIG. 5A , when the distance between the electronic device 500 and the external device (eg, the external device 310 of FIG. 3 ) already satisfies the reference distance when performing the second calibration, the processor (eg, the processor of FIG. 2 ) 210) may directly display the second calibration line 520 on the display without displaying a pop-up message (eg, the pop-up message 420 of FIG. 4 ). For example, when the user performs the second calibration immediately after performing the first calibration or uses a jig box (eg, the jig box 320 of FIG. 3 ), the distance between the electronic device 500 and the external device is the standard Since the distance will be maintained, the processor may display the second calibration line 520 directly on the display without the need to display a pop-up message.

다양한 실시예에 따르면, 프로세서는 제1교정을 수행하고 제2교정 라인(520)을 디스플레이 상에 표시할 수 있다. 일 실시예에 따르면, 제2교정 라인(520)은 제1교정 라인(예: 도 4의 제1교정 라인(430))과 실질적으로 직교하도록 표시될 수 있다. 예를 들어 제1교정 라인이 디스플레이의 일면에 수직으로 배치되어 portrait mode에 대한 교정을 진행한 경우, 제2교정 라인(520)은 디스플레이의 상기 일면에 평행하게 배치되어 landscape mode에 대한 교정을 진행할 수 있다.According to various embodiments, the processor may perform the first calibration and display the second calibration line 520 on the display. According to one embodiment, the second calibration line 520 may be marked to be substantially orthogonal to the first calibration line (eg, the first calibration line 430 of FIG. 4 ). For example, when the first calibration line is disposed perpendicular to one surface of the display and calibration for the portrait mode is performed, the second calibration line 520 is disposed parallel to the one surface of the display to perform calibration for the landscape mode can

다양한 실시예에 따르면, 외부 장치의 이미지(510)가 제2교정 라인(520)과 적어도 일부 중첩하는 경우, 프로세서는 디스플레이에 교정 버튼(550)을 표시할 수 있다. 프로세서는 교정 버튼(550)에 대한 사용자 입력(예: 터치, 클릭)에 기초하여 제2교정을 수행할 수 있다. 교정 버튼(550) 상에 터치 입력이 수신되는 경우 프로세서는 입력이 수신되는 때의 각도 정보를 제2각도 정보로 메모리(예: 도 2의 메모리(230))에 저장할 수 있다.According to various embodiments, when the image 510 of the external device at least partially overlaps the second calibration line 520 , the processor may display the calibration button 550 on the display. The processor may perform the second calibration based on a user input (eg, touch, click) for the calibration button 550 . When a touch input is received on the calibration button 550 , the processor may store angle information when the input is received as second angle information in a memory (eg, the memory 230 of FIG. 2 ).

다양한 실시예에 따르면, 프로세서는 제2교정을 수행한 후 도 4d에서 설명한 완료 메시지(예: 도 4의 완료 메시지(460))를 표시할 수 있다.According to various embodiments, after performing the second calibration, the processor may display the completion message described with reference to FIG. 4D (eg, the completion message 460 of FIG. 4 ).

도 6a 및 6b는 다양한 실시예에 따른 카메라(620)와 근거리 통신 모듈(630) 사이의 거리에 기초하여 각도 정보를 생성하는 방법을 나타낸 것이다.6A and 6B are diagrams illustrating a method of generating angle information based on a distance between the camera 620 and the short-range communication module 630 according to various embodiments of the present disclosure.

다양한 실시예에 따르면, 프로세서(예: 도 2의 프로세서(210))는 근거리 통신 모듈(630)(예: 도 2의 근거리 통신 모듈(220))에서 UWB 신호에 대한 정보를 수신하고 상기 정보를 이용하여 PDoA 값을 계산하고, 카메라(620)(예: 도 2의 카메라(250))와 근거리 통신 모듈(630) 사이의 거리에 기초하여 PDoA 값을 보정할 수 있다. 이후, 프로세서는 교정 프로세스에 이용하기 위하여 상기 PDoA 값을 AoA 값으로 변환할 수 있다. 이하, UWB 신호에 대한 정보를 이용하여 PDoA 값을 계산하는 동작, 카메라(620)와 근거리 통신 모듈(630) 사이의 거리에 기초하여 PDoA 값을 보정하는 동작 및 PDoA 값을 AoA 값으로 변환하는 동작에 대하여 설명하도록 한다.According to various embodiments, the processor (eg, the processor 210 of FIG. 2 ) receives information about the UWB signal from the short-range communication module 630 (eg, the short-range communication module 220 of FIG. 2 ) and transmits the information The PDoA value may be calculated using the PDoA value, and the PDoA value may be corrected based on the distance between the camera 620 (eg, the camera 250 of FIG. 2 ) and the short-range communication module 630 . Thereafter, the processor may convert the PDoA value into an AoA value for use in a calibration process. Hereinafter, the operation of calculating the PDoA value by using information on the UWB signal, the operation of correcting the PDoA value based on the distance between the camera 620 and the short-range communication module 630 , and the operation of converting the PDoA value into an AoA value to be explained.

도 6a는 전자 장치(600)의 근거리 통신 모듈(630), 카메라(620) 및 외부 장치(610)(예: 도 3의 외부 장치(310))를 도시한 그림이다. 교정을 수행할 때 사용자는 카메라(620)를 기준으로 외부 장치(610)의 위치를 판단하나, 프로세서는 근거리 통신 모듈(630)을 기준으로 위치를 계산하므로 각도 차이(

Figure pat00001
) 때문에 오차가 발생할 수 있다. 이를 추가로 보정하기 위하여 카메라(620)와 근거리 통신 모듈(630) 사이의 거리를 이용할 수 있다.FIG. 6A is a diagram illustrating a short-range communication module 630 , a camera 620 , and an external device 610 (eg, the external device 310 of FIG. 3 ) of the electronic device 600 . When performing calibration, the user determines the position of the external device 610 based on the camera 620, but the processor calculates the position based on the short-range communication module 630, so the angle difference (
Figure pat00001
) may cause errors. In order to further correct this, the distance between the camera 620 and the short-range communication module 630 may be used.

다양한 실시예에 따르면, 프로세서는 근거리 통신 모듈(630)로부터 수신한 UWB 신호에 대한 정보를 교정 프로세스에 이용하기 위하여 아래의 식 1에 의해 PDoA 값을 추출할 수 있다.According to various embodiments, the processor may extract the PDoA value by Equation 1 below in order to use the information on the UWB signal received from the short-range communication module 630 in the calibration process.

[식 1]

Figure pat00002
[Equation 1]
Figure pat00002

Figure pat00003
: PDoA 변환 값
Figure pat00003
: PDoA conversion value

Figure pat00004
: AoA 각도 측정 값
Figure pat00004
: AoA angle measurement

Figure pat00005
: distance value
Figure pat00005
: distance value

Figure pat00006
: 신호의 파장 추출 값
Figure pat00006
: Wavelength extraction value of the signal

다양한 실시예에 따르면, 상기 식 1에서

Figure pat00007
는 distance value로 전자 장치(600)의 오차 교정을 위하여 튜닝된 값이며, 각 모델마다 다른 값을 가질 수 있다. 예를 들어, 미국형 모델은 distance value가 18mm, 유럽형 모델은 distance value가 17.4mm로 설정될 수 있다.
Figure pat00008
는 근거리 통신 모듈(630)과 외부 장치(610)가 이용하는 UWB 신호의 파장에서 추출된 값으로, 예를 들어, 파장 값의 절반일 수 있다. UWB에는 다양한 채널(예를 들어 CH5, CH6, CH8, 또는 CH9 등)을 사용하므로 각 채널의 중심주파수 기준의 파장값을 이용하여 계산할 수 있다. 예를 들어,
Figure pat00009
=19mm인 경우, 상기 식 1을 이용하면 아래의 식 2내지 식 5와 같이 미국형 모델과 유럽형 모델 각각의 PDoA 변환 값을 계산할 수 있다.According to various embodiments, in Equation 1
Figure pat00007
is a distance value tuned for error correction of the electronic device 600, and may have a different value for each model. For example, the distance value of the American model may be set to 18mm, and the distance value of the European model may be set to 17.4mm.
Figure pat00008
is a value extracted from the wavelength of the UWB signal used by the short-range communication module 630 and the external device 610, and may be, for example, half of the wavelength value. Since UWB uses various channels (eg, CH5, CH6, CH8, or CH9, etc.), it can be calculated using the wavelength value based on the center frequency of each channel. for example,
Figure pat00009
=19mm, using Equation 1 above, the PDoA conversion value of each of the US model and the European model can be calculated as shown in Equations 2 to 5 below.

[식 2]

Figure pat00010
[Equation 2]
Figure pat00010

[식 3]

Figure pat00011
[Equation 3]
Figure pat00011

[식 4]

Figure pat00012
[Equation 4]
Figure pat00012

[식 5]

Figure pat00013
[Equation 5]
Figure pat00013

도 6b를 참조하면, 전자 장치(600)의 후면에 인접하게 카메라(620) 및 근거리 통신 모듈(630)이 위치될 수 있다. 예를 들면, 근거리 통신 모듈(630)은 제1안테나(632), 제2안테나(634), 또는 제3안테나(636)를 포함할 수 있다. 예를 들어, 제1안테나(632), 제2안테나(634), 또는 제3안테나(636)는 패치 안테나를 포함할 수 있다. 한 실시 예에서, portrait mode에서는 제1안테나(632)의 중심과 제2안테나(634)의 중심을 이은 선분의 수직이등분선이 AoA 측정의 기준이 될 수 있다. 카메라(620)의 중심을 지나는 수평선과 상기 수직이등분선이 만나는 점을 P라고 하면, 카메라(620)의 중심에서 점 P까지의 거리(x)만큼 오차가 발생할 수 있다. 또 다른 예로, Landscape mode에서는 제1안테나(632)의 중심과 제3안테나(636)의 중심을 이은 선분의 수직이등분선이 AoA 측정의 기준이 될 수 있다. 카메라(620)의 중심을 지나는 수직선과 상기 수직이등분선이 만나는 점을 Q라고 하면, 카메라(620)의 중심에서 점 Q까지의 거리(y)만큼 오차가 발생할 수 있다. 프로세서는 그 거리(y)만큼의 오차를 보정할 수 있다. 이하 식 6 및 식 7을 통해 구체적인 계산을 설명하도록 한다.Referring to FIG. 6B , a camera 620 and a short-range communication module 630 may be positioned adjacent to the rear surface of the electronic device 600 . For example, the short-range communication module 630 may include a first antenna 632 , a second antenna 634 , or a third antenna 636 . For example, the first antenna 632 , the second antenna 634 , or the third antenna 636 may include a patch antenna. In an embodiment, in the portrait mode, the perpendicular bisector of a line segment connecting the center of the first antenna 632 and the center of the second antenna 634 may be a reference for measuring AoA. If P is a point where the horizontal line passing through the center of the camera 620 and the vertical bisector meet, an error may occur as much as the distance (x) from the center of the camera 620 to the point P. As another example, in the landscape mode, the vertical bisector of the line segment connecting the center of the first antenna 632 and the center of the third antenna 636 may be a reference for AoA measurement. If Q is a point where the vertical line passing through the center of the camera 620 and the perpendicular bisector meet, an error may occur as much as the distance y from the center of the camera 620 to the point Q. The processor may correct an error corresponding to the distance y. Hereinafter, specific calculations will be described through Equations 6 and 7.

다양한 실시예에 따르면, 프로세서는 상기 식 2내지 식 5에서 계산한 값들을 이용하여 각도 정보를 생성할 수 있다. 상기 식 2 내지 식 5에서 계산한 값들은 전자 장치(600)의 고유한 특성 값이므로, 프로세서는 상기 계산한 값들을 메모리(예: 도 2의 메모리(230))의 config 영역에 저장할 수 있다. 예를 들어, 프로세서는 근거리 통신 모듈(630)로부터 수신한 UWB 신호에 대한 정보를 PDoA로 변환하고, config영역에 저장한 값을 호출하여 최종 보정한 뒤 PDoA 값을 AoA값으로 변환하여 각도 정보를 생성할 수 있다.According to various embodiments, the processor may generate angle information using the values calculated in Equations 2 to 5 above. Since the values calculated in Equations 2 to 5 are unique characteristic values of the electronic device 600 , the processor may store the calculated values in a config area of a memory (eg, the memory 230 of FIG. 2 ). For example, the processor converts the information about the UWB signal received from the short-range communication module 630 into PDoA, calls the value stored in the config area to make final correction, and then converts the PDoA value to the AoA value to obtain angle information. can create

다양한 실시예에 따르면, 프로세서는 근거리 통신 모듈(630)에서 수신한 UWB 신호, 아래의 식 6, 식 7 및 메모리에 저장되어 있는

Figure pat00014
, 또는
Figure pat00015
값을 이용해 상기 측정한 AoA 값을 보정할 수 있다. 식 6 및 식 7에서
Figure pat00016
값 및
Figure pat00017
값은
Figure pat00018
값에 비하여 매우 작은 값일 수 있다.According to various embodiments, the processor includes the UWB signal received from the short-range communication module 630, Equations 6 and 7 below, and stored in the memory.
Figure pat00014
, or
Figure pat00015
The measured AoA value may be corrected using the value. In Equation 6 and Equation 7
Figure pat00016
value and
Figure pat00017
value is
Figure pat00018
It may be a very small value compared to the value.

[식 6]

Figure pat00019
[Equation 6]
Figure pat00019

[식 7]

Figure pat00020
[Equation 7]
Figure pat00020

Figure pat00021
: 제1모드에서의 카메라 중심 및 제1안테나와 제2안테나 중심의 AoA 차이 값
Figure pat00021
: AoA difference value between the center of the camera and the center of the first antenna and the center of the second antenna in the first mode

Figure pat00022
: 제2모드에서의 카메라 중심 및 제1안테나와 제3안테나 중심의 AoA 차이 값
Figure pat00022
: AoA difference value between the center of the camera and the center of the first and third antennas in the second mode

Figure pat00023
: 전자 장치(600)와 외부 장치(610)의 거리
Figure pat00023
: Distance between the electronic device 600 and the external device 610

Figure pat00024
: 제1모드에서의 오차
Figure pat00024
: Error in 1st mode

Figure pat00025
: 제2모드에서의 오차
Figure pat00025
: Error in 2nd mode

도 6b를 참조하면,

Figure pat00026
는 x 값,
Figure pat00027
는 y 값일 수 있다. 예를 들어, 제1모드가 portrait mode, 제2모드가 landscape mode인 경우,
Figure pat00028
는 x축의 오차값,
Figure pat00029
는 y축 오차값일 수 있다. 프로세서는 상기 식 6, 식 7 및 메모리에 저장되어 있는
Figure pat00030
,
Figure pat00031
값을 이용해 상기 측정한 AoA 값을 보정할 수 있다. 예를 들면, 전자 장치(600)와 외부 장치(610)의 거리가 250mm이고
Figure pat00032
가 40.49mm,
Figure pat00033
가 25.23mm인 경우
Figure pat00034
Figure pat00035
,
Figure pat00036
Figure pat00037
로 계산할 수 있다. 예컨대, 카메라(620), 외부 장치(610), 근거리 통신 모듈(630)이 이루는 각도는 제1모드에서는
Figure pat00038
, 제2모드에서는
Figure pat00039
일 수 있다. 따라서 카메라(620)가 느끼는 각도는 실제 근거리 통신 모듈(630)이 판단하는 각보다 제1모드에서는
Figure pat00040
틀어지게, 제2모드에서는
Figure pat00041
틀어지게 판단할 수 있다. 프로세서는 이를 고려하여 오차가 생기는 값만큼 보정하여 최종 AoA 값을 산출할 수 있다. 예를 들어, 계산한 제1모드 AoA 값에서
Figure pat00042
만큼 빼고, 제2모드 AoA 값에서
Figure pat00043
만큼 빼서 최종 값을 산출할 수 있다.Referring to Figure 6b,
Figure pat00026
is the x value,
Figure pat00027
may be a y value. For example, when the first mode is a portrait mode and the second mode is a landscape mode,
Figure pat00028
is the error value of the x-axis,
Figure pat00029
may be a y-axis error value. The processor may have Equation 6, Equation 7 and the memory stored in the memory.
Figure pat00030
,
Figure pat00031
The measured AoA value may be corrected using the value. For example, the distance between the electronic device 600 and the external device 610 is 250 mm.
Figure pat00032
is 40.49mm,
Figure pat00033
is 25.23mm
Figure pat00034
Is
Figure pat00035
,
Figure pat00036
Is
Figure pat00037
can be calculated as For example, the angle formed by the camera 620 , the external device 610 , and the short-range communication module 630 is in the first mode.
Figure pat00038
, in the second mode
Figure pat00039
can be Therefore, the angle felt by the camera 620 is greater than the angle determined by the actual short-range communication module 630 in the first mode.
Figure pat00040
Wrong, in the second mode
Figure pat00041
can be judged wrong. The processor may calculate the final AoA value by taking this into consideration and correcting as much as an error occurs. For example, in the calculated first mode AoA value,
Figure pat00042
subtracted from the second mode AoA value
Figure pat00043
The final value can be calculated by subtracting by

다양한 실시예에 따르면, 도시한 방법을 이용하지 않고 전자 장치(600)의 중심을 외부 장치(610)의 중심과 맞추어 교정 프로세스를 진행할 수도 있다. 예를 들어, 외부 장치(610)의 중심과 전자 장치(600)의 중심을 맞추어 포개어 놓고 전자 장치(600)를 실행하면 자동으로 교정 프로세스가 진행되도록 설정할 수 있다.According to various embodiments, the calibration process may be performed by aligning the center of the electronic device 600 with the center of the external device 610 without using the illustrated method. For example, when the center of the external device 610 and the center of the electronic device 600 are overlapped and the electronic device 600 is executed, the calibration process may be automatically performed.

도 7a 및 7b는 다양한 실시예에 따른 AoA 자가 교정 방법의 흐름도이다.7A and 7B are flowcharts of an AoA self-calibration method according to various embodiments.

도시된 방법은 도 1 내지 도 6을 통해 설명한 전자 장치(예: 도 2의 전자 장치(200))에 의해 수행될 수 있으며, 앞서 설명한 바 있는 기술적 특징에 대해서는 이하에서 그 설명을 생략하기로 한다.The illustrated method may be performed by the electronic device described with reference to FIGS. 1 to 6 (eg, the electronic device 200 of FIG. 2 ), and descriptions of technical features described above will be omitted below. .

다양한 실시예에 따르면, 전자 장치는 카메라(예: 도 2의 카메라(250))를 실행하여 이미지 데이터를 획득할 수 있다. 카메라는 전면 또는 후면 카메라를 사용할 수 있으며, 후면 카메라가 복수 개인 경우 그 중 적어도 하나의 카메라를 사용할 수 있다. 전자 장치는 카메라를 통해 획득한 이미지 데이터를 디스플레이(예: 도 2의 디스플레이(240))에 나타낼 수 있다. 예를 들어, 외부 장치(예: 도 3의 외부 장치(310))가 후면 카메라의 촬영 범위 내에 위치하는 경우 전자 장치는 후면 카메라를 통하여 획득한 외부 장치의 이미지(예: 도 4의 외부 장치의 이미지(410))를 디스플레이에 표시할 수 있다.According to various embodiments, the electronic device may acquire image data by executing a camera (eg, the camera 250 of FIG. 2 ). The camera may use a front or rear camera, and when there are a plurality of rear cameras, at least one of them may be used. The electronic device may display image data acquired through the camera on a display (eg, the display 240 of FIG. 2 ). For example, when an external device (eg, the external device 310 of FIG. 3 ) is located within the shooting range of the rear camera, the electronic device acquires an image of the external device through the rear camera (eg, the image of the external device of FIG. 4 ). image 410) may be displayed on the display.

다양한 실시예에 따르면, 동작 710에서, 전자 장치는 근거리 통신 모듈(예: 도 2의 근거리 통신 모듈(220))이 수신한 UWB 신호에 대한 정보를 획득할 수 있다. 일 실시예에 따르면, 전자 장치는 획득한 UWB 신호에 대한 정보를 이용하여 거리 정보를 생성할 수 있다. 외부 장치와 UWB 신호를 주고 받으며 ranging 기능을 통해 외부 장치와의 거리를 측정할 수 있다. 일 실시예에 따르면, 전자 장치는 수신한 UWB 신호를 이용하여 각도 정보를 생성할 수 있다. UWB의 AoA 기능을 통해 외부 장치가 전자 장치를 기준으로 몇 도에 있는지 판단할 수 있다. AoA는 위치 측정 방법의 하나로, 안테나 어레이의 개별 수신기에서 신호가 수신되는 각도를 측정하여 위치를 계산하는 방법이다. 전자 장치는 독립 측위 기법으로 AoA를 측정할 수 있으며, Wi-Fi, UWB, BLE, 또는 TDoA 등 무선 통신 기술과 연계한 복합 측위 기법이 적용될 수도 있다.According to various embodiments, in operation 710 , the electronic device may obtain information about the UWB signal received by the short-range communication module (eg, the short-range communication module 220 of FIG. 2 ). According to an embodiment, the electronic device may generate distance information by using the acquired information on the UWB signal. A UWB signal is exchanged with an external device, and the distance to the external device can be measured through the ranging function. According to an embodiment, the electronic device may generate angle information using the received UWB signal. Through the AoA function of UWB, it is possible to determine what degree the external device is in relation to the electronic device. AoA is one of the position measurement methods, and is a method of calculating a position by measuring an angle at which a signal is received by an individual receiver of an antenna array. The electronic device may measure AoA using an independent positioning technique, and a composite positioning technique in connection with wireless communication technologies such as Wi-Fi, UWB, BLE, or TDoA may be applied.

다양한 실시예에 따르면, 동작 720에서, 전자 장치는 전자 장치와 외부 장치와의 거리가 기준거리인지 확인할 수 있다. 기준거리는 교정 프로세스를 위하여 지정된 값으로 정해질 수 있는데, 예를 들어, 약 250mm일 수 있다. 한 실시 예에서, 전자 장치는 전자 장치와 외부 장치의 거리가 기준거리 이내의 소정 범위를 벗어나는 경우, 이를 지시하는 팝업 메시지(예: 도 4의 팝업 메시지(420))를 표시할 수 있다. 예를 들어, 기준거리가 250mm인 경우 전자 장치와 외부 장치 사이의 거리가 200mm라면,"폰을 더 멀리 떨어트리세요"라는 문구의 팝업 메시지를 디스플레이 상에 표시할 수 있다. 또 다른 예로, 전자 장치와 외부 장치 사이의 거리가 약 400mm라면,"폰이 너무 멀리 있습니다"라는 문구의 팝업 메시지를 디스플레이 상에 표시할 수 있다.According to various embodiments, in operation 720, the electronic device may determine whether the distance between the electronic device and the external device is a reference distance. The reference distance may be set to a value specified for the calibration process, for example, about 250 mm. In an embodiment, when the distance between the electronic device and the external device is out of a predetermined range within the reference distance, the electronic device may display a pop-up message indicating this (eg, the pop-up message 420 of FIG. 4 ). For example, when the reference distance is 250 mm and the distance between the electronic device and the external device is 200 mm, a pop-up message stating "Put your phone further away" may be displayed on the display. As another example, if the distance between the electronic device and the external device is about 400 mm, a pop-up message stating “the phone is too far away” may be displayed on the display.

다양한 실시예에 따르면, 동작 724에서, 전자 장치는 전자 장치와 외부 장치의 거리가 기준거리인 경우 알림음, 진동, 메시지 중 적어도 하나를 포함하는 방법으로 알림(예: 도 4의 알림(440))을 줄 수 있다.According to various embodiments, in operation 724, when the distance between the electronic device and the external device is the reference distance, the electronic device notifies the electronic device by a method including at least one of a notification sound, a vibration, and a message (eg, a notification 440 of FIG. 4 ). ) can be given.

다양한 실시예에 따르면, 전자 장치는 전자 장치와 외부 장치의 거리가 기준거리인 상태에서, UWB 데이터의 자가 교정 프로세스를 수행할 수 있다. 예를 들어, 전자 장치는 수직 방향 및 수평 방향의 UWB 데이터에 대해 각각의 교정 프로세스를 수행할 수 있다.According to various embodiments, the electronic device may perform the self-calibration process of the UWB data in a state where the distance between the electronic device and the external device is the reference distance. For example, the electronic device may perform respective calibration processes on UWB data in a vertical direction and a horizontal direction.

다양한 실시예에 따르면, 동작 726에서, 전자 장치는 전자 장치와 외부 장치의 거리가 기준거리인 경우 디스플레이 상에 제1교정 라인(예: 도 4의 제1교정 라인(430))을 표시할 수 있다. 예를 들어, 제1교정 라인은 디스플레이가 세로 방향으로 놓인 상태에서, 수직 방향으로 디스플레이의 가운데에 표시될 수 있다. 다양한 실시예에 따르면, 전자 장치는 제1교정 라인을 카메라가 획득하는 이미지와 중첩하여 표시할 수 있고, 제1교정 라인은 예를 들어, 적어도 일부가 투명한(또는 반투명한) 이미지일 수 있다.According to various embodiments, in operation 726, when the distance between the electronic device and the external device is the reference distance, the electronic device may display a first calibration line (eg, the first calibration line 430 of FIG. 4 ) on the display. have. For example, the first calibration line may be displayed in the center of the display in the vertical direction while the display is placed in the vertical direction. According to various embodiments, the electronic device may display the first calibration line overlapping the image acquired by the camera, and the first calibration line may be, for example, an image at least partially transparent (or translucent).

다양한 실시예에 따르면, 전자 장치는, 동작 730에서, 외부 장치의 이미지(예: 도 4의 외부 장치의 이미지(410))와 제1교정 라인이 중첩되는지 여부를 판단할 수 있다. 외부 장치의 이미지와 제1교정 라인이 중첩되지 않는 경우에는 중첩될 때까지 교정 버튼(예: 도 4의 교정 버튼(450))을 표시하지 않을 수 있다. 전자 장치는, 동작 732에서, 제1교정 라인과 외부 장치의 이미지가 적어도 일부 중첩되는 경우 근거리 통신 모듈로부터 수신한 UWB 신호를 이용하여 제1각도 정보를 생성하고 디스플레이에 교정 버튼을 표시할 수 있다. 제1각도 정보는 UWB 신호를 이용하여 측정한 PDoA 값을 보정한 후 AoA 값으로 변환한 값일 수 있다. 교정 버튼은 도시한 사각형 형태에 제한되지 않고 다른 어떤 형태의 도형일 수 있으며, 윤곽이 없는 영역 형태로 표시될 수도 있다. 일 실시예에 따르면, 교정 버튼은 색이나 음영으로 별도 표시될 수 있으며, 'Set Cal'등의 현재 수신되는 UWB 데이터에 기반하여 교정을 수행함을 지시하는 메시지가 함께 표시될 수 있다.According to various embodiments, in operation 730 , the electronic device may determine whether the image of the external device (eg, the image 410 of the external device of FIG. 4 ) overlaps with the first calibration line. When the image of the external device and the first calibration line do not overlap, the calibration button (eg, the calibration button 450 of FIG. 4 ) may not be displayed until they overlap. In operation 732, when the first calibration line and the image of the external device at least partially overlap, the electronic device may generate first angle information using the UWB signal received from the short-range communication module and display the calibration button on the display . The first angle information may be a value converted into an AoA value after correcting a PDoA value measured using a UWB signal. The correction button is not limited to the illustrated rectangular shape and may be any other shape or may be displayed in the form of an area without an outline. According to an embodiment, the calibration button may be separately displayed in color or shade, and a message instructing to perform calibration based on currently received UWB data such as 'Set Cal' may be displayed together.

다양한 실시예에 따르면, 동작 740에서, 전자 장치는 교정 버튼 상에 터치 입력이 수신되는 경우 생성한 제1각도 정보가 단말의 EFS 영역 상에 저장되는 제1교정을 수행할 수 있다. 일 실시예에 따르면, 전자 장치는 제1교정이 수행되면 완료되었음을 알리는 메시지 창을 디스플레이에 표시할 수 있다.According to various embodiments, in operation 740 , the electronic device may perform the first calibration in which the first angle information generated when a touch input is received on the calibration button is stored in the EFS area of the terminal. According to an embodiment, when the first calibration is performed, the electronic device may display a message window indicating that the first calibration has been completed on the display.

다양한 실시예에 따르면, 동작 750에서, 전자 장치는 제1교정이 완료된 이후 제2교정 라인(예: 도 5의 제2교정 라인(520))을 디스플레이에 표시할 수 있다. 예를 들어, 제2교정 라인은 제1교정 라인과 실질적으로 직교하는 방향, 예컨대, 디스플레이가 세로 방향으로 놓인 상태에서, 수평 방향으로 디스플레이의 가운데에 표시될 수 있다. 제2교정 라인은 디스플레이의 중앙에 표시될 수 있고, 다른 위치에 표시될 수도 있다. 이하 제2교정에 대한 동작은 제1교정과 유사하게 수행될 수 있으며, 앞서 설명한 바 있는 기술적 특징에 대해서는 이하에서 그 설명을 생략하기로 한다.According to various embodiments, in operation 750 , the electronic device may display a second calibration line (eg, the second calibration line 520 of FIG. 5 ) on the display after the first calibration is completed. For example, the second calibration line may be displayed in the center of the display in a direction substantially orthogonal to the first calibration line, eg, in a horizontal direction with the display lying in the vertical direction. The second calibration line may be displayed in the center of the display or may be displayed in another location. Hereinafter, the operation for the second calibration may be performed similarly to the first calibration, and the description of the technical features described above will be omitted below.

다양한 실시예에 따르면, 전자 장치는 카메라와 근거리 통신 모듈 사이의 거리를 확인하고, 확인된 거리에 기반하여 제1교정을 더 수행할 수 있다. 사용자는 외부 장치의 이미지를 카메라를 통해 확인하므로, AoA 측정의 실제 기준이 되는 근거리 통신 모듈과의 거리만큼 오차가 발생할 수 있다. 이를 보정하기 위하여 전자 장치는 카메라와 근거리 통신 모듈 사이의 거리에 대한 정보를 메모리(예: 도 2의 메모리(230))에 저장하고 그에 기반하여 오차를 보정할 수 있다.According to various embodiments, the electronic device may check the distance between the camera and the short-range communication module, and may further perform the first calibration based on the checked distance. Since the user checks the image of the external device through the camera, an error may occur as much as the distance from the short-range communication module, which is the actual standard for AoA measurement. In order to correct this, the electronic device may store information on the distance between the camera and the short-range communication module in a memory (eg, the memory 230 of FIG. 2 ) and correct the error based thereon.

다양한 실시예에 따르면, 전자 장치는 제1각도 정보와 제2각도 정보를 메모리에 저장할 수 있다. 제1각도 정보를 이용해 제1모드에서 수신한 UWB 신호 정보를 보정할 수 있고, 제2각도 정보를 이용해 제2모드에서 수신한 UWB 신호 정보를 보정할 수 있다.According to various embodiments, the electronic device may store the first angle information and the second angle information in a memory. UWB signal information received in the first mode may be corrected using the first angle information, and UWB signal information received in the second mode may be corrected using the second angle information.

다양한 실시예에 따르면, 전자 장치는 사용자의 선택에 따라 커버류 등을 전자 장치에서 제거하는 경우 메모리에 저장된 AoA 교정 값을 이용하지 않을 수 있다. 예를 들어, 사용자가 전자 장치에 케이스를 적용하는 경우 AoA 값에 오차가 발생하여 교정이 필요하나, 케이스를 제거하는 경우 다시 오차가 사라져 교정이 필요하지 않을 수 있다. 이러한 경우 케이스의 탈부착을 감지하여 케이스가 전자 장치에 적용된 경우에만 메모리에 저장된 교정 값을 적용할 수 있다.According to various embodiments, the electronic device may not use the AoA calibration value stored in the memory when the cover is removed from the electronic device according to a user's selection. For example, when a user applies a case to an electronic device, an error occurs in the AoA value and requires calibration. However, when the case is removed, the error disappears again, so calibration may not be required. In this case, the correction value stored in the memory may be applied only when the case is applied to the electronic device by detecting the attachment or detachment of the case.

다양한 실시예에 따르면, 전자 장치는 외부 장치와 정해진 기준거리를 유지한 상태에서 UWB 데이터의 교정 프로세스를 수행할 수 있다. 전자 장치와 외부 장치를 기준거리로 위치 시키기 위해 지그 박스(예: 도 3의 지그 박스(320))가 사용될 수 있다.According to various embodiments, the electronic device may perform a calibration process of UWB data while maintaining a predetermined reference distance with the external device. A jig box (eg, the jig box 320 of FIG. 3 ) may be used to position the electronic device and the external device at a reference distance.

다양한 실시예에 따르면, 지그 박스의 형태는 정다면체, 다각기둥, 구를 포함하여 어떤 것이든 가능하여 정해져 있지 않으며, 대칭적인 형태가 아닐 수도 있다. 예를 들어, 지그 박스의 제1면에는 전자 장치를 고정하기 위한 홈이 있을 수 있고, 제1면과 마주보는 제2면에는 외부 장치를 고정하기 위한 홈이 있을 수 있다. 홈의 위치는 정확한 교정을 할 수 있는 위치에 고정되어 있을 수도 있고, 사용자가 조정할 수도 있다.According to various embodiments, the shape of the jig box is not determined because anything including a regular polyhedron, a polygonal prism, and a sphere is possible, and may not be a symmetrical shape. For example, a groove for fixing an electronic device may be provided on a first surface of the jig box, and a groove for fixing an external device may be provided on a second surface facing the first surface. The position of the groove may be fixed at a position where accurate correction can be performed, or may be adjusted by the user.

다양한 실시예에 따르면, 외부 장치는 UWB 기능을 활용할 수 있는 전자 장치일 수 있다. 외부 장치는 전자 장치의 근거리 통신 모듈과의 무선 통신을 통하여 UWB 신호를 생성할 수 있다. 예를 들어, 외부 장치가 UWB 신호를 송신하면 근거리 통신 모듈 내의 송신부에서 UWB 신호를 감지하고 수신할 수 있다.According to various embodiments, the external device may be an electronic device capable of utilizing a UWB function. The external device may generate a UWB signal through wireless communication with a short-range communication module of the electronic device. For example, when an external device transmits a UWB signal, the transmitter in the short-range communication module may detect and receive the UWB signal.

다양한 실시예에 따르면, 외부 장치와 지그 박스는 일체형으로 제작될 수 있다. 예를 들어, 외부 장치가 지그 박스에 고정되어 있고, 외부 장치가 고정된 면과 마주보는 면에 전자 장치가 위치할 수 있는 홈이 있을 수 있다. 이 경우 사용자가 교정 라인이나 기준거리를 맞추기 위해 전자 장치를 이동시킬 필요 없이 몇 번의 터치만으로 교정을 수행할 수 있다. 일 실시예에 따르면, 지그 박스와 외부 장치가 일체형이 아닌 경우, 외부 장치를 탈착할 수 있는 별도 장치가 있을 수 있고, 외부 장치를 상자 속으로 집어넣기 위한 개폐식 도어가 존재할 수도 있다.According to various embodiments, the external device and the jig box may be integrally manufactured. For example, the external device is fixed to the jig box, and there may be a groove in which the electronic device can be positioned on a surface opposite to the surface on which the external device is fixed. In this case, the user can perform the calibration with just a few touches without the need to move the electronic device to match the calibration line or the reference distance. According to an embodiment, when the jig box and the external device are not integrated, there may be a separate device for detaching the external device, and there may be an opening/closing door for inserting the external device into the box.

다양한 실시예에 따르면, 교정 프로세스가 실행되면 전자 장치는 카메라를 동작시키고 근거리 통신 모듈에서 UWB 신호를 이용한 외부 장치와의 통신을 수행하도록 할 수 있다. 근거리 통신 모듈은 외부 장치에서 송신하는 UWB 신호를 수신하고, UWB 신호에 대한 정보를 전자 장치로 전달할 수 있다. 전자 장치는 상기 정보를 이용하여 각도 정보 및 거리 정보를 생성할 수 있다.According to various embodiments, when the calibration process is executed, the electronic device may operate a camera and allow the short-distance communication module to communicate with an external device using a UWB signal. The short-range communication module may receive a UWB signal transmitted from an external device and transmit information about the UWB signal to the electronic device. The electronic device may generate angle information and distance information by using the information.

다양한 실시예에 따르면, 전자 장치는 외부 장치와의 거리가 기준거리에 위치한 상태에서 교정 프로세스를 수행할 수 있다. 이를 위해, 전자 장치는 전자 장치와 외부 장치의 거리가 기준거리와 다른 경우 전자 장치의 위치를 조정하라고 지시하는 팝업 메시지를 디스플레이 상에 표시할 수 있다. 예를 들어, 기준거리보다 전자 장치와 외부 장치의 거리가 가까운 경우에는 거리를 더 떨어트리라고 지시하는 메시지를 표시할 수 있다.According to various embodiments, the electronic device may perform the calibration process in a state where the distance to the external device is located at the reference distance. To this end, when the distance between the electronic device and the external device is different from the reference distance, the electronic device may display a pop-up message instructing to adjust the location of the electronic device on the display. For example, when the distance between the electronic device and the external device is closer than the reference distance, a message instructing to further increase the distance may be displayed.

다양한 실시예에 따르면, 전자 장치와 외부 장치의 거리가 기준거리인 경우 전자 장치는 디스플레이에 제1교정 라인을 표시할 수 있다. 제1교정 라인의 두께는 교정 오차를 줄이기 위하여 특정 값 이하로 설정될 수 있다. 일 실시예에 따르면, 제1교정 라인에는 특정 색 및/또는 음영이 포함될 수 있으며, 외부 장치를 포함하는 이미지와 중첩되어 표시될 수 있도록 투명(또는 반투명)할 수도 있다. 제1교정 라인은 지정된 문구(예: cal line)를 포함할 수 있다.According to various embodiments, when the distance between the electronic device and the external device is the reference distance, the electronic device may display the first calibration line on the display. The thickness of the first calibration line may be set to be less than or equal to a specific value in order to reduce a calibration error. According to an embodiment, the first correction line may include a specific color and/or shade, and may be transparent (or translucent) so that it can be displayed while being overlapped with an image including an external device. The first calibration line may include a designated phrase (eg, cal line).

다양한 실시예에 따르면, 전자 장치와 외부 장치의 거리가 기준거리인 경우 전자 장치는 기준거리에 위치함을 알림음, 진동, 애니메이션 중 적어도 하나를 포함하는 방법을 통해 알릴 수 있다. 일 실시예에 따르면, 기준거리가 맞지 않는 경우 전자 장치는 제1교정 라인을 지우고 팝업 메시지를 다시 표시할 수 있다. According to various embodiments, when the distance between the electronic device and the external device is the reference distance, the electronic device may notify that the electronic device is located at the reference distance through a method including at least one of a notification sound, vibration, and animation. According to an embodiment, when the reference distance does not match, the electronic device may erase the first calibration line and display the pop-up message again.

다양한 실시예에 따르면, 전자 장치는 제1모드 교정을 위해 제1교정 라인을 디스플레이의 일면에 수직으로 배치할 수 있다. 일 실시예에 따르면 제1교정 라인은 디스플레이의 중앙에 위치할 수 있다.According to various embodiments, the electronic device may vertically arrange the first calibration line on one surface of the display for the first mode calibration. According to an embodiment, the first calibration line may be located in the center of the display.

다양한 실시예에 따르면, 전자 장치는 카메라가 획득하는 이미지 데이터 위에 제1교정 라인의 이미지를 동시에 표시할 수 있다. 예를 들어, 전자 장치의 후면 카메라 앞에 시계가 놓여있는 경우 디스플레이 상에는 시계의 이미지 데이터가 표시됨과 동시에 제1교정 라인이 겹치게 표시될 수 있다.According to various embodiments, the electronic device may simultaneously display the image of the first calibration line on the image data acquired by the camera. For example, when the watch is placed in front of the rear camera of the electronic device, image data of the watch may be displayed on the display and the first calibration line may be overlapped and displayed on the display.

다양한 실시예에 따르면, 전자 장치 혹은 외부 장치의 이동으로 외부 장치의 이미지와 교정 라인의 이미지가 적어도 일부 중첩된 경우, 전자 장치는 알림음, 진동, 애니메이션 중 적어도 하나를 포함하는 다양한 방법으로 사용자에게 알림을 줄 수 있다.According to various embodiments, when the image of the external device and the image of the calibration line overlap at least partially due to the movement of the electronic device or the external device, the electronic device provides the user with various methods including at least one of a notification sound, vibration, and animation. can give you a notification.

다양한 실시예에 따르면, 외부 장치의 이미지의 윤곽과 교정 라인의 윤곽이 만나거나, 외부 장치의 이미지가 교정 라인과 겹치는 경우 외부 장치의 이미지와 제1교정 라인이 중첩될 수 있다. 오차를 줄이기 위하여 교정 라인의 두께는 특정 값 이하로 설정될 수 있다.According to various embodiments, when the contour of the image of the external device meets the contour of the correction line or the image of the external device overlaps the correction line, the image of the external device and the first correction line may overlap. In order to reduce the error, the thickness of the calibration line may be set to a specific value or less.

다양한 실시예에 따르면, 전자 장치는 외부 장치의 이미지와 제1교정 라인이 중첩되는 경우 교정 버튼도 함께 디스플레이 상에 표시할 수 있다. 교정 버튼은 도면 상에서는 중앙 하단부에 표시되어 있으나 그 위치는 정해져 있지 않고 사용자가 설정할 수도 있다. 버튼의 형태도 사각형에 한정되지 않는다. 교정 버튼은 특정 문구(예: Set Cal)를 포함할 수도 있다.According to various embodiments, when the image of the external device and the first calibration line overlap, the electronic device may also display the calibration button on the display. The calibration button is displayed on the lower center of the drawing, but the location is not fixed and may be set by the user. The shape of the button is also not limited to a rectangle. The calibration button may include a specific phrase (eg, Set Cal).

다양한 실시예에 따르면, 전자 장치 혹은 외부 장치의 이동으로 외부 장치의 이미지와 교정 라인이 중첩되지 않는 경우 전자 장치는 애니메이션 등의 알림을 없애고 교정 버튼을 디스플레이 상에 표시하지 않을 수 있다.According to various embodiments, when the image of the external device and the calibration line do not overlap due to the movement of the electronic device or the external device, the electronic device may cancel a notification such as an animation and not display the calibration button on the display.

다양한 실시예에 따르면, 전자 장치와 외부 장치 사이의 거리가 기준거리와 다른 경우 전자 장치는 제1교정 라인의 표시를 제거하고 팝업 메시지를 디스플레이에 표시할 수도 있다.According to various embodiments, when the distance between the electronic device and the external device is different from the reference distance, the electronic device may remove the display of the first calibration line and display a pop-up message on the display.

다양한 실시예에 따르면, 전자 장치는 제1교정 라인과 외부 장치의 이미지가 중첩되는 경우, 현재 전자 장치와 외부 장치의 거리 및 각도 정보, 외부 장치에서 수신되는 UWB 데이터로부터 획득된 거리 및 각도 정보에 기반하여 UWB 데이터에 대한 교정 정보를 생성할 수 있다. 또는, 전자 장치는 교정 버튼의 선택에 기초하여 교정 정보를 생성할 수 있다.According to various embodiments of the present disclosure, when the first calibration line and the image of the external device overlap, the electronic device uses distance and angle information between the current electronic device and the external device, and the distance and angle information obtained from UWB data received from the external device. Based on this, calibration information for UWB data may be generated. Alternatively, the electronic device may generate calibration information based on selection of the calibration button.

다양한 실시예에 따르면, 전자 장치는 교정 버튼에 대한 사용자 입력(예: 터치, 클릭)에 기초하여 제1교정을 수행할 수 있다. 예를 들어, 전자 장치와 외부 장치가 기준거리만큼 떨어져있고, 외부 장치의 이미지와 제1교정 라인의 이미지의 적어도 일부가 중첩되며 교정 버튼에 사용자 입력이 수신되는 경우 전자 장치는 사용자 입력이 수신되는 때의 각도 정보를 제1각도 정보로 메모리에 저장할 수 있다.According to various embodiments of the present disclosure, the electronic device may perform the first calibration based on a user input (eg, touch, click) for the calibration button. For example, when the electronic device and the external device are separated by a reference distance, the image of the external device overlaps at least a portion of the image of the first calibration line, and a user input is received on the calibration button, the electronic device receives the user input The angle information at the time may be stored in the memory as the first angle information.

다양한 실시예에 따르면, 전자 장치는 제1교정을 수행한 후 디스플레이 상에 제1교정 라인과 교정 버튼을 지우고 완료 메시지(예: 도 4의 완료 메시지(460))를 표시할 수 있다. 완료 메시지는 디스플레이 상에 자유롭게 위치할 수 있으며, 색이나 음영으로 표시될 수 있다. 완료 메시지는 문구(예: calibration completed)를 포함할 수 있다. 일 실시예에 따르면, 전자 장치가 완료 메시지를 표시하는 동시에 카메라가 획득하는 이미지 데이터를 일시적으로 지우거나, 어둡게 표시할 수 있다.According to various embodiments, after performing the first calibration, the electronic device may erase the first calibration line and the calibration button and display a completion message (eg, the completion message 460 of FIG. 4 ) on the display. The completion message can be freely placed on the display and displayed in color or shade. The completion message may include a phrase (eg calibration completed). According to an embodiment, the electronic device may temporarily erase or darken image data acquired by the camera while displaying the completion message.

다양한 실시예에 따르면, 제1교정만으로도 완성된 교정 작업일 수 있다. 예를 들어, 사용자가 제1모드에서의 AoA 값에만 문제가 생긴 경우, 해당 모드에 대한 교정을 수행하는 제1교정만 진행하고 중단할 수 있다. 그러나 제2모드에서의 AoA 기능 사용에도 문제가 있는 경우 사용자의 설정에 따라서 해당 모드에서의 교정을 한 차례 더 수행할 수도 있다.According to various embodiments, only the first calibration may be a completed calibration work. For example, when the user has a problem only in the AoA value in the first mode, only the first calibration that performs the calibration for the corresponding mode may proceed and stop. However, if there is a problem in using the AoA function in the second mode, calibration in the corresponding mode may be performed once more according to the user's setting.

다양한 실시예에 따르면, 제2교정 수행 시 전자 장치와 외부 장치의 거리가 이미 기준거리를 만족하는 경우, 전자 장치는 팝업 메시지를 표시하지 않고 바로 제2교정 라인을 디스플레이에 표시할 수 있다. 예를 들어, 사용자가 제1교정 수행 이후 곧바로 제2교정을 수행하는 경우이거나 지그 박스를 이용하는 경우, 전자 장치와 외부 장치의 거리가 기준거리를 유지할 것이므로 전자 장치는 팝업 메시지를 표시할 필요 없이 바로 제2교정 라인을 디스플레이에 표시할 수 있다.According to various embodiments, when the distance between the electronic device and the external device already satisfies the reference distance when performing the second calibration, the electronic device may directly display the second calibration line on the display without displaying a pop-up message. For example, when the user performs the second calibration immediately after performing the first calibration or uses a jig box, the distance between the electronic device and the external device maintains the reference distance, so the electronic device can immediately display a pop-up message without displaying a pop-up message. A second calibration line may be displayed on the display.

다양한 실시예에 따르면, 전자 장치는 제1교정을 수행하고 제2교정 라인을 디스플레이 상에 표시할 수 있다. 일 실시예에 따르면, 제2교정 라인은 제1교정 라인과 직교하도록 표시될 수 있다. 예를 들어 제1교정 라인이 디스플레이의 일면에 수직으로 배치되어 제1모드에 대한 교정을 진행한 경우, 제2교정 라인은 디스플레이의 일면에 평행하게 배치되어 제2모드에 대한 교정을 진행할 수 있다.According to various embodiments, the electronic device may perform the first calibration and display the second calibration line on the display. According to one embodiment, the second calibration line may be marked to be orthogonal to the first calibration line. For example, when the first calibration line is disposed perpendicular to one surface of the display to perform calibration for the first mode, the second calibration line is disposed parallel to one surface of the display to perform calibration for the second mode .

다양한 실시예에 따르면, 외부 장치의 이미지가 제2교정 라인과 적어도 일부 중첩하는 경우, 전자 장치는 디스플레이에 교정 버튼을 표시할 수 있다. 전자 장치는 교정 버튼에 대한 사용자 입력(예: 터치, 클릭)에 기초하여 제2교정을 수행할 수 있다. 교정 버튼 상에 터치 입력이 수신되는 경우 전자 장치는 입력이 수신되는 때의 각도 정보를 제2각도 정보로 메모리에 저장할 수 있다.According to various embodiments, when the image of the external device at least partially overlaps the second calibration line, the electronic device may display a calibration button on the display. The electronic device may perform the second calibration based on a user input (eg, touch, click) for the calibration button. When a touch input is received on the calibration button, the electronic device may store angle information when the input is received as second angle information in the memory.

다양한 실시예에 따르면, 전자 장치는 제2교정을 수행한 후 도 4d에서 설명한 완료 메시지를 표시할 수 있다.According to various embodiments, after performing the second calibration, the electronic device may display the completion message described with reference to FIG. 4D .

도 7b는 전자 장치가 근거리 통신 모듈로부터 UWB 신호에 대한 정보를 수신하여 거리 정보 및 각도 정보를 생성하는 동작 710을 설명한 것이다. 전자 장치는, 동작 711에서, 근거리 통신 모듈에서 UWB 신호에 대한 정보를 수신하고 상기 정보를 이용하여 전자 장치와 외부 장치 사이의 거리를 측정할 수 있다. 전자 장치는, 동작 712에서, 상기 수신한 UWB 신호에 대한 정보에 기반하여 PDoA 값을 계산할 수 있다. 전자 장치는, 동작 713에서, 외부 장치와 전자 장치와의 거리 및 카메라와 근거리 통신 모듈 사이의 거리에 기초하여 PDoA 값을 보정할 수 있다. 이후 전자 장치는, 동작 715에서, 교정 프로세스에 이용하기 위하여 보정한 PDoA 값을 AoA 값으로 변환하고, 교정을 수행할 수 있다. 이하, UWB 신호에 대한 정보를 이용하여 PDoA 값을 계산하는 동작, 외부 장치와 전자 장치와의 거리 및 카메라와 근거리 통신 모듈 사이의 거리에 기초하여 보정하는 동작 및 보정한 PDoA 값을 AoA 값으로 변환하는 동작에 대하여 설명하도록 한다.7B illustrates an operation 710 in which the electronic device receives information on a UWB signal from a short-range communication module to generate distance information and angle information. In operation 711, the electronic device may receive information on the UWB signal from the short-range communication module and measure a distance between the electronic device and the external device by using the information. In operation 712, the electronic device may calculate a PDoA value based on the received information on the UWB signal. In operation 713 , the electronic device may correct the PDoA value based on the distance between the external device and the electronic device and the distance between the camera and the short-range communication module. Thereafter, in operation 715 , the electronic device may convert the corrected PDoA value to an AoA value for use in the calibration process and perform calibration. Hereinafter, the operation of calculating the PDoA value using information about the UWB signal, the operation of correcting based on the distance between the external device and the electronic device and the distance between the camera and the short-range communication module, and converting the corrected PDoA value into the AoA value Let me explain the operation.

다양한 실시예에 따르면, 교정을 수행할 때 사용자는 카메라를 기준으로 외부 장치의 위치를 판단하나, 전자 장치는 근거리 통신 모듈을 기준으로 위치를 계산하므로 각도 차이(

Figure pat00044
) 때문에 오차가 발생할 수 있다. 이를 추가로 보정하기 위하여 카메라와 근거리 통신 모듈 사이의 거리를 이용할 수 있다.According to various embodiments, when performing calibration, the user determines the position of the external device based on the camera, but the electronic device calculates the position based on the short-range communication module, so the angle difference (
Figure pat00044
) may cause errors. In order to further correct this, the distance between the camera and the short-range communication module may be used.

다양한 실시예에 따르면, 전자 장치의 후면은 카메라 및 근거리 통신 모듈이 위치할 수 있다. 예를 들면, 근거리 통신 모듈은 제1안테나, 제2안테나, 또는 제3안테나를 포함할 수 있다. portrait mode에서는 제1안테나의 중심과 제2안테나의 중심을 이은 선분의 수직이등분선이 AoA 측정의 기준이 될 수 있다. 카메라의 중심을 지나는 수평선과 상기 수직이등분선이 만나는 점을 P라고 하면, 카메라의 중심에서 점 P까지의 거리(x)만큼 오차가 발생할 수 있다. 마찬가지로, Landscape mode에서는 제1안테나의 중심과 제3안테나의 중심을 이은 선분의 수직이등분선이 AoA 측정의 기준이 될 수 있다. 카메라의 중심을 지나는 수직선과 상기 수직이등분선이 만나는 점을 Q라고 하면, 카메라의 중심에서 점 Q까지의 거리(y)만큼 오차가 발생할 수 있다. 전자 장치는 그 거리(y)만큼의 오차를 보정할 수 있다. 전자 장치는 상기 설명한 식 1 내지 식 7을 이용하여 교정을 수행할 수 있다.According to various embodiments, a camera and a short-range communication module may be positioned on the rear side of the electronic device. For example, the short-range communication module may include a first antenna, a second antenna, or a third antenna. In portrait mode, the vertical bisector of the line connecting the center of the first antenna and the center of the second antenna can be the standard for AoA measurement. If P is a point where the horizontal line passing through the center of the camera and the vertical bisector meet, an error may occur as much as the distance (x) from the center of the camera to the point P. Similarly, in the landscape mode, the vertical bisector of the line connecting the center of the first antenna and the center of the third antenna may be the standard for AoA measurement. If Q is the point where the vertical line passing through the center of the camera and the perpendicular bisector meet, an error may occur as much as the distance y from the center of the camera to the point Q. The electronic device may correct an error corresponding to the distance y. The electronic device may perform calibration using Equations 1 to 7 described above.

다양한 실시예에 따르면, 상기 식 4 내지 식 7에서 계산한 값들은 전자 장치의 고유한 특성 값이므로, 전자 장치는 상기 계산한 값들을 메모리의 config 영역에 미리 저장할 수 있다. 예를 들어, 전자 장치는 근거리 통신 모듈로부터 수신한 UWB 신호에 대한 정보에 기반하여 전자 장치와 외부 장치 사이의 거리 및 PDoA값을 계산하고, 이를 AoA로 변환하고, config영역에 이미 저장한 값을 호출하여 최종 보정을 거쳐 각도 정보를 생성할 수 있다.According to various embodiments, since the values calculated in Equations 4 to 7 are unique characteristic values of the electronic device, the electronic device may store the calculated values in advance in the config area of the memory. For example, the electronic device calculates the distance and PDoA value between the electronic device and the external device based on the information about the UWB signal received from the short-range communication module, converts it into AoA, and uses the value already stored in the config area. By calling it, you can generate angle information through final correction.

다양한 실시예에 따르면, 도시한 방법을 이용하지 않고 전자 장치의 중심을 외부 장치의 중심과 맞추어 교정 프로세스를 진행할 수도 있다. 예를 들어, 외부 장치의 중심과 전자 장치의 중심을 맞추어 포개어 놓고 전자 장치를 실행하면 자동으로 교정 프로세스가 진행되도록 설정할 수 있다.According to various embodiments, the calibration process may be performed by aligning the center of the electronic device with the center of the external device without using the illustrated method. For example, when the center of the external device and the center of the electronic device are overlapped and the electronic device is executed, the calibration process may be automatically performed.

Claims (20)

전자 장치에 있어서,
디스플레이;
외부 장치를 촬영하기 위한 카메라;
상기 외부 장치로부터 UWB(ultra wide band) 신호를 송신 및/또는 수신하는 근거리 통신 모듈;
메모리; 및
상기 카메라, 상기 디스플레이, 상기 근거리 통신 모듈, 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고,
상기 프로세서는,
상기 카메라를 이용하여 획득한 상기 외부 장치의 이미지를 상기 디스플레이에 표시하고,
상기 근거리 통신 모듈을 통해 수신한 UWB 신호에 기초하여, 상기 전자 장치와 상기 외부 장치의 거리를 측정하고,
상기 거리가 기준거리인 경우, 상기 디스플레이에 제1교정 라인을 표시하고,
상기 제1교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제1각도 정보를 계산하고,
상기 제1각도 정보에 기초하여 제1교정을 수행하도록 설정된 전자 장치.
In an electronic device,
display;
a camera for photographing an external device;
a short-range communication module for transmitting and/or receiving an ultra wide band (UWB) signal from the external device;
Memory; and
a processor operatively connected to the camera, the display, the short-range communication module, and the memory;
The processor is
Displaying the image of the external device acquired using the camera on the display,
measuring the distance between the electronic device and the external device based on the UWB signal received through the short-range communication module;
When the distance is the reference distance, display a first calibration line on the display,
When the first calibration line and the image of the external device at least partially overlap, calculating first angle information based on the UWB signal,
An electronic device configured to perform a first calibration based on the first angle information.
제 1항에 있어서,
상기 프로세서는,
상기 카메라와 상기 근거리 통신 모듈 사이의 거리를 확인하고,
상기 확인된 거리에 기반하여 제1교정을 더 수행하도록 설정된 전자 장치.
The method of claim 1,
The processor is
Check the distance between the camera and the short-range communication module,
The electronic device is configured to further perform a first calibration based on the identified distance.
제 1항에 있어서,
상기 프로세서는,
상기 제1교정 라인에 대한 제1교정을 수행한 후,
상기 제1교정 라인과 직교하는 제2교정 라인을 상기 디스플레이에 표시하도록 설정된 전자 장치.
The method of claim 1,
The processor is
After performing the first calibration on the first calibration line,
An electronic device configured to display a second calibration line orthogonal to the first calibration line on the display.
제 3항에 있어서,
상기 프로세서는,
상기 제2교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제2각도 정보를 계산하고,
상기 제2각도 정보에 기초하여 제2교정을 수행하도록 설정된 전자 장치.
4. The method of claim 3,
The processor is
calculating second angle information based on the UWB signal when the second calibration line and the image of the external device at least partially overlap;
An electronic device configured to perform a second calibration based on the second angle information.
제 4항에 있어서,
상기 프로세서는,
상기 카메라와 상기 근거리 통신 모듈 사이의 거리를 확인하고,
상기 확인된 거리에 기반하여 제2교정을 더 수행하도록 설정된 전자 장치.
5. The method of claim 4,
The processor is
Check the distance between the camera and the short-range communication module,
The electronic device is configured to further perform a second calibration based on the identified distance.
제 3항에 있어서,
상기 프로세서는,
상기 외부 장치의 이미지와 상기 제1교정 라인, 또는 상기 외부 장치의 이미지와 상기 제2교정 라인이 적어도 일부 중첩되는 경우, 교정 버튼을 디스플레이에 표시하도록 설정된 전자 장치.
4. The method of claim 3,
The processor is
an electronic device configured to display a calibration button on a display when the image of the external device and the first calibration line or the image of the external device and the second calibration line overlap at least partially.
제 6항에 있어서,
상기 프로세서는,
사용자가 상기 교정 버튼 상에 터치 입력이 수신되는 경우 제1교정 및/또는 제2교정을 수행하도록 설정된 전자 장치.
7. The method of claim 6,
The processor is
An electronic device configured to perform a first calibration and/or a second calibration when a user receives a touch input on the calibration button.
제 7항에 있어서,
상기 제1교정 및 상기 제2교정을 통해 보정된 값을 상기 메모리에 저장하도록 설정된 전자 장치.
8. The method of claim 7,
an electronic device configured to store values corrected through the first calibration and the second calibration in the memory.
제 1항에 있어서,
상기 프로세서는,
상기 외부 장치와 상기 전자 장치의 거리가 기준거리가 아닌 경우,
팝업 메시지를 표시하도록 설정된 전자 장치.
The method of claim 1,
The processor is
When the distance between the external device and the electronic device is not the reference distance,
An electronic device set up to display pop-up messages.
제 1항에 있어서,
상기 프로세서는,
상기 외부 장치와 상기 전자 장치의 거리가 기준거리인 경우,
진동, 메시지, 애니메이션, 알림음 중 적어도 하나를 포함하는 방법으로 알림을 제공하도록 설정된 전자 장치.
The method of claim 1,
The processor is
When the distance between the external device and the electronic device is a reference distance,
An electronic device configured to provide a notification by a method including at least one of a vibration, a message, an animation, and a notification sound.
전자 장치의 오차 자가교정 방법에 있어서,
카메라를 이용하여 외부 장치의 이미지를 디스플레이에 표시하는 동작;
근거리 통신 모듈을 통해 수신한 UWB 신호에 기초하여, 상기 전자 장치와 상기 외부 장치의 거리를 측정하는 동작;
상기 거리가 기준거리인 경우, 상기 디스플레이에 제1교정 라인을 표시하는 동작;
상기 제1교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제1각도 정보를 계산하는 동작; 및
상기 제1각도 정보에 기초하여 제1교정을 수행하는 동작을 포함하는 방법.
In the error self-correction method of an electronic device,
displaying an image of an external device on a display using a camera;
measuring a distance between the electronic device and the external device based on a UWB signal received through a short-range communication module;
displaying a first calibration line on the display when the distance is a reference distance;
calculating first angle information based on the UWB signal when the first calibration line and the image of the external device at least partially overlap; and
and performing a first calibration based on the first angle information.
제 11항에 있어서,
상기 제1교정을 수행하는 동작은,
상기 카메라와 상기 근거리 통신 모듈 사이의 거리를 확인하는 동작; 및
상기 확인된 거리에 기반하여 제1교정을 수행하는 동작을 더 포함하는 방법.
12. The method of claim 11,
The operation of performing the first calibration is
checking a distance between the camera and the short-range communication module; and
The method further comprising performing a first calibration based on the identified distance.
제 11항에 있어서,
상기 제1교정 라인에 대한 제1교정을 수행한 후, 상기 제1교정 라인과 직교하는 제2교정 라인을 상기 디스플레이에 표시하는 동작을 포함하는 방법.
12. The method of claim 11,
and after performing the first calibration on the first calibration line, displaying a second calibration line orthogonal to the first calibration line on the display.
제 13항에 있어서,
상기 제2교정 라인과 상기 외부 장치의 이미지가 적어도 일부 중첩되는 경우 상기 UWB 신호에 기반하여 제2각도 정보를 계산하는 동작; 및
상기 제2각도 정보에 기반하여 제2교정을 수행하는 동작을 포함하는 방법.
14. The method of claim 13,
calculating second angle information based on the UWB signal when the second calibration line and the image of the external device at least partially overlap; and
and performing a second calibration based on the second angle information.
제 14항에 있어서,
상기 제2교정을 수행하는 동작은,
상기 카메라와 상기 근거리 통신 모듈 사이의 거리를 확인하는 동작; 및
상기 확인된 거리에 기반하여 제2교정을 수행하는 동작을 더 포함하는 방법.
15. The method of claim 14,
The operation of performing the second calibration is
checking a distance between the camera and the short-range communication module; and
The method further comprising performing a second calibration based on the identified distance.
제 13항에 있어서,
상기 외부 장치의 이미지와 상기 제1교정 라인, 또는 상기 외부 장치의 이미지와 상기 제2교정 라인이 적어도 일부 중첩되는 경우, 교정 버튼을 디스플레이에 표시하는 동작을 포함하는 방법.
14. The method of claim 13,
and displaying a calibration button on a display when the image of the external device and the first calibration line or the image of the external device and the second calibration line at least partially overlap.
제 16항에 있어서,
사용자가 상기 교정 버튼 상에 터치 입력이 수신되는 경우 제1교정 및/또는 제2교정을 수행하는 동작을 포함하는 방법.
17. The method of claim 16,
and performing a first calibration and/or a second calibration when a user receives a touch input on the calibration button.
제 17항에 있어서,
상기 제1교정 및 상기 제2교정을 통해 보정된 값을 메모리에 저장하는 동작을 포함하는 방법.
18. The method of claim 17,
and storing a value corrected through the first calibration and the second calibration in a memory.
제 11항에 있어서,
상기 외부 장치와 상기 전자 장치의 거리가 기준거리가 아닌 경우 팝업 메시지를 표시하는 동작을 더 포함하는 방법.
12. The method of claim 11,
and displaying a pop-up message when the distance between the external device and the electronic device is not a reference distance.
제 11항에 있어서,
상기 외부 장치와 상기 전자 장치의 거리가 기준거리인 경우 진동, 메시지, 애니메이션, 알림음 중 적어도 하나를 포함하는 방법으로 알림을 제공하는 동작을 더 포함하는 방법.
12. The method of claim 11,
When the distance between the external device and the electronic device is a reference distance, the method further comprising providing a notification in a method including at least one of vibration, a message, an animation, and a notification sound.
KR1020200185170A 2020-12-28 2020-12-28 electronic device and sensor data calibration method of electronic device KR20220093964A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200185170A KR20220093964A (en) 2020-12-28 2020-12-28 electronic device and sensor data calibration method of electronic device
PCT/KR2021/019950 WO2022145926A1 (en) 2020-12-28 2021-12-27 Electronic device and method for correcting sensor data of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200185170A KR20220093964A (en) 2020-12-28 2020-12-28 electronic device and sensor data calibration method of electronic device

Publications (1)

Publication Number Publication Date
KR20220093964A true KR20220093964A (en) 2022-07-05

Family

ID=82259799

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200185170A KR20220093964A (en) 2020-12-28 2020-12-28 electronic device and sensor data calibration method of electronic device

Country Status (2)

Country Link
KR (1) KR20220093964A (en)
WO (1) WO2022145926A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4763507B2 (en) * 2006-05-11 2011-08-31 ソフトバンクモバイル株式会社 Sensor data correction method and movement information device
KR20170022489A (en) * 2015-08-20 2017-03-02 엘지전자 주식회사 Unmanned air device and method of controlling the same
US10942249B2 (en) * 2017-12-22 2021-03-09 Nxp B.V. Method and system for determining a location of a mobile device
KR102602370B1 (en) * 2018-02-06 2023-11-16 삼성전자주식회사 Apparatus and method for controlling antennas in wireless communication system
KR20200045947A (en) * 2018-10-23 2020-05-06 엘지전자 주식회사 Mobile terminal

Also Published As

Publication number Publication date
WO2022145926A1 (en) 2022-07-07

Similar Documents

Publication Publication Date Title
KR20220048913A (en) An elelctronic device and method for inducing input
US11995305B2 (en) Predictive presentation of a user interface on an extendible display
US20230196607A1 (en) Electronic device for correcting position of external device and operation method thereof
US11805199B2 (en) Electronic device and method for identifying grip state of electronic device
EP4187270A1 (en) Detection circuit, and electronic device comprising same
KR20220093964A (en) electronic device and sensor data calibration method of electronic device
KR20220118196A (en) Call function control method and electronic device supporting the same
KR20220079387A (en) Electric device inclduing anttenna
KR20220016735A (en) Method for measuring location using wireless communication and electronic device supporting the same
US11885926B2 (en) Electronic device and method for detecting whether a cover is attached thereto
KR102317172B1 (en) Electronic device including flexible display and method of operation therof
US20230126232A1 (en) Electronic device and operating method thereof
US20230116299A1 (en) Electronic device comprising printed circuit board
EP4231611A1 (en) Electronic device comprising housing comprising fiducial mark and method of manufacturing same
EP4254656A1 (en) Electronic apparatus comprising antenna
US20230328169A1 (en) Electronic device for recognizing cover device and operation method thereof
EP4332720A1 (en) Electronic device including fingerprint sensor
KR20220117054A (en) Method for measuring location using wireless communication and electronic device supporting the same
KR20220128170A (en) Electronic device and method for using card type barometric sensor in the electronic device
KR20220134409A (en) Electronic device including housing comprising fiducial mark and fabrication method thereof
KR20240017726A (en) Electronic device for providing display setting based on folding status of foldable display and control method thereof
KR20240001638A (en) Electronic device recogniging electronic pen
KR20220029018A (en) Electronic device including flexible display and method of operating the same
KR20220129901A (en) Electronic device comprising antenna
KR20220016603A (en) Electronic device for detecting user input and operating method thereof

Legal Events

Date Code Title Description
A201 Request for examination