KR20230072878A - Method for receiving input generated from external input device and electronic device thereof - Google Patents

Method for receiving input generated from external input device and electronic device thereof Download PDF

Info

Publication number
KR20230072878A
KR20230072878A KR1020210159549A KR20210159549A KR20230072878A KR 20230072878 A KR20230072878 A KR 20230072878A KR 1020210159549 A KR1020210159549 A KR 1020210159549A KR 20210159549 A KR20210159549 A KR 20210159549A KR 20230072878 A KR20230072878 A KR 20230072878A
Authority
KR
South Korea
Prior art keywords
electronic device
external input
input device
communication
event
Prior art date
Application number
KR1020210159549A
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 KR1020210159549A priority Critical patent/KR20230072878A/en
Publication of KR20230072878A publication Critical patent/KR20230072878A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/06Details of telephonic subscriber devices including a wireless LAN interface

Abstract

명령어들이 저장되는 메모리; 통신 회로; 및 상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함하고, 상기 프로세서는 상기 저장된 명령어들의 실행 시: 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하고, 제1 외부 입력 장치와 연관된 이벤트 발생을 인식하고, 상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하고, 상기 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하고, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신하는 전자 장치가 개시된다.memory in which instructions are stored; communication circuit; and a processor electrically connected to the memory and the communication circuitry, wherein the processor upon execution of the stored instructions: from at least one other electronic device, the at least one other electronic device is connected to at least one external input device, respectively. Receiving information indicating that a short-range communication connection has been established, recognizing an occurrence of an event associated with a first external input device, and in response to the occurrence of the event, based on the received information, a first contact point connected to the first external input device through short-range communication Identifying another electronic device, establishing a communication connection with the first other electronic device for receiving an input to the electronic device generated from the first external input device through the communication circuit, and An electronic device that receives information about the input to the electronic device generated from the first other electronic device is disclosed.

Figure P1020210159549
Figure P1020210159549

Description

전자 장치의 외부 입력 장치에서 발생한 입력 수신 방법 및 그 전자 장치{METHOD FOR RECEIVING INPUT GENERATED FROM EXTERNAL INPUT DEVICE AND ELECTRONIC DEVICE THEREOF}Method for receiving input generated from an external input device of an electronic device and the electronic device

본 문서에 개시되는 다양한 실시 예들은 전자 장치가 외부 입력 장치에서 발생한 입력을 다른 전자 장치를 통하여 수신하는 방법에 관한 것이다.Various embodiments disclosed in this document relate to a method for an electronic device to receive an input generated by an external input device through another electronic device.

전자 장치(예: 스마트폰)와 무선 연결된 외부 입력 장치(또는 전자 펜, 스타일러스 장치)는 호환 가능한 근거리 무선 통신 규격(예: Bluetooth/Wi-Fi)에 따라 전자 장치와 통신 연결될 수 있다. 예를 들면, 블루투스 통신 규격과 호환하는 외부 입력 장치는 약 10m 이내의 무선 통신 거리를 제공할 수 있고, 와이파이(Wi-Fi) 통신 규격과 호환하는 외부 입력 장치는 약 100m 이내의 무선 통신 거리를 제공할 수 있다.An external input device (or electronic pen or stylus device) wirelessly connected to an electronic device (eg, a smartphone) may communicate with the electronic device according to a compatible short-range wireless communication standard (eg, Bluetooth/Wi-Fi). For example, an external input device compatible with the Bluetooth communication standard may provide a wireless communication distance of less than about 10 m, and an external input device compatible with the Wi-Fi communication standard may provide a wireless communication distance of less than about 100 m. can provide

전자 장치와 외부 입력 장치 사이에 블루투스 무선 통신이 연결된 상태에서, 외부 입력 장치에서 버튼 입력 등의 입력 이벤트가 발생한 경우, 블루투스 페어링(pairing) 과정에서 등록된 정보를 이용하여 상기 입력은 전자 장치로 전달될 수 있다. 상기 입력을 수신한 전자 장치는 상기 입력에 대응하는 기능을 수행할 수 있다.When an input event such as a button input occurs in the external input device while Bluetooth wireless communication is connected between the electronic device and the external input device, the input is transmitted to the electronic device using information registered in the Bluetooth pairing process. It can be. An electronic device receiving the input may perform a function corresponding to the input.

외부 입력 장치는 하나의 전자 장치와만 블루투스 페어링이 가능하다. 외부 입력 장치와 블루투스 페어링이 되어 있지 않은 다른 전자 장치에서 외부 입력 장치가 사용 중이더라도, 외부 입력 장치의 입력은 블루투스 통신을 통해 다른 전자 장치로 전달될 수 없다.An external input device can be Bluetooth paired with only one electronic device. Even if the external input device is being used by another electronic device not paired with the external input device via Bluetooth, the input of the external input device cannot be transmitted to the other electronic device through Bluetooth communication.

종래의 경우, 외부 입력 장치는 블루투스 통신 연결되지 않은 다른 전자 장치로 입력을 전달하기 위해서, 기존 전자 장치와의 블루투스 페어링을 삭제하고 새롭게 다른 전자 장치와 블루투스 페어링을 수행해야만 했다. 즉, 사용자에게 번거롭고 복잡한 블루투스 페어링 과정이 요구되었고, 또한 외부 입력 장치가 다른 전자 장치와 새롭게 블루투스 페어링을 한 후에는 기존 전자 장치로 입력이 전달될 수 없었다. 따라서, 한 전자 장치와 근거리 무선 통신 연결되어 있는 외부 입력 장치를 잠시 다른 전자 장치에서 사용하는 시나리오를 지원하기 어려웠다.In the conventional case, in order to transfer an input to another electronic device that is not connected through Bluetooth communication, an external input device has to delete Bluetooth pairing with an existing electronic device and newly perform Bluetooth pairing with another electronic device. That is, a cumbersome and complicated Bluetooth pairing process is required for the user, and input cannot be transmitted to the existing electronic device after the external input device newly performs Bluetooth pairing with another electronic device. Accordingly, it is difficult to support a scenario in which an external input device connected to one electronic device through short-range wireless communication is temporarily used by another electronic device.

본 문서에 개시된 다양한 실시 예들은, 외부 입력 장치로부터 블루투스 통신을 통해 전달되는 입력을 외부 입력 장치와 페어링 되어있는 전자 장치에서 외부 입력 장치와 페어링 되어있지 않는 다른 전자 장치로 릴레이 해주는 방법을 제공한다.Various embodiments disclosed in this document provide a method for relaying an input transmitted from an external input device through Bluetooth communication from an electronic device paired with the external input device to another electronic device not paired with the external input device.

일 실시 예에 따른 전자 장치는, 명령어들이 저장되는 메모리; 통신 회로; 및 상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함할 수 있고, 상기 프로세서는 상기 저장된 명령어들의 실행 시: 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하고, 제1 외부 입력 장치와 연관된 이벤트 발생을 인식하고, 상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하고, 상기 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하고, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신할 수 있다.An electronic device according to an embodiment includes a memory in which commands are stored; communication circuit; and a processor electrically connected to the memory and the communication circuit, wherein the processor, when executing the stored instructions: from at least one other electronic device, the at least one other electronic device receives at least one external input device Receiving information indicating that a short-range communication connection has been established with each other, recognizing the occurrence of an event associated with the first external input device, and in response to the occurrence of the event, based on the received information, a short-range communication connection with the first external input device is established. Identifying a first other electronic device, establishing a communication connection with the first other electronic device through the communication circuit to receive an input to the electronic device generated from the first external input device, and Information on the input to the electronic device generated by the input device may be received from the first other electronic device.

일 실시 예에 따른 전자 장치의 외부 입력 장치에서 발생한 입력을 전달받는 방법은, 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하는 동작; 제1 외부 입력 장치와 연관된 이벤트 발생을 인식하는 동작; 상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하는 동작; 상기 전자 장치의 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하는 동작; 및 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신하는 동작을 포함할 수 있다.A method of receiving an input generated from an external input device of an electronic device according to an embodiment includes information from at least one other electronic device that the at least one other electronic device has established a short-range communication connection with at least one external input device, respectively. operation of receiving; recognizing the occurrence of an event associated with the first external input device; identifying a first other electronic device connected to the first external input device through short-range communication based on the received information in response to the occurrence of the event; establishing a communication connection with the first other electronic device through a communication circuit of the electronic device to receive an input to the electronic device generated from the first external input device; and receiving, from the first other electronic device, information about the input to the electronic device generated by the first external input device.

일 실시 예에 따른 전자 장치는, 명령어들이 저장되는 메모리; 통신 회로; 및 상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함할 수 있고, 상기 프로세서는 상기 저장된 명령어들의 실행 시: 다른 전자 장치로부터 상기 다른 전자 장치가 외부 입력 장치와 근거리 통신 연결을 수립했다는 정보를 수신하고, 상기 외부 입력 장치와 연관된 이벤트 발생을 인식하고, 상기 이벤트 발생에 응답하여, 상기 통신 회로를 통하여 상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 다른 전자 장치와 설정하고, 상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 다른 전자 장치로부터 수신할 수 있다.An electronic device according to an embodiment includes a memory in which commands are stored; communication circuit; and a processor electrically connected to the memory and the communication circuit, wherein the processor receives information from another electronic device that the other electronic device has established a short-range communication connection with an external input device when the stored instructions are executed. Receiving, recognizing the occurrence of an event associated with the external input device, and establishing a communication connection for receiving an input to the electronic device generated from the external input device through the communication circuit in response to the occurrence of the event is established with the other electronic device. and may receive information about the input to the electronic device generated by the external input device from the other electronic device.

본 문서에 개시된 다양한 실시 예들에 따르면, 전자 장치는 외부 입력 장치와 직접 무선 통신 연결되어 있지 않더라도, 외부 입력 장치와 직접 무선 통신 연결되어 있는 다른 전자 장치로부터 전자 장치에 대한 입력을 릴레이 받음으로써, 외부 입력 장치와 복잡한 통신 연결 과정 없이 전자 장치에서 외부 입력 장치를 사용할 수 있다.According to various embodiments disclosed in this document, even if the electronic device is not directly wirelessly connected to the external input device, the electronic device receives an input to the electronic device as a relay from another electronic device that is directly connected to the external input device by wireless communication. An external input device can be used in an electronic device without a complicated communication connection process with the input device.

본 문서에 개시된 다양한 실시 예들에 따르면, 전자 장치와 다른 전자 장치 사이 설정된 통신 릴레이가 종료된 경우, 외부 입력 장치는 기존에 통신 연결된 다른 전자 장치와 다시 페어링을 수행하지 않더라도 다른 전자 장치에서 계속해서 사용될 수 있다.According to various embodiments disclosed in this document, when a communication relay established between an electronic device and another electronic device is terminated, the external input device may continue to be used in another electronic device even if it does not perform pairing again with the other electronic device connected in communication therewith. can

이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition to this, various effects identified directly or indirectly through this document may be provided.

도 1은 일 실시 예에 따른 다른 전자 장치와 근거리 통신 연결된 외부 입력 장치로부터 입력을 수신하는 전자 장치를 도시하는 예시도이다.
도 2는 일 실시 예에 따른 외부 입력 장치를 수용할 수 있는 다른 전자 장치의 사시도이다.
도 3은 일 실시 예에 따른 전자 장치를 도시하는 블록도이다.
도 4는 일 실시 예에 따른 외부 입력 장치를 도시하는 블록도이다.
도 5는 일 실시 예에 따른 전자 장치가 외부 입력 장치에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.
도 6은 일 실시 예에 따른 전자 장치가 다른 전자 장치와 근거리 통신 연결된 외부 입력 장치에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.
도 7은 일 실시 예에 따른 전자 장치의 외부 입력 장치와 근거리 통신 연결된 다른 전자 장치를 식별하는 흐름도이다.
도 8은 일 실시 예에 따른 전자 장치에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치와 전자 장치 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.
도 9는 일 실시 예에 따른 외부 입력 장치에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치와 전자 장치 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.
도 10은 일 실시 예에 따른 다른 전자 장치에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치와 전자 장치 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.
도 11은 일 실시 예에 따른 전자 장치가 다른 전자 장치로부터 외부 입력 장치와 근거리 통신 연결이 수립되었다는 정보를 수신하지 못한 경우, 외부 입력 장치에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.
도 12는 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 is an exemplary diagram illustrating an electronic device receiving an input from an external input device connected to another electronic device through short-range communication according to an embodiment.
2 is a perspective view of another electronic device capable of accommodating an external input device according to an exemplary embodiment.
3 is a block diagram illustrating an electronic device according to an exemplary embodiment.
4 is a block diagram illustrating an external input device according to an exemplary embodiment.
5 is a flowchart illustrating a method in which an electronic device receives an input generated by an external input device according to an exemplary embodiment.
6 is a flowchart illustrating a method for an electronic device to receive an input generated from an external input device connected to another electronic device through short-range communication, according to an exemplary embodiment.
7 is a flowchart for identifying another electronic device connected to an external input device of an electronic device through short-range communication according to an embodiment.
8 is a flowchart illustrating a method of terminating a communication relay established between another electronic device and an electronic device when an event for terminating a communication relay occurs in an electronic device according to an embodiment.
9 is a flowchart illustrating a method of terminating a communication relay set between another electronic device and an electronic device when an event for terminating a communication relay occurs in an external input device according to an embodiment.
10 is a flowchart illustrating a method of terminating a communication relay established between another electronic device and an electronic device when an event for terminating a communication relay occurs in another electronic device according to an embodiment.
11 is a flowchart illustrating a method of receiving an input generated from an external input device when an electronic device does not receive information indicating that a short-range communication connection with an external input device has been established from another electronic device according to an embodiment.
12 is a block diagram of an electronic device in a network environment according to various embodiments.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar elements.

이하, 첨부된 도면을 참조하여 본 문서에 개시된 다양일 실시 예들이 설명된다. 설명의 편의를 위하여 도면에 도시된 구성요소들은 그 크기가 과장 또는 축소될 수 있으며, 본 발명이 반드시 도시된 바에 의해 한정되는 것은 아니다.Hereinafter, various embodiments disclosed in this document will be described with reference to the accompanying drawings. For convenience of explanation, the size of the elements shown in the drawings may be exaggerated or reduced, and the present invention is not necessarily limited by the drawings.

도 1은 일 실시 예에 따른 다른 전자 장치(300)와 근거리 통신 연결된 외부 입력 장치(200)로부터 입력을 수신하는 전자 장치(100)를 도시하는 예시도이고, 도 2는 일 실시 예에 따른 외부 입력 장치(200)를 수용할 수 있는 다른 전자 장치(300)의 사시도이다.1 is an exemplary diagram illustrating an electronic device 100 receiving an input from an external input device 200 connected to another electronic device 300 through short-range communication according to an embodiment, and FIG. 2 is an exemplary diagram illustrating an external input device 200 according to an embodiment. It is a perspective view of another electronic device 300 capable of accommodating the input device 200.

도 1을 참조하면, 외부 입력 장치(또는 전자 펜, 스타일러스 장치)(200)는 하나의 전자 장치(이하 다른 전자 장치라 함)(300)와 근거리 무선 통신(10a) 연결될 수 있다. 예를 들면, 외부 입력 장치(200)와 다른 전자 장치(300)는 블루투스 통신, 저전력 블루투스 통신, 및/또는 와이파이 통신 중 적어도 하나를 이용하여 근거리 통신 연결될 수 있다. 이 경우, 외부 입력 장치(200)는 다른 전자 장치(300)에서 사용될 수 있다. 예를 들면, 외부 입력 장치(200)는 다른 전자 장치(300)의 디스플레이에 접촉되거나 또는 다른 전자 장치(300)와 일정 거리 이내에 비접촉되어 다른 전자 장치(300)에 대한 입력을 발생할 수 있다. 예를 들면, 외부 입력 장치(200) 관련 기능을 지원하는 어플리케이션이 다른 전자 장치(300)에서 실행된 상태에서, 외부 입력 장치(200)는 다른 전자 장치(300)에서 실행된 어플리케이션의 기능을 원격으로 제어할 수 있다. 일 실시 예에 따르면, 외부 입력 장치(200)에서 발생한 다른 전자 장치(300)에 대한 입력은 외부 입력 장치(200)와 다른 전자 장치(300) 사이 연결된 근거리 무선 통신(10a)을 통하여 다른 전자 장치(300)로 전송될 수 있다. 예를 들면, 외부 입력 장치(200)에서 발생된 다른 전자 장치(300)에 대한 입력 정보는 외부 입력 장치(200)와 다른 전자 장치(300) 사이 연결된 블루투스 무선 통신을 통하여 패킷(packet)에 포함되어 다른 전자 장치(300)로 전송될 수 있다. 다른 예를 들면, 외부 입력 장치(200)에서 발생된 다른 전자 장치(300)에 대한 입력 정보는 외부 입력 장치(200)와 다른 전자 장치(300) 사이 UWB(ultra-wide band) 및/또는 Wi-Fi Aware 통신을 통하여 다른 전자 장치(300)로 전송될 수도 있다.Referring to FIG. 1 , an external input device (or electronic pen or stylus device) 200 may be connected to one electronic device (hereinafter referred to as another electronic device) 300 through short-range wireless communication 10a. For example, the external input device 200 and the other electronic device 300 may be connected through short-range communication using at least one of Bluetooth communication, low energy Bluetooth communication, and/or Wi-Fi communication. In this case, the external input device 200 may be used in another electronic device 300 . For example, the external input device 200 may contact the display of another electronic device 300 or generate an input to the other electronic device 300 without contacting the other electronic device 300 within a certain distance. For example, in a state in which an application supporting a function related to the external input device 200 is executed in another electronic device 300, the external input device 200 remotely controls the function of the application executed in the other electronic device 300. can be controlled with According to an embodiment, the input to the other electronic device 300 generated by the external input device 200 is received through short-range wireless communication 10a connected between the external input device 200 and the other electronic device 300 to another electronic device. (300). For example, input information about the other electronic device 300 generated by the external input device 200 is included in a packet through Bluetooth wireless communication connected between the external input device 200 and the other electronic device 300. and can be transmitted to another electronic device 300. For another example, the input information for the other electronic device 300 generated by the external input device 200 may be transmitted through ultra-wide band (UWB) and/or Wi-Fi between the external input device 200 and the other electronic device 300. - It may be transmitted to another electronic device 300 through Fi Aware communication.

일 실시 예에 따르면, 외부 입력 장치(200)는 다른 전자 장치(300)에 수용 가능하도록 설계될 수 있다. 도 2를 참조하면, 일 실시 예에 따른 다른 전자 장치(300)는, 외부 입력 장치(200)가 삽입될 수 있는 구조를 포함할 수 있다. 다른 전자 장치(300)는 하우징(301)을 포함할 수 있고, 하우징(301)의 일 부분, 예를 들면, 측면(301a)의 일 부분에는 홀(302)을 포함할 수 있다. 다른 전자 장치(300)는 홀(302)과 연결된 수납 공간인 내부 공간(303)을 포함할 수 있으며, 외부 입력 장치(200)는 상기 내부 공간(303) 내에 삽입될 수 있다. 도시된 실시 예에 따르면, 외부 입력 장치(200)는 외부 입력 장치(200)를 다른 전자 장치(300)의 내부 공간(303)으로부터 꺼내기 용이하도록, 일 단부에 눌림 가능한 제2 버튼(202)을 포함할 수 있다. 상기 제2 버튼(202)이 눌리면, 제2 버튼(202)과 연계 구성된 반발 메커니즘(예를 들어, 적어도 하나의 탄성 부재(예: 스프링)에 의한 반발 메커니즘)이 작동하여, 내부 공간(303)으로 부터 외부 입력 장치(200)가 탈착될 수 있다.According to an embodiment, the external input device 200 may be designed to be accommodated in another electronic device 300 . Referring to FIG. 2 , another electronic device 300 according to an embodiment may include a structure into which an external input device 200 can be inserted. Another electronic device 300 may include a housing 301, and a hole 302 may be included in a portion of the housing 301, for example, a portion of a side surface 301a. Another electronic device 300 may include an inner space 303 that is a storage space connected to the hole 302 , and the external input device 200 may be inserted into the inner space 303 . According to the illustrated embodiment, the external input device 200 includes a second button 202 that can be pressed at one end to facilitate taking the external input device 200 out of the inner space 303 of the other electronic device 300. can include When the second button 202 is pressed, a repulsive mechanism configured in conjunction with the second button 202 (eg, a repulsive mechanism by at least one elastic member (eg, a spring)) operates, and the internal space 303 The external input device 200 can be detached from.

