KR20210096917A - Methods for recognition an resource of external electronic device and the electronic device supporting the same - Google Patents

Methods for recognition an resource of external electronic device and the electronic device supporting the same Download PDF

Info

Publication number
KR20210096917A
KR20210096917A KR1020200010576A KR20200010576A KR20210096917A KR 20210096917 A KR20210096917 A KR 20210096917A KR 1020200010576 A KR1020200010576 A KR 1020200010576A KR 20200010576 A KR20200010576 A KR 20200010576A KR 20210096917 A KR20210096917 A KR 20210096917A
Authority
KR
South Korea
Prior art keywords
electronic device
external electronic
resource
data
processor
Prior art date
Application number
KR1020200010576A
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 KR1020200010576A priority Critical patent/KR20210096917A/en
Priority to PCT/KR2021/001139 priority patent/WO2021154005A1/en
Publication of KR20210096917A publication Critical patent/KR20210096917A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus

Abstract

In an electronic device, disclosed is the electronic device comprising: a communication module; a processor; and a memory, wherein the processor checks whether an external electronic device is connected through the communication module, recognizes a plurality of resources included in the external electronic device through an integrated driver when the external electronic device is connected, and processes the data through the integrated driver, in a state wherein the external electronic device is connected, when receiving the data related to at least one resource among the plurality of resources through the communication module. In addition to thereof, various embodiments identified through the present document are possible. Therefore, the present invention is capable of allowing to be recognized through the integrated driver without a separate program.

Description

외부 전자 장치의 리소스를 인식하는 방법 및 이를 지원하는 전자 장치{Methods for recognition an resource of external electronic device and the electronic device supporting the same}A method for recognizing a resource of an external electronic device and an electronic device supporting the same

본 발명의 다양한 실시예들은, 외부 전자 장치에 포함된 리소스를 인식하는 방법 및 이를 지원하는 전자 장치에 관한 것이다.Various embodiments of the present disclosure relate to a method of recognizing a resource included in an external electronic device and an electronic device supporting the same.

스마트 폰과 같은 전자 장치는 외부 전자 장치와 데이터 통신을 할 수 있다. 예를 들어, 전자 장치는 외부 전자 장치와 기능적으로 연결되어 외부 전자 장치에 포함된 여러 가지 리소스를 인식하고, 인식한 리소스로부터 데이터를 획득할 수 있다.An electronic device such as a smart phone may perform data communication with an external electronic device. For example, the electronic device may be functionally connected to the external electronic device, recognize various resources included in the external electronic device, and acquire data from the recognized resources.

그러나, 전자 장치가 외부 전자 장치와 USB(Universal Serial Bus)를 통해 연결되면, 전자 장치가 외부 전자 장치를 파일 송수신이 가능한 장치로만 인식하였다. 따라서, 외부 전자 장치에 포함된 리소스를 전자 장치가 이용하기 위해서는 별도의 프로그램을 통해 인식할 수는 있으나, 기존의 리소스를 이용하던 중 다른 리소스를 사용하면, 다른 리소스에 관련된 데이터를 송수신하기 위해 기존의 USB 연결이 해제되었다. However, when the electronic device is connected to the external electronic device through a Universal Serial Bus (USB), the electronic device recognizes the external electronic device only as a device capable of transmitting and receiving files. Therefore, in order for the electronic device to use the resource included in the external electronic device, it may be recognized through a separate program. The USB connection was disconnected.

본 발명의 다양한 실시 예들은, 통합 드라이버를 통해 전자 장치가 외부 전자 장치에 포함된 복수 개의 리소스를 통합 드라이버를 통해 모두 식별하고, 처리할 수 있어 기존의 USB 연결이 해제되는 현상을 방지하는 외부 전자 장치에 포함된 리소스를 동적으로 이용하기 위한 외부 전자 장치에 포함된 장치 인식 방법 및 이를 지원하는 전자 장치를 제공할 수 있다.According to various embodiments of the present disclosure, through the integrated driver, the electronic device can identify and process all of a plurality of resources included in the external electronic device through the integrated driver, thereby preventing the existing USB connection from being disconnected. A method for recognizing a device included in an external electronic device for dynamically using a resource included in the device and an electronic device supporting the same may be provided.

본 발명의 다양한 실시예에 따른 전자 장치는, 통신 모듈, 프로세서 및 메모리를 포함하고 상기 프로세서는, 상기 통신 모듈을 통해 외부 전자 장치가 연결되는지를 확인하고, 상기 외부 전자 장치가 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 외부 전자 장치가 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하도록 설정된 전자 장치를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication module, a processor, and a memory, the processor checks whether an external electronic device is connected through the communication module, and when the external electronic device is connected, the integrated driver Recognizes a plurality of resources included in the external electronic device through It may include an electronic device configured to process the data through .

본 발명의 다양한 실시예에 따른 전자 장치는, 통신 모듈, 프로세서 및 메모리를 포함하고, 상기 프로세서는, 상기 통신 모듈을 통해 외부 전자 장치와 연결되면, 상기 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 상기 통신 모듈을 통해 상기 외부 전자 장치에 전송하도록 설정된 전자 장치를 포함할 수 있다.An electronic device according to various embodiments of the present disclosure includes a communication module, a processor, and a memory, and when the processor is connected to an external electronic device through the communication module, at least one of a plurality of resources included in the electronic device and an electronic device configured to transmit data related to one resource to the external electronic device through the communication module.

또한, 본 발명의 다양한 실시예에 따른 외부 디바이스를 인식하는 방법은, 통신 모듈을 통해 상기 외부 전자 장치와 연결되는지 확인하는 동작, 상기 외부 전자 장치와 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하는 동작, 상기 외부 전자 장치와 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작 및 상기 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하는 동작을 포함할 수 있다.In addition, the method for recognizing an external device according to various embodiments of the present disclosure includes an operation of checking whether the external electronic device is connected to the external electronic device through a communication module, and when connected to the external electronic device, the external electronic device is connected to the external electronic device through an integrated driver. Recognizing a plurality of included resources, receiving data related to at least one of the plurality of resources through the communication module while connected to the external electronic device, and receiving the data, the integration It may include an operation of processing the data through a driver.

본 발명의 다양한 실시예들에 따르면, 외부 전자 장치에 포함된 복수 개의 리소스들을 별도의 프로그램 없이 통합 드라이버를 통해 인식할 수 있다.According to various embodiments of the present disclosure, a plurality of resources included in the external electronic device may be recognized through the integrated driver without a separate program.

또한, 본 발명의 다양한 실시예들에 따르면, 별도의 프로그램 없이 통합 드라이버를 통해 외부 전자 장치에 포함된 복수 개의 리소스들을 식별하고 처리할 수 있어, 기존에 사용하고 있는 리소스에 대한 데이터의 송수신을 해제하지 않고, 복수 개의 리소스들을 동적으로 사용할 수 있다.In addition, according to various embodiments of the present disclosure, it is possible to identify and process a plurality of resources included in the external electronic device through the integrated driver without a separate program, thereby canceling the transmission and reception of data for the existing resource. Instead, a plurality of resources can be used dynamically.

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

도 1은 본 발명의 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 본 발명의 일 실시예에 따른 외부 전자 장치를 인식하는 방법과 관련된 전자 장치의 블록도이다.
도 3은 본 발명의 일 실시예에 따른, 전자 장치와 외부 전자 장치의 블록도이다.
도 4는 본 발명의 일 실시예에 따른, 외부 전자 장치의 지문 인증과 관련된 리소스를 인식하는 방법을 설명하기 위한 도면이다.
도 5는 본 발명의 일 실시예에 따른, 외부 전자 장치로부터 데이터를 수신 받아 처리하는 방법을 설명하기 위한 도면이다.
도 6은 본 발명의 일 실시예에 따른, 외부 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스를 선택하는 방법을 설명하기 위한 도면이다.
도 7은 본 발명의 일 실시예에 따른, 전자 장치가 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하는 방법을 설명하기 위한 도면이다.
도 8은 본 발명의 일 실시예에 따른, 전자 장치 및 외부 전자 장치가 포함하는 카메라 장치를 선택하는 방법을 설명하기 위한 도면이다.
도 9는 본 발명의 일 실시예에 따른, 외부 전자 장치를 인식하는 방법에 대한 순서도이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device related to a method for recognizing an external electronic device according to an embodiment of the present invention.
3 is a block diagram of an electronic device and an external electronic device according to an embodiment of the present invention.
4 is a diagram for explaining a method of recognizing a resource related to fingerprint authentication of an external electronic device according to an embodiment of the present invention.
5 is a diagram for explaining a method for receiving and processing data from an external electronic device, according to an embodiment of the present invention.
6 is a diagram for describing a method of selecting at least one resource from among a plurality of resources included in an external electronic device, according to an embodiment of the present invention.
7 is a diagram for explaining a method for an electronic device to recognize a plurality of resources included in an external electronic device, according to an embodiment of the present invention.
8 is a view for explaining a method of selecting a camera device included in an electronic device and an external electronic device according to an embodiment of the present invention.
9 is a flowchart of a method of recognizing an external electronic device according to an embodiment of the present invention.

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

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

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

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

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))과 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다.The auxiliary processor 123 may be, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). there is.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

일 실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the electronic devices 102 and 104 may be the same or a different type of the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more of the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. The one or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology may be used.

도 2는 본 발명의 일 실시예에 따른 외부 전자 장치를 인식하는 방법과 관련된 전자 장치의 블록도이다.2 is a block diagram of an electronic device related to a method for recognizing an external electronic device according to an embodiment of the present invention.

도 2를 참조하면, 전자 장치(200)(예: 도 1의 전자 장치(101))는 덱스 어플리케이션(Dex Application)(210), OS API (OS Application Programming Interface) (220), 드라이버 로더 프로세스(Driver Loader process)(230), 시스템 서비스(System service)(240)를 포함하는 프로그램 단, 드라이버 프레임 워크(Driver framework)(250), 장치 드라이버 레이어(Device Driver Layer)(260), HAL(Hardware Abstraction Layer)(270)을 포함하는 커널(kernel) 단 및 상기 외부 전자 장치(280)와 통신 모듈(예: USB)을 통해 물리적으로 연결되는 하드웨어 단으로 구성될 수 있다.Referring to FIG. 2 , the electronic device 200 (eg, the electronic device 101 of FIG. 1 ) includes a Dex Application 210 , an OS Application Programming Interface (OS API) 220 , and a driver loader process ( Driver Loader process) 230, a program including a system service (System service) 240, a driver framework (Driver framework) 250, a device driver layer (Device Driver Layer) 260, HAL (Hardware Abstraction) Layer) 270 and a hardware terminal physically connected to the external electronic device 280 through a communication module (eg, USB).

상기 외부 전자 장치(280)(예: 스마트폰)가 상기 전자 장치(200)(예: PC)와 통신 모듈(예: USB/IP)를 통해 연결된 상태에서, 상기 외부 전자 장치(280)에 포함된 복수 개의 리소스들 중 사용자 입력에 의해 적어도 하나의 리소스가 선택되는 경우, 상기 외부 전자 장치(280)의 프로세서는 상기 선택된 리소스와 관련된 데이터를 상기 통신 모듈을 통해 상기 전자 장치(200)에 전송할 수 있다.Included in the external electronic device 280 while the external electronic device 280 (eg, a smartphone) is connected to the electronic device 200 (eg, a PC) through a communication module (eg, USB/IP) When at least one resource is selected by a user input from among the plurality of resources, the processor of the external electronic device 280 may transmit data related to the selected resource to the electronic device 200 through the communication module. there is.

상기 전자 장치(200)의 프로세서(예: 도 1의 프로세서(120))는 상기 데이터(예: 선택된 리소스와 관련된 데이터)를 상기 커널 단에 포함된 상기 HAL(270)을 통해 상기 장치 드라이버 레이어(260)에 전달할 수 있다. 상기 HAL(270)은 상기 전자 장치(200)의 물리적인 하드웨어와 상기 전자 장치(200)에서 실행되는 소프트웨어 사이의 추상화 계층으로, 상기 소프트웨어가 상기 물리적인 하드웨어에 직접 접근하는 것을 방지하고, 응용 프로그램(예: 덱스 어플리케이션)이 작동할 수 있는 플랫폼(예: 덱스 서비스)을 제공할 수 있다. 상기 외부 전자 장치(280)의 프로세서는 상기 데이터를 상기 HAL(270)과 상기 장치 드라이버 레이어(260)를 거쳐 통신 버스를 통해 드라이버 로더 프로세스(driver loader process(230))에 제공할 수 있다.The processor (eg, the processor 120 of FIG. 1 ) of the electronic device 200 transmits the data (eg, data related to a selected resource) to the device driver layer ( 260) can be transmitted. The HAL 270 is an abstraction layer between the physical hardware of the electronic device 200 and software executed in the electronic device 200, and prevents the software from directly accessing the physical hardware, and provides an application program It can provide a platform (eg DEX service) on which (eg DEX application) can operate. The processor of the external electronic device 280 may provide the data to a driver loader process 230 through a communication bus through the HAL 270 and the device driver layer 260 .

상기 드라이버 로더 프로세스(230)는 상기 외부 전자 장치(280)에서 전송되는 상기 데이터를 처리할 수 있다. 상기 드라이버 로더 프로세스(230)는 장치 드라이버의 실행 가능한 라이브러리(Device Driver Executable Library(231)), 입출력 인터페이스(I/O Interface(232)), 플러그&플레이 파워 매니저(Plug & Play power manager(233))을 포함할 수 있다.The driver loader process 230 may process the data transmitted from the external electronic device 280 . The driver loader process 230 includes a device driver executable library (Device Driver Executable Library 231), an input/output interface (I/O Interface 232), and a Plug & Play power manager (233). ) may be included.

상기 외부 전자 장치(280)가 상기 전자 장치(200)에 통신적으로 연결되면, 상기 전자 장치(200)의 프로세서는 상기 입출력 인터페이스(232)를 통해 상기 외부 전자 장치(280)로부터 상기 데이터를 수신할 수 있다.When the external electronic device 280 is communicatively connected to the electronic device 200 , the processor of the electronic device 200 receives the data from the external electronic device 280 through the input/output interface 232 . can do.

상기 전자 장치(200)의 프로세서는 상기 입출력 인터페이스(232)를 통해 상기 선택된 리소스와 관련된 데이터가 수신되면, 상기 장치 드라이버의 실행 가능한 라이브러리(231)를 기반으로 상기 데이터(예: 선택된 리소스와 관련된 데이터)를 처리할 수 있다. 상기 처리 과정에서는 상기 데이터의 리소스 타입(예: 카메라, 지문 센서)을 식별하여, 상기 리소스 타입에 따라 드라이버를 로드(load)할 수 있다. 이 때, 상기 전자 장치(200)의 프로세서는 상기 플러그&플레이 파워 매니저(233)를 통해 상기 리소스 타입이 식별된 데이터의 입출력을 재지정하여, 상기 전자 장치(200)가 상기 리소스 타입에 따라 식별된 데이터를 송수신하도록 할 수 있다. 이에 따라, 기존에 사용하고 있는 리소스에 대한 데이터의 송수신 연결이 해제되지 않고, 동적으로 복수 개의 리소스들을 식별하고 처리할 수 있다.When the processor of the electronic device 200 receives data related to the selected resource through the input/output interface 232 , the data (eg, data related to the selected resource) based on the executable library 231 of the device driver ) can be dealt with. In the processing process, a resource type (eg, a camera, a fingerprint sensor) of the data may be identified, and a driver may be loaded according to the resource type. At this time, the processor of the electronic device 200 redirects the input/output of the data identified by the resource type through the plug & play power manager 233 so that the electronic device 200 is identified according to the resource type. You can send and receive data. Accordingly, it is possible to identify and process a plurality of resources dynamically without disconnecting data transmission/reception connection to the resource being used.

