KR20230060427A - Electronic device for controlling external electronic device and operating method thereof - Google Patents

Electronic device for controlling external electronic device and operating method thereof Download PDF

Info

Publication number
KR20230060427A
KR20230060427A KR1020220010512A KR20220010512A KR20230060427A KR 20230060427 A KR20230060427 A KR 20230060427A KR 1020220010512 A KR1020220010512 A KR 1020220010512A KR 20220010512 A KR20220010512 A KR 20220010512A KR 20230060427 A KR20230060427 A KR 20230060427A
Authority
KR
South Korea
Prior art keywords
electronic device
external electronic
distance
external
camera
Prior art date
Application number
KR1020220010512A
Other languages
Korean (ko)
Inventor
김석현
임채길
송가진
이선기
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to PCT/KR2022/012018 priority Critical patent/WO2023075103A1/en
Priority to EP22887309.7A priority patent/EP4361673A1/en
Priority to US17/895,363 priority patent/US20230130891A1/en
Publication of KR20230060427A publication Critical patent/KR20230060427A/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0257Hybrid positioning
    • G01S5/0268Hybrid positioning by deriving positions from different combinations of signals or of estimated positions in a single positioning system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Landscapes

  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

According to various embodiments, an electronic device capable of positioning and controlling an object may include: a communication module; a first camera disposed on a first housing surface; a second camera disposed on a second housing surface; and at least one processor electrically connected to the communication module, the first camera, and the second camera, wherein the at least one processor may be configured to: execute an application for registering and controlling at least one first external electronic device based on a user input; establish a communication connection with a second external electronic device by using the communication module; obtain at least one of an angle and a distance between the second external electronic device and the electronic device; obtain a distance between the electronic device and the at least one first external electronic device, based on at least one of the angle and the distance between the second external electronic device and the electronic device; and obtain a location of the at least one first external electronic device, based on the distance between the electronic device and the at least one first external electronic device. In addition, various embodiments may be possible.

Description

외부 전자 장치를 제어하는 전자 장치 및 이의 동작 방법{ELECTRONIC DEVICE FOR CONTROLLING EXTERNAL ELECTRONIC DEVICE AND OPERATING METHOD THEREOF}Electronic device for controlling an external electronic device and method for operating the same

본 발명의 다양한 실시 예들은 외부 전자 장치를 제어하는 전자 장치 및 이의 동작 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device for controlling an external electronic device and an operating method thereof.

전자 장치라 함은, 가전제품부터, 전자 수첩, 휴대용 멀티미디어 재생기, 이동통신 단말기, 태블릿 PC, 영상/음향 장치, 데스크톱/랩톱 컴퓨터, 차량용 내비게이션, 에어컨, 선풍기, 조명 장치 등, 탑재된 프로그램에 따라 특정 기능을 수행하는 장치를 의미할 수 있다. 전자 장치는 리모컨에 의해 동작할 수 있다. 예를 들어, TV는 TV 리모컨에 의해 동작할 수 있고, 에어컨은 에어컨 리모컨에 의해 동작할 수 있다.Electronic devices include home appliances, electronic notebooks, portable multimedia players, mobile communication terminals, tablet PCs, video/audio devices, desktop/laptop computers, car navigation systems, air conditioners, fans, lighting devices, etc., depending on the installed program. It may refer to a device that performs a specific function. The electronic device may be operated by a remote controller. For example, a TV may be operated by a TV remote control, and an air conditioner may be operated by an air conditioner remote control.

최근 사용자 장치인 모바일 기기를 이용하여 서로 종류가 다른 리모컨의 기능을 하나의 모바일 기기에서 구현하는 기술이 도입되고 있다. 일반적인 Point to Control 방식에 의하면, UWB(Ultra-WideBand) 통신 기능을 지원하는 모바일 기기로 다른 UWB 통신 가능 기기를 지향하면, 해당 기기의 정보를 인식하여 해당 기기와 관련된 제어 화면에 표시함으로써 해당 기기를 제어할 수 있다. UWB 통신 기능을 활용하면 GPS(global positioning system)을 사용할 수 없는 실내에에서 모바일 기기 주변의 다양한 물체들을 측위하여 해당 물체들을 제어할 수 있다. Recently, a technology for implementing functions of different types of remote controllers in a single mobile device using a mobile device, which is a user device, has been introduced. According to the general point-to-control method, when a mobile device supporting UWB (Ultra-WideBand) communication function points to another UWB communication capable device, it recognizes the information of the corresponding device and displays it on the control screen related to the corresponding device. You can control it. Using the UWB communication function, it is possible to position various objects around the mobile device and control the objects in a room where a global positioning system (GPS) is not available.

전자 장치가 UWB 통신 기능을 활용하여 물체를 측위하기 위해서는 측위할 물체가 UWB 안테나를 구비해야 하고, 해당 물체와 UWB 통신이 가능한 범위 내에 물체의 좌표를 알고 있는 UWB 통신 가능 기기가 필요하다. 이를 위해 전자 장치가 UWB 신호를 주기적으로 방송하는 UWB 장치와 UWB 통신을 하면서 전자 장치의 후면에 위치한 카메라 렌즈(이하, 후면 카메라)를 이용하여 UWB 안테나를 구비하지 않은 물체를 지향하여 물체를 측위할 수 있다. 일 실시 예에 따르면, UWB 장치는, UWB 안테나를 구비한 이동 가능한 전자 기기 또는 앵커 장치 등의 고정형 UWB 기기일 수 있다. 예를 들면, 사용자가 제어하고자 하는 물체를 전자 장치에 설치된 제어 어플리케이션에 등록하는 과정에서 물체를 후면 카메라로 지향하면, 전자 장치가 UWB 장치와 UWB 통신을 통해 UWB 장치와 전자 장치 간의 거리 및 각도를 계산하고, 계산된 거리 및 각도에 기반하여 UWB 장치가 위치한 벽면과 동일 선상에 위치한 물체의 포인트를 계산할 수 있다. 이러한 방법은 물체가 전자 장치의 후면 카메라와 동일한 방향에 위치하는 경우에만 적용 가능하며, 물체가 전자 장치의 전면에 위치한 카메라 렌즈(이하, 전면 카메라)와 동일한 방향에 위치하는 경우에는 적용할 수 없다. In order for an electronic device to position an object using a UWB communication function, an object to be positioned must have a UWB antenna, and a UWB communication capable device that knows the coordinates of the object within a range capable of UWB communication with the object is required. To this end, the electronic device performs UWB communication with a UWB device that periodically broadcasts UWB signals, and uses a camera lens (hereinafter referred to as a rear camera) located on the back of the electronic device to aim at an object not equipped with a UWB antenna and position the object. can According to an embodiment, the UWB device may be a movable electronic device equipped with a UWB antenna or a fixed UWB device such as an anchor device. For example, when a user points an object to a rear camera in the process of registering an object to be controlled in a control application installed in an electronic device, the electronic device determines the distance and angle between the UWB device and the electronic device through UWB communication with the UWB device. and, based on the calculated distance and angle, the point of the object located on the same line as the wall where the UWB device is located may be calculated. This method is applicable only when the object is located in the same direction as the rear camera of the electronic device, and cannot be applied when the object is located in the same direction as the camera lens (hereinafter referred to as front camera) located in the front of the electronic device. .

본 발명의 다양한 실시 예들에 따른 전자 장치는, 전자 장치의 전면 카메라를 이용하여 전자 장치의 전면 카메라와 동일한 방향에 위치하며 UWB 통신이 불가능한 물체를 측위하는 방법을 제공할 수 있다.An electronic device according to various embodiments of the present disclosure may provide a method of positioning an object that is located in the same direction as the front camera of the electronic device and cannot perform UWB communication using the front camera of the electronic device.

다양한 실시예에 따라서, 전자 장치는, 전자 장치는, 통신 모듈; 제1 하우징 표면에 배치되는 제1 카메라; 제2 하우징 표면에 배치되는 제2 카메라; 및 상기 통신 모듈, 상기 제1 카메라, 및 상기 제2 카메라와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는, 사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치를 등록하고 제어하기 위한 어플리케이션을 실행하고, 상기 통신 모듈을 이용하여 제2 외부 전자 장치와 통신 연결을 수립하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하도록 설정될 수 있다.According to various embodiments, an electronic device may include a communication module; a first camera disposed on the first housing surface; a second camera disposed on the second housing surface; and at least one processor electrically connected to the communication module, the first camera, and the second camera, wherein the at least one processor registers at least one first external electronic device based on a user input. and executes an application for controlling, establishes a communication connection with a second external electronic device using the communication module, obtains at least one of an angle and a distance between the second external electronic device and the electronic device, and 2 obtaining a distance between the electronic device and the at least one first external electronic device based on at least one of an angle and a distance between the external electronic device and the at least one first external electronic device; Based on the distance between the devices, the location of the at least one first external electronic device may be acquired.

다양한 실시예에 따라서, 전자 장치의 동작 방법은, 사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치를 등록하고 제어하기 위한 어플리케이션을 실행하는 동작, 상기 전자 장치의 통신 모듈을 이용하여 상기 전자 장치와 통신할 수 있는 제2 외부 전자 장치와 통신 연결을 수립하는 동작, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하는 동작, 상기 전자 장치의 제1 하우징 표면에 배치되는 제1 카메라를 구동하여, 상기 제1 카메라에 의해 촬영 가능한 방향에 위치한 상기 적어도 하나의 외부 전자 장치를 인식하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하는 동작, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하는 동작을 포함할 수 있다.According to various embodiments, a method of operating an electronic device includes an operation of executing an application for registering and controlling at least one first external electronic device based on a user input, and the electronic device using a communication module of the electronic device. An operation of establishing a communication connection with a second external electronic device capable of communicating with the device, an operation of obtaining at least one of an angle and a distance between the second external electronic device and the electronic device, and A first camera is driven to recognize the at least one external electronic device located in a direction in which a photograph can be taken by the first camera, and based on at least one of an angle and a distance between the second external electronic device and the electronic device. obtaining a distance between the electronic device and the at least one first external electronic device, and determining the distance between the electronic device and the at least one first external electronic device based on the distance between the at least one first external electronic device It may include an operation of obtaining a location.

다양한 실시예에 따르면 전자 장치의 전면 카메라를 이용하여 전자 장치의 전면 카메라와 동일한 방향에 위치하며 UWB 통신이 불가한 물체를 측위하는 방법 및 이를 위한 전자 장치를 제공함으로써, UWB 통신이 불가능한 물체의 위치에 관계 없이 전자 장치를 이용하여 물체를 측위하고 제어할 수 있다.According to various embodiments, a method for locating an object located in the same direction as the front camera of the electronic device and incapable of UWB communication using a front camera of the electronic device and an electronic device therefor are provided, thereby providing a location of the object incapable of UWB communication. Regardless, it is possible to position and control an object using an electronic device.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예들에 따른 전자 장치의 블록도이다.
도 3a 및 도 3b는 다양한 실시예들에 따른 전자 장치의 동작을 설명하기 위한 흐름도이다.
도 4는 다양한 실시예들에 따른 전자 장치의 동작을 설명하기 위한 도면이다.
도 5a 및 도 5b는 다양한 실시예들에 따라 전자 장치가 제어 어플리케이션에 외부 전자 장치를 등록하는 동작을 설명하기 위한 흐름도이다.
도 6은 다양한 실시예들에 따라 전자 장치가 외부 전자 장치의 위치를 계산하는 방법을 설명하기 위한 도면이다.
도 7a 및 도 7b은 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 제어하기 위해 외부 전자 장치를 인식하고 측위하는 동작을 설명하기 위한 흐름도이다.
도 8a 및 도 8b은 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 측위하여 제어 어플리케이션에 등록하는 동작을 설명하기 위한 도면이다.
도 9는 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 제어하기 위한 제어 어플리케이션의 UI를 도시한 도면이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
2 is a block diagram of an electronic device according to various embodiments.
3A and 3B are flowcharts illustrating an operation of an electronic device according to various embodiments.
4 is a diagram for explaining an operation of an electronic device according to various embodiments.
5A and 5B are flowcharts illustrating an operation of registering an external electronic device to a control application by an electronic device according to various embodiments.
6 is a diagram for explaining a method for an electronic device to calculate a location of an external electronic device according to various embodiments.
7A and 7B are flowcharts illustrating an operation of recognizing and locating an external electronic device in order for an electronic device to control the external electronic device according to various embodiments.
8A and 8B are diagrams for describing an operation of an electronic device to locate and register an external electronic device in a control application according to various embodiments.
9 is a diagram illustrating a UI of a control application for an electronic device to control an external electronic device according to various embodiments.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다. 1 is a block diagram of an electronic device in a network environment according to various embodiments.

도 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))로 통합될 수 있다.Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

도 2를 참조하면, 일 실시예에 따른 전자 장치(101)는, 프로세서(120), 디스플레이 모듈(160), 카메라 모듈(180), 및 통신 모듈(190)을 포함할 수 있다.Referring to FIG. 2 , an electronic device 101 according to an embodiment may include a processor 120, a display module 160, a camera module 180, and a communication module 190.

일 실시예에 따라, 카메라 모듈(180)은 적어도 하나의 카메라 모듈(예를 들어, 제1 카메라 모듈(281) 및 제2 카메라 모듈(282))로 구현될 수 있다. 제1 카메라 모듈(281)은, 전자 장치(101)의 케이스 후면에 위치한 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다. 이하에서는 후면 카메라를 제1 카메라 모듈(281)과 동일한 의미로 사용한다. 제2 카메라 모듈(282)은, 전자 장치(101)의 케이스 전면에 위치한 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다. 이하에서는 전면 카메라를 제2 카메라 모듈(282)과 동일한 의미로 사용한다. According to an embodiment, the camera module 180 may be implemented as at least one camera module (eg, a first camera module 281 and a second camera module 282). The first camera module 281 may include one or more lenses, image sensors, image signal processors, or flashes located on the rear surface of the case of the electronic device 101 . Hereinafter, the rear camera is used as the same meaning as the first camera module 281 . The second camera module 282 may include one or more lenses, image sensors, image signal processors, or flashes located on the front of the case of the electronic device 101 . Hereinafter, the front camera is used as the same meaning as the second camera module 282 .

일 실시예에 따라, 전자 장치(101)의 통신 모듈(190)이 지원하는 통신 방식은 방향 및 거리를 정밀하게 측정할 수 있는 통신 방식(예: UWB 통신 방식)을 포함할 수 있다. According to an embodiment, a communication method supported by the communication module 190 of the electronic device 101 may include a communication method (eg, a UWB communication method) capable of accurately measuring a direction and a distance.