다른 예를 들면, 다른 전자 장치(300)에 포함된 자석과 외부 입력 장치(200)에 포함된 자석 사이의 자력에 의하여 외부 입력 장치(200)는 다른 전자 장치(300)의 내부 공간(300)에 수용될 수 있다. 이 경우, 외력에 의하여 상기 자력을 극복하고 외부 입력 장치(200)가 다른 전자 장치(300)로부터 탈착될 수 있다.For another example, the external input device 200 is moved to the internal space 300 of the other electronic device 300 by the magnetic force between the magnet included in the other electronic device 300 and the magnet included in the external input device 200. can be accepted in In this case, the external input device 200 can be detached from the other electronic device 300 by overcoming the magnetic force by an external force.

일 실시 예에 따르면, 다른 전자 장치(300)와 외부 입력 장치(200)는 블루투스(또는 저전력 블루투스) 서로 페어링되어 등록된 상태일 수 있고, 다른 전자 장치(300)의 내부 공간(303)에 수용된 외부 입력 장치(200)가 다른 전자 장치(300)로부터 탈착되는 경우, 다른 전자 장치(300)와 외부 입력 장치(200)는 서로 블루투스 무선 통신(또는 저전력 블루투스 무선 통신) 연결될 수 있다.According to an embodiment, the other electronic device 300 and the external input device 200 may be in a Bluetooth (or Bluetooth Low Energy) paired and registered state, accommodated in the internal space 303 of the other electronic device 300. When the external input device 200 is detached from the other electronic device 300, the other electronic device 300 and the external input device 200 may be connected to each other through Bluetooth wireless communication (or low energy Bluetooth wireless communication).

도 2의 경우, 다른 전자 장치(300)의 내부 공간(303)에 수용될 수 있는 내장형 외부 입력 장치(200)에 대한 일 예시를 도시한 것이다. 다만, 외부 입력 장치(200)의 타입은 이에 제한되지 않는다. 일 실시 예에 따르면, 본 개시는 외장형 외부 입력 장치(즉, 다른 전자 장치(300)와 별개의 외부 입력 장치)에도 적용될 수 있다. 다른 예를 들면, 다른 전자 장치(300)에 탈착 가능한 커버(또는 케이스)는 외부 입력 장치(200)를 수용할 수 있는 공간을 포함할 수 있고, 이 경우 커버(또는 케이스)에 포함된 수용 공간에 외부 입력 장치(200)가 수납될 수도 있다.In the case of FIG. 2 , an example of the built-in external input device 200 that can be accommodated in the internal space 303 of another electronic device 300 is shown. However, the type of external input device 200 is not limited thereto. According to an embodiment, the present disclosure may also be applied to an external input device (ie, an external input device separate from the other electronic device 300). As another example, a cover (or case) detachable from another electronic device 300 may include a space capable of accommodating the external input device 200, in which case the accommodation space included in the cover (or case) The external input device 200 may be accommodated in.

본 개시에서는 외부 입력 장치(200)와 전자 장치(100) 사이에 수립된 근거리 무선 통신(10b) 연결이 존재하지 않더라도, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 외부 입력 장치(200)와 근거리 무선 통신(10a) 연결된 다른 전자 장치(300)를 통하여 릴레이(20)로 전달받는 방법에 대하여 개시한다. 이 경우, 외부 입력 장치(200)는 전자 장치(100)와 근거리 무선 통신(10b) 연결을 수립하지 않더라도 전자 장치(100)에서 사용될 수 있다.In the present disclosure, even if the short-range wireless communication 10b connection established between the external input device 200 and the electronic device 100 does not exist, input to the electronic device 100 generated by the external input device 200 is an external input. A method of receiving data from the relay 20 through another electronic device 300 connected to the device 200 through short-range wireless communication 10a is disclosed. In this case, the external input device 200 can be used in the electronic device 100 even without establishing a short-range wireless communication 10b connection with the electronic device 100 .

본 개시는 다른 전자 장치(300)가 비활성화 상태(예: 디스플레이 화면이 off인 상태)이거나 또는 다른 전자 장치(300)에서 외부 입력 장치(200)의 사용이 지원되지 않는 어플리케이션이 실행 중인 상태를 전제로 할 수 있다. 다만, 전자 장치(100)와 다른 전자 장치(300) 모두에서 외부 입력 장치(200)의 사용이 지원되는 어플리케이션이 실행 중인 경우, 다른 전자 장치(300)는 외부 입력 장치(200)의 입력을 설정된 우선 순위에 따라 다른 전자 장치(300)에서 처리할지 또는 릴레이(20)를 통해 전자 장치(100)로 전송할지 결정할 수 있다. 다른 예를 들면, 전자 장치(100)와 다른 전자 장치(300) 모두에서 외부 입력 장치(200)의 사용이 지원되는 어플리케이션이 실행 중인 경우, 다른 전자 장치(300)는 외부 입력 장치(200)에서 발생한 입력의 대상이 어느 장치인지 확인하기 위한 사용자 인터페이스를 표시할 수 있다.The present disclosure assumes that the other electronic device 300 is in an inactive state (eg, the display screen is off) or that the other electronic device 300 is running an application in which the use of the external input device 200 is not supported. can be done with However, when an application supporting the use of the external input device 200 is running in both the electronic device 100 and the other electronic device 300, the other electronic device 300 sets the input of the external input device 200. Depending on the priority, it may be determined whether to process in another electronic device 300 or transmit to the electronic device 100 through the relay 20. For another example, when an application that supports the use of the external input device 200 is running in both the electronic device 100 and the other electronic device 300, the other electronic device 300 operates on the external input device 200. A user interface for confirming which device is the target of the generated input may be displayed.

도 3은 일 실시 예에 따른 전자 장치(100)를 도시하는 블록도이다.3 is a block diagram illustrating an electronic device 100 according to an exemplary embodiment.

도 3을 참조하면, 일 실시 예에 따른 전자 장치(100)는, 메모리(110)(예: 도 12의 메모리(1230)), 통신 회로(120)(예: 도 12의 통신 모듈(1290)), 디스플레이(130)(예: 도 12의 표시 장치(1260)), 및/또는 프로세서(140)(예: 도 12의 프로세서(1220))를 포함할 수 있다. 일 실시 예에 따르면, 프로세서(140)는 메모리(110), 통신 회로(120), 및/또는 디스플레이(130)와 전기적으로 연결될 수 있다. 다만, 전자 장치(100)를 구성하는 구성품은 도 3의 도시에 제한되지 않으며, 전자 장치(100)는 그 밖의 구성품을 더 포함하거나 덜 포함할 수 있다.Referring to FIG. 3 , an electronic device 100 according to an embodiment includes a memory 110 (eg, the memory 1230 of FIG. 12 ), a communication circuit 120 (eg, the communication module 1290 of FIG. 12 ) ), a display 130 (eg, the display device 1260 of FIG. 12 ), and/or a processor 140 (eg, the processor 1220 of FIG. 12 ). According to one embodiment, the processor 140 may be electrically connected to the memory 110 , the communication circuit 120 , and/or the display 130 . However, components constituting the electronic device 100 are not limited to those illustrated in FIG. 3 , and the electronic device 100 may include more or less other components.

일 실시 예에 따르면, 메모리(110)는 전자 장치(100)의 적어도 하나의 구성요소(예: 프로세서(140))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 일 실시 예에 따르면, 메모리(110)는 다른 전자 장치(300)로부터 수신된 외부 입력 장치(200)와 다른 전자 장치(300) 사이 근거리 무선 통신 연결 이력에 대한 정보를 저장할 수 있다. 일 실시 예에 따르면, 메모리(110)는 전자 장치(100)에서 외부 입력 장치(200)의 사용이 감지된 경우 다른 전자 장치(300)와 통신 릴레이를 설정할 수 있도록 다양한 데이터를 저장할 수 있다. 예를 들면, 데이터는 관련 소프트웨어(예: 도 12의 프로그램(1240)) 및 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다.According to an embodiment, the memory 110 may store various data used by at least one component (eg, the processor 140) of the electronic device 100. According to an embodiment, the memory 110 may store information about a short-range wireless communication connection history between the external input device 200 and the other electronic device 300 received from the other electronic device 300 . According to an embodiment, the memory 110 may store various data so that a communication relay with another electronic device 300 may be set when the use of the external input device 200 is detected by the electronic device 100 . For example, the data may include input data or output data for related software (eg, program 1240 of FIG. 12 ) and commands related thereto.

일 실시 예에 따르면, 메모리(110)는 다른 전자 장치(300)로부터 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 통신 연결을 수립했다는 정보를 수신하고, 외부 입력 장치(200)와 연관된 이벤트 발생을 인식하고, 수신된 정보에 기반하여 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별하고, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 릴레이(relay)를 다른 전자 장치(300)와 설정하고, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력에 관한 정보를 다른 전자 장치(300)로부터 수신하기 위한 적어도 하나의 명령어를 저장할 수 있다.According to an embodiment, the memory 110 receives information from the other electronic device 300 indicating that the other electronic device 300 has established a short-range communication connection with the external input device 200, and communicates with the external input device 200. Recognizes the occurrence of a related event, identifies another electronic device 300 that is connected to the external input device 200 through short-range communication based on the received information, and receives an input from the external input device 200 to the electronic device 100. At least for setting a communication relay for reception with another electronic device 300 and receiving information about an input to the electronic device 100 generated by the external input device 200 from the other electronic device 300 One command can be stored.

일 실시 예에 따르면, 통신 회로(120)는 안테나를 이용하여 다양한 형태의 통신을 지원할 수 있다. 일 실시 예에 따르면, 통신 회로(120)는 외부 장치(예: 다른 전자 장치(300))로부터 데이터(예: 다른 전자 장치(300)와 외부 입력 장치(200) 사이 수립된 근거리 무선 통신 연결에 대한 데이터)의 수신을 지원할 수 있다. 일 실시 예에 따르면, 통신 회로(120)는 외부 장치(예: 다른 전자 장치(300))와 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 릴레이 설정을 지원할 수 있다.According to an embodiment, the communication circuit 120 may support various types of communication using an antenna. According to one embodiment, the communication circuit 120 is connected to data (eg, a short-range wireless communication connection established between the other electronic device 300 and the external input device 200) from an external device (eg, another electronic device 300). data) can be supported. According to an embodiment, the communication circuit 120 supports setting a communication relay to receive an input to the electronic device 100 generated from an external device (eg, another electronic device 300) and the external input device 200. can

일 실시 예에 따르면, 디스플레이(130)는 전자 장치(100) 하우징에 마련된 개구(opening) 또는 리세스(recess)를 통해 웨어러블 전자 장치(100)의 전면에 시각적으로 노출될 수 있다. 일 실시 예에 따르면, 디스플레이(130)는 전자 장치(100)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있고 각종 컨텐츠(예: 텍스트, 이미지, 비디오, 아이콘, 또는 심볼)를 표시할 수 있다. 예를 들면, 디스플레이(130)는 디스플레이 패널, 홀로그램 장치 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로(예: DDI(display driver IC))를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이(130)는 터치를 감지하도록 설정된 터치 회로(touch circuitry) 또는 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있고, 외부 입력 장치(200)(또는 사용자의 신체 일부)를 이용한 터치, 제스처, 근접 또는 호버링(hovering) 입력을 수신할 수 있다. 일 실시 예에 따르면, 디스플레이(130)의 적어도 일부는 플렉서블한 재질로 구성될 수 있고 해당 영역은 힘이 가해지면 구부러질 수 있다.According to an embodiment, the display 130 may be visually exposed on the front surface of the wearable electronic device 100 through an opening or recess provided in a housing of the electronic device 100 . According to an embodiment, the display 130 can visually provide information to the outside of the electronic device 100 (eg, a user) and display various contents (eg, text, image, video, icon, or symbol). can do. For example, the display 130 may include a display panel, a hologram device or a projector, and a control circuit (eg, a display driver IC (DDI)) for controlling the device. According to an embodiment, the display 130 may include a touch circuitry set to detect a touch or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by a touch, and may include an external A touch, gesture, proximity, or hovering input using the input device 200 (or a user's body part) may be received. According to an embodiment, at least a portion of the display 130 may be made of a flexible material, and the corresponding region may be bent when force is applied.

일 실시 예에 따르면, 프로세서(140)는 다양한 데이터를 수집하여 목적하는 출력 값을 연산하도록 구성될 수 있다. 일 실시 예에 따르면, 프로세서(140)는 사용자 입력의 적어도 일부에 기초하여 다양한 동작을 지원할 수 있다. 예를 들면, 프로세서(140)는, 커스터마이즈드(customized) 하드웨어 모듈 또는 소프트웨어(예: 어플리케이션 프로그램)를 실행하도록 구성된 제너릭(generic) 프로세서(140)를 포함할 수 있다. 프로세서(140)는 예를 들어, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함할 수 있다.According to one embodiment, the processor 140 may be configured to collect various data and calculate a desired output value. According to an embodiment, the processor 140 may support various operations based on at least a part of a user input. For example, the processor 140 may include a generic processor 140 configured to execute a customized hardware module or software (eg, an application program). The processor 140 may include, for example, one or a combination of two or more of hardware, software, or firmware.

일 실시 예에 따르면, 프로세서(140)는 전자 장치(100)의 메모리(110), 통신 회로(120), 및 디스플레이(130)과 전기적으로 연결될 수 있다. 일 실시 예에 따른 프로세서(140)는 메모리(110)에 저장된 명령어가 실행됨에 따라, 다른 전자 장치(300)로부터 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 통신 연결을 수립했다는 정보를 수신하고, 외부 입력 장치(200)와 연관된 이벤트 발생을 인식하고, 이벤트 발생에 응답하여 수신된 정보에 기반하여 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별하고, 통신 회로(120)를 통하여 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 릴레이를 다른 전자 장치(300)와 설정하고, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력에 관한 정보를 다른 전자 장치(300)로부터 수신할 수 있다.According to an embodiment, the processor 140 may be electrically connected to the memory 110, the communication circuit 120, and the display 130 of the electronic device 100. According to an embodiment, the processor 140 executes a command stored in the memory 110, and information from the other electronic device 300 indicates that the other electronic device 300 has established a short-range communication connection with the external input device 200. , recognizing the occurrence of an event associated with the external input device 200, identifying another electronic device 300 connected to the external input device 200 through short-range communication based on information received in response to the occurrence of the event, and communicating with the external input device 200. A communication relay for receiving an input to the electronic device 100 generated by the external input device 200 through the circuit 120 is set with another electronic device 300, and the electronic device generated by the external input device 200 ( Information about input to 100) may be received from another electronic device 300 .

도 4는 일 실시 예에 따른 외부 입력 장치(200)를 도시하는 블록도이다.4 is a block diagram illustrating an external input device 200 according to an exemplary embodiment.

도 4를 참조하면, 일 실시 예에 따른 외부 입력 장치(200)는, 메모리(210)(예: 도 12의 메모리(1230)), 통신 회로(220)(예: 도 12의 통신 모듈(1290)), 프로세서(230)(예: 도 12의 프로세서(1220)), 공진 회로(240) 및 트리거 회로(250)를 포함할 수 있다. 일 실시 예에 따르면, 프로세서(230)는 메모리(210), 통신 회로(220), 공진 회로(240) 및/또는 트리거 회로(250)와 전기적으로 연결될 수 있다. 다만, 외부 입력 장치(200)를 구성하는 구성품은 도 4의 도시에 제한되지 않으며, 외부 입력 장치(200)는 그 밖의 구성품을 더 포함하거나 덜 포함할 수 있다.Referring to FIG. 4 , the external input device 200 according to an embodiment includes a memory 210 (eg, the memory 1230 of FIG. 12 ), a communication circuit 220 (eg, the communication module 1290 of FIG. 12 ) )), a processor 230 (eg, the processor 1220 of FIG. 12 ), a resonance circuit 240 and a trigger circuit 250 . According to one embodiment, the processor 230 may be electrically connected to the memory 210 , the communication circuit 220 , the resonance circuit 240 and/or the trigger circuit 250 . However, components constituting the external input device 200 are not limited to those illustrated in FIG. 4 , and the external input device 200 may include more or less other components.

일 실시 예에 따르면, 외부 입력 장치(200)의 메모리(210)는 외부 입력 장치(200)의 동작에 관련된 정보를 저장할 수 있다. 예를 들어, 상기 정보는 다른 전자 장치(300)와의 통신을 위한 정보 및 외부 입력 장치(200)의 입력 동작에 관련된 주파수 정보를 포함할 수 있다. 일 실시 예에 따른 메모리(210)는, 통신 회로(220)의 통신 스택을 저장할 수도 있다. 구현에 따라, 통신 회로(220) 및/또는 프로세서(230)는 전용 메모리를 포함할 수도 있다.According to an embodiment, the memory 210 of the external input device 200 may store information related to the operation of the external input device 200 . For example, the information may include information for communication with another electronic device 300 and frequency information related to an input operation of the external input device 200 . The memory 210 according to an embodiment may store a communication stack of the communication circuit 220 . Depending on implementation, communication circuitry 220 and/or processor 230 may include dedicated memory.

일 실시 예에 따르면, 외부 입력 장치(200)의 통신 회로(220)는 외부 입력 장치(200)와 다른 전자 장치(300)의 통신 모듈 간의 무선 통신 기능을 수행하도록 구성될 수 있다. 일 실시 예에 따르면, 통신 회로(220)는 근거리 통신 방식을 이용하여 외부 입력 장치(200)의 상태 정보, 입력 정보, 및/또는 위치와 연관된 정보를 다른 전자 장치(300)로 전송할 수 있다. 예를 들어, 통신 회로(220)는 트리거 회로(250)를 통해 획득한 외부 입력 장치(200)의 방향 정보(예: 모션 센서 데이터), 마이크로 폰을 통해 입력된 음성 정보, 배터리의 잔량 정보, 및/또는 외부 입력 장치(200)에 구비된 버튼(예: 도 1의 제1 버튼(201))의 상태에 대한 정보를 다른 전자 장치(300)로 전송할 수 있다. 일 실시 예에 따르면, 근거리 통신 방식은 블루투스, 저전력 블루투스(Bluetooth low energy, BLE), NFC, Wi-Fi direct 중 적어도 하나를 포함할 수 있으나, 그 종류는 제한되지 않는다.According to an embodiment, the communication circuit 220 of the external input device 200 may be configured to perform a wireless communication function between the external input device 200 and a communication module of another electronic device 300 . According to an embodiment, the communication circuit 220 may transmit state information, input information, and/or location-related information of the external input device 200 to another electronic device 300 using a short-range communication method. For example, the communication circuit 220 may include direction information (eg, motion sensor data) of the external input device 200 obtained through the trigger circuit 250, voice information input through a microphone, remaining battery information, And/or information on the state of a button provided in the external input device 200 (eg, the first button 201 of FIG. 1 ) may be transmitted to another electronic device 300 . According to an embodiment, the short-range communication method may include at least one of Bluetooth, Bluetooth low energy (BLE), NFC, and Wi-Fi direct, but the type is not limited.

일 실시 예에 따르면, 외부 입력 장치(200)의 프로세서(230)는 다양한 데이터를 수집하여 목적하는 출력 값을 연산하도록 구성될 수 있다. 일 실시 예에 따르면, 프로세서(230)는 사용자 입력의 적어도 일부에 기초하여 다양한 동작을 지원할 수 있다. 예를 들면, 프로세서(230)는 커스터마이즈드(customized) 하드웨어 모듈 또는 소프트웨어(예를 들어, 어플리케이션 프로그램)를 실행하도록 구성된 제너릭(generic) 프로세서(140)를 포함할 수 있다. 프로세서(230)는 예를 들어, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함할 수 있다.According to one embodiment, the processor 230 of the external input device 200 may be configured to collect various data and calculate a desired output value. According to an embodiment, the processor 230 may support various operations based on at least a part of the user input. For example, the processor 230 may include a generic processor 140 configured to execute a customized hardware module or software (eg, an application program). The processor 230 may include, for example, one or a combination of two or more of hardware, software, or firmware.

일 실시 예에 따르면, 외부 입력 장치(200)의 프로세서(230)는 버튼(예: 도 1의 제1 버튼(201))의 눌림 상태를 나타내는 정보, 센서에 의하여 획득된 센싱 정보, 및/또는 센싱 정보에 기반하여 계산된 정보(예: 외부 입력 장치(200)의 위치와 연관된 정보)를 통신 회로(220)를 통하여 다른 전자 장치(300)로 송신하도록 설정될 수 있다.According to an embodiment, the processor 230 of the external input device 200 receives information indicating a pressed state of a button (eg, the first button 201 of FIG. 1 ), sensing information acquired by a sensor, and/or Information calculated based on the sensing information (eg, information related to the location of the external input device 200 ) may be set to be transmitted to another electronic device 300 through the communication circuit 220 .