상기 리소스 타입(예: 카메라, 지문 센서)에 따라 식별된 데이터는 상기 플러그&플레이 파워 매니저(233)에 의해 시스템 서비스(Service system(240))에 포함되어 있는 덱스 서비스(241)에게 상기 식별 데이터의 타입에 따라, 상기 드라이버의 실행을 요청할 수 있다. Data identified according to the resource type (eg, camera, fingerprint sensor) is transmitted to the Dex service 241 included in the system service (Service system 240) by the Plug & Play power manager 233 as the identification data. Depending on the type of , it is possible to request execution of the driver.

일 실시예에 따르면, 상기 데이터가 지문 센서와 관련된 데이터일 경우, 상기 전자 장치(200)의 프로세서는 상기 장치 드라이버의 실행 가능한 라이브러리(231)를 통해 상기 데이터의 리소스 타입(예: 지문 센서)을 식별하고, 상기 식별한 지문 센서와 관련된 데이터를 상기 외부 전자 장치와 송수신할 수 있도록 상기 플러그&플레이 파워 매니저(233)를 통해 데이터의 입출력을 재지정할 수 있다.According to an embodiment, when the data is data related to a fingerprint sensor, the processor of the electronic device 200 determines the resource type (eg, fingerprint sensor) of the data through the executable library 231 of the device driver. The input/output of data may be redirected through the plug & play power manager 233 so as to identify and transmit/receive data related to the identified fingerprint sensor with the external electronic device.

상기 전자 장치(200)의 프로세서는 상기 시스템 서비스(240)에 포함된 USB/IP 서비스(USB/IP service(242))를 통해 상기 데이터를 전송하고, 상기 USB/IP 서비스(242)에 포함된 소켓(Socket(242a))과 상기 덱스 서비스(241)의 소켓(Socket(241a))을 연결하여, 상기 데이터를 상기 덱스 서비스(241)에 제공할 수 있다. The processor of the electronic device 200 transmits the data through a USB/IP service (USB/IP service 242 ) included in the system service 240 , and transmits the data included in the USB/IP service 242 . The data may be provided to the Dex service 241 by connecting the socket (Socket 242a) and the socket (Socket 241a) of the Dex service 241 .

상기 데이터를 수신한 상기 덱스 서비스(241)는 상기 데이터를 기반으로 상기 외부 전자 장치(280)에서 상기 선택한 리소스를 상기 전자 장치(200)가 사용할 리소스로 설정할 수 있다. 또한, 상기 외부 전자 장치(280)가 상기 전자 장치(200)의 리소스로 설정되면, 상기 전자 장치(200)의 프로세서는 상기 외부 전자 장치(280)를 상기 전자 장치(200)의 리소스로 사용할 수 있도록, 사용자에게 상기 리소스와 관련된 정보를 전자 장치에 설치된 어플리케이션(예: 덱스 어플리케이션(210))을 통해 제공할 수 있다.Upon receiving the data, the Dex service 241 may set the selected resource in the external electronic device 280 as a resource to be used by the electronic device 200 based on the data. Also, when the external electronic device 280 is set as a resource of the electronic device 200 , the processor of the electronic device 200 may use the external electronic device 280 as a resource of the electronic device 200 . Thus, information related to the resource may be provided to the user through an application installed in the electronic device (eg, the Dex application 210 ).

일 실시예에 따르면, 상기 데이터가 상기 외부 전자 장치(280)의 지문 센서와 관련된 데이터인 경우, 상기 전자 장치(200)의 프로세서는 상기 덱스 서비스(241)의 소켓(241a)과 상기 시스템 서비스(240)에 포함된 생체 인증 서비스(243)의 소켓(243a)을 연결할 수 있다. 상기 전자 장치(200)의 프로세서는 상기 생체 인증 서비스(243)를 통해 키 스토어(key store(244))에 저장되어 있는 데이터가 상기 지문 센서와 관련된 데이터와 일치하는지 판단할 수 있다. 상기 지문 센서와 관련된 데이터가 상기 키 스토어(244)에 저장되어 있는 데이터와 일치하는 경우, 상기 덱스 서비스(241)는 상기 전자 장치(200)의 잠금 모드를 해제하고, 사용자에게 상기 덱스 어플리케이션(210)을 통해 상기 전자 장치(200)의 잠금 모드가 해제되었다는 메세지를 제공할 수 있다.According to an embodiment, when the data is data related to the fingerprint sensor of the external electronic device 280, the processor of the electronic device 200 performs the socket 241a of the Dex service 241 and the system service ( The socket 243a of the biometric authentication service 243 included in 240 may be connected. The processor of the electronic device 200 may determine whether data stored in a key store 244 matches data related to the fingerprint sensor through the biometric authentication service 243 . When the data related to the fingerprint sensor matches the data stored in the key store 244 , the Dex service 241 releases the lock mode of the electronic device 200 and provides the user with the Dex application 210 . ), a message indicating that the lock mode of the electronic device 200 is released may be provided.

상술한 바와 같이, 다양한 실시예에 따르면, 전자 장치(예: 전자 장치(101))는 통신 모듈(예: 통신 모듈(190)), 프로세서(예: 프로세서(120)) 및 메모리(예: 메모리(130))를 포함하고, 상기 프로세서는, 상기 통신 모듈을 통해 외부 전자 장치가 연결되는지를 확인하고, 상기 외부 전자 장치(예: 전자 장치(102 또는 104))가 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 외부 전자 장치가 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하도록 설정될 수 있다.As described above, according to various embodiments, the electronic device (eg, electronic device 101) includes a communication module (eg, communication module 190), a processor (eg, processor 120), and a memory (eg, memory). 130), wherein the processor checks whether an external electronic device is connected through the communication module, and when the external electronic device (eg, the electronic device 102 or 104) is connected, through an integrated driver Recognizing a plurality of resources included in the external electronic device, and receiving data related to at least one of the plurality of resources through the communication module while the external electronic device is connected, through the integrated driver It can be configured to process the data.

다양한 실시예에 따르면, 상기 통합 드라이버는, 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 인식한 복수 개의 리소스들을 이용하기 위한 정보를 포함하도록 설정될 수 있다.According to various embodiments, the integrated driver may be configured to recognize a plurality of resources included in the external electronic device and include information for using the recognized plurality of resources.

다양한 실시예에 따르면, 상기 복수 개의 리소스들은, 카메라 모듈(예: 카메라 모듈(180)), 오디오 모듈(예: 오디오 모듈(170)) 또는 센서 모듈(예: 센서 모듈(176)) 중 적어도 하나를 포함하도록 설정될 수 있다.According to various embodiments, the plurality of resources include at least one of a camera module (eg, the camera module 180), an audio module (eg, the audio module 170), or a sensor module (eg, the sensor module 176). may be set to include

다양한 실시예에 따르면, 상기 프로세서는, 상기 통합 드라이버를 통해 상기 데이터에 포함된 식별자를 기반으로, 상기 복수 개의 리소스들 중 상기 적어도 하나의 리소스의 타입을 식별하도록 설정될 수 있다.According to various embodiments, the processor may be configured to identify the type of the at least one resource among the plurality of resources based on the identifier included in the data through the integrated driver.

다양한 실시예에 따르면, 상기 프로세서는, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 제1 리소스에 관한 제1 데이터를 수신하는 중에, 상기 통신 모듈을 통한 통신 연결을 유지한 상태에서, 상기 통신 모듈을 통한 제2 리소스에 관한 제2 데이터를 수신하도록 설정될 수 있다.According to various embodiments, the processor, while receiving the first data about a first resource among the plurality of resources through the communication module, maintains the communication connection through the communication module, the communication module It may be configured to receive second data about a second resource through

다양한 실시예에 따르면, 상기 프로세서는, 상기 통신 모듈을 통해, 상기 제1 데이터 및 상기 제2 데이터를 병렬적으로 수신하도록 설정될 수 있다.According to various embodiments, the processor may be configured to receive the first data and the second data in parallel through the communication module.

다양한 실시예에 따르면, 상기 복수 개의 리소스들을 모두 포함하는 인식 정보를 출력하는 디스플레이(예: 표시 장치(160))를 더 포함할 수 있다.According to various embodiments, a display (eg, the display device 160) for outputting recognition information including all of the plurality of resources may be further included.

다양한 실시예에 따르면, 상기 프로세서는, 사용자의 입력을 기반으로, 상기 복수 개의 리소스들 중 적어도 하나의 리소스를 활성화 또는 비활성화하도록 설정될 수 있다.According to various embodiments, the processor may be configured to activate or deactivate at least one resource among the plurality of resources based on a user input.

다양한 실시예에 따르면, 상기 프로세서는, 상기 통신 모듈을 통해, 상기 외부 전자 장치로부터 상기 전자 장치에서 처리할 상기 적어도 하나의 리소스에 대한 정보를 수신하도록 설정될 수 있다.According to various embodiments, the processor may be configured to receive information about the at least one resource to be processed by the electronic device from the external electronic device through the communication module.

다양한 실시예에 따르면, 상기 프로세서는, 동일한 리소스 타입을 가지는 상기 전자 장치에 포함된 제1 리소스 또는 상기 외부 전자 장치에 포함된 제2 리소스를 이용할 수 있는 어플리케이션이 실행되면, 상기 제1 리소스 및 상기 제2 리소스를 포함하는 사용자 인터페이스를 제공하도록 설정될 수 있다.According to various embodiments, when an application capable of using a first resource included in the electronic device having the same resource type or a second resource included in the external electronic device is executed, the processor is configured to include the first resource and the It may be configured to provide a user interface including a second resource.

다양한 실시예에 따르면, 전자 장치(예: 전자 장치(101))에 있어서, 통신 모듈(예: 통신 모듈(190)), 프로세서(예: 프로세서(120)) 및 메모리(예: 메모리(130))를 포함하고, 상기 프로세서는, 상기 통신 모듈을 통해 외부 전자 장치와 연결되면, 상기 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 상기 통신 모듈을 통해 상기 외부 전자 장치에 전송하도록 설정될 수 있다.According to various embodiments, in an electronic device (eg, the electronic device 101 ), a communication module (eg, the communication module 190 ), a processor (eg, the processor 120 ), and a memory (eg, the memory 130 ) ), wherein, when connected to an external electronic device through the communication module, the processor transmits data related to at least one resource among a plurality of resources included in the electronic device to the external electronic device through the communication module. It can be set to transmit.

도 3은 본 발명의 일 실시예에 따른, 전자 장치와 외부 전자 장치의 블록도이다.3 is a block diagram of an electronic device and an external electronic device according to an embodiment of the present invention.

도 3을 참조하면, 전자 장치(300)(예: 도 2의 전자 장치(200))가 외부 전자 장치(350)(예: 도 2의 외부 전자 장치(280))에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스를 인식하고, 상기 인식된 외부 전자 장치(350)의 리소스를 사용하기 위한 데이터를 처리할 수 있다.Referring to FIG. 3 , an electronic device 300 (eg, the electronic device 200 of FIG. 2 ) includes a plurality of resources included in the external electronic device 350 (eg, the external electronic device 280 of FIG. 2 ). of at least one resource may be recognized, and data for using the recognized resource of the external electronic device 350 may be processed.

상기 전자 장치(300)의 프로세서는 상기 전자 장치(300)와 상기 외부 전자 장치(350)가 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들 중 적어도 하나를 인식할 수 있다. When the electronic device 300 and the external electronic device 350 are connected, the processor of the electronic device 300 recognizes at least one of a plurality of resources included in the external electronic device 350 through the integrated driver. can do.

상기 통합 드라이버는, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 실행할 수 있는 데이터를 포함하고 있는 장치 드라이버 다이나믹 로더(Device driver dynamic loader(307))로서, 상기 외부 전자 장치(350)가 상기 전자 장치(300)에 연결되면, 상기 전자 장치(300)의 프로세서가 상기 장치 드라이버 다이나믹 로더(307)를 통해, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 모두 인식할 수 있다. 또한, 상기 전자 장치(300)의 프로세서는 상기 장치 드라이버 다이나믹 로더(307)를 통해 사용자가 선택하는 리소스와 관련된 데이터의 리소스 타입을 식별할 수 있다.The integrated driver is a device driver dynamic loader 307 including data for executing a plurality of resources included in the external electronic device 350, and the external electronic device 350 includes When connected to the electronic device 300 , the processor of the electronic device 300 may recognize all of the plurality of resources included in the external electronic device 350 through the device driver dynamic loader 307 . Also, the processor of the electronic device 300 may identify a resource type of data related to a resource selected by the user through the device driver dynamic loader 307 .

기존에는 상기 외부 전자 장치(350)가 상기 전자 장치(300)에 통신적으로 연결되는 경우, 별도의 프로그램 하나가 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들 중 하나의 리소스만 인식하였다. 따라서, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 적어도 하나 이상 인식하려면, 그에 대응되는 별도의 프로그램들이 필요했다. 또한, 사용자가 상기 복수 개의 리소스들 중 적어도 하나를 선택하는 경우, 별도의 프로그램이 하나의 리소스만 인식하였기 때문에, 다른 리소스가 선택되는 경우, 다른 별도의 프로그램이 실행되면서 기존의 리소스에 대한 데이터의 송수신 연결이 해제되었다.Conventionally, when the external electronic device 350 is communicatively connected to the electronic device 300 , a separate program recognizes only one resource among a plurality of resources included in the external electronic device 350 . . Accordingly, in order to recognize at least one of a plurality of resources included in the external electronic device 350, separate programs corresponding thereto are required. In addition, when the user selects at least one of the plurality of resources, since a separate program recognizes only one resource, when another resource is selected, another separate program is executed while the data for the existing resource is stored. The send/receive connection was disconnected.

그러나, 본 발명의 다양한 실시예는 상기 외부 전자 장치(350)가 상기 전자 장치(300)에 연결되면, 상기 전자 장치(300)의 프로세서는 상기 통합 드라이버를 통해, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 모두 인식하고 상기 인식한 복수 개의 리소스들과 관련된 데이터를 처리할 수 있기 때문에, 추가적인 리소스 선택으로 인하여 기존 연결이 해제되지 않고, 상기 외부 전자 장치(350)에 포함된 상기 복수 개의 리소스들을 동적으로 사용할 수 있다.However, according to various embodiments of the present disclosure, when the external electronic device 350 is connected to the electronic device 300 , the processor of the electronic device 300 connects to the external electronic device 350 through the integrated driver. Since it is possible to recognize all the included plurality of resources and process data related to the plurality of recognized resources, the existing connection is not released due to additional resource selection, and the plurality of resources included in the external electronic device 350 are not released. resources can be used dynamically.