예를 들어, 전자 장치(101)(예를 들어, 프로세서(120))는, 통신 모듈(190) 및/또는 카메라 모듈(180)을 이용하여, 전자 장치(101)의 주변에 위치하는 적어도 하나의 외부 전자 장치의 위치를 확인할 수 있다. 예를 들어, 전자 장치(101)는, 통신 모듈(190) 및/또는 카메라 모듈(180)을 이용하여, 전자 장치(101)로부터 제1 외부 전자 장치까지의 거리 및/또는 전자 장치(101)를 기준으로 하는 적어도 하나의 제2 외부 전자 장치의 방향을 확인할 수 있다. 제1 외부 전자 장치는 방향 및 거리 측정이 가능한 통신 기능을 구비한 전자 장치일 수 있다. 적어도 하나의 제2 외부 전자 장치는 방향 및 거리 측정이 가능한 통신 기능을 구비하지 않은 전자 장치일 수 있다. 전술한 통신 모듈(190)이 지원하는 구체적인 통신 방식의 종류는 예시적인 것으로서, 그 제한은 없다. 전자 장치(101)는 도 2에 개시되지 않은 통신 모듈을 포함할 수 있으며, 이에 대해서는 도 1의 설명을 참조할 수 있다.For example, the electronic device 101 (eg, the processor 120) uses the communication module 190 and/or the camera module 180 to at least one device located around the electronic device 101. It is possible to check the location of an external electronic device. For example, the electronic device 101 determines the distance from the electronic device 101 to the first external electronic device and/or the electronic device 101 using the communication module 190 and/or the camera module 180. A direction of at least one second external electronic device based on may be identified. The first external electronic device may be an electronic device having a communication function capable of measuring direction and distance. At least one second external electronic device may be an electronic device that does not have a communication function capable of measuring direction and distance. The types of specific communication methods supported by the aforementioned communication module 190 are examples, and are not limited thereto. The electronic device 101 may include a communication module not disclosed in FIG. 2 , and the description of FIG. 1 may be referred to for this.

일 실시예에 따라, 전자 장치(101)의 통신 모듈(190)이 지원하는 통신 방식은, 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)에서 동작하는 근거리 무선 통신 방식으로서, 블루투스(또는, 블루투스 저에너지(Bluetooth low energy: BLE)), 지그비(Zigbee), 와이파이(WiFi), 및/또는 NFC(near field communication) 통신 방식을 포함할 수 있다. 예를 들어, 전자 장치(101)(예를 들어, 프로세서(120))는, 통신 모듈(190)을 이용하여, 전자 장치(101)의 주변에 위치하는 적어도 하나의 외부 전자 장치와 근거리 무선 통신을 수행할 수 있다.According to an embodiment, the communication method supported by the communication module 190 of the electronic device 101 is a short-distance wireless communication method operating in the first network 198 (eg, a short-range wireless communication network), such as Bluetooth (or , Bluetooth low energy (BLE), Zigbee, WiFi, and/or near field communication (NFC) communication methods. For example, the electronic device 101 (eg, the processor 120) performs short-range wireless communication with at least one external electronic device located around the electronic device 101 using the communication module 190. can be performed.

일 실시예에 따라, 전자 장치(101)의 통신 모듈(190)이 지원하는 통신 방식은, 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)에서 동작하는 통신 방식을 포함할 수 있다. 예를 들어, 전자 장치(101)(예를 들어, 프로세서(120))는, 통신 모듈(190)을 이용하여, 적어도 하나의 외부 전자 장치와 원거리 무선 통신을 수행할 수 있다.According to an embodiment, the communication method supported by the communication module 190 of the electronic device 101 may include a communication method operating in the second network 199 (eg, a long-distance wireless communication network). For example, the electronic device 101 (eg, the processor 120) may perform long-distance wireless communication with at least one external electronic device using the communication module 190 .

일 실시예에 따라, 전자 장치(101)의 프로세서(120)는, 외부 전자 장치를 제어하기 위한 제어 어플리케이션에 외부 전자 장치를 등록하거나 외부 전자 장치를 제어 어플리케이션으로 제어하기 위해, 사용자의 입력에 기반하여 제어 어플리케이션을 실행하고, 디스플레이 모듈(160)에 제어 어플리케이션 실행 화면을 표시할 수 있다. According to an embodiment, the processor 120 of the electronic device 101 registers the external electronic device with a control application for controlling the external electronic device or controls the external electronic device with a control application based on a user's input. Thus, the control application may be executed, and the control application execution screen may be displayed on the display module 160 .

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 사용자의 입력에 의해 제어 어플리케이션에서 기기 등록 메뉴가 선택되면, 외부 전자 장치의 등록을 위해 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 전자 장치(101)의 프로세서(120)는, 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다. According to various embodiments, when a device registration menu is selected in a control application by a user's input, the processor 120 of the electronic device 101 drives the first camera module 281 to register the external electronic device. Accordingly, the processor 120 of the electronic device 101 may display a scene recognized through the rear camera of the electronic device 101 on the display module 160 .

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 방향 및 거리 측정이 가능한 통신 기능을 구비한 다른 전자 장치(예: UWB 통신이 가능한 UWB 장치)와의 통신 연결을 수립하고, 다른 전자 장치와 전자 장치(101) 간의 거리를 측정할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 may use a communication module (eg, the communication module 190 of FIG. 2 ) to determine direction and distance using another communication function capable of measuring direction and distance. A communication connection with an electronic device (eg, a UWB device capable of UWB communication) may be established, and a distance between another electronic device and the electronic device 101 may be measured.

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 사용자의 후방에 있는 외부 전자 장치(410)를 제어 어플리케이션에 등록하기 위하여, 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 전자 장치(101)의 프로세서(120)는, 전자 장치(101)의 전면 카메라를 통해 인식되는 외부 전자 장치를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.According to various embodiments, the processor 120 of the electronic device 101 may drive the second camera module 282 in order to register the external electronic device 410 located behind the user with the control application. Accordingly, the processor 120 of the electronic device 101 may display a scene including an external electronic device recognized through the front camera of the electronic device 101 on the display module 160 .

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 전자 장치(101)와 방향 및 거리 측정이 가능한 통신 기능을 구비한 다른 전자 장치 간의 거리 및 상기 다른 전자 장치와 외부 전자 장치가 위치한 후방 벽까지의 거리에 기반하여, 전자 장치(101)와 외부 전자 장치 간의 거리를 측정하고, 이를 토대로 외부 전자 장치의 위치를 계산할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 determines the distance between the electronic device 101 and another electronic device having a communication function capable of measuring direction and distance, and the other electronic device and the external electronic device. The distance between the electronic device 101 and the external electronic device may be measured based on the distance to the rear wall where is located, and the location of the external electronic device may be calculated based on the distance.

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 외부 전자 장치의 위치를 서버(예를 들어, 도 1의 서버(108)) 또는 전자 장치(101)의 메모리(예를 들어, 도 1의 메모리(130))에 저장함으로써 외부 전자 장치를 제어 어플리케이션에 등록할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 stores the location of the external electronic device as a server (eg, the server 108 of FIG. 1 ) or a memory of the electronic device 101 (eg, the server 108). For example, the external electronic device may be registered in the control application by storing it in the memory 130 of FIG. 1 .

다양한 실시예들에 따라, 사용자의 입력에 의해 제어 어플리케이션에서 기기 제어 메뉴가 선택되면, 전자 장치(101)의 프로세서(120)는, 외부 전자 장치의 제어를 위해 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 전자 장치(101)는 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다. According to various embodiments, when a device control menu is selected in a control application by a user's input, the processor 120 of the electronic device 101 drives the first camera module 281 to control the external electronic device. Accordingly, the electronic device 101 may display a scene recognized through the rear camera of the electronic device 101 on the display module 160 .

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 다른 전자 장치와의 통신 연결을 수립하고 다른 전자 장치와 전자 장치(101) 간의 거리를 측정할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 establishes a communication connection with another electronic device using a communication module (eg, the communication module 190 of FIG. 2 ), and the other electronic device A distance between the device and the electronic device 101 may be measured.

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 사용자의 후방에 있는 외부 전자 장치를 제어하기 위하여 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 전자 장치(101)의 프로세서(120)는, 전자 장치(101)의 전면 카메라를 통해 인식되는 외부 전자 장치를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.According to various embodiments, the processor 120 of the electronic device 101 may drive the second camera module 282 to control an external electronic device located behind the user, and thus the electronic device 101 The processor 120 of ) may display a scene including an external electronic device recognized through the front camera of the electronic device 101 on the display module 160 .

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 전자 장치(101)와 다른 전자 장치 간의 거리 및 기 저장된 다른 전자 장치로부터 후면 벽까지 거리에 기반하여, 전자 장치(101)와 외부 전자 장치 간의 거리를 측정하고 외부 전자 장치의 위치를 계산할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 determines the electronic device 101 based on a distance between the electronic device 101 and another electronic device and a pre-stored distance from the other electronic device to the rear wall. The distance between the external electronic device and the external electronic device may be measured and the location of the external electronic device may be calculated.

다양한 실시예들에 따라, 전자 장치(101)의 프로세서(120)는, 계산된 외부 전자 장치의 위치에 기반하여 외부 전자 장치가 기 등록된 장치임을 확인하고, 외부 전자 장치를 제어하기 위한 사용자 인터페이스(UI)를 디스플레이 모듈(160)에 표시할 수 있다. According to various embodiments, the processor 120 of the electronic device 101 confirms that the external electronic device is a pre-registered device based on the calculated location of the external electronic device, and controls the external electronic device through a user interface. (UI) may be displayed on the display module 160 .

이후 전자 장치(101)가 외부 전자 장치(410)를 제어하는 구체적인 동작들은 블루투스, 지그비, 와이파이, 및/또는 NFC 등의 근거리 무선 통신 방식을 이용한 다양한 방법들이 적용될 수 있으며, 본 명세서에서는 이에 대한 설명을 생략한다. Thereafter, various methods using a short-range wireless communication method such as Bluetooth, ZigBee, Wi-Fi, and/or NFC may be applied to the specific operations of the electronic device 101 controlling the external electronic device 410, and the present specification describes this. omit

도 3a 및 도 3b는 다양한 실시예들에 따른 전자 장치의 동작을 설명하기 위한 흐름도이다. 도 3a 및 도 3b는 도 4를 참조하여 설명하도록 한다. 3A and 3B are flowcharts illustrating an operation of an electronic device according to various embodiments. Figures 3a and 3b will be described with reference to Figure 4.

도 4는, 다양한 실시예들에 따른 전자 장치의 동작을 설명하기 위한 도면이다. 4 is a diagram for explaining an operation of an electronic device according to various embodiments.

도 4를 참조하면, 제1 전자 장치(101)(예: 도 1의 전자 장치(101) 또는 도 2의 전자 장치(101))는 제2 전자 장치(430)(예: UWB 장치)와 통신(예: UWB 통신)을 수행할 수 있다. 제1 전자 장치(101)의 사용자(420)는 제1 전자 장치(101)의 전면에 위치한 디스플레이 모듈(160)을 향하고 있는 상태에서, 제1 전자 장치(101)를 이용하여 사용자(420)의 후면에 위치한 외부 전자 장치(410)를 측위하고자 할 수 있다. 일 실시 예에 따르면, 외부 전자 장치(410)는, 제1 전자 장치(101)와의 근거리 무선 통신을 이용하여 제1 전자 장치(101)를 통해 제어 가능한 장치로서, 방향 및 거리 측정이 가능한 통신(예: UWB 통신) 기능을 구비하지 않은 전자 장치일 수 있으며, 외부 전자 장치(410)의 종류에는 제한이 없다. 일 실시 예에 따르면, 제2 전자 장치(430)는 제1 전자 장치(101)와 통신이 가능하며 주기적으로 방향 및 거리 측정을 위한 신호를 방송하는 전자 장치일 수 있다. Referring to FIG. 4 , a first electronic device 101 (eg, the electronic device 101 of FIG. 1 or the electronic device 101 of FIG. 2 ) communicates with a second electronic device 430 (eg, a UWB device). (e.g. UWB communication) can be performed. The user 420 of the first electronic device 101 uses the first electronic device 101 while facing the display module 160 located in front of the first electronic device 101. It may be desired to locate the external electronic device 410 located on the rear side. According to an embodiment, the external electronic device 410 is a device that can be controlled through the first electronic device 101 using short-range wireless communication with the first electronic device 101, and can perform direction and distance measurement communication ( Example: It may be an electronic device without a UWB communication function, and the type of external electronic device 410 is not limited. According to an embodiment, the second electronic device 430 may be an electronic device capable of communicating with the first electronic device 101 and periodically broadcasting signals for direction and distance measurement.

도 3a를 참조하면, 301 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)(예를 들어, 프로세서(120))는, 외부 전자 장치(410)를 제어하기 위한 제어 어플리케이션에 외부 전자 장치(410)를 등록하기 위해, 사용자(420)의 입력에 기반하여 제어 어플리케이션을 실행하고 디스플레이 모듈(160)에 제어 어플리케이션 실행 화면을 표시할 수 있다. Referring to FIG. 3A , in operation 301, according to various embodiments, the first electronic device 101 (eg, the processor 120) sends an external control application to control the external electronic device 410. In order to register the electronic device 410 , a control application may be executed based on a user 420 input and a control application execution screen may be displayed on the display module 160 .

다양한 실시예들에 따르면, 제어 어플리케이션 실행 화면은 적어도 하나의 메뉴 중 적어도 하나를 선택하기 위한 메뉴 선택 화면을 표시할 수 있다. 메뉴 선택 화면은, 적어도 하나의 메뉴에 대응하는 적어도 하나의 오브젝트를 포함할 수 있으며, 메뉴 선택 화면에 포함되는 오브젝트의 종류 및 오브젝트에 대응하는 메뉴의 종류에는 제한이 없다. 메뉴 선택 화면을 통해 선택할 수 있는 적어도 하나의 메뉴는, 기기 등록을 포함할 수 있다. 기기 등록이란, 전자 장치의 제어 어플리케이션을 통해 제어하기 위한 새로운 외부 전자 장치를 등록하는 것을 의미할 수 있다. According to various embodiments, the control application execution screen may display a menu selection screen for selecting at least one of at least one menu. The menu selection screen may include at least one object corresponding to at least one menu, and the types of objects included in the menu selection screen and the types of menus corresponding to the objects are not limited. At least one menu selectable through the menu selection screen may include device registration. Device registration may mean registering a new external electronic device to be controlled through a control application of the electronic device.