일 실시 예에 따르면, 외부 입력 장치(200)의 공진 회로(240)는 다른 전자 장치(300)의 디지타이저(예: 도 12의 표시 장치(1260))로부터 발생되는 전자기장 신호에 기반하여 공진될 수 있으며 공진에 의하여 전자기 공명 방식(electro-magnetic resonance, EMR) 입력 신호를 방사할 수 있다. 다른 전자 장치(300)는, 전자기 공명 방식 입력 신호를 이용하여 다른 전자 장치(300) 상의 외부 입력 장치(200)의 위치를 확인할 수 있다. 예를 들어, 다른 전자 장치(300)는 디지타이저 내의 복수 개의 채널들(예: 복수 개의 루프 코일들) 각각에서, 전자기 공명 방식 입력 신호에 의하여 발생되는 유도 기전력(예: 출력 전류)의 크기에 기반하여, 외부 입력 장치(200)의 위치를 확인할 수 있다. 한편, 상술한 바에서는, 다른 전자 장치(300) 및 외부 입력 장치(200)가 EMR 방식에 기반하여 동작하는 것과 같이 설명되었지만, 이는 단순히 예시적인 것으로, 다른 전자 장치(300)는 ECR(electrically coupled resonance) 방식에 기반하여 전기장에 기반한 신호를 발생시킬 수도 있다. 외부 입력 장치(200)의 공진 회로(240)는, 전기장에 의하여 공진될 수 있다. 다른 전자 장치(300)는, 외부 입력 장치(200)에서의 공진에 의한 복수 개의 채널들(예: 전극들)에서의 전위를 확인할 수 있으며, 전위에 기반하여 외부 입력 장치(200)의 위치를 확인할 수도 있다. 다른 예를 들면, 외부 입력 장치(200)는 AES(active electrostatic) 방식으로 구현될 수도 있다. 다른 예를 들면, 다른 전자 장치(300)는 터치 패널의 적어도 하나의 전극과 연관된 커패시턴스의 변경에 기반하여 외부 입력 장치(200)를 검출할 수도 있다. 이 경우, 외부 입력 장치(200)에는 공진 회로(240)가 포함되지 않을 수도 있다.According to an embodiment, the resonance circuit 240 of the external input device 200 may resonate based on an electromagnetic field signal generated from a digitizer (eg, the display device 1260 of FIG. 12 ) of another electronic device 300. and can radiate an electromagnetic resonance (EMR) input signal by resonance. The other electronic device 300 may check the position of the external input device 200 on the other electronic device 300 using an electromagnetic resonance method input signal. For example, the other electronic device 300 is based on the magnitude of an induced electromotive force (eg, output current) generated by an electromagnetic resonance method input signal in each of a plurality of channels (eg, a plurality of loop coils) in the digitizer. Thus, the location of the external input device 200 can be confirmed. Meanwhile, in the above description, the other electronic device 300 and the external input device 200 have been described as operating based on the EMR method, but this is merely exemplary, and the other electronic device 300 is electrically coupled (ECR). It is also possible to generate a signal based on an electric field based on a resonance method. The resonance circuit 240 of the external input device 200 may be resonated by an electric field. The other electronic device 300 may check potentials in a plurality of channels (eg, electrodes) due to resonance in the external input device 200, and locate the external input device 200 based on the potentials. you can also check For another example, the external input device 200 may be implemented in an active electrostatic (AES) method. For another example, the other electronic device 300 may detect the external input device 200 based on a change in capacitance associated with at least one electrode of the touch panel. In this case, the external input device 200 may not include the resonance circuit 240 .

일 실시 예에 따르면, 외부 입력 장치(200)의 공진 회로(240)는 코일(coil)(또는, 인덕터(inductor)) 및/또는 커패시터(capacitor)를 포함할 수 있다. 공진 회로(240)는 입력되는 전기장 및/또는 자기장에 기반하여 공진할 수 있다. 외부 입력 장치(200)가 EMR 방식에 의하여 신호를 전송하는 경우, 외부 입력 장치(200)는 다른 전자 장치(300)의 유도성 패널로부터 발생되는 전자기장(electromagnetic field)에 기반하여, 공진 주파수를 포함하는 신호를 생성할 수 있다. 외부 입력 장치(200)가 AES 방식에 의하여 신호를 전송하는 경우, 외부 입력 장치(200)는 전자 장치(100)(101)와 용량 결합(capacity coupling)을 이용하여 신호를 생성할 수 있다. 외부 입력 장치(200)가 ECR 방식에 의하여 신호를 전송하는 경우, 외부 입력 장치(200)는 전자 장치(100)의 용량성 장치로부터 발생되는 전기장(electric field)에 기반하여 공진 주파수를 포함하는 신호를 생성할 수 있다.According to an embodiment, the resonant circuit 240 of the external input device 200 may include a coil (or inductor) and/or a capacitor. The resonance circuit 240 may resonate based on an input electric field and/or magnetic field. When the external input device 200 transmits a signal using the EMR method, the external input device 200 includes a resonance frequency based on an electromagnetic field generated from an inductive panel of another electronic device 300. signal can be generated. When the external input device 200 transmits a signal using the AES method, the external input device 200 may generate a signal using capacitive coupling with the electronic devices 100 and 101 . When the external input device 200 transmits a signal according to the ECR method, the external input device 200 transmits a signal including a resonant frequency based on an electric field generated from a capacitive device of the electronic device 100. can create

일 실시 예에 따르면, 외부 입력 장치(200)의 공진 회로(240)는 사용자의 조작 상태에 따라 전자기장의 세기 또는 주파수를 변경시키는데 이용될 수 있다. 예를 들어, 공진 회로(240)는 호버링 입력, 드로잉 입력, 버튼 입력 또는 이레이징 입력을 인식하기 위한 다양한 주파수를 제공할 수 있다. 예를 들어, 공진 회로(240)는 복수 개의 커패시터의 연결 조합에 따라 다양한 공진 주파수를 제공할 수 있거나, 또는 가변 인덕터, 및/또는 가변 커패시터에 기반하여 다양한 공진 주파수를 제공할 수도 있다.According to an embodiment, the resonance circuit 240 of the external input device 200 may be used to change the strength or frequency of the electromagnetic field according to a user's manipulation state. For example, the resonance circuit 240 may provide various frequencies for recognizing a hovering input, a drawing input, a button input, or an erasing input. For example, the resonant circuit 240 may provide various resonant frequencies according to a connection combination of a plurality of capacitors or may provide various resonant frequencies based on a variable inductor and/or a variable capacitor.

일 실시 예에 따르면, 외부 입력 장치(200)의 트리거 회로(250)는 적어도 하나의 버튼 또는 센서 회로를 포함할 수 있다. 일 실시 예에 따르면, 프로세서(230)는 외부 입력 장치(200)의 버튼의 입력 방식(예: 터치, 눌림) 또는 종류(예: EMR 버튼, BLE 버튼)를 확인할 수 있다. 일 실시 예에 따르면, 트리거 회로(250)는 버튼의 입력 신호를 이용하여 무선 통신 연결된 다른 전자 장치(300)로 트리거 신호를 전송할 수 있다.According to one embodiment, the trigger circuit 250 of the external input device 200 may include at least one button or sensor circuit. According to an embodiment, the processor 230 may check the input method (eg, touch or pressed) or type (eg, EMR button, BLE button) of the button of the external input device 200 . According to an embodiment, the trigger circuit 250 may transmit a trigger signal to another electronic device 300 connected through wireless communication using an input signal of a button.

도 5는 일 실시 예에 따른 전자 장치(100)가 외부 입력 장치(200)에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.5 is a flowchart illustrating a method in which the electronic device 100 receives an input generated by the external input device 200 according to an exemplary embodiment.

도 5의 동작들은 도 1의 전자 장치(100) 또는 도 3의 전자 장치(100)에 의해 수행될 수 있다. 도 5를 참조하면, 일 실시 예에 따른 전자 장치(100)의 프로세서(140)는 적어도 하나의 다른 전자 장치(300)로부터 적어도 하나의 다른 전자 장치(300)가 적어도 하나의 외부 입력 장치(200)와 각각 근거리 통신 연결을 수립했다는 정보를 수신하는 동작(510), 외부 입력 장치(200)와 연관된 이벤트 발생을 인식하는 동작(520), 이벤트 발생에 응답하여 수신된 정보에 기반하여 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별하는 동작(530), 통신 회로(120)를 통하여 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 연결(예: 통신 릴레이)을 식별된 다른 전자 장치(300)와 설정하는 동작(540), 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력에 관한 정보를 릴레이 설정된 다른 전자 장치(300)로부터 수신하는 동작(550), 및/또는 통신 릴레이의 종료를 위한 이벤트 발생 시, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료하는 동작(560)을 수행할 수 있다.The operations of FIG. 5 may be performed by the electronic device 100 of FIG. 1 or the electronic device 100 of FIG. 3 . Referring to FIG. 5 , in the processor 140 of the electronic device 100 according to an embodiment, at least one other electronic device 300 from at least one other electronic device 300 receives at least one external input device 200 ) Receiving information indicating that a short-range communication connection has been established (510), recognizing an event associated with the external input device 200 (520), and an external input device based on information received in response to the occurrence of an event. Operation 530 of identifying another electronic device 300 connected to 200 by short-range communication (530), communication connection for receiving an input to the electronic device 100 generated from the external input device 200 through the communication circuit 120 An operation 540 of setting (eg, a communication relay) with the identified other electronic device 300, and relaying information about an input to the electronic device 100 generated from the external input device 200 to the other electronic device 300 set as a relay. ), and/or when an event for terminating the communication relay occurs, operation 560 of terminating the communication relay set between the other electronic device 300 and the electronic device 100 may be performed. .

이하 실시 예에서 도 5의 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있고, 적어도 하나의 동작이 생략될 수도 있다. 예를 들어, 동작 530 및/또는 동작 560은 생략될 수 있다. 이하 도 5의 각 동작에 대하여 자세히 설명한다.In the following embodiment, the operations of FIG. 5 may be sequentially performed, but are not necessarily sequentially performed. The order of each operation may be changed, at least two operations may be performed in parallel, or at least one operation may be omitted. For example, operation 530 and/or operation 560 may be omitted. Hereinafter, each operation of FIG. 5 will be described in detail.

일 실시 예에 따른 프로세서(140)는, 동작 510에서 적어도 하나의 다른 전자 장치(300)로부터 적어도 하나의 다른 전자 장치(300)가 적어도 하나의 외부 입력 장치(200)와 각각 근거리 통신 연결을 수립했다는 정보를 수신할 수 있다. 예를 들면, 다른 전자 장치(300)가 외부 입력 장치(200)와 블루투스 또는 저전력 블루투스 통신이 연결된 경우, 다른 전자 장치(300)는 전자 장치(100)에게 외부 입력 장치(200)와 블루투스 또는 저전력 블루투스 통신 연결된 정보를 전송할 수 있다. 상기 정보를 수신한 전자 장치(100)는 외부 입력 장치(200)가 다른 전자 장치(300)와 블루투스 또는 저전력 블루투스 통신 연결되었음을 인지할 수 있고, 메모리(110)에 상기 수신된 정보를 저장할 수 있다. 예를 들면, 다른 전자 장치(300)가 외부 입력 장치(200)와 통신 연결되었음을 알리는 패킷(packet)에는 다른 전자 장치(300)를 나타낼 수 있는 ID, address 등의 정보, 외부 입력 장치(200)를 나타낼 수 있는 ID, address 등의 정보, 및/또는 통신이 연결된 시간 정보가 포함될 수 있다. 다만, 다른 전자 장치(300)와 외부 입력 장치(200) 사이의 통신 연결을 블루투스 통신에 제한되지 않는다. 예를 들면, 다른 전자 장치(300)와 외부 입력 장치(200)는 UWB(ultra-wide band) 및/또는 Wi-Fi Aware 통신을 이용하여 정보를 송수신할 수도 있다.In operation 510, the processor 140 according to an embodiment establishes a short-range communication connection between at least one other electronic device 300 and at least one external input device 200 from the at least one other electronic device 300. information can be received. For example, when the other electronic device 300 is connected to the external input device 200 through Bluetooth or low power Bluetooth communication, the other electronic device 300 sends the electronic device 100 the external input device 200 and Bluetooth or low power Bluetooth communication. Bluetooth communication can transmit connected information. The electronic device 100 that has received the information can recognize that the external input device 200 is connected to another electronic device 300 through Bluetooth or low energy Bluetooth communication, and can store the received information in the memory 110. . For example, in a packet indicating that the other electronic device 300 is communicatively connected to the external input device 200, information such as ID and address representing the other electronic device 300, the external input device 200 Information such as ID, address, etc., and/or time information when communication is connected may be included. However, the communication connection between the other electronic device 300 and the external input device 200 is not limited to Bluetooth communication. For example, the other electronic device 300 and the external input device 200 may transmit and receive information using ultra-wide band (UWB) and/or Wi-Fi Aware communication.

일 실시 예에 따르면, 다른 전자 장치(300)에 수용된 외부 입력 장치(200)가 다른 전자 장치(300)로부터 분리된 경우, 다른 전자 장치(300)와 외부 입력 장치(200) 사이 근거리 무선 통신이 연결될 수 있다. 일 실시 예에 따르면, 다른 전자 장치(300)로부터 외부 입력 장치(200)가 분리되었을 때, 다른 전자 장치(300)는 분리된 외부 입력 장치(200)와 근거리 무선 통신이 연결되었음을 전자 장치(100)에 알릴 수 있다. 전자 장치(100)는 다른 전자 장치(300)로부터 알림을 수신하여, 외부 입력 장치(200)가 다른 전자 장치(300)로부터 분리된 상태이고 다른 전자 장치(300)와 외부 입력 장치(200) 사이에 근거리 무선 통신 연결이 수립된 상태인 것을 인지할 수 있다.According to an embodiment, when the external input device 200 accommodated in the other electronic device 300 is separated from the other electronic device 300, short-range wireless communication between the other electronic device 300 and the external input device 200 is performed. can be connected According to an embodiment, when the external input device 200 is separated from the other electronic device 300, the other electronic device 300 determines that the separated external input device 200 and short-range wireless communication are connected to the electronic device 100. ) can be notified. The electronic device 100 receives a notification from the other electronic device 300, so that the external input device 200 is in a state separated from the other electronic device 300 and the other electronic device 300 and the external input device 200 are separated. It can be recognized that a short-range wireless communication connection is established.

일 실시 예에 따르면, 동작 510에서 전자 장치(100)와 다른 전자 장치(300) 사이의 정보 송수신은 블루투스(BT), 저전력 블루투스(BLE), 와이파이(Wi-Fi) 등의 근거리 통신 방법을 이용할 수 있고, 또는 외부 서버나 클라우드를 통한 out-of-band(OOB) 방법을 이용할 수 있다.According to an embodiment, information transmission and reception between the electronic device 100 and another electronic device 300 in operation 510 uses a short-range communication method such as Bluetooth (BT), Bluetooth Low Energy (BLE), or Wi-Fi. Alternatively, an out-of-band (OOB) method through an external server or cloud may be used.

예를 들면, 전자 장치(100)는 BLE scan을 통하여 다른 전자 장치(300)의 BLE advertisement를 수신함으로써, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 예를 들면, 전자 장치(100)는 BLE scan을 통하여 다른 전자 장치(300)의 BLE advertisement를 수신하고, BLE scan request에 대한 응답으로 BLE scan response를 수신함으로써, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 즉, 전자 장치(100)는 다른 전자 장치(300)와 BT 통신 연결 또는 BLE 통신 연결을 수립하지 않더라도 다른 전자 장치(300)로부터 정보를 수신할 수 있다.For example, the electronic device 100 receives a BLE advertisement of another electronic device 300 through a BLE scan, thereby providing information indicating that the other electronic device 300 has established a short-range wireless communication connection with the external input device 200. can receive For example, the electronic device 100 receives a BLE advertisement of another electronic device 300 through a BLE scan and receives a BLE scan response in response to the BLE scan request, so that the other electronic device 300 receives an external input Information that a short-range wireless communication connection with the device 200 is established may be received. That is, the electronic device 100 may receive information from the other electronic device 300 without establishing a BT communication connection or a BLE communication connection with the other electronic device 300 .

다른 예를 들면, 전자 장치(100)는 BT 통신 연결 또는 BLE 통신 연결을 통하여 다른 전자 장치(300)로부터 패킷을 수신함으로써, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 일 실시 예에 따르면, 상기 패킷을 수신하기 위한 목적으로 전자 장치(100)와 다른 전자 장치(300) 사이 BT 통신 연결 또는 BLE 통신 연결을 생성할 수 있고 또는 다른 목적으로 인해 이미 연결되어 있던 BT 통신 연결 또는 BLE 통신 연결을 사용할 수도 있다.In another example, the electronic device 100 receives a packet from another electronic device 300 through a BT communication connection or a BLE communication connection, so that the other electronic device 300 establishes a short-range wireless communication connection with the external input device 200. It is possible to receive information that has been established. According to an embodiment, a BT communication connection or a BLE communication connection may be created between the electronic device 100 and another electronic device 300 for the purpose of receiving the packet, or a BT communication that has already been connected for another purpose. You can also use a connection or BLE communication connection.

예를 들면, 전자 장치(100)는 Wi-Fi scan을 통하여 다른 전자 장치(300)의 Wi-Fi beacon을 수신함으로써, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 예를 들면, 전자 장치(100)는 다른 전자 장치(300)와의 Wi-Fi service discovery 과정을 통하여, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 즉, 전자 장치(100)는 다른 전자 장치(300)와 Wi-Fi connection을 수립하지 않더라도 다른 전자 장치(300)로부터 정보를 수신할 수 있다.For example, the electronic device 100 receives a Wi-Fi beacon of another electronic device 300 through a Wi-Fi scan, so that the other electronic device 300 establishes a short-range wireless communication connection with the external input device 200. You can receive information that it has been established. For example, the electronic device 100 receives information indicating that another electronic device 300 has established a short-range wireless communication connection with the external input device 200 through a Wi-Fi service discovery process with the other electronic device 300. can do. That is, the electronic device 100 may receive information from the other electronic device 300 without establishing a Wi-Fi connection with the other electronic device 300 .

다른 예를 들면, 전자 장치(100)는 Wi-Fi connection을 통하여 다른 전자 장치(300)로부터 패킷을 수신함으로써, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다. 일 실시 예에 따르면, 상기 패킷을 수신하기 위한 목적으로 전자 장치(100)와 다른 전자 장치(300) 사이 Wi-Fi connection을 생성할 수 있고 또는 다른 목적으로 인해 이미 연결되어 있던 Wi-Fi connection을 사용할 수도 있다.For another example, the electronic device 100 receives a packet from the other electronic device 300 through a Wi-Fi connection, thereby indicating that the other electronic device 300 has established a short-range wireless communication connection with the external input device 200. information can be received. According to an embodiment, a Wi-Fi connection may be created between the electronic device 100 and another electronic device 300 for the purpose of receiving the packet, or a Wi-Fi connection that has already been connected for another purpose may be created. can also be used

예를 들면, 전자 장치(100)는 외부 서버 또는 클라우드를 통한 out-of-band(OOB) 방법을 이용하여, 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했다는 정보를 수신할 수 있다.For example, the electronic device 100 determines that another electronic device 300 has established a short-range wireless communication connection with the external input device 200 by using an out-of-band (OOB) method through an external server or cloud. information can be received.

동작 510에서 뿐만 아니라 본 개시에서 수행되는 전자 장치(100)와 다른 전자 장치(300) 사이 모든 정보의 송수신은 블루투스(BT), 저전력 블루투스(BLE), 와이파이(Wi-Fi) 등의 근거리 통신 방법을 이용하거나 또는 외부 서버나 클라우드를 통한 out-of-band(OOB) 방법을 이용할 수 있다. 예를 들면, 동작 530, 동작 540, 및/또는 동작 540에서 수행되는 전자 장치(100)와 다른 전자 장치(300) 사이 정보의 송수신은 상술한 방법들을 이용할 수 있다.Transmission and reception of all information between the electronic device 100 and another electronic device 300 performed in operation 510 as well as in the present disclosure is a short-range communication method such as Bluetooth (BT), Bluetooth Low Energy (BLE), and Wi-Fi (Wi-Fi). or an out-of-band (OOB) method through an external server or cloud. For example, transmission and reception of information between the electronic device 100 and another electronic device 300 performed in operations 530, 540, and/or 540 may use the above-described methods.