상기 전자 장치(300) 및 상기 외부 전자 장치(350)가 연결된 상태에서, 상기 외부 전자 장치(350)의 프로세서는 어플리케이션(Application)(357)을 통해 사용자 입력을 수신하여, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스가 선택되는 것을 인식할 수 있다. 상기 외부 전자 장치(350)는 상기 어플리케이션(357)과 DFP 서비스(DFP Service(355))를 바인드(bind)하고 있는 DFP 설정 매니저(DFP Setting/Manager(356))를 통해 상기 전자 장치(300)를 제어할 수 있다.In a state in which the electronic device 300 and the external electronic device 350 are connected, the processor of the external electronic device 350 receives a user input through an application 357, and the external electronic device 350 ) may recognize that at least one resource is selected from among a plurality of resources included in the . The external electronic device 350 binds the application 357 and the DFP service (DFP Service 355) to the electronic device 300 through a DFP setting manager (DFP Setting/Manager 356). can control

상기 DFP 서비스(355)는 상기 외부 전자 장치(350)의 기 정의된 서비스들을 제어하면서, 상기 어플리케이션(357)으로부터 요청되는 명령을 결정할 수 있어, 상기 외부 전자 장치(350)의 프로세서는 상기 DFP 서비스(355)를 통해 사용자 입력을 수신하여 리소스를 인식할 수 있다. The DFP service 355 may determine a command requested from the application 357 while controlling predefined services of the external electronic device 350 , so that the processor of the external electronic device 350 controls the DFP service. A resource may be recognized by receiving a user input through 355 .

본 발명에서 언급하는 상기 기 정의된 서비스들은 카메라 서비스(Camera service(355d)), 오디오 서비스(Audio service(355e)) 및 생체 인증 서비스(Biometric service(355f))를 포함할 수 있으며, 상기 기 정의된 서비스들은 각각 카메라 매니저(Camera manager(355a)), 오디오 매니저(Audio manager(355b)) 및 생체 인증 매니저(Biometric manager(355c))의 관리 하에 제어될 수 있고, 상기 카메라 매니저(Camera manager(355a)), 오디오 매니저(Audio manager(355b)) 및 생체 인증 매니저(Biometric manager(355c))는 상기 DFP 서비스(355)에 의해 관리될 수 있다.The predefined services mentioned in the present invention may include a camera service (Camera service (355d)), an audio service (Audio service (355e)) and a biometric service (Biometric service (355f)), and the predefined services The designated services may be controlled under the management of a camera manager (Camera manager 355a), an audio manager (Audio manager 355b), and a biometric manager 355c, respectively, and the camera manager 355a )), an audio manager (Audio manager 355b), and a biometric manager 355c) may be managed by the DFP service 355 .

사용자가 선택한 리소스를 인식한 상기 외부 전자 장치(350)의 프로세서는 상기 선택한 리소스와 관련된 데이터를 DFP 데몬(DFP Daemon(354))에 전송할 수 있다. 상기 DFP 데몬(354)은 사용자가 직접적으로 제어하지 않아도 상기 전자 장치(300)의 백그라운드에서 여러 작업을 수행할 수 있어, 상기 DFP 서비스(355)의 요구 사항에 따라 상기 선택한 리소스에 데이터를 기반으로 상기 선택한 리소스의 사용 요청을 등록하고 인증하여, 상기 선택한 기능이 지원되는 전자 장치(300)의 리소스로 상기 외부 전자 장치(350)를 설정할 수 있다.Upon recognizing the resource selected by the user, the processor of the external electronic device 350 may transmit data related to the selected resource to the DFP daemon 354 . The DFP daemon 354 can perform various tasks in the background of the electronic device 300 without direct control by the user, so that the DFP service 355 is based on data in the selected resource according to the requirements of the DFP service 355 . By registering and authenticating a request for use of the selected resource, the external electronic device 350 may be set as a resource of the electronic device 300 supporting the selected function.

또한, 상기 외부 전자 장치(350)에 포함된 DFP HAL(354a)은 상기 외부 전자 장치(350)에서 기 정의된 리소스의 HAL들(예: 카메라 HAL(Camera HAL(351f)), 오디오 HAL(Audio HAL(351g)), 센서 HAL(Sensors HAL(351h)) 및/또는 지문 인증 HAL(Finger print HAL(352b)))의 인스턴스(instance)를 생성 및 관리할 수 있다. 상기 DFP HAL(354a)은 상기 외부 전자 장치(350)의 물리적인 하드웨어와 상기 외부 전자 장치(350)에서 실행되는 소프트웨어 사이의 추상화 계층으로, 상기 소프트웨어가 상기 물리적인 하드웨어에 직접 접근하는 것을 방지하고, 응용 프로그램(예: 어플리케이션(357))이 작동할 수 있는 플랫폼(예: DFP Service(355))를 제공할 수 있다.In addition, the DFP HAL 354a included in the external electronic device 350 includes HALs (eg, Camera HAL 351f) of a resource predefined in the external electronic device 350, and Audio HAL (Audio HAL). HAL (351g)), sensor HAL (Sensors HAL (351h)) and / or fingerprint authentication HAL (Finger print HAL (352b))) may be created and managed. The DFP HAL 354a is an abstraction layer between the physical hardware of the external electronic device 350 and software executed in the external electronic device 350, and prevents the software from directly accessing the physical hardware and , may provide a platform (eg, DFP Service 355) on which applications (eg, application 357) can operate.

안드로이드 공용 하드웨어(Android common h/w(351))는 상기 외부 전자 장치(350)에 배치된 센서, 카메라, 오디오, USB(universal serial bus)를 포함할 수 있다. 이외에도, 상기 안드로이드 공용 하드웨어(351)는 상기 전자 장치에 포함된 하드웨어 장치를 포함할 수 있다. Android common hardware (Android common h/w 351 ) may include a sensor, a camera, audio, and a universal serial bus (USB) disposed in the external electronic device 350 . In addition, the Android common hardware 351 may include a hardware device included in the electronic device.

안드로이드 생체 인식 장치(Android biometrics devices(352))는 지문 인식 장치, 얼굴 인식 장치를 포함할 수 있다.The Android biometrics devices 352 may include a fingerprint recognition device and a face recognition device.

카메라 드라이버(camera driver(351c))는 상기 외부 전자 장치(350)에 포함된 카메라를 제어하기 위하여, 상기 외부 전자 장치(350)에서 커널의 일부분으로 동작하는 프로그램일 수 있다.The camera driver 351c may be a program that operates as a part of a kernel in the external electronic device 350 to control a camera included in the external electronic device 350 .

오디오 드라이버(audio driver(351d))는 상기 외부 전자 장치(350)에 포함된 오디오 모듈을 제어하기 위하여, 상기 외부 전자 장치(350)에서 커널의 일부분으로 동작하는 프로그램일 수 있다.The audio driver 351d may be a program that operates as a part of a kernel in the external electronic device 350 to control an audio module included in the external electronic device 350 .

센서 드라이버(sensors driver(351e))는 상기 외부 전자 장치(350)에 포함된 센서 예컨대, 생체 인식 센서, 자이로 센서, 광학 센서 및 압력 센서와 같은 여러가지 센서를 제어하기 위하여, 상기 외부 전자 장치(350)의 커널의 일부분으로 동작하는 프로그램일 수 있다.A sensor driver 351e is configured to control various sensors included in the external electronic device 350 , such as a biometric sensor, a gyro sensor, an optical sensor, and a pressure sensor, the external electronic device 350 . ) may be a program running as a part of the kernel.

지문 인식 드라이버(fingerprint driver(352b))는 상기 외부 전자 장치(350)에 포함된 지문 인식 모듈을 제어하기 위하여, 상기 외부 전자 장치(350)에서 커널의 일부분으로 동작하는 프로그램일 수 있다.The fingerprint driver 352b may be a program that operates as a part of a kernel in the external electronic device 350 to control the fingerprint recognition module included in the external electronic device 350 .

카메라 HAL(camera HAL(351f))은 상기 외부 전자 장치(350)의 카메라 모듈을 통해 획득한 데이터를 처리하는 상기 외부 전자 장치(350)에 포함된 어플리케이션(357)이 상기 카메라 모듈에 직접 접근하는 것을 방지할 수 있다. 또한, 상기 어플리케이션(357)이 상기 카메라 모듈로부터 획득한 데이터를 사용할 수 있도록 일관된 플랫폼(예: DFP service(355))을 제공할 수 있다.A camera HAL (351f) is an application 357 included in the external electronic device 350 that processes data acquired through the camera module of the external electronic device 350 directly accesses the camera module. it can be prevented Also, a consistent platform (eg, DFP service 355) may be provided so that the application 357 can use the data acquired from the camera module.

오디오 HAL(audio HAL(351g))은 상기 외부 전자 장치(350)의 오디오 모듈을 통해 획득한 데이터를 처리하는 상기 외부 전자 장치(350)에 포함된 어플리케이션(357)이 상기 오디오 모듈에 직접 접근하는 것을 방지할 수 있다. 또한, 상기 어플리케이션(357)이 상기 오디오 모듈로부터 획득한 데이터를 사용할 수 있도록 일관된 플랫폼(예: DFP service(355))을 제공할 수 있다.An audio HAL (351g) is a method in which an application 357 included in the external electronic device 350 that processes data acquired through an audio module of the external electronic device 350 directly accesses the audio module. it can be prevented Also, a consistent platform (eg, DFP service 355) may be provided so that the application 357 can use the data obtained from the audio module.

센서 HAL(sensors HAL(351h))은 상기 외부 전자 장치(350)에 포함된 여러가지 센서 모듈 예컨대, 생체 인식 센서, 광학 센서, 자이로 센서, 압력 센서와 같은 센서로부터 획득한 데이터를 처리하는 상기 외부 전자 장치(350)에 포함된 어플리케이션(357)이 상기 센서들에 직접 접근하는 것을 방지할 수 있다. 또한, 상기 어플리케이션(357)이 상기 센서로부터 획득한 데이터를 처리할 수 있도록 일관된 플랫폼(예: DFP service(355))을 제공할 수 있다.The sensor HAL (sensors HAL 351h) is an external electronic device that processes data obtained from various sensor modules included in the external electronic device 350, for example, a biometric sensor, an optical sensor, a gyro sensor, and a pressure sensor. An application 357 included in the device 350 may prevent direct access to the sensors. In addition, a consistent platform (eg, DFP service 355) may be provided so that the application 357 may process the data obtained from the sensor.

지문 인식 HAL(fingerprint HAL(352b))은 상기 외부 전자 장치(350)에 포함된 지문 인식 모듈로부터 획득한 데이터를 처리하는 상기 외부 전자 장치(350)에 포함된 어플리케이션(357)이 상기 지문 인식 모듈에 직접 접근하는 것을 방지할 수 있다. 또한, 상기 어플리케이션(357)이 상기 지문 인식 모듈로부터 획득한 데이터를 처리할 수 있도록 일관된 플랫폼(예: DFP service(355))을 제공할 수 있다.The fingerprint recognition HAL (fingerprint HAL 352b) is an application 357 included in the external electronic device 350 that processes data obtained from a fingerprint recognition module included in the external electronic device 350 is the fingerprint recognition module direct access to the In addition, a consistent platform (eg, DFP service 355) may be provided so that the application 357 may process the data obtained from the fingerprint recognition module.

일 실시예에 따르면, 상기 외부 전자 장치(350)의 프로세서가 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들 중 지문 센서를 사용하겠다는 사용자 요청에 관한 입력을 수신하면, 상기 외부 전자 장치(350)의 프로세서는 상기 요청을 기반으로 상기 DFP 서비스(355)가 관리하고 있는 기 정의된 서비스들 중 생체 인증 서비스(355f)를 인식할 수 있다.According to an embodiment, when the processor of the external electronic device 350 receives an input related to a user request to use a fingerprint sensor among a plurality of resources included in the external electronic device 350, the external electronic device ( The processor of 350 may recognize the biometric authentication service 355f from among the predefined services managed by the DFP service 355 based on the request.

상기 외부 전자 장치(350)의 프로세서가 상기 DFP 서비스(355)를 통해 상기 생체 인증 서비스(355f)를 인식하면, 상기 생체 인증 서비스(355f)를 사용하겠다는 요구사항을 상기 DFP 데몬(354)에 전송하고, 상기 외부 전자 장치(350)의 프로세서는 상기 DFP 데몬(354)을 통해 상기 요구사항을 처리할 수 있다. 상기 외부 전자 장치(350)의 프로세서는 상기 외부 전자 장치(350)에 포함된 상기 지문 센서를 사용할 수 있도록 상기 요구사항을 등록하고, 인증할 수 있다. 상기 동작을 수행한 상기 외부 전자 장치(350)의 프로세서는 상기 DFP HAL(354a)이 관리하고 있는 상기 지문 센서와 관련된 데이터를 처리하도록 할 수 있다. 이 과정에서, 상기 외부 전자 장치(350)의 프로세서는 상기 외부 전자 장치(350)를 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 기능을 지원하는 리소스로 설정할 수 있다. When the processor of the external electronic device 350 recognizes the biometric authentication service 355f through the DFP service 355 , it transmits a request to use the biometric authentication service 355f to the DFP daemon 354 . and the processor of the external electronic device 350 may process the request through the DFP daemon 354 . The processor of the external electronic device 350 may register and authenticate the requirement to use the fingerprint sensor included in the external electronic device 350 . The processor of the external electronic device 350 that has performed the operation may process data related to the fingerprint sensor managed by the DFP HAL 354a. In this process, the processor of the external electronic device 350 may set the external electronic device 350 as a resource supporting a function related to at least one resource among a plurality of resources.

상기 외부 전자 장치(350)가 상기 전자 장치(300)의 리소스로 설정되는 경우, 상기 외부 전자 장치(350)의 프로세서는 상기 지문 센서와 관련된 데이터를 USB/IP(예: 통신 모듈)를 통해 상기 전자 장치(300)에 전송할 수 있다. 상기 데이터(예: 지문 센서와 관련된 데이터)를 전송하는 방식은 USB/IP방식에 한정되지 않으며 유선 네트워크 및/또는 무선 네트워크를 포함할 수 있다. 상기 전자 장치(300)의 프로세서는 상기 외부 전자 장치(350)로부터 상기 데이터(예: 지문 센서와 관련된 데이터)가 수신되면, 상기 장치 드라이버 다이나믹 로더(307)를 통해 상기 전자 장치(300)의 드라이버를 지문 센서와 관련된 드라이버로 동적으로 적용할 수 있어, 상기 전자 장치(300)의 프로세서가 상기 외부 전자 장치(350)를 상기 지문 센서 기능이 지원되는 리소스로 인식할 수 있다. When the external electronic device 350 is set as a resource of the electronic device 300 , the processor of the external electronic device 350 transmits data related to the fingerprint sensor through USB/IP (eg, a communication module). It can be transmitted to the electronic device 300 . The method of transmitting the data (eg, data related to the fingerprint sensor) is not limited to the USB/IP method and may include a wired network and/or a wireless network. When the processor of the electronic device 300 receives the data (eg, data related to a fingerprint sensor) from the external electronic device 350 , the processor of the electronic device 300 uses the device driver dynamic loader 307 to drive the electronic device 300 . can be dynamically applied as a driver related to the fingerprint sensor, so that the processor of the electronic device 300 can recognize the external electronic device 350 as a resource supporting the fingerprint sensor function.

상기 전자 장치(300)의 프로세서가 상기 외부 전자 장치(350)를 리소스로 인식하는 경우, 상기 외부 전자 장치(350)로부터 전송되는 상기 데이터를 상기 장치 드라이버 다이나믹 로더(307)를 통해 상기 데이터의 리소스 타입을 식별할 수 있다. 이 후, 상기 전자 장치(300)가 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 동적으로 사용할 수 있도록 상기 식별된 데이터를 기반으로 상기 전자 장치(300)의 드라이버를 동적으로 적용할 수 있다. When the processor of the electronic device 300 recognizes the external electronic device 350 as a resource, the data transmitted from the external electronic device 350 is used as a resource of the data through the device driver dynamic loader 307 . type can be identified. Thereafter, the driver of the electronic device 300 may be dynamically applied based on the identified data so that the electronic device 300 can dynamically use the plurality of resources included in the external electronic device 350 . there is.

상기 전자 장치(300)의 드라이버가 적용되면, 상기 전자 장치(300)의 프로세서는 상기 외부 전자 장치(350)로부터 전송되는 상기 데이터를 스트리머(Streamer(304))를 통해 장치 드라이버 다이나믹 로더(307)에 적합하도록 변환하여 상기 DFP 서비스(305)에 제공할 수 있다. 상기 스트리머(304)는 A/V 스트리머(A/V streamer(304a)) 및 센서 스트리머(sensor streamer(304b 및 304c))를 포함할 수 있다. 상기 A/V 스트리머(304a)는 오디오(audio) 데이터와 비디오(video) 데이터를 선택된 상기 장치 드라이버 다이나믹 로더(307)에 적합하도록 변환할 수 있다.When the driver of the electronic device 300 is applied, the processor of the electronic device 300 transmits the data transmitted from the external electronic device 350 to the device driver dynamic loader 307 through a streamer 304 . ) may be converted and provided to the DFP service 305 . The streamer 304 may include an A/V streamer (A/V streamer 304a) and a sensor streamer (sensor streamer 304b and 304c). The A/V streamer 304a may convert audio data and video data to be suitable for the selected device driver dynamic loader 307 .