302 동작에서, 다양한 실시예들에 따라, 사용자(420)의 입력에 의해 제어 어플리케이션에서 기기 등록 메뉴가 선택되면, 제1 전자 장치(101)는 외부 전자 장치(410)의 등록을 위해 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다. In operation 302, according to various embodiments, when a device registration menu is selected in the control application by an input of the user 420, the first electronic device 101 uses a first camera to register the external electronic device 410. The module 281 may be driven, and accordingly, the first electronic device 101 may display a scene recognized through the rear camera of the first electronic device 101 on the display module 160 .

303 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 제1 전자 장치(101)의 주변에 위치한 제2 전자 장치(430)를 인식하고, 제2 전자 장치(430)와의 통신 연결을 수립하고, 제2 전자 장치(430)의 위치를 측정할 수 있다. 다양한 실시예들에 따라 제1 전자 장치(101)는, 통신 모듈(190)을 이용하여, 제1 전자 장치(101) 및 적어도 하나의 외부 장치의 상대적인 위치가 통신 모듈을 이용하여 측정 가능한 범위에 해당하는 것에 기반하여, 적어도 하나의 외부 장치(예를 들어, 도 4a 및 도 4b의 제2 전자 장치(430))를 인식할 수 있다. 일 실시 예에 따르면, 제2 전자 장치(430)의 위치는, 전자 장치(101)와 제2 전자 장치(430) 사이의 거리 및/또는 각도에 기반하여 결정될 수 있다. In operation 303, according to various embodiments, the first electronic device 101 is located near the first electronic device 101 using a communication module (eg, the communication module 190 of FIG. 2 ). The second electronic device 430 may be recognized, a communication connection with the second electronic device 430 may be established, and a location of the second electronic device 430 may be measured. According to various embodiments, the first electronic device 101 uses the communication module 190 so that the relative position of the first electronic device 101 and at least one external device is within a measurable range using the communication module. Based on the correspondence, at least one external device (eg, the second electronic device 430 of FIGS. 4A and 4B) may be recognized. According to an embodiment, the location of the second electronic device 430 may be determined based on a distance and/or an angle between the electronic device 101 and the second electronic device 430 .

예를 들어, 도 4는, 제1 전자 장치(101)가, 제2 전자 장치(430)와 외부 전자 장치(410) 중에서 제2 전자 장치(430)를 지향하고 있는 것을 도시하고 있다. 도 4를 참조하면, 제1 전자 장치(101)는, 제2 전자 장치(430)의 위치가 미리 설정된 범위 내에 포함되는지 확인할 수 있다. 일 실시 예에 따르면, 제1 전자 장치(101)는, UWB 통신 방식을 지원하는 통신 모듈(190)을 이용하여, 제1 전자 장치(101)와 제2 전자 장치(430) 사이의 거리가 미리 설정된 범위 내에 포함되는지 확인할 수 있다. 다른 실시 예에 따르면, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430)가 이루는 각도가 미리 설정된 범위 내에 포함되지 확인할 수 있다. 또 다른 실시 예에 따르면, 제1 전자 장치(101)와 제2 전자 장치(430) 사이의 거리 및 각도가 미리 설정된 범위 내에 포함되는지 확인할 수 있다. For example, FIG. 4 illustrates that the first electronic device 101 directs the second electronic device 430 among the second electronic device 430 and the external electronic device 410 . Referring to FIG. 4 , the first electronic device 101 may check whether the location of the second electronic device 430 is within a preset range. According to an embodiment, the first electronic device 101 uses the communication module 190 supporting the UWB communication method to set a distance between the first electronic device 101 and the second electronic device 430 in advance. You can check whether it is within the set range. According to another embodiment, the first electronic device 101 may check whether the angle between the first electronic device 101 and the second electronic device 430 is within a preset range. According to another embodiment, it may be checked whether the distance and angle between the first electronic device 101 and the second electronic device 430 are within a preset range.

예를 들어, 도 4에서, 제1 전자 장치(101)는, 제2 전자 장치(430)를 지향하고 있는 것에 기반하여, 제2 전자 장치(430)를 인식하되, 외부 전자 장치(410)는 인식하지 않을 수 있다. 일 실시 예에 따르면, 제1 전자 장치(101)가 다른 전자 장치(예를 들어, 제2 전자 장치(430))를 인식한다는 것은, 제1 전자 장치(101)와 다른 전자 장치(예를 들어, 제2 전자 장치(430))가 방향 및 거리 측정이 가능한 통신 방식을 이용하여 메시지(예를 들어, UWB 통신 방식을 사용하는 경우에, ranging poll message, ranging response message, 및/또는 ranging final message)를 송수신 함으로써, SS-TWR(single-sided two-way ranging) 방식 및/또는 DS-TWR(double-sided two-way ranging) 방식에 기반하여, 제1 전자 장치(101)와 다른 전자 장치(예를 들어, 제2 전자 장치(430)) 사이의 거리가 미리 설정된 범위 내에 포함되는 것을 확인하는 것을 의미할 수 있다. 다른 실시 예에 따르면, 제1 전자 장치(101)가 다른 전자 장치(예를 들어, 제2 전자 장치(430))를 인식한다는 것은, 제1 전자 장치(101)와 다른 전자 장치(예를 들어, 제2 전자 장치(430))가 방향 및 거리 측정이 가능한 통신 방식을 이용하여 메시지(예를 들어, UWB 통신 방식을 사용하는 경우에, ranging poll message, ranging response message, 및/또는 ranging final message)를 송수신할 때, 제1 전자 장치(101)는 상기 메시지를 수신하는 안테나가 2개 이상인 경우에 AoA(angle of arrival)에 기반하여 제2 전자 장치(439)와의 각도를 측정할 수 있다. 또는 제1 전자 장치(101)는 상기 메시지를 송신하는 안테나가 2개 이상인 경우에 AoD(angle of departure)에 기반하여 제2 전자 장치(439)와의 각도를 측정할 수 있다, 제1 전자 장치(101)와 다른 전자 장치(예를 들어, 제2 전자 장치(430)) 사이의 각도가 미리 설정된 범위 내에 포함되는 것을 확인하는 것을 의미할 수 있다. For example, in FIG. 4 , the first electronic device 101 recognizes the second electronic device 430 based on the fact that the second electronic device 430 is directed, but the external electronic device 410 does not may not be aware of it. According to an embodiment, recognizing another electronic device (eg, the second electronic device 430) by the first electronic device 101 means that the first electronic device 101 and the other electronic device (eg, the second electronic device 430) are recognized. , the second electronic device 430 sends a message (eg, in the case of using a UWB communication method, a ranging poll message, a ranging response message, and/or a ranging final message) using a communication method capable of measuring direction and distance ), the first electronic device 101 and another electronic device (based on a single-sided two-way ranging (SS-TWR) method and/or a double-sided two-way ranging (DS-TWR) method) For example, it may mean confirming that the distance between the second electronic devices 430 is within a preset range. According to another embodiment, recognizing another electronic device (eg, the second electronic device 430) by the first electronic device 101 means that the first electronic device 101 and the other electronic device (eg, the second electronic device 430) are recognized. , the second electronic device 430 sends a message (eg, in the case of using a UWB communication method, a ranging poll message, a ranging response message, and/or a ranging final message) using a communication method capable of measuring direction and distance ), the first electronic device 101 may measure an angle with the second electronic device 439 based on angle of arrival (AoA) when there are two or more antennas for receiving the message. Alternatively, when there are two or more antennas for transmitting the message, the first electronic device 101 may measure an angle with the second electronic device 439 based on angle of departure (AoD). 101) and another electronic device (eg, the second electronic device 430) may mean checking that the angle is within a preset range.

304 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 사용자(420)의 후방에 있는 외부 전자 장치(410)를 제어 어플리케이션에 등록하기 위하여, 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 전면 카메라를 통해 인식되는 외부 전자 장치(410)를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.In operation 304, according to various embodiments, the first electronic device 101 uses the second camera module 282 to register the external electronic device 410 located behind the user 420 in the control application. Accordingly, the first electronic device 101 can display a scene including the external electronic device 410 recognized through the front camera of the first electronic device 101 on the display module 160 .

305 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 제2 전자 장치(430)와 외부 전자 장치(410)가 위치한 후방 벽까지의 거리에 기반하여, 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리를 측정하고, 이를 토대로 외부 전자 장치(410)의 위치를 계산할 수 있다. 제2 전자 장치(430)와 외부 전자 장치(410)가 위치한 후방 벽까지의 거리를 계산하는 것과 관련하여서는 도 5 및 도 6에서 후술하도록 한다. In operation 305, according to various embodiments, the first electronic device 101 determines the distance between the first electronic device 101 and the second electronic device 430 and the distance between the second electronic device 430 and the external electronic device ( The distance between the first electronic device 101 and the external electronic device 410 may be measured based on the distance to the rear wall where 410) is located, and the location of the external electronic device 410 may be calculated based on the distance. The calculation of the distance between the second electronic device 430 and the rear wall where the external electronic device 410 is located will be described later with reference to FIGS. 5 and 6 .

306 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 외부 전자 장치(410)의 위치를 서버(예를 들어, 도 1의 서버(108)) 또는 제1 전자 장치(101)의 메모리(예를 들어, 도 1의 메모리(130))에 저장함으로써 외부 전자 장치(410)를 제어 어플리케이션에 등록할 수 있다. In operation 306, according to various embodiments, the first electronic device 101 determines the location of the external electronic device 410 by a server (eg, the server 108 of FIG. 1) or the first electronic device 101. The external electronic device 410 may be registered in the control application by storing in the memory (eg, the memory 130 of FIG. 1 ) of ).

도 3b를 참조하면, 311 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)(예를 들어, 프로세서(120))는, 외부 전자 장치(410)를 제어 어플리케이션으로 제어하기 위해, 사용자(420)의 입력에 기반하여 제어 어플리케이션을 실행하고 디스플레이 모듈(160)에 제어 어플리케이션 실행 화면을 표시할 수 있다. Referring to FIG. 3B , in operation 311, according to various embodiments, the first electronic device 101 (eg, the processor 120) controls the external electronic device 410 with a control application, Based on the input of the user 420, a control application may be executed and a control application execution screen may be displayed on the display module 160.

다양한 실시예들에 따르면, 제어 어플리케이션 실행 화면은 적어도 하나의 메뉴 중 적어도 하나를 선택하기 위한 메뉴 선택 화면을 표시할 수 있다. 메뉴 선택 화면은, 적어도 하나의 메뉴에 대응하는 적어도 하나의 오브젝트를 포함할 수 있으며, 메뉴 선택 화면에 포함되는 오브젝트의 종류 및 오브젝트에 대응하는 메뉴의 종류에는 제한이 없다. 메뉴 선택 화면을 통해 선택할 수 있는 적어도 하나의 메뉴는, 기기 제어를 포함할 수 있다. 기기 제어란, 전자 장치의 제어 어플리케이션에 기 등록된 외부 전자 장치를, 제어 어플리케이션을 이용하여 제어하는 것을 의미할 수 있다. According to various embodiments, the control application execution screen may display a menu selection screen for selecting at least one of at least one menu. The menu selection screen may include at least one object corresponding to at least one menu, and the types of objects included in the menu selection screen and the types of menus corresponding to the objects are not limited. At least one menu selectable through the menu selection screen may include device control. Device control may mean controlling an external electronic device pre-registered in a control application of an electronic device by using a control application.

312 동작에서, 다양한 실시예들에 따라, 사용자(420)의 입력에 의해 제어 어플리케이션에서 기기 제어 메뉴가 선택되면, 제1 전자 장치(101)는 외부 전자 장치(410)의 제어를 위해 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다. In operation 312, according to various embodiments, when a device control menu is selected in the control application by an input of the user 420, the first electronic device 101 controls the external electronic device 410 by using a first camera. The module 281 may be driven, and accordingly, the first electronic device 101 may display a scene recognized through the rear camera of the first electronic device 101 on the display module 160 .

313 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 제2 전자 장치(430)와의 통신 연결을 수립하고 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 측정할 수 있다. In operation 313, according to various embodiments, the first electronic device 101 establishes a communication connection with the second electronic device 430 using a communication module (eg, the communication module 190 of FIG. 2 ). Establish and measure the distance between the second electronic device 430 and the first electronic device 101.

314 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 사용자(420)의 후방에 있는 외부 전자 장치(410)를 제어하기 위하여 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 전면 카메라를 통해 인식되는 외부 전자 장치(410)를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.In operation 314, according to various embodiments, the first electronic device 101 may drive the second camera module 282 to control the external electronic device 410 located behind the user 420 and , Accordingly, the first electronic device 101 may display a scene including the external electronic device 410 recognized through the front camera of the first electronic device 101 on the display module 160 .

315 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 기 저장된 제2 전자 장치(430)로부터 후면 벽까지 거리에 기반하여, 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리를 측정하고 외부 전자 장치(410)의 위치를 계산할 수 있다. In operation 315, according to various embodiments, the first electronic device 101 determines the distance between the first electronic device 101 and the second electronic device 430 and the rear wall from the previously stored second electronic device 430. Based on the distance to , a distance between the first electronic device 101 and the external electronic device 410 may be measured and a position of the external electronic device 410 may be calculated.

316 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 계산된 외부 전자 장치(410)의 위치에 기반하여 외부 전자 장치(410)가 기 등록된 장치임을 확인하고, 외부 전자 장치(410)를 제어하기 위한 사용자 인터페이스(UI)를 디스플레이 모듈(160)에 표시할 수 있다. In operation 316, according to various embodiments, the first electronic device 101 confirms that the external electronic device 410 is a pre-registered device based on the calculated location of the external electronic device 410, and A user interface (UI) for controlling the device 410 may be displayed on the display module 160 .

이후 제1 전자 장치(101)가 외부 전자 장치(410)를 제어하는 구체적인 동작들은 블루투스, 지그비, 와이파이, 및/또는 NFC 등의 근거리 무선 통신 방식을 이용한 다양한 방법들이 적용될 수 있으며, 본 명세서에서는 이에 대한 설명을 생략한다. Thereafter, various methods using a short-range wireless communication method such as Bluetooth, ZigBee, Wi-Fi, and/or NFC may be applied to specific operations in which the first electronic device 101 controls the external electronic device 410, and in the present specification, this omit the explanation.

도 5a 및 도 5b는, 다양한 실시예들에 따라 전자 장치가 제어 어플리케이션에 외부 전자 장치를 등록하는 동작을 설명하기 위한 흐름도이다. 도 5a는 서버가 포함되지 않는 경우를 도시한 것이고, 도 5b는 서버(440)가 포함되는 경우를 도시한 것이다.5A and 5B are flowcharts illustrating an operation of registering an external electronic device to a control application by an electronic device according to various embodiments. FIG. 5A shows a case where a server is not included, and FIG. 5B shows a case where a server 440 is included.