일 실시 예에 따른 프로세서(140)는, 동작 520에서 외부 입력 장치(200)와 연관된 이벤트 발생을 인식할 수 있다. 예를 들면, 상기 외부 입력 장치(200)와 연관된 이벤트는 전자 장치(100)에서 외부 입력 장치(200)가 사용되는 것을 감지하는 이벤트, 및 전자 장치(100)에서 외부 입력 장치(200)와 연관된 어플리케이션 실행을 감지하는 이벤트를 포함할 수 있다.The processor 140 according to an embodiment may recognize the occurrence of an event associated with the external input device 200 in operation 520 . For example, the event associated with the external input device 200 is an event in which the electronic device 100 detects that the external input device 200 is used, and an event associated with the external input device 200 in the electronic device 100. It can include events that detect application execution.

일 실시 예에 따르면, 프로세서(140)는 외부 입력 장치(200)가 전자 장치(100)에서 사용되고 있는 것을 감지할 때, 외부 입력 장치(200)와 연관된 이벤트가 발생한 것으로 인지할 수 있다. 예를 들면, 외부 입력 장치(200)가 전자 장치(100)의 디스플레이(130)에 입력되고 있음을 감지한 경우 또는 외부 입력 장치(200)가 전자 장치(100)와 특정 거리 이내에 존재함을 감지한 경우, 프로세서(140)는 외부 입력 장치(200)가 전자 장치(100)에서 사용되고 있다고 인지할 수 있다. According to an embodiment, when the processor 140 detects that the external input device 200 is being used in the electronic device 100, it may recognize that an event related to the external input device 200 has occurred. For example, when it detects that the external input device 200 is being input to the display 130 of the electronic device 100 or when it detects that the external input device 200 exists within a specific distance from the electronic device 100 In one case, the processor 140 may recognize that the external input device 200 is being used in the electronic device 100 .

일 실시 예에 따르면, 프로세서(140)는 외부 입력 장치(200)와 연관된 어플리케이션이 실행될 때, 외부 입력 장치(200)와 연관된 이벤트가 발생한 것으로 인지할 수 있다. 예를 들면, 외부 입력 장치(200)의 입력이 사용될 수 있는 카메라 어플리케이션, 노트 어플리케이션 등이 실행된 경우, 프로세서(140)는 외부 입력 장치(200)와 연관된 어플리케이션이 실행되었다고 인지할 수 있다. 다른 예를 들면, 전자 장치(100)에서 외부 입력 장치(200)와 관련된 설정에 접근된 경우, 프로세서(140)는 외부 입력 장치(200)와 연관된 이벤트가 발생한 것으로 인지할 수 있다.According to an embodiment, the processor 140 may recognize that an event associated with the external input device 200 has occurred when an application associated with the external input device 200 is executed. For example, when a camera application or a note application that can use the input of the external input device 200 is executed, the processor 140 may recognize that an application related to the external input device 200 is executed. For another example, when settings related to the external input device 200 are accessed from the electronic device 100, the processor 140 may recognize that an event related to the external input device 200 has occurred.

일 실시 예에 따르면, 프로세서(140)는 상술한 예시 중 2개 이상의 예시를 복합적으로 이용하여, 외부 입력 장치(200)와 연관된 이벤트가 발생한 것을 인지할 수 있다. 예를 들면, 외부 입력 장치(200)가 전자 장치(100)에서 사용되고 있는 것이 감지되면서 전자 장치(100)에서 외부 입력 장치(200)와 연관된 어플리케이션이 실행된 경우, 프로세서(140)는 전자 장치(100)에서 외부 입력 장치(200)와 연관된 이벤트가 발생한 것으로 인지할 수 있다.According to one embodiment, the processor 140 may recognize that an event related to the external input device 200 has occurred by using two or more of the above examples in combination. For example, when it is detected that the external input device 200 is being used in the electronic device 100 and an application related to the external input device 200 is executed in the electronic device 100, the processor 140 operates the electronic device ( 100) may recognize that an event related to the external input device 200 has occurred.

일 실시 예에 따르면, 동작 530에서 프로세서(140)는 상기 이벤트 발생에 응답하여, 상기 동작 510에서 수신된 정보에 기반하여 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별할 수 있다. 일 실시 예에 따른 프로세서(140)는, 사용이 감지된 외부 입력 장치(200)가 동작 510에서 정보를 전송한 다른 전자 장치(300)와 근거리 통신 연결된 외부 입력 장치(200)와 동일한지 식별할 수 있다.According to an embodiment, in operation 530, the processor 140 identifies another electronic device 300 connected to the external input device 200 through short-range communication based on the information received in operation 510 in response to the occurrence of the event. can The processor 140 according to an embodiment identifies whether the external input device 200 whose use is detected is the same as the external input device 200 connected through short-range communication with another electronic device 300 that has transmitted information in operation 510. can

일 실시 예에 따르면, 상기 동작 510에서 프로세서(140)가 다른 전자 장치(300)와 외부 입력 장치(200) 사이 근거리 통신 연결이 수립된 정보를 복수개의 다른 전자 장치(300)로부터 수신한 경우, 프로세서(140)는 정보에 포함된 복수개의 다른 전자 장치(300) 중에서 사용이 감지된 외부 입력 장치(200)와 근거리 통신이 연결된 장치를 식별할 수 있다. 다른 예를 들면, 상기 동작 510에서 프로세서(140)가 다른 전자 장치(300)와 외부 입력 장치(200) 사이 근거리 통신 연결이 수립된 정보를 하나의 다른 전자 장치(300)로부터 수신한 경우, 상기 동작 530은 생략될 수 있다. 동작 530의 사용이 감지된 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별하는 방법은 이하 도 7에서 자세히 설명한다.According to an embodiment, when the processor 140 receives, from a plurality of other electronic devices 300, information on which a short-range communication connection between the other electronic device 300 and the external input device 200 is established in operation 510, The processor 140 may identify a device connected through short-range communication with the external input device 200 whose use is detected among a plurality of other electronic devices 300 included in the information. As another example, when the processor 140 receives information on the establishment of a short-range communication connection between the other electronic device 300 and the external input device 200 from one other electronic device 300 in operation 510, the Operation 530 may be omitted. A method of identifying another electronic device 300 that is connected to the external input device 200 in operation 530 through short-range communication will be described in detail with reference to FIG. 7 .

일 실시 예에 따르면, 동작 540에서 프로세서(140)는 통신 회로(120)를 통하여, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 연결(예: 통신 릴레이)을 상기 식별된 다른 전자 장치(300)와 설정할 수 있다. 본 개시에서 통신 릴레이는, 다른 전자 장치(300)가 외부 입력 장치(200)로부터 수신한 정보를 전자 장치(100)로 전달하는 일련의 과정을 의미할 수 있다. 일 실시 예에 따르면, 프로세서(140)는 상기 동작 530에서 식별된 다른 전자 장치(300)에게 통신 릴레이 설정을 요청할 수 있다. 다른 전자 장치(300)는 상기 요청에 응답하여, 다른 전자 장치(300)와 근거리 무선 통신 연결된 외부 입력 장치(200)에서 발생한 입력을 전자 장치(100)로 전달하기 위한 통신 릴레이를 설정할 수 있다. 일 실시 예에 따르면, 통신 릴레이를 요청하는 전자 장치(100)가 인증되지 않은 장치이거나 공격자 장치로 확인된 경우, 다른 전자 장치(300)는 통신 릴레이를 설정하지 않을 수도 있다. 다른 전자 장치(300)는 통신 릴레이 설정의 결과를 전자 장치(100)의 요청에 대한 응답으로 전자 장치(100)에게 전송할 수 있다. 일 실시 예에 따르면, 다른 전자 장치(300)에서 전자 장치(100)와 통신 릴레이를 설정한 경우, 프로세서(140)는 통신 릴레이가 설정 완료되었다는 응답을 다른 전자 장치(300)로부터 수신할 수 있다.According to an embodiment, in operation 540, the processor 140 connects communication (eg, a communication relay) to receive an input to the electronic device 100 generated from the external input device 200 through the communication circuit 120. may be set with the other electronic device 300 identified above. In the present disclosure, a communication relay may refer to a series of processes in which another electronic device 300 transfers information received from the external input device 200 to the electronic device 100 . According to an embodiment, the processor 140 may request the other electronic device 300 identified in operation 530 to set up a communication relay. In response to the request, the other electronic device 300 may set a communication relay to transfer an input generated from the external input device 200 connected to the other electronic device 300 through short-range wireless communication to the electronic device 100. According to an embodiment, when the electronic device 100 requesting a communication relay is an unauthenticated device or identified as an attacker device, another electronic device 300 may not set a communication relay. The other electronic device 300 may transmit the communication relay setting result to the electronic device 100 as a response to the request of the electronic device 100 . According to an embodiment, when another electronic device 300 sets a communication relay with the electronic device 100, the processor 140 may receive a response from the other electronic device 300 indicating that the communication relay has been set. .

일 실시 예에 따르면, 동작 550에서 프로세서(140)는, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력에 관한 정보를 상기 통신 릴레이 설정된 다른 전자 장치(300)로부터 수신할 수 있다. 외부 입력 장치(200)에서 전자 장치(100)에 대한 입력이 발생한 경우, 외부 입력 장치(200)와 근거리 무선 통신(예: 블루투스, 저전력 블루투스) 연결된 다른 전자 장치(300)로 상기 입력에 관한 정보가 전달될 수 있고, 상기 입력에 관한 정보를 수신한 다른 전자 장치(300)는 통신 릴레이 설정된 전자 장치(100)에게 상기 입력에 관한 정보를 전달할 수 있다. 상술한 과정을 통하여 프로세서(140)는, 전자 장치(100)와 통신 연결되지 않은 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 다른 전자 장치(300)로부터 수신할 수 있고, 수신된 입력에 대응하는 기능을 수행할 수 있다.According to an embodiment, in operation 550, the processor 140 may receive information about an input to the electronic device 100 generated by the external input device 200 from the other electronic device 300 set as the communication relay. . When input to the electronic device 100 occurs from the external input device 200, information about the input to another electronic device 300 connected to the external input device 200 through short-range wireless communication (eg, Bluetooth, low energy Bluetooth) may be delivered, and the other electronic device 300 receiving the information about the input may deliver the information about the input to the electronic device 100 set as a communication relay. Through the above-described process, the processor 140 may receive an input to the electronic device 100 generated by the external input device 200 that is not connected to the electronic device 100 through communication with another electronic device 300, A function corresponding to the received input may be performed.

일 실시 예에 따르면, 동작 560에서 프로세서(140)는 통신 릴레이의 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료할 수 있다. 일 실시 예에 따르면, 통신 릴레이의 종료를 위한 이벤트는 전자 장치(100)에서 발생할 수 있고, 외부 입력 장치(200)에서 발생할 수 있고, 또는 다른 전자 장치(300)에서 발생할 수 있다. 통신 릴레이를 종료하는 방법은 이하 도 8 내지 도 10에서 자세히 설명한다.According to an embodiment, in operation 560, when an event for terminating the communication relay occurs, the processor 140 may terminate the communication relay established between the other electronic device 300 and the electronic device 100. According to an embodiment, an event for terminating a communication relay may occur in the electronic device 100, in the external input device 200, or in another electronic device 300. A method of terminating the communication relay will be described in detail with reference to FIGS. 8 to 10 below.

상기 동작 540 내지 560에서 설명한 전자 장치(100)와 다른 전자 장치(300) 사이 통신 릴레이를 설정하는 과정, 통신 릴레이를 수행하는 과정, 및/또는 통신 릴레이를 종료하는 과정은 동작 510에서와 마찬가지로, 블루투스(BT), 저전력 블루투스(BLE), 와이파이(Wi-Fi) 등의 근거리 통신 방법을 이용하거나 또는 외부 서버나 클라우드를 통한 out-of-band(OOB) 방법을 이용할 수 있다. 중복되는 설명은 생략한다.The process of setting the communication relay between the electronic device 100 and the other electronic device 300 described in operations 540 to 560, the process of performing the communication relay, and/or the process of terminating the communication relay, as in operation 510, A short-distance communication method such as Bluetooth (BT), Bluetooth Low Energy (BLE), or Wi-Fi may be used, or an out-of-band (OOB) method through an external server or cloud may be used. Redundant descriptions are omitted.

일 실시 예에 따르면, 본 개시에서 전자 장치(100)와 다른 전자 장치(300) 사이의 정보 송수신은 블루투스(BT), 저전력 블루투스(BLE), 와이파이(Wi-Fi) 등의 근거리 통신 방법을 이용하거나 또는 외부 서버나 클라우드를 통한 out-of-band(OOB) 방법을 이용하여 수행될 수 있고, 본 개시에서 외부 입력 장치(200)와 다른 전자 장치(300) 사이의 정보 송수신은, 외부 입력 장치(200)와 다른 전자 장치(300) 사이 수립된 근거리 무선 통신(예: 블루투스 통신, 저전력 블루투스 통신) 연결을 통하여 수행될 수 있다.According to an embodiment, information transmission and reception between the electronic device 100 and another electronic device 300 in the present disclosure uses a short-range communication method such as Bluetooth (BT), Bluetooth Low Energy (BLE), or Wi-Fi. Or, it may be performed using an out-of-band (OOB) method through an external server or cloud, and in the present disclosure, information transmission and reception between the external input device 200 and another electronic device 300 is an external input device. This may be performed through a short-range wireless communication (eg, Bluetooth communication, low energy Bluetooth communication) connection established between the electronic device 200 and the other electronic device 300 .

도 5에서 도시하지는 않았지만, 도 5의 각 동작 중 적어도 하나의 동작은 장치에서 로그인 되어 있는 계정에 기반하여 인증하는 동작을 포함할 수 있다. 일 실시 예에 따르면, 도 5의 모든 동작에서 계정 기반의 사용자 인증 과정이 수행될 수 있고, 또는 도 5의 동작 중 전자 장치(100)와 다른 전자 장치(300) 사이에 수행되는 최초의 동작 및/또는 외부 입력 장치(200)와 다른 전자 장치(300)에서 수행되는 최초의 동작에서만 계정 기반의 사용자 인증 과정이 수행될 수도 있다. 예를 들면, 동작 510에서 전자 장치(100)가 다른 전자 장치(300)로부터 다른 전자 장치(300)와 외부 입력 장치(200) 사이 수립된 근거리 통신 연결에 관한 정보를 수신하기 이전에, 전자 장치(100)와 다른 전자 장치(300)는 각 장치에서 로그인 된 계정에 기반하여 서로 인증하는 동작을 수행할 수 있다.Although not shown in FIG. 5 , at least one operation among each operation in FIG. 5 may include an operation of authenticating based on an account logged into the device. According to an embodiment, an account-based user authentication process may be performed in all operations of FIG. 5, or an initial operation performed between the electronic device 100 and another electronic device 300 during the operation of FIG. / Alternatively, an account-based user authentication process may be performed only in the first operation performed in the external input device 200 and the other electronic device 300 . For example, before the electronic device 100 receives information about a short-range communication connection established between the other electronic device 300 and the external input device 200 from the other electronic device 300 in operation 510, the electronic device The electronic device 300 other than 100 may perform an operation of authenticating each other based on the logged-in account in each device.

도 6은 일 실시 예에 따른 전자 장치(100)가 다른 전자 장치(300)와 근거리 통신 연결된 외부 입력 장치(200)에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.6 is a flowchart illustrating a method in which an electronic device 100 receives an input generated from an external input device 200 connected to another electronic device 300 through short-range communication according to an embodiment.

도 6을 참조하면, 동작 601에서 외부 입력 장치(200)와 다른 전자 장치(300)는 근거리 무선 통신이 설정될 수 있다. 예를 들면, 외부 입력 장치(200)와 다른 전자 장치(300)는 블루투스 페어링 또는 저전력 블루투스 페어링할 수 있다. 일 실시 예에 따르면, 블루투스 페어링 또는 저전력 블루투스 페어링 과정에서 외부 입력 장치(200)와 다른 전자 장치(300)는 인증을 수행하고 서로의 정보를 등록할 수 있다. 동작 601은 외부 입력 장치(200)와 다른 전자 장치(300) 사이 처음으로 블루투스 통신을 연결할 때 수행될 수 있고, 이후에는 생략될 수 있다.Referring to FIG. 6 , in operation 601 , short-range wireless communication may be established between the external input device 200 and another electronic device 300 . For example, the external input device 200 and another electronic device 300 may perform Bluetooth pairing or Bluetooth Low Energy pairing. According to an embodiment, the external input device 200 and the other electronic device 300 may perform authentication and register each other's information in a Bluetooth pairing or Bluetooth Low Energy pairing process. Operation 601 may be performed when Bluetooth communication is initially connected between the external input device 200 and another electronic device 300, and may be omitted thereafter.

일 실시 예에 따르면, 동작 603에서 외부 입력 장치(200)와 다른 전자 장치(300)는 근거리 무선 통신 연결될 수 있다. 예를 들면, 외부 입력 장치(200)와 다른 전자 장치(300)는 블루투스 통신 연결 또는 저전력 블루투스 통신 연결될 수 있다. 일 실시 예에 따르면, 다른 전자 장치(300)에 수용되어 있던 외부 입력 장치(200)가 동작 602에서 다른 전자 장치(300)로부터 분리되는 경우, 외부 입력 장치(200)는 페어링 이력이 있는 다른 전자 장치(300)와 블루투스 무선 통신이 연결될 수 있다.According to an embodiment, in operation 603, the external input device 200 and another electronic device 300 may be connected through short-range wireless communication. For example, the external input device 200 and another electronic device 300 may be connected through Bluetooth communication or Bluetooth low energy communication. According to an embodiment, when the external input device 200 accommodated in another electronic device 300 is separated from the other electronic device 300 in operation 602, the external input device 200 receives another electronic device having a pairing history. Device 300 and Bluetooth wireless communication may be connected.

외부 입력 장치(200)와 다른 전자 장치(300) 사이 근거리 무선 통신 연결이 수립된 경우, 동작 604에서 다른 전자 장치(300)는 외부 입력 장치(200)와 수립된 근거리 무선 통신 연결에 대한 정보를 전자 장치(100)로 전송할 수 있다. 예를 들면, 상기 통신 연결에 대한 정보는 다른 전자 장치(300)를 나타낼 수 있는 ID, address 등의 정보, 외부 입력 장치(200)를 나타낼 수 있는 ID, address 등의 정보, 및/또는 통신이 연결된 시간 정보가 포함될 수 있다. 일 실시 예에 따르면, 다른 전자 장치(300)가 외부 입력 장치(200)와 통신 연결되었음을 알리는 알림을 수신한 전자 장치(100)는, 동작 605에서 다른 전자 장치(300)가 외부 입력 장치(200)와 근거리 무선 통신 연결을 수립했음을 인지할 수 있다.When a short-range wireless communication connection is established between the external input device 200 and another electronic device 300, in operation 604, the other electronic device 300 transmits information about the short-range wireless communication connection established with the external input device 200. It can be transmitted to the electronic device 100. For example, the information on the communication connection is information such as ID and address that can represent another electronic device 300, information such as ID and address that can represent the external input device 200, and/or communication Connected time information may be included. According to an embodiment, upon receiving a notification indicating that another electronic device 300 communicates with the external input device 200, the electronic device 100, in operation 605, sends the other electronic device 300 to the external input device 200. ) and establishes a short-range wireless communication connection.