상기 센서 스트리머(304b 및 304c)는 상기 외부 전자 장치에 포함된 센서 예컨대, 자이로 센서, 광학 센서 및 생체 인식 센서 등에서 획득한 센서 데이터를 선택된 상기 장치 드라이버 다이나믹 로더(307)에 적합하도록 변환할 수 있다.The sensor streamers 304b and 304c may convert sensor data obtained from a sensor included in the external electronic device, such as a gyro sensor, an optical sensor, and a biometric sensor, to be suitable for the selected device driver dynamic loader 307. there is.

상기 전자 장치(300)에 포함된 DFP 서비스(305)는 상기 데이터를 리소스 타입에 따라 식별하고, 상기 타입에 따른 raw data를 상기 장치 드라이버 다이나믹 로더(307)에 제공하여, 상기 장치 드라이버 다이나믹 로더(307)가 상기 raw data를 처리하도록 할 수 있다.The DFP service 305 included in the electronic device 300 identifies the data according to the resource type, and provides raw data according to the type to the device driver dynamic loader 307, so that the device driver dynamic loader ( 307) to process the raw data.

일 실시예에 따르면, 상기 전자 장치(300)가 상기 외부 전자 장치(350)를 지문 센서 기능을 지원하는 리소스로 인식한 경우, 상기 외부 전자 장치(350)가 사용자 입력에 의한 지문 센서와 관련된 데이터를 수신하면, 상기 외부 전자 장치(350)의 프로세서는 USB/IP 데몬(USB/IP Daemon(353))을 제어하여, USB 서비스(USB Service(353a)) 및 USB 드라이버(USB Driver(351a))를 통해 상기 지문 센서와 관련된 데이터를 상기 전자 장치(300)의 USB 호스트 컨트롤러(USB Host Controller(301))에 전송할 수 있다. 상기 USB 호스트 컨트롤러(301)는 USB 드라이버 스택(USB Driver Stack(302))을 통해 상기 지문 센서와 관련된 데이터를 상기 DFP 서비스(305)에 전송할 수 있는데, 상기 지문 센서와 관련된 데이터는 상기 스트리머(304)에 의해 상기 장치 드라이버 다이나믹 로더(307)에 적합하도록 변환될 수 있다.According to an embodiment, when the electronic device 300 recognizes the external electronic device 350 as a resource supporting a fingerprint sensor function, the external electronic device 350 transmits data related to the fingerprint sensor by a user input. Upon receiving , the processor of the external electronic device 350 controls the USB/IP daemon (USB/IP Daemon 353) to provide a USB service (USB Service 353a) and a USB driver (USB Driver 351a). data related to the fingerprint sensor may be transmitted to the USB host controller (USB Host Controller 301 ) of the electronic device 300 through . The USB host controller 301 may transmit data related to the fingerprint sensor to the DFP service 305 through a USB driver stack 302, and the data related to the fingerprint sensor is transmitted to the streamer ( 304 ) to suit the device driver dynamic loader 307 .

상기 전자 장치(300)에 포함된 사용자 모드 드라이버(311)는 오디오/비디오 드라이버(A/V driver(311a)), 생체 인식 드라이버(Biometrics driver(311b)) 및 센서 드라이버(Sensor driver(311c))를 포함할 수 있다. 상기 사용자 모드 드라이버(311)가 동작되기 위해선 상기 전자 장치(300)가 사용자 모드(User mode)에 진입하여야 한다. 상기 사용자 모드는 상기 전자 장치(300)에 포함된 응용 어플리케이션(308)이 상기 전자 장치(300)의 운영 체제 데이터에 직접 접근하여 데이터를 수정하거나 삭제하는 것을 방지하는 모드일 수 있다. 상기 사용자 모드 드라이버(311)는 상기 전자 장치(300)가 사용자 모드일 때, 동작하는 프로그램일 수 있다. The user mode driver 311 included in the electronic device 300 includes an audio/video driver (A/V driver (311a)), a biometrics driver (311b), and a sensor driver (Sensor driver (311c)). may include. In order for the user mode driver 311 to operate, the electronic device 300 must enter a user mode. The user mode may be a mode for preventing the application application 308 included in the electronic device 300 from directly accessing the operating system data of the electronic device 300 to modify or delete data. The user mode driver 311 may be a program that operates when the electronic device 300 is in a user mode.

상기 사용자 모드 드라이버(311)에 포함된 상기 오디오/비디오 드라이버(311a)는 상기 전자 장치(300)에서 상기 외부 전자 장치(350)의 오디오 모듈 및 비디오 모듈을 제어할 수 있도록 하는 프로그램일 수 있다.The audio/video driver 311a included in the user mode driver 311 may be a program that allows the electronic device 300 to control an audio module and a video module of the external electronic device 350 .

상기 생체 인식 드라이버(311b)는 상기 전자 장치(300)에서 상기 외부 전자 장치(350)의 생체 인식 모듈 예컨대, 홍채 인식과 관련된 모듈, 음성 인식과 관련된 모듈 및 안면 인식과 관련된 모듈을 제어할 수 있도록 하는 프로그램일 수 있다.The biometric driver 311b enables the electronic device 300 to control a biometric module of the external electronic device 350, for example, a module related to iris recognition, a module related to voice recognition, and a module related to face recognition. It could be a program that

상기 센서 드라이버(311c)는 상기 전자 장치(300)에서 상기 외부 전자 장치(350)에 포함된 센서 예컨대, 자이로 센서, 근접 센서, 가속 센서 및 RGB 센서를 제어할 수 있도록 하는 프로그램일 수 있다. 상기 센서는 이에 한정되지 않는다.The sensor driver 311c may be a program that enables the electronic device 300 to control sensors included in the external electronic device 350 , for example, a gyro sensor, a proximity sensor, an acceleration sensor, and an RGB sensor. The sensor is not limited thereto.

상기 전자 장치(300)의 프로세서는 상기 전자 장치(300)의 응용 어플리케이션(308)을 통해 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들을 제어할 수 있다. 상기 전자 장치(300)의 프로세서는 상기 응용 어플리케이션(308)을 제어하여, USB/IP LIB(310)이 수신한 사용자가 선택한 리소스와 관련된 데이터를 소켓(socket(309))을 통해 수신할 수 있다. 또한 상기 응용 어플리케이션(308)을 제어하여, 상기 소켓(309) 및 상기 USB/IP LIB(310)을 통해 상기 외부 전자 장치(350)의 복수 개의 리소스들 중 적어도 하나의 리소스를 제어할 수 있다.The processor of the electronic device 300 may control a plurality of resources included in the external electronic device 350 through the application 308 of the electronic device 300 . The processor of the electronic device 300 may control the application application 308 to receive data related to the resource selected by the user received by the USB/IP LIB 310 through the socket 309 . . Also, by controlling the application 308 , at least one resource among a plurality of resources of the external electronic device 350 may be controlled through the socket 309 and the USB/IP LIB 310 .

상기 전자 장치(300)에 포함된 소켓(socket(309))은 USB/IP 립(USB/IP LIB)이 수신한 데이터를 상기 응용 어플리케이션(308)에 전송하기 위한 추상적인 포트일 수 있다.The socket (socket 309 ) included in the electronic device 300 may be an abstract port for transmitting data received by the USB/IP LIB to the application application 308 .

즉, 상기 외부 전자 장치(350)에서 전송되는 사용자가 선택한 리소스와 관련된 데이터를 처리하기 위하여, 상기 전자 장치(300)에 포함된 상기 장치 드라이버 다이나믹 로더(307)가 상기 전자 장치(300)의 드라이버를 상기 수신한 리소스에 적합하도록 변경하면, 상기 전자 장치(300)의 프로세서는 상기 응용 프로그램(300)을 통해 상기 외부 전자 장치(300)의 복수 개의 리소스들 중 적어도 하나를 제어할 수 있다.That is, in order to process data related to a resource selected by a user transmitted from the external electronic device 350 , the device driver dynamic loader 307 included in the electronic device 300 is a driver of the electronic device 300 . is changed to suit the received resource, the processor of the electronic device 300 may control at least one of a plurality of resources of the external electronic device 300 through the application program 300 .

상기 전자 장치(300)의 프로세서는 상기 변환된 데이터(예: 장치 드라이버 다이나믹 로더에 적합하도록 변환된 지문 센서와 관련된 데이터)를 리소스 타입(예: 지문 센서)에 따라, 상기 변환된 데이터의 raw data를 상기 DFP 서비스(305)를 통해 DFP 립(DFP Lib(306))에 전송할 수 있다. 상기 DFP 립(306)은 상기 장치 드라이버 다이나믹 로더(307)와 상기 DFP 서비스(305)가 데이터를 통신하도록 하는 API library일 수 있다. 상기 DFP 립(306)을 통해 상기 raw data를 수신한 상기 장치 드라이버 다이나믹 로더(307)는 상기 raw data를 처리하여, 상기 외부 전자 장치(350)를 지문 센서 기능이 지원되는 리소스로 이용할 수 있다.The processor of the electronic device 300 converts the converted data (eg, data related to a fingerprint sensor converted to be suitable for a device driver dynamic loader) according to a resource type (eg, a fingerprint sensor) as raw data of the converted data. can be transmitted to the DFP Lib (DFP Lib 306) through the DFP service 305. The DFP lip 306 may be an API library that allows the device driver dynamic loader 307 and the DFP service 305 to communicate data. The device driver dynamic loader 307 that has received the raw data through the DFP lip 306 may process the raw data and use the external electronic device 350 as a resource supporting a fingerprint sensor function.

본 발명의 일 실시예에 따르면, 상기 외부 전자 장치(350)의 프로세서는 상기 전자 장치(300)에 상기 지문 센서와 관련된 데이터를 전송하면서, 상기 외부 전자 장치(350)에 포함된 복수 개의 리소스들 중 카메라를 추가적으로 선택하는 사용자 입력을 수신할 수 있다. 상기 외부 전자 장치(350)에 포함된 상기 어플리케이션(357)과 상기 DFP 서비스(355)를 바인드하고 있는 상기 DFP 설정 매니저(356)를 통해 상기 수신한 사용자 입력이 상기 카메라를 선택한 것을 인식할 수 있다. 상기 사용자 입력에 의해 상기 카메라가 추가로 선택된 것을 인식한 상기 외부 전자 장치(350)의 프로세서는 상기 카메라와 관련된 데이터를 상기 DFP 데몬(354)에 전송할 수 있다. 상기 외부 전자 장치(350)의 프로세서는 상기 DFP 데몬(354)을 통해 상기 DFP 서비스(355)의 요구 사항에 따라 상기 카메라에 대한 사용 권한을 등록하고 상기 등록을 인증하면, 상기 외부 전자 장치(350)의 지문 센서와 더불어, 카메라를 전자 장치(300)의 리소스로 설정할 수 있다.According to an embodiment of the present invention, the processor of the external electronic device 350 transmits data related to the fingerprint sensor to the electronic device 300 while transmitting data related to the fingerprint sensor to the plurality of resources included in the external electronic device 350 . A user input for additionally selecting a camera may be received. It can recognize that the camera is selected by the received user input through the DFP setting manager 356 that binds the application 357 and the DFP service 355 included in the external electronic device 350 . . The processor of the external electronic device 350 recognizing that the camera is additionally selected by the user input may transmit data related to the camera to the DFP daemon 354 . When the processor of the external electronic device 350 registers the right to use the camera according to the requirement of the DFP service 355 through the DFP daemon 354 and authenticates the registration, the external electronic device 350 ) together with the fingerprint sensor, the camera may be set as a resource of the electronic device 300 .

상기 동작을 수행한 상기 외부 전자 장치(350)가 상기 전자 장치(300)의 리소스로 설정되면, 상기 외부 전자 장치(350)의 프로세서는 유선 네트워크 및/또는 무선 네트워크를 통해 기존의 전송하고 있던 지문 센서와 관련된 데이터와 추가로 설정된 상기 카메라와 관련된 데이터를 상기 전자 장치(300)에 전송할 수 있다.When the external electronic device 350 that has performed the operation is set as the resource of the electronic device 300 , the processor of the external electronic device 350 performs the existing transmission of the fingerprint through a wired network and/or a wireless network. Data related to the sensor and data related to the additionally set camera may be transmitted to the electronic device 300 .