도 5a를 참조하면, 501 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)(예를 들어, 프로세서(120))는, 사용자(420)의 입력에 기반하여 제어 어플리케이션을 실행하고, 디스플레이 모듈(160)에 제어 어플리케이션 실행 화면을 표시할 수 있다. Referring to FIG. 5A , in operation 501, according to various embodiments, the first electronic device 101 (eg, the processor 120) executes a control application based on a user 420 input and , a control application execution screen may be displayed on the display module 160 .

502 동작에서, 사용자 입력에 의해 제어 어플리케이션에서 기기 등록 메뉴가 선택되면, 503 동작에서, 제1 전자 장치(101)는 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 제2 전자 장치(430)(예: UWB 장치)와의 통신 연결(예: UWB 통신 연결)을 수립하고, 제2 전자 장치(430)와 전자 장치(101) 간의 거리를 측정할 수 있다. In operation 502, when a device registration menu is selected in the control application by a user input, in operation 503, the first electronic device 101 uses a communication module (eg, the communication module 190 of FIG. 2 ) to register a device registration menu. 2 A communication connection (eg, UWB communication connection) with the electronic device 430 (eg, a UWB device) may be established, and a distance between the second electronic device 430 and the electronic device 101 may be measured.

다양한 실시예들에 따라, 제1 전자 장치(101)가 방송(broadcast) 신호를 송출하고 제2 전자 장치(430)로부터 방송 신호에 대한 응답 신호를 수신할 수 있다. According to various embodiments, the first electronic device 101 may transmit a broadcast signal and receive a response signal to the broadcast signal from the second electronic device 430 .

제1 전자 장치(101)가 방송 신호를 송출하는 것을, 제1 전자 장치(101)가 스캔 동작을 수행하는 것으로 이해할 수 있다. 또는, 제1 전자 장치(101)가 방송 신호를 송출하고, 방송 신호에 대한 응답 신호를 수신하는 것을, 제1 전자 장치(101)가 스캔 동작을 수행하는 것으로 이해할 수 있다.Transmitting a broadcast signal by the first electronic device 101 may be understood as performing a scan operation by the first electronic device 101 . Alternatively, it may be understood that the first electronic device 101 transmits a broadcast signal and receives a response signal to the broadcast signal as the first electronic device 101 performs a scan operation.

제1 전자 장치(101)의 스캔 동작을 통해, 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430)가 스캔 되는 경우, 제1 전자 장치(101)는, 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430))가 제1 전자 장치(101)의 주변에 위치하고 있음을 확인할 수 있다. 일 실시 예에서, 제1 전자 장치(101)가 적어도 하나의 외부 장치를 스캔하는 동작과 적어도 하나의 외부 장치를 인식하는 동작은 서로 구별될 수 있다. 예를 들어, 제1 전자 장치(101)가 스캔 동작을 통해 제2 전자 장치(430)를 확인했다는 것은, 제1 전자 장치(101)가 제1 전자 장치의 주변에 제2 전자 장치(430)가 위치하고 있음을 확인했다는 것을 의미할 수 있다. 제1 전자 장치(101)가 통신을 통해 제2 전자 장치(430)를 인식했다는 것은, 제1 전자 장치(101)가 제2 전자 장치(430)를 지향함에 따라, 제1 전자 장치(101)가 제1 전자 장치(101) 및 제2 전자 장치(430)의 상대적인 위치가 미리 설정된 범위에 해당함을 확인했다는 것을 의미할 수 있다. 본 개시에서는 외부 장치를 스캔하는 동작과 외부 장치를 인식하는 동작을 구별하여 설명하였으나, 이는 설명의 편의를 위한 것으로서, 외부 장치를 스캔하는 동작은, 외부 장치를 인식하는 동작에 포함되는 것으로 이해할 수도 있다. 예를 들어, 제1 전자 장치(101)가 통신을 통해 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430))에 대한 인식 동작을 수행한다는 것은, 제1 전자 장치(101)가 스캔 동작을 수행하고, 주변에 위치하는 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430))를 통신을 통해 인식하는 동작을 수행하는 것으로 이해할 수 있다. 예를 들어, 제1 전자 장치(101)는, 제어 어플리케이션의 기기 등록 메뉴가 선택됨에 따라, 통신 모듈(190)을 이용하여, 주변에 위치한 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430))를 인식할 수 있다. 또는 일 실시예에 따라, 제1 전자 장치(101)는, 스캔 동작을 수행하여, 주변에 위치한 적어도 하나의 외부 장치(예를 들어, 제2 전자 장치(430))를 확인하고, 기기 등록 메뉴가 선택됨을 확인한 후, 인식 동작을 수행할 수도 있다.When at least one external device (for example, the second electronic device 430) is scanned through the scanning operation of the first electronic device 101, the first electronic device 101 may detect at least one external device ( For example, it may be confirmed that the second electronic device 430 is located around the first electronic device 101. In an embodiment, the first electronic device 101 scans at least one external device. An operation of recognizing at least one external device may be distinguished from an operation of recognizing at least one external device. This may mean that the device 101 has confirmed that the second electronic device 430 is located near the first electronic device. Recognized means that, as the first electronic device 101 points toward the second electronic device 430, the first electronic device 101 determines the relative positions of the first electronic device 101 and the second electronic device 430. This may mean that it has been confirmed that is within a preset range In the present disclosure, an operation of scanning an external device and an operation of recognizing an external device have been separately described, but this is for convenience of description and the operation of scanning an external device The operation may also be understood as being included in an operation of recognizing an external device, for example, when the first electronic device 101 communicates with at least one external device (eg, the second electronic device 430). Performing a recognition operation for , means that the first electronic device 101 performs a scanning operation and recognizes at least one external device (eg, the second electronic device 430) located nearby through communication. For example, when the device registration menu of the control application is selected, the first electronic device 101 uses the communication module 190 to communicate with at least one external device located in the periphery. A device (eg, the second electronic device 430) may be recognized. Alternatively, according to an embodiment, the first electronic device 101 performs a scan operation, identifies at least one external device (eg, the second electronic device 430) located in the vicinity, and selects a device registration menu. After confirming that is selected, a recognition operation may be performed.

다양한 실시예들에 따른, 제1 전자 장치(101)는, 통신 모듈(190)을 이용하여, 제2 전자 장치(430)를 인식할 수 있다. 예를 들어, 제1 전자 장치(101)는, 통신 모듈(190)을 이용하여, 제1 전자 장치(101) 및 제2 전자 장치(430)의 상대적인 위치가 설정된 범위에 해당하는 것에 기반하여, 제2 전자 장치(430)를 인식할 수 있다. 예를 들어, 도 4를 참조하면, 제1 전자 장치(101)는, 제2 전자 장치(430)를 지향함에 따라, 통신 모듈(190)을 이용하여, 제2 전자 장치(430)를 인식할 수 있다.According to various embodiments, the first electronic device 101 may recognize the second electronic device 430 using the communication module 190 . For example, the first electronic device 101, using the communication module 190, based on the relative positions of the first electronic device 101 and the second electronic device 430 corresponding to a set range, The second electronic device 430 may be recognized. For example, referring to FIG. 4 , as the first electronic device 101 directs toward the second electronic device 430, it recognizes the second electronic device 430 using the communication module 190. can

다양한 실시예들에 따라, 제1 전자 장치(101)는 사용자 입력에 의해 제어 어플리케이션에서 기기 등록 메뉴가 선택되면 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다.According to various embodiments, the first electronic device 101 may drive the first camera module 281 when a device registration menu is selected in the control application by a user input, and accordingly, the first electronic device 101 may display a scene recognized through the rear camera of the first electronic device 101 on the display module 160 .

504 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 사용자(420)의 후방에 위치하고 있는 외부 전자 장치(410)를 제어 어플리케이션에 등록하기 위하여, 카메라 모드를 셀프 모드로 변경하여 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 전면 카메라를 통해 인식되며 외부 전자 장치(410)를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.In operation 504, according to various embodiments, the first electronic device 101 changes the camera mode to the self mode in order to register the external electronic device 410 located behind the user 420 in the control application. to drive the second camera module 282, and accordingly, the first electronic device 101 is recognized through the front camera of the first electronic device 101 and the scene including the external electronic device 410 is displayed on the display module (160).

다양한 실시예들에 따라, 제2 카메라 모듈(282)로의 카메라 모드 변경은, 사용자(420)의 입력을 통해 전환될 수 있다. 다양한 실시예들에 따라, 사용자(420)가 제1 전자 장치(101)의 디스플레이 화면을 스와이프 하거나 별도의 카메라 모드 변경 아이콘을 터치함으로써 제2 카메라 모듈(282)로의 변경이 수행될 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 제1 전자 장치(101)의 센서 모듈(예: 도 1의 센서 모듈(176))을 이용하여 사용자(420)의 음성이나 시선의 움직임 등을 감지함으로써 제2 카메라 모듈(282)로의 모드 변경을 수행할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 제1 카메라 모듈(281)과 제2 카메라 모듈(282)을 동시에 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면과 전면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다.According to various embodiments, a camera mode change to the second camera module 282 may be switched through an input of the user 420 . According to various embodiments, the user 420 may change to the second camera module 282 by swiping the display screen of the first electronic device 101 or touching a separate camera mode change icon. According to various embodiments, the first electronic device 101 uses a sensor module (eg, the sensor module 176 of FIG. 1 ) of the first electronic device 101 to voice or gaze movement of the user 420 . A mode change to the second camera module 282 may be performed by detecting a back. According to various embodiments, the first electronic device 101 may simultaneously drive the first camera module 281 and the second camera module 282, and thus the first electronic device 101 may operate the first electronic device 101. A scene recognized through the rear camera and a scene recognized through the front camera of the device 101 may be displayed on the display module 160 .

505 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 카메라 모듈(282)를 이용하여 등록하고자 하는 외부 전자 장치(410)를 지향할 수 있다. In operation 505, according to various embodiments, the first electronic device 101 may direct the external electronic device 410 to be registered using the second camera module 282.

506 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 전자 장치(430)와의 통신을 통해 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도를 계산할 수 있다. In operation 506, according to various embodiments, the first electronic device 101 calculates a distance and an angle between the electronic device 101 and the second electronic device 430 through communication with the second electronic device 430. can

507 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도에 기반하여 외부 전자 장치(410)와 제1 전자 장치(101)간의 거리를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도와, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리에 기반하여, 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리를 계산할 수 있다. In operation 507, according to various embodiments, the first electronic device 101 establishes a relationship between the external electronic device 410 and the external electronic device 410 based on the distance and angle between the first electronic device 101 and the second electronic device 430. A distance between one electronic device 101 may be calculated. According to various embodiments, the first electronic device 101 determines the distance and angle between the first electronic device 101 and the second electronic device 430 and the second electronic device 410 from the rear wall where the external electronic device 410 is located. Based on the distance to the electronic device 430, a distance between the first electronic device 101 and the external electronic device 410 may be calculated.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제1 전자 장치(101)를 후방 벽에 위치시켜서 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 계산함으로써 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 is determined by locating the first electronic device 101 on the rear wall and the distance between the second electronic device 430 and the second electronic device 430. It can be obtained by calculating the distance between the first electronic devices 101 .

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제2 카메라 모듈(282)의 초점 거리 또는 심도 센서를 이용하여 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained using a focal length of the second camera module 282 or a depth sensor.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 사용자의 입력을 통해 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained through a user's input.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 후방 벽에 위치하며 방향 및 거리 측정이 가능한 통신 기능을 구비한 다른 외부 전자 장치와의 통신 연결을 통해, 후방 벽에서부터 제1 전자 장치(101)까지의 거리를 측정할 수 있고, 이에 기반하여 후방 벽에서부터 제2 전자 장치(430)까지의 거리를 획득할 수 있다. According to various embodiments, the first electronic device 101 is located on the rear wall and through a communication connection with another external electronic device having a communication function capable of measuring direction and distance, from the rear wall to the first electronic device 101 . The distance to (101) can be measured, and based on this, the distance from the rear wall to the second electronic device 430 can be obtained.

508 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리에 기반하여 외부 전자 장치(410)의 위치를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 계산된 외부 전자 장치(410)의 위치를 제1 전자 장치(101)의 메모리(예를 들어, 도 1의 메모리(130))에 저장함으로써 외부 전자 장치(410)를 제어 어플리케이션에 등록할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 외부 전자 장치(410)의 위치를 저장할 때 외부 전자 장치(410)의 사진을 함께 저장함으로써, 등록 이후에 제어 어플리케이션을 통해 외부 전자 장치(410)를 제어할 때 외부 전자 장치(410)의 인식률을 높여서 사용자가 외부 전자 장치(410)를 정확히 지향할 수 있도록 디스플레이 화면에 가이드 라인을 제공할 수 있다. 일 실시예에 따르면, 저장된 외부 전자 장치(410)의 위치는 등록 이후에 제어 어플리케이션을 통해 외부 전자 장치(410)를 제어할 때 제1 전자 장치(101)가 외부 전자 장치(410)를 인식할 범위를 지정하거나, 저장된 위치를 기반으로 외부 전자 장치(410)를 특정하기 위해 활용할 수 있다. In operation 508, according to various embodiments, the first electronic device 101 may calculate the location of the external electronic device 410 based on the distance between the first electronic device 101 and the external electronic device 410. there is. According to various embodiments, the first electronic device 101 stores the calculated location of the external electronic device 410 in a memory of the first electronic device 101 (eg, the memory 130 of FIG. 1 ). By saving, the external electronic device 410 can be registered in the control application. According to various embodiments, when the location of the external electronic device 410 is stored, the first electronic device 101 stores a photo of the external electronic device 410 together, so that after registration, the external electronic device 101 uses a control application. When controlling the external electronic device 410 , a guideline may be provided on the display screen so that the user can accurately direct the external electronic device 410 by increasing the recognition rate of the external electronic device 410 . According to an embodiment, the stored location of the external electronic device 410 is used to allow the first electronic device 101 to recognize the external electronic device 410 when the external electronic device 410 is controlled through a control application after registration. It can be used to designate a range or specify the external electronic device 410 based on a stored location.

도 5b를 참조하면, 511 동작 내지 도 517의 동작은 도 5a의 501 내지 507 동작과 동일하므로 중복되는 설명을 생략한다. Referring to FIG. 5B , since operations 511 to 517 are the same as operations 501 to 507 of FIG. 5A , overlapping descriptions are omitted.

518 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리에 기반하여 외부 전자 장치(410)의 위치를 계산할 수 있다. In operation 518, according to various embodiments, the first electronic device 101 may calculate the location of the external electronic device 410 based on the distance between the first electronic device 101 and the external electronic device 410. there is.

519 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 계산된 외부 전자 장치(410)의 위치를 외부 서버(440)(예: 도 1의 서버(108))에 저장함으로써 외부 전자 장치(410)를 제어 어플리케이션에 등록할 수 있다. 다양한 실시예들에 따라, 전자 장치(101)는, 외부 전자 장치(410)의 위치를 저장할 때 외부 전자 장치(410)의 사진을 함께 저장함으로써, 등록 이후에 제어 어플리케이션을 통해 외부 전자 장치(410)를 제어할 때 외부 전자 장치(410)의 인식률을 높여서 사용자가 외부 전자 장치(410)를 정확히 지향할 수 있도록 디스플레이 화면에 가이드 라인을 제공할 수 있다. 일 실시예에 따르면, 저장된 외부 전자 장치(410)의 위치는 등록 이후에 제어 어플리케이션을 통해 외부 전자 장치(410)를 제어할 때 제1 전자 장치(101)가 외부 전자 장치(410)를 인식할 범위를 지정하거나, 저장된 위치를 기반으로 외부 전자 장치(410)를 특정하기 위해 활용할 수 있다.In operation 519, according to various embodiments, the first electronic device 101 stores the calculated location of the external electronic device 410 in the external server 440 (eg, the server 108 of FIG. 1), thereby The external electronic device 410 may be registered in the control application. According to various embodiments, the electronic device 101 stores a photo of the external electronic device 410 together when the location of the external electronic device 410 is stored, so that the external electronic device 410 can be stored through a control application after registration. ), a guideline may be provided on the display screen so that the user can accurately direct the external electronic device 410 by increasing the recognition rate of the external electronic device 410 when controlling the external electronic device 410 . According to an embodiment, the stored location of the external electronic device 410 is used to allow the first electronic device 101 to recognize the external electronic device 410 when the external electronic device 410 is controlled through a control application after registration. It can be used to designate a range or specify the external electronic device 410 based on a stored location.