일 실시 예에 따르면, 동작 606에서 외부 입력 장치(200)와 연관된 이벤트가 발생할 수 있다. 예를 들면, 외부 입력 장치(200)가 전자 장치(100)에서 사용되고 있음을 감지하거나 및/또는 외부 입력 장치(200)와 연관된 어플리케이션이 실행되는 경우, 전자 장치(100)는 외부 입력 장치(200)와 연관된 이벤트가 발생했다고 판단할 수 있다. 전자 장치(100)에서 외부 입력 장치(200)와 연관된 이벤트가 발생한 경우, 동작 607에서 전자 장치(100)는 동작 604에서 수신된 정보에 기반하여, 상기 발생된 이벤트와 관련된 외부 입력 장치(200)와 근거리 무선 통신 연결된 다른 전자 장치(300)를 식별할 수 있다. 일 실시 예에 따르면, 전자 장치(100)는 상기 발생된 이벤트와 관련된 외부 입력 장치(200)(즉, 사용 감지된 외부 입력 장치(200))가 상기 동작 604에서 수신된 정보에서 다른 전자 장치(300)와 근거리 무선 통신 연결된 장치와 동일한지 식별할 수 있다. 일 실시 예에 따르면, 식별 과정이 필요 없는 경우 상기 동작 607은 생략될 수 있다.According to one embodiment, an event related to the external input device 200 may occur in operation 606 . For example, when it detects that the external input device 200 is being used in the electronic device 100 and/or an application related to the external input device 200 is executed, the electronic device 100 detects that the external input device 200 ) It may be determined that an event associated with has occurred. When an event related to the external input device 200 occurs in the electronic device 100, in operation 607, the electronic device 100 detects the external input device 200 related to the event based on the information received in operation 604. It is possible to identify another electronic device 300 connected to the short-range wireless communication. According to an embodiment, the electronic device 100 determines that the external input device 200 related to the generated event (ie, the external input device 200 whose use is detected) is different from the information received in operation 604 to another electronic device ( 300) and a short-range wireless communication connected device. According to an embodiment, if an identification process is not required, operation 607 may be omitted.

일 실시 예에 따르면, 전자 장치(100)는 동작 608에서 다른 전자 장치(300)에게 통신 릴레이 설정을 요청할 수 있다. 다른 전자 장치(300)와 전자 장치(100) 사이에 통신 릴레이가 설정된 경우, 다른 전자 장치(300)와 근거리 무선 통신 연결된 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력은 다른 전자 장치(300)를 통하여 전자 장치(100)에게 전달될 수 있다. 일 실시 예에 따른 전자 장치(100)는, 다른 전자 장치(300)에게 통신 릴레이 설정을 요청하기 위하여, 전자 장치(100)를 나타낼 수 있는 ID, address 등의 정보, 및/또는 원하는 통신 릴레이 지속 시간 등의 정보를 다른 전자 장치(300)에게 전송할 수 있다.According to an embodiment, in operation 608, the electronic device 100 may request another electronic device 300 to set a communication relay. When a communication relay is set between the other electronic device 300 and the electronic device 100, an input to the electronic device 100 generated by the external input device 200 connected to the other electronic device 300 through short-range wireless communication is transmitted to the other electronic device 300. It may be delivered to the electronic device 100 through the device 300 . The electronic device 100 according to an embodiment, in order to request another electronic device 300 to set up a communication relay, information such as an ID and address that may indicate the electronic device 100, and/or a desired communication relay continuation Information such as time may be transmitted to another electronic device 300 .

전자 장치(100)로부터 통신 릴레이 설정 요청을 수신한 다른 전자 장치(300)는, 상기 동작 608에서 수신된 정보를 이용하여 동작 609에서 전자 장치(100)와 통신 릴레이를 설정할 수 있다. 일 실시 예에 따르면, 통신 릴레이 설정을 요청하는 전자 장치(100)가 인증되지 않았거나 공격자 장치로 확인된 경우, 다른 전자 장치(300)는 전자 장치(100)와 통신 릴레이를 설정하지 않을 수도 있다. 예를 들면, 다른 전자 장치(300)는 통신 릴레이 요청에 포함된 전자 장치(100)가 원하는 통신 릴레이 지속 시간이 적합하다고 판단한 경우, 전자 장치(100)와 통신 릴레이를 설정할 수 있다. 다른 예를 들면, 다른 전자 장치(300)는 통신 릴레이 요청에 포함된 전자 장치(100)가 원하는 통신 릴레이 지속 시간이 적합하지 않다고 판단한 경우(예: 다른 전자 장치(300)의 배터리 부족), 전자 장치(100)와 통신 릴레이를 설정하지 않을 수도 있다.Upon receiving the communication relay setting request from the electronic device 100, the other electronic device 300 may set the electronic device 100 and the communication relay in operation 609 using the information received in operation 608. According to an embodiment, when the electronic device 100 requesting to establish a communication relay is not authenticated or is identified as an attacker device, another electronic device 300 may not establish a communication relay with the electronic device 100. . For example, when the other electronic device 300 determines that the duration of the communication relay desired by the electronic device 100 included in the communication relay request is suitable, the electronic device 100 and the other electronic device 300 may establish a communication relay. For another example, when the other electronic device 300 determines that the duration of the communication relay desired by the electronic device 100 included in the communication relay request is not suitable (eg, the other electronic device 300 runs out of battery), A communication relay with the device 100 may not be set.

일 실시 예에 따르면, 다른 전자 장치(300)는 동작 610에서 통신 릴레이 요청에 대한 응답을 전자 장치(100)에게 전송할 수 있다. 통신 릴레이 요청에 대한 응답에는 다른 전자 장치(300)가 통신 릴레이를 설정했는지 여부에 대한 정보를 포함할 수 있다. 예를 들면, 동작 609에서 다른 전자 장치(300)가 전자 장치(100)와 통신 릴레이를 설정한 경우, 동작 610에서 다른 전자 장치(300)는 전자 장치(100)와 통신 릴레이 설정이 성공적으로 완료되었음을 전자 장치(100)에게 알릴 수 있다. 일 실시 예에 따르면, 통신 릴레이 요청에 대한 응답에는 확정된 통신 릴레이 지속 시간에 대한 정보를 포함할 수 있다. 일 실시 예에 따르면, 동작 610은 생략될 수 있다.According to an embodiment, another electronic device 300 may transmit a response to the communication relay request to the electronic device 100 in operation 610 . The response to the communication relay request may include information on whether the other electronic device 300 has set up a communication relay. For example, when the other electronic device 300 sets a communication relay with the electronic device 100 in operation 609, the other electronic device 300 successfully completes the communication relay setup with the electronic device 100 in operation 610. It can notify the electronic device 100 that it has been done. According to an embodiment, the response to the communication relay request may include information about the determined communication relay duration time. According to one embodiment, operation 610 may be omitted.

일 실시 예에 따르면, 동작 611에서 외부 입력 장치(200)에서 전자 장치(100)에 대한 입력이 발생한 경우, 동작 612에서 상기 입력은 외부 입력 장치(200)와 근거리 무선 통신 연결된 다른 전자 장치(300)로 전달될 수 있다. 예를 들면, 외부 입력 장치(200)에서 발생된 전자 장치(100)에 대한 입력은, 외부 입력 장치(200)와 다른 전자 장치(300) 사이 연결된 블루투스 무선 통신을 통하여 다른 전자 장치(300)에게 전송될 수 있다. 일 실시 예에 따르면, 다른 전자 장치(300)는 전자 장치(100)에 대한 입력을 외부 입력 장치(200)로부터 수신한 경우, 동작 613에서 통신 릴레이를 수행할 수 있다. 다른 전자 장치(300)는 외부 입력 장치(200)로부터 수신된 전자 장치(100)에 대한 입력을 동작 614에서 전자 장치(100)에게 전달할 수 있다. 일 실시 예에 따르면, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력은 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 통하여 전자 장치(100)로 전달될 수 있다. 이 경우, 동작 615에서, 전자 장치(100)는 외부 입력 장치(200)에서 전자 장치(100)에 대한 입력이 발생했음을 인지할 수 있고, 통신 릴레이를 통하여 수신한 입력에 대응하는 기능을 수행할 수 있다.According to an embodiment, when an input to the electronic device 100 is generated from the external input device 200 in operation 611, in operation 612, the input is received from another electronic device 300 connected to the external input device 200 through short-range wireless communication. ) can be transmitted. For example, an input to the electronic device 100 generated by the external input device 200 is sent to another electronic device 300 through Bluetooth wireless communication connected between the external input device 200 and the other electronic device 300. can be transmitted According to an embodiment, when another electronic device 300 receives an input for the electronic device 100 from the external input device 200, it may perform a communication relay in operation 613. The other electronic device 300 may transfer the input to the electronic device 100 received from the external input device 200 to the electronic device 100 in operation 614 . According to an embodiment, an input to the electronic device 100 generated by the external input device 200 may be transmitted to the electronic device 100 through a communication relay set between another electronic device 300 and the electronic device 100. there is. In this case, in operation 615, the electronic device 100 may recognize that an input to the electronic device 100 has occurred from the external input device 200 and perform a function corresponding to the input received through the communication relay. can

도 7은 일 실시 예에 따른 전자 장치(100)의 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별하는 흐름도이다.7 is a flowchart for identifying another electronic device 300 connected to the external input device 200 of the electronic device 100 through short-range communication according to an embodiment.

일 실시 예에 따르면, 전자 장치(100)가 다른 전자 장치(300)와 외부 입력 장치(200) 사이 근거리 통신 연결이 수립되었다는 정보를 복수개의 다른 전자 장치(300a, 300b)로부터 수신한 경우, 전자 장치(100)는 정보에 포함된 복수개의 다른 전자 장치(300a, 300b) 중에서 사용이 감지된 외부 입력 장치(200)와 근거리 통신이 연결된 장치를 식별할 수 있다.According to an embodiment, when the electronic device 100 receives information that a short-range communication connection between the other electronic device 300 and the external input device 200 is established from the plurality of other electronic devices 300a and 300b, the electronic The device 100 may identify a device connected through short-range communication with the external input device 200 whose use is detected among a plurality of other electronic devices 300a and 300b included in the information.

도 7에서 제1 외부 입력 장치(200a)는 제1 다른 전자 장치(300a)와 근거리 무선 통신 연결된 상태일 수 있고, 제2 외부 입력 장치(200b)는 제2 다른 전자 장치(300b)와 근거리 무선 통신 연결된 상태일 수 있다. 도 7에서 전자 장치(100)는 제1 다른 전자 장치(300a)로부터 제1 다른 전자 장치(300a)가 제1 외부 입력 장치(200a)와 근거리 통신 연결을 수립했다는 정보를 수신하고, 제2 다른 전자 장치(300b)로부터 제2 다른 전자 장치(300b)가 제2 외부 입력 장치(200b)와 근거리 통신 연결을 수립했다는 정보를 수신한 상태일 수 있다.In FIG. 7 , the first external input device 200a may be connected to the first other electronic device 300a through short-range wireless communication, and the second external input device 200b may be connected to the second other electronic device 300b through short-range wireless communication. It may be in a communication connected state. In FIG. 7 , the electronic device 100 receives information from the first other electronic device 300a that the first other electronic device 300a has established a short-range communication connection with the first external input device 200a, and Information indicating that the second other electronic device 300b has established a short-range communication connection with the second external input device 200b may be received from the electronic device 300b.

일 실시 예에 따르면, 전자 장치(100)에서 어떤 외부 입력 장치(200)의 사용이 감지된 경우, 동작 701에서 전자 장치(100)는 사용이 감지된 외부 입력 장치(200)에게 특정 입력을 요구하는 알림을 출력할 수 있다. 예를 들면, 전자 장치(100)는 외부 입력 장치(200)의 버튼을 2번 누르도록 요청하는 UI, 외부 입력 장치(200)를 오른쪽 방향으로 회전시키도록 요청하는 UI 등을 디스플레이(130)에서 표시할 수 있다.According to an embodiment, when use of a certain external input device 200 is detected by the electronic device 100, in operation 701, the electronic device 100 requests a specific input from the external input device 200 whose use is detected. A notification can be output. For example, the electronic device 100 displays a UI requesting to press the button of the external input device 200 twice, a UI requesting rotation of the external input device 200 in the right direction, and the like on the display 130. can be displayed

일 실시 예에 따르면, 동작 702a 및 702b에서 전자 장치(100)는 근거리 무선 통신이 연결되었음을 알려온 다른 전자 장치(300a, 300b)들에게 특정 입력에 대한 확인을 요청할 수 있다. 예를 들면, 동작 702a에서 전자 장치(100)는 제1 외부 입력 장치(200a)와 근거리 무선 통신이 연결되었음을 알려온 제1 다른 전자 장치(300a)에게 제1 외부 입력 장치(200a)에서 특정 입력이 발생되는지 확인을 요청할 수 있고, 동작 702b에서 전자 장치(100)는 제2 외부 입력 장치(200b)와 근거리 무선 통신이 연결되었음을 알려온 제2 다른 전자 장치(300b)에게 제2 외부 입력 장치(200b)에서 특정 입력이 발생되는지 확인을 요청할 수 있다.According to an embodiment, in operations 702a and 702b, the electronic device 100 may request confirmation of a specific input from the other electronic devices 300a and 300b notifying that short-range wireless communication is connected. For example, in operation 702a, the electronic device 100 sends a specific input from the first external input device 200a to the first other electronic device 300a, which notifies that the short-range wireless communication is connected with the first external input device 200a. In operation 702b, the electronic device 100 sends the second external input device 200b to the second other electronic device 300b, which notifies that the short-range wireless communication is connected with the second external input device 200b. You can request confirmation that a specific input is generated in .

다른 실시 예에 따르면, 동작 701 및 동작 702의 순서는 서로 바뀔 수 있고 또는 동작 701 및 동작 702는 동시에 수행될 수도 있다.According to another embodiment, the order of operations 701 and 702 may be reversed or operations 701 and 702 may be performed simultaneously.

전자 장치(100)에서 사용이 감지된 외부 입력 장치(200)가 제1 외부 입력 장치(200a)인 경우, 사용자는 제1 외부 입력 장치(200a)에서 상기 701에서 요구된 특정 입력을 발생시킬 수 있다. 동작 703에서 제1 외부 입력 장치(200a)로부터 특정 입력이 발생된 경우, 동작 704에서 제1 외부 입력 장치(200a)는 제1 다른 전자 장치(300a)와 연결된 근거리 무선 통신을 이용하여 제1 외부 입력 장치(200a)에서 발생된 특정 입력을 제1 다른 전자 장치(300a)로 전송할 수 있다. 동작 705에서 제1 다른 전자 장치(300a)는 특정 입력이 제1 외부 입력 장치(200a)에서 발생되었음을 확인할 수 있고, 동작 706에서 제1 다른 전자 장치(300a)는 특정 입력 확인 요청에 대한 응답을 전자 장치(100)에게 전송할 수 있다. 제1 다른 전자 장치(300a)로부터 응답을 수신한 전자 장치(100)는 제1 다른 전자 장치(300a)와 근거리 무선 통신 연결된 제1 외부 입력 장치(200a)에서 특정 입력이 발생되었음을 인지할 수 있다. 동작 707에서, 전자 장치(100)는 사용이 감지된 외부 입력 장치(200)가 제1 외부 입력 장치(200a)인 것을 식별할 수 있고, 근거리 무선 통신이 연결되었음을 알려온 다른 전자 장치(300a, 300b)들 중에서 사용이 감지된 외부 입력 장치(200)와 근거리 무선 통신 연결된 장치가 제1 다른 전자 장치(300a)인 것을 식별할 수 있다.When the external input device 200 whose use is detected by the electronic device 100 is the first external input device 200a, the user may generate a specific input requested in step 701 from the first external input device 200a. there is. In operation 703, when a specific input is generated from the first external input device 200a, in operation 704, the first external input device 200a uses the short-range wireless communication connected to the first other electronic device 300a to receive the first external input device 200a. A specific input generated by the input device 200a may be transmitted to the first other electronic device 300a. In operation 705, the first other electronic device 300a can confirm that a specific input has been generated by the first external input device 200a, and in operation 706, the first other electronic device 300a sends a response to the specific input confirmation request. It can be transmitted to the electronic device 100. Upon receiving a response from the first other electronic device 300a, the electronic device 100 may recognize that a specific input has occurred in the first external input device 200a connected to the first other electronic device 300a through short-range wireless communication. . In operation 707, the electronic device 100 may identify that the external input device 200 whose use has been detected is the first external input device 200a, and notify other electronic devices 300a and 300b that short-range wireless communication is connected. ), it may be identified that the device connected to the external input device 200 whose use is detected is the first other electronic device 300a.

이하 도 8 내지 도 10을 이용하여 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료하는 동작을 설명한다. 일 실시 예에 따르면, 통신 릴레이의 종료를 위한 이벤트는 전자 장치(100), 외부 입력 장치(200), 및/또는 다른 전자 장치(300)에서 발생될 수 있다.Hereinafter, an operation of terminating a communication relay set between another electronic device 300 and the electronic device 100 will be described using FIGS. 8 to 10 . According to an embodiment, an event for terminating the communication relay may occur in the electronic device 100, the external input device 200, and/or another electronic device 300.

도 8은 일 실시 예에 따른 전자 장치(100)에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.8 is a flowchart illustrating a method of terminating a communication relay set between another electronic device 300 and the electronic device 100 when an event for terminating a communication relay occurs in the electronic device 100 according to an embodiment.

일 실시 예에 따르면, 동작 801에서 전자 장치(100)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것을 감지할 수 있다. 일 실시 예에 따르면, 통신 릴레이의 종료를 위한 이벤트는 전자 장치(100)에서 외부 입력 장치(200)의 사용 중단을 감지한 이벤트를 포함할 수 있다. 예를 들면, 전자 장치(100)의 디스플레이(130)에 표시된 통신 릴레이의 종료를 나타내는 특정 UI에 대한 사용자 입력이 발생한 경우, 전자 장치(100)는 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다. 예를 들면, 외부 입력 장치(200)와 관련된 어플리케이션이 전자 장치(100)에서 종료된 후 일정 시간이 경과한 경우, 전자 장치(100)는 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다. 예를 들면, 전자 장치(100)의 디스플레이(130)가 꺼진 후 일정 시간이 경과한 경우, 전자 장치(100)는 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다.According to an embodiment, in operation 801, the electronic device 100 may detect that an event for termination of a communication relay established between the electronic device 100 and another electronic device 300 has occurred. According to an embodiment, the event for termination of the communication relay may include an event in which the electronic device 100 detects that use of the external input device 200 is stopped. For example, when a user input occurs on a specific UI indicating the end of the communication relay displayed on the display 130 of the electronic device 100, the electronic device 100 determines that an event for ending the communication relay has occurred. can For example, when a predetermined time elapses after an application related to the external input device 200 is terminated in the electronic device 100, the electronic device 100 may determine that an event for terminating a communication relay has occurred. . For example, when a predetermined time elapses after the display 130 of the electronic device 100 is turned off, the electronic device 100 may determine that an event for terminating the communication relay has occurred.

동작 801에서 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단한 경우, 전자 장치(100)는 동작 802에서 다른 전자 장치(300)에게 통신 릴레이의 종료를 요청할 수 있다. 일 실시 예에 따르면, 동작 802에서는 전자 장치(100)는 전자 장치(100)와 다른 전자 장치(300) 사이에 설정된 통신 릴레이를 종료할 것을 다른 전자 장치(300)에게 요청할 수 있다. 상기 요청을 수신한 다른 전자 장치(300)는 동작 803에서, 전자 장치(100)와 다른 전자 장치(300) 사이에 설정된 통신 릴레이를 종료할 수 있고, 동작 804에서 전자 장치(100)에게 통신 릴레이 종료 요청에 대한 응답을 전송할 수 있다. 일 실시 예에 따르면, 동작 804에서 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이가 종료된 것을 전자 장치(100)에게 알릴 수 있고, 동작 805에서 전자 장치(100)는 통신 릴레이가 종료된 것을 확인할 수 있다. 일 실시 예에 따르면, 동작 804는 생략될 수 있다.If it is determined in operation 801 that an event for terminating the communication relay has occurred, the electronic device 100 may request another electronic device 300 to terminate the communication relay in operation 802 . According to an embodiment, in operation 802, the electronic device 100 may request another electronic device 300 to terminate a communication relay established between the electronic device 100 and the other electronic device 300. In operation 803, the other electronic device 300 receiving the request may terminate the communication relay established between the electronic device 100 and the other electronic device 300, and in operation 804, the electronic device 100 may terminate the communication relay. A response to the termination request may be sent. According to an embodiment, in operation 804, the other electronic device 300 may inform the electronic device 100 that a communication relay established between the electronic device 100 and the other electronic device 300 is terminated, and in operation 805, the electronic device 300 may The device 100 may confirm that the communication relay is terminated. According to one embodiment, operation 804 may be omitted.

도 9는 일 실시 예에 따른 외부 입력 장치(200)에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.9 is a flowchart illustrating a method of terminating a communication relay set between another electronic device 300 and an electronic device 100 when an event for terminating a communication relay occurs in the external input device 200 according to an embodiment. .