상기 전자 장치(300)가 상기 지문 센서와 관련된 데이터 및 상기 카메라와 관련된 데이터를 수신하면, 상기 전자 장치(300)의 프로세서는 상기 장치 드라이버 다이나믹 로더(307)를 통해 상기 카메라와 관련된 데이터의 리소스 타입(예: 카메라)을 식별하고, 처리할 수 있다. 상기 과정을 수행한 상기 전자 장치(300)의 프로세서는 상기 장치 드라이버 다이나믹 로더(307)를 통해 상기 카메라와 관련된 드라이버를 추가적으로 적용할 수 있다. 상기 전자 장치(300)의 프로세서는 카메라와 관련된 드라이버를 추가적으로 적용한 후, 상기 데이터의 입출력을 재지정하여 상기 외부 전자 장치(350)로부터 지문 센서와 관련된 데이터 및 카메라와 관련된 데이터를 수신하여, 상기 데이터들의 raw data를 처리할 수 있기 때문에, 리소스 추가에 따른 데이터 입출력을 전환하지 않고 상기 외부 전자 장치(350)를 리소스로 사용할 수 있다.When the electronic device 300 receives the data related to the fingerprint sensor and the data related to the camera, the processor of the electronic device 300 determines the resource type of the data related to the camera through the device driver dynamic loader 307 . (eg cameras) can be identified and processed. The processor of the electronic device 300 that has performed the above process may additionally apply a driver related to the camera through the device driver dynamic loader 307 . The processor of the electronic device 300 additionally applies a driver related to a camera, and then redirects the input/output of the data to receive the data related to the fingerprint sensor and the data related to the camera from the external electronic device 350, Since raw data can be processed, the external electronic device 350 can be used as a resource without switching data input/output according to the addition of the resource.

또한, 본 발명의 다양한 실시예는 전자 장치가 외부 전자 장치와 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스를 인식할 수 있을 뿐만 아니라, 어플리케이션(예: Dex app)을 통해 사용자 입력을 수신하여 상기 사용자 입력을 기반으로 복수 개의 리소스들 중 적어도 하나의 리소스를 인식하여 상기 외부 전자 장치를 상기 전자 장치의 리소스로 설정할 수 있다. 상기와 관련하여, 도 4 및 도 5는 사용자 입력을 기반으로 상기 외부 전자 장치를 상기 전자 장치의 리소스로 설정하는 방법에 관한 도면이다.Also, according to various embodiments of the present disclosure, when an electronic device is connected to an external electronic device, at least one resource among a plurality of resources included in the external electronic device may be recognized through an integrated driver, and an application (eg, : Dex app) may receive a user input, recognize at least one resource among a plurality of resources based on the user input, and set the external electronic device as a resource of the electronic device. In relation to the above, FIGS. 4 and 5 are diagrams of a method of setting the external electronic device as a resource of the electronic device based on a user input.

도 4는 본 발명의 일 실시예에 따른, 외부 전자 장치의 지문 인증과 관련된 리소스를 인식하는 방법을 설명하기 위한 도면이다.4 is a diagram for explaining a method of recognizing a resource related to fingerprint authentication of an external electronic device according to an embodiment of the present invention.

도 4를 참조하면, 상기 외부 전자 장치(450)(예: 도 2의 외부 전자 장치(280))의 프로세서가 어플리케이션(예: 덱스 어플리케이션(Dex app(451))을 통해 지문 센서를 선택하는 사용자 입력을 수신하면, 상기 전자 장치(400)(예: 도 2의 전자 장치(200))는 상기 외부 전자 장치(450)(예: 도 2의 외부 전자 장치(280))를 지문 센서로 설정하기 위해, 상기 외부 전자 장치(450)로부터 지문 센서와 관련된 데이터를 수신할 수 있다.Referring to FIG. 4 , a user in which a processor of the external electronic device 450 (eg, the external electronic device 280 of FIG. 2 ) selects a fingerprint sensor through an application (eg, a Dex app 451 ). Upon receiving the input, the electronic device 400 (eg, the electronic device 200 of FIG. 2 ) sets the external electronic device 450 (eg, the external electronic device 280 of FIG. 2 ) as a fingerprint sensor. For this, data related to the fingerprint sensor may be received from the external electronic device 450 .

상기 전자 장치(400)에 상기 외부 전자 장치(450)가 USB/IP 방식으로 연결되는 경우, 상기 외부 전자 장치(450)의 프로세서는 덱스 어플리케이션(451)을 통해 상기 외부 전자 장치(450)를 지문 센서로 사용하겠다는 사용자 입력을 수신할 수 있다. 이 때, 상기 전자 장치(400)와 상기 외부 전자 장치(450)의 통신 방식이 USB/IP 방식으로만 한정되는 것은 아니며, 무선 네트워크 및/또는 유선 네트워크 방식으로 연결될 수 있다. When the external electronic device 450 is connected to the electronic device 400 by the USB/IP method, the processor of the external electronic device 450 prints the fingerprint of the external electronic device 450 through the Dex application 451 . It may receive a user input to use it as a sensor. In this case, the communication method between the electronic device 400 and the external electronic device 450 is not limited to the USB/IP method, and may be connected through a wireless network and/or a wired network method.

상기 덱스 어플리케이션(451)을 통해 사용자 입력을 수신한 상기 외부 전자 장치(450)의 프로세서는 덱스 서비스(Dex service(452))에 상기 외부 전자 장치를 지문 센서로 설정하라는 요청(Request set device as finger print(451a))을 전송할 수 있다. 상기 요청(451a)을 수신한 상기 덱스 서비스(452)는 상기 외부 전자 장치를 상기 지문 센서로 사용하기 위해, 덱스 데몬(453)에 상기 지문센서의 데이터 스트림을 수신하라는 요청(Request subscribe to receive stream for selected device(452a))을 전송할 수 있다. 상기 요청(452a)을 수신한 상기 덱스 데몬(453)은 상기 지문 센서와 관련된 데이터를 처리하기 위해 안드로이드 HAL(Android HAL(454))에 상기 지문 센서와 관련된 드라이버의 실행을 요청(Subscribe finger print device driver(453a))하여 상기 외부 전자 장치(450)를 상기 전자 장치(400)의 지문 센서로 설정할 수 있다. 이때, 상기 안드로이드 HAL(454)은 상기 외부 전자 장치(450)가 상기 전자 장치(400)와 통신 연결이 유지되고 있는지 확인(USB connected(454a))할 수 있다.Upon receiving the user input through the Dex application 451, the processor of the external electronic device 450 requests a Dex service 452 to set the external electronic device as a fingerprint sensor (Request set device as finger). print(451a)) can be sent. Upon receiving the request 451a, the Dex service 452 requests the Dex daemon 453 to receive the data stream of the fingerprint sensor in order to use the external electronic device as the fingerprint sensor (Request subscribe to receive stream). for selected device (452a)) may be transmitted. Upon receiving the request 452a, the Dex daemon 453 requests execution of a driver related to the fingerprint sensor to the Android HAL (Android HAL 454) to process the data related to the fingerprint sensor (Subscribe finger print device) driver 453a) to set the external electronic device 450 as a fingerprint sensor of the electronic device 400 . In this case, the Android HAL 454 may check whether the external electronic device 450 maintains a communication connection with the electronic device 400 (USB connected 454a).

또한, 상기 외부 전자 장치(450)의 덱스 서비스(452)는 상기 전자 장치(400)의 덱스 시스템 서비스(Dex system service(401))에 상기 외부 전자 장치(450)를 상기 지문 센서로 설정하라는 요청(Request set device as finger print(452b))을 전송할 수 있다. 상기 요청(452b)을 수신한 상기 덱스 시스템 서비스(401)는 다이나믹 로더 프로세스(Dynamic loader proc(402))에 지문 센서와 관련된 드라이버를 동적으로 로드(load)하기 위한 요청(Request finger print driver dynamically(401a))을 전송하고, 드라이버 커널(Driver kernel(403))에 상기 지문 센서와 관련된 드라이버를 상기 드라이버 커널(403)에 등록하기 위한 요청(Register to driver kernel(401b))을 전송할 수 있다.In addition, the Dex service 452 of the external electronic device 450 requests a Dex system service 401 of the electronic device 400 to set the external electronic device 450 as the fingerprint sensor. (Request set device as finger print(452b)) may be transmitted. Upon receiving the request 452b, the DEX system service 401 requests a dynamic loader process (Dynamic loader proc 402) to dynamically load a driver related to a fingerprint sensor (Request finger print driver dynamically ( 401a)), and a request (Register to driver kernel 401b) for registering a driver related to the fingerprint sensor to the driver kernel 403 to the driver kernel 403 may be transmitted.

상기 요청(401b)이 전송되면, 상기 드라이버 커널(403)은 상기 지문 센서와 관련된 데이터를 상기 외부 전자 장치(450)로부터 수신하기 위해 데이터의 입출력을 재지정(I/O Redirection(403a)) 및 지문 센서와 관련된 USB 입출력 시스템의 호출(USB I/O system call(403b))을 상기 다이나믹 로더 프로세스(402)에 요청할 수 있다.When the request 401b is transmitted, the driver kernel 403 redirects input/output of data to receive data related to the fingerprint sensor from the external electronic device 450 (I/O Redirection 403a) and A call (USB I/O system call 403b) of the USB input/output system related to the fingerprint sensor may be requested from the dynamic loader process 402 .

상기 요청들(403a 및 403b)이 상기 다이나믹 로더 프로세스(402)에 전송되면, 상기 드라이버 커널(403)은 상기 지문 센서와 관련된 드라이버가 등록 완료 (403c)되었음을 상기 덱스 시스템 서비스(401)에 전송할 수 있다. 이 후, 상기 덱스 시스템 서비스(401)는 상기 드라이버 커널(403)에 상기 지문 센서와 관련된 데이터를 수신할 준비가 완료(401c)되었다고 전송하고, 상기 외부 전자 장치(450)의 상기 덱스 서비스(452)에 상기 지문 센서와 관련된 데이터를 수신할 준비가 완료(401d)되었다고 전송할 수 있다.When the requests 403a and 403b are sent to the dynamic loader process 402, the driver kernel 403 may transmit to the Dex system service 401 that the driver related to the fingerprint sensor has been registered (403c). there is. Thereafter, the DEX system service 401 transmits to the driver kernel 403 that the ready to receive data related to the fingerprint sensor is completed (401c), and the DEX service 452 of the external electronic device 450 is ) can be transmitted that the readiness to receive data related to the fingerprint sensor is completed (401d).

상기 덱스 시스템 서비스(401)로부터 상기 지문 센서와 관련된 데이터를 수신할 준비가 완료(401d)되었다고 수신한 상기 덱스 서비스(452)는 사용자가 상기 외부 전자 장치(450)를 이용해 지문 인증을 하는 경우, 상기 덱스 시스템 서비스(401)에 상기 지문 센서와 관련된 데이터 스트림을 전송(452c)하며, 상기 전자 장치(400)가 상기 외부 전자 장치(450)를 지문 센서로 사용하도록 할 수 있다.When the Dex service 452 receives that the data related to the fingerprint sensor is ready (401d) from the Dex system service 401, when the user performs fingerprint authentication using the external electronic device 450, The data stream related to the fingerprint sensor may be transmitted (452c) to the DEX system service 401, and the electronic device 400 may use the external electronic device 450 as a fingerprint sensor.

도 5는 본 발명의 일 실시예에 따른, 외부 전자 장치로부터 데이터를 수신 받아 처리하는 방법을 설명하기 위한 도면이다.5 is a diagram for explaining a method of receiving and processing data from an external electronic device, according to an embodiment of the present invention.

도 5를 참조하면, 전자 장치(500)(예: 도 2의 전자 장치(200))는 외부 전자 장치(550)(예: 도 2의 외부 전자 장치(280)를 카메라로 설정한 후, 상기 외부 전자 장치(550)로부터 데이터를 전송받아 처리할 수 있다.Referring to FIG. 5 , the electronic device 500 (eg, the electronic device 200 of FIG. 2 ) sets the external electronic device 550 (eg, the external electronic device 280 of FIG. 2 ) as a camera, and then Data may be received and processed from the external electronic device 550 .

상기 전자 장치(500)와 상기 외부 전자 장치(550)가 연결되어 있을 경우, DFP 윈도우 서비스(DFP Windows Service(530))는 DFP 장치 드라이버(DFP Device Driver(520))로부터 상기 외부 전자 장치(550)에 포함된 복수 개의 리소스들과 관련된 데이터를 등록(Register callback(530a))할 수 있다. 상기 전자 장치(500)의 프로세서가 상기 전자 장치(500)에 설치된 응용 어플리케이션(예: 3rd App(510))을 통해 프리뷰 이미지를 요청(request preview(500a))하는 사용자 입력을 수신할 수 있다. 상기 응용 어플리케이션(510)을 통해 상기 요청(500a)을 수신한 상기 전자 장치(500)의 프로세서는 상기 외부 전자 장치(550)가 포함하고 있는 복수 개의 리소스들 중 상기 요청(500a)과 관련된 리소스인 카메라를 사용할 것이라는 요청(get device(510a))을 상기 DFP 장치 드라이버(520)에 전송할 수 있다. 또한, 상기 전자 장치(500)의 프로세서는 상기 DFP 장치 드라이버(520)에 프리뷰 이미지를 요청(request preview(510b))할 수 있다. When the electronic device 500 and the external electronic device 550 are connected to each other, the DFP window service (DFP Windows Service 530) is transmitted from the DFP device driver (DFP Device Driver 520) to the external electronic device 550 ) may register data related to a plurality of resources included in (Register callback 530a). Processor application application installed in the electronic device 500 of the electronic device 500 (for example: 3 rd App (510)) a user input requesting a preview image (request preview (500a)) through may receive . The processor of the electronic device 500 that has received the request 500a through the application application 510 is a resource related to the request 500a among a plurality of resources included in the external electronic device 550 . A request to use the camera (get device 510a) may be transmitted to the DFP device driver 520 . Also, the processor of the electronic device 500 may request a preview image from the DFP device driver 520 (request preview 510b).

상기 요청들(510a 및 510b)을 수신한 상기 DFP 장치 드라이버(520)는 상기 DFP 윈도우 서비스(530)에 상기 요청들(510a 및 510b)를 기반으로 상기 외부 전자 장치(550)의 카메라를 사용하기 위한 데이터를 호출(520a)할 수 있다. 상기 호출(510c)을 수신한 상기 DFP 윈도우 서비스(530)는 상기 카메라와 관련된 데이터를 호출하기 위하여, USB를 통해 TCP 방식으로 프리뷰 이미지의 패킷을 전송(send preview req packet(530b))하라고 상기 외부 전자 장치(550)의 DFP 안드로이드 서비스(DFP Android Service(560))에 요청할 수 있다. Upon receiving the requests 510a and 510b, the DFP device driver 520 uses the camera of the external electronic device 550 for the DFP window service 530 based on the requests 510a and 510b. data may be called for ( 520a ). Upon receiving the call 510c, the DFP window service 530 transmits a packet of a preview image (send preview req packet 530b) through a TCP method through USB in order to call the camera-related data. The request may be made to the DFP Android service (DFP Android Service 560 ) of the electronic device 550 .