도 6은, 다양한 실시예들에 따라 전자 장치가 외부 전자 장치의 위치를 계산하는 방법을 설명하기 위한 도면이다. 6 is a diagram for explaining a method for an electronic device to calculate a location of an external electronic device according to various embodiments.

도 6을 참조하면, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 전자 장치(430)(예: UWB 장치)와 방향 및 거리 측정이 가능한 통신 방식(예: UWB 통신 방식)을 통해, 제1 전자 장치(101)와 제2 전자 장치(430)간의 거리 d1, 제1 전자 장치(101)와 제2 전자 장치(430)간의 각도 (a2+a3)를 계산할 수 있다. Referring to FIG. 6 , according to various embodiments, the first electronic device 101 communicates with a second electronic device 430 (eg, a UWB device) and a communication method capable of measuring direction and distance (eg, a UWB communication method). ), the distance d1 between the first electronic device 101 and the second electronic device 430 and the angle (a2+a3) between the first electronic device 101 and the second electronic device 430 may be calculated.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 전자 장치(430)에서 후방 벽까지의 거리 d를 획득할 수 있고, 각도 a2와 a3를 이용하여 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리 d2 및 각도 (a2+a3)를 획득할 수 있다. According to various embodiments, the first electronic device 101 may obtain the distance d from the second electronic device 430 to the rear wall, and obtain the first electronic device 101 using the angles a2 and a3. A distance d2 and an angle (a2+a3) between the and the external electronic device 410 may be obtained.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리 d는, 제1 전자 장치(101)를 후방 벽에 위치시켜서 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 계산함으로써 획득될 수 있다. According to various embodiments, the distance d from the rear wall where the external electronic device 410 is located to the second electronic device 430 is determined by placing the first electronic device 101 on the rear wall so that the second electronic device 430 ) and the first electronic device 101.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리 d는, 제2 카메라 모듈(282)의 초점 거리 또는 심도 센서를 이용하여 획득될 수 있다. According to various embodiments, the distance d from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained using a focal length of the second camera module 282 or a depth sensor. there is.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리 d는, 사용자의 입력을 통해 획득될 수 있다. According to various embodiments, the distance d from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained through a user's input.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 후방 벽에 위치하며 방향 및 거리 측정이 가능한 통신 기능을 구비한 다른 외부 전자 장치와의 통신 연결을 통해, 후방 벽에서부터 제1 전자 장치(101)까지의 거리를 측정할 수 있고, 이에 기반하여 후방 벽에서부터 제2 전자 장치(430)까지의 거리 d를 획득할 수 있다.According to various embodiments, the first electronic device 101 is located on the rear wall and through a communication connection with another external electronic device having a communication function capable of measuring direction and distance, from the rear wall to the first electronic device 101 . The distance to (101) can be measured, and based on this, the distance d from the rear wall to the second electronic device 430 can be obtained.

다양한 실시예들에 따라, 제1 전자 장치(101)는, d1, d2, a2, 및 a3 값들을 이용하여 외부 전자 장치(410)의 위치를 계산할 수 있다. According to various embodiments, the first electronic device 101 may calculate the location of the external electronic device 410 using values of d1 , d2 , a2 , and a3 .

도 7a 및 도 7b는, 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 제어하기 위해 외부 전자 장치를 인식하고 측위하는 동작을 설명하기 위한 흐름도이다. 도 7a는 서버가 포함되지 않는 경우를 도시한 것이고, 도 7b는 서버(440)가 포함되는 경우를 도시한 것이다.7A and 7B are flowcharts illustrating an operation of recognizing and locating an external electronic device in order for an electronic device to control the external electronic device according to various embodiments. FIG. 7A shows a case in which a server is not included, and FIG. 7B shows a case in which a server 440 is included.

도 7a를 참조하면, 701 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)(예를 들어, 프로세서(120))는, 사용자(420)의 입력에 기반하여 제어 어플리케이션을 실행하고, 디스플레이 모듈(160)에 제어 어플리케이션 실행 화면을 표시할 수 있다. Referring to FIG. 7A , in operation 701, according to various embodiments, the first electronic device 101 (eg, the processor 120) executes a control application based on a user 420 input and , a control application execution screen may be displayed on the display module 160 .

702 동작에서, 사용자(420)의 입력에 의해 제어 어플리케이션에서 기기 제어 메뉴가 선택되면, 703 동작에서, 제1 전자 장치(101)는 통신 모듈(예를 들어, 도 2의 통신 모듈(190))을 이용하여 제2 전자 장치(430)(예: UWB 장치)와의 통신 연결(예: UWB 통신 연결)을 수립하고, 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 측정할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 사용자(420)의 입력에 의해 제어 어플리케이션에서 기기 제어 메뉴가 선택되면 제1 카메라 모듈(281)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다. In operation 702, when a device control menu is selected in the control application by an input of the user 420, in operation 703, the first electronic device 101 uses a communication module (eg, the communication module 190 of FIG. 2 ) A communication connection (eg, UWB communication connection) is established with the second electronic device 430 (eg, a UWB device) using can According to various embodiments, the first electronic device 101 may drive the first camera module 281 when a device control menu is selected in a control application by a user 420 input, and accordingly, the first electronic device 101 may drive the first electronic device 281 . The device 101 may display a scene recognized through the rear camera of the first electronic device 101 on the display module 160 .

704 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 사용자(420)의 후방에 위치하고 있는 외부 전자 장치(410)를 제어하기 위하여, 카메라 모드를 셀프 모드로 변경하여 제2 카메라 모듈(282)을 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 전면 카메라를 통해 인식되는 외부 전자 장치(410)를 포함한 장면을 디스플레이 모듈(160)에 표시할 수 있다.In operation 704, in order to control the external electronic device 410 located behind the user 420, according to various embodiments, the first electronic device 101 changes the camera mode to the self mode to control the second electronic device 101. The camera module 282 may be driven, and accordingly, the first electronic device 101 displays a scene including the external electronic device 410 recognized through the front camera of the first electronic device 101 through the display module 160. can be displayed on

다양한 실시예들에 따라, 제2 카메라 모듈(282)로의 카메라 모드 변경은, 사용자(420)의 입력을 통해 전환될 수 있다. 다양한 실시예들에 따라, 사용자(420)가 전자 장치(101)의 디스플레이 화면을 스와이프 하거나 별도의 카메라 모드 변경 아이콘을 터치함으로써 제2 카메라 모듈(282)로의 변경이 수행될 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 제1 전자 장치(101)의 센서 모듈(예: 도 1의 센서 모듈(176))을 이용하여 사용자(420)의 음성이나 시선의 움직임 등을 감지함으로써 제2 카메라 모듈(282)로의 모드 변경을 수행할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 제1 카메라 모듈(281)과 제2 카메라 모듈(282)을 동시에 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면과 전면 카메라를 통해 인식되는 장면을 디스플레이 모듈(160)에 표시할 수 있다.According to various embodiments, a camera mode change to the second camera module 282 may be switched through an input of the user 420 . According to various embodiments, the user 420 may change to the second camera module 282 by swiping the display screen of the electronic device 101 or touching a separate camera mode change icon. According to various embodiments, the first electronic device 101 uses a sensor module (eg, the sensor module 176 of FIG. 1 ) of the first electronic device 101 to voice or gaze movement of the user 420 . A mode change to the second camera module 282 may be performed by detecting a back. According to various embodiments, the first electronic device 101 may simultaneously drive the first camera module 281 and the second camera module 282, and thus the first electronic device 101 may operate the first electronic device 101. A scene recognized through the rear camera and a scene recognized through the front camera of the device 101 may be displayed on the display module 160 .

705 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 카메라 모듈(282)를 이용하여 제어하고자 하는 외부 전자 장치(410)를 지향할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 외부 전자 장치(410)의 위치를 저장할 때 저장된 외부 전자 장치(410)의 사진에 기반하여, 제어 어플리케이션에 기 등록된 외부 전자 장치(410)를 인식할 수 있고, 이에 따라 같이 인식된 외부 전자 장치(410)에 대한 가이드 라인을 디스플레이 화면에 표시함으로써 사용자가 외부 전자 장치(410)를 정확히 지향할 수 있도록 할 수 있다.In operation 705, according to various embodiments, the first electronic device 101 may direct the external electronic device 410 to be controlled using the second camera module 282. According to various embodiments, the first electronic device 101, based on the stored picture of the external electronic device 410 when storing the location of the external electronic device 410, the external electronic device pre-registered in the control application ( 410), and accordingly, a guide line for the external electronic device 410 recognized as such is displayed on the display screen so that the user can accurately direct the external electronic device 410.

706 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 전자 장치(430)와의 통신을 통해 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도를 계산할 수 있다. In operation 706, according to various embodiments, the first electronic device 101 communicates with the second electronic device 430 to determine the distance and angle between the first electronic device 101 and the second electronic device 430. can be calculated.

707 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리와 각도, 및 외부 전자 장치(410)를 제어 어플리케이션에 등록할 때 획득하여 저장된 제2 전자 장치(430)로부터 후방 벽까지의 거리에 기반하여, 외부 전자 장치(410)와 제1 전자 장치(101)간의 거리를 계산할 수 있다. 다양한 실시예에 따라, 외부 전자 장치(410)와 제1 전자 장치(101)간의 거리는 도 6에 도시한 바와 같이 계산될 수 있다. In operation 707, the first electronic device 101 controls the distance and angle between the first electronic device 101 and the second electronic device 430 and the external electronic device 410 according to various embodiments. The distance between the external electronic device 410 and the first electronic device 101 may be calculated based on the distance from the second electronic device 430 to the rear wall that is acquired and stored when registering with the external electronic device 410 . According to various embodiments, a distance between the external electronic device 410 and the first electronic device 101 may be calculated as shown in FIG. 6 .

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제1 전자 장치(101)를 후방 벽에 위치시켜서 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 계산함으로써 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 is determined by locating the first electronic device 101 on the rear wall and the distance between the second electronic device 430 and the second electronic device 430. It can be obtained by calculating the distance between the first electronic devices 101 .

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제2 카메라 모듈(282)의 초점 거리 또는 심도 센서를 이용하여 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained using a focal length of the second camera module 282 or a depth sensor.

다양한 실시예들에 따라, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 사용자의 입력을 통해 획득될 수 있다. According to various embodiments, the distance from the rear wall where the external electronic device 410 is located to the second electronic device 430 may be obtained through a user's input.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 후방 벽에 위치하며 UWB 통신 기능을 구비한 다른 외부 전자 장치와의 UWB 통신 연결을 통해, 후방 벽에서부터 제1 전자 장치(101)까지의 거리를 측정할 수 있고, 이에 기반하여 후방 벽에서부터 제2 전자 장치(430)까지의 거리를 획득할 수 있다. According to various embodiments, the first electronic device 101 can communicate from the rear wall to the first electronic device 101 through a UWB communication connection with another external electronic device located on the rear wall and having a UWB communication function. The distance of can be measured, and based on this, the distance from the rear wall to the second electronic device 430 can be obtained.