일 실시 예에 따르면, 동작 901에서 외부 입력 장치(200)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것을 감지할 수 있다. 일 실시 예에 따르면, 통신 릴레이의 종료를 위한 이벤트는 전자 장치(100)에 대한 외부 입력 장치(200)의 사용 중단을 감지한 이벤트를 포함할 수 있다. 예를 들면, 외부 입력 장치(200)에서 통신 릴레이의 종료를 나타내는 기 설정된 특정 입력이 발생한 경우, 또는 외부 입력 장치(200)의 전원이 꺼진 경우, 동작 902에서 외부 입력 장치(200)는 상기 발생된 입력(또는 이벤트)을 다른 전자 장치(300)에게 전달할 수 있다. 일 실시 예에 따르면, 외부 입력 장치(200)와 다른 전자 장치(300) 사이 연결된 근거리 무선 통신을 통하여 외부 입력 장치(200)는 외부 입력 장치(200)에서 발생한 입력을 다른 전자 장치(300)에게 전송할 수 있다. 상기 이벤트 발생에 대한 정보를 수신한 다른 전자 장치(300)는, 동작 903에서 이벤트의 내용을 확인할 수 있고, 외부 입력 장치(200)에서 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다.According to an embodiment, in operation 901, the external input device 200 may detect that an event for termination of a communication relay established between the electronic device 100 and another electronic device 300 has occurred. According to an embodiment, the event for termination of the communication relay may include an event in which use of the external input device 200 for the electronic device 100 is detected. For example, when a predetermined specific input indicating termination of a communication relay occurs in the external input device 200 or when the power of the external input device 200 is turned off, in operation 902, the external input device 200 detects the above occurrence. The received input (or event) may be transmitted to the other electronic device 300 . According to an embodiment, the external input device 200 transmits an input generated by the external input device 200 to another electronic device 300 through short-range wireless communication connected between the external input device 200 and the other electronic device 300. can transmit The other electronic device 300 receiving the information about the occurrence of the event may check the content of the event in operation 903 and determine that an event for terminating the communication relay has occurred in the external input device 200 .

동작 903에서 다른 전자 장치(300)가 외부 입력 장치(200)에서 통신 릴레이의 종료를 위한 이벤트가 발생했다고 판단한 경우, 다른 전자 장치(300)는 동작 904에서 전자 장치(100)와 다른 전자 장치(300) 사이에 설정된 통신 릴레이를 종료할 수 있다. 일 실시 예에 따르면, 동작 905에서 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이가 종료된 것을 전자 장치(100)에게 알릴 수 있고, 동작 906에서 전자 장치(100)는 통신 릴레이가 종료된 것을 확인할 수 있다.In operation 903, when the other electronic device 300 determines that an event for terminating the communication relay has occurred in the external input device 200, the other electronic device 300 performs operation 904 of the electronic device 100 and other electronic devices ( 300) can terminate the communication relay set between them. According to an embodiment, in operation 905, the other electronic device 300 may notify the electronic device 100 that a communication relay established between the electronic device 100 and the other electronic device 300 has ended, and in operation 906, the electronic device 300 may The device 100 may confirm that the communication relay is terminated.

도 10은 일 실시 예에 따른 다른 전자 장치(300)에서 통신 릴레이 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료하는 방법을 설명하는 흐름도이다.10 is a flowchart illustrating a method of terminating a communication relay established between another electronic device 300 and an electronic device 100 when an event for terminating a communication relay occurs in another electronic device 300 according to an embodiment. .

일 실시 예에 따르면, 동작 1001에서 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것을 감지할 수 있다. 일 실시 예에 따르면, 통신 릴레이의 종료를 위한 이벤트는 다른 전자 장치(300)에서 다른 전자 장치(300)에 대한 외부 입력 장치(200)의 사용을 감지한 이벤트를 포함할 수 있다. 예를 들면, 다른 전자 장치(300)의 디스플레이에서 외부 입력 장치(200)의 입력이 감지되는 경우, 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다. 예를 들면, 다른 전자 장치(300)로부터 일정 거리 이내에 외부 입력 장치(200)가 위치한 것을 감지하는 경우, 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다. 예를 들면, 다른 전자 장치(300)로부터 분리되었던 외부 입력 장치(200)가 다른 전자 장치(300)에 다시 수용되는 것을 감지하는 경우, 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다. 다른 예를 들면, 전자 장치(100)와 다른 전자 장치(300) 사이 통신 릴레이를 설정할 때 결정된 통신 릴레이 지속 시간이 만료되는 경우, 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이의 종료를 위한 이벤트가 발생한 것으로 판단할 수 있다.According to an embodiment, in operation 1001, the other electronic device 300 may detect that an event for terminating a communication relay established between the electronic device 100 and the other electronic device 300 has occurred. According to an embodiment, the event for termination of the communication relay may include an event in which another electronic device 300 detects use of the external input device 200 for another electronic device 300 . For example, when an input of the external input device 200 is detected on the display of the other electronic device 300, the other electronic device 300 sets a communication relay between the electronic device 100 and the other electronic device 300. It may be determined that an event for termination has occurred. For example, when detecting that the external input device 200 is located within a certain distance from the other electronic device 300, the other electronic device 300 communicates with the electronic device 100 and the other electronic device 300. It can be determined that an event for the end of has occurred. For example, when detecting that the external input device 200 separated from the other electronic device 300 is accommodated in the other electronic device 300 again, the other electronic device 300 is different from the electronic device 100. It may be determined that an event for terminating a communication relay set between the devices 300 has occurred. For another example, when the communication relay duration determined when establishing a communication relay between the electronic device 100 and the other electronic device 300 expires, the other electronic device 300 connects the electronic device 100 and the other electronic device ( 300), it may be determined that an event for terminating the communication relay set between them has occurred.

동작 1001에서 다른 전자 장치(300)가 통신 릴레이의 종료를 위한 이벤트가 발생했다고 판단한 경우, 다른 전자 장치(300)는 동작 1002에서 전자 장치(100)와 다른 전자 장치(300) 사이에 설정된 통신 릴레이를 종료할 수 있다. 일 실시 예에 따르면, 동작 1003에서 다른 전자 장치(300)는 전자 장치(100)와 다른 전자 장치(300) 사이 설정된 통신 릴레이가 종료된 것을 전자 장치(100)에게 알릴 수 있고, 동작 1004에서 전자 장치(100)는 통신 릴레이가 종료된 것을 확인할 수 있다.In operation 1001, when the other electronic device 300 determines that an event for terminating the communication relay has occurred, the other electronic device 300 sets a communication relay between the electronic device 100 and the other electronic device 300 in operation 1002. can be terminated. According to an embodiment, in operation 1003, the other electronic device 300 may notify the electronic device 100 that a communication relay established between the electronic device 100 and the other electronic device 300 is terminated, and in operation 1004, the electronic device 300 may notify the electronic device 100 that the electronic device 100 has terminated. The device 100 may confirm that the communication relay is terminated.

도 11은 일 실시 예에 따른 전자 장치(100)가 다른 전자 장치(300)로부터 외부 입력 장치(200)와 근거리 통신 연결이 수립되었다는 정보를 수신하지 못한 경우, 외부 입력 장치(200)에서 발생한 입력을 전달받는 방법을 설명하는 흐름도이다.11 is an input generated by the external input device 200 when the electronic device 100 according to an embodiment does not receive information indicating that a short-range communication connection with the external input device 200 has been established from another electronic device 300. It is a flow chart explaining how to receive the

도 11의 동작들은 도 1의 전자 장치(100) 또는 도 3의 전자 장치(100)에 의해 수행될 수 있다. 이하 실시 예에서 도 11의 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있고, 적어도 하나의 동작이 생략될 수도 있다. 예를 들어, 동작 1150은 생략될 수 있다. 이하 도 11의 각 동작에 대하여 설명한다.The operations of FIG. 11 may be performed by the electronic device 100 of FIG. 1 or the electronic device 100 of FIG. 3 . In the following embodiment, the operations of FIG. 11 may be sequentially performed, but are not necessarily sequentially performed. The order of each operation may be changed, at least two operations may be performed in parallel, or at least one operation may be omitted. For example, operation 1150 may be omitted. Each operation of FIG. 11 will be described below.

일 실시 예에 따르면, 전자 장치(100)가 다른 전자 장치(300)로부터 다른 전자 장치(300)와 외부 입력 장치(200) 사이 수립된 근거리 무선 통신 연결에 대한 정보를 수신하지 않았더라도, 전자 장치(100)는 사용이 감지된 외부 입력 장치(200)와 근거리 무선 통신 연결된 다른 전자 장치(300)를 식별하는 동작을 수행함으로써, 전자 장치(100)에서 사용되고 있는 외부 입력 장치(200)를 찾을 수 있다.According to an embodiment, even if the electronic device 100 does not receive information about the short-range wireless communication connection established between the other electronic device 300 and the external input device 200 from the other electronic device 300, the electronic device 100 may find the external input device 200 being used in the electronic device 100 by performing an operation of identifying the external input device 200 whose use is detected and another electronic device 300 connected through short-range wireless communication. there is.

도 11에서는 도 5의 동작 510이 생략될 수 있다.In FIG. 11 , operation 510 of FIG. 5 may be omitted.

일 실시 예에 따르면, 동작 1110에서 프로세서(140)는 외부 입력 장치(200)와 연관된 이벤트가 전자 장치(100)에서 발생한 것을 인식할 수 있다. 예를 들면, 상기 외부 입력 장치(200)와 연관된 이벤트는 전자 장치(100)에서 외부 입력 장치(200)가 사용되는 것을 감지하는 이벤트, 및 전자 장치(100)에서 외부 입력 장치(200)와 연관된 어플리케이션 실행을 감지하는 이벤트를 포함할 수 있다. 동작 1110은 도 5의 동작 520에 대응될 수 있는 바, 중복되는 설명은 생략한다.According to an embodiment, in operation 1110, the processor 140 may recognize that an event related to the external input device 200 has occurred in the electronic device 100. For example, the event associated with the external input device 200 is an event in which the electronic device 100 detects that the external input device 200 is used, and an event associated with the external input device 200 in the electronic device 100. It can include events that detect application execution. Operation 1110 may correspond to operation 520 of FIG. 5 , and a duplicate description thereof will be omitted.

일 실시 예에 따르면, 동작 1120에서 프로세서(140)는 상기 이벤트 발생에 응답하여, 이벤트와 관련된 외부 입력 장치(200)와 근거리 통신 연결된 다른 전자 장치(300)를 식별할 수 있다. 일 실시 예에 따르면, 전자 장치(100)에서 외부 입력 장치(200)의 사용이 감지된 경우, 프로세서(140)는 사용이 감지된 외부 입력 장치(200)에게 특정 입력을 요구하는 알림을 출력할 수 있다. 예를 들면, 전자 장치(100)는 외부 입력 장치(200)의 버튼을 2번 누르도록 요청하는 UI, 외부 입력 장치(200)를 오른쪽 방향으로 회전시키도록 요청하는 UI 등을 디스플레이(130)에서 표시할 수 있다.According to an embodiment, in operation 1120, in response to the occurrence of the event, the processor 140 may identify another electronic device 300 that is connected to the external input device 200 related to the event through short-range communication. According to an embodiment, when use of the external input device 200 is detected by the electronic device 100, the processor 140 outputs a notification requesting a specific input to the external input device 200 whose use is detected. can For example, the electronic device 100 displays a UI requesting to press the button of the external input device 200 twice, a UI requesting rotation of the external input device 200 in the right direction, and the like on the display 130. can be displayed

일 실시 예에 따르면, 프로세서(140)는 전자 장치(100) 주변의 불특정 적어도 하나의 다른 전자 장치에게 특정 입력에 대한 확인을 요청할 수 있다. 즉, 프로세서(140)는 근거리 무선 통신이 연결되었음을 알려온 다른 전자 장치가 존재하지 않더라도, 전자 장치(100) 주변에 존재하는 다른 전자 장치에게 특정 입력이 발생된 외부 입력 장치(200)에 대한 확인을 요청할 수 있다.According to an embodiment, the processor 140 may request confirmation of a specific input from at least one unspecified electronic device around the electronic device 100 . That is, the processor 140 allows other electronic devices present around the electronic device 100 to confirm the external input device 200 where a specific input has occurred, even if there is no other electronic device notifying that short-range wireless communication is connected. can request

사용자가 외부 입력 장치(200)에서 상기 전자 장치(100)에서 요구된 특정 입력을 발생시키는 경우, 외부 입력 장치(200)는 외부 입력 장치(200)와 다른 전자 장치(300) 사이 연결된 근거리 무선 통신(예: 블루투스 통신, 저전력 블루투스 통신)을 통하여 외부 입력 장치(200)에서 발생된 특정 입력을 다른 전자 장치(300)로 전송할 수 있다. 일 실시 예에 따른 다른 전자 장치(300)는, 특정 입력이 외부 입력 장치(200)에서 발생되었음을 확인할 수 있고, 특정 입력 확인 요청에 대한 응답을 전자 장치(100)에게 전송할 수 있다. 일 실시 예에 따르면, 프로세서(140)는 상기 수신된 응답에 기반하여, 다른 전자 장치(300)와 근거리 무선 통신 연결된 외부 입력 장치(200)에서 특정 입력이 발생되었음을 인지할 수 있고, 사용이 감지된 외부 입력 장치(200)가 다른 전자 장치(300)와 근거리 무선 통신 연결된 장치임을 식별할 수 있다.When a user generates a specific input requested by the electronic device 100 through the external input device 200, the external input device 200 performs short-range wireless communication between the external input device 200 and another electronic device 300. A specific input generated by the external input device 200 may be transmitted to another electronic device 300 through (eg, Bluetooth communication, low power Bluetooth communication). Another electronic device 300 according to an embodiment can confirm that a specific input has occurred in the external input device 200 and can transmit a response to the specific input confirmation request to the electronic device 100 . According to an embodiment, the processor 140 may recognize that a specific input has occurred in the external input device 200 connected to another electronic device 300 through short-range wireless communication based on the received response, and detect use. It may be identified that the external input device 200 is a device connected to another electronic device 300 through short-range wireless communication.

상술한 동작 1120의 과정을 통하여, 프로세서(140)는 주변의 불특정 적어도 하나의 다른 전자 장치 중에서 사용이 감지된 외부 입력 장치(200)와 근거리 무선 통신 연결된 하나의 다른 전자 장치(300)를 찾을 수 있다.Through the process of operation 1120 described above, the processor 140 may find one other electronic device 300 that is connected through short-range wireless communication with the external input device 200 whose use has been detected among at least one other unspecified electronic device in the vicinity. there is.

일 실시 예에 따르면, 동작 1120은 통신 릴레이를 설정(사용)하기 위한 권한을 획득하는 동작을 포함할 수 있다. 예를 들면, 전자 장치(100)는 동작 1120에서 식별된 다른 전자 장치(300)와 통신 릴레이를 설정할 것인지 확인하는 메시지를 출력할 수 있고, 메시지에 대한 응답으로 통신 릴레이 권한을 획득한 후 동작 1130을 수행할 수 있다. 다른 예를 들면, 동작 1130에서 식별된 다른 전자 장치(300)는 통신 릴레이를 설정할 것인지 확인하는 메시지를 출력할 수 있고, 메시지에 대한 응답을 전자 장치(100)에게 전송할 수 있다. 이 경우, 다른 전자 장치(300)로부터 통신 릴레이 권한을 획득한 전자 장치(100)는 동작 1130을 수행할 수 있다.According to an embodiment, operation 1120 may include an operation of acquiring authority to set (use) a communication relay. For example, the electronic device 100 may output a message confirming whether to establish a communication relay with the other electronic device 300 identified in operation 1120, and after acquiring communication relay authority in response to the message, operation 1130 can be performed. For another example, the other electronic device 300 identified in operation 1130 may output a message confirming whether to set up a communication relay, and may transmit a response to the message to the electronic device 100 . In this case, the electronic device 100 that has obtained the communication relay authority from the other electronic device 300 may perform operation 1130 .

일 실시 예에 따르면, 프로세서(140)는 동작 1130에서 통신 회로(120)를 통하여, 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력을 전달받기 위한 통신 연결(예: 통신 릴레이)을 상기 식별된 다른 전자 장치(300)와 설정할 수 있고, 동작 1140에서 외부 입력 장치(200)에서 발생한 전자 장치(100)에 대한 입력에 관한 정보를 상기 통신 릴레이 설정된 다른 전자 장치(300)로부터 수신할 수 있다. 일 실시 예에 따르면, 동작 1150에서 프로세서(140)는 통신 릴레이의 종료를 위한 이벤트가 발생한 경우, 다른 전자 장치(300)와 전자 장치(100) 사이 설정된 통신 릴레이를 종료할 수 있다. 동작 1130은 도 5의 동작 540에 대응될 수 있고, 동작 1140은 도 5의 동작 550에 대응될 수 있고, 동작 1150은 도 5의 동작 560에 대응될 수 있는 바, 중복되는 설명은 생략한다.According to an embodiment, in operation 1130, the processor 140 connects communication (eg, a communication relay) to receive an input to the electronic device 100 generated from the external input device 200 through the communication circuit 120. may be set with the identified other electronic device 300, and in operation 1140, information about an input to the electronic device 100 generated by the external input device 200 is received from the other electronic device 300 set as the communication relay. can do. According to an embodiment, in operation 1150, when an event for terminating the communication relay occurs, the processor 140 may terminate the communication relay established between the other electronic device 300 and the electronic device 100. Operation 1130 may correspond to operation 540 of FIG. 5 , operation 1140 may correspond to operation 550 of FIG. 5 , and operation 1150 may correspond to operation 560 of FIG. 5 , and duplicate descriptions are omitted.

도 11의 동작에서 전자 장치(100)와 다른 전자 장치(300) 사이의 정보 송수신은 블루투스(BT), 저전력 블루투스(BLE), 와이파이(Wi-Fi) 등의 근거리 통신 방법을 이용하거나 또는 외부 서버나 클라우드를 통한 out-of-band(OOB) 방법을 이용하여 수행될 수 있고, 외부 입력 장치(200)와 다른 전자 장치(300) 사이의 정보 송수신은, 외부 입력 장치(200)와 다른 전자 장치(300) 사이 수립된 근거리 무선 통신(예: 블루투스 통신, 저전력 블루투스 통신) 연결을 통하여 수행될 수 있다.In the operation of FIG. 11 , information transmission and reception between the electronic device 100 and another electronic device 300 uses a short-range communication method such as Bluetooth (BT), Bluetooth Low Energy (BLE), Wi-Fi, or an external server. It can be performed using an out-of-band (OOB) method through the cloud, and information transmission and reception between the external input device 200 and the other electronic device 300 is performed between the external input device 200 and the other electronic device. It may be performed through a short-distance wireless communication (eg, Bluetooth communication, low-power Bluetooth communication) connection established between (300).

도 11에서 도시하지는 않았지만, 도 11의 각 동작 중 적어도 하나의 동작은 장치에서 로그인 되어 있는 계정에 기반하여 인증하는 동작을 포함할 수 있다. 일 실시 예에 따르면, 도 11의 모든 동작에서 계정 기반의 사용자 인증 과정이 수행될 수 있고, 또는 도 11의 동작 중 전자 장치(100)와 다른 전자 장치(300) 사이에 수행되는 최초의 동작 및/또는 외부 입력 장치(200)와 다른 전자 장치(300)에서 수행되는 최초의 동작에서만 계정 기반의 사용자 인증 과정이 수행될 수도 있다.Although not shown in FIG. 11 , at least one of the operations in FIG. 11 may include an operation of authenticating based on an account logged into the device. According to an embodiment, an account-based user authentication process may be performed in all operations of FIG. 11, or an initial operation performed between the electronic device 100 and another electronic device 300 during the operation of FIG. 11 and / Alternatively, an account-based user authentication process may be performed only in the first operation performed in the external input device 200 and the other electronic device 300 .