상기 DFP 윈도우 서비스(530)로부터 상기 요청(530b)을 수신한 상기 외부 전자 장치(550)의 상기 DFP 안드로이드 서비스(560)는 상기 수신한 요청(530b)을 확인(Resolve request(560a))하고, 상기 외부 전자 장치(550)가 프리뷰(preview(560b)) 를 수행하라는 요청을 안드로이드 하드웨어 카메라(Android.Hardware.Camera(570))에 전송할 수 있다. 상기 안드로이드 하드웨어 카메라(570)는 상기 요청에 포함된 리소스를 식별하는 식별자로써, 상기 요청(560b)을 처리할 리소스를 식별하고, 식별된 리소스에 대한 서비스를 인식할 수 있다. 상기 요청(560b)을 수신한 상기 안드로이드 하드웨어 카메라(570)는 상기 요청(560b)의 리소스 타입인 카메라를 식별하고, 상기 외부 전자 장치(550)의 카메라 서비스(Camera Service(580))에 프리뷰(Preview(570a)를 수행하라는 요청을 전송할 수 있다. The DFP Android service 560 of the external electronic device 550 that has received the request 530b from the DFP window service 530 checks the received request 530b (Resolve request 560a), The external electronic device 550 may transmit a request to perform a preview to the Android hardware camera (Android.Hardware.Camera 570). As an identifier for identifying a resource included in the request, the Android hardware camera 570 may identify a resource to process the request 560b and recognize a service for the identified resource. The Android hardware camera 570 that has received the request 560b identifies a camera that is the resource type of the request 560b, and previews it in the camera service 580 of the external electronic device 550 (Camera Service 580). A request to perform a preview 570a may be transmitted.

상기 요청(570a)을 수신한 상기 카메라 서비스(580)는 카메라 HAL(Camera HAL(590))에 상기 외부 전자 장치(550)의 카메라 장치를 동작하라는 요청(Open camera H/W(580a))을 전송할 수 있다. 상기 카메라 장치가 동작되면, 상기 카메라 서비스(580)는 상기 카메라 HAL(590)에 프리뷰를 시작(Start preview(580b))하라고 요청할 수 있다. 상기 요청(580b)을 수신한 카메라 HAL(590)은 상기 카메라 장치가 획득한 프리뷰 이미지의 raw data를 획득(590a)할 수 있다. 상기 프리뷰 이미지의 raw data를 획득(590a)하면, 상기 카메라 서비스(580)는 상기 안드로이드 하드웨어 카메라(570)에 프리뷰 이미지를 전송(Post preview image(580c))할 수 있다. 상기 프리뷰 이미지를 수신한 상기 안드로이드 하드웨어 카메라(570)는 상기 DFP 안드로이드 서비스(560)에 상기 프리뷰 이미지를 전송(Post preview image(570b))하게 되고, 상기 프리뷰 이미지를 수신한 상기 DFP 안드로이드 서비스(560)는 상기 프리뷰 이미지를 수신함으로써, 상기 전자 장치(500)가 송신한 요청에 대한 응답을 처리(Resolve response(560c))했다고 판단할 수 있다.Upon receiving the request 570a, the camera service 580 sends a request (Open camera H/W 580a) to operate the camera device of the external electronic device 550 to a camera HAL (Camera HAL 590). can be transmitted When the camera device is operated, the camera service 580 may request the camera HAL 590 to start a preview (Start preview 580b). The camera HAL 590 receiving the request 580b may acquire raw data of the preview image acquired by the camera device 590a. When raw data of the preview image is obtained (590a), the camera service 580 may transmit a preview image to the Android hardware camera 570 (Post preview image 580c). The Android hardware camera 570 that has received the preview image transmits the preview image to the DFP Android service 560 (Post preview image 570b), and the DFP Android service 560 that has received the preview image ) may determine that a response to the request transmitted by the electronic device 500 has been processed (Resolve response 560c) by receiving the preview image.

상기 요청에 대한 응답이 처리(560c)했다고 판단한 상기 DFP 안드로이드 서비스(560)는 상기 전자 장치(500)의 상기 DFP 윈도우 서비스(530)에 상기 프리뷰 이미지를 USB를 통한 TCP방식을 적용하여 패킷으로 전송(Send preview res packet (560d))할 수 있다. 상기 프리뷰 이미지를 패킷으로 수신한 상기 DFP 윈도우 서비스 (530)는 프리뷰 이미지의 패킷을 raw data로 파싱(Parse packet(530c))할 수 있다. 상기 프리뷰 이미지의 패킷을 파싱한 상기 DFP 윈도우 서비스(530)는 상기 프리뷰 이미지를 raw data stream으로 상기 DFP 장치 드라이버(520)에 전송(Stream raw preview image(530d))할 수 있다. 상기 응용 어플리케이션(510)은 상기 프리뷰 이미지의 raw data stream을 수신한 상기 DFP 장치 드라이버(520)로부터 상기 프리뷰 이미지를 수신(Receive preview image(520b))하고, 사용자에게 상기 프리뷰 이미지를 제공할 수 있다.The DFP Android service 560, which has determined that the response to the request has been processed (560c), transmits the preview image to the DFP window service 530 of the electronic device 500 by applying the TCP method through USB to the packet. (Send preview res packet (560d)). Upon receiving the preview image as a packet, the DFP window service 530 may parse the packet of the preview image into raw data (Parse packet 530c). After parsing the packet of the preview image, the DFP window service 530 may transmit the preview image as a raw data stream to the DFP device driver 520 (Stream raw preview image 530d). The application application 510 may receive the preview image from the DFP device driver 520 that has received the raw data stream of the preview image (Receive preview image 520b) and provide the preview image to the user. .

본 발명의 다양한 실시예에 따르면, 상기 외부 전자 장치(500)가 수행하는 동작 중 상기 전자 장치(500)가 전송한 요청을 확인하는 동작(Resolve request(560a)) 및 상기 요청에 대한 응답을 해결하는 동작(Resolve response(560c))은 상기 전자 장치(500)가 전송한 요청을 수행 및 상기 요청에 대한 응답을 해결하기 위하여, 상기 외부 전자 장치(550)의 프로세서가 상기 전자 장치(500)와 상기 외부 전자 장치(550)의 통신의 연결이 유지 되고 있는지 통신 연결 유무를 판단하는 동작으로도 사용될 수 있다.According to various embodiments of the present disclosure, an operation (Resolve request 560a) of resolving a request transmitted by the electronic device 500 among operations performed by the external electronic device 500 (Resolve request 560a) and a response to the request are resolved In the operation (Resolve response 560c), the processor of the external electronic device 550 communicates with the electronic device 500 to perform a request transmitted by the electronic device 500 and resolve a response to the request. It may also be used as an operation for determining whether the communication connection of the external electronic device 550 is maintained or not.

도 6은 본 발명의 일 실시예에 따른, 외부 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스를 선택하는 방법을 설명하기 위한 도면이다.6 is a diagram for describing a method of selecting at least one resource from among a plurality of resources included in an external electronic device, according to an embodiment of the present invention.

도 6을 참조하면, 외부 전자 장치(예: 도 2의 외부 전자 장치(280))의 프로세서는 사용자에게 외부 전자 장치에 포함된 복수 개의 리소스들을 어플리케이션(600)(예: 도 3의 어플리케이션(357))을 통해 상기 복수 개의 리소스들과 대응되는 표시 객체(예: 아이콘)로 제공하여, 사용자로부터 입력을 요청할 수 있다. 상기 어플리케이션(600)을 통해 사용자에게 제공되는 상기 복수 개의 리소스들의 형태는 아이콘뿐만 아니라, 텍스트, 음성 및 메세지를 포함할 수 있으며 이에 한정되지 않는다.Referring to FIG. 6 , the processor of the external electronic device (eg, the external electronic device 280 of FIG. 2 ) provides the user with a plurality of resources included in the external electronic device to the application 600 (eg, the application 357 of FIG. 3 ). )) to provide a display object (eg, an icon) corresponding to the plurality of resources to request input from the user. The form of the plurality of resources provided to the user through the application 600 may include, but is not limited to, text, voice, and message as well as icons.

일 실시예에 따르면, 상기 어플리케이션(600)을 통해 사용자에게 제공되는 복수 개의 리소스들과 대응되는 표시 객체는 카메라(601)(예: 도 1의 카메라 모듈(180)), 스피커(602)(예: 도 1의 음향 출력 장치(156)), 마이크(603)(예: 도 1의 입력 장치(150)), 지문 센서(604)(예: 도 1의 센서 모듈(176)) 및 게임 컨트롤(605)의 아이콘을 포함할 수 있다. 상기 외부 전자 장치와 상기 전자 장치가 연결된 상태에서 사용자가 상기 전자 장치(예: 도 2의 전자 장치(200))의 잠금 모드를 해제하기 위해, 상기 외부 전자 장치의 상기 어플리케이션을 통해 상기 지문 센서(604)의 아이콘을 선택할 수 있다. 상기 아이콘이 선택되면 상기 외부 전자 장치의 프로세서는 상기 어플리케이션을 통해 출력되는 상기 선택된 아이콘에 그래픽 효과(610)를 적용할 수 있다. 예를 들어, 상기 선택된 아이콘이 다른 아이콘들에 대비하여 반투명해지도록 하고, 상기 지문 센서(604) 아이콘 주변의 음영을 변경하여 사용자에 의해 아이콘이 선택되는 효과를 시각적으로 제공할 수 있다.According to an embodiment, the display object corresponding to the plurality of resources provided to the user through the application 600 is a camera 601 (eg, the camera module 180 of FIG. 1 ), a speaker 602 (eg, : the sound output device 156 of FIG. 1 ), the microphone 603 (eg the input device 150 of FIG. 1 ), the fingerprint sensor 604 (eg the sensor module 176 of FIG. 1 ) and game controls ( 605). In order for the user to unlock the lock mode of the electronic device (eg, the electronic device 200 of FIG. 2 ) while the external electronic device and the electronic device are connected, the fingerprint sensor ( 604) can be selected. When the icon is selected, the processor of the external electronic device may apply a graphic effect 610 to the selected icon output through the application. For example, the selected icon may be made translucent compared to other icons, and the shadow around the fingerprint sensor 604 icon may be changed to visually provide an effect of selecting the icon by the user.

사용자에 의해 상기 지문 센서(604)의 아이콘이 선택되면, 상기 외부 전자 장치의 프로세서는 도 4에서 상술한 동작을 수행할 수 있다. 상기 도 4에서 상술한 동작이 수행되면 상기 전자 장치의 프로세서는 통합 드라이버를 통해 상기 전자 장치의 드라이버를 동적으로 적용하고, 사용자가 상기 외부 전자 장치를 통해 지문을 인증하는 경우, 상기 외부 전자 장치로부터 상기 지문 센서(604)와 관련된 데이터를 수신해 전자 장치의 보안을 해제할 수 있다.When an icon of the fingerprint sensor 604 is selected by the user, the processor of the external electronic device may perform the operation described above with reference to FIG. 4 . When the operation described above in FIG. 4 is performed, the processor of the electronic device dynamically applies the driver of the electronic device through the integrated driver, and when the user authenticates the fingerprint through the external electronic device, Security of the electronic device may be released by receiving data related to the fingerprint sensor 604 .

또한, 상기 전자 장치의 프로세서가 상기 외부 전자 장치를 지문 센서로 사용하고 있는 중에, 추가적으로 상기 어플리케이션(600)을 통해 상기 스피커(602)를 선택하는 사용자 입력을 수신한 경우, 상기 전자 장치의 프로세서는 상기 외부 전자 장치의 상기 스피커(602)를 추가적으로 사용할 리소스로 인식할 수 있다. 상기 외부 전자 장치의 상기 스피커(602)가 상기 전자 장치의 리소스로 설정된 상태에서, 상기 전자 장치에서 오디오 컨텐츠를 재생하는 사용자 입력을 수신한 경우, 상기 오디오 컨텐츠는 상기 외부 전자 장치의 상기 스피커(602)를 통해 출력될 수 있다.In addition, when the processor of the electronic device is using the external electronic device as a fingerprint sensor and additionally receives a user input for selecting the speaker 602 through the application 600, the processor of the electronic device is The speaker 602 of the external electronic device may be recognized as a resource to be additionally used. In a state in which the speaker 602 of the external electronic device is set as a resource of the electronic device, when a user input for playing audio content is received in the electronic device, the audio content is transmitted to the speaker 602 of the external electronic device ) can be output.

이 때, 상기 전자 장치의 프로세서는 상기 외부 전자 장치로부터 상기 지문 센서(604)와 관련된 데이터를 처리하면서, 추가적으로 선택된 데이터의 리소스 타입 (예: 스피커(602))에 따라 상기 통합 드라이버를 동적으로 적용할 수 있어, 상기 지문 센서(604)와 관련된 데이터를 처리하면서, 상기 스피커(602)와 관련된 데이터를 처리할 수 있다. 즉, 상기 전자 장치의 프로세서는 리소스 타입에 따라 상기 통합 드라이버를 동적으로 적용할 수 있어, 상기 외부 전자 장치로부터 상기 지문 센서(604)와 관련된 데이터 및 상기 외부 전자 장치로부터 스피커(602)와 관련된 데이터를 병렬적으로 수신하여 처리할 수 있다.At this time, the processor of the electronic device processes the data related to the fingerprint sensor 604 from the external electronic device, and dynamically applies the integrated driver according to the resource type of the additionally selected data (eg, the speaker 602 ). It is possible to process data related to the speaker 602 while processing data related to the fingerprint sensor 604 . That is, the processor of the electronic device may dynamically apply the integrated driver according to the resource type, so that data related to the fingerprint sensor 604 from the external electronic device and data related to the speaker 602 from the external electronic device can be received and processed in parallel.

도 7은 본 발명의 일 실시예에 따른, 전자 장치가 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하는 방법을 설명하기 위한 도면이다.7 is a diagram for describing a method for an electronic device to recognize a plurality of resources included in an external electronic device, according to an embodiment of the present invention.

도 7을 참조하면, 전자 장치(예: 도 2의 전자 장치(200))에 통합 드라이버가 설치되어 있는 경우, 상기 전자 장치의 프로세서는 상기 통합 드라이버를 통해 상기 외부 전자 장치에 포함되어 있는 복수 개의 리소스들을 인식할 수 있다. 따라서 상기 전자 장치의 프로세서는 장치 관리자(700)를 통해 사용자에게 인식한 복수 개의 리소스들을 제공하고, 사용자 입력을 수신하며, 상기 사용자 입력을 기반으로 상기 복수 개의 리소스들 중 적어도 하나를 활성화 또는 비활성화할 수 있다.Referring to FIG. 7 , when an integrated driver is installed in an electronic device (eg, the electronic device 200 of FIG. 2 ), a processor of the electronic device may include a plurality of devices included in the external electronic device through the integrated driver. resources can be identified. Accordingly, the processor of the electronic device provides a plurality of resources recognized to the user through the device manager 700, receives a user input, and activates or deactivates at least one of the plurality of resources based on the user input. can