708 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)의 메모리(예: 도 1의 메모리(130)에 저장된 외부 전자 장치(410)의 위치 및 전자 장치(101)와 외부 전자 장치(410) 간의 거리에 기반하여 외부 전자 장치(410)의 위치를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 동작 709에서 외부 전자 장치(410)를 제하기를 위한 UI를 디스플레이 모듈(160)에 표시할 수 있다. In operation 708, according to various embodiments, the first electronic device 101 determines the location of the external electronic device 410 stored in the memory of the first electronic device 101 (eg, the memory 130 of FIG. 1 ) and The location of the external electronic device 410 may be calculated based on the distance between the electronic device 101 and the external electronic device 410. According to various embodiments, the first electronic device 101, in operation 709, A UI for removing the electronic device 410 may be displayed on the display module 160 .

이후 제1 전자 장치(101)가 외부 전자 장치(410)를 제어하는 구체적인 동작들은 블루투스, 지그비, 와이파이, 및/또는 NFC 등의 근거리 무선 통신 방식을 이용한 다양한 방법들이 적용될 수 있으며, 본 명세서에서는 이에 대한 설명을 생략한다. Thereafter, various methods using a short-range wireless communication method such as Bluetooth, ZigBee, Wi-Fi, and/or NFC may be applied to specific operations in which the first electronic device 101 controls the external electronic device 410, and in the present specification, this omit the explanation.

도 7b를 참조하면, 711 동작 내지 도 717의 동작은 도 7a의 701 내지 707 동작과 동일하므로 중복되는 설명을 생략한다.Referring to FIG. 7B , since operations 711 to 717 are the same as operations 701 to 707 of FIG. 7A , overlapping descriptions are omitted.

718 동작에서, 다양한 실시예들에 따라, 제1 전자 장치(101)는 외부 서버(440)(예: 도 1의 서버(108))에 저장된 외부 전자 장치(410)의 위치를 수신하고, 719 동작에서, 수신된 외부 전자 장치(410)의 위치 및 제1 전자 장치(101)와 외부 전자 장치(410) 간의 거리에 기반하여 외부 전자 장치(410)의 위치를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 동작 720에서 외부 전자 장치(410)를 제하기를 위한 UI를 디스플레이 모듈(160)에 표시할 수 있다. In operation 718, according to various embodiments, the first electronic device 101 receives the location of the external electronic device 410 stored in the external server 440 (eg, the server 108 of FIG. 1), and in operation 719 In operation, the location of the external electronic device 410 may be calculated based on the received location of the external electronic device 410 and the distance between the first electronic device 101 and the external electronic device 410 . According to various embodiments, the first electronic device 101 may display a UI for removing the external electronic device 410 on the display module 160 in operation 720 .

이후 제1 전자 장치(101)가 외부 전자 장치(410)를 제어하는 구체적인 동작들은 블루투스, 지그비, 와이파이, 및/또는 NFC 등의 근거리 무선 통신 방식을 이용한 다양한 방법들이 적용될 수 있으며, 본 명세서에서는 이에 대한 설명을 생략한다. Thereafter, various methods using a short-range wireless communication method such as Bluetooth, ZigBee, Wi-Fi, and/or NFC may be applied to specific operations in which the first electronic device 101 controls the external electronic device 410, and in the present specification, this omit the explanation.

도 8a 및 도 8b는, 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 측위하여 제어 어플리케이션에 등록하는 동작을 설명하기 위한 도면이다. 8A and 8B are diagrams for describing an operation of an electronic device to locate and register an external electronic device in a control application according to various embodiments.

도 8a의 (a)를 참조하면, 다양한 실시예들에 따라, 제1 전자 장치(101)가 외부 전자 장치(410)(예를 들어, 에어컨)를 제어 어플리케이션에 등록하기 위해 사용자(420)의 입력에 따라 제어 어플리케이션을 실행하면, 제어 어플리케이션의 기본 설정에 따라 제1 전자 장치(101)의 후면 카메라가 동작할 수 있고, 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 장면이 디스플레이 모듈(170)에 표시될 수 있다. 도 8의 (a)에서는 사용자(420)의 전방에 위치한 제2 전자 장치(430)(예: UWB 장치)와 TV(810)가 디스플레이 모듈(170)에 표시될 수 있다. 이때, 에어컨(410)은 사용자(420)의 후방에 위치함에 따라 제1 전자 장치(101)의 후면 카메라가 동작하는 동안에는 디스플레이 모듈(170)에 표시되지 않을 수 있다. Referring to (a) of FIG. 8A , according to various embodiments, the first electronic device 101 requires a user 420 to register an external electronic device 410 (eg, an air conditioner) with a control application. When the control application is executed according to the input, the rear camera of the first electronic device 101 can operate according to the basic settings of the control application, and the scene recognized through the rear camera of the first electronic device 101 is displayed on the display module. (170). In (a) of FIG. 8 , the second electronic device 430 (eg, a UWB device) and the TV 810 located in front of the user 420 may be displayed on the display module 170 . In this case, since the air conditioner 410 is located behind the user 420, it may not be displayed on the display module 170 while the rear camera of the first electronic device 101 is operating.

일 실시예에 따라, 사용자(420)가 TV(810)를 제어 어플리케이션에 등록하고자 할 경우, 사용자(420)는 디스플레이 모듈(170)에 표시된 TV(810)를 터치하여 TV(810)의 위치를 계산하고 제어 어플리케이션에 등록할 수 있다. 일 실시예에 따르면, TV(810)는 제1 전자 장치(101)의 전방에 위치함에 따라, 제1 전자 장치(101)와 제2 전자 장치(430)간의 통신(예: UWB 통신)을 이용하여 제1 전자 장치(101)와 제2 전자 장치(430)간의 거리와 각도를 계산하고, 제1 전자 장치(101)와 제2 전자 장치(430)간의 거리와 각도에 기반하여 TV(810)의 위치를 계산하여 저장할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, TV(810)의 위치를 저장할 때 TV(810)의 사진을 함께 저장함으로써, 등록 이후에 제어 어플리케이션을 통해 TV(810)를 제어할 때 외부 전자 장치(410)의 인식률을 높여서 사용자가 TV(810)를 정확히 지향할 수 있도록 디스플레이 화면의 TV(810) 주변에 가이드 라인을 표시할 수 있다.According to an embodiment, when the user 420 wants to register the TV 810 to the control application, the user 420 touches the TV 810 displayed on the display module 170 to locate the TV 810. It can be calculated and registered in the control application. According to an embodiment, the TV 810 is located in front of the first electronic device 101 and uses communication (eg, UWB communication) between the first electronic device 101 and the second electronic device 430. to calculate the distance and angle between the first electronic device 101 and the second electronic device 430, and the TV 810 based on the distance and angle between the first electronic device 101 and the second electronic device 430. position can be calculated and stored. According to various embodiments, the first electronic device 101 can control the TV 810 through a control application after registration by storing a photo of the TV 810 together when storing the location of the TV 810. Guidelines may be displayed around the TV 810 on the display screen so that the user can accurately direct the TV 810 by increasing the recognition rate of the external electronic device 410.

도 8a의 (b)를 참조하면, 다양한 실시예에 따라, 사용자(420)는 에어컨(410)을 제어 어플리케이션에 등록하기 위하여, 카메라 모드를 변경할 수 있다. 도 8a의 (b)의 실시예에서는, 사용자(420)가 디스플레이 모듈(170)을 터치하여 스와이프 함으로써 전자 장치(101)의 카메라 모드를 후면 카메라 모드에서 전면 카메라 모드로 변경할 수 있다. 다양한 실시예들에 따라, 사용자(420)가 별도의 카메라 모드 변경 아이콘을 터치함으로써, 제1 전자 장치(101)는 카메라 모드를 변경할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는 제1 전자 장치(101)의 센서 모듈(예: 도 1의 센서 모듈(176))을 이용하여 사용자(420)의 음성이나 시선의 움직임 등을 감지함으로써 카메라 모드 변경을 수행할 수 있다. Referring to (b) of FIG. 8A , according to various embodiments, a user 420 may change a camera mode in order to register the air conditioner 410 with a control application. In the embodiment of (b) of FIG. 8A , the user 420 may change the camera mode of the electronic device 101 from the rear camera mode to the front camera mode by touching and swiping the display module 170 . According to various embodiments, when the user 420 touches a separate camera mode change icon, the first electronic device 101 may change the camera mode. According to various embodiments, the first electronic device 101 uses a sensor module (eg, the sensor module 176 of FIG. 1 ) of the first electronic device 101 to voice or gaze movement of the user 420 . The camera mode change can be performed by detecting the back.

도 8a의 (c)를 참조하면, 다양한 실시예에 따라 카메라 모드가 변경되면, 제1 전자 장치(101)의 전면 카메라를 통해 인식되는 장면이 디스플레이 모듈(170)에 표시될 수 있다. 도 8a의 (c)에서는 사용자(420)의 후방에 위치한 에어컨(810)이 디스플레이 모듈(170)에 표시될 수 있다. 이때, 제2 전자 장치(430)와 TV(810)는 사용자(420)의 전방에 위치함에 따라 제1 전자 장치(101)의 전면 카메라가 동작하는 동안에는 디스플레이 모듈(170)에 표시되지 않을 수 있다. Referring to (c) of FIG. 8A , when the camera mode is changed according to various embodiments, a scene recognized through the front camera of the first electronic device 101 may be displayed on the display module 170 . In (c) of FIG. 8A , the air conditioner 810 located behind the user 420 may be displayed on the display module 170 . In this case, since the second electronic device 430 and the TV 810 are located in front of the user 420, they may not be displayed on the display module 170 while the front camera of the first electronic device 101 is operating. .

다양한 실시예들에 따라, 제1 전자 장치(101)는 전면 카메라와 후면 카메라를 동시에 구동할 수 있고, 이에 따라 제1 전자 장치(101)는 제1 전자 장치(101)의 후면 카메라를 통해 인식되는 제2 전자 장치(430) 및 TV(810)와, 전면 카메라를 통해 인식되는 에어컨(410)을 디스플레이 모듈(160)에 동시에 표시할 수 있다. According to various embodiments, the first electronic device 101 may simultaneously drive a front camera and a rear camera, and thus the first electronic device 101 recognizes the camera through the rear camera of the first electronic device 101. The second electronic device 430, the TV 810, and the air conditioner 410 recognized through the front camera may be simultaneously displayed on the display module 160.

일 실시예에 따라, 사용자(420)가 에어컨(410)을 제어 어플리케이션에 등록하고자 할 경우, 사용자(420)는 디스플레이 모듈(170)에 표시된 에어컨(410)을 터치하고 에어컨(410)을 측위할 수 있다. According to an embodiment, when the user 420 wants to register the air conditioner 410 in the control application, the user 420 may touch the air conditioner 410 displayed on the display module 170 and position the air conditioner 410. can

다양한 실시예들에 따라, 제1 전자 장치(101)는, 제2 전자 장치(430)와의 통신을 통해 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도에 기반하여 에어컨(410)과 제1 전자 장치(101)간의 거리를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 제2 전자 장치(430) 간의 거리 및 각도와, 외부 전자 장치(410)가 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리에 기반하여, 제1 전자 장치(101)와 에어컨(410) 간의 거리를 계산할 수 있다. According to various embodiments, the first electronic device 101 may calculate the distance and angle between the first electronic device 101 and the second electronic device 430 through communication with the second electronic device 430. . According to various embodiments, the first electronic device 101 controls the air conditioner 410 and the first electronic device 101 based on the distance and angle between the first electronic device 101 and the second electronic device 430. The distance between them can be calculated. According to various embodiments, the first electronic device 101 determines the distance and angle between the first electronic device 101 and the second electronic device 430 and the second electronic device 410 from the rear wall where the external electronic device 410 is located. Based on the distance to the electronic device 430, a distance between the first electronic device 101 and the air conditioner 410 may be calculated.

다양한 실시예들에 따라, 에어컨(410)이 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제1 전자 장치(101)를 후방 벽에 위치시켜서 제2 전자 장치(430)와 제1 전자 장치(101) 간의 거리를 계산함으로써 획득될 수 있다. According to various embodiments, the distance from the rear wall where the air conditioner 410 is located to the second electronic device 430 is determined by placing the first electronic device 101 on the rear wall so that the second electronic device 430 and the first It can be obtained by calculating the distance between the electronic devices 101.

다양한 실시예들에 따라, 에어컨(410)이 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 제2 카메라 모듈(282)의 초점 거리 또는 심도 센서를 이용하여 획득될 수 있다. According to various embodiments, the distance from the rear wall where the air conditioner 410 is located to the second electronic device 430 may be obtained using a focal length of the second camera module 282 or a depth sensor.

다양한 실시예들에 따라, 에어컨(410)이 위치한 후방 벽에서부터 제2 전자 장치(430)까지의 거리는, 사용자의 입력을 통해 획득될 수 있다. According to various embodiments, the distance from the rear wall where the air conditioner 410 is located to the second electronic device 430 may be obtained through a user's input.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 후방 벽에 위치하며 방향 및 거리 측정이 가능한 통신 기능을 구비한 다른 외부 전자 장치(미도시)와의 통신 연결을 통해, 후방 벽에서부터 전자 장치(101)까지의 거리를 측정할 수 있고, 이에 기반하여 후방 벽에서부터 제2 전자 장치(430)까지의 거리를 획득할 수 있다. According to various embodiments, the first electronic device 101 is located on the rear wall and has a communication function capable of measuring direction and distance, through a communication connection with another external electronic device (not shown), the electronic device 101 is connected to the electronic device from the rear wall. The distance to the device 101 may be measured, and based on this, the distance from the rear wall to the second electronic device 430 may be obtained.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 제1 전자 장치(101)와 에어컨(410) 간의 거리에 기반하여 에어컨(410)의 위치를 계산할 수 있다. 다양한 실시예들에 따라, 제1 전자 장치(101)는, 계산된 에어컨(410)의 위치를 제1 전자 장치(101)의 메모리(예를 들어, 도 1의 메모리(130)) 또는 외부 서버(예: 도 1의 서버(108))에 저장함으로써 에어컨(410)을 제어 어플리케이션에 등록할 수 있다. According to various embodiments, the first electronic device 101 may calculate the location of the air conditioner 410 based on a distance between the first electronic device 101 and the air conditioner 410 . According to various embodiments, the first electronic device 101 stores the calculated location of the air conditioner 410 in a memory of the first electronic device 101 (eg, the memory 130 in FIG. 1 ) or an external server. (eg, the server 108 of FIG. 1), the air conditioner 410 may be registered in the control application.

다양한 실시예들에 따라, 제1 전자 장치(101)는, 에어컨(410)의 위치를 저장할 때 에어컨(410)의 사진을 함께 저장함으로써, 등록 이후에 제어 어플리케이션을 통해 에어컨(410)을 제어할 때, 에어컨(410)의 인식률을 높여서 사용자가 에어컨(410)을 정확히 지향할 수 있도록, 도 8b와 같이 인식된 외부 전자 장치(410)에 대한 가이드 라인(811)을 디스플레이 화면에 표시함으로써 사용자가 에어컨(410)을 정확히 지향할 수 있도록 할 수 있다.According to various embodiments, the first electronic device 101 may control the air conditioner 410 through a control application after registration by storing a picture of the air conditioner 410 together when the location of the air conditioner 410 is stored. 8B, a guideline 811 for the recognized external electronic device 410 is displayed on the display screen so that the user can accurately direct the air conditioner 410 by increasing the recognition rate of the air conditioner 410 so that the user can The air conditioner 410 may be accurately directed.

도 9는, 다양한 실시예들에 따라 전자 장치가 외부 전자 장치를 제어하기 위한 제어 어플리케이션의 UI를 도시한 도면이다. 9 is a diagram illustrating a UI of a control application for an electronic device to control an external electronic device according to various embodiments.

도 9의 (a)를 참조하면, 다양한 실시예들에 따라, 사용자가 전자 장치(101)의 제어 어플리케이션을 실행하면, 제1 전자 장치(101)는 제어 어플리케이션의 기본 설정에 따라 제1 전자 장치(101)의 전면 카메라와 후면 카메라를 동시에 동작할 수 있고, 이에 따라 후면 카메라로 인식되는 외부 전자 장치들(920)과 전면 카메라로 인식되는 외부 전자 장치들(930)이 디스플레이 화면(910)에 표시될 수 있다. 도 9의 (a)에 도시한 바와 같이, 다양한 실시예들에 따라, 후면 카메라로 인식되는 외부 전자 장치들(920)은 디스플레이 화면(910)의 상단에, 전면 카메라로 인식되는 외부 전자 장치들(930)은 디스플레이 화면(910)의 하단에 배치할 수 있다. 다양한 실시예들에 따라, 후면 카메라로 인식되는 외부 전자 장치들(920)은 디스플레이 화면(910)의 하단에, 전면 카메라로 인식되는 외부 전자 장치들(930)은 디스플레이 화면(910)의 상단에 배치할 수 있다.Referring to (a) of FIG. 9 , according to various embodiments, when a user executes a control application of the electronic device 101, the first electronic device 101 is the first electronic device according to the basic setting of the control application. The front camera and rear camera of (101) can be operated simultaneously, and thus external electronic devices 920 recognized as rear cameras and external electronic devices 930 recognized as front cameras are displayed on the display screen 910. can be displayed As shown in (a) of FIG. 9 , according to various embodiments, external electronic devices 920 recognized as rear cameras are located on top of the display screen 910 and external electronic devices recognized as front cameras. 930 may be disposed at the bottom of the display screen 910. According to various embodiments, external electronic devices 920 recognized as rear cameras are located at the bottom of the display screen 910, and external electronic devices 930 recognized as front cameras are located at the top of the display screen 910. can be placed

일 실시예에 따라, 사용자가 제1 전자 장치(101)의 전방에 위치한 외부 전자 장치들(920) 중 제1 외부 전자 장치(940)(예를 들어, TV)를 선택하면, 선택된 제1 외부 전자 장치(940)를 제어하기 위한 UI(950)가 디스플레이 화면(910)에 표시될 수 있다. 도 9의 (a)에서는 TV가 선택되었으며, 이에 따라 TV를 제어하기 위한 채널 조정 버튼과 볼륨 조정 버튼이 UI(950)에 표시될 수 있다. 일 실시예에 따라, 사용자에 의해 선택된 제1 외부 전자 장치(940)를 구별하기 위한 가이드 라인이 표시될 수 있다. According to an embodiment, when a user selects the first external electronic device 940 (eg, TV) among the external electronic devices 920 located in front of the first electronic device 101, the selected first external electronic device 940 is selected. A UI 950 for controlling the electronic device 940 may be displayed on the display screen 910 . In (a) of FIG. 9, a TV is selected, and accordingly, a channel adjustment button and a volume adjustment button for controlling the TV may be displayed on the UI 950. According to an embodiment, a guideline for distinguishing the first external electronic device 940 selected by the user may be displayed.

도 9의 (b)를 참조하면, 다양한 실시예들에 따라, 사용자가 제1 전자 장치(101)의 후방에 위치한 외부 전자 장치들(930) 중 제2 외부 전자 장치(941)(예를 들어, 전동 블라인드)를 선택하면, 선택된 제2 외부 전자 장치(941)를 제어하기 위한 UI(951)가 디스플레이 화면(910)에 표시될 수 있다. 도 9의 (b)에서는 전동 블라인드가 선택되었으며, 이에 따라 전동 블라인드를 제어하기 위한 상하 조정 버튼이 UI(951)에 표시될 수 있다. 일 실시예에 따라, 사용자에 의해 선택된 제2 외부 전자 장치(942)를 구별하기 위한 가이드 라인이 표시될 수 있다. Referring to (b) of FIG. 9 , according to various embodiments, a user selects a second external electronic device 941 among external electronic devices 930 located behind the first electronic device 101 (for example, , motorized blinds), a UI 951 for controlling the selected second external electronic device 941 may be displayed on the display screen 910 . In (b) of FIG. 9, the electric blind is selected, and accordingly, up and down adjustment buttons for controlling the electric blind may be displayed on the UI 951. According to an embodiment, a guideline for distinguishing the second external electronic device 942 selected by the user may be displayed.

본 명세서에 기재된 다양한 실시예들은, 적용 가능한 범위 내에서, 상호 유기적으로 적용될 수 있음을 당업자는 이해할 수 있다. 예를 들어, 본 명세 서에 기재된 일 실시예의 적어도 일부 동작이 생략되어 적용될 수도 있고, 일 실시 예의 적어도 일부 동작과 다른 실시예의 적어도 일부 동작이 유기적으로 연결되어 적용될 수도 있음을 당업자는 이해할 수 있다.Those skilled in the art can understand that the various embodiments described in this specification can be organically applied to each other within the applicable range. For example, those skilled in the art may understand that at least some operations of one embodiment described in this specification may be omitted and applied, or at least some operations of one embodiment and at least some operations of another embodiment may be organically connected and applied.

다양한 실시예에 따라서, 전자 장치(예를 들어, 도 1 및 도 2의 전자 장치(101))는, 통신 모듈(예를 들어, 도 1 및 도 2의 통신 모듈(190)); 제1 하우징 표면에 배치되는 제1 카메라(예를 들어, 도 1 및 도 2의 카메라 모듈(180))(예를 들어, 도 2의 제2 카메라 모듈(282)) 및 제2 하우징 표면에 배치되는 제2 카메라(예를 들어, 도 1 및 도 2의 카메라 모듈(180))(예를 들어, 도 2의 제1 카메라 모듈(281)); 및 상기 통신 모듈, 상기 제1 카메라, 및 상기 제2 카메라와 전기적으로 연결된 적어도 하나의 프로세서(예를 들어, 도 1 및 도 2의 프로세서(120))를 포함하고, 상기 적어도 하나의 프로세서는, 사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치(예를 들어, 도 4의 외부 전자 장치(410))를 등록하고 제어하기 위한 어플리케이션을 실행하고, 상기 통신 모듈을 이용하여 통신할 수 있는 제2 외부 전자 장치(예를 들어, 도 4의 제2 전자 장치(430))와 통신 연결을 수립하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하도록 설정될 수 있다. According to various embodiments, an electronic device (eg, the electronic device 101 of FIGS. 1 and 2 ) may include a communication module (eg, the communication module 190 of FIGS. 1 and 2 ); A first camera (eg, camera module 180 of FIGS. 1 and 2 ) (eg, second camera module 282 of FIG. 2 ) disposed on a first housing surface and a second camera disposed on a housing surface a second camera (eg, the camera module 180 of FIGS. 1 and 2 ) (eg, the first camera module 281 of FIG. 2 ); And at least one processor (eg, the processor 120 of FIGS. 1 and 2) electrically connected to the communication module, the first camera, and the second camera, wherein the at least one processor, Based on a user input, an application for registering and controlling at least one first external electronic device (eg, the external electronic device 410 of FIG. 4 ) is executed, and communication can be performed using the communication module. Establishing a communication connection with a second external electronic device (eg, the second electronic device 430 of FIG. 4 ), obtaining at least one of an angle and a distance between the second external electronic device and the electronic device, A distance between the electronic device and the at least one first external electronic device is obtained based on at least one of an angle and a distance between the second external electronic device and the electronic device, and the electronic device and the at least one first external electronic device are obtained. The location of the at least one first external electronic device may be acquired based on the distance between the electronic devices.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에 등록하는 메뉴가 선택된 경우, 상기 제1 카메라를 구동하여, 상기 적어도 하나의 제1 외부 전자 장치를 인식하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하여 저장하도록 설정될 수 있다. According to various embodiments, the at least one processor drives the first camera when a menu for registering the at least one first external electronic device to the application is selected by the user input, A first external electronic device is recognized, and based on at least one of an angle and a distance between the second external electronic device and the electronic device, and a distance between the electronic device and a rear wall where the at least one first external electronic device is located , obtaining a distance between the electronic device and the at least one first external electronic device, and based on the distance between the electronic device and the at least one first external electronic device, the position of the at least one first external electronic device It can be set to acquire and store.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 후방 벽에 위치한 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정될 수 있다. According to various embodiments of the present disclosure, the at least one processor may determine the rear wall where the electronic device and the at least one first external electronic device are located, based on a distance between the electronic device located on the rear wall and the second external electronic device. It can be set to calculate the distance between walls.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 후방 벽에 위치하며 상기 통신 모듈을 이용하여 통신할 수 있는 제3 외부 전자 장치와 통신 연결을 수립하고, 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리를 획득하고, 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리 및 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정될 수 있다. According to various embodiments, the at least one processor establishes a communication connection with a third external electronic device located on the rear wall and capable of communicating using the communication module, and establishes a communication connection with the third external electronic device and the electronic device. A distance between devices is obtained, and based on a distance between the electronic device and the second external electronic device and a distance between the third external electronic device and the electronic device, the electronic device and the at least one first external electronic device It can be set to calculate the distance between the rear walls that are located.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 제1 카메라의 초점 거리 또는 심도 센서에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정될 수 있다. According to various embodiments, the at least one processor may be configured to calculate a distance between the electronic device and a rear wall where the at least one first external electronic device is located based on a focal length of the first camera or a depth sensor. can

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 사용자 입력에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 획득하도록 설정될 수 있다. According to various embodiments, the at least one processor may be configured to obtain a distance between the electronic device and a rear wall where the at least one first external electronic device is located based on the user input.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에서 제어하는 메뉴가 선택된 경우, 상기 적어도 하나의 제1 외부 전자 장치의 위치 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하고, 상기 적어도 하나의 제1 외부 전자 장치를 제어하기 위한 사용자 인터페이스를 상기 전자 장치의 디스플레이에 표시하도록 설정될 수 있다. According to various embodiments, the at least one processor determines the location of the at least one first external electronic device and the location of the at least one first external electronic device when a menu for controlling the at least one first external electronic device in the application is selected by the user input. A user interface for obtaining a location of the at least one first external electronic device based on a distance between the electronic device and the at least one first external electronic device and controlling the at least one first external electronic device; It can be set to be displayed on the display of the electronic device.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라의 구동을 중단하고 상기 제1 카메라를 구동하거나, 상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라와 상기 제1 카메라를 동시에 구동하도록 설정될 수 있다. According to various embodiments, while the second camera is being driven, the at least one processor stops driving the second camera and drives the first camera based on the user input, or operates the second camera. During driving, the second camera and the first camera may be simultaneously driven based on the user input.

다양한 실시예에 따라서, 상기 적어도 하나의 프로세서는, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 상기 전자 장치의 메모리 또는 외부 서버에 저장하도록 설정될 수 있다. According to various embodiments, the at least one processor may be configured to store the location of the at least one first external electronic device in a memory of the electronic device or an external server.

다양한 실시예에 따라서, 상기 통신 모듈은 UWB(Ultra-Wideband) 방식을 지원할 수 있다. According to various embodiments, the communication module may support an Ultra-Wideband (UWB) scheme.

다양한 실시예에 따라서, 전자 장치(예를 들어, 도 1 및 도 2의 전자 장치(101))의 동작 방법은, 사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치(예를 들어, 도 4의 외부 전자 장치(410))를 등록하고 제어하기 위한 어플리케이션을 실행하는 동작, 통신 모듈(예를 들어, 도 1 및 도 2의 통신 모듈(190))을 이용하여 상기 전자 장치와 통신할 수 있는 제2 외부 전자 장치(예를 들어, 도 4의 제2 전자 장치(430))와 통신 연결을 수립하는 동작, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하는 동작, 상기 전자 장치의 제1 하우징 표면에 배치되는 제1 카메라(예를 들어, 도 1 및 도 2의 카메라 모듈(180))(예를 들어, 도 2의 제2 카메라 모듈(282))를 구동하여, 상기 제1 카메라에 의해 촬영 가능한 방향에 위치한 상기 적어도 하나의 외부 전자 장치를 인식하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하는 동작, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하는 동작을 포함할 수 있다. According to various embodiments, a method of operating an electronic device (eg, the electronic device 101 of FIGS. 1 and 2 ) includes at least one first external electronic device (eg, the electronic device 101 of FIGS. 1 and 2 ) based on a user input. An operation of executing an application for registering and controlling the external electronic device 410 of 4), and communicating with the electronic device using a communication module (eg, the communication module 190 of FIGS. 1 and 2). Establishing a communication connection with a second external electronic device (eg, the second electronic device 430 of FIG. 4 ) and obtaining at least one of an angle and a distance between the second external electronic device and the electronic device operation, a first camera (eg, camera module 180 in FIGS. 1 and 2 ) disposed on a first housing surface of the electronic device (eg, second camera module 282 in FIG. 2 ) driving, recognizing the at least one external electronic device located in a direction capable of being photographed by the first camera, and based on at least one of an angle and a distance between the second external electronic device and the electronic device, Obtaining a distance between the at least one first external electronic device, and obtaining a location of the at least one first external electronic device based on the distance between the electronic device and the at least one first external electronic device. can include