예를 들어 설명하면, 카메라 어플리케이션이 실행 중인 전자 장치(100)에서 외부 입력 장치(200)가 디스플레이(130)에 입력되고 있음을 감지한 경우 또는 외부 입력 장치(200)가 전자 장치(100)와 특정 거리 이내에 존재함을 감지한 경우, 전자 장치(100)는 상기 외부 입력 장치(200)와 근거리 무선 통신(예: 블루투스 통신) 연결된 다른 전자 장치(300)를 식별하여 식별된 다른 전자 장치(300)와 통신 릴레이를 설정할 수 있다. 통신 릴레이가 설정된 이후 외부 입력 장치(200)의 버튼 프레스가 입력되는 경우, 다른 전자 장치(300)는 상기 버튼 프레스 입력을 전자 장치(100)에게 전달할 수 있다. 외부 입력 장치(200)의 버튼 프레스 입력을 전달받은 전자 장치(100)는, 상기 입력에 대응하는 기능(예: 사진 촬영)을 수행할 수 있다.For example, when the electronic device 100 running the camera application detects that the external input device 200 is being input to the display 130, or the external input device 200 interacts with the electronic device 100 When detecting that the electronic device 100 exists within a specific distance, the electronic device 100 identifies another electronic device 300 connected to the external input device 200 through short-range wireless communication (eg, Bluetooth communication) to identify the other electronic device 300. ) and communication relay can be set. When a button press of the external input device 200 is input after the communication relay is set, the other electronic device 300 may transfer the button press input to the electronic device 100 . Upon receiving the button press input of the external input device 200, the electronic device 100 may perform a function corresponding to the input (eg, taking a picture).

도 12는, 다양한 실시예들에 따른, 네트워크 환경(1200) 내의 전자 장치(1201)의 블록도이다.12 is a block diagram of an electronic device 1201 within a network environment 1200 according to various embodiments.

도 12을 참조하면, 네트워크 환경(1200)에서 전자 장치(1201)는 제 1 네트워크(1298)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(1202)와 통신하거나, 또는 제 2 네트워크(1299)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(1204) 또는 서버(1208)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(1201)는 서버(1208)를 통하여 전자 장치(1204)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(1201)는 프로세서(1220), 메모리(1230), 입력 모듈(1250), 음향 출력 모듈(1255), 디스플레이 모듈(1260), 오디오 모듈(1270), 센서 모듈(1276), 인터페이스(1277), 연결 단자(1278), 햅틱 모듈(1279), 카메라 모듈(1280), 전력 관리 모듈(1288), 배터리(1289), 통신 모듈(1290), 가입자 식별 모듈(1296), 또는 안테나 모듈(1297)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(1201)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(1278))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(1276), 카메라 모듈(1280), 또는 안테나 모듈(1297))은 하나의 구성요소(예: 디스플레이 모듈(1260))로 통합될 수 있다.Referring to FIG. 12 , in a network environment 1200, an electronic device 1201 communicates with an electronic device 1202 through a first network 1298 (eg, a short-range wireless communication network) or through a second network 1299. It is possible to communicate with the electronic device 1204 or the server 1208 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 1201 may communicate with the electronic device 1204 through the server 1208 . According to an embodiment, the electronic device 1201 includes a processor 1220, a memory 1230, an input module 1250, an audio output module 1255, a display module 1260, an audio module 1270, a sensor module ( 1276), interface 1277, connection terminal 1278, haptic module 1279, camera module 1280, power management module 1288, battery 1289, communication module 1290, subscriber identification module 1296 , or an antenna module 1297. In some embodiments, in the electronic device 1201, at least one of these components (eg, the connection terminal 1278) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 1276, camera module 1280, or antenna module 1297) are integrated into a single component (eg, display module 1260). It can be.

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

보조 프로세서(1223)는, 예를 들면, 메인 프로세서(1221)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(1221)를 대신하여, 또는 메인 프로세서(1221)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(1221)와 함께, 전자 장치(1201)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(1260), 센서 모듈(1276), 또는 통신 모듈(1290))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(1223)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(1280) 또는 통신 모듈(1290))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(1223)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(1201) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(1208))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(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 1223 may, for example, take the place of the main processor 1221 while the main processor 1221 is inactive (eg, sleep), or when the main processor 1221 is active (eg, running an application). ) state, together with the main processor 1221, at least one of the components of the electronic device 1201 (eg, the display module 1260, the sensor module 1276, or the communication module 1290) It is possible to control at least some of the related functions or states. According to one embodiment, the auxiliary processor 1223 (eg, image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 1280 or communication module 1290). there is. According to an embodiment, the auxiliary processor 1223 (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 1201 itself where artificial intelligence is performed, or may be performed through a separate server (eg, the server 1208). 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.

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

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

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

음향 출력 모듈(1255)은 음향 신호를 전자 장치(1201)의 외부로 출력할 수 있다. 음향 출력 모듈(1255)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 1255 may output sound signals to the outside of the electronic device 1201 . The sound output module 1255 may include, for example, a speaker or 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.

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

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

센서 모듈(1276)은 전자 장치(1201)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(1276)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 1276 detects an operating state (eg, power or temperature) of the electronic device 1201 or an external environment 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 1276 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 biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.

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

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

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

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

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

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

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

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

안테나 모듈(1297)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(1297)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(1297)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(1298) 또는 제 2 네트워크(1299)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(1290)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(1290)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(1297)의 일부로 형성될 수 있다. The antenna module 1297 may transmit or receive signals or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 1297 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 1297 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 1298 or the second network 1299 is selected from the plurality of antennas by, for example, the communication module 1290. can be chosen A signal or power may be transmitted or received between the communication module 1290 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 1297 in addition to the radiator.

다양한 실시예에 따르면, 안테나 모듈(1297)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 1297 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 네트워크(1299)에 연결된 서버(1208)를 통해서 전자 장치(1201)와 외부의 전자 장치(1204)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(1202, 또는 1204) 각각은 전자 장치(1201)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(1201)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(1202, 1204, 또는 1208) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(1201)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(1201)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(1201)로 전달할 수 있다. 전자 장치(1201)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(1201)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(1204)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(1208)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(1204) 또는 서버(1208)는 제 2 네트워크(1299) 내에 포함될 수 있다. 전자 장치(1201)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 1201 and the external electronic device 1204 through the server 1208 connected to the second network 1299 . Each of the external electronic devices 1202 or 1204 may be the same as or different from the electronic device 1201 . According to an embodiment, all or part of operations executed in the electronic device 1201 may be executed in one or more external electronic devices among the external electronic devices 1202 , 1204 , or 1208 . For example, when the electronic device 1201 needs to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device 1201 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 1201 . The electronic device 1201 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 1201 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 1204 may include an internet of things (IoT) device. Server 1208 may be an intelligent server using machine learning and/or neural networks. According to one embodiment, the external electronic device 1204 or server 1208 may be included in the second network 1299 . The electronic device 1201 may be applied to intelligent services (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

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

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

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is 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)(예: 전자 장치(1201)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(1236) 또는 외장 메모리(1238))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(1240))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(1201))의 프로세서(예: 프로세서(1220))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg, internal memory 1236 or external memory 1238) readable by a machine (eg, electronic device 1201). It may be implemented as software (eg, the program 1240) including them. For example, a processor (eg, the processor 1220) of a device (eg, the electronic device 1201) 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 (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store™) or on two user devices (e.g. 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.

상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(100), 도 3의 전자 장치(100))는 명령어들이 저장되는 메모리; 통신 회로; 및 상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함할 수 있고, 상기 프로세서는 상기 저장된 명령어들의 실행 시: 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하고, 제1 외부 입력 장치와 연관된 이벤트 발생을 인식하고, 상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하고, 상기 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하고, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신할 수 있다.As described above, an electronic device (eg, the electronic device 100 of FIG. 1 or the electronic device 100 of FIG. 3 ) according to an embodiment includes a memory in which commands are stored; communication circuit; and a processor electrically connected to the memory and the communication circuit, wherein the processor, when executing the stored instructions: from at least one other electronic device, the at least one other electronic device receives at least one external input device receive information indicating that a short-range communication connection has been established with the first external input device, recognize the occurrence of an event associated with the first external input device, and in response to the occurrence of the event, establish a short-range communication connection with the first external input device based on the received information; Identifying a first other electronic device, establishing a communication connection with the first other electronic device through the communication circuit to receive an input to the electronic device generated from the first external input device, and Information on the input to the electronic device generated by the input device may be received from the first other electronic device.

일 실시 예에 따르면, 상기 프로세서는, 상기 이벤트 발생에 응답하여, 상기 제1 외부 입력 장치에게 특정 입력을 요구하는 알림을 출력하고, 상기 적어도 하나의 다른 전자 장치에게 상기 특정 입력을 발생한 상기 제1 외부 입력 장치에 대한 확인을 요청하고, 상기 적어도 하나의 다른 전자 장치 중 상기 제1 다른 전자 장치로부터 상기 특정 입력이 상기 제1 외부 입력 장치에서 발생되었다는 정보를 수신하고, 상기 정보 수신에 응답하여, 상기 제1 외부 입력 장치와 근거리 통신 연결된 상기 제1 다른 전자 장치를 식별할 수 있다.According to an embodiment, the processor outputs a notification requesting a specific input to the first external input device in response to the occurrence of the event, and the first external input device generating the specific input to the at least one other electronic device. requesting confirmation of an external input device, receiving information from the first other electronic device among the at least one other electronic device that the specific input has occurred in the first external input device, and in response to receiving the information, The first other electronic device connected to the first external input device through short-range communication may be identified.

일 실시 예에 따르면, 상기 프로세서는, 상기 제1 다른 전자 장치에게 통신 릴레이(relay) 설정을 요청하고, 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치가 상기 전자 장치와 상기 통신 릴레이 설정을 완료했다는 응답을 수신할 수 있다.According to an embodiment, the processor requests the first other electronic device to set a communication relay, and from the first other electronic device, the first other electronic device configures the communication relay with the electronic device. You may receive a response indicating completion.

일 실시 예에 따르면, 상기 제1 외부 입력 장치와 연관된 상기 이벤트는, 상기 전자 장치에서 상기 제1 외부 입력 장치가 사용되는 것을 감지하는 이벤트, 및 상기 전자 장치에서 상기 제1 외부 입력 장치와 연관된 어플리케이션 실행을 감지하는 이벤트 중 적어도 하나를 포함할 수 있다.According to an embodiment, the event associated with the first external input device may include an event in which the electronic device detects that the first external input device is used, and an application associated with the first external input device in the electronic device. It may include at least one of events for detecting execution.

일 실시 예에 따르면, 상기 프로세서는, 상기 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트 발생을 감지하고, 상기 이벤트 발생에 응답하여, 상기 제1 다른 전자 장치에게 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결의 종료를 요청할 수 있고, 상기 통신 연결의 종료를 위한 이벤트는 상기 전자 장치에서 상기 제1 외부 입력 장치의 사용 중단을 감지한 이벤트를 포함할 수 있다.According to an embodiment, the processor detects occurrence of an event for termination of the communication connection in the electronic device, and in response to the occurrence of the event, the processor sends the first other electronic device to the first other electronic device and the electronic device. Termination of the communication connection established between devices may be requested, and an event for terminating the communication connection may include an event in which the electronic device detects that use of the first external input device is stopped.

일 실시 예에 따르면, 상기 프로세서는, 상기 제1 외부 입력 장치 또는 상기 제1 다른 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트가 발생한 경우, 상기 통신 연결을 종료한 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결이 종료되었다는 알림을 수신할 수 있다.According to an embodiment, the processor may, when an event for terminating the communication connection occurs in the first external input device or the first other electronic device, retrieve the information from the first other electronic device that has terminated the communication connection. A notification that the communication connection established between the first other electronic device and the electronic device is terminated may be received.

일 실시 예에 따르면, 상기 프로세서는, 상기 적어도 하나의 다른 전자 장치에 수용된 각각의 상기 적어도 하나의 외부 입력 장치가 상기 적어도 하나의 다른 전자 장치로부터 분리되는 경우, 상기 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치와 상기 적어도 하나의 외부 입력 장치 사이 근거리 통신 연결이 수립되었다는 정보를 수신할 수 있다.According to an embodiment, the processor may, when each of the at least one external input device accommodated in the at least one other electronic device is separated from the at least one other electronic device, Information that a short-range communication connection is established between at least one other electronic device and the at least one external input device may be received.

일 실시 예에 따르면, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이 수립된 블루투스(Bluetooth) 통신 연결 또는 저전력 블루투스(Bluetooth low energy, BLE) 통신 연결을 통하여 수행될 수 있고, 상기 전자 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행될 수 있다.According to an embodiment, the transmission and reception of information between the first external input device and the first other electronic device may include a Bluetooth communication connection established between the first external input device and the first other electronic device or Bluetooth Low Energy. It can be performed through a (Bluetooth low energy, BLE) communication connection, and information transmission and reception between the electronic device and the first other electronic device includes at least one of Bluetooth communication, Bluetooth low energy communication, and Wi-Fi communication. method or an out-of-band method through an external server or cloud.

상술한 바와 같이, 일 실시 예에 따르면, 전자 장치(예: 도 1의 전자 장치(100), 도 3의 전자 장치(100))의 외부 입력 장치에서 발생한 입력을 전달받는 방법은, 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하는 동작(예: 도 5의 동작 510); 제1 외부 입력 장치와 연관된 이벤트 발생을 인식하는 동작(예: 도 5의 동작 520); 상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하는 동작(예: 도 5의 동작 530); 상기 전자 장치의 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하는 동작(예: 도 5의 동작 540); 및 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신하는 동작(예: 도 5의 동작 550)을 포함할 수 있다.As described above, according to an embodiment, a method of receiving an input generated from an external input device of an electronic device (eg, the electronic device 100 of FIG. 1 or the electronic device 100 of FIG. 3 ) includes at least one receiving information from another electronic device indicating that the at least one other electronic device has established a short-range communication connection with at least one external input device (eg, operation 510 of FIG. 5 ); recognizing the occurrence of an event associated with the first external input device (eg, operation 520 of FIG. 5 ); In response to the occurrence of the event, identifying a first other electronic device connected to the first external input device through short-range communication based on the received information (eg, operation 530 of FIG. 5 ); establishing a communication connection with the first other electronic device for receiving an input to the electronic device generated from the first external input device through a communication circuit of the electronic device (eg, operation 540 of FIG. 5 ); and receiving, from the first other electronic device, information about the input to the electronic device generated by the first external input device (eg, operation 550 of FIG. 5 ).

일 실시 예에 따르면, 상기 제1 다른 전자 장치를 식별하는 동작은, 상기 이벤트 발생에 응답하여, 상기 제1 외부 입력 장치에게 특정 입력을 요구하는 알림을 출력하는 동작; 상기 적어도 하나의 다른 전자 장치에게 상기 특정 입력을 발생한 상기 제1 외부 입력 장치에 대한 확인을 요청하는 동작; 상기 적어도 하나의 다른 전자 장치 중 상기 제1 다른 전자 장치로부터 상기 특정 입력이 상기 제1 외부 입력 장치에서 발생되었다는 정보를 수신하는 동작; 및 상기 정보 수신에 응답하여, 상기 제1 외부 입력 장치와 근거리 통신 연결된 상기 제1 다른 전자 장치를 식별하는 동작을 포함할 수 있다.According to an embodiment, the identifying of the first other electronic device may include outputting a notification requesting a specific input to the first external input device in response to the occurrence of the event; requesting confirmation of the first external input device that generated the specific input from the at least one other electronic device; receiving information from the first other electronic device among the at least one other electronic device that the specific input has occurred in the first external input device; and identifying the first other electronic device connected to the first external input device through short-range communication in response to receiving the information.

일 실시 예에 따르면, 상기 통신 연결을 상기 제1 다른 전자 장치와 설정하는 동작은, 상기 제1 다른 전자 장치에게 통신 릴레이(relay) 설정을 요청하는 동작; 및 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치가 상기 전자 장치와 상기 통신 릴레이 설정을 완료했다는 응답을 수신하는 동작을 포함할 수 있다.According to an embodiment, the setting of the communication connection with the first other electronic device may include requesting a communication relay setting from the first other electronic device; and receiving a response from the first other electronic device indicating that the first other electronic device has completed setting the communication relay with the electronic device.

일 실시 예에 따르면, 상기 제1 외부 입력 장치와 연관된 상기 이벤트는, 상기 전자 장치에서 상기 제1 외부 입력 장치가 사용되는 것을 감지하는 이벤트, 및 상기 전자 장치에서 상기 제1 외부 입력 장치와 연관된 어플리케이션 실행을 감지하는 이벤트 중 적어도 하나를 포함할 수 있다.According to an embodiment, the event associated with the first external input device may include an event in which the electronic device detects that the first external input device is used, and an application associated with the first external input device in the electronic device. It may include at least one of events for detecting execution.

일 실시 예에 따르면, 상기 전자 장치의 외부 입력 장치에서 발생한 입력을 전달받는 방법은, 상기 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트 발생을 감지하는 동작; 및 상기 이벤트 발생에 응답하여, 상기 제1 다른 전자 장치에게 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결의 종료를 요청하는 동작을 더 포함할 수 있고, 상기 통신 연결의 종료를 위한 이벤트는 상기 전자 장치에서 상기 제1 외부 입력 장치의 사용 중단을 감지한 이벤트를 포함할 수 있다.According to an embodiment, a method of receiving an input generated by an external input device of the electronic device may include detecting an occurrence of an event for terminating the communication connection in the electronic device; and in response to the occurrence of the event, requesting the first other electronic device to terminate the communication connection established between the first other electronic device and the electronic device, The event may include an event in which use of the first external input device is detected by the electronic device.

일 실시 예에 따르면, 상기 전자 장치의 외부 입력 장치에서 발생한 입력을 전달받는 방법은, 상기 제1 외부 입력 장치 또는 상기 제1 다른 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트가 발생한 경우, 상기 통신 연결을 종료한 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결이 종료되었다는 알림을 수신하는 동작을 더 포함할 수 있다.According to an embodiment, the method for receiving an input generated from an external input device of the electronic device may include, when an event for terminating the communication connection occurs in the first external input device or the first other electronic device, the communication The method may further include receiving a notification from the first other electronic device that has terminated the connection that the communication connection established between the first other electronic device and the electronic device is terminated.

일 실시 예에 따르면, 상기 근거리 통신 연결을 수립했다는 정보를 수신하는 동작은, 상기 적어도 하나의 다른 전자 장치에 수용된 각각의 상기 적어도 하나의 외부 입력 장치가 상기 적어도 하나의 다른 전자 장치로부터 분리되는 경우, 상기 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치와 상기 적어도 하나의 외부 입력 장치 사이 근거리 통신 연결이 수립되었다는 정보를 수신하는 동작을 포함할 수 있다.According to an embodiment, the operation of receiving information indicating that the short-range communication connection has been established may be performed when each of the at least one external input device accommodated in the at least one other electronic device is separated from the at least one other electronic device. , Receiving information from the at least one other electronic device indicating that a short-range communication connection between the at least one other electronic device and the at least one external input device has been established.

일 실시 예에 따르면, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이 수립된 블루투스 통신 연결 또는 저전력 블루투스 통신 연결을 통하여 수행될 수 있고, 상기 전자 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행될 수 있다.According to an embodiment, information transmission and reception between the first external input device and the first other electronic device may be performed through a Bluetooth communication connection or a Bluetooth low energy communication connection established between the first external input device and the first other electronic device. Information transmission and reception between the electronic device and the first other electronic device may be performed using a short-range communication method including at least one of Bluetooth communication, low energy Bluetooth communication, and Wi-Fi communication, or through an external server or cloud. It can be performed using an out-of-band method.

상술한 바와 같이, 일 실시 예에 따른 전자 장치(예: 도 1의 전자 장치(100), 도 3의 전자 장치(100))는 명령어들이 저장되는 메모리; 통신 회로; 및 상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함할 수 있고, 상기 프로세서는 상기 저장된 명령어들의 실행 시: 다른 전자 장치로부터 상기 다른 전자 장치가 외부 입력 장치와 근거리 통신 연결을 수립했다는 정보를 수신하고, 상기 외부 입력 장치와 연관된 이벤트 발생을 인식하고, 상기 이벤트 발생에 응답하여, 상기 통신 회로를 통하여 상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 다른 전자 장치와 설정하고, 상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 다른 전자 장치로부터 수신할 수 있다.As described above, an electronic device (eg, the electronic device 100 of FIG. 1 or the electronic device 100 of FIG. 3 ) according to an embodiment includes a memory in which commands are stored; communication circuit; and a processor electrically connected to the memory and the communication circuit, wherein the processor receives information from another electronic device that the other electronic device has established a short-range communication connection with an external input device when the stored instructions are executed. Receiving, recognizing the occurrence of an event associated with the external input device, and establishing a communication connection for receiving an input to the electronic device generated from the external input device through the communication circuit in response to the occurrence of the event is established with the other electronic device. and may receive information about the input to the electronic device generated by the external input device from the other electronic device.