일 실시예에 따르면, 상기 전자 장치의 프로세서는 상기 외부 전자 장치가 상기 전자 장치와 연결되면, 상기 전자 장치에 설치되어 있는 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 모두 인식할 수 있다. 도 7을 살펴보면, 상기 전자 장치의 프로세서는 상기 외부 전자 장치에 포함된 복수 개의 리소스들 중 생체 인식 센서(710a)와 카메라(710b)를 인식하고, 상기 장치 관리자(700)를 통해 사용자에게 상기 인식된 생체 인식 센서(710a) 및 카메라(710b)를 포함하는 인식 정보(710)를 제공할 수 있다. 상기 인식 정보(710)는 상기 생체 인식 센서(710a) 및 상기 카메라(710b)를 포함하는 것에 한정되지 않으며, 상기 전자 장치와 연결되는 외부 전자 장치에 포함된 복수 개의 리소스들을 모두 포함할 수 있다. 또한, 본 발명의 다양한 실시예에 따르면, 상기 전자 장치는 적어도 하나 이상의 외부 전자 장치들과 연결되어, 연결된 상기 외부 전자 장치들에 포함된 복수 개의 리소스들을 모두 인식할 수 있다. 추가적으로, 상기 전자 장치의 프로세서는 다른 외부 전자 장치(예: 웨어러블 장치)와 기능적으로 연결된 상기 외부 전자 장치와 연결된 상태에서, 사용자 입력을 수신받아 상기 다른 외부 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나를 인식할 수 있다.According to an embodiment, when the external electronic device is connected to the electronic device, the processor of the electronic device may recognize all of the plurality of resources included in the external electronic device through an integrated driver installed in the electronic device. there is. Referring to FIG. 7 , the processor of the electronic device recognizes a biometric sensor 710a and a camera 710b among a plurality of resources included in the external electronic device, and provides the recognition to the user through the device manager 700 . It is possible to provide the recognition information 710 including the biometric sensor 710a and the camera 710b. The recognition information 710 is not limited to including the biometric sensor 710a and the camera 710b, and may include all of a plurality of resources included in an external electronic device connected to the electronic device. Also, according to various embodiments of the present disclosure, the electronic device may be connected to at least one or more external electronic devices to recognize all of a plurality of resources included in the connected external electronic devices. Additionally, the processor of the electronic device receives a user input while being connected to the external electronic device functionally connected to another external electronic device (eg, a wearable device), and receives at least one of a plurality of resources included in the other external electronic device. one can recognize

상기 전자 장치의 프로세서는 상기 장치 관리자(700)를 통해 상기 복수 개의 리소스들을 제공하고, 사용자 입력이 수신되면 사용자 입력을 기반으로 사용자가 선택한 리소스를 활성화하거나 비활성화 할 수 있다. 상기 수신된 입력이 상기 카메라(710b)를 선택한 경우, 상기 전자 장치의 프로세서는 상기 카메라(710b)를 비활성화할 수 있다. 상기 카메라(710b)가 비활성화 되면, 상기 전자 장치의 프로세서가 상기 통합 드라이버를 통해 상기 외부 전자 장치로부터 수신한 상기 카메라(710b)와 관련된 데이터를 처리하지 않기 때문에, 상기 외부 전자 장치의 카메라(710b)를 리소스로 사용하지 않을 수 있다. 반면에, 상기 전자 장치의 프로세서가 상기 장치 관리자(700)를 통해 상기 사용자 입력을 다시 수신하여, 상기 비활성화된 카메라(710b)를 다시 활성화하면 상기 전자 장치의 프로세서는 상기 외부 전자 장치로부터 상기 카메라(710b)와 관련된 데이터를 수신 받고, 상기 데이터를 처리할 수 있어 상기 외부 전자 장치의 카메라(710b)를 상기 전자 장치의 리소스로 설정할 수 있다. The processor of the electronic device may provide the plurality of resources through the device manager 700 , and when a user input is received, may activate or deactivate a resource selected by the user based on the user input. When the received input selects the camera 710b, the processor of the electronic device may deactivate the camera 710b. When the camera 710b is deactivated, since the processor of the electronic device does not process data related to the camera 710b received from the external electronic device through the integrated driver, the camera 710b of the external electronic device may not be used as a resource. On the other hand, when the processor of the electronic device receives the user input again through the device manager 700 and activates the deactivated camera 710b again, the processor of the electronic device sends the camera ( It is possible to receive data related to 710b) and process the data, so that the camera 710b of the external electronic device can be set as a resource of the electronic device.

도 8은 본 발명의 일 실시예에 따른, 전자 장치 및 외부 전자 장치가 포함하는 카메라 장치를 선택하는 방법을 설명하기 위한 도면이다.8 is a diagram for explaining a method of selecting a camera device included in an electronic device and an external electronic device according to an embodiment of the present invention.

도 8을 참조하면, 상기 전자 장치(800)(예: 도 2의 전자 장치(200))와 상기 외부 전자 장치(850)(예: 도 2의 외부 전자 장치(280))가 연결된 상태에서, 프리뷰 이미지를 확인하려는 사용자 입력이 수신되면, 상기 전자 장치(800)의 프로세서는 사용자에게 UI를 통해 상기 전자 장치(800)의 카메라(801)를 통해 프리뷰 이미지를 확인할 지, 상기 외부 전자 장치(850)의 카메라(851)를 통해 프리뷰 이미지를 확인할 지 선택을 요청할 수 있다.Referring to FIG. 8 , in a state in which the electronic device 800 (eg, the electronic device 200 of FIG. 2 ) and the external electronic device 850 (eg, the external electronic device 280 of FIG. 2 ) are connected, When a user input for checking a preview image is received, the processor of the electronic device 800 asks the user whether to check the preview image through the camera 801 of the electronic device 800 through the UI, the external electronic device 850 ) through the camera 851 may request a selection whether to check the preview image.

일 실시예에 따르면, 상기 전자 장치(800)와 상기 외부 전자 장치(850)가 연결된 상태에서, 상기 전자 장치(800)의 프로세서는 카메라와 관련된 프로그램(810)을 실행하려는 사용자 입력을 수신할 수 있다. 상기 카메라와 관련된 프로그램(810)이 실행되면, 상기 전자 장치(800)의 프로세서는 사용자에게 상기 전자 장치(800)의 카메라(801)와 관련된 메시지(811a) 및 상기 외부 전자 장치(850)의 카메라(851)와 관련된 메시지(811b)를 포함하는 별도의 장치 선택 윈도우(811)를 제공할 수 있다.According to an embodiment, in a state in which the electronic device 800 and the external electronic device 850 are connected, the processor of the electronic device 800 may receive a user input for executing the program 810 related to the camera. there is. When the camera-related program 810 is executed, the processor of the electronic device 800 provides the user with a message 811a related to the camera 801 of the electronic device 800 and the camera of the external electronic device 850 to the user. A separate device selection window 811 including a message 811b related to 851 may be provided.