다양한 실시예에 따라서, 상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에 등록하는 메뉴가 선택된 경우, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하여 저장할 수 있다. According to various embodiments, when a menu for registering the at least one first external electronic device to the application is selected by the user input, at least one of an angle and a distance between the second external electronic device and the electronic device; and A distance between the electronic device and the at least one first external electronic device is obtained based on a distance between the electronic device and a rear wall where the at least one first external electronic device is located, and A location of the at least one first external electronic device may be obtained and stored based on a distance between the first external electronic devices.

다양한 실시예에 따라서, 상기 후방 벽에 위치한 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산할 수 있다. According to various embodiments, a distance between the electronic device and a rear wall where the at least one first external electronic device is positioned may be calculated based on a distance between the electronic device positioned on the rear wall and the second external electronic device. .

다양한 실시예에 따라서, 상기 후방 벽에 위치하며 상기 통신 모듈을 이용하여 통신할 수 있는 제3 외부 전자 장치와 통신 연결을 수립하고, 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리를 획득하고, 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리 및 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산할 수 있다. According to various embodiments, a communication connection is established with a third external electronic device located on the rear wall and capable of communicating using the communication module, and a distance between the third external electronic device and the electronic device is obtained; Based on the distance between the electronic device and the second external electronic device and the distance between the third external electronic device and the electronic device, a distance between the electronic device and a rear wall where the at least one first external electronic device is located is calculated. can

다양한 실시예에 따라서, 상기 제1 카메라의 초점 거리 또는 심도 센서에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산할 수 있다. According to various embodiments, a distance between the electronic device and a rear wall where the at least one first external electronic device is located may be calculated based on a focal length of the first camera or a depth sensor.

다양한 실시예에 따라서, 상기 사용자 입력에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 획득할 수 있다. According to various embodiments, a distance between the electronic device and a rear wall where the at least one first external electronic device is located may be obtained based on the user input.

다양한 실시예에 따라서, 상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에서 제어하는 메뉴가 선택된 경우, 상기 적어도 하나의 외부 전자 장치의 위치 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하고, 상기 적어도 하나의 제1 외부 전자 장치를 제어하기 위한 사용자 인터페이스를 상기 전자 장치의 디스플레이에 표시할 수 있다. According to various embodiments, when a menu for controlling the at least one first external electronic device in the application is selected by the user input, the position of the at least one external electronic device and the electronic device and the at least one external electronic device are selected. 1 Based on the distance between the external electronic devices, the location of the at least one first external electronic device may be obtained, and a user interface for controlling the at least one first external electronic device may be displayed on the display of the electronic device. there is.