일 실시 예에 따르면, 상기 프로세서는, 복수개의 다른 전자 장치로부터 상기 복수개의 다른 전자 장치가 복수개의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신한 경우: 상기 복수개의 다른 전자 장치 중에서 상기 발생된 이벤트와 관련된 외부 입력 장치와 근거리 통신 연결된 하나의 다른 전자 장치를 식별하고, 상기 식별된 다른 전자 장치와 상기 통신 연결을 설정할 수 있다.According to an embodiment, when the processor receives information from a plurality of other electronic devices that the plurality of other electronic devices have established short-range communication connections with a plurality of external input devices, respectively: among the plurality of other electronic devices, the processor Another electronic device that is connected to an external input device related to the event by short-range communication may be identified, and the communication connection may be established with the identified other electronic device.

일 실시 예에 따르면, 상기 다른 전자 장치와 상기 근거리 통신 연결을 수립한 상기 외부 입력 장치는, 상기 다른 전자 장치에 수용되지 않는 외장형 외부 입력 장치일 수 있다.According to an embodiment, the external input device establishing the short-range communication connection with the other electronic device may be an external external input device that is not accommodated in the other electronic device.

일 실시 예에 따르면, 상기 외부 입력 장치와 상기 다른 전자 장치 사이의 정보 송수신은, 상기 외부 입력 장치와 상기 다른 전자 장치 사이 수립된 블루투스 통신 연결 또는 저전력 블루투스 통신 연결을 통하여 수행되고, 상기 전자 장치와 상기 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행될 수 있다.According to an embodiment, information transmission and reception between the external input device and the other electronic device is performed through a Bluetooth communication connection or a low energy Bluetooth communication connection established between the external input device and the other electronic device, and Information transmission and reception between the other electronic devices may be performed using a short-range communication method including at least one of Bluetooth communication, low energy Bluetooth communication, and Wi-Fi communication, or using an out-of-band method through an external server or cloud. there is.

Claims (20)

전자 장치에 있어서,
명령어들이 저장되는 메모리;
통신 회로; 및
상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함하고, 상기 프로세서는 상기 저장된 명령어들의 실행 시:
적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하고,
제1 외부 입력 장치와 연관된 이벤트 발생을 인식하고,
상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하고,
상기 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하고,
상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신하는, 전자 장치.
In electronic devices,
memory in which instructions are stored;
communication circuit; and
a processor in electrical connection with the memory and the communication circuitry, wherein the processor upon execution of the stored instructions:
Receive information from at least one other electronic device that the at least one other electronic device has established a short-range communication connection with at least one external input device, respectively;
Recognize the occurrence of an event associated with the first external input device;
In response to the occurrence of the event, identify a first other electronic device connected to the first external input device through short-range communication based on the received information;
Establishing a communication connection with the first other electronic device through the communication circuit to receive an input to the electronic device generated from the first external input device;
The electronic device of claim 1 , wherein information about the input to the electronic device generated by the first external input device is received from the first other electronic device.
청구항 1에 있어서,
상기 프로세서는,
상기 이벤트 발생에 응답하여, 상기 제1 외부 입력 장치에게 특정 입력을 요구하는 알림을 출력하고,
상기 적어도 하나의 다른 전자 장치에게 상기 특정 입력을 발생한 상기 제1 외부 입력 장치에 대한 확인을 요청하고,
상기 적어도 하나의 다른 전자 장치 중 상기 제1 다른 전자 장치로부터 상기 특정 입력이 상기 제1 외부 입력 장치에서 발생되었다는 정보를 수신하고,
상기 정보 수신에 응답하여, 상기 제1 외부 입력 장치와 근거리 통신 연결된 상기 제1 다른 전자 장치를 식별하는, 전자 장치.
The method of claim 1,
the processor,
In response to the occurrence of the event, outputting a notification requesting a specific input to the first external input device;
Requesting confirmation of the first external input device that generated the specific input to the at least one other electronic device;
Receiving information that the specific input is generated by the first external input device from the first other electronic device among the at least one other electronic device;
In response to receiving the information, the electronic device identifies the first other electronic device connected to the first external input device through short-range communication.
청구항 1에 있어서,
상기 프로세서는,
상기 제1 다른 전자 장치에게 통신 릴레이(relay) 설정을 요청하고,
상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치가 상기 전자 장치와 상기 통신 릴레이 설정을 완료했다는 응답을 수신하는, 전자 장치.
The method of claim 1,
the processor,
Requesting the first other electronic device to set a communication relay;
Receive a response from the first other electronic device indicating that the first other electronic device has completed setting the communication relay with the electronic device.
청구항 1에 있어서,
상기 제1 외부 입력 장치와 연관된 상기 이벤트는, 상기 전자 장치에서 상기 제1 외부 입력 장치가 사용되는 것을 감지하는 이벤트, 및 상기 전자 장치에서 상기 제1 외부 입력 장치와 연관된 어플리케이션 실행을 감지하는 이벤트 중 적어도 하나를 포함하는, 전자 장치.
The method of claim 1,
The event associated with the first external input device may be one of an event in which the electronic device detects use of the first external input device and an event in which the electronic device detects the execution of an application associated with the first external input device. An electronic device comprising at least one.
청구항 1에 있어서,
상기 프로세서는,
상기 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트 발생을 감지하고, 상기 통신 연결의 종료를 위한 이벤트는 상기 전자 장치에서 상기 제1 외부 입력 장치의 사용 중단을 감지한 이벤트를 포함함,
상기 이벤트 발생에 응답하여, 상기 제1 다른 전자 장치에게 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결의 종료를 요청하는, 전자 장치.
The method of claim 1,
the processor,
The electronic device detects the occurrence of an event for terminating the communication connection, and the event for terminating the communication connection includes an event in which the electronic device detects that use of the first external input device is stopped;
In response to the occurrence of the event, the electronic device requests the first other electronic device to terminate the communication connection established between the first other electronic device and the electronic device.
청구항 1에 있어서,
상기 프로세서는,
상기 제1 외부 입력 장치 또는 상기 제1 다른 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트가 발생한 경우, 상기 통신 연결을 종료한 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결이 종료되었다는 알림을 수신하는, 전자 장치.
The method of claim 1,
the processor,
When an event for terminating the communication connection occurs in the first external input device or the first other electronic device, between the first other electronic device and the electronic device from the first other electronic device that has terminated the communication connection. An electronic device that receives a notification that the established communication connection is terminated.
청구항 1에 있어서,
상기 프로세서는,
상기 적어도 하나의 다른 전자 장치에 수용된 각각의 상기 적어도 하나의 외부 입력 장치가 상기 적어도 하나의 다른 전자 장치로부터 분리되는 경우, 상기 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치와 상기 적어도 하나의 외부 입력 장치 사이 근거리 통신 연결이 수립되었다는 정보를 수신하는, 전자 장치.
The method of claim 1,
the processor,
When each of the at least one external input device accommodated in the at least one other electronic device is separated from the at least one other electronic device, the at least one other electronic device and the at least one external input device are separated from the at least one other electronic device. An electronic device that receives information that a short-range communication connection between external input devices is established.
청구항 1에 있어서,
상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이 수립된 블루투스(Bluetooth) 통신 연결 또는 저전력 블루투스(Bluetooth low energy, BLE) 통신 연결을 통하여 수행되고,
상기 전자 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행되는, 전자 장치.
The method of claim 1,
Information transmission and reception between the first external input device and the first other electronic device may be performed through a Bluetooth communication connection established between the first external input device and the first other electronic device or Bluetooth low energy (BLE) ) is performed through a communication connection,
Information transmission and reception between the electronic device and the first other electronic device may be performed using a short-range communication method including at least one of Bluetooth communication, low energy Bluetooth communication, and Wi-Fi communication, or an out-of-band method through an external server or cloud. An electronic device that is performed using.
전자 장치의 외부 입력 장치에서 발생한 입력을 전달받는 방법에 있어서,
적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치가 적어도 하나의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신하는 동작;
제1 외부 입력 장치와 연관된 이벤트 발생을 인식하는 동작;
상기 이벤트 발생에 응답하여, 상기 수신된 정보에 기반하여 상기 제1 외부 입력 장치와 근거리 통신 연결된 제1 다른 전자 장치를 식별하는 동작;
상기 전자 장치의 통신 회로를 통하여, 상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 제1 다른 전자 장치와 설정하는 동작; 및
상기 제1 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 제1 다른 전자 장치로부터 수신하는 동작을 포함하는 방법.
A method for receiving an input generated by an external input device of an electronic device,
receiving information from at least one other electronic device indicating that the at least one other electronic device has established a short-range communication connection with at least one external input device;
recognizing the occurrence of an event associated with the first external input device;
identifying a first other electronic device connected to the first external input device through short-range communication based on the received information in response to the occurrence of the event;
establishing a communication connection with the first other electronic device through a communication circuit of the electronic device to receive an input to the electronic device generated from the first external input device; and
and receiving, from the first other electronic device, information about the input to the electronic device generated by the first external input device.
청구항 9에 있어서,
상기 제1 다른 전자 장치를 식별하는 동작은,
상기 이벤트 발생에 응답하여, 상기 제1 외부 입력 장치에게 특정 입력을 요구하는 알림을 출력하는 동작;
상기 적어도 하나의 다른 전자 장치에게 상기 특정 입력을 발생한 상기 제1 외부 입력 장치에 대한 확인을 요청하는 동작;
상기 적어도 하나의 다른 전자 장치 중 상기 제1 다른 전자 장치로부터 상기 특정 입력이 상기 제1 외부 입력 장치에서 발생되었다는 정보를 수신하는 동작; 및
상기 정보 수신에 응답하여, 상기 제1 외부 입력 장치와 근거리 통신 연결된 상기 제1 다른 전자 장치를 식별하는 동작을 포함하는 방법.
The method of claim 9,
The operation of identifying the first other electronic device,
outputting a notification requesting a specific input to the first external input device in response to the occurrence of the event;
requesting confirmation of the first external input device that generated the specific input from the at least one other electronic device;
receiving information from the first other electronic device among the at least one other electronic device that the specific input has occurred in the first external input device; and
and identifying the first other electronic device connected to the first external input device through short-range communication in response to receiving the information.
청구항 9에 있어서,
상기 통신 연결을 상기 제1 다른 전자 장치와 설정하는 동작은,
상기 제1 다른 전자 장치에게 통신 릴레이(relay) 설정을 요청하는 동작; 및
상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치가 상기 전자 장치와 상기 통신 릴레이 설정을 완료했다는 응답을 수신하는 동작을 포함하는, 방법.
The method of claim 9,
The operation of establishing the communication connection with the first other electronic device,
requesting the first other electronic device to set a communication relay; and
and receiving a response from the first other electronic device indicating that the first other electronic device has completed setting the communication relay with the electronic device.
청구항 9에 있어서,
상기 제1 외부 입력 장치와 연관된 상기 이벤트는, 상기 전자 장치에서 상기 제1 외부 입력 장치가 사용되는 것을 감지하는 이벤트, 및 상기 전자 장치에서 상기 제1 외부 입력 장치와 연관된 어플리케이션 실행을 감지하는 이벤트 중 적어도 하나를 포함하는 방법.
The method of claim 9,
The event associated with the first external input device may be one of an event in which the electronic device detects use of the first external input device and an event in which the electronic device detects the execution of an application associated with the first external input device. A method that contains at least one.
청구항 9에 있어서,
상기 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트 발생을 감지하는 동작, 상기 통신 연결의 종료를 위한 이벤트는 상기 전자 장치에서 상기 제1 외부 입력 장치의 사용 중단을 감지한 이벤트를 포함함; 및
상기 이벤트 발생에 응답하여, 상기 제1 다른 전자 장치에게 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결의 종료를 요청하는 동작을 더 포함하는 방법.
The method of claim 9,
detecting occurrence of an event for terminating the communication connection in the electronic device, wherein the event for terminating the communication connection includes an event in which the electronic device detects that use of the first external input device is stopped; and
In response to the occurrence of the event, the method further includes requesting the first other electronic device to terminate the communication connection established between the first other electronic device and the electronic device.
청구항 9에 있어서,
상기 제1 외부 입력 장치 또는 상기 제1 다른 전자 장치에서 상기 통신 연결의 종료를 위한 이벤트가 발생한 경우, 상기 통신 연결을 종료한 상기 제1 다른 전자 장치로부터 상기 제1 다른 전자 장치와 상기 전자 장치 사이 설정된 상기 통신 연결이 종료되었다는 알림을 수신하는 동작을 더 포함하는 방법.
The method of claim 9,
When an event for terminating the communication connection occurs in the first external input device or the first other electronic device, between the first other electronic device and the electronic device from the first other electronic device that has terminated the communication connection. The method further comprising receiving a notification that the established communication connection is terminated.
청구항 9에 있어서,
상기 근거리 통신 연결을 수립했다는 정보를 수신하는 동작은,
상기 적어도 하나의 다른 전자 장치에 수용된 각각의 상기 적어도 하나의 외부 입력 장치가 상기 적어도 하나의 다른 전자 장치로부터 분리되는 경우, 상기 적어도 하나의 다른 전자 장치로부터 상기 적어도 하나의 다른 전자 장치와 상기 적어도 하나의 외부 입력 장치 사이 근거리 통신 연결이 수립되었다는 정보를 수신하는 동작을 포함하는 방법.
The method of claim 9,
The operation of receiving information that the short-range communication connection is established,
When each of the at least one external input device accommodated in the at least one other electronic device is separated from the at least one other electronic device, the at least one other electronic device and the at least one external input device are separated from the at least one other electronic device. and receiving information that a short-range communication connection between external input devices is established.
청구항 9에 있어서,
상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 상기 제1 외부 입력 장치와 상기 제1 다른 전자 장치 사이 수립된 블루투스 통신 연결 또는 저전력 블루투스 통신 연결을 통하여 수행되고,
상기 전자 장치와 상기 제1 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행되는 방법.
The method of claim 9,
Information transmission and reception between the first external input device and the first other electronic device is performed through a Bluetooth communication connection or a low energy Bluetooth communication connection established between the first external input device and the first other electronic device,
Information transmission and reception between the electronic device and the first other electronic device may be performed using a short-range communication method including at least one of Bluetooth communication, low energy Bluetooth communication, and Wi-Fi communication, or an out-of-band method through an external server or cloud. How to do it using .
전자 장치에 있어서,
명령어들이 저장되는 메모리;
통신 회로; 및
상기 메모리 및 상기 통신 회로와 전기적으로 연결되는 프로세서를 포함하고, 상기 프로세서는 상기 저장된 명령어들의 실행 시:
다른 전자 장치로부터 상기 다른 전자 장치가 외부 입력 장치와 근거리 통신 연결을 수립했다는 정보를 수신하고,
상기 외부 입력 장치와 연관된 이벤트 발생을 인식하고,
상기 이벤트 발생에 응답하여, 상기 통신 회로를 통하여 상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 입력을 전달받기 위한 통신 연결을 상기 다른 전자 장치와 설정하고,
상기 외부 입력 장치에서 발생한 상기 전자 장치에 대한 상기 입력에 관한 정보를 상기 다른 전자 장치로부터 수신하는, 전자 장치.
In electronic devices,
memory in which instructions are stored;
communication circuit; and
a processor in electrical connection with the memory and the communication circuitry, wherein the processor upon execution of the stored instructions:
Receiving information from another electronic device that the other electronic device has established a short-range communication connection with an external input device;
Recognize the occurrence of an event associated with the external input device;
In response to the occurrence of the event, establishing a communication connection with the other electronic device to receive an input to the electronic device generated from the external input device through the communication circuit;
The electronic device that receives information about the input to the electronic device generated by the external input device from the other electronic device.
청구항 17에 있어서,
상기 프로세서는,
복수개의 다른 전자 장치로부터 상기 복수개의 다른 전자 장치가 복수개의 외부 입력 장치와 각각 근거리 통신 연결을 수립했다는 정보를 수신한 경우:
상기 복수개의 다른 전자 장치 중에서 상기 발생된 이벤트와 관련된 외부 입력 장치와 근거리 통신 연결된 하나의 다른 전자 장치를 식별하고,
상기 식별된 다른 전자 장치와 상기 통신 연결을 설정하는, 전자 장치.
The method of claim 17
the processor,
When receiving information from a plurality of other electronic devices that the plurality of other electronic devices have established short-range communication connections with a plurality of external input devices, respectively:
Identifying one other electronic device that is connected to an external input device related to the event by short-range communication among the plurality of other electronic devices;
An electronic device that establishes the communication connection with the identified other electronic device.
청구항 17에 있어서,
상기 다른 전자 장치와 상기 근거리 통신 연결을 수립한 상기 외부 입력 장치는, 상기 다른 전자 장치에 수용되지 않는 외장형 외부 입력 장치인, 전자 장치.
The method of claim 17
The external input device that establishes the short-range communication connection with the other electronic device is an external input device that is not accommodated in the other electronic device.
청구항 17에 있어서,
상기 외부 입력 장치와 상기 다른 전자 장치 사이의 정보 송수신은, 상기 외부 입력 장치와 상기 다른 전자 장치 사이 수립된 블루투스 통신 연결 또는 저전력 블루투스 통신 연결을 통하여 수행되고,
상기 전자 장치와 상기 다른 전자 장치 사이의 정보 송수신은, 블루투스 통신, 저전력 블루투스 통신, 및 와이파이 통신 중 적어도 하나를 포함하는 근거리 통신 방법을 이용하거나 외부 서버 또는 클라우드를 통한 out-of-band 방법을 이용하여 수행되는, 전자 장치.
The method of claim 17
Information transmission and reception between the external input device and the other electronic device is performed through a Bluetooth communication connection or a low power Bluetooth communication connection established between the external input device and the other electronic device,
Information transmission and reception between the electronic device and the other electronic device uses a short-range communication method including at least one of Bluetooth communication, low energy Bluetooth communication, and Wi-Fi communication, or uses an out-of-band method through an external server or cloud. An electronic device, which is performed by
KR1020210159549A 2021-11-18 2021-11-18 Method for receiving input generated from external input device and electronic device thereof KR20230072878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210159549A KR20230072878A (en) 2021-11-18 2021-11-18 Method for receiving input generated from external input device and electronic device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210159549A KR20230072878A (en) 2021-11-18 2021-11-18 Method for receiving input generated from external input device and electronic device thereof

Publications (1)

Publication Number Publication Date
KR20230072878A true KR20230072878A (en) 2023-05-25

Family

ID=86542051

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210159549A KR20230072878A (en) 2021-11-18 2021-11-18 Method for receiving input generated from external input device and electronic device thereof

Country Status (1)

Country Link
KR (1) KR20230072878A (en)

Similar Documents

Publication Publication Date Title
KR20220054108A (en) Method and electronic device for providing fast charging
EP4284041A1 (en) Electronic device and method for installing embedded-subscriber identification module profile in electronic device
KR20220073352A (en) Accessory device controlling power consumption of external device and operating method thereof
KR20230072878A (en) Method for receiving input generated from external input device and electronic device thereof
KR20220105475A (en) Electronic device and method for controlling remote lock of external electronic device based on bluetooth
KR20220096725A (en) Electronic device performing wireless communication with accessary device and operating method thereof
US11899897B2 (en) Method for controlling application of external electronic device and electronic device supporting same
US20230007707A1 (en) Method for relaying data using different frequency bands and electronic device performing same
US20230224397A1 (en) Electronic device and method for providing user interface during call
EP4354301A1 (en) Electronic device and operation method of electronic device
KR20220131627A (en) Electronic device for sharing function and operating method thereof
KR20220118829A (en) Electronic device and operation method thereof
KR20230025206A (en) Apparatus and method for magnetic secure transmission
KR20230055589A (en) Electronic device for providing rcs function and operating method thereof
KR20220007381A (en) User authentication method and electronic device supporting the same
KR20220120164A (en) Method of detecting lost wearable device
KR20220020575A (en) Electronic device and method for controlling bluetooth connection in the electronic device
KR20230021786A (en) Electronic device, and method for installing profile of embedded subscriber identification module in electronic device
KR20220099730A (en) Electronic device for managing external electronic device performing requested function and method for operating thereof
KR20240049066A (en) Electronic device, method, and non-transitory computer readable storage medium for registration of another electronic device in wireless environment
KR20230120036A (en) Electronic device and method for controlling discharge of external electronic device using the same
KR20230046049A (en) The electronic device and the method for providing video call
KR20240047866A (en) Wearable device, method, and non-transitory computer readable storage medium sharing file
KR20240013000A (en) File transfer system, electronic device and method for transferring file in the electronic device
KR20220129353A (en) Apparatus and method for providing internet of things service