상기 전자 장치(800)의 프로세서는 상기 장치 선택 윈도우(811)를 통해 상기 전자 장치(800)의 카메라(801)와 관련된 메시지(811a) 및 상기 외부 전자 장치(850)의 카메라(851)와 관련된 메시지(811b) 중 적어도 하나를 선택한 사용자 입력을 수신하면, 상기 전자 장치(800)의 프로세서는 상기 사용자 입력을 기반으로, 상기 전자 장치(800)의 카메라(801) 및/또는 상기 외부 전자 장치(850)의 카메라(851)로부터 프리뷰 이미지를 획득하고, 상기 카메라와 관련된 프로그램(810)을 통해 상기 획득한 프리뷰 이미지를 사용자에게 제공할 수 있다. 즉, 본 발명의 다양한 실시예는 상기 전자 장치(800)와 상기 외부 전자 장치(850)가 연결되어, 동일한 타입을 가지는 리소스가 복수 개 인식되는 경우, 사용자에게 상기 동일한 타입을 가지는 리소스 중 어느 리소스를 사용할 것인지 UI를 제공할 수 있다.The processor of the electronic device 800 performs a message 811a related to the camera 801 of the electronic device 800 and a camera 851 related to the camera 851 of the external electronic device 850 through the device selection window 811 . Upon receiving a user input of selecting at least one of the messages 811b, the processor of the electronic device 800 based on the user input, the camera 801 of the electronic device 800 and/or the external electronic device ( A preview image may be acquired from the camera 851 of the 850 , and the acquired preview image may be provided to the user through a program 810 related to the camera. That is, according to various embodiments of the present disclosure, when the electronic device 800 and the external electronic device 850 are connected and a plurality of resources having the same type are recognized, which resource among the resources having the same type is recognized by the user. You can provide a UI whether to use .

도 9는 본 발명의 일 실시예에 따른, 외부 전자 장치를 인식하는 방법에 대한 순서도이다.9 is a flowchart of a method of recognizing an external electronic device according to an embodiment of the present invention.

도 9를 참조하면, 동작 901에서 전자 장치(예: 도 2의 전자 장치(200))의 프로세서는, 통신 모듈(예: 도 1의 통신 모듈(190))을 통해 연결되는 상기 외부 전자 장치(예: 도 2의 외부 전자 장치(280))가 상기 전자 장치와 연결되었는지 연결 유무를 확인할 수 있다.Referring to FIG. 9 , in operation 901 , the processor of the electronic device (eg, the electronic device 200 of FIG. 2 ) connects to the external electronic device (eg, the communication module 190 of FIG. 1 ) through a communication module (eg, the communication module 190 of FIG. 1 ). For example, whether the external electronic device 280 of FIG. 2 is connected to the electronic device may be checked.

상기 전자 장치의 프로세서가 상기 외부 전자 장치와의 연결 유무를 확인한 후, 상기 전자 장치의 프로세서는 동작 903과 같이 상기 전자 장치에 이미 설치되어 있는 통합 드라이버를 통해, 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식할 수 있다. 상기 통합 드라이버는 상기 외부 전자 장치에 포함된 복수 개의 리소스들과 관련된 데이터를 포함하고 있는 드라이버이며, 상기 전자 장치에 상기 외부 전자 장치가 연결되면 상기 전자 장치의 프로세서가 상기 통합 드라이버를 기반으로 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 모두 인식할 수 있다.After the processor of the electronic device checks whether or not the connection with the external electronic device is present, the processor of the electronic device performs a plurality of functions included in the external electronic device through the integrated driver already installed in the electronic device in operation 903 . resources can be identified. The integrated driver is a driver including data related to a plurality of resources included in the external electronic device, and when the external electronic device is connected to the electronic device, the processor of the electronic device is configured to operate the external electronic device based on the integrated driver. All of the plurality of resources included in the electronic device may be recognized.

동작 905에서는 상기 전자 장치의 프로세서가 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식한 경우, 상기 인식한 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신할 수 있다. 상기 적어도 하나의 리소스와 관련된 데이터가 수신되면, 상기 전자 장치의 프로세서는 동작 907과 같이, 상기 통합 드라이버를 통해 상기 수신된 데이터를 처리할 수 있다.In operation 905, when the processor of the electronic device recognizes a plurality of resources included in the external electronic device, data related to at least one resource among the recognized plurality of resources may be received. When data related to the at least one resource is received, the processor of the electronic device may process the received data through the integrated driver in operation 907 .

일 실시예에 따르면, 상기 외부 전자 장치가 상기 전자 장치와 통신적으로 연결된 상태에서, 상기 외부 전자 장치의 어플리케이션을 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스를 선택한 사용자 입력이 수신되면, 상기 외부 전자 장치의 프로세서는 상기 선택한 리소스와 관련된 데이터를 기반으로, 상기 외부 전자 장치를 상기 전자 장치의 상기 선택한 리소스로 설정할 수 있다. 또한, 상기 외부 전자 장치의 프로세서가 상기 통신 모듈을 통해 상기 선택한 리소스와 관련된 데이터를 상기 전자 장치에 전송하면, 상기 전자 장치의 프로세서는 상기 통합 드라이버를 통해 상기 데이터의 리소스 타입을 식별하고, 상기 리소스 타입에 따라 상기 전자 장치의 드라이버를 동적으로 적용하여 상기 외부 전자 장치로부터 전송되는 상기 선택한 리소스와 관련된 데이터를 처리하여 상기 외부 전자 장치를 리소스로 활용할 수 있다.According to an embodiment, in a state in which the external electronic device is communicatively connected with the electronic device, a user input for selecting at least one resource from among a plurality of resources included in the external electronic device through an application of the external electronic device Upon receiving this, the processor of the external electronic device may set the external electronic device as the selected resource of the electronic device based on data related to the selected resource. In addition, when the processor of the external electronic device transmits data related to the selected resource to the electronic device through the communication module, the processor of the electronic device identifies the resource type of the data through the integrated driver, and the resource The external electronic device may be used as a resource by dynamically applying a driver of the electronic device according to a type to process data related to the selected resource transmitted from the external electronic device.

상술한 바와 같이, 다양한 실시예에 따르면, 외부 전자 장치(예: 전자 장치 (102 또는 104))를 인식하는 방법에 있어서, 통신 모듈(예: 통신 모듈(190))을 통해 상기 외부 전자 장치와 연결되는지 확인하는 동작, 상기 외부 전자 장치와 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하는 동작, 상기 외부 전자 장치와 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작; 및 상기 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하는 동작을 포함할 수 있다.As described above, according to various embodiments, in a method of recognizing an external electronic device (eg, the electronic device 102 or 104 ), the external electronic device is communicated with the external electronic device through a communication module (eg, the communication module 190 ). Checking whether a connection is made, when connected to the external electronic device, recognizing a plurality of resources included in the external electronic device through an integrated driver receiving data related to at least one of the resources; and when receiving the data, processing the data through the integrated driver.

다양한 실시예에 따르면, 상기 통합 드라이버는, 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 인식한 복수 개의 리소스들을 이용하기 위한 정보를 포함할 수 있다.According to various embodiments, the integrated driver may recognize a plurality of resources included in the external electronic device and include information for using the recognized plurality of resources.

다양한 실시예에 따르면, 상기 복수 개의 리소스들은, 카메라 모듈(예: 카메라 모듈(180)), 오디오 모듈(예: 오디오 모듈(170)) 또는 센서 모듈(예: 센서 모듈(176)) 중 적어도 하나를 포함할 수 있다.According to various embodiments, the plurality of resources include at least one of a camera module (eg, the camera module 180), an audio module (eg, the audio module 170), or a sensor module (eg, the sensor module 176). may include.

다양한 실시예에 따르면, 상기 복수 개의 리소스들은 인식하는 동작은, 상기 통합 드라이버를 통해 상기 데이터에 포함된 식별자를 기반으로, 상기 복수 개의 리소스들 중 적어도 하나의 리소스의 타입을 식별하는 동작을 더 포함할 수 있다.According to various embodiments, the recognizing of the plurality of resources further includes identifying the type of at least one of the plurality of resources based on the identifier included in the data through the integrated driver. can do.

다양한 실시예에 따르면, 상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 제1 리소스에 관한 제1 데이터를 수신하는 중에, 상기 통신 모듈을 통한 통신 연결을 유지한 상태에서, 상기 통신 모듈을 통해 제2 리소스에 관한 제2 데이터를 수신하는 동작을 포함할 수 있다.According to various embodiments, the receiving of the data related to the at least one resource may include receiving the first data related to a first resource among the plurality of resources through the communication module while receiving the first data related to the first resource through the communication module. The method may include receiving second data related to a second resource through the communication module while maintaining the connection.

다양한 실시예에 따르면, 상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은, 상기 통신 모듈을 통해 상기 제1 데이터 및 상기 제2 데이터를 병렬적으로 수신하는 동작을 더 포함할 수 있다.According to various embodiments, the receiving of the data related to the at least one resource may further include receiving the first data and the second data in parallel through the communication module.

다양한 실시예에 따르면, 상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은, 상기 통신 모듈을 통해, 상기 외부 전자 장치로부터 상기 전자 장치에서 처리할 상기 적어도 하나의 리소스에 대한 정보를 수신하는 동작을 더 포함할 수 있다.According to various embodiments, the receiving of the data related to the at least one resource includes, through the communication module, receiving information on the at least one resource to be processed by the electronic device from the external electronic device. may include more.

다양한 실시예에 따르면, 상기 데이터를 처리하는 동작은, 사용자의 입력을 기반으로, 상기 복수 개의 리소스들 중 적어도 하나의 리소스를 활성화 또는 비활성화하는 동작을 포함할 수 있다.According to various embodiments, the processing of the data may include activating or deactivating at least one resource among the plurality of resources based on a user input.

다양한 실시예에 따르면, 상기 데이터를 처리하는 동작은, 동일한 리소스 타입을 가지는 상기 전자 장치에 포함된 제1 리소스 또는 상기 외부 전자 장치에 포함된 제2 리소스를 이용할 수 있는 어플리케이션을 실행하는 동작 및 상기 어플리케이션이 실행되면, 상기 제1 리소스 및 상기 제2 리소스를 포함하는 사용자 인터페이스를 제공하는 동작을 더 포함할 수 있다.According to various embodiments, the processing of the data includes executing an application that can use a first resource included in the electronic device having the same resource type or a second resource included in the external electronic device, and the The method may further include providing a user interface including the first resource and the second resource when the application is executed.

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

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

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

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

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

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

Claims (20)

전자 장치에 있어서,
통신 모듈;
프로세서; 및
메모리를 포함하고,
상기 프로세서는,
상기 통신 모듈을 통해 외부 전자 장치가 연결되는지를 확인하고,
상기 외부 전자 장치가 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고,
상기 외부 전자 장치가 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하도록 설정된 전자 장치.
In an electronic device,
communication module;
processor; and
including memory,
The processor is
Checking whether an external electronic device is connected through the communication module,
When the external electronic device is connected, a plurality of resources included in the external electronic device are recognized through an integrated driver,
An electronic device configured to process the data through the integrated driver when receiving data related to at least one of the plurality of resources through the communication module while the external electronic device is connected.
제1항에 있어서,
상기 통합 드라이버는,
상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 인식한 복수 개의 리소스들을 이용하기 위한 정보를 포함하도록 설정된 전자 장치.
According to claim 1,
The integrated driver is
An electronic device configured to recognize a plurality of resources included in the external electronic device and include information for using the recognized plurality of resources.
제2항에 있어서,
상기 복수 개의 리소스들은,
카메라 모듈, 오디오 모듈 또는 센서 모듈 중 적어도 하나를 포함하도록 설정된 전자 장치.
3. The method of claim 2,
The plurality of resources are
An electronic device configured to include at least one of a camera module, an audio module, and a sensor module.
제1항에 있어서,
상기 프로세서는,
상기 통합 드라이버를 통해 상기 데이터에 포함된 식별자를 기반으로,
상기 복수 개의 리소스들 중 상기 적어도 하나의 리소스의 타입을 식별하도록 설정된 전자 장치.
According to claim 1,
The processor is
Based on the identifier included in the data through the integrated driver,
An electronic device configured to identify the type of the at least one resource among the plurality of resources.
제1항에 있어서,
상기 프로세서는,
상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 제1 리소스에 관한 제1 데이터를 수신하는 중에,
상기 통신 모듈을 통한 통신 연결을 유지한 상태에서, 상기 통신 모듈을 통한 제2 리소스에 관한 제2 데이터를 수신하도록 설정된 전자 장치.
According to claim 1,
The processor is
While receiving first data about a first resource among the plurality of resources through the communication module,
An electronic device configured to receive second data regarding a second resource through the communication module while maintaining the communication connection through the communication module.
제5항에 있어서,
상기 프로세서는,
상기 통신 모듈을 통해, 상기 제1 데이터 및 상기 제2 데이터를 병렬적으로 수신하도록 설정된 전자 장치.
6. The method of claim 5,
The processor is
An electronic device configured to receive the first data and the second data in parallel through the communication module.
제1항에 있어서,
상기 복수 개의 리소스들을 모두 포함하는 인식 정보를 출력하는 디스플레이를 더 포함하는 전자 장치.
According to claim 1,
The electronic device further comprising a display for outputting recognition information including all of the plurality of resources.
제1항에 있어서,
상기 프로세서는,
사용자의 입력을 기반으로, 상기 복수 개의 리소스들 중 적어도 하나의 리소스를 활성화 또는 비활성화하도록 설정된 전자 장치.
According to claim 1,
The processor is
An electronic device configured to activate or deactivate at least one resource among the plurality of resources based on a user input.
제1항에 있어서,
상기 프로세서는,
상기 통신 모듈을 통해, 상기 외부 전자 장치로부터 상기 전자 장치에서 처리할 상기 적어도 하나의 리소스에 대한 정보를 수신하도록 설정된 전자 장치.
According to claim 1,
The processor is
An electronic device configured to receive information on the at least one resource to be processed by the electronic device from the external electronic device through the communication module.
제1항에 있어서,
상기 프로세서는,
동일한 리소스 타입을 가지는 상기 전자 장치에 포함된 제1 리소스 또는 상기 외부 전자 장치에 포함된 제2 리소스를 이용할 수 있는 어플리케이션이 실행되면, 상기 제1 리소스 및 상기 제2 리소스를 포함하는 사용자 인터페이스를 제공하도록 설정된 전자 장치.
According to claim 1,
The processor is
When an application capable of using the first resource included in the electronic device having the same resource type or the second resource included in the external electronic device is executed, a user interface including the first resource and the second resource is provided An electronic device set up to do so.
전자 장치에 있어서,
통신 모듈;
프로세서; 및
메모리를 포함하고,
상기 프로세서는,
상기 통신 모듈을 통해 외부 전자 장치와 연결되면, 상기 전자 장치에 포함된 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 상기 통신 모듈을 통해 상기 외부 전자 장치에 전송하도록 설정된 전자 장치.
In an electronic device,
communication module;
processor; and
including memory,
The processor is
An electronic device configured to transmit data related to at least one resource among a plurality of resources included in the electronic device to the external electronic device through the communication module when connected to the external electronic device through the communication module.
외부 전자 장치를 인식하는 방법에 있어서,
통신 모듈을 통해 상기 외부 전자 장치와 연결되는지 확인하는 동작;
상기 외부 전자 장치와 연결되면, 통합 드라이버를 통해 상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하는 동작;
상기 외부 전자 장치와 연결된 상태에서, 상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작; 및
상기 데이터를 수신하면, 상기 통합 드라이버를 통해 상기 데이터를 처리하는 동작을 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
A method for recognizing an external electronic device, comprising:
checking whether it is connected to the external electronic device through a communication module;
recognizing a plurality of resources included in the external electronic device through an integrated driver when connected to the external electronic device;
receiving data related to at least one resource among the plurality of resources through the communication module while connected to the external electronic device; and
and processing the data through the integrated driver upon receiving the data.
제12항에 있어서,
상기 통합 드라이버는,
상기 외부 전자 장치에 포함된 복수 개의 리소스들을 인식하고, 상기 인식한 복수 개의 리소스들을 이용하기 위한 정보를 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The integrated driver is
A method of recognizing a plurality of resources included in the external electronic device and recognizing a resource of an external electronic device including information for using the recognized plurality of resources.
제13항에 있어서,
상기 복수 개의 리소스들은,
카메라 모듈, 오디오 모듈 또는 센서 모듈 중 적어도 하나를 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
14. The method of claim 13,
The plurality of resources are
A method of recognizing a resource of an external electronic device including at least one of a camera module, an audio module, and a sensor module.
제12항에 있어서,
상기 복수 개의 리소스들은 인식하는 동작은,
상기 통합 드라이버를 통해 상기 데이터에 포함된 식별자를 기반으로,
상기 복수 개의 리소스들 중 적어도 하나의 리소스의 타입을 식별하는 동작을 더 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The operation of recognizing the plurality of resources is,
Based on the identifier included in the data through the integrated driver,
The method of recognizing a resource of an external electronic device further comprising: identifying a type of at least one resource among the plurality of resources.
제12항에 있어서,
상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은,
상기 통신 모듈을 통해 상기 복수 개의 리소스들 중 제1 리소스에 관한 제1 데이터를 수신하는 중에, 상기 통신 모듈을 통한 통신 연결을 유지한 상태에서, 상기 통신 모듈을 통해 제2 리소스에 관한 제2 데이터를 수신하는 동작을 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The operation of receiving data related to the at least one resource includes:
While receiving the first data regarding the first resource among the plurality of resources through the communication module, while maintaining the communication connection through the communication module, the second data regarding the second resource through the communication module A method of recognizing a resource of an external electronic device, comprising the operation of receiving
제16항에 있어서,
상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은,
상기 통신 모듈을 통해 상기 제1 데이터 및 상기 제2 데이터를 병렬적으로 수신하는 동작을 더 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
17. The method of claim 16,
The operation of receiving data related to the at least one resource includes:
The method of recognizing a resource of an external electronic device further comprising: receiving the first data and the second data in parallel through the communication module.
제12항에 있어서,
상기 적어도 하나의 리소스와 관련된 데이터를 수신하는 동작은,
상기 통신 모듈을 통해, 상기 외부 전자 장치로부터 상기 전자 장치에서 처리할 상기 적어도 하나의 리소스에 대한 정보를 수신하는 동작을 더 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The operation of receiving data related to the at least one resource includes:
The method of recognizing a resource of an external electronic device further comprising receiving information about the at least one resource to be processed by the electronic device from the external electronic device through the communication module.
제12항에 있어서,
상기 데이터를 처리하는 동작은,
사용자의 입력을 기반으로, 상기 복수 개의 리소스들 중 적어도 하나의 리소스를 활성화 또는 비활성화하는 동작을 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The operation of processing the data is
A method of recognizing a resource of an external electronic device, comprising activating or deactivating at least one resource among the plurality of resources based on a user input.
제12항에 있어서,
상기 데이터를 처리하는 동작은,
동일한 리소스 타입을 가지는 상기 전자 장치에 포함된 제1 리소스 또는 상기 외부 전자 장치에 포함된 제2 리소스를 이용할 수 있는 어플리케이션을 실행하는 동작; 및
상기 어플리케이션이 실행되면, 상기 제1 리소스 및 상기 제2 리소스를 포함하는 사용자 인터페이스를 제공하는 동작을 더 포함하는 외부 전자 장치의 리소스를 인식하는 방법.
13. The method of claim 12,
The operation of processing the data is
executing an application capable of using a first resource included in the electronic device having the same resource type or a second resource included in the external electronic device; and
and providing a user interface including the first resource and the second resource when the application is executed.
KR1020200010576A 2020-01-29 2020-01-29 Methods for recognition an resource of external electronic device and the electronic device supporting the same KR20210096917A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200010576A KR20210096917A (en) 2020-01-29 2020-01-29 Methods for recognition an resource of external electronic device and the electronic device supporting the same
PCT/KR2021/001139 WO2021154005A1 (en) 2020-01-29 2021-01-28 Method for recognizing resources of external electronic device, and electronic apparatus supporting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200010576A KR20210096917A (en) 2020-01-29 2020-01-29 Methods for recognition an resource of external electronic device and the electronic device supporting the same

Publications (1)

Publication Number Publication Date
KR20210096917A true KR20210096917A (en) 2021-08-06

Family

ID=77079921

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200010576A KR20210096917A (en) 2020-01-29 2020-01-29 Methods for recognition an resource of external electronic device and the electronic device supporting the same

Country Status (2)

Country Link
KR (1) KR20210096917A (en)
WO (1) WO2021154005A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7802022B2 (en) * 2004-04-29 2010-09-21 Microsoft Corporation Generic USB drivers
KR100968507B1 (en) * 2008-01-02 2010-07-07 모다정보통신 주식회사 Device of WIBRO USB modem with memory
KR20090132897A (en) * 2008-06-23 2009-12-31 양성현 User customized multimedia terminal
KR101761126B1 (en) * 2011-08-12 2017-07-25 삼성전자 주식회사 USB device and USB system comprising the same
KR101621875B1 (en) * 2014-12-11 2016-05-17 현대자동차주식회사 Multimedia terminal mounted on vehicle, control method thereof and computer-readable medium

Also Published As

Publication number Publication date
WO2021154005A1 (en) 2021-08-05

Similar Documents

Publication Publication Date Title
US11487558B2 (en) Electronic device and screen sharing method using same
US11606838B2 (en) Electronic device for controlling establishment or release of communication connection, and operating method therefor
KR102400580B1 (en) Electronic device for performing an authentication of another electronic device and method of operating the same
CN111191224B (en) Countermeasure method and device for virtual machine detection and computer readable storage medium
US11435985B2 (en) Electronic device and operation method thereof
KR20200011869A (en) Method and Apparatus for Establishing Device Connection
US20200037144A1 (en) Method and apparatus for establishing device connection
WO2020213933A1 (en) Method for duplicating near field communication card and electronic device therefor
KR102498545B1 (en) a method for biometric authenticating and an electronic apparatus thereof
KR20210115841A (en) An electronic device and method for partially operating a thema in the same
KR102436435B1 (en) Electronic device for executing various functions based on a signal recevied from an electric pen
KR20210037320A (en) Method and electronic device for executing application
KR20200072727A (en) An electornic devid and a method for displaying web contents in augmented reality mode
KR20200060018A (en) Electronic device and method for obtaining information associated with fingerprint
US11595902B2 (en) Electronic device for filtering packet and method for operating same
KR20190112406A (en) A mobile electronic device and a method for forwarding user input to an application according to input means
KR20210046426A (en) Application optimizing method and electronic device supporting the same
US11360752B2 (en) Electronic device performing restoration on basis of comparison of constant value and control method thereof
KR20210096917A (en) Methods for recognition an resource of external electronic device and the electronic device supporting the same
US11550456B2 (en) Method for mapping function of application and electronic device therefor
KR102607787B1 (en) Electronic device and Method of controlling thereof
US20220004634A1 (en) Electronic device for providing security-required service through secure element, and method for controlling same electronic device
WO2020071636A1 (en) Electronic device providing cloud service and operation method thereof
KR20210061593A (en) Electronic device and method for recognizing fingerprint thereof
KR20190108364A (en) Electronic apparatus and operating method thereof