다양한 실시예에 따라서, 상기 전자 장치의 제2 하우징 표면에 매치되는 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라의 구동을 중단하고 상기 제1 카메라를 구동하거나, 상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라와 상기 제1 카메라를 동시에 구동할 수 있다. According to various embodiments, while driving the second camera matched to the surface of the second housing of the electronic device, based on the user input, the driving of the second camera is stopped and the first camera is driven, or the first camera is driven. While driving the two cameras, the second camera and the first camera may be simultaneously driven based on the user input.

다양한 실시예에 따라서, 상기 적어도 하나의 외부 전자 장치의 위치를 상기 전자 장치의 메모리 또는 외부 서버에 저장할 수 있다. According to various embodiments, the location of the at least one external electronic device may be stored in a memory of the electronic device or an external server.

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

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

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

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

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

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

Claims (20)

전자 장치에 있어서,
통신 모듈;
제1 하우징 표면에 배치되는 제1 카메라;
제2 하우징 표면에 배치되는 제2 카메라; 및
상기 통신 모듈, 상기 제1 카메라, 및 상기 제2 카메라와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고,
상기 적어도 하나의 프로세서는,
사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치를 등록하고 제어하기 위한 어플리케이션을 실행하고,
상기 통신 모듈을 이용하여 제2 외부 전자 장치와 통신 연결을 수립하고,
상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하고,
상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고,
상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하도록 설정되는 것을 특징으로 하는 전자 장치.
In electronic devices,
communication module;
a first camera disposed on the first housing surface;
a second camera disposed on the second housing surface; and
At least one processor electrically connected to the communication module, the first camera, and the second camera;
The at least one processor,
Execute an application for registering and controlling at least one first external electronic device based on a user input;
Establishing a communication connection with a second external electronic device using the communication module;
Obtaining at least one of an angle and a distance between the second external electronic device and the electronic device;
Obtaining a distance between the electronic device and the at least one first external electronic device based on at least one of an angle and a distance between the second external electronic device and the electronic device;
The electronic device of claim 1 , wherein a location of the at least one first external electronic device is acquired based on a distance between the electronic device and the at least one first external electronic device.
제 1 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에 등록하는 메뉴가 선택된 경우,
상기 제1 카메라를 구동하여, 상기 적어도 하나의 제1 외부 전자 장치를 인식하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고,
상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하여 저장하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 1,
The at least one processor,
When a menu for registering the at least one first external electronic device to the application is selected by the user input,
The first camera is driven to recognize the at least one first external electronic device, at least one of an angle and a distance between the second external electronic device and the electronic device, and the electronic device and the at least one first external electronic device. Obtaining a distance between the electronic device and the at least one first external electronic device based on a distance between a rear wall where the external electronic device is located;
The electronic device of claim 1 , wherein the electronic device is configured to acquire and store a location of the at least one first external electronic device based on a distance between the electronic device and the at least one first external electronic device.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 후방 벽에 위치한 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
and calculating a distance between the electronic device and a rear wall where the at least one first external electronic device is located, based on a distance between the electronic device located on the rear wall and the second external electronic device. Device.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 후방 벽에 위치하며 상기 통신 모듈을 이용하여 통신할 수 있는 제3 외부 전자 장치와 통신 연결을 수립하고,
상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리를 획득하고,
상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리 및 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
Establishing a communication connection with a third external electronic device located on the rear wall and capable of communicating using the communication module;
obtaining a distance between the third external electronic device and the electronic device;
Based on the distance between the electronic device and the second external electronic device and the distance between the third external electronic device and the electronic device, a distance between the electronic device and a rear wall where the at least one first external electronic device is located is calculated. An electronic device, characterized in that set to.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제1 카메라의 초점 거리 또는 심도 센서에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
The electronic device of claim 1 , wherein a distance between the electronic device and a rear wall where the at least one first external electronic device is located is calculated based on a focal length of the first camera or a depth sensor.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 사용자 입력에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 획득하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
The electronic device of claim 1 , wherein a distance between the electronic device and a rear wall where the at least one first external electronic device is located is acquired based on the user input.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에서 제어하는 메뉴가 선택된 경우,
상기 적어도 하나의 제1 외부 전자 장치의 위치 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하고,
상기 적어도 하나의 제1 외부 전자 장치를 제어하기 위한 사용자 인터페이스를 상기 전자 장치의 디스플레이에 표시하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
When a menu for controlling the at least one first external electronic device in the application is selected by the user input,
Obtaining a location of the at least one first external electronic device based on a location of the at least one first external electronic device and a distance between the electronic device and the at least one first external electronic device;
The electronic device characterized in that it is set to display a user interface for controlling the at least one first external electronic device on a display of the electronic device.
제 1 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라의 구동을 중단하고 상기 제1 카메라를 구동하거나,
상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라와 상기 제1 카메라를 동시에 구동하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 1,
The at least one processor,
While driving the second camera, stopping the driving of the second camera and driving the first camera based on the user input;
The electronic device according to claim 1 , wherein the second camera and the first camera are simultaneously driven based on the user input while the second camera is being driven.
제 2 항에 있어서,
상기 적어도 하나의 프로세서는,
상기 적어도 하나의 제1 외부 전자 장치의 위치를 상기 전자 장치의 메모리 또는 외부 서버에 저장하도록 설정되는 것을 특징으로 하는 전자 장치.
According to claim 2,
The at least one processor,
The electronic device characterized in that it is configured to store the location of the at least one first external electronic device in a memory of the electronic device or an external server.
제 1 항에 있어서,
상기 통신 모듈은 UWB(Ultra-Wideband) 방식을 지원하는 것을 특징으로 하는 전자 장치.
According to claim 1,
The electronic device, characterized in that the communication module supports a UWB (Ultra-Wideband) method.
전자 장치의 동작 방법에 있어서,
사용자 입력에 기반하여, 적어도 하나의 제1 외부 전자 장치를 등록하고 제어하기 위한 어플리케이션을 실행하는 동작,
상기 전자 장치의 통신 모듈을 이용하여 상기 전자 장치와 통신할 수 있는 제2 외부 전자 장치와 통신 연결을 수립하는 동작,
상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나를 획득하는 동작,
상기 전자 장치의 제1 하우징 표면에 배치되는 제1 카메라를 구동하여, 상기 제1 카메라에 의해 촬영 가능한 방향에 위치한 상기 적어도 하나의 외부 전자 장치를 인식하고, 상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하는 동작, 및
상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하는 동작을 포함하는 것을 특징으로 하는 방법.
In the operating method of the electronic device,
Executing an application for registering and controlling at least one first external electronic device based on a user input;
Establishing a communication connection with a second external electronic device capable of communicating with the electronic device using a communication module of the electronic device;
obtaining at least one of an angle and a distance between the second external electronic device and the electronic device;
A first camera disposed on a surface of a first housing of the electronic device is driven to recognize the at least one external electronic device located in a direction capable of being photographed by the first camera, and the second external electronic device and the electronic device are recognized. obtaining a distance between the electronic device and the at least one first external electronic device based on at least one of an angle and a distance between the electronic devices; and
and obtaining a location of the at least one first external electronic device based on a distance between the electronic device and the at least one first external electronic device.
제 11 항에 있어서,
상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에 등록하는 메뉴가 선택된 경우,
상기 제2 외부 전자 장치와 상기 전자 장치 간의 각도와 거리 중 적어도 하나, 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리를 획득하고,
상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하여 저장하는 것을 특징으로 하는 방법.
According to claim 11,
When a menu for registering the at least one first external electronic device to the application is selected by the user input,
Based on at least one of an angle and a distance between the second external electronic device and the electronic device, and a distance between the electronic device and a rear wall where the at least one first external electronic device is located, obtaining a distance between the first external electronic devices;
The method of claim 1 , wherein the location of the at least one first external electronic device is obtained and stored based on a distance between the electronic device and the at least one first external electronic device.
제 12 항에 있어서,
상기 후방 벽에 위치한 상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하는 것을 특징으로 하는 방법.
According to claim 12,
and calculating a distance between the electronic device and a rear wall where the at least one first external electronic device is positioned based on a distance between the electronic device positioned on the rear wall and the second external electronic device.
제 12 항에 있어서,
상기 후방 벽에 위치하며 상기 통신 모듈을 이용하여 통신할 수 있는 제3 외부 전자 장치와 통신 연결을 수립하고,
상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리를 획득하고,
상기 전자 장치와 상기 제2 외부 전자 장치 간의 거리 및 상기 제3 외부 전자 장치와 상기 전자 장치 간의 거리에 기반하여, 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하는 것을 특징으로 하는 방법.
According to claim 12,
Establishing a communication connection with a third external electronic device located on the rear wall and capable of communicating using the communication module;
obtaining a distance between the third external electronic device and the electronic device;
Based on the distance between the electronic device and the second external electronic device and the distance between the third external electronic device and the electronic device, a distance between the electronic device and a rear wall where the at least one first external electronic device is located is calculated. A method characterized by doing.
제 12 항에 있어서,
상기 제1 카메라의 초점 거리 또는 심도 센서에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 계산하는 것을 특징으로 하는 방법.
According to claim 12,
and calculating a distance between the electronic device and a rear wall where the at least one first external electronic device is located based on a focal length of the first camera or a depth sensor.
제 12 항에 있어서,
상기 사용자 입력에 기반하여 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치가 위치한 후방 벽 간의 거리를 획득하는 것을 특징으로 하는 방법.
According to claim 12,
Acquiring a distance between the electronic device and a rear wall where the at least one first external electronic device is located based on the user input.
제 12 항에 있어서,
상기 사용자 입력에 의해 상기 적어도 하나의 제1 외부 전자 장치를 상기 어플리케이션에서 제어하는 메뉴가 선택된 경우,
상기 적어도 하나의 외부 전자 장치의 위치 및 상기 전자 장치와 상기 적어도 하나의 제1 외부 전자 장치간의 거리에 기반하여, 상기 적어도 하나의 제1 외부 전자 장치의 위치를 획득하고,
상기 적어도 하나의 제1 외부 전자 장치를 제어하기 위한 사용자 인터페이스를 상기 전자 장치의 디스플레이에 표시하는 것을 특징으로 하는 방법.
According to claim 12,
When a menu for controlling the at least one first external electronic device in the application is selected by the user input,
Obtaining a location of the at least one first external electronic device based on a location of the at least one external electronic device and a distance between the electronic device and the at least one first external electronic device;
and displaying a user interface for controlling the at least one first external electronic device on a display of the electronic device.
제 11 항에 있어서,
상기 전자 장치의 제2 하우징 표면에 매치되는 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라의 구동을 중단하고 상기 제1 카메라를 구동하거나,
상기 제2 카메라를 구동하는 동안, 상기 사용자 입력에 기반하여 상기 제2 카메라와 상기 제1 카메라를 동시에 구동하는 것을 특징으로 하는 방법.
According to claim 11,
Stop driving the second camera and drive the first camera based on the user input while driving the second camera matched to the surface of the second housing of the electronic device;
While driving the second camera, the second camera and the first camera are simultaneously driven based on the user input.
제 12 항에 있어서,
상기 적어도 하나의 외부 전자 장치의 위치를 상기 전자 장치의 메모리 또는 외부 서버에 저장하는 것을 특징으로 하는 방법.
According to claim 12,
and storing the location of the at least one external electronic device in a memory of the electronic device or an external server.
제 11 항에 있어서,
상기 통신 모듈은 UWB(Ultra-Wideband) 방식을 지원하는 것을 특징으로 하는 방법.
According to claim 11,
The method of claim 1, wherein the communication module supports an ultra-wideband (UWB) scheme.
KR1020220010512A 2021-10-27 2022-01-25 Electronic device for controlling external electronic device and operating method thereof KR20230060427A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/KR2022/012018 WO2023075103A1 (en) 2021-10-27 2022-08-11 Electronic device for controlling external electronic device, and operating method therefor
EP22887309.7A EP4361673A1 (en) 2021-10-27 2022-08-11 Electronic device for controlling external electronic device, and operating method therefor
US17/895,363 US20230130891A1 (en) 2021-10-27 2022-08-25 Electronic device for controlling external electronic device and method of controlling the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20210144502 2021-10-27
KR1020210144502 2021-10-27

Publications (1)

Publication Number Publication Date
KR20230060427A true KR20230060427A (en) 2023-05-04

Family

ID=86379850

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220010512A KR20230060427A (en) 2021-10-27 2022-01-25 Electronic device for controlling external electronic device and operating method thereof

Country Status (1)

Country Link
KR (1) KR20230060427A (en)

Similar Documents

Publication Publication Date Title
EP4203458A1 (en) Electronic device for image capturing, method, and non-transitory storage medium
KR20220048913A (en) An elelctronic device and method for inducing input
KR20220112952A (en) Electronic device, and method for mataining sho0ting composition in electronic device
KR20230060427A (en) Electronic device for controlling external electronic device and operating method thereof
KR20220090716A (en) Electronic device, and method for grouping external devices by space in electronic device
KR20220118196A (en) Call function control method and electronic device supporting the same
KR20220099730A (en) Electronic device for managing external electronic device performing requested function and method for operating thereof
KR20220069370A (en) Electronic device having extendable display and method for providing content thereof
KR20220017284A (en) Electronic device and method for controlling screen thereof
US20230130891A1 (en) Electronic device for controlling external electronic device and method of controlling the same
US20230127190A1 (en) Electronic device comprising rotation module and method of operating the same
EP4373100A1 (en) Electronic apparatus for controlling at least one external apparatus and operating method therefor
US20230260437A1 (en) Electronic device with flexible display
US11983380B2 (en) Electronic device having a flexible display
KR20240001642A (en) Electronic device and method for setup of extend display thereof
US20230289025A1 (en) Method for controlling electronic device by using stylus, and electronic device for receiving input from stylus by using method
WO2023075103A1 (en) Electronic device for controlling external electronic device, and operating method therefor
KR20240050951A (en) Electronic device and method of operation thereof
KR20230175066A (en) Electronic device including camera, and method of operation thereof
KR20240040580A (en) Foldable electronic device and operation method of foldable electronic device
KR20230057098A (en) Electronic device for providing location-based service and operating method thereof
KR20240021045A (en) Electronic device and method for display screeen through plurality of displays
KR20230036848A (en) An electronic device providing a user experience for controlling at least one UWB device and controlling method thereof
KR20220064269A (en) electronic device and method for displaying user interface
KR20220102422A (en) Electronic device, method and non-transitory storage medium for photographing image