KR20210049653A - Method for communicating with external electronic apparatus and electronic appratus thereof - Google Patents

Method for communicating with external electronic apparatus and electronic appratus thereof Download PDF

Info

Publication number
KR20210049653A
KR20210049653A KR1020200015532A KR20200015532A KR20210049653A KR 20210049653 A KR20210049653 A KR 20210049653A KR 1020200015532 A KR1020200015532 A KR 1020200015532A KR 20200015532 A KR20200015532 A KR 20200015532A KR 20210049653 A KR20210049653 A KR 20210049653A
Authority
KR
South Korea
Prior art keywords
electronic device
certificate data
external electronic
external
wireless communication
Prior art date
Application number
KR1020200015532A
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 CN202080090350.5A priority Critical patent/CN114846832A/en
Priority to EP20879210.1A priority patent/EP4032333A4/en
Priority to PCT/KR2020/014553 priority patent/WO2021080364A1/en
Priority to US17/079,749 priority patent/US11570602B2/en
Publication of KR20210049653A publication Critical patent/KR20210049653A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0433Key management protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The present invention relates to a method for communicating with an external electronic apparatus to securely communicate between trusted apparatuses and an electronic apparatus thereof. According to the present invention, the electronic apparatus comprises: a memory storing a certificate list including first certificate data of the electronic apparatus and second certificate data of an external electronic apparatus; a short-range wireless communication circuit; and a processor operatively coupled to the memory and the short-range communication circuit. The memory stores instructions to allow the processor, during execution, to detecting a trigger event for executing an operation of establishing a communication connection with an apparatus around the electronic apparatus; control the short-range wireless communication circuit to broadcast an advertisement packet generated on the basis of the first certificate data in response to detecting the trigger event; acquire third certificate data from the response packet when a response packet is received from the external electronic apparatus in response to the advertisement packet; authenticate the external electronic apparatus on the basis of the second certificate data and the third certificate data; and establish a secure communication channel with the external electronic apparatus when the external electronic apparatus is authenticated.

Description

외부 전자 장치와 통신하는 방법 및 그 전자 장치{METHOD FOR COMMUNICATING WITH EXTERNAL ELECTRONIC APPARATUS AND ELECTRONIC APPRATUS THEREOF}A method of communicating with an external electronic device, and the electronic device thereof TECHNICAL FIELD [Method FOR COMMUNICATING WITH EXTERNAL ELECTRONIC APPARATUS AND ELECTRONIC APPRATUS THEREOF}

본 문서에서 개시되는 실시 예들은, 전자 장치가 데이터를 송신 또는 수신하기 위해 외부 전자 장치를 인식하고 통신을 연결하는 기술과 관련된다.The embodiments disclosed in this document relate to a technology in which an electronic device recognizes an external electronic device and connects communication in order to transmit or receive data.

다양한 전자 장치들이 공급되면서, 기기들 간의 연결 및 컨텐츠 공유가 많아지고 있다. 근거리 내에 위치한 기기들 간에 데이터를 송수신하기 위해 근거리 무선 통신이 이용될 수 있다. 근거리 무선 통신은 액세스 포인트(Access Point)에 연결된 기기들이 액세스 포인트를 통해서 통신하는 방식과, 기기들이 직접 페어링(pairing)되어 통신하는 방식이 있다. 예를 들어, 와이파이(WiFi, wireless-fidelity) 모듈을 이용해 기기들 간에 직접 페어링하고 통신하는 방식은 애드혹(Adhoc) 방식, 모바일 액세스 포인트(Mobile Access Point) 및 와이파이 다이렉트(WiFi direct)가 있다.As various electronic devices are supplied, connection between devices and content sharing are increasing. Short-range wireless communication may be used to transmit and receive data between devices located within a short distance. Short-range wireless communication includes a method in which devices connected to an access point communicate through an access point, and a method in which devices are directly paired to communicate with each other. For example, methods of directly pairing and communicating between devices using a WiFi (wireless-fidelity) module include an adhoc method, a mobile access point, and a WiFi direct.

근거리 무선 통신 방식을 이용한 기기 간의 데이터 전송은 사용자가 근거리 무선 통신에 대한 설정을 수동으로 구성해야 하는 불편함이 있다. 따라서, 무선 통신에 대한 지식이 없거나 익숙하지 않은 사용자는 기기들을 페어링하는 과정을 수행하기 어렵다Data transmission between devices using a short-range wireless communication method is inconvenient for a user to manually configure settings for short-range wireless communication. Therefore, it is difficult for users who do not have knowledge or are not familiar with wireless communication to perform the process of pairing devices.

사용자가 자신의 전자 장치가 가진 콘텐트를 외부의 다른 전자 장치로 제공하고자 할 경우, 사용자가 콘텐트를 제공하고자 하는 외부의 전자 장치가 무엇인지 특정하기 어려운 문제가 있다.When a user intends to provide content of his/her electronic device to another external electronic device, it is difficult to specify what external electronic device the user wants to provide the content to.

본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 포함하는 인증서 목록을 저장하는 메모리, 근거리 무선 통신 회로, 및 상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고, 상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며, 상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하고, 상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장할 수 있다. An electronic device according to an embodiment disclosed in the present document includes a memory for storing a certificate list including first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, and the memory and A processor operatively connected to the short-range wireless communication circuit, and the memory, when executed, detects a trigger event that causes the processor to execute an operation of establishing a communication connection with a device surrounding the electronic device, In response to detection of the trigger event, controlling the short-range wireless communication circuit to broadcast an advertisement packet generated based on the first certificate data, and receiving a response packet from the external electronic device in response to the advertisement packet In one case, third certificate data is obtained from the response packet, the external electronic device is authenticated based on the second certificate data and the third certificate data, and when the external electronic device is authenticated, the external electronic device and Instructions for establishing a secure communication channel can be stored.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 상기 전자 장치의 제1 인증서 데이터, 외부 전자 장치에 대한 제1 사용자 식별 정보 및 상기 제1 사용자 식별 정보에 상응하는 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 및 상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 근거리 무선 통신 회로를 통해서 제3 인증서 데이터를 포함하는 광고 패킷을 수신하고, 상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하고, 상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 근거리 무선 통신 회로를 통해 상기 외부 전자 장치로 전송하며, 상기 근거리 무선 통신 회로를 통해, 상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장할 수 있다. In addition, the electronic device according to an embodiment disclosed in the present document may provide first certificate data of the electronic device, first user identification information of the external electronic device, and second certificate data corresponding to the first user identification information. A memory to store, a short-range wireless communication circuit, and a processor operatively connected to the memory and the short-range wireless communication circuit, the memory, when executed, the processor, a third certificate through the short-range wireless communication circuit When an advertisement packet including data is received, and in response to the reception of the advertisement packet, the third certificate data is compared with the second certificate data, and the third certificate data and the second certificate data are matched, A response packet generated based on the first certificate data is transmitted to the external electronic device through the short-range wireless communication circuit, and a response of the external electronic device to the transmitted response packet through the short-range wireless communication circuit Instructions for establishing a secure communication channel with the external electronic device may be stored.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 원거리 무선 통신 회로, 및 상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며, 상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고, 상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하며, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하도록 하는 인스트럭션들을 저장할 수 있다. In addition, an electronic device according to an embodiment disclosed in the present document includes a memory for storing first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, a long-range wireless communication circuit, and the A memory, the short-range wireless communication circuit, and a processor operatively connected to the long-distance wireless communication circuit, wherein the memory, when executed, the processor, through the long-range wireless communication circuit, to an external server in a user account Trigger to perform an operation of performing a login based on the remote, receiving an account key value corresponding to the user account from the external server through the remote wireless communication circuit, and establishing a communication connection with a device around the electronic device Detecting an event and controlling the short-range wireless communication circuit to broadcast a message including the account key value in response to detection of the trigger event, and having the same key value as the account key value based on the message Checking the external electronic device, transmitting the first certificate data to the external electronic device through the short-range wireless communication circuit, receiving third certificate data from the external electronic device through the short-range wireless communication circuit, , Instructions for authenticating the external electronic device based on the second certificate data and the third certificate data may be stored.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 원거리 무선 통신 회로, 및 상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며, 상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하며, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하며, 상기 외부 전자 장치의 인증이 완료된 경우, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하도록 하는 인스트럭션들을 저장할 수 있다. In addition, an electronic device according to an embodiment disclosed in the present document includes a memory for storing first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, a long-range wireless communication circuit, and the A memory, the short-range wireless communication circuit, and a processor operatively connected to the long-distance wireless communication circuit, wherein the memory, when executed, the processor, through the long-range wireless communication circuit, to an external server in a user account Login is performed on the basis of, through the remote wireless communication circuit, receiving an account key value corresponding to the user account from the external server, and receiving a message including the account key value through the short-range wireless communication circuit, , Based on the message, identify the external electronic device having the same key value as the account key value, receive third certificate data from the external electronic device through the short-range wireless communication circuit, and the second certificate data And an instruction for authenticating the external electronic device based on the third certificate data, and transmitting the first certificate data to the external electronic device through the short-range wireless communication circuit when the authentication of the external electronic device is completed. You can save them.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작, 상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하는 동작, 상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하는 동작, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작, 및 상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함할 수 있다. In addition, a method of performing communication by an electronic device with an external electronic device according to an embodiment disclosed in this document includes storing first certificate data of the electronic device and second certificate data of the external electronic device, and the An operation of detecting a trigger event for establishing a communication connection with a device around the electronic device, an operation of broadcasting an advertisement packet generated based on the first certificate data in response to detection of the trigger event, and the advertisement packet When a response packet is received from the external electronic device as a response, acquiring third certificate data from the response packet, and authenticating the external electronic device based on the second certificate data and the third certificate data And establishing a secure communication channel with the external electronic device when the external electronic device is authenticated.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 제3 인증서 데이터를 포함하는 광고 패킷을 수신하는 동작, 상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하는 동작, 상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 외부 전자 장치로 전송하는 동작, 및 상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함할 수 있다. In addition, a method of performing communication by an electronic device with an external electronic device according to an embodiment disclosed in this document includes storing first certificate data of the electronic device and second certificate data of the external electronic device, 3 An operation of receiving an advertisement packet including certificate data, an operation of comparing the third certificate data with the second certificate data in response to receiving the advertisement packet, and the third certificate data and the second certificate data If matched, transmitting a response packet generated based on the first certificate data to the external electronic device, and secure communication with the external electronic device based on a response of the external electronic device to the transmitted response packet It may include an operation of establishing a channel.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작, 상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작, 상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하는 동작, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작, 상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하는 동작, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작, 및 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작을 포함할 수 있다. In addition, a method of performing communication by an electronic device with an external electronic device according to an embodiment disclosed in this document includes: storing first certificate data of the electronic device and second certificate data of the external electronic device, and Logging in to a server based on a user account, receiving an account key value corresponding to the user account from the external server, and detecting a trigger event for establishing a communication connection with a device around the electronic device , In response to detection of the trigger event, broadcasting a message including the account key value, identifying the external electronic device having the same key value as the account key value based on the message, the external Transmitting the first certificate data to an electronic device, receiving third certificate data from the external electronic device, and authenticating the external electronic device based on the second certificate data and the third certificate data It may include.

또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작, 상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하는 동작, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작, 및 상기 외부 전자 장치의 인증이 완료된 경우, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하는 동작을 포함할 수 있다. In addition, a method of performing communication by an electronic device with an external electronic device according to an embodiment disclosed in this document includes: storing first certificate data of the electronic device and second certificate data of the external electronic device, and Logging in to a server based on a user account, receiving an account key value corresponding to the user account from the external server, and receiving a message including the account key value through the short-range wireless communication circuit , Based on the message, identifying the external electronic device having the same key value as the account key value, receiving third certificate data from the external electronic device, the second certificate data and the third certificate data An operation of authenticating the external electronic device based on and, when authentication of the external electronic device is completed, transmitting the first certificate data to the external electronic device.

본 문서에 개시되는 실시 예들에 따르면, 전자 장치와 외부 전자 장치의 사용자 또는 사용자들이 전자 장치와 외부 전자 장치의 무선 통신에 대한 설정을 수동으로 구성할 필요 없이 전자 장치와 외부 전자 장치가 통신을 연결할 수 있다.According to the embodiments disclosed in this document, the electronic device and the external electronic device connect communication without the need for a user or users of the electronic device and the external electronic device to manually configure settings for wireless communication between the electronic device and the external electronic device. I can.

본 문서에 개시되는 실시 예들에 따르면, 전자 장치와 외부 전자 장치가 사용자 계정에 대해 등록된 전자 장치와 외부 전자 장치의 인증서를 이용하여 상호 인증을 수행하므로, 안전하게 신뢰할 수 있는 장치들끼리 통신을 연결할 수 있다.According to the embodiments disclosed in this document, since the electronic device and the external electronic device perform mutual authentication using the electronic device registered for the user account and the certificate of the external electronic device, communication between trusted devices can be securely connected. I can.

본 문서에 개시되는 실시 예들에 따르면, 전자 장치에 대해 등록된 연락처 정보를 이용하여, 전자 장치가 전자 장치의 사용자와 관련성이 있는 다른 사용자의 외부 전자 장치와 통신을 연결할 수 있다.According to embodiments disclosed in this document, using contact information registered for the electronic device, the electronic device may connect communication with an external electronic device of another user that is related to the user of the electronic device.

본 문서에 개시되는 실시 예들에 따르면, 전자 장치에 대해 등록된 연락처 정보를 이용하여 외부 전자 장치를 식별할 수 있는 정보를 사용자에게 제공할 수 있으므로, 전자 장치의 사용자가 전자 장치와 연결되는 외부 전자 장치의 사용자를 용이하게 식별할 수 있도록 할 수 있다.According to the embodiments disclosed in this document, information for identifying an external electronic device may be provided to a user by using contact information registered for the electronic device. It can be made to be able to easily identify the user of the device.

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

도 1은 다양한 실시 예에 따른 네트워크 환경 내의 전자 장치를 나타낸다.
도 2는 일 실시 예에 따른, 전자 장치가 외부 전자 장치와 통신을 연결하기 위한 기기 간의 연결 구조를 나타낸다.
도 3은 일 실시 예에 따른, 전자 장치가 외부 전자 장치와 통신을 연결하는 프로세스를 나타낸 순서도이다.
도 4는 일 실시 예에 따른, 전자 장치가 동일한 사용자 계정으로 로그인한 외부 전자 장치와 통신을 연결하는 프로세스를 나타낸 순서도이다.
도 5는 일 실시 예에 따른, 전자 장치가 공유되는 계정 키 값을 획득하고 인증서 목록을 획득하는 프로세스를 나타낸 순서도이다.
도 6은 일 실시 예에 따른, 전자 장치가 다른 사용자의 외부 전자 장치와 통신을 연결하는 프로세스를 나타낸 순서도이다.
도 7은 일 실시 예에 따른, 전자 장치가 서버로부터 인증서 목록을 획득하는 방법을 개념적으로 나타낸다.
도 8은 일 실시 예에 따른, 전자 장치 및 외부 전자 장치가 획득하는 인증서 목록의 예시를 나타낸다.
도 9는 일 실시 예에 따른, 전자 장치와 외부 전자 장치가 상호 인증을 수행하는 프로세스를 나타낸 순서도이다.
도 10은 일 실시 예에 따른, 전자 장치가 외부 전자 장치의 인증서 데이터를 획득하는 프로세스를 나타낸 순서도이다.
도 11은 일 실시 예에 따른, 전자 장치가 난수 값을 이용하여 변조된 데이터를 이용하여 외부 전자 장치를 인식하기 위한 전송 프로토콜의 예시를 나타낸다.
도 12는 일 실시 예에 따른, 전자 장치가 사용자 인터페이스를 통해서 트리거 이벤트를 감지하는 예시를 나타낸다.
도 13은 일 실시 예에 따른, 전자 장치가 주변의 외부 전자 장치를 인증하고 통신을 연결하는 구조를 개념적으로 나타낸다.
도 14는 일 실시 예에 따른, 전자 장치가 동일한 사용자 계정으로 로그인된 외부 전자 장치와 연결된 통신 채널을 이용하여 콘텐트를 공유하는 과정에서 전자 장치와 외부 전자 장치가 디스플레이하는 화면의 예시를 나타낸다.
도 15는 일 실시 예에 따른, 전자 장치가 다른 사용자의 외부 전자 장치와 연결된 통신 채널을 이용하여 콘텐트를 공유하는 과정에서 전자 장치와 외부 전자 장치가 디스플레이하는 화면의 예시를 나타낸다.
도 16은 일 실시예에 따른 데이터 공유 상태를 지시하는 UI를 도시한다.
도 17은 일 실시예에 따른 전자 장치의 공유 UI를 도시한다.
도 18은 일 실시예에 따른 데이터 공유 상황에 따른 아이콘 예시들을 도시한다.
도 19는 일 실시예에 따른 데이터 공유 상태를 지시하는 UI를 도시한다.
도 20은 일 실시예에 따른 데이터 공유 상태를 지시하는 UI를 도시한다.
도 21은 외부 전자 장치에서의 연결 요청 UI를 도시한다.
도면의 설명과 관련하여, 동일 또는 유사한 구성요소에 대해서는 동일 또는 유사한 참조 부호가 사용될 수 있다.
1 illustrates an electronic device in a network environment according to various embodiments of the present disclosure.
2 is a diagram illustrating a connection structure between devices through which an electronic device connects communication with an external electronic device, according to an exemplary embodiment.
3 is a flowchart illustrating a process in which an electronic device connects communication with an external electronic device, according to an exemplary embodiment.
4 is a flowchart illustrating a process in which an electronic device connects communication with an external electronic device logged in with the same user account, according to an embodiment.
5 is a flowchart illustrating a process of acquiring an account key value shared by an electronic device and acquiring a certificate list according to an embodiment.
6 is a flowchart illustrating a process in which an electronic device connects communication with an external electronic device of another user, according to an exemplary embodiment.
7 is a conceptual diagram illustrating a method of obtaining a certificate list from a server by an electronic device according to an embodiment.
8 illustrates an example of a list of certificates acquired by an electronic device and an external electronic device, according to an embodiment.
9 is a flowchart illustrating a process of performing mutual authentication between an electronic device and an external electronic device, according to an exemplary embodiment.
10 is a flowchart illustrating a process of obtaining certificate data of an external electronic device by an electronic device according to an exemplary embodiment.
11 illustrates an example of a transmission protocol for an electronic device to recognize an external electronic device by using data modulated using a random number value, according to an embodiment.
12 illustrates an example in which an electronic device detects a trigger event through a user interface, according to an embodiment.
13 conceptually illustrates a structure in which an electronic device authenticates an external electronic device and connects communication according to an exemplary embodiment.
14 illustrates an example of a screen displayed by the electronic device and the external electronic device in a process in which the electronic device shares content using a communication channel connected to an external electronic device logged in with the same user account, according to an embodiment.
15 illustrates an example of a screen displayed by the electronic device and the external electronic device in a process in which the electronic device shares content using a communication channel connected to an external electronic device of another user, according to an embodiment.
16 illustrates a UI indicating a data sharing state according to an embodiment.
17 is a diagram illustrating a sharing UI of an electronic device according to an embodiment.
18 illustrates examples of icons according to a data sharing situation according to an embodiment.
19 illustrates a UI indicating a data sharing state according to an embodiment.
20 illustrates a UI indicating a data sharing state according to an embodiment.
21 illustrates a connection request UI from an external electronic device.
In connection with the description of the drawings, the same or similar reference numerals may be used for the same or similar elements.

이하, 본 발명의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다.Hereinafter, various embodiments of the present invention will be described with reference to the accompanying drawings. However, this is not intended to limit the present invention to a specific embodiment, it should be understood to include various modifications, equivalents, and/or alternatives of the embodiments of the present invention.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1, in a network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (for example, a short-range wireless communication network), or a second network 199 It is possible to communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to 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, an audio 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 ) Can be included. In some embodiments, at least one of these components (for example, 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, a program 140) to implement at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and can perform various data processing or operations. According to an embodiment, as at least a part of data processing or operation, the processor 120 may transfer commands or data received from other components (eg, the sensor module 176 or the communication module 190) to the volatile memory 132. It is loaded into, processes commands or data stored in the volatile memory 132, and the result data may be stored in the nonvolatile 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 be operated independently or together. , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 123 may be set to use lower power than the main processor 121 or to be specialized for a designated function. The secondary processor 123 may be implemented separately from the main processor 121 or as a part thereof.

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

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

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

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

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

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used for 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 a user can perceive through tactile or motor sensations. 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 a still image and a video. 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 at least a part of, for example, 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 an 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)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 includes 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 is possible to support establishment and communication through the established communication channel. The communication module 190 operates independently of the processor 120 (eg, an application processor) and may include one or more communication processors supporting direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg : A local area network (LAN) communication module, or a power line communication module) may be included. Among these communication modules, a corresponding communication module is a first network 198 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a second network 199 (for example, a cellular network, the Internet, Alternatively, it may communicate with the external electronic device 104 through a computer network (eg, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into a single component (eg, a single chip), or may be implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 192 uses subscriber information stored in the subscriber identification module 196 (eg, International Mobile Subscriber Identifier (IMSI)) in a communication network such as the first network 198 or the second network 199. The electronic device 101 can be checked and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside. 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, for example, provided by the communication module 190 from the plurality of antennas. Can be chosen. The signal or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as 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 (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( 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, commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199. Each of the external electronic devices 102 and 104 may be a device of the same or different type as the electronic device 101. According to an embodiment, all or part of the operations executed by the electronic device 101 may be executed by 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 another device, the electronic device 101 In addition or in addition, it is possible to request one or more external electronic devices to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101. The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, or client-server computing technology may be used.

본 명세서에서, 전자 장치(예: 도 1의 전자 장치(101)), 외부 전자 장치(예: 도 1의 전자 장치(102), 전자 장치(104)) 또는 서버(예: 도 1의 서버(108))의 동작은 메모리(예: 도 1의 메모리(130))에 저장된 인스트럭션들(instructions)을 프로세서(예: 도 1의 프로세서(120))가 실행하여 수행되는 것으로서 이해될 수 있다. 다만, 이에 한정되지 아니한다. 다른 예를 들면, 전자 장치, 외부 전자 장치 또는 서버의 동작은 분산 컴퓨팅 기술을 통해서 장치 외부의 하드웨어를 이용하여 실행될 수도 있다.In the present specification, an electronic device (eg, the electronic device 101 of FIG. 1), an external electronic device (eg, the electronic device 102 of FIG. 1, the electronic device 104), or a server (eg, the server of FIG. 108)) may be understood as being executed by a processor (eg, the processor 120 of FIG. 1) executing instructions stored in a memory (eg, the memory 130 of FIG. 1). However, it is not limited thereto. For another example, an operation of an electronic device, an external electronic device, or a server may be performed using hardware external to the device through a distributed computing technology.

도 2는 일 실시 예에 따른, 전자 장치(201)(예: 도 1의 전자 장치(101))가 외부 전자 장치(202)(예: 도 1의 전자 장치(102), 전자 장치(104))와 통신을 연결하기 위한 기기 간의 연결 구조를 나타낸다.FIG. 2 illustrates an electronic device 201 (eg, the electronic device 101 of FIG. 1) is an external electronic device 202 (eg, the electronic device 102 and the electronic device 104 of FIG. 1) according to an embodiment. ) And communication.

일 실시 예에 따른 전자 장치(201)는 프로세서(221), 메모리(222) 및 근거리 무선 통신 회로(223)를 포함할 수 있다. 다른 실시 예에 따르면, 전자 장치(201)는 서버(203)와 통신하도록 구성된 원거리 무선 통신 회로(224)를 더 포함할 수 있다. 이 경우, 근거리 무선 통신 회로(223) 및 원거리 무선 통신 회로(224)는 별도의 칩 또는 모듈로 구성되거나 하나의 칩 또는 모듈로 형성될 수 있다. 일 실시 예에 따르면, 전자 장치(201)는 원거리 무선 통신 프로토콜(예: 도 1의 제2 네트워크(199)를 지원하는 프로토콜)을 통해 서버(203)와 통신할 수 있다. 프로세서(221)는 메모리(222)에 저장된 인스트럭션들을 실행하여 전자 장치(201)를 동작하도록 제어할 수 있다. The electronic device 201 according to an embodiment may include a processor 221, a memory 222, and a short-range wireless communication circuit 223. According to another embodiment, the electronic device 201 may further include a long-distance wireless communication circuit 224 configured to communicate with the server 203. In this case, the short-range wireless communication circuit 223 and the long-range wireless communication circuit 224 may be configured as separate chips or modules, or may be formed as one chip or module. According to an embodiment, the electronic device 201 may communicate with the server 203 through a long-distance wireless communication protocol (eg, a protocol supporting the second network 199 of FIG. 1 ). The processor 221 may control the electronic device 201 to operate by executing instructions stored in the memory 222.

일 실시 예에 따른 외부 전자 장치(202)는 프로세서(231), 메모리(232) 및 근거리 무선 통신 회로(233)를 포함할 수 있다. 다른 실시 예에 따르면, 외부 전자 장치(202)는 서버(203)와 통신하도록 구성된 원거리 무선 통신 회로(234)를 더 포함할 수 있다. 이 경우, 근거리 무선 통신 회로(233) 및 원거리 무선 통신 회로(234)는 별도의 칩 또는 모듈로 구성되거나 하나의 칩 또는 모듈(예: 도 1의 무선 통신 모듈(192))로 형성될 수 있다. 일 실시 예에 따르면, 외부 전자 장치(202)는 원거리 무선 통신 프로토콜(예: 도 1의 제2 네트워크(199)를 지원하는 프로토콜)을 통해 서버(203)와 통신할 수 있다. 프로세서(231)는 메모리(232)에 저장된 인스트럭션들을 실행하여 외부 전자 장치(202)를 동작하도록 제어할 수 있다.The external electronic device 202 according to an embodiment may include a processor 231, a memory 232, and a short-range wireless communication circuit 233. According to another embodiment, the external electronic device 202 may further include a long-distance wireless communication circuit 234 configured to communicate with the server 203. In this case, the short-range wireless communication circuit 233 and the long-range wireless communication circuit 234 may be configured as separate chips or modules, or may be formed as a single chip or module (for example, the wireless communication module 192 of FIG. 1 ). . According to an embodiment, the external electronic device 202 may communicate with the server 203 through a long-distance wireless communication protocol (eg, a protocol supporting the second network 199 of FIG. 1 ). The processor 231 may control the external electronic device 202 to operate by executing instructions stored in the memory 232.

일 실시 예에 따르면, 콘텐트를 공유하기 위하여, 전자 장치(201)는 외부 전자 장치(202)와 데이터를 송수신하기 위한 통신 연결(210)을 수립할 수 있다. 통신 연결(210)은, 예를 들어, 와이파이 애드혹(Adhoc) 방식, 모바일 액세스 포인트(Mobile Access Point) 및 와이파이 다이렉트(WiFi direct)와 같은 P2P(Peer To Peer) 통신 연결일 수 있다. 콘텐트는 메모리(222)에 저장된 데이터 또는 전자 장치(201)(예: 도 1의 표시 장치(160), 또는 음향 출력 장치(155))에 의해서 출력되는 데이터일 수 있다. 예를 들어, 콘텐트는 메모리(222)에 저장된 멀티미디어 데이터나 텍스트 데이터를 포함할 수 있다. 또는 콘텐트는 브라우저를 통해서 전자 장치의 디스플레이에 표시된 페이지의 적어도 일부나 링크 주소를 포함할 수 있다.According to an embodiment, in order to share content, the electronic device 201 may establish a communication connection 210 for transmitting and receiving data with the external electronic device 202. The communication connection 210 may be, for example, a peer-to-peer (P2P) communication connection such as a WiFi Adhoc method, a mobile access point, and a WiFi direct. The content may be data stored in the memory 222 or data output by the electronic device 201 (eg, the display device 160 of FIG. 1 or the sound output device 155 ). For example, the content may include multimedia data or text data stored in the memory 222. Alternatively, the content may include a link address or at least a part of a page displayed on the display of the electronic device through a browser.

전자 장치(201)가 외부 전자 장치(202)와 통신 연결(210)을 수립하기 위해서는 전자 장치(201)의 통신 모듈(예: 도 1의 통신 모듈(190))을 활성화하고, 외부 전자 장치(202)를 포함하는 주변의 장치들을 인식해야 한다. 인식된 주변의 장치들 중에서 외부 전자 장치(202)를 선택하기 위하여, 전자 장치(201)는 주변의 장치들을 나타내는 목록을 표시하고, 목록에서 외부 전자 장치(202)에 상응하는 항목을 선택하는 사용자 입력을 받을 수 있다. 전자 장치(201)는 주변 장치들의 모델명과 같은 정보를 나타내도록 주변 장치 목록을 표시할 수 있으나, 모델명만으로는 사용자가 어떤 장치가 사용자가 연결하고자 하는 장치인지 알기 어렵다.In order for the electronic device 201 to establish a communication connection 210 with the external electronic device 202, the communication module of the electronic device 201 (for example, the communication module 190 in FIG. 1) is activated, and the external electronic device ( 202). In order to select the external electronic device 202 from recognized nearby devices, the electronic device 201 displays a list representing nearby devices, and selects an item corresponding to the external electronic device 202 from the list. Can receive input. The electronic device 201 may display a list of nearby devices to indicate information such as model names of nearby devices, but it is difficult for the user to know which device is the device to which the user wants to connect from only the model name.

또한 전자 장치(201)가 자동으로 외부 전자 장치(202)와 연결하는 경우, 사용자의 의도와는 다르게 신뢰할 수 없는 장치와 통신이 연결되고 데이터를 전송하게 될 수 있다.In addition, when the electronic device 201 automatically connects with the external electronic device 202, communication with an untrusted device may be connected and data may be transmitted, contrary to the intention of the user.

따라서, 일 실시 예에 따르면, 프로세서(221)는 전자 장치(201)를 고유하게 식별할 수 있는 정보를 포함하는 공개 인증서 데이터(이하, "제1 인증서 데이터"로 언급될 수 있다)를 서버(203)에 등록할 수 있다. 또한, 일 실시 예에 따른 외부 전자 장치(202)의 프로세서(231)도 외부 전자 장치(202)를 고유하게 식별할 수 있는 정보를 포함하는 공개 인증서 데이터(이하, "제2 인증서 데이터"로 언급될 수 있다)를 서버(203)에 등록할 수 있다. 예를 들어, 제1 인증서 데이터는 전자 장치(201)에 의해 생성된 키 쌍의 적어도 일부(예를 들어, 공개 키)를 포함할 수 있다. 제2 인증서 데이터는 외부 전자 장치(202)에 의해 생성된 키 쌍의 적어도 일부(예를 들어, 공개 키)를 포함할 수 있다.Accordingly, according to an embodiment, the processor 221 transmits public certificate data (hereinafter, may be referred to as “first certificate data”) including information that can uniquely identify the electronic device 201 to a server ( 203). In addition, the processor 231 of the external electronic device 202 according to an embodiment also includes public certificate data (hereinafter referred to as “second certificate data”) including information that can uniquely identify the external electronic device 202. Can be) can be registered in the server 203. For example, the first certificate data may include at least a part (eg, a public key) of a key pair generated by the electronic device 201. The second certificate data may include at least a portion (eg, a public key) of a key pair generated by the external electronic device 202.

또한, 일 실시 예에 따른 전자 장치(201)는 신뢰할 수 있는 장치들의 공개 인증서 데이터를 포함하는 인증서 목록을 서버(203)로부터 다운로드할 수 있다. 다른 실시 예에 따르면, 전자 장치(201)는 인증서 목록을 직접 수신하지 않고, 클라우드 컴퓨팅을 이용하여 서버(203)에 저장된 인증서 목록을 이용할 수도 있다. 전자 장치(201)는 주변에 위치한 외부 전자 장치(202)와 공개 인증서 데이터를 서로 교환하고, 공개 인증서 데이터를 이용하여 상호 인증을 수행할 수 있다.Also, the electronic device 201 according to an embodiment may download a certificate list including public certificate data of trusted devices from the server 203. According to another embodiment, the electronic device 201 may not directly receive the certificate list, but may use the certificate list stored in the server 203 using cloud computing. The electronic device 201 may exchange public certificate data with the external electronic device 202 located nearby, and perform mutual authentication using the public certificate data.

일 실시 예에 따르면, 전자 장치(201)와 외부 전자 장치(202)는 서버(203)에 로그인한 사용자 계정에 연관하여 공개 인증서 데이터를 등록할 수 있다. 서버(203)는 사용자 계정에 기반하여 서버(203)에 로그인한 장치는 사용자 계정에 연관하여 등록된 공개 인증서 데이터에 대한 접근을 허용할 수 있다. 따라서, 사용자의 전자 장치(201)가 서버(203)에 사용자 계정으로 로그인하면, 프로세서(221)는 전자 장치(201)가 사용자가 자신의 장치로 등록한 기기들의 공개 인증서 데이터에 접근하거나 공개 인증서 데이터를 다운로드하도록 할 수 있다.According to an embodiment, the electronic device 201 and the external electronic device 202 may register public certificate data in association with a user account logged in to the server 203. The server 203 may allow a device logged in to the server 203 based on the user account to access the registered public certificate data in association with the user account. Therefore, when the user's electronic device 201 logs in to the server 203 with a user account, the processor 221 accesses the public certificate data of the devices registered by the user as the user's own device or You can have them download.

일 실시 예에 따르면, 전자 장치(201)와 외부 전자 장치(202)는 동일한 사용자 계정으로 서버에 로그인한 장치일 수 있다. 프로세서(221)는 트리거 이벤트(trigger event)가 발생하면 외부 전자 장치(202)와 콘텐트를 공유하기 위한 통신 연결(210)을 수립할 수 있다. 즉, 사용자는 자신이 소유한 복수의 기기들 간에 콘텐트를 공유하기 위해 전자 장치(201)를 조작할 수 있다. 예를 들어, 전자 장치(201)는 메모리(222)에 저장된 사진 파일에 대한 다른 장치와 공유하기 버튼을 선택하는 사용자 입력을 수신할 수 있다. 다른 예를 들면, 프로세서(221)는 전자 장치(201)에 표시된 컨텐트 중 적어도 일부가 선택된 상태에서,”복사하기” 또는 "다른 장치에 붙여넣기" 명령을 입력 받을 수 있다. 트리거 이벤트는 전자 장치(201)가 외부 전자 장치(202)에 데이터를 전송하거나 외부 전자 장치(202)로부터 데이터를 수신할 수 있는 통신 연결을 수립하도록 하는 인스트럭션이 실행되는 것을 의미하며, 상술한 예시에 한정되지 아니한다.According to an embodiment, the electronic device 201 and the external electronic device 202 may be devices that log in to the server with the same user account. When a trigger event occurs, the processor 221 may establish a communication connection 210 for sharing content with the external electronic device 202. That is, a user may manipulate the electronic device 201 to share content among a plurality of devices owned by the user. For example, the electronic device 201 may receive a user input for selecting a share button for a photo file stored in the memory 222 with another device. For another example, the processor 221 may receive an input of a “copy” or “paste to another device” command while at least some of the content displayed on the electronic device 201 is selected. The trigger event means that an instruction for establishing a communication connection through which the electronic device 201 transmits data to the external electronic device 202 or receives data from the external electronic device 202 is executed, and the above-described example It is not limited to

전자 장치(201)와 외부 전자 장치(202)는 사용자 계정으로 서버(203)에 로그인하면, 원거리 무선 통신 회로(224 또는 234)를 통해 서버(203)로부터 사용자 계정에 상응하는 계정 키 값을 수신할 수 있다. 계정 키 값은 사용자 계정에 대해 서버(203)가 생성한 키 값을 포함할 수 있다. 따라서, 동일한 사용자 계정으로 로그인한 장치는 동일한 계정 키 값을 서버(203)로부터 제공받을 수 있다. 예를 들어, 전자 장치(201)는 근거리 무선 통신 회로(223)를 포함하는 통신 칩에 계정 키 값을 저장할 수 있다. 전자 장치(201) 또는 다른 장치를 통해서 서버(203)에 사용자 계정에 대해 사용자에 대한 사용자 정보가 등록되면, 서버(203)는 사용자 정보에 기초하여 계정 키 값을 생성할 수 있다. 예를 들어, 서버(203)는 사용자 정보를 계정 키 값을 생성하기 위한 함수에 입력하여 계정 키 값을 획득할 수 있다. 사용자 정보는 사용자를 식별할 수 있는 정보를 포함할 수 있다. 예를 들어, 사용자 정보는 사용자 계정에 대한 계정 증명을 포함할 수 있다.When the electronic device 201 and the external electronic device 202 log in to the server 203 with a user account, the electronic device 201 and the external electronic device 202 receive an account key value corresponding to the user account from the server 203 through a remote wireless communication circuit 224 or 234 can do. The account key value may include a key value generated by the server 203 for a user account. Accordingly, a device logged in with the same user account may receive the same account key value from the server 203. For example, the electronic device 201 may store the account key value in a communication chip including the short-range wireless communication circuit 223. When user information on a user is registered in the server 203 through the electronic device 201 or another device, the server 203 may generate an account key value based on the user information. For example, the server 203 may obtain an account key value by inputting user information into a function for generating an account key value. User information may include information capable of identifying a user. For example, the user information may include account credentials for the user account.

프로세서(221)는 전자 장치(201)가 가진 계정 키 값을 포함하는 메시지를 브로드캐스트(broadcast)하도록 근거리 무선 통신 회로(223)를 제어할 수 있다. 근거리 무선 통신 회로(223)는 근거리 무선 통신(예를 들어, 블루투스™ 저에너지(Bluethooth™ Low Energy, BLE) 프로토콜 기반 통신) 신호를 통해서 메시지를 브로드캐스트할 수 있다. 프로세서(221)는 계정 키를 난수와 병합하여 변조하고, 변조된 계정 키를 메시지에 포함시켜 브로드캐스트할 수 있다. 예를 들어, 프로세서(221)는 블룸 필터(Bloom Filter)를 이용하여 계정 키를 포함하는 메시지를 변조할 수 있다. 외부 전자 장치(202)의 프로세서(231)는 근거리 무선 통신 회로(233)를 통해서 메시지를 수신할 수 있다. 프로세서(231)는 브로드캐스트된 메시지에 응답하여 외부 전자 장치(202)가 가진 계정 키 값을 포함하는 메시지를 전자 장치(201)로 전달하도록 외부 전자 장치(202)를 제어할 수 있다. 전자 장치(201)의 프로세서(221)는 외부 전자 장치(202)로부터 수신된 메시지에 기초하여 동일한 계정 키 값을 가지는 외부 전자 장치(202)를 인식할 수 있다. 전자 장치(201)는 인식된 외부 전자 장치(202)와 보안 통신(예: 도 1의 통신 모듈(190)을 통한 보안 통신)을 통해서 인증서 데이터를 교환할 수 있다.The processor 221 may control the short-range wireless communication circuit 223 to broadcast a message including an account key value of the electronic device 201. The short-range wireless communication circuit 223 may broadcast a message through a short-range wireless communication (eg, Bluetooth™ Low Energy (BLE) protocol-based communication) signal. The processor 221 may merge and modulate the account key with a random number, and broadcast the modulated account key by including it in a message. For example, the processor 221 may modulate a message including an account key using a bloom filter. The processor 231 of the external electronic device 202 may receive a message through the short-range wireless communication circuit 233. The processor 231 may control the external electronic device 202 to transmit a message including an account key value of the external electronic device 202 to the electronic device 201 in response to the broadcast message. The processor 221 of the electronic device 201 may recognize the external electronic device 202 having the same account key value based on a message received from the external electronic device 202. The electronic device 201 may exchange certificate data with the recognized external electronic device 202 through secure communication (eg, secure communication through the communication module 190 of FIG. 1 ).

전자 장치(201)가 전자 장치(201)의 제1 인증서 데이터를 외부 전자 장치(202)로 전송하면, 외부 전자 장치(202)의 프로세서(231)는 서버(203)에 저장되어 있거나 서버(203)로부터 수신한 인증서 목록이 제1 인증서 데이터를 포함하는지 검증할 수 있다. 인증서 목록이 제1 인증서 데이터를 포함하는 경우, 프로세서(231)는 외부 전자 장치(202)의 제2 인증서 데이터를 전자 장치(201)로 전송하도록 외부 전자 장치(202)를 제어할 수 있다. 전자 장치(201)의 프로세서(221)는 서버(203)에 저장되어 있거나 서버(203)로부터 수신한 인증서 목록이 제2 인증서 데이터를 포함하는지 여부에 기초하여 외부 전자 장치(202)를 인증할 수 있다. 인증서 목록이 제1 인증서 데이터를 포함하지 않는 경우, 외부 전자 장치(202)는 전자 장치(201)로 제2 인증서 데이터를 전송하지 않고 통신 연결을 종료할 수 있다. 전자 장치(201)와 외부 전자 장치(202)가 인증서 데이터를 이용하여 서로를 인증하면, 프로세서(221)는 전자 장치(201)와 외부 전자 장치(202)가 서로 세션 키를 공유하고, 세션 키에 기반하여 암호화 채널(210)을 형성하도록 전자 장치(201)를 제어할 수 있다. 암호화 채널(210)은, 예를 들어, 애드혹(Adhoc) 방식, 모바일 액세스 포인트(Mobile Access Point) 및 와이파이 다이렉트(WiFi direct)와 같이 데이터를 송수신할 수 있는 통신 연결 방식으로 구성될 수 있다.When the electronic device 201 transmits the first certificate data of the electronic device 201 to the external electronic device 202, the processor 231 of the external electronic device 202 is stored in the server 203 or the server 203 It can be verified whether the certificate list received from) includes the first certificate data. When the certificate list includes the first certificate data, the processor 231 may control the external electronic device 202 to transmit the second certificate data of the external electronic device 202 to the electronic device 201. The processor 221 of the electronic device 201 may authenticate the external electronic device 202 based on whether the list of certificates stored in the server 203 or received from the server 203 includes the second certificate data. have. When the certificate list does not include the first certificate data, the external electronic device 202 may terminate the communication connection without transmitting the second certificate data to the electronic device 201. When the electronic device 201 and the external electronic device 202 authenticate each other using the certificate data, the processor 221 allows the electronic device 201 and the external electronic device 202 to share a session key with each other, and the session key The electronic device 201 may be controlled to form the encryption channel 210 based on the data. The encryption channel 210 may be configured in a communication connection method capable of transmitting and receiving data such as an adhoc method, a mobile access point, and a WiFi direct.

다른 실시 예에 따르면, 전자 장치(201)와 외부 전자 장치(202)는 다른 사용자 계정에 기반하여 서버(203)에 로그인한 장치들일 수 있다. 예를 들어, 사용자는 자신의 장치에서 주변에 위치한 친구의 장치로 콘텐트를 전송하거나 친구의 장치로부터 콘텐트를 수신하기를 원할 수 있다. 일 실시 예에 따른 전자 장치(201)는 전자 장치(201)의 사용자와 외부 전자 장치(202)의 사용자 사이의 상관관계를 식별할 수 있는 사용자 식별 정보에 기초하여 제2 인증서 데이터를 포함하는 인증서 목록을 수신하거나 인증서 목록에 접근할 수 있다. 예를 들어, 사용자 식별 정보는 전자 장치(201)의 연락처 저장소(예: 메모리(222)상에 구성된 연락처 데이터베이스)에 저장된 외부 전자 장치(202)의 식별 정보(보다 구체적인 예를 들면, 전화 번호, 메일 주소 또는 메일 계정과 같은 연락처 정보, International Mobile Equipment Identity(IMEI)와 같은 기기 고유 식별 정보, 또는 소셜 미디어 서비스 계정과 같은 서비스 가입자 식별 정보)를 포함할 수 있다. 사용자 식별 정보는 전자 장치(201) 내에 저장되어야만 하는 것은 아니며, 별도의 장치에 저장된 것일 수도 있다. According to another embodiment, the electronic device 201 and the external electronic device 202 may be devices that log in to the server 203 based on different user accounts. For example, a user may wish to transmit content from his or her device to a friend's device located nearby, or to receive content from a friend's device. The electronic device 201 according to an embodiment is a certificate including second certificate data based on user identification information capable of identifying a correlation between a user of the electronic device 201 and a user of the external electronic device 202 You can receive a list or access a list of certificates. For example, the user identification information is the identification information of the external electronic device 202 stored in the contact storage of the electronic device 201 (for example, a contact database configured on the memory 222) (a more specific example, a phone number, Contact information such as a mail address or mail account, device-specific identification information such as International Mobile Equipment Identity (IMEI), or service subscriber identification information such as a social media service account). The user identification information does not have to be stored in the electronic device 201, but may be stored in a separate device.

프로세서(221)는 전자 장치(201)의 제1 인증서 데이터와, 전자 장치(201)의 사용자 식별 정보(이하, "제1 사용자 식별 정보"로 언급될 수 있다)를 서버(203)에 등록하도록 전자 장치(201)를 제어할 수 있다. 일 실시 예에 따른 전자 장치(201)는 전자 장치(201)의 사용자에 의해 저장된 외부 전자 장치(202)에 대한 사용자 식별 정보(이하, "제2 사용자 식별 정보"로 언급될 수 있다)를 포함하는 사용자 식별 정보 목록(이하, "제1 사용자 식별 정보 목록"으로 언급될 수 있다)을 서버(203)에 제공할 수 있다. 전자 장치(201)의 사용자에 의해 저장된 사용자 식별 정보와 서버(203)에 저장된 사용자 식별 정보는 동기화될 수 있다. 즉, 전자 장치(201)의 사용자에 의해 저장된 사용자 식별 정보에 대한 변경이 발생하면, 서버(203)에 저장된 사용자 식별 정보도 변경된 내용에 상응하여 변경될 수 있다. 외부 전자 장치(202)도 외부 전자 장치의 제2 인증서 데이터와 외부 전자 장치(202)의 제2 사용자 식별 정보를 서버(203)에 등록할 수 있다. 또한, 외부 전자 장치(202)도 외부 전자 장치(202)의 사용자에 의해 저장된 전자 장치(201)에 대한 제1 사용자 식별 정보를 포함하는 사용자 식별 정보 목록(이하, "제2 사용자 식별 정보 목록"으로 언급될 수 있다)을 서버(203)에 제공할 수 있다. The processor 221 registers the first certificate data of the electronic device 201 and user identification information of the electronic device 201 (hereinafter, may be referred to as “first user identification information”) to the server 203. The electronic device 201 can be controlled. The electronic device 201 according to an embodiment includes user identification information on the external electronic device 202 stored by the user of the electronic device 201 (hereinafter may be referred to as “second user identification information”) A list of user identification information (hereinafter may be referred to as a "first user identification information list") may be provided to the server 203. User identification information stored by a user of the electronic device 201 and user identification information stored in the server 203 may be synchronized. That is, when a change to the user identification information stored by the user of the electronic device 201 occurs, the user identification information stored in the server 203 may also be changed according to the changed content. The external electronic device 202 may also register second certificate data of the external electronic device and second user identification information of the external electronic device 202 in the server 203. In addition, the external electronic device 202 is also a user identification information list including first user identification information on the electronic device 201 stored by the user of the external electronic device 202 (hereinafter, "second user identification information list"). May be referred to as) can be provided to the server 203.

서버(203)는 전자 장치(201)와 외부 전자 장치(202)로부터 제공 받은 사용자 식별 정보에 기초하여 인증서 목록을 생성할 수 있다. 일 실시 예에 따르면, 제1 사용자 식별 정보 목록이 제2 사용자 식별 정보를 포함하고, 제2 사용자 식별 정보 목록이 제1 사용자 식별 정보를 포함하는 경우, 서버(203)는 두 장치의 사용자들이 서로를 신뢰할 수 있는 사용자인 것으로 판단할 수 있다. 서버(203)는 제2 인증서 데이터를 포함하는 인증서 목록(이하, "제1 인증서 목록"으로 언급될 수 있다)을 생성할 수 있다. 전자 장치(201)는 사용자 계정으로 로그인하여 제1 인증서 목록에 접근하거나 제1 인증서 목록을 다운로드할 수 있다. 또한, 서버(203)는 제1 인증서 데이터를 포함하는 인증서 목록(이하, "제2 인증서 목록"으로 언급될 수 있다)을 생성할 수 있다. 일 실시 예에 따르면, 인증서 목록은 사용자 식별 정보 목록(예를 들어, 연락처 목록)에 인증서 데이터가 부가된 형태로 제공될 수도 있다.The server 203 may generate a certificate list based on user identification information provided from the electronic device 201 and the external electronic device 202. According to an embodiment, when the first user identification information list includes the second user identification information and the second user identification information list includes the first user identification information, the server 203 Can be determined to be a trusted user. The server 203 may generate a certificate list (hereinafter may be referred to as “first certificate list”) including second certificate data. The electronic device 201 may log in with a user account to access the first certificate list or download the first certificate list. In addition, the server 203 may generate a certificate list (hereinafter may be referred to as a “second certificate list”) including first certificate data. According to an embodiment, the certificate list may be provided in a form in which certificate data is added to a user identification information list (eg, a contact list).

트리거 이벤트가 발생하면, 일 실시 예에 따른, 프로세서(221)는 감지된 트리거 이벤트에 응답하여 광고 패킷을 브로드캐스트하도록 근거리 무선 통신 회로(223)를 제어할 수 있다. 광고 패킷은 제1 인증서 데이터에 기초하여 생성될 수 있다. 예를 들어, 프로세서(221)는 제1 인증서 데이터에 난수 값을 병합하여 변조한 데이터를 포함하도록 광고 패킷을 생성할 수 있다. 다른 예를 들면, 프로세서(221)는 제1 인증서 데이터를 해시(hash) 함수에 입력하여 해시 값을 획득하고, 획득된 해시 값을 포함하도록 광고 패킷을 생성할 수 있다. 다른 실시 예에 따르면, 전자 장치(201)는 외부 전자 장치(202)와 공유되는 공유 키를 획득하고, 공유 키에 기초하여 암호화된 제1 인증서 데이터를 포함하도록 광고 패킷을 생성할 수도 있다.When a trigger event occurs, the processor 221 according to an embodiment may control the short-range wireless communication circuit 223 to broadcast an advertisement packet in response to the detected trigger event. The advertisement packet may be generated based on the first certificate data. For example, the processor 221 may generate an advertisement packet to include modulated data by merging a random number value with the first certificate data. For another example, the processor 221 may obtain a hash value by inputting the first certificate data into a hash function, and generate an advertisement packet to include the obtained hash value. According to another embodiment, the electronic device 201 may obtain a shared key shared with the external electronic device 202 and generate an advertisement packet to include the encrypted first certificate data based on the shared key.

외부 전자 장치(202)의 프로세서(231)는 근거리 무선 통신 회로(233)를 통해서 브로드캐스트된 광고 패킷을 수신할 수 있다. 프로세서(231)는 수신된 광고 패킷으로부터 제1 인증서 데이터를 획득할 수 있다. 프로세서(231)는 획득된 제1 인증서 데이터가 서버(203)로부터 제공되는 인증서 목록에 포함되어 있는지 여부에 기초하여 전자 장치(201)를 인증할 수 있다. 예를 들어, 광고 패킷에 제1 인증서 데이터의 해시 값이 포함되어 있는 경우, 해시 값으로부터 제1 인증서 데이터를 획득할 수 있다. 다른 예를 들면, 인증서 목록이 인증서 데이터의 해시 값을 포함하고, 프로세서(231)는 해시 값들을 비교하여 전자 장치(201)를 인증할 수도 있다. The processor 231 of the external electronic device 202 may receive an advertisement packet broadcast through the short-range wireless communication circuit 233. The processor 231 may obtain the first certificate data from the received advertisement packet. The processor 231 may authenticate the electronic device 201 based on whether the obtained first certificate data is included in the certificate list provided from the server 203. For example, when a hash value of the first certificate data is included in the advertisement packet, the first certificate data may be obtained from the hash value. For another example, the certificate list includes a hash value of certificate data, and the processor 231 may authenticate the electronic device 201 by comparing the hash values.

전자 장치(201)에 대한 인증이 성공적으로 완료된 경우, 외부 전자 장치(202)는 제2 인증서 데이터를 포함하는 응답 패킷을 전자 장치(201)로 전송할 수 있다. 전자 장치(201)가 인증되지 않은 경우, 외부 전자 장치(202)는 응답 패킷을 전송하지 않을 수 있다. 전자 장치(201)의 프로세서(221)는 수신된 응답 패킷으로부터 제2 인증서 데이터를 획득할 수 있다. 프로세서(221)는 획득된 제2 인증서 데이터가 제1 인증서 목록에 포함되어 있는지 여부(즉, 서버(203)로부터 수신된 인증서 데이터와 응답 패킷으로부터 획득된 인증서 데이터가 일치하는지 여부)에 기초하여 외부 전자 장치(202)를 인증할 수 있다. 예를 들어, 응답 패킷에 제2 인증서 데이터의 해시 값이 포함되어 있는 경우, 해시 값으로부터 제2 인증서 데이터를 획득할 수 있다. 다른 예를 들면, 인증서 목록이 인증서 데이터의 해시 값을 포함하고, 프로세서(221)는 해시 값들을 비교하여 외부 전자 장치(202)를 인증할 수도 있다. 외부 전자 장치(202)의 인증이 성공적으로 완료된 경우, 프로세서(221)는 외부 전자 장치(202)와 보안 통신 채널(210)을 형성하도록 전자 장치(201)를 제어할 수 있다.When authentication for the electronic device 201 is successfully completed, the external electronic device 202 may transmit a response packet including the second certificate data to the electronic device 201. If the electronic device 201 is not authenticated, the external electronic device 202 may not transmit a response packet. The processor 221 of the electronic device 201 may obtain second certificate data from the received response packet. The processor 221 determines whether the obtained second certificate data is included in the first certificate list (that is, whether the certificate data received from the server 203 matches the certificate data obtained from the response packet). The electronic device 202 may be authenticated. For example, when a hash value of the second certificate data is included in the response packet, the second certificate data may be obtained from the hash value. For another example, the certificate list includes a hash value of certificate data, and the processor 221 may authenticate the external electronic device 202 by comparing the hash values. When authentication of the external electronic device 202 is successfully completed, the processor 221 may control the electronic device 201 to form a secure communication channel 210 with the external electronic device 202.

도 3은 일 실시 예에 따른, 전자 장치(예: 도 2의 전자 장치(201))가 외부 전자 장치(예: 도 2의 외부 전자 장치(202))와 통신을 연결하는 프로세스를 나타낸 순서도(300)이다.FIG. 3 is a flowchart illustrating a process in which an electronic device (eg, the electronic device 201 of FIG. 2) connects communication with an external electronic device (eg, the external electronic device 202 of FIG. 2) according to an embodiment ( 300).

동작 310에서, 전자 장치는 트리거 이벤트를 감지할 수 있다. 예를 들면, 전자 장치가 카메라(예: 도 1의 카메라 모듈(180))를 이용하여 사진을 캡쳐한 후, 전자 장치에서 표시되는 "주변의 신뢰할 수 있는 기기에 공유" 메뉴 항목을 선택하면, 전자 장치는 트리거 이벤트가 발생한 것으로 판단할 수 있다. 다른 예를 들면, 전자 장치가 클립보드에 데이터를 저장하기 위하여 “복사하기” 항목을 선택하는 사용자 입력을 수신하거나 또는 클립보드에 데이터가 저장된 상태에서 "다른 기기에 붙여넣기" 항목을 선택하는 사용자 입력을 수신하면, 전자 장치는 트리거 이벤트가 발생한 것으로 판단할 수 있다. In operation 310, the electronic device may detect a trigger event. For example, if an electronic device captures a photo using a camera (eg, the camera module 180 of FIG. 1) and then selects the “Share to nearby trusted devices” menu item displayed on the electronic device, The electronic device may determine that a trigger event has occurred. For another example, a user whose electronic device receives a user input of selecting “copy” to save data to the clipboard or selects “paste to another device” while data is stored on the clipboard. Upon receiving an input, the electronic device may determine that a trigger event has occurred.

동작 320에서, 전자 장치는 주변에 위치한 외부 전자 장치를 인식할 수 있다. 예를 들어, 전자 장치는 근거리 무선 통신 신호를 통해서 광고 패킷을 송출하고, 광고 패킷에 대한 응답으로서 외부 전자 장치로부터 응답 패킷을 수신할 수 있다.In operation 320, the electronic device may recognize an external electronic device located nearby. For example, the electronic device may transmit an advertisement packet through a short-range wireless communication signal and receive a response packet from an external electronic device as a response to the advertisement packet.

동작 330에서, 전자 장치는 전자 장치의 제1 인증서 데이터와 외부 전자 장치의 제2 인증서 데이터에 기초하여 상호 인증을 수행할 수 있다. 일 실시 예에 따른 전자 장치와 외부 전자 장치는 미리 신뢰할 수 있는 기기에 대한 공개 인증서 데이터를 가지고 있을 수 있다. 또는, 일 실시 예에 따르면, 전자 장치와 외부 전자 장치는 원거리 무선 통신 회로를 통해 서버(예: 도 2의 서버(203))에 저장된 인증서 데이터에 접근하여 수신된 인증서 데이터를 검증할 수도 있다.In operation 330, the electronic device may perform mutual authentication based on the first certificate data of the electronic device and the second certificate data of the external electronic device. The electronic device and the external electronic device according to an embodiment may have public certificate data for a trusted device in advance. Alternatively, according to an embodiment, the electronic device and the external electronic device may access the certificate data stored in the server (eg, the server 203 of FIG. 2) through a long-distance wireless communication circuit to verify the received certificate data.

동작 340에서, 전자 장치는 외부 전자 장치가 성공적으로 인증되었는지 여부를 판단할 수 있다. 외부 전자 장치가 성공적으로 인증된 경우, 전자 장치는 동작 350에서 외부 전자 장치와 보안 통신 채널을 수립할 수 있다. 트리거 이벤트가 외부 전자 장치로 콘텐트의 데이터를 전송하도록 하는 명령인 경우, 전자 장치는 수립된 보안 통신 채널을 통해서 외부 전자 장치로 데이터를 전송할 수 있다.In operation 340, the electronic device may determine whether the external electronic device has been successfully authenticated. When the external electronic device is successfully authenticated, the electronic device may establish a secure communication channel with the external electronic device in operation 350. When the trigger event is a command to transmit data of content to an external electronic device, the electronic device may transmit data to the external electronic device through an established secure communication channel.

도 4는 일 실시 예에 따른, 전자 장치(401)(예: 도 2의 전자 장치(201))가 동일한 사용자 계정으로 로그인한 외부 전자 장치(402)(예: 도 2의 외부 전자 장치(202))와 통신을 연결하는 프로세스를 나타낸 순서도(400)이다.FIG. 4 illustrates an external electronic device 402 (eg, the external electronic device 202 of FIG. 2) to which the electronic device 401 (eg, the electronic device 201 of FIG. 2) logs in with the same user account, according to an embodiment. )) is a flow chart 400 showing a process of connecting communication with.

동작 411에서, 전자 장치(411)는 원거리 무선 통신 프로토콜을 통해 로그인한 외부 서버(예: 도 2의 서버(203))로부터 계정 키 값을 수신할 수 있다. 또한, 동작 412에서, 외부 전자 장치(402)도 원거리 무선 통신 프로토콜을 통해 외부 서버로부터 동일한 계정 키 값을 수신할 수 있다.In operation 411, the electronic device 411 may receive an account key value from an external server (eg, the server 203 of FIG. 2) logged in through a long-distance wireless communication protocol. Also, in operation 412, the external electronic device 402 may also receive the same account key value from an external server through a long-distance wireless communication protocol.

동작 413에서 트리거 이벤트가 감지되면, 전자 장치(401)는 근거리 무선 통신(예: BLE 통신) 신호를 통해서 동작 415에서 계정 키 값을 포함하는 메시지를 브로드캐스트할 수 있다. 외부 전자 장치(402)는 브로드캐스트되는 신호를 수신하기 위해 주기적으로 또는 지정된 기간 동안 근거리 무선 통신 신호를 스캐닝할 수 있다.When a trigger event is detected in operation 413, the electronic device 401 may broadcast a message including an account key value in operation 415 through a short-range wireless communication (eg, BLE communication) signal. The external electronic device 402 may scan a short-range wireless communication signal periodically or for a specified period in order to receive a broadcast signal.

동작 417에서 외부 전자 장치(402)가 브로드캐스트된 메시지를 수신하면, 동작 419에서 전자 장치(401)와 외부 전자 장치(402)는 계정 키 값에 기초하여 근거리 내에 사용자의 장치인 전자 장치(401) 또는 외부 전자 장치(402)가 위치하고 있음을 인식할 수 있다. 외부 전자 장치(402)가 인식되면 전자 장치(401)는 전자 장치(401)의 프로세서(예: 어플리케이션 프로세서)를 활성화하고, 인식된 외부 전자 장치(402)와 인증서를 교환하기 위해 암호화된 채널을 형성할 수 있다.When the external electronic device 402 receives the broadcast message in operation 417, in operation 419, the electronic device 401 and the external electronic device 402 communicate with the electronic device 401 that is the user's device within a short distance based on the account key value. ) Or, it may be recognized that the external electronic device 402 is located. When the external electronic device 402 is recognized, the electronic device 401 activates a processor (eg, an application processor) of the electronic device 401, and establishes an encrypted channel to exchange a certificate with the recognized external electronic device 402. Can be formed.

동작 421에서 전자 장치(401)는 외부 전자 장치(402)와 상호 인증을 시도하기 위하여 전자 장치의 제1 인증서 데이터를 외부 전자 장치(402)로 전송할 수 있다. 제1 인증서 데이터가 수신되면, 외부 전자 장치(402)는 동작 423에서 제1 인증서 데이터에 기초하여 전자 장치(401)를 인증할 수 있다. 일 실시 예에 따르면, 외부 전자 장치(402)는 동작 427과 동일하거나 유사한 프로세스를 통해서 전자 장치(401)를 인증할 수 있다.In operation 421, the electronic device 401 may transmit first certificate data of the electronic device to the external electronic device 402 in order to attempt mutual authentication with the external electronic device 402. When the first certificate data is received, the external electronic device 402 may authenticate the electronic device 401 based on the first certificate data in operation 423. According to an embodiment, the external electronic device 402 may authenticate the electronic device 401 through the same or similar process as in operation 427.

전자 장치(401)에 대한 인증이 성공적으로 완료되면, 동작 425에서 외부 전자 장치(402)는 전자 장치로 외부 전자 장치(402)의 제2 인증서 데이터를 전자 장치(401)로 전송할 수 있다. 동작 427에서, 전자 장치(401)는 수신된 제2 인증서 데이터에 기초하여 외부 전자 장치(402)를 인증할 수 있다. 외부 전자 장치(402)를 인증하기 위하여, 일 실시 예에 따른 전자 장치(401)는 사용자 계정에 신뢰할 수 있는 기기로 등록된 적어도 하나의 기기의 인증서 데이터를 포함하는 인증서 목록이 제2 인증서 데이터를 포함하는 경우 외부 전자 장치(402)가 인증된 장치인 것으로 판단할 수 있다. 일 실시 예에 따른 전자 장치(401)는 외부 전자 장치(402)를 인증하기 위한 인증서 목록을 외부 서버로부터 획득할 수 있다. 동작 427에서 외부 전자 장치(402)의 인증이 성공적으로 완료되면, 동작 429에서 전자 장치(401)는 외부 전자 장치(402)와 세션 키를 공유하고, 세션 키에 기반하여 통신하는 보안 통신 채널을 수립할 수 있다.When authentication for the electronic device 401 is successfully completed, in operation 425, the external electronic device 402 may transmit the second certificate data of the external electronic device 402 to the electronic device 401 to the electronic device. In operation 427, the electronic device 401 may authenticate the external electronic device 402 based on the received second certificate data. In order to authenticate the external electronic device 402, the electronic device 401 according to an embodiment includes a certificate list including certificate data of at least one device registered as a trusted device in a user account. If included, it may be determined that the external electronic device 402 is an authenticated device. The electronic device 401 according to an embodiment may obtain a certificate list for authenticating the external electronic device 402 from an external server. When authentication of the external electronic device 402 is successfully completed in operation 427, in operation 429, the electronic device 401 shares a session key with the external electronic device 402 and establishes a secure communication channel for communicating based on the session key. Can be established.

도 5는 일 실시 예에 따른, 전자 장치(예: 도 2의 전자 장치(201))가 공유되는 계정 키 값을 획득하고 인증서 목록을 획득하는 프로세스를 나타낸 순서도(500)이다. 이하 서술되는 전자 장치와 외부 서버 간 정보의 전송은 원거리 무선 통신 프로토콜을 통해 수행될 수 있다. FIG. 5 is a flowchart 500 illustrating a process of acquiring a shared account key value and acquiring a certificate list by an electronic device (eg, the electronic device 201 of FIG. 2) according to an embodiment. The transmission of information between the electronic device and the external server described below may be performed through a long-distance wireless communication protocol.

동작 510에서, 전자 장치는 사용자 계정에 기반하여 외부 서버(예: 도 2의 서버(203))에 로그인할 수 있다. 예를 들어, 전자 장치는 서비스 가입 프로세스를 통해서 사용자 정보를 외부 서버에 등록하고, 사용자 계정을 생성한 후, 생성된 사용자 계정에 기반하여 외부 서버와 로그인 세션을 형성할 수 있다.In operation 510, the electronic device may log in to an external server (eg, the server 203 of FIG. 2) based on the user account. For example, the electronic device may register user information to an external server through a service subscription process, create a user account, and then form a login session with the external server based on the created user account.

동작 520에서, 전자 장치는 사용자를 식별할 수 있는 사용자 고유 정보를 외부 서버로 전송할 수 있다. 예를 들어, 전자 장치는 사용자의 계정에 대한 계정 증명을 외부 서버로 전송할 수 있다. 사용자 고유 정보를 수신한 외부 서버는 사용자 고유 정보에 기반하여 계정 키 값을 생성할 수 있다. 동작 530에서 전자 장치는 외부 서버에 의해서 생성된 계정 키 값을 수신할 수 있다.In operation 520, the electronic device may transmit user-specific information for identifying a user to an external server. For example, the electronic device may transmit account proof for the user's account to an external server. The external server receiving the user-specific information may generate an account key value based on the user-specific information. In operation 530, the electronic device may receive an account key value generated by an external server.

전자 장치는 인증서 데이터를 생성할 수 있다. 예를 들어, 전자 장치는 전자 장치의 고유한 시드 값에 기초하여 생성되는 개인 키 및 공개 키를 포함하는 키 쌍을 생성할 수 있다. 여기서, 외부에 공유될 수 있는 공개 인증서 데이터는 공개 키를 포함할 수 있다. 동작 540에서 전자 장치는 공개 인증서 데이터를 외부 서버에 등록할 수 있다. 외부 서버는 전자 장치가 로그인한 사용자 계정에 대해서 공개 인증서 데이터를 등록할 수 있다.The electronic device may generate certificate data. For example, the electronic device may generate a key pair including a private key and a public key generated based on a unique seed value of the electronic device. Here, public certificate data that can be shared externally may include a public key. In operation 540, the electronic device may register public certificate data to an external server. The external server may register public certificate data for a user account logged in by the electronic device.

인증서 데이터를 외부 서버에 등록하는 동작은 복수의 장치들에 의해서 수행될 수 있다. 동일한 사용자 계정을 통해서 동작 510 내지 동작 540이 수행된 경우, 외부 서버는 하나의 사용자 계정에 대해 복수의 인증서 데이터를 등록할 수 있다. 외부 서버는 하나의 사용자 계정에 대해서 등록된 하나 이상의 인증서 데이터를 포함하는 인증서 목록을 생성할 수 있다. 동작 550에서 전자 장치는 외부 서버로부터 인증서 목록을 제공 받을 수 있다.The operation of registering the certificate data to the external server may be performed by a plurality of devices. When operations 510 to 540 are performed through the same user account, the external server may register a plurality of certificate data for one user account. The external server may generate a certificate list including data of one or more certificates registered for one user account. In operation 550, the electronic device may receive a certificate list from an external server.

도 6은 일 실시 예에 따른, 전자 장치(601)(예: 도 2의 전자 장치(201))가 다른 사용자의 외부 전자 장치(602)(예: 도 2의 외부 전자 장치(202))와 통신을 연결하는 프로세스를 나타낸 순서도(600)이다.6 illustrates an electronic device 601 (eg, the electronic device 201 of FIG. 2) and an external electronic device 602 of another user (eg, the external electronic device 202 of FIG. 2) according to an embodiment. A flowchart 600 illustrating a process of connecting communications.

동작 611에서 트리거 이벤트가 감지되면, 동작 613에서 전자 장치(601)는 전자 장치(601)의 제1 인증서 데이터를 포함하는 광고 패킷을 브로드캐스트할 수 있다.When a trigger event is detected in operation 611, in operation 613, the electronic device 601 may broadcast an advertisement packet including first certificate data of the electronic device 601.

동작 615에서 외부 전자 장치(602)가 광고 패킷을 수신하면, 동작 617에서 외부 전자 장치(602)는 광고 패킷에 포함된 제1 인증서 데이터에 기초하여 전자 장치(601)를 인증할 수 있다. 일 실시 예에 따르면, 외부 전자 장치(602)는 동작 621과 동일하거나 유사한 프로세스를 통해서 전자 장치(601)를 인증할 수 있다.When the external electronic device 602 receives the advertisement packet in operation 615, the external electronic device 602 may authenticate the electronic device 601 based on first certificate data included in the advertisement packet in operation 617. According to an embodiment, the external electronic device 602 may authenticate the electronic device 601 through the same or similar process as the operation 621.

전자 장치(601)에 대한 인증이 성공적으로 완료되면, 동작 619에서 외부 전자 장치(602)는 외부 전자 장치의 제2 인증서 데이터를 포함하는 응답 패킷을 전자 장치(601)로 전송할 수 있다. 동작 621에서, 전자 장치(601)는 수신한 응답 패킷으로부터 획득되는 제2 인증서 데이터에 기초하여 외부 전자 장치(602)를 인증할 수 있다. 외부 전자 장치(602)를 인증하기 위하여, 일 실시 예에 따른 전자 장치(601)는 외부 서버로부터 신뢰할 수 있는 적어도 하나의 기기에 대한 인증서 데이터를 포함하는 인증서 목록이 제2 인증서 데이터를 포함하는 경우 외부 전자 장치(602)가 인증된 장치인 것으로 판단할 수 있다.When authentication for the electronic device 601 is successfully completed, in operation 619, the external electronic device 602 may transmit a response packet including the second certificate data of the external electronic device to the electronic device 601. In operation 621, the electronic device 601 may authenticate the external electronic device 602 based on the second certificate data obtained from the received response packet. In order to authenticate the external electronic device 602, the electronic device 601 according to an embodiment includes the second certificate data in a certificate list including certificate data for at least one device trusted from an external server. It may be determined that the external electronic device 602 is an authenticated device.

일 실시 예에 따르면, 전자 장치(601)는 외부 서버(예: 도 2의 서버(203))로부터 인증서 목록을 획득할 수 있다. 외부 서버는 전자 장치(601)의 사용자를 식별할 수 있는 제1 사용자 식별 정보와 전자 장치(601)의 사용자에 의해 저장된 다른 사용자들을 식별할 수 있는 정보를 포함하는 제1 사용자 식별 정보 목록을 획득할 수 있다. 제1 사용자 식별 정보 및 제1 사용자 식별 정보 목록은 전자 장치(601)에 의해서 제공될 수도 있으나, 전자 장치(601)와 동일한 사용자 계정으로 외부 서버에 로그인한 다른 장치를 통해서 제공될 수도 있다. 또한, 외부 서버는 외부 전자 장치(602)의 사용자를 식별할 수 있는 제2 사용자 식별 정보와 외부 전자 장치(602)의 사용자에 의해 저장된 다른 사용자들을 식별할 수 있는 정보를 포함하는 제2 사용자 식별 정보 목록을 획득할 수 있다. 제2 사용자 식별 정보 및 제2 사용자 식별 정보 목록은 외부 전자 장치(602)에 의해서 제공될 수도 있으나, 외부 전자 장치(602)와 동일한 사용자 계정으로 외부 서버에 로그인한 다른 장치를 통해서 제공될 수도 있다. 외부 서버는 제1 사용자 식별 정보 목록이 제2 사용자 식별 정보를 포함하고, 제2 사용자 식별 정보 목록이 제1 사용자 식별 정보를 포함하는 경우, 외부 서버는 외부 전자 장치(602)의 제2 인증서 데이터를 포함하는 인증서 목록을 전자 장치(601)에 제공할 수 있다. 예를 들면, 전화번호로 1234가 할당된 스마트폰을 사용하는 사용자가 그 스마트폰의 연락처 저장소에 전화번호가 5678인 연락처 정보를 저장하고 있고, 전화번호로 5678인 스마트폰을 사용하는 사용자가 그 스마트폰의 연락처 저장소에 전화번호가 1234인 연락처 정보를 저장하고 있는 경우, 두 스마트폰으로부터 연락처 정보를 수신한 외부 서버는 두 장치를 서로 신뢰할 수 있는 기기로 판단할 수 있다. 동작 621에서 외부 전자 장치(602)에 대한 인증이 성공적으로 완료되면, 동작 623에서 전자 장치(601)는 외부 전자 장치(602)와 세션 키를 공유하고, 세션 키에 기반하여 통신하는 보안 통신 채널을 수립할 수 있다.According to an embodiment, the electronic device 601 may obtain a certificate list from an external server (eg, the server 203 of FIG. 2 ). The external server obtains a first user identification information list including first user identification information that can identify a user of the electronic device 601 and information that can identify other users stored by the user of the electronic device 601 can do. The first user identification information and the first user identification information list may be provided by the electronic device 601, but may also be provided through another device logged in to an external server with the same user account as the electronic device 601. In addition, the external server includes second user identification information that can identify a user of the external electronic device 602 and information that can identify other users stored by the user of the external electronic device 602. You can get a list of information. The second user identification information and the second user identification information list may be provided by the external electronic device 602, but may be provided through another device logged in to the external server with the same user account as the external electronic device 602. . When the external server includes the first user identification information list and the second user identification information and the second user identification information list includes the first user identification information, the external server is the second certificate data of the external electronic device 602 A certificate list including a may be provided to the electronic device 601. For example, a user using a smartphone assigned with 1234 as a phone number stores contact information with a phone number 5678 in the contact store of the smartphone, and a user using a smartphone with a phone number 5678 If contact information with a phone number of 1234 is stored in the contact storage of the smartphone, the external server that received the contact information from the two smartphones may determine the two devices as mutually trusted devices. When authentication for the external electronic device 602 is successfully completed in operation 621, in operation 623, the electronic device 601 shares a session key with the external electronic device 602 and communicates based on the session key. Can be established.

도 7은 일 실시 예에 따른, 전자 장치(701)(예: 도 2의 전자 장치(201))가 서버(703)(예: 도 2의 서버(203))로부터 인증서 목록을 획득하는 방법을 개념적으로 나타낸다.FIG. 7 illustrates a method of obtaining a certificate list from a server 703 (eg, the server 203 of FIG. 2) by the electronic device 701 (eg, the electronic device 201 of FIG. 2 ), according to an embodiment. Shown conceptually.

도 7을 참조하면, 전자 장치(701)는 제1 사용자 식별 정보(711)로 전화번호 000-xxxx-yyyy가 할당된 장치이다. 전자 장치(701)는 전자 장치(701)를 식별할 수 있는 고유 정보로서 제1 인증서 데이터(712)를 생성할 수 있다. 전자 장치(701)는 제2 사용자 식별 정보(714)를 포함하는 제1 사용자 식별 정보 목록(713)을 저장하고 있다. 전자 장치(701)가 서버(703)에 로그인하면, 전자 장치(701)는 서버(703)로 제1 사용자 식별 정보(711), 제1 인증서 데이터(712) 및 제1 사용자 식별 정보 목록(713)을 전송할 수 있다.Referring to FIG. 7, the electronic device 701 is a device to which a phone number 000-xxxx-yyyy is assigned as first user identification information 711. The electronic device 701 may generate first certificate data 712 as unique information for identifying the electronic device 701. The electronic device 701 stores a first user identification information list 713 including second user identification information 714. When the electronic device 701 logs in to the server 703, the electronic device 701 sends the first user identification information 711, the first certificate data 712, and the first user identification information list 713 to the server 703. ) Can be transmitted.

도 7을 참조하면, 외부 전자 장치(702)는 제2 사용자 식별 정보(721)로 전화번호 010-aaaa-bbbb가 할당된 장치이다. 외부 전자 장치(702)는 외부 전자 장치(702)를 식별할 수 있는 고유 정보로서 제2 인증서 데이터(722)를 생성할 수 있다. 외부 전자 장치(702)는 제1 사용자 식별 정보(724)를 포함하는 제2 사용자 식별 정보 목록(723)을 저장하고 있다. 외부 전자 장치(702)가 서버(703)에 로그인하면, 외부 전자 장치(702)는 서버(703)로 제2 사용자 식별 정보(721), 제2 인증서 데이터(722) 및 제2 사용자 식별 정보 목록(723)을 전송할 수 있다.Referring to FIG. 7, the external electronic device 702 is a device to which the phone number 010-aaaa-bbbb is assigned as the second user identification information 721. The external electronic device 702 may generate second certificate data 722 as unique information for identifying the external electronic device 702. The external electronic device 702 stores a second user identification information list 723 including the first user identification information 724. When the external electronic device 702 logs in to the server 703, the external electronic device 702 sends a list of second user identification information 721, second certificate data 722, and second user identification information to the server 703. (723) can be transmitted.

서버(703)는 제1 사용자 식별 정보(711)와 제2 사용자 식별 정보 목록(723)을 비교하고, 제2 사용자 식별 정보(721)와 제1 사용자 식별 정보 목록(713)을 비교할 수 있다. 서버(703)는 비교 결과에 기초하여 생성된 인증서 목록(715, 725)을 전자 장치(701) 및 외부 전자 장치(702)에 각각 제공할 수 있다. 일 실시 예에 따르면, 제2 사용자 식별 정보 목록(723)이 제1 사용자 식별 정보(711)를 포함하고, 제1 사용자 식별 정보 목록(713)이 제2 사용자 식별 정보(721)를 포함하는 경우, 인증서 목록(715)은 제2 인증서 데이터(722)를 포함하고, 인증서 목록(725)은 제1 인증서 데이터(712)를 포함할 수 있다. 도 7은 제1 인증서 데이터(712) 및 제2 인증서 데이터(722)가 각각 인증서 목록(715, 725)을 통해 전달되는 실시 예를 도시하지만, 다른 실시 예에 따르면, 서버(703)는 제2 인증서 데이터(722)를 제1 사용자 식별 정보 목록(713)에 포함시킨 후 제1 사용자 식별 정보 목록(713)을 전자 장치(701)에게 전송하고, 제1 인증서 데이터(712)를 제2 사용자 식별 정보 목록(723)에 포함시킨 후 제2 사용자 식별 정보 목록(723)을 외부 전자 장치(702)에게 전송할 수 있다. 다른 실시 예에 따르면, 서버(703)는 제2 인증서 데이터(722)가 포함된 인증서 목록(715)을 제1 사용자 식별 정보 목록(713)에 포함시킨 후 제1 사용자 식별 정보 목록(713)을 전자 장치(701)에게 전송하고, 제1 인증서 데이터(712)가 포함된 인증서 목록(725)을 제2 사용자 식별 정보 목록(723)에 포함시킨 후 제2 사용자 식별 정보 목록(723)을 외부 전자 장치(702)에게 전송할 수 있다.The server 703 may compare the first user identification information 711 and the second user identification information list 723, and compare the second user identification information 721 and the first user identification information list 713. The server 703 may provide certificate lists 715 and 725 generated based on the comparison result to the electronic device 701 and the external electronic device 702, respectively. According to an embodiment, when the second user identification information list 723 includes the first user identification information 711 and the first user identification information list 713 includes the second user identification information 721 , The certificate list 715 may include second certificate data 722, and the certificate list 725 may include first certificate data 712. 7 illustrates an embodiment in which the first certificate data 712 and the second certificate data 722 are transmitted through the certificate lists 715 and 725, respectively, but according to another embodiment, the server 703 is After including the certificate data 722 in the first user identification information list 713, the first user identification information list 713 is transmitted to the electronic device 701, and the first certificate data 712 is identified as a second user. After being included in the information list 723, the second user identification information list 723 may be transmitted to the external electronic device 702. According to another embodiment, the server 703 includes the certificate list 715 including the second certificate data 722 in the first user identification information list 713 and then the first user identification information list 713. After transmitting to the electronic device 701 and including the certificate list 725 including the first certificate data 712 in the second user identification information list 723, the second user identification information list 723 is transferred to an external electronic device. To the device 702.

도 8은 일 실시 예에 따른, 전자 장치(도 7의 701) 및 외부 전자 장치(도 7의 702)가 획득하는 인증서 목록의 예시를 개념적으로 나타낸다.FIG. 8 conceptually illustrates an example of a certificate list acquired by an electronic device (701 in FIG. 7) and an external electronic device (702 in FIG. 7) according to an embodiment.

도 8을 참조하면, 전자 장치(도 7의 701)가 획득하는 인증서 목록(815)은 외부 전자 장치(도 7의 702)의 사용자 식별 정보(801)와 제2 인증서 데이터(802)를 포함할 수 있다. 또한, 외부 전자 장치(도 7의 702)가 획득하는 인증서 목록(825)은 전자 장치(도 7의 701)의 사용자 식별 정보(803)와 제1 인증서 데이터(804)를 포함할 수 있다.Referring to FIG. 8, a certificate list 815 acquired by an electronic device (701 in FIG. 7) includes user identification information 801 and second certificate data 802 of an external electronic device (702 in FIG. 7). I can. Also, the certificate list 825 acquired by the external electronic device (702 in FIG. 7) may include user identification information 803 and first certificate data 804 of the electronic device (701 in FIG. 7 ).

도 8에는 도시되지 않았지만, 다른 실시 예들에 따르면, 전자 장치(도 7의 701) 및 외부 전자 장치(도 7의 702)는 별도의 인증서 목록(815 또는 825)을 수신하지 않고 사용자 식별 정보 목록을 통해 상대방 장치의 인증서 데이터를 획득할 수 있다. 예를 들어, 전자 장치(도 7의 701)는 외부 전자 장치(도 7의 702)의 사용자 식별 정보(801)와 제2 인증서 데이터(802)를 포함하는 제1 사용자 식별 정보 목록(도 7의 713)을 서버(도 7의 703)로부터 획득하고, 외부 전자 장치(도 7의 702)는 전자 장치(도 7의 701)의 사용자 식별 정보(803)와 제1 인증서 데이터(804)를 포함하는 제2 사용자 식별 정보 목록(도 7의 723)을 서버(도 7의 703)로부터 획득할 수 있다. Although not shown in FIG. 8, according to other embodiments, the electronic device (701 in FIG. 7) and the external electronic device (702 in FIG. 7) do not receive a separate certificate list (815 or 825), and a user identification information list. Through this, it is possible to obtain the certificate data of the other device. For example, the electronic device (701 in FIG. 7) includes the user identification information 801 and the second certificate data 802 of the external electronic device (702 in FIG. 7). 713) is obtained from the server (703 in FIG. 7), and the external electronic device (702 in FIG. 7) includes the user identification information 803 and the first certificate data 804 of the electronic device (701 in FIG. 7). The second user identification information list (723 in FIG. 7) may be obtained from the server (703 in FIG. 7).

도 9는 일 실시 예에 따른, 전자 장치(901)(예: 도 2의 전자 장치(201))와 외부 전자 장치(902)(예: 도 2의 외부 전자 장치(202))가 상호 인증을 수행하는 프로세스를 나타낸 순서도(900)이다.9 illustrates mutual authentication between an electronic device 901 (eg, the electronic device 201 of FIG. 2) and an external electronic device 902 (eg, the external electronic device 202 of FIG. 2 ), according to an embodiment. A flowchart 900 showing the process to be performed.

전자 장치(901)가 외부 전자 장치(902)를 인식하는 동작을 수행한 결과(예: 도 4의 동작 415 내지 동작 419), 전자 장치(901)가 외부 전자 장치(902)를 인식하는데 성공한 경우(910), 일 실시 예에 따른 전자 장치(901)는 동작 911에서 제네릭 어트리뷰트 프로파일(Generic Attribute Profile, GATT) 기반으로 외부 전자 장치(902)에 대한 통신을 연결할 수 있다.When the electronic device 901 succeeds in recognizing the external electronic device 902 as a result of performing an operation for recognizing the external electronic device 902 (eg, operations 415 to 419 in FIG. 4 ), the electronic device 901 succeeds in recognizing the external electronic device 902 In operation 911, the electronic device 901 may connect communication with the external electronic device 902 based on a generic attribute profile (GATT) in operation 911.

일 실시 예에 따른 전자 장치(901)는 동작 913에서 외부 전자 장치(902)와 전송 계층 보안(Transport Layer Security, TLS) 프로토콜에 기초하여 키를 교환할 수 있다. 여기서, 교환되는 키는 전자 장치(901)의 제1 인증서 데이터와 외부 전자 장치(902)의 제2 인증서 데이터를 포함할 수 있다. 전자 장치(901)와 외부 전자 장치(902)는 TLS에 기반하여 서로를 인증할 수 있다. 상호 인증에 성공한 경우, 전자 장치(901)는 외부 전자 장치(902)로 데이터(예: 콘텐트)를 송신할 수 있다. The electronic device 901 according to an embodiment may exchange a key with the external electronic device 902 in operation 913 based on a Transport Layer Security (TLS) protocol. Here, the exchanged key may include first certificate data of the electronic device 901 and second certificate data of the external electronic device 902. The electronic device 901 and the external electronic device 902 may authenticate each other based on TLS. When mutual authentication is successful, the electronic device 901 may transmit data (eg, content) to the external electronic device 902.

전자 장치(901)와 외부 전자 장치(902)가 상호 인증에 성공한 경우(915), 전자 장치(901)와 외부 전자 장치(902)는 동작 917에서 보안 통신 연결을 수립할 수 있다. 전자 장치(901)와 외부 전자 장치(902)가 상호 인증에 실패한 경우(919), 전자 장치(901)는 동작 921에서 GATT 기반의 통신 연결을 종료할 수 있다.When the electronic device 901 and the external electronic device 902 succeed in mutual authentication (915 ), the electronic device 901 and the external electronic device 902 may establish a secure communication connection in operation 917. When the electronic device 901 and the external electronic device 902 fail to mutually authenticate in operation 919, the electronic device 901 may terminate the GATT-based communication connection in operation 921.

전자 장치(901)가 외부 전자 장치(902)를 인식하기 위한 동작을 수행하였으나 외부 전자 장치(902)가 인식되지 않은 경우(920), 전자 장치(901)와 외부 전자 장치(902) 간에 프로세스가 수행되지 않을 수 있다.When the electronic device 901 performs an operation to recognize the external electronic device 902 but the external electronic device 902 is not recognized (920), a process between the electronic device 901 and the external electronic device 902 is performed. May not be performed.

도 9의 예시에서, 전자 장치(901)와 외부 전자 장치(902)는 상호 인증(예: 동작 913) 후 보안 연결(915)을 생성할 수 있다. 전자 장치(901)와 외부 전자 장치(902)는 보안 연결(915)을 통하여 보안 채널을 생성할 수 있는 PIN코드(personal identification number code)를 공유할 수 있다. 예를 들어, PIN 코드는 보안 네트워크 채널을 생성하는데에 이용될 수 있다. 보안 네트워크 채널은 해당 PIN코드를 가지는 전자 장치(예: 전자 장치(901)와 외부 전자 장치(902))만이 접속할 수 있다. 이 경우, 전자 장치(901)는 다른 신뢰가능한 외부 전자 장치에 PIN 코드를 공유함으로써 해당 외부 전자 장치가 보안 네트워크 채널에 접속하도록 할 수 있다.In the example of FIG. 9, the electronic device 901 and the external electronic device 902 may create a secure connection 915 after mutual authentication (eg, operation 913 ). The electronic device 901 and the external electronic device 902 may share a personal identification number code (PIN) for creating a secure channel through the secure connection 915. For example, a PIN code can be used to create a secure network channel. Only electronic devices (eg, electronic device 901 and external electronic device 902) having a corresponding PIN code can access the secure network channel. In this case, the electronic device 901 may allow the external electronic device to access the secure network channel by sharing the PIN code with another trusted external electronic device.

도 10은 일 실시 예에 따른, 전자 장치(예: 도 2의 전자 장치(201))가 외부 전자 장치(예: 도 2의 외부 전자 장치(202))의 인증서 데이터를 획득하는 프로세스를 나타낸 순서도(1000)이다.10 is a flowchart illustrating a process of obtaining certificate data of an external electronic device (eg, the external electronic device 202 of FIG. 2) by an electronic device (eg, the electronic device 201 of FIG. 2 ), according to an embodiment (1000).

동작 1010에서, 전자 장치는 사용자 계정에 기반하여 외부 서버에 로그인할 수 있다. 일 실시 예에 따르면, 전자 장치는 외부 서버에 사용자 계정을 생성하기 위한 서비스 가입 프로세스를 진행하기 위한 서비스 가입 화면을 표시하고, 서비스 가입을 위한 정보를 입력 받을 수 있다. 서비스 가입 화면을 이용하여 전자 장치는 제1 사용자 식별 정보와 제2 사용자 식별 정보에 대한 제공 동의에 관한 사용자 입력을 수신할 수 있다.In operation 1010, the electronic device may log in to an external server based on the user account. According to an embodiment, the electronic device may display a service subscription screen for performing a service subscription process for creating a user account on an external server, and receive information for service subscription. Using the service subscription screen, the electronic device may receive a user input regarding consent to provide the first user identification information and the second user identification information.

동작 1020에서, 전자 장치는 전자 장치의 제1 사용자 식별 정보를 사용자를 식별하기 위한 정보로서 외부 서버에 등록할 수 있다. 전자 장치는 제1 인증서 데이터를 생성하고, 생성된 제1 인증서 데이터를 외부 서버에 등록할 수 있다. 동작 1030에서, 제1 사용자 식별 정보 및 제1 인증서 데이터를 등록한 전자 장치는 제2 사용자 식별 정보를 신뢰할 수 있는 사용자의 식별 정보로서 외부 서버로 전송할 수 있다. 제2 사용자 식별 정보는 전자 장치의 사용자에 의해 저장되거나, 전자 장치의 사용자가 식별 정보를 저장하는 별도의 장치로부터 불러들인 정보일 수 있다.In operation 1020, the electronic device may register first user identification information of the electronic device as information for identifying a user in an external server. The electronic device may generate first certificate data and register the generated first certificate data in an external server. In operation 1030, the electronic device registering the first user identification information and the first certificate data may transmit the second user identification information as identification information of a trusted user to an external server. The second user identification information may be stored by a user of the electronic device or may be information fetched by a user of the electronic device from a separate device that stores the identification information.

제2 사용자 식별 정보를 자신의 식별 정보로서 외부 서버에 등록한 외부 전자 장치가 제1 사용자 식별 정보를 신뢰할 수 있는 장치의 식별 정보로 외부 서버에 전송한 경우, 동작 1040에서 전자 장치는 외부 서버로부터 제2 사용자 식별 정보에 상응하는 제2 인증서 데이터를 획득할 수 있다.When an external electronic device that has registered the second user identification information as its own identification information in the external server transmits the first user identification information as the identification information of a trusted device to the external server, in operation 1040, the electronic device is removed from the external server. 2 It is possible to obtain second certificate data corresponding to user identification information.

도 11은 일 실시 예에 따른, 전자 장치(1101)(예: 도 2의 전자 장치(201))가 난수 값을 이용하여 변조된 데이터를 이용하여 외부 전자 장치(1102)(예: 도 2의 외부 전자 장치(202))를 인식하기 위한 전송 프로토콜의 예시를 나타낸다.FIG. 11 illustrates an external electronic device 1102 (eg, FIG. 2) using data modulated by using a random number value by an electronic device 1101 (eg, the electronic device 201 of FIG. 2 ), according to an embodiment. An example of a transmission protocol for recognizing the external electronic device 202 is shown.

일 실시 예에 따른 전자 장치(1101)는 선택된 계정 키(1111)로부터 해시 알고리즘(예: SHA-256)을 이용하여 해시 값을 획득할 수 있다. 전자 장치(1101)는 획득된 해시 값에 블룸 해시 필터(Bloom hash filter)를 적용하여 계정 키(1111)에 대한 참/거짓 배열(1103)을 획득할 수 있다.The electronic device 1101 according to an embodiment may obtain a hash value from the selected account key 1111 using a hash algorithm (eg, SHA-256). The electronic device 1101 may obtain a true/false array 1103 for the account key 1111 by applying a bloom hash filter to the obtained hash value.

전자 장치(1101)는 난수 값을 생성하고, 생성된 난수 값에 블룸 해시 필터를 적용하여 난수 값에 대한 참/거짓 배열(1115)을 획득할 수 있다. 전자 장치(1101)는 난수 값에 대한 참/거짓 배열(1115)을 OR 연산하는 과정을 적어도 한 번 수행하여 최종 참/거짓 배열(1117)을 생성할 수 있다. 전자 장치(1101)는 최종 참/거짓 배열로 구성된 블룸 필터(1117)를 브로드캐스트할 수 있다.The electronic device 1101 may generate a random number value and obtain a true/false array 1115 for the random number value by applying a bloom hash filter to the generated random number value. The electronic device 1101 may generate the final true/false array 1117 by performing an OR operation on the true/false array 1115 for random values at least once. The electronic device 1101 may broadcast the bloom filter 1117 configured in the final true/false arrangement.

외부 전자 장치(1102)는 선택된 계정 키로부터 해시 알고리즘을 이용하여 해시 값을 획득하고, 획득된 해시 값에 블룸 해시 필터를 적용하여 참/거짓 배열(1121)을 획득할 수 있다. 외부 전자 장치(1102)는 브로드캐스트된 블룸 필터(1117)를 수신하면, 참/거짓 배열(1121)과 비교하여 전자 장치(1101)가 근처에 있음을 높은 확률로 인식할 수 있다.The external electronic device 1102 may obtain a hash value from the selected account key using a hash algorithm, and obtain a true/false array 1121 by applying a bloom hash filter to the obtained hash value. When the external electronic device 1102 receives the broadcasted bloom filter 1117, it may recognize with a high probability that the electronic device 1101 is nearby compared to the true/false array 1121.

도 11에 도시된 과정을 통해서 전자 장치(1101)와 외부 전자 장치(1102)의 어플리케이션 프로세서(예: 도 1의 프로세서(120))가 활성화될(또는, 깨어날(awake)) 수 있다.Through the process illustrated in FIG. 11, the electronic device 1101 and the application processor (eg, the processor 120 of FIG. 1) of the electronic device 1101 and the external electronic device 1102 may be activated (or awakened).

블룸 필터는 블룸 필터에 의해 어떤 원소가 집합에 속하지 않은 것으로 판단되었으나 실제로 그 원소가 집합에 속하는 부정 오류는 발생하지 않는다는 특징을 가진다. 따라서, 블룸 필터의 특성을 활용하여 전자 장치(1101)에서 생성된 계정 기반 신호를 변조하여 전달하면 외부 전자 장치(1102)가 사용자의 기기임에도 불구하고 인증 절차를 수행하지 않는 경우가 발생하지 않으며, 사용자의 기기가 아님에도 인증 절차를 수행하는 경우는 매우 낮은 확률로 발생하므로, 높은 정확도로 사용자의 기기를 인식할 수 있다.The bloom filter has a feature that it is determined that an element does not belong to a set by the bloom filter, but there is no negative error that the element belongs to the set. Therefore, if the account-based signal generated by the electronic device 1101 is modulated and transmitted by utilizing the characteristics of the bloom filter, the case where the authentication procedure is not performed even though the external electronic device 1102 is the user's device does not occur. Since the authentication procedure is performed even if it is not the user's device, it occurs with a very low probability, so that the user's device can be recognized with high accuracy.

또한, 블룸 필터의 자료 구조는 작은 공간만을 차지하는 특징을 가진다. 따라서, BLE 신호와 같이 작은 데이터를 전송하는 근거리 무선 통신 신호를 통해서도 실시간으로 전송될 수 있다. 전자 장치(1101)가 전송하는 신호를 변조하는 방법을 변경하면 사용자가 인지하지 못하는 프라이버시 및 트래킹 문제를 방지할 수 있다.Also, the data structure of the bloom filter occupies only a small space. Accordingly, it may be transmitted in real time through a short-range wireless communication signal that transmits small data such as a BLE signal. If the method of modulating the signal transmitted by the electronic device 1101 is changed, a privacy and tracking problem that the user is not aware of can be prevented.

도 12는 일 실시 예에 따른, 전자 장치(1201)(예: 도 2의 전자 장치(201))가 사용자 인터페이스를 통해서 트리거 이벤트를 감지하는 예시를 나타낸다.12 illustrates an example in which the electronic device 1201 (eg, the electronic device 201 of FIG. 2) detects a trigger event through a user interface, according to an exemplary embodiment.

일 실시 예에 따르면, 전자 장치(1201)는 외부 전자 장치(예: 도 2의 외부 전자 장치(202))와 통신 연결을 수립하도록 하는 트리거 이벤트로 감지되는 사용자 입력을 수신하기 위한 사용자 인터페이스 항목(1210)을 출력할 수 있다. 예를 들어, 도 12를 참조하면, 전자 장치(1201)는 사진(1205)을 주변의 기기에 전송하도록 하는 명령을 입력하기 위한 사용자 인터페이스 항목(1210)을 선택하는 터치 입력을 감지할 수 있다.According to an embodiment, the electronic device 1201 is a user interface item for receiving a user input detected as a trigger event for establishing a communication connection with an external electronic device (for example, the external electronic device 202 of FIG. 2 ). 1210) can be output. For example, referring to FIG. 12, the electronic device 1201 may sense a touch input for selecting a user interface item 1210 for inputting a command to transmit a picture 1205 to a nearby device.

일 실시 예에 따른 전자 장치(1201)는 주변의 외부 전자 장치와 통신 연결을 수립하기 위한 프로세스(예: 도 3의 300, 도 4의 400, 도 6의 600)를 수행할 수 있다.The electronic device 1201 according to an embodiment may perform a process (eg, 300 of FIG. 3, 400 of FIG. 4, and 600 of FIG. 6) for establishing a communication connection with an external electronic device.

도 13은 일 실시 예에 따른, 전자 장치(1301)(예: 도 2의 전자 장치(201))가 주변의 외부 전자 장치(1302)(예: 도 2의 외부 전자 장치(202))를 인증하고 통신을 연결하는 구조를 개념적으로 나타낸다.13 illustrates an electronic device 1301 (eg, the electronic device 201 of FIG. 2) authenticates an external electronic device 1302 (eg, the external electronic device 202 of FIG. 2) according to an embodiment. It conceptually represents a structure that connects communication and communication

일 실시 예에 따른 전자 장치(1301)는 전자 장치(1301)의 제1 인증서 데이터를 서버(1303)에 등록할 수 있다. 서버(1303)는 외부 전자 장치(1302)로부터 외부 전자 장치(1302)의 제2 인증서 데이터를 획득할 수 있다. 서버(1303)는 인증서 데이터를 서버(1303)에 등록한 장치들 중에서 전자 장치(1301)가 신뢰할 수 있는 기기의 인증서 목록에 생성할 수 있다. 예를 들어, 두 기기들이 동일한 사용자 계정으로 서버(1303)에 로그인하였거나, 두 기기들이 서로 상대방의 사용자 식별 정보를 가지는 경우, 서버(1303)는 두 기기는 서로 신뢰할 수 있는 기기인 것으로 판단할 수 있다. 전자 장치(1301)는 제2 인증서 데이터(1312)를 포함하는 인증서 목록을 서버(1303)로부터 획득할 수 있다.The electronic device 1301 according to an embodiment may register the first certificate data of the electronic device 1301 with the server 1303. The server 1303 may obtain second certificate data of the external electronic device 1302 from the external electronic device 1302. The server 1303 may generate certificate data in a certificate list of devices that the electronic device 1301 can trust among devices registered with the server 1303. For example, when two devices log in to the server 1303 with the same user account, or when two devices have each other's user identification information, the server 1303 may determine that the two devices are mutually trusted devices. have. The electronic device 1301 may obtain a certificate list including the second certificate data 1312 from the server 1303.

전자 장치(1301)는 주변에 위치한 장치들(1330) 중에서, 전자 장치(1301)의 인증서 목록에 제2 인증서 데이터(1312)가 포함되어 있고, 전자 장치(1301)의 제1 인증서 데이터(1311)를 가지고 있는 외부 전자 장치(1302)와 보안 통신 연결(1320)을 수립할 수 있다. 전자 장치(1301)는 전자 장치(1301)의 인증서 목록에 인증서 데이터가 포함되어 있지 않거나, 전자 장치(1301)의 제1 인증서 데이터를 가지지 않는 장치(1304)와는 통신 연결을 수립하지 않을 수 있다.The electronic device 1301 includes the second certificate data 1312 in the certificate list of the electronic device 1301 among devices 1330 located nearby, and the first certificate data 1311 of the electronic device 1301 A secure communication connection 1320 with the external electronic device 1302 having a may be established. The electronic device 1301 may not establish a communication connection with the device 1304 that does not include certificate data in the certificate list of the electronic device 1301 or does not have the first certificate data of the electronic device 1301.

도 13은 인증서 데이터가 별도의 인증서 목록에서 생성되는 실시 예를 도시하지만, 다른 실시 예들에 따르면 인증서 목록 또는 인증서 데이터는 사용자 식별 정보 목록에 포함될 수 있다. 예를 들어, 서버(1303)는 외부 전자 장치(1302)의 제2 인증서 데이터 또는 제2 인증서 데이터가 포함된 인증서 목록을 전자 장치(1301)의 사용자 식별 정보 목록(예: 도 7의 제1 사용자 식별 정보 목록(713))에 삽입하고, 전자 장치(1301)는 서버(1303)로부터 수신된 제1 사용자 식별 정보 목록(713)을 통해 제2 인증서 데이터를 획득할 수 있다. 13 illustrates an embodiment in which certificate data is generated from a separate certificate list, according to other embodiments, the certificate list or certificate data may be included in the user identification information list. For example, the server 1303 may convert the second certificate data of the external electronic device 1302 or a certificate list including the second certificate data into a user identification information list of the electronic device 1301 (for example, the first user of FIG. 7 ). After inserting into the identification information list 713, the electronic device 1301 may obtain the second certificate data through the first user identification information list 713 received from the server 1303.

도 14는 일 실시 예에 따른, 전자 장치(1301)가 동일한 사용자 계정으로 로그인된 외부 전자 장치(1302)와 연결된 통신 채널을 이용하여 콘텐트를 공유하는 과정에서 전자 장치(1301)와 외부 전자 장치(1302)가 디스플레이하는 화면의 예시를 나타낸다.14 illustrates an electronic device 1301 and an external electronic device in a process in which an electronic device 1301 shares content using a communication channel connected to an external electronic device 1302 logged in with the same user account, according to an embodiment. 1302) shows an example of a screen displayed.

일 실시 예에 따른 전자 장치(1301)는 외부 서버(예: 도 2의 서버(203))로부터 외부 전자 장치(1302)의 인증서와 함께 외부 서버에 등록된 외부 전자 장치(1302)에 대한 기기 식별 정보를 수신할 수 있다. 기기 식별 정보는, 예를 들어, 외부 서버에 등록된 외부 전자 장치(1302)에 대해 사용자가 설정한 닉네임일 수 있다. 또는, 외부 전자 장치(1302)에 대한 기기 식별 정보는 전자 장치(1301)에서 로컬로 설정될 수도 있다. 일 실시 예에 따른 전자 장치(1301)는 외부 전자 장치(1302)와 통신 연결이 수립(예: 도 4의 동작 429)되면, 외부 전자 장치(1302)에 대한 기기 식별 정보를 나타내는 시각적 항목(1410)을 디스플레이할 수 있다.The electronic device 1301 according to an embodiment identifies a device for the external electronic device 1302 registered in the external server together with the certificate of the external electronic device 1302 from an external server (eg, the server 203 of FIG. 2) You can receive information. The device identification information may be, for example, a nickname set by a user for the external electronic device 1302 registered in the external server. Alternatively, device identification information for the external electronic device 1302 may be set locally in the electronic device 1301. According to an embodiment, when a communication connection with the external electronic device 1302 is established (for example, operation 429 in FIG. 4), the electronic device 1301 according to an embodiment displays a visual item 1410 indicating device identification information for the external electronic device 1302. ) Can be displayed.

일 실시 예에 따르면, 전자 장치(1301)는 상호 인증이 완료된 적어도 하나의 외부 전자 장치(1302)를 나타내는 기기 식별 정보를 포함하는 기기 목록을 디스플레이할 수 있다. 전자 장치(1301)는 기기 목록 내에서 외부 전자 장치(1302)를 나타내는 기기 식별 정보를 선택하는 사용자 입력이 수신된 경우, 외부 전자 장치(1302)로 콘텐트를 공유하기 위한 데이터를 전송할 수 있다.According to an embodiment, the electronic device 1301 may display a device list including device identification information indicating at least one external electronic device 1302 for which mutual authentication has been completed. When a user input for selecting device identification information indicating the external electronic device 1302 in the device list is received, the electronic device 1301 may transmit data for sharing content to the external electronic device 1302.

일 실시 예에 따른 외부 전자 장치(1302)는 전자 장치(1301)와 연결된 통신 연결을 통해서 콘텐트가 수신되면, 콘텐트를 전송한 전자 장치(1301)를 나타내는 기기 식별 정보를 나타내는 시각적 항목(1420)을 디스플레이할 수 있다.When content is received through a communication connection connected to the electronic device 1301, the external electronic device 1302 according to an embodiment displays a visual item 1420 indicating device identification information indicating the electronic device 1301 that transmitted the content. Can be displayed.

도 15는 일 실시 예에 따른, 전자 장치(1301)가 다른 사용자의 외부 전자 장치(1302)와 연결된 통신 채널을 이용하여 콘텐트를 공유하는 과정에서 전자 장치(1301)와 외부 전자 장치(1302)가 디스플레이하는 화면의 예시를 나타낸다.15 illustrates a process in which the electronic device 1301 shares content using a communication channel connected to the external electronic device 1302 of another user, according to an embodiment, the electronic device 1301 and the external electronic device 1302 An example of a screen to be displayed is shown.

전자 장치(1301)는 인증서 목록의 제2 인증서 데이터와 전자 장치(1301)의 저장소(예: 연락처 저장소)에 저장된 외부 전자 장치(1302)의 제2 사용자 식별 정보를 연관하여 저장할 수 있다. 예를 들어, 제2 사용자 식별 정보가 아버지의 연락처 정보인 경우, 전자 장치(1301)는 제2 인증서 데이터를 포함하여 아버지의 연락처 정보를 저장할 수 있다. 또는, 전자 장치(1301)는 외부 서버(예: 도 2의 서버(203))로부터 제2 인증서 데이터를 포함하는 연락처 정보를 수신할 수도 있다.The electronic device 1301 may associate and store the second certificate data of the certificate list with the second user identification information of the external electronic device 1302 stored in a storage (eg, contact storage) of the electronic device 1301. For example, when the second user identification information is the father's contact information, the electronic device 1301 may store the father's contact information including the second certificate data. Alternatively, the electronic device 1301 may receive contact information including second certificate data from an external server (eg, the server 203 of FIG. 2 ).

전자 장치(1301)는 제2 인증서 데이터에 기반하여 외부 전자 장치(1302)와 통신 연결을 수립한 경우, 제2 사용자 식별 정보를 나타내는 시각적 항목(1510)을 디스플레이(예: 도 1의 표시 장치(160))를 통해서 표시할 수 있다. 제2 사용자 식별 정보를 나타내는 시각적 항목(1510)은, 예를 들어, 연락처 정보에 포함된 닉네임일 수 있다.When the electronic device 1301 establishes a communication connection with the external electronic device 1302 based on the second certificate data, the electronic device 1301 displays a visual item 1510 indicating second user identification information (for example, the display device of FIG. 1 ( 160)). The visual item 1510 representing the second user identification information may be, for example, a nickname included in the contact information.

일 실시 예에 따르면, 전자 장치(1301)는 상호 인증이 완료된 적어도 하나의 외부 전자 장치(1302)를 나타내는 사용자 식별 정보를 포함하는 기기 목록을 디스플레이할 수 있다. 전자 장치(1301)는 기기 목록 내에서 외부 전자 장치(1302)를 나타내는 사용자 식별 정보를 선택하는 사용자 입력이 수신된 경우, 외부 전자 장치(1302)로 콘텐트를 공유하기 위한 데이터 전송을 시도할 수 있다.According to an embodiment, the electronic device 1301 may display a device list including user identification information indicating at least one external electronic device 1302 for which mutual authentication has been completed. When a user input for selecting user identification information representing the external electronic device 1302 in the device list is received, the electronic device 1301 may attempt to transmit data for sharing content to the external electronic device 1302 .

일 실시 예에 따른 외부 전자 장치(1302)는 전자 장치(1301)의 제1 인증서 데이터에 기반하여 수립된 통신 연결을 통해서 콘텐트를 제공 받는 경우, 전자 장치(1301)를 나타내는 제1 사용자 식별 정보를 나타내는 시각적 항목(1520)을 디스플레이할 수 있다.When receiving content through a communication connection established based on the first certificate data of the electronic device 1301, the external electronic device 1302 according to an embodiment provides first user identification information indicating the electronic device 1301. The indicated visual item 1520 may be displayed.

도 16은 일 실시예에 따른 전자 장치의 설정 UI(1602)를 도시한다.16 illustrates a setting UI 1602 of an electronic device according to an embodiment.

도 16에서, 전자 장치(1601)(예: 도 2의 전자 장치(201))는 디스플레이(1660) 상에 설정 UI(1602)를 제공할 수 있다. 예를 들어, 설정 UI(1602)는 콘텐트 공유를 위한 설정을 제공할 수 있다. 예를 들어, 설정 UI(1602)는 콘텐트 공유의 활성화 설정을 위한 인터페이스(1610)를 포함할 수 있다. 예를 들어, 전자 장치(1601)는 인터페이스(1610)에 대한 입력에 기반하여 콘텐트 공유 기능을 활성화 하거나 비활성화 할 수 있다. In FIG. 16, the electronic device 1601 (eg, the electronic device 201 of FIG. 2) may provide a setting UI 1602 on the display 1660. For example, the setting UI 1602 may provide a setting for sharing content. For example, the setting UI 1602 may include an interface 1610 for setting activation of content sharing. For example, the electronic device 1601 may activate or deactivate a content sharing function based on an input to the interface 1610.

예를 들어, 설정 UI(1602)는 콘텐트 공유 범위 설정을 제공할 수 있다. 친구 모드(1620)로 설정된 경우, 전자 장치(1601)는 전자 장치(1601)의 연락처에 저장된 외부 전자 장치 및 사용자의 전자 장치에 대하여만 콘텐트를 공유할 수 있다. 모두 모드(1630)로 설정된 경우, 전자 장치(1601)는 근처의 모든 외부 전자 장치와 콘텐트를 공유할 수 있다. 예를 들어, 친구 모드(1620)에서, 전자 장치(1601)는 사용자의 전자 장치가 아닌 전자 장치 및/또는 연락처에 저장되지 않은 외부 전자 장치로부터 애드버타이징 패킷을 수신하더라도 이를 디스플레이(1660)에 표시하지 않을 수 있다. For example, the setting UI 1602 may provide a content sharing range setting. When the friend mode 1620 is set, the electronic device 1601 may share content only with the external electronic device stored in the contact information of the electronic device 1601 and the user's electronic device. When the all mode 1630 is set, the electronic device 1601 may share content with all nearby external electronic devices. For example, in the friend mode 1620, the electronic device 1601 displays the advertising packet even if it receives an advertising packet from an electronic device other than the user's electronic device and/or an external electronic device that is not stored in the contact information (1660). May not be displayed on.

일 실시예에 따르면, 전자 장치(1601)는 콘텐트 공유가 활성화되었을 때(예: 인터페이스(1610)에 대한 입력 수신에 따라서 공유가 활성화된 때), 또는 콘텐트 공유가 활성화된 상태에서 완료를 지시하는 입력(예: 버튼 1640의 Done에 대한 입력)이 수신된 때에 애드버타이징 신호를 브로드캐스팅할 수 있다(예: 도 4의 동작 415 또는 도 6의 동작 613). According to an embodiment, the electronic device 1601 indicates completion when content sharing is activated (e.g., when sharing is activated in response to receiving an input to the interface 1610) or when content sharing is activated. When an input (eg, an input to Done of button 1640) is received, an advertising signal may be broadcast (eg, operation 415 of FIG. 4 or operation 613 of FIG. 6 ).

도 17은 일 실시예에 따른 전자 장치의 공유 UI(1701)를 도시한다.17 illustrates a sharing UI 1701 of an electronic device according to an embodiment.

예를 들어, 전자 장치(1601)(예: 도 2의 전자 장치(201))는 인식된 외부 전자 장치에 대한 정보 및 선택을 제공하는 공유 UI(1701)를 디스플레이(1660) 상에 디스플레이할 수 있다. 예를 들어, 공유 UI(1701)에 표시되는 외부 전자 장치들은 외부 전자 장치들로부터 애드버타이징 신호를 수신함으로써 인식된 외부 전자 장치들일 수 있다. For example, the electronic device 1601 (eg, the electronic device 201 of FIG. 2) may display a shared UI 1701 providing information and selection on the recognized external electronic device on the display 1660. have. For example, external electronic devices displayed on the sharing UI 1701 may be external electronic devices recognized by receiving advertising signals from external electronic devices.

일 실시예에 따르면, 전자 장치(1601)는 외부 전자 장치의 유형에 기반하여 외부 전자 장치의 목록을 생성할 수 있다. 예를 들어, 공유 UI(1701)는 자신의 장치 목록(1710), 연락처 기반 장치 목록(1720), 및 다른 장치 목록(1730)을 포함할 수 있다. 자신의 장치 목록(1710)은 전자 장치(1601)와 동일한 계정에 속한 다른 전자 장치(예: 제1 동일 계정 장치(1711) 및 제2 동일 계정 장치(1712))에 대한 정보를 포함할 수 있다. 연락처 기반 장치 목록(1720)은 전자 장치(1601)의 연락처 정보와 매칭된 외부 전자 장치(예: 제1 외부 전자 장치(1721), 제2 외부 전자 장치(1722), 및 제3 외부 전자 장치(1723))에 대한 정보를 포함할 수 있다. 예를 들어, 연락처 기반 장치 목록(1720)은 전자 장치(1601)가 전송한 애드버타이징 신호에 대해 응답 신호(예: 애드버타이징 신호)를 전송한 외부 전자 장치(예: 제1 외부 전자 장치(1721), 제2 외부 전자 장치(1722), 또는 제3 외부 전자 장치(1723)) 중 적어도 하나를 포함할 수 있다. 예를 들어, 전자 장치(201)는 외부 전자 장치로부터 수신된 식별 정보(예: 전화 번호, 메일 주소 또는 메일 계정과 같은 연락처 정보, IMEI(international mobile equipment identity)와 같은 기기 고유 식별 정보, 또는 소셜 미디어 서비스 계정과 같은 서비스 가입자 식별 정보)에 기반하여 연락처 기반 장치 목록(1720)을 표시할 수 있다. 다른 전자 장치 목록(1730)은 전자 장치(1601)의 계정에 속하지 않고 연락처 정보와 매칭되지 않는 전자 장치(예: 제1 기타 장치(1731) 및 제2 기타 장치(1732))의 정보를 포함할 수 있다.According to an embodiment, the electronic device 1601 may generate a list of external electronic devices based on the type of the external electronic device. For example, the sharing UI 1701 may include its own device list 1710, a contact-based device list 1720, and another device list 1730. The own device list 1710 may include information on other electronic devices belonging to the same account as the electronic device 1601 (eg, the first same account device 1711 and the second same account device 1712). . The contact-based device list 1720 includes external electronic devices that match the contact information of the electronic device 1601 (for example, a first external electronic device 1721, a second external electronic device 1722, and a third external electronic device ( 1723)). For example, the contact-based device list 1720 is an external electronic device (eg, a first external device) that has transmitted a response signal (eg, an advertising signal) to the advertising signal transmitted by the electronic device 1601. It may include at least one of the electronic device 1721, the second external electronic device 1722, or the third external electronic device 1722. For example, the electronic device 201 may include identification information received from an external electronic device (eg, contact information such as a phone number, email address, or mail account, device-specific identification information such as international mobile equipment identity), or social A contact-based device list 1720 may be displayed based on service subscriber identification information such as a media service account). The other electronic device list 1730 may include information on electronic devices that do not belong to the account of the electronic device 1601 and do not match contact information (for example, the first other device 1731 and the second other device 1732). I can.

일 실시예에 따르면, 전자 장치(1601)는, 공유 UI(1701)에 표시된 외부 전자 장치의 목록(예: 자신의 장치 목록(1710), 연락처 기반 장치 목록(1720), 또는 다른 장치 목록(1730))의 외부 전자 장치들 중 콘텐트를 전송할 적어도 하나의 외부 전자 장치를 선택하는 입력을 수신할 수 있다. 전자 장치(1601)는 선택 입력에 기반하여 적어도 하나의 외부 전자 장치로 연결 요청 신호를 전송하고, 이에 대한 응답을 적어도 하나의 외부 전자 장치로부터 수신함으로써 보안 통신 채널을 수립(예: 도 6의 동작 623)할 수 있다. According to an embodiment, the electronic device 1601 includes a list of external electronic devices displayed on the sharing UI 1701 (eg, its own device list 1710, a contact-based device list 1720, or another device list 1730). An input for selecting at least one external electronic device to transmit content among the external electronic devices of )) may be received. The electronic device 1601 establishes a secure communication channel by transmitting a connection request signal to at least one external electronic device based on the selection input and receiving a response thereto from at least one external electronic device (e.g., the operation of FIG. 6 ). 623).

일 실시예에 따르면, 전자 장치(1601)는 주변에 자신의 계정과 동일한 계정의 외부 전자 장치가 발견되면, 해당 외부 전자 장치를 자신의 전자 장치 목록(1710)에 표시할 수 있다. 예를 들어, 전자 장치(1601)는 자신의 계정의 외부 전자 장치는 별도의 상호 인증을 수행하지 않고, 해당 외부 전자 장치를 자신의 전자 장치 목록(1710)에 표시할 수 있다. 전자 장치(1601)는 자신의 전자 장치 목록(1710)에 포함된 외부 전자 장치에 데이터를 송신하는 경우, 외부 전자 장치를 전자 장치(1601)에 저장된 인증서 데이터를 이용하여 인증할 수 있다. 인증이 성공적으로 수행된 경우, 전자 장치(1601)는 해당 외부 전자 장치로 콘텐트(예: 데이터)를 송신할 수 있다. According to an embodiment, when an external electronic device having the same account as its own account is found in the vicinity, the electronic device 1601 may display the corresponding external electronic device on the electronic device list 1710 of the electronic device 1601. For example, the electronic device 1601 may display the external electronic device in its electronic device list 1710 without performing a separate mutual authentication of the external electronic device of the account. When the electronic device 1601 transmits data to an external electronic device included in the electronic device list 1710, the electronic device 1601 may authenticate the external electronic device using certificate data stored in the electronic device 1601. When authentication is successfully performed, the electronic device 1601 may transmit content (eg, data) to a corresponding external electronic device.

일 실시예에 따르면, 전자 장치(1601)는 주변에 자신의 연락처 저장소에 포함된 외부 전자 장치가 발견되면, 외부 전자 장치를 연락처 기반 장치 목록(1720)에 표시할 수 있다. 연락처 기반 장치 목록(1720)에 포함된 외부 전자 장치에 데이터를 송신하는 경우, 외부 전자 장치에 대한 인증을 수행할 수 있다. 예를 들어, 전자 장치(1601)는 주변 외부 전자 장치로부터 수신된 데이터(예: 인증서 및/또는 인증서와 관련된 해쉬정보)와 전자 장치(1601)의 연락처에 저장된 데이터(예: 인증서 및/또는 인증서와 관련된 해쉬정보)에 기반하여 외부 전자 장치를 인식 및 인증할 수 있다. 예를 들어, 연락처 기반 장치 목록(1720)의 외부 전자 장치에 대한 데이터 송신 시에, 전자 장치(1601)는 연락처 저장소 내의 인증서를 이용하여 외부 전자 장치와의 상호 인증을 수행할 수 있다. 전자 장치(1601)는 상호 인증이 성공적으로 수행된 경우에 데이터를 외부 전자 장치로 송신할 수 있다. According to an embodiment, when an external electronic device included in its contact storage is found, the electronic device 1601 may display the external electronic device in the contact-based device list 1720. When data is transmitted to an external electronic device included in the contact-based device list 1720, authentication for the external electronic device may be performed. For example, the electronic device 1601 includes data (eg, a certificate and/or hash information related to a certificate) received from an external electronic device and data stored in a contact information (eg, a certificate and/or certificate) Hash information related to), it is possible to recognize and authenticate an external electronic device. For example, when transmitting data to an external electronic device in the contact-based device list 1720, the electronic device 1601 may perform mutual authentication with the external electronic device using a certificate in the contact storage. The electronic device 1601 may transmit data to the external electronic device when mutual authentication is successfully performed.

일 실시예에 따르면, 전자 장치(1601)는 주변에 자신의 전자 장치 및 연락처의 전자 장치가 아닌 외부 전자 장치가 발견되면, 외부 전자 장치를 다른 전자 장치 목록(1730)에 표시할 수 있다. 다른 전자 장치 목록(1730)에 포함된 외부 전자 장치에 데이터를 송신하는 경우, 외부 전자 장치에 대한 인증을 수행할 수 있다. 일 실시예에 따르면, 전자 장치(1601)는 다른 전자 장치 목록(1730)에 포함된 외부 전자 장치를 PIN(personal identification number)코드에 기반하여 인증할 수 있다. 예를 들어, 전자 장치(1601)는 다른 전자 장치 목록(1730)의 외부 전자 장치에 대한 인증서 데이터를 저장하고 있지 않을 수 있다. 이 경우, 전자 장치(1601)는 보안 채널을 수립하기 위한 PIN코드를 생성하고, PIN코드에 기반하여 외부 전자 장치에 대한 상호 인증을 수행할 수 있다. According to an embodiment, when an external electronic device other than the electronic device and the contact's electronic device is found, the electronic device 1601 may display the external electronic device on the other electronic device list 1730. When data is transmitted to an external electronic device included in the other electronic device list 1730, authentication for the external electronic device may be performed. According to an embodiment, the electronic device 1601 may authenticate an external electronic device included in the other electronic device list 1730 based on a personal identification number (PIN) code. For example, the electronic device 1601 may not store certificate data for an external electronic device in the other electronic device list 1730. In this case, the electronic device 1601 may generate a PIN code for establishing a secure channel and perform mutual authentication for the external electronic device based on the PIN code.

일 실시예에 따르면, 전자 장치(1601)는 식별된 외부 전자 장치들 중 일부만을 공유 UI(1701)에 표시할 수 있다. 예를 들어, 외부 전자 장치들로부터 수신된 외부 전자 장치의 상태에 기반하여, 전자 장치(1601)의 외부 전자 장치의 표시 여부를 결정할 수 있다. 외부 전자 장치가 스크린 오프 상태를 지시하는 정보를 송신한 경우, 전자 장치(1601)는 해당 외부 전자 장치를 공유 UI(1701)에 표시하지 않을 수 있다. 외부 전자 장치가 스크린 온 상태를 지시하는 정보를 송신한 경우, 전자 장치(1601)는 해당 외부 전자 장치를 공유 UI(1701)에 표시할 수 있다. 외부 전자 장치가 콘텐트 공유를 허용하는 경우에만, 전자 장치(1601)는 해당 외부 전자 장치를 공유 UI(1701)에 표시하도록 설정될 수 있다. According to an embodiment, the electronic device 1601 may display only some of the identified external electronic devices on the sharing UI 1701. For example, based on the state of the external electronic device received from the external electronic devices, the electronic device 1601 may determine whether to display the external electronic device. When the external electronic device transmits information indicating the screen off state, the electronic device 1601 may not display the corresponding external electronic device on the shared UI 1701. When the external electronic device transmits information indicating the screen-on state, the electronic device 1601 may display the corresponding external electronic device on the shared UI 1701. Only when the external electronic device allows content sharing, the electronic device 1601 may be set to display the corresponding external electronic device on the sharing UI 1701.

도 17의 예시에서, 전자 장치(1601)가 도 16의 친구 모드(1620)로 설정된 경우, 전자 장치(1601)는 다른 장치 목록(1730)을 공유 UI(1701)로부터 생략할 수 있다.In the example of FIG. 17, when the electronic device 1601 is set to the friend mode 1620 of FIG. 16, the electronic device 1601 may omit the other device list 1730 from the sharing UI 1701.

도 18은 일 실시예에 따른 데이터 공유 상황에 따른 아이콘 예시들을 도시한다.18 illustrates examples of icons according to a data sharing situation according to an embodiment.

일 실시예에 따르면, 전자 장치(예: 도 17의 전자 장치 (1601))는 공유 UI(1701)의 아이콘을 통하여 외부 전자 장치의 상태를 표시할 수 있다. 도 18에서, 도 17의 제1 외부 전자 장치(1721)에 기반한 다양한 상태 표시 아이콘들이 설명될 수 있다. According to an embodiment, the electronic device (eg, the electronic device 1601 of FIG. 17) may display the status of the external electronic device through an icon of the sharing UI 1701. In FIG. 18, various status display icons based on the first external electronic device 1721 of FIG. 17 may be described.

일 실시예에 따르면, 전자 장치(1601)는 통신 상태에 기반하여 아이콘을 표시할 수 있다. 제1 아이콘(1801)은 해당 외부 전자 장치에 대한 데이터 송신이 대기 중임을 지시한다. 예를 들어, 다른 외부 전자 장치에 대한 데이터가 송신 중이고, 해당 외부 전자 장치는 다른 외부 전자 장치에 대한 데이터 송신이 완료된 후에 데이터를 수신하기 위하여 대기 중일 때, 해당 전자 장치는 제1 아이콘(1801)과 유사한 형태로 표시될 수 있다. 제2 아이콘(1802)은 해당 외부 전자 장치에 대한 보안 연결이 수립 중임을 나타낸다. 예를 들어, 도 4의 동작 415 내지 동작 429를 수행하는 동안, 전자 장치(1601)는 외부 전자 장치를 제2 아이콘(1802)과 유사한 형태로 표시할 수 있다. 제3 아이콘(1803)은 해당 외부 전자 장치에 대하여 데이터가 송신 중임을 나타낸다. 제4 아이콘(1804)은 해당 외부 전자 장치에 대하여 데이터 송신이 성공적으로 완료되었음을 나타낸다. 제5 아이콘(1805)은 해당 외부 전자 장치에 대한 데이터 송신의 적어도 일부가 실패하였음을 나타낸다. According to an embodiment, the electronic device 1601 may display an icon based on a communication state. The first icon 1801 indicates that data transmission to a corresponding external electronic device is waiting. For example, when data for another external electronic device is being transmitted, and the corresponding external electronic device is waiting to receive data after data transmission to the other external electronic device is completed, the corresponding electronic device is indicated by a first icon 1801 It can be displayed in a form similar to. The second icon 1802 indicates that a secure connection to a corresponding external electronic device is being established. For example, while performing operations 415 to 429 of FIG. 4, the electronic device 1601 may display the external electronic device in a form similar to the second icon 1802. A third icon 1803 indicates that data is being transmitted to a corresponding external electronic device. A fourth icon 1804 indicates that data transmission to the corresponding external electronic device has been successfully completed. A fifth icon 1805 indicates that at least part of data transmission to the corresponding external electronic device has failed.

도 18에 예시된 아이콘들은 예시적인 것으로서, 본 문서의 실시예들이 이에 제한되는 것은 아니다. 예를 들어, 전자 장치(1601)는 텍스트 정보를 이용하여 외부 전자 장치의 상태를 디스플레이할 수 있다. The icons illustrated in FIG. 18 are exemplary, and embodiments of the present document are not limited thereto. For example, the electronic device 1601 may display the state of the external electronic device using text information.

도 19는 일 실시예에 따른 데이터 공유 상태를 지시하는 UI(1991)를 도시한다.19 illustrates a UI 1991 indicating a data sharing state according to an embodiment.

도 19의 예시에서, 전자 장치(1601)(예: 도 2의 전자 장치(201))는 데이터 공유 상태를 지시하는 UI(1991)를 디스플레이(1660)에 표시할 수 있다. 전자 장치(1601)는 아이콘 및 텍스트를 이용하여 공유 상태 정보를 제공할 수 있다. 예를 들어, 제1 전자 장치(1901)는 대기 중이며, 제2 전자 장치(1902)는 연결 중이며, 제3 전자 장치(1903)는 데이터 송신 실패를, 제4 전자 장치(1904)는 데이터 송신 중을, 그리고 제5 전자 장치(1905)는 데이터 송신 완료를 지시할 수 있다. In the example of FIG. 19, the electronic device 1601 (eg, the electronic device 201 of FIG. 2) may display a UI 1991 indicating a data sharing state on the display 1660. The electronic device 1601 may provide sharing status information using an icon and text. For example, the first electronic device 1901 is waiting, the second electronic device 1902 is connecting, the third electronic device 1902 fails to transmit data, and the fourth electronic device 1904 is transmitting data. Then, the fifth electronic device 1905 may indicate completion of data transmission.

노티피케이션 바를 활성화 하는 입력(예: 드래그 입력(1990))이 수신되면, 전자 장치(1601)는 도 20의 UI를 디스플레이(1660)에 표시할 수 있다. When an input for activating the notification bar (eg, a drag input 1990) is received, the electronic device 1601 may display the UI of FIG. 20 on the display 1660.

도 20은 일 실시예에 따른 데이터 공유 상태를 지시하는 UI를 도시한다.20 illustrates a UI indicating a data sharing state according to an embodiment.

참조번호 2001을 참조하여, 도 19의 노티피케이션 바를 활성화 하는 입력(예: 드래그 입력(1990))에 대응하여, 전자 장치(1601)는 데이터 공유 상태 알림(2010)을 포함하는 노티피케이션 바를 디스플레이할 수 있다. 공유 상태 알림(2010)은 데이터 공유에 대한 간략한 정보(예: 공유 대상 외부 전자 장치 정보)를 포함할 수 있다. Referring to reference number 2001, in response to an input for activating the notification bar of FIG. 19 (eg, a drag input 1990), the electronic device 1601 displays a notification bar including a data sharing status notification 2010. Can be displayed. The sharing status notification 2010 may include brief information on data sharing (eg, information on an external electronic device to be shared).

참조번호 2002를 참조하여, 공유 상태 알림(2010)에 대한 입력이 수신되는 경우, 전자 장치(1601)는 구체적인 공유 상태를 제공할 수 있다. 예를 들어, 참조번호 2001의 공유 상태 정보는 도 19의 공유 상태를 지시하는 UI(1991)에 비하여 보다 구체적인 정보를 포함할 수 있다. 예를 들어, 제3 전자 장치(1903)의 경우, 전자 장치(1601)는 몇 개의 파일 중 몇 개가 송신 실패되었는지를 디스플레이(1660)에 표시할 수 있다. 제5 전자 장치(1905)의 경우, 전자 장치(1601)는 몇 개의 파일이 성공적으로 송신되었는지를 디스플레이(1660)에 표시할 수 있다. When an input for the sharing status notification 2010 is received with reference to 2002, the electronic device 1601 may provide a specific sharing status. For example, the sharing state information of reference numeral 2001 may include more specific information than the UI 1991 indicating the sharing state of FIG. 19. For example, in the case of the third electronic device 1903, the electronic device 1601 may display on the display 1660 how many of several files have failed to be transmitted. In the case of the fifth electronic device 1905, the electronic device 1601 may display on the display 1660 how many files have been successfully transmitted.

도 21은 외부 전자 장치에서의 연결 요청 UI를 도시한다.21 illustrates a connection request UI from an external electronic device.

일 실시예에 따르면, 전자 장치(예: 도 15의 전자 장치(1601))는 외부 전자 장치(2102)(예: 도 2의 외부 전자 장치(202))에 연결 요청을 송신할 수 있다. 예를 들어, 외부 전자 장치(2102)의 인증(예: 도 6의 동작 621) 후, 보안 통신 채널의 수립(예: 도 6의 동작 623) 전에, 전자 장치(1601)는 외부 전자 장치(2102)에 연결 요청을 송신할 수 있다. 예를 들어, 전자 장치(1601)는 외부 전자 장치(2102)에 의하여 연결 요청이 수락된 경우에, 보안 통신 채널을 수립할 수 있다.According to an embodiment, the electronic device (eg, the electronic device 1601 of FIG. 15) may transmit a connection request to the external electronic device 2102 (eg, the external electronic device 202 of FIG. 2 ). For example, after authentication of the external electronic device 2102 (eg, operation 621 in FIG. 6), and before establishing a secure communication channel (eg, operation 623 in FIG. 6), the electronic device 1601 ), you can send a connection request. For example, when the connection request is accepted by the external electronic device 2102, the electronic device 1601 may establish a secure communication channel.

도 21의 연결 요청 UI들은, 전자 장치로부터 연결 요청이 수신되었을 때, 외부 전자 장치(2102)의 디스플레이(2160)에 표시될 수 있다. 연결 요청 UI는 외부 전자 장치(2102)의 사용자에게 콘텐트 수신 여부를 프롬프트(prompt)하는 정보를 포함할 수 있다. The connection request UIs of FIG. 21 may be displayed on the display 2160 of the external electronic device 2102 when a connection request is received from the electronic device. The connection request UI may include information for prompting the user of the external electronic device 2102 whether to receive content.

참조번호 2191을 참조하여, 연결 요청 UI(2110)는 파일 수신 여부를 문의하는 팝업 메시지일 수 있다. 예를 들어, 연결 요청 UI(2110)는 파일 송신자의 정보(2113)(예: Alice), 파일의 수(2112)(예: 3) 및/또는 PIN 코드 정보(2111)(예: 007893)를 포함할 수 있다. 일 예시에서, 외부 전자 장치(2102)가 연결 요청으로부터 파일의 수에 대한 정보를 획득하지 못하는 경우, 파일의 수(2112)는 생략될 수 있다. With reference to reference number 2191, the connection request UI 2110 may be a pop-up message inquiring whether to receive a file. For example, the connection request UI 2110 displays the file sender's information 2113 (e.g. Alice), the number of files (2112) (e.g. 3), and/or PIN code information 2111 (e.g. 007893). Can include. In an example, when the external electronic device 2102 fails to obtain information on the number of files from the connection request, the number of files 2112 may be omitted.

참조번호 2102를 참조하여, 연결 요청 UI(2120)는 파일 수신 여부를 문의하는 팝업 메시지일 수 있다. 예를 들어, 연결 요청 UI(2120)는 파일 송신자의 정보(2113)(예: Alice), 파일의 수(2112)(예: 3) 및/또는 파일의 썸네일(2121)를 포함할 수 있다. 예를 들어, 전자 장치(1601)는 연결 요청 신호의 송신 후에, 하나 이상의 신호를 이용하여 썸네일(2121)의 데이터를 외부 전자 장치(2102)로 송신할 수 있다. 다른 예를 들어, 전자 장치(1601)는 썸네일(2121)의 주소(예: URL(uniform resource locator) 또는 압축 URL)를 외부 전자 장치(2102)로 송신할 수 있다. 또 다른 예를 들어, 전자 장치(1601)는 썸네일(2121) 대신에 파일의 요약 정보를 송신할 수 있다. 이 경우, 요약 정보는 송신될 콘텐트에 대한 기계학습에 기반하여 추출된 정보(예: 텍스트 정보)를 포함할 수 있다. With reference to reference number 2102, the connection request UI 2120 may be a pop-up message inquiring whether or not to receive a file. For example, the connection request UI 2120 may include the file sender's information 2113 (eg, Alice), the number of files 2112 (eg, 3), and/or a thumbnail 2121 of a file. For example, after transmitting the connection request signal, the electronic device 1601 may transmit data of the thumbnail 2121 to the external electronic device 2102 using one or more signals. For another example, the electronic device 1601 may transmit the address of the thumbnail 2121 (eg, a uniform resource locator (URL) or a compressed URL) to the external electronic device 2102. As another example, the electronic device 1601 may transmit summary information of a file instead of the thumbnail 2121. In this case, the summary information may include information (eg, text information) extracted based on machine learning on the content to be transmitted.

일 실시예에 따르면, 외부 전자 장치(2102)는 전자 장치(1601)와의 관계에 기반하여 연결 요청 UI를 표시할 수 있다. 예를 들어, 외부 전자 장치(2102)가 전자 장치(1601)의 연락처에 저장된 계정의 전자 장치인 경우, 외부 전자 장치(2102)는 참조번호 2192의 연결 요청 UI(2120)를 표시할 수 있다. 다른 예를 들어, 외부 전자 장치(2102)가 기타 장치(예: 도 17의 기타 장치(1731 또는 1732))인 경우, 외부 전자 장치(2102)는 PIN 코드에 기반하여 전자 장치(1601)와 통신할 수 있다. 이 경우, 외부 전자 장치(2102)는 참조번호 2191의 연결 요청UI(2110)를 표시할 수 있다. According to an embodiment, the external electronic device 2102 may display a connection request UI based on a relationship with the electronic device 1601. For example, when the external electronic device 2102 is an electronic device of an account stored in the contact information of the electronic device 1601, the external electronic device 2102 may display the connection request UI 2120 of reference number 2192. For another example, when the external electronic device 2102 is another device (for example, the other device 1731 or 1732 in FIG. 17), the external electronic device 2102 communicates with the electronic device 1601 based on the PIN code. can do. In this case, the external electronic device 2102 may display the connection request UI 2110 of reference number 2191.

외부 전자 장치(2102)가 연결 허용 입력(예: “Accept”에 대한 입력)을 수신하는 경우, 외부 전자 장치(2102)는 연결 허용을 지시하는 응답 신호를 전자 장치(1601)에 송신할 수 있다. 예를 들어, 전자 장치(1601)는 연결 허용 응답이 수신되면 외부 전자 장치(2102)와 보안 연결을 확립할 수 있다. 외부 전자 장치(2102)가 연결 불허 입력(예: “Decline”에 대한 입력)을 수신하는 경우, 외부 전자 장치(2102)는 연결 불허를 지시하는 응답 신호를 전자 장치(1601)에 송신할 수 있다. 이 경우, 전자 장치(1601)는 데이터 송신의 실패를 지시하는 정보(예: 도 18의 제5 아이콘(1805))를 표시할 수 있다.When the external electronic device 2102 receives a connection permission input (eg, an input for “Accept”), the external electronic device 2102 may transmit a response signal instructing the connection permission to the electronic device 1601. . For example, when the connection acceptance response is received, the electronic device 1601 may establish a secure connection with the external electronic device 2102. When the external electronic device 2102 receives a connection rejection input (eg, an input for “Decline”), the external electronic device 2102 may transmit a response signal indicating connection rejection to the electronic device 1601. . In this case, the electronic device 1601 may display information indicating failure of data transmission (eg, the fifth icon 1805 of FIG. 18 ).

상술한 바와 같이, 본 문서에 개시되는 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 포함하는 인증서 목록을 저장하는 메모리, 근거리 무선 통신 회로, 및 상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고, 상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며, 상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하고, 상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장할 수 있다. As described above, the electronic device disclosed in this document includes a memory for storing a certificate list including first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, and the memory and A processor operatively connected to the short-range wireless communication circuit, and the memory, when executed, detects a trigger event that causes the processor to execute an operation of establishing a communication connection with a device surrounding the electronic device, In response to detection of the trigger event, controlling the short-range wireless communication circuit to broadcast an advertisement packet generated based on the first certificate data, and receiving a response packet from the external electronic device in response to the advertisement packet In one case, third certificate data is obtained from the response packet, the external electronic device is authenticated based on the second certificate data and the third certificate data, and when the external electronic device is authenticated, the external electronic device and Instructions for establishing a secure communication channel can be stored.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 상기 제1 인증서 데이터로부터 해시 함수를 이용하여 제1 해시 값을 획득하고, 상기 제1 해시 값을 포함하도록 상기 광고 패킷을 생성하며, 상기 응답 패킷으로부터 제2 해시 값을 포함하는 상기 제3 인증서 데이터를 획득하고, 상기 제2 해시 값과 상기 제2 인증서 데이터로부터 생성된 해시 값을 비교한 결과에 기초하여 상기 외부 전자 장치를 인증하도록 구성될 수 있다. According to an embodiment, in the instructions, the processor obtains a first hash value from the first certificate data using a hash function, generates the advertisement packet to include the first hash value, and the response packet It may be configured to obtain the third certificate data including a second hash value from and authenticate the external electronic device based on a result of comparing the second hash value with the hash value generated from the second certificate data. have.

일 실시 예에 따르면, 상기 전자 장치는 외부 서버와 통신하도록 구성되는 원거리 무선 통신 회로를 더 포함하고, 상기 인스트럭션들은 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 상기 제1 인증서 데이터 및 상기 전자 장치에 대한 제1 사용자 식별 정보를 사용자 계정에 기반하여 상기 전자 장치가 로그인한 상기 외부 서버에 등록하도록 구성될 수 있다. According to an embodiment, the electronic device further includes a remote wireless communication circuit configured to communicate with an external server, and the instructions include the first certificate data and the electronic device by the processor through the remote wireless communication circuit. The electronic device may be configured to register the first user identification information for to the external server to which the electronic device is logged in, based on a user account.

일 실시 예에 따르면, 상기 메모리는 상기 외부 전자 장치에 대한 제2 사용자 식별 정보를 저장하고, 상기 인스트럭션들은 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 상기 제2 사용자 식별 정보를 사용자 계정에 기반하여 상기 전자 장치가 로그인한 상기 외부 서버로 전송하고, 상기 원거리 무선 통신 회로를 통해, 상기 제2 사용자 식별 정보에 대한 응답으로, 상기 외부 서버로부터 상기 제2 사용자 식별 정보에 상응하는 상기 제2 인증서 데이터를 수신하도록 구성될 수 있다. According to an embodiment, the memory stores second user identification information on the external electronic device, and the instructions are based on the second user identification information by the processor through the remote wireless communication circuit. The second certificate corresponding to the second user identification information from the external server in response to the second user identification information, transmitted to the external server to which the electronic device is logged in, and through the remote wireless communication circuit It can be configured to receive data.

일 실시 예에 따르면, 상기 제2 사용자 식별 정보는, 상기 외부 전자 장치에 상응하는 연락처 정보를 포함할 수 있다. According to an embodiment, the second user identification information may include contact information corresponding to the external electronic device.

일 실시 예에 따르면, 상기 전자 장치는 디스플레이를 더 포함하고, 상기 인스트럭션들은 상기 프로세서가, 상기 디스플레이를 통해서 상기 제2 사용자 식별 정보를 나타내는 시각적 항목을 표시하고, 상기 시각적 항목에 대한 사용자 입력을 수신하며, 상기 사용자 입력에 대한 응답으로, 상기 근거리 무선 통신 회로를 통해 상기 트리거 이벤트에 상응하는 콘텐트 데이터를 상기 보안 통신 채널을 통해서 상기 외부 전자 장치로 전송하도록 구성될 수 있다. According to an embodiment, the electronic device further includes a display, and in the instructions, the processor displays a visual item representing the second user identification information through the display, and receives a user input for the visual item. And, in response to the user input, content data corresponding to the trigger event may be transmitted to the external electronic device through the secure communication channel through the short-range wireless communication circuit.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 상기 외부 전자 장치와 공유되는 공유 키를 획득하고, 상기 공유 키에 기초하여 상기 제1 인증서 데이터를 암호화하며, 상기 암호화된 제1 인증서 데이터를 포함하여 상기 광고 패킷을 생성하도록 구성될 수 있다. According to an embodiment, the instructions include the processor obtaining a shared key shared with the external electronic device, encrypting the first certificate data based on the shared key, and including the encrypted first certificate data Thus, it may be configured to generate the advertisement packet.

상술한 바와 같이, 본 문서에 개시되는 전자 장치는, 상기 전자 장치의 제1 인증서 데이터, 외부 전자 장치에 대한 제1 사용자 식별 정보 및 상기 제1 사용자 식별 정보에 상응하는 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 및 상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 근거리 무선 통신 회로를 통해서 제3 인증서 데이터를 포함하는 광고 패킷을 수신하고, 상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하고, 상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 근거리 무선 통신 회로를 통해 상기 외부 전자 장치로 전송하며, 상기 근거리 무선 통신 회로를 통해, 상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장할 수 있다. As described above, the electronic device disclosed in this document stores first certificate data of the electronic device, first user identification information for an external electronic device, and second certificate data corresponding to the first user identification information. A memory, a short-range wireless communication circuit, and a processor operatively connected to the memory and the short-range wireless communication circuit, wherein the memory, when executed, the processor transmits third certificate data through the short-range wireless communication circuit. When receiving an advertisement packet containing, and in response to receiving the advertisement packet, comparing the third certificate data with the second certificate data, and when the third certificate data and the second certificate data match, the second certificate data 1 A response packet generated based on certificate data is transmitted to the external electronic device through the short-range wireless communication circuit, and based on the response of the external electronic device to the transmitted response packet through the short-range wireless communication circuit Instructions for establishing a secure communication channel with the external electronic device may be stored.

상술한 바와 같이, 본 문서에 개시되는 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 원거리 무선 통신 회로, 및 상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며, 상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고, 상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하며, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하도록 하는 인스트럭션들을 저장할 수 있다. As described above, the electronic device disclosed in this document includes a memory for storing first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, a long-range wireless communication circuit, and the memory, And a processor operatively connected to the short-range wireless communication circuit and the long-range wireless communication circuit, and the memory includes, when executed, the processor, through the long-range wireless communication circuit, on an external server based on a user account. A trigger event for performing a login, receiving an account key value corresponding to the user account from the external server through the remote wireless communication circuit, and establishing a communication connection with a device around the electronic device is performed. Sensing, and in response to detection of the trigger event, controlling the short-range wireless communication circuit to broadcast a message including the account key value, and the external device having the same key value as the account key value based on the message Identify the electronic device, transmit the first certificate data to the external electronic device through the short-range wireless communication circuit, receive third certificate data from the external electronic device through the short-range wireless communication circuit, and the Instructions for authenticating the external electronic device based on the second certificate data and the third certificate data may be stored.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 블룸 필터를 이용하여 상기 메시지를 변조하고, 상기 변조된 메시지를 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하도록 구성될 수 있다. According to an embodiment, the instructions may be configured such that the processor modulates the message using a bloom filter and controls the short-range wireless communication circuit to broadcast the modulated message.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버에 사용자를 식별할 수 있는 사용자 고유 정보를 전송하고, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 고유 정보에 기초하여 생성된 상기 계정 키 값을 수신하도록 구성될 수 있다.According to an embodiment, the instructions are transmitted by the processor to the external server through the remote wireless communication circuit, user-specific information, and through the remote wireless communication circuit, from the external server. It may be configured to receive the account key value generated based on the user-specific information.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 상기 사용자 계정에 기반하여 상기 외부 서버에 상기 제1 인증서 데이터를 등록하도록 구성될 수 있다. According to an embodiment, the instructions may be configured such that the processor registers the first certificate data to the external server based on the user account through the remote wireless communication circuit.

일 실시 예에 따르면, 상기 인스트럭션들은 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 상기 사용자 계정에 기반하여 상기 외부 서버에 등록된 상기 제2 인증서 데이터를 상기 외부 서버로부터 수신하도록 구성될 수 있다. According to an embodiment, the instructions may be configured such that the processor receives the second certificate data registered in the external server from the external server based on the user account through the remote wireless communication circuit.

상술한 바와 같이, 본 문서에 개시되는 전자 장치는, 상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리, 근거리 무선 통신 회로, 원거리 무선 통신 회로, 및 상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고, 상기 메모리는, 실행 시에, 상기 프로세서가, 상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고, 상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며, 상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하며, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하며, 상기 외부 전자 장치의 인증이 완료된 경우, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하도록 하는 인스트럭션들을 저장할 수 있다. As described above, the electronic device disclosed in this document includes a memory for storing first certificate data of the electronic device and second certificate data of an external electronic device, a short-range wireless communication circuit, a long-range wireless communication circuit, and the memory, And a processor operatively connected to the short-range wireless communication circuit and the long-range wireless communication circuit, and the memory includes, when executed, the processor, through the long-range wireless communication circuit, on an external server based on a user account. Log in, receive an account key value corresponding to the user account from the external server through the remote wireless communication circuit, receive a message including the account key value through the short-range wireless communication circuit, the Based on a message, the external electronic device having the same key value as the account key value is identified, and through the short-range wireless communication circuit, third certificate data is received from the external electronic device, and the second certificate data and the Authenticate the external electronic device based on the third certificate data, and store instructions for transmitting the first certificate data to the external electronic device through the short-range wireless communication circuit when the authentication of the external electronic device is completed. I can.

상술한 바와 같이, 본 문서에 개시되는 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작, 상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하는 동작, 상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하는 동작, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작, 및 상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함할 수 있다. As described above, a method of performing communication by an electronic device disclosed in this document with an external electronic device includes: storing first certificate data of the electronic device and second certificate data of the external electronic device, and the electronic device Detecting a trigger event for establishing a communication connection with a nearby device, in response to detection of the trigger event, broadcasting an advertisement packet generated based on the first certificate data, and a response to the advertisement packet When a response packet is received from the external electronic device, obtaining third certificate data from the response packet, authenticating the external electronic device based on the second certificate data and the third certificate data, and When the external electronic device is authenticated, an operation of establishing a secure communication channel with the external electronic device may be included.

일 실시 예에 따르면, 상기 방법은 사용자 계정에 기반하여 상기 전자 장치가 외부 서버에 로그인하는 동작, 상기 외부 전자 장치에 대한 제2 사용자 식별 정보를 상기 외부 서버로 전송하는 동작, 및 상기 상기 제2 사용자 식별 정보에 대한 응답으로, 상기 외부 서버로부터 상기 제2 사용자 식별 정보에 상응하는 상기 제2 인증서 데이터를 수신하는 동작을 포함할 수 있다. According to an embodiment, the method includes an operation of logging in by the electronic device to an external server based on a user account, transmitting second user identification information of the external electronic device to the external server, and the second In response to the user identification information, the operation of receiving the second certificate data corresponding to the second user identification information from the external server may be included.

상술한 바와 같이, 본 문서에 개시되는 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 제3 인증서 데이터를 포함하는 광고 패킷을 수신하는 동작, 상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하는 동작, 상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 외부 전자 장치로 전송하는 동작, 및 상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함할 수 있다. As described above, a method of performing communication by an electronic device disclosed in this document with an external electronic device includes an operation of storing first certificate data of the electronic device and second certificate data of the external electronic device, and a third certificate. Receiving an advertisement packet including data, in response to receiving the advertisement packet, comparing the third certificate data with the second certificate data, and matching the third certificate data with the second certificate data In case, the operation of transmitting a response packet generated based on the first certificate data to the external electronic device, and establishing a secure communication channel with the external electronic device based on a response of the external electronic device to the transmitted response packet. It may include an operation to establish.

상술한 바와 같이, 본 문서에 개시되는 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작, 상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작, 상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하는 동작, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작, 상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하는 동작, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작, 및 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작을 포함할 수 있다. As described above, a method of performing communication by an electronic device disclosed in this document with an external electronic device includes an operation of storing first certificate data of the electronic device and second certificate data of the external electronic device, in an external server. An operation of performing a login based on a user account, an operation of receiving an account key value corresponding to the user account from the external server, an operation of detecting a trigger event for establishing a communication connection with a device surrounding the electronic device, the In response to detection of a trigger event, broadcasting a message including the account key value, identifying the external electronic device having the same key value as the account key value based on the message, the external electronic device Transmitting the first certificate data to, receiving third certificate data from the external electronic device, and authenticating the external electronic device based on the second certificate data and the third certificate data. can do.

일 실시 예에 따르면, 상기 방법은 상기 사용자 계정에 기반하여 상기 외부 서버에 등록된 상기 제2 인증서 데이터를 상기 외부 서버로부터 수신하는 동작을 더 포함할 수 있다. According to an embodiment, the method may further include receiving the second certificate data registered in the external server from the external server based on the user account.

상술한 바와 같이, 본 문서에 개시되는 전자 장치가 외부 전자 장치와 통신을 수행하는 방법은, 상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작, 상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하는 동작, 상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작, 상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작, 및 상기 외부 전자 장치의 인증이 완료된 경우, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하는 동작을 포함할 수 있다. As described above, a method of performing communication by an electronic device disclosed in this document with an external electronic device includes an operation of storing first certificate data of the electronic device and second certificate data of the external electronic device, in an external server. Logging in based on a user account, receiving an account key value corresponding to the user account from the external server, receiving a message including the account key value through the short-range wireless communication circuit, the Checking the external electronic device having the same key value as the account key value based on a message, receiving third certificate data from the external electronic device, based on the second certificate data and the third certificate data Thus, an operation of authenticating the external electronic device, and when authentication of the external electronic device is completed, transmitting the first certificate data to the external electronic device.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.An electronic device according to various embodiments disclosed in this document may be a device of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. 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 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutes of the corresponding embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or a plurality of the items unless clearly indicated otherwise in a related context. In this document, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C” and “A, Each of phrases such as "at least one of B or C" may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other Order) is not limited. Some (eg, first) component is referred to as “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When mentioned, it means that any of the above components can be connected to the other components directly (eg by wire), wirelessly, or via a third component.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits. The module may be an integrally configured component or a minimum unit of the component or a part thereof 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 instructions stored in a storage medium (eg, internal memory 136 or external memory 138) that can be read by a machine (eg, electronic device 101). It may be implemented as software (for example, the program 140) including them. For example, the processor (eg, the processor 120) of the device (eg, the electronic device 101) may call and execute at least one command among one or more commands stored from a storage medium. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here,'non-transient' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.

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

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular number 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 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 in the same or similar to that 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 may be sequentially, parallel, repeatedly, or heuristically executed, or one or more of the operations may be executed in a different order or omitted. Or one or more other actions may be added.

Claims (20)

전자 장치에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 포함하는 인증서 목록을 저장하는 메모리;
근거리 무선 통신 회로; 및
상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고,
상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며,
상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하고,
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하고,
상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장하는, 전자 장치.
In the electronic device,
A memory for storing a certificate list including first certificate data of the electronic device and second certificate data of an external electronic device;
Short-range wireless communication circuit; And
And a processor operatively connected to the memory and the short-range wireless communication circuit,
The memory, when executed, the processor,
Detecting a trigger event for executing an operation of establishing a communication connection with a device around the electronic device,
In response to detection of the trigger event, controlling the short-range wireless communication circuit to broadcast an advertisement packet generated based on the first certificate data,
When a response packet is received from the external electronic device in response to the advertisement packet, third certificate data is obtained from the response packet,
Authenticate the external electronic device based on the second certificate data and the third certificate data,
An electronic device that stores instructions for establishing a secure communication channel with the external electronic device when the external electronic device is authenticated.
청구항 1에 있어서,
상기 인스트럭션들은 상기 프로세서가,
상기 제1 인증서 데이터로부터 해시 함수를 이용하여 제1 해시 값을 획득하고,
상기 제1 해시 값을 포함하도록 상기 광고 패킷을 생성하며,
상기 응답 패킷으로부터 제2 해시 값을 포함하는 상기 제3 인증서 데이터를 획득하고,
상기 제2 해시 값과 상기 제2 인증서 데이터로부터 생성된 해시 값을 비교한 결과에 기초하여 상기 외부 전자 장치를 인증하도록 구성된, 전자 장치.
The method according to claim 1,
The instructions are the processor,
Obtaining a first hash value from the first certificate data using a hash function,
Generating the advertisement packet to include the first hash value,
Obtaining the third certificate data including a second hash value from the response packet,
The electronic device, configured to authenticate the external electronic device based on a result of comparing the second hash value with the hash value generated from the second certificate data.
청구항 1에 있어서,
외부 서버와 통신하도록 구성되는 원거리 무선 통신 회로를 더 포함하고,
상기 인스트럭션들은 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 상기 제1 인증서 데이터 및 상기 전자 장치에 대한 제1 사용자 식별 정보를 사용자 계정에 기반하여 상기 전자 장치가 로그인한 상기 외부 서버에 등록하도록 구성된, 전자 장치.
The method according to claim 1,
Further comprising a long-range wireless communication circuit configured to communicate with an external server,
The instructions are the processor,
The electronic device, configured to register the first certificate data and first user identification information for the electronic device in the external server to which the electronic device logs in based on a user account through the long-distance wireless communication circuit.
청구항 3에 있어서,
상기 메모리는 상기 외부 전자 장치에 대한 제2 사용자 식별 정보를 저장하고,
상기 인스트럭션들은 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 상기 제2 사용자 식별 정보를 사용자 계정에 기반하여 상기 전자 장치가 로그인한 상기 외부 서버로 전송하고,
상기 원거리 무선 통신 회로를 통해, 상기 제2 사용자 식별 정보에 대한 응답으로, 상기 외부 서버로부터 상기 제2 사용자 식별 정보에 상응하는 상기 제2 인증서 데이터를 수신하도록 구성된, 전자 장치.
The method of claim 3,
The memory stores second user identification information on the external electronic device,
The instructions are the processor,
Transmitting the second user identification information to the external server to which the electronic device is logged in, based on a user account, through the long-distance wireless communication circuit,
The electronic device, configured to receive the second certificate data corresponding to the second user identification information from the external server in response to the second user identification information through the long-distance wireless communication circuit.
청구항 4에 있어서,
상기 제2 사용자 식별 정보는, 상기 외부 전자 장치에 상응하는 연락처 정보를 포함하는, 전자 장치.
The method of claim 4,
The second user identification information includes contact information corresponding to the external electronic device.
청구항 4에 있어서,
디스플레이를 더 포함하고,
상기 인스트럭션들은 상기 프로세서가,
상기 디스플레이를 통해서 상기 제2 사용자 식별 정보를 나타내는 시각적 항목을 표시하고,
상기 시각적 항목에 대한 사용자 입력을 수신하며,
상기 사용자 입력에 대한 응답으로, 상기 근거리 무선 통신 회로를 통해 상기 트리거 이벤트에 상응하는 콘텐트 데이터를 상기 보안 통신 채널을 통해서 상기 외부 전자 장치로 전송하도록 구성된, 전자 장치.
The method of claim 4,
Further comprising a display,
The instructions are the processor,
Display a visual item representing the second user identification information through the display,
Receive user input for the visual item,
In response to the user input, the electronic device configured to transmit content data corresponding to the trigger event to the external electronic device through the secure communication channel through the short-range wireless communication circuit.
청구항 1에 있어서,
상기 인스트럭션들은 상기 프로세서가,
상기 외부 전자 장치와 공유되는 공유 키를 획득하고,
상기 공유 키에 기초하여 상기 제1 인증서 데이터를 암호화하며,
상기 암호화된 제1 인증서 데이터를 포함하여 상기 광고 패킷을 생성하도록 구성된, 전자 장치.
The method according to claim 1,
The instructions are the processor,
Obtaining a shared key shared with the external electronic device,
Encrypting the first certificate data based on the shared key,
The electronic device, configured to generate the advertisement packet including the encrypted first certificate data.
전자 장치에 있어서,
상기 전자 장치의 제1 인증서 데이터, 외부 전자 장치에 대한 제1 사용자 식별 정보 및 상기 제1 사용자 식별 정보에 상응하는 제2 인증서 데이터를 저장하는 메모리;
근거리 무선 통신 회로; 및
상기 메모리 및 상기 근거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
상기 근거리 무선 통신 회로를 통해서 제3 인증서 데이터를 포함하는 광고 패킷을 수신하고,
상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하고,
상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 근거리 무선 통신 회로를 통해 상기 외부 전자 장치로 전송하며,
상기 근거리 무선 통신 회로를 통해, 상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하도록 하는 인스트럭션들을 저장하는, 전자 장치.
In the electronic device,
A memory for storing first certificate data of the electronic device, first user identification information of the external electronic device, and second certificate data corresponding to the first user identification information;
Short-range wireless communication circuit; And
And a processor operatively connected to the memory and the short-range wireless communication circuit,
The memory, when executed, the processor,
Receiving an advertisement packet including third certificate data through the short-range wireless communication circuit,
In response to receiving the advertisement packet, comparing the third certificate data with the second certificate data,
When the third certificate data and the second certificate data are matched, a response packet generated based on the first certificate data is transmitted to the external electronic device through the short-range wireless communication circuit,
The electronic device storing instructions for establishing a secure communication channel with the external electronic device based on a response of the external electronic device to the transmitted response packet through the short-range wireless communication circuit.
전자 장치에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리;
근거리 무선 통신 회로;
원거리 무선 통신 회로; 및
상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고,
상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며,
상기 전자 장치 주변의 장치와 통신 연결을 수립하는 동작을 실행하도록 하는 트리거 이벤트를 감지하고,
상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하며,
상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고,
상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하며,
상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고,
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하도록 하는 인스트럭션들을 저장하는, 전자 장치.
In the electronic device,
A memory for storing first certificate data of the electronic device and second certificate data of an external electronic device;
Short-range wireless communication circuit;
Long-range wireless communication circuit; And
A processor operatively connected to the memory, the short-range wireless communication circuit, and the long-range wireless communication circuit,
The memory, when executed, the processor,
Through the long-distance wireless communication circuit, log in to an external server based on a user account,
Through the long-distance wireless communication circuit, receiving an account key value corresponding to the user account from the external server,
Detecting a trigger event for executing an operation of establishing a communication connection with a device around the electronic device,
In response to detection of the trigger event, controlling the short-range wireless communication circuit to broadcast a message including the account key value,
Identifying the external electronic device having the same key value as the account key value based on the message,
Transmitting the first certificate data to the external electronic device through the short-range wireless communication circuit,
Through the short-range wireless communication circuit, receiving third certificate data from the external electronic device,
An electronic device that stores instructions for authenticating the external electronic device based on the second certificate data and the third certificate data.
청구항 9에 있어서,
상기 인스트럭션들은 상기 프로세서가,
블룸 필터를 이용하여 상기 메시지를 변조하고,
상기 변조된 메시지를 브로드캐스트하도록 상기 근거리 무선 통신 회로를 제어하도록 구성된, 전자 장치.
The method of claim 9,
The instructions are the processor,
Modulate the message using a bloom filter,
The electronic device configured to control the near field communication circuit to broadcast the modulated message.
청구항 10에 있어서,
상기 인스트럭션들은 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 상기 외부 서버에 사용자를 식별할 수 있는 사용자 고유 정보를 전송하고,
상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 고유 정보에 기초하여 생성된 상기 계정 키 값을 수신하도록 구성된, 전자 장치.
The method of claim 10,
The instructions are the processor,
Transmitting user-specific information for identifying a user to the external server through the long-distance wireless communication circuit,
The electronic device, configured to receive the account key value generated based on the user-specific information from the external server through the long-range wireless communication circuit.
청구항 10에 있어서,
상기 인스트럭션들은 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 상기 사용자 계정에 기반하여 상기 외부 서버에 상기 제1 인증서 데이터를 등록하도록 구성된, 전자 장치.
The method of claim 10,
The instructions are the processor,
The electronic device, configured to register the first certificate data to the external server based on the user account through the long-range wireless communication circuit.
청구항 10에 있어서,
상기 인스트럭션들은 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 상기 사용자 계정에 기반하여 상기 외부 서버에 등록된 상기 제2 인증서 데이터를 상기 외부 서버로부터 수신하도록 구성된, 전자 장치.
The method of claim 10,
The instructions are the processor,
The electronic device, configured to receive, from the external server, the second certificate data registered in the external server based on the user account through the long-distance wireless communication circuit.
전자 장치에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 외부 전자 장치의 제2 인증서 데이터를 저장하는 메모리;
근거리 무선 통신 회로;
원거리 무선 통신 회로; 및
상기 메모리, 상기 근거리 무선 통신 회로, 및 상기 원거리 무선 통신 회로와 작동적으로 연결된 프로세서를 포함하고,
상기 메모리는, 실행 시에, 상기 프로세서가,
상기 원거리 무선 통신 회로를 통해, 외부 서버에 사용자 계정에 기초하여 로그인을 수행하고,
상기 원거리 무선 통신 회로를 통해, 상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하며,
상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하며,
상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하고,
상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하고,
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하며,
상기 외부 전자 장치의 인증이 완료된 경우, 상기 근거리 무선 통신 회로를 통해, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하도록 하는 인스트럭션들을 저장하는, 전자 장치.
In the electronic device,
A memory for storing first certificate data of the electronic device and second certificate data of an external electronic device;
Short-range wireless communication circuit;
Long-range wireless communication circuit; And
A processor operatively connected to the memory, the short-range wireless communication circuit, and the long-range wireless communication circuit,
The memory, when executed, the processor,
Through the long-distance wireless communication circuit, log in to an external server based on a user account,
Through the long-distance wireless communication circuit, receiving an account key value corresponding to the user account from the external server,
Receiving a message including the account key value through the short-range wireless communication circuit,
Identifying the external electronic device having the same key value as the account key value based on the message,
Through the short-range wireless communication circuit, receiving third certificate data from the external electronic device,
Authenticating the external electronic device based on the second certificate data and the third certificate data,
When authentication of the external electronic device is completed, the electronic device stores instructions for transmitting the first certificate data to the external electronic device through the short-range wireless communication circuit.
전자 장치가 외부 전자 장치와 통신을 수행하는 방법에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작;
상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작;
상기 트리거 이벤트의 감지에 응답하여, 상기 제1 인증서 데이터에 기초하여 생성된 광고 패킷을 브로드캐스트하는 동작;
상기 광고 패킷에 대한 응답으로 상기 외부 전자 장치로부터 응답 패킷을 수신한 경우, 상기 응답 패킷으로부터 제3 인증서 데이터를 획득하는 동작;
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작; 및
상기 외부 전자 장치가 인증된 경우 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함하는, 방법.
In a method for an electronic device to communicate with an external electronic device,
Storing first certificate data of the electronic device and second certificate data of the external electronic device;
Detecting a trigger event for establishing a communication connection with a device surrounding the electronic device;
In response to detecting the trigger event, broadcasting an advertisement packet generated based on the first certificate data;
Acquiring third certificate data from the response packet when a response packet is received from the external electronic device in response to the advertisement packet;
Authenticating the external electronic device based on the second certificate data and the third certificate data; And
And establishing a secure communication channel with the external electronic device when the external electronic device is authenticated.
청구항 15에 있어서,
사용자 계정에 기반하여 상기 전자 장치가 외부 서버에 로그인하는 동작;
상기 외부 전자 장치에 대한 제2 사용자 식별 정보를 상기 외부 서버로 전송하는 동작; 및
상기 상기 제2 사용자 식별 정보에 대한 응답으로, 상기 외부 서버로부터 상기 제2 사용자 식별 정보에 상응하는 상기 제2 인증서 데이터를 수신하는 동작을 포함하는, 방법.
The method of claim 15,
Logging in to an external server by the electronic device based on a user account;
Transmitting second user identification information on the external electronic device to the external server; And
And receiving the second certificate data corresponding to the second user identification information from the external server in response to the second user identification information.
전자 장치가 외부 전자 장치와 통신을 수행하는 방법에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작;
제3 인증서 데이터를 포함하는 광고 패킷을 수신하는 동작;
상기 광고 패킷의 수신에 응답하여, 상기 제3 인증서 데이터를 상기 제2 인증서 데이터와 비교하는 동작;
상기 제3 인증서 데이터와 상기 제2 인증서 데이터가 매칭되는 경우, 상기 제1 인증서 데이터에 기초하여 생성된 응답 패킷을 상기 외부 전자 장치로 전송하는 동작; 및
상기 전송된 응답 패킷에 대한 상기 외부 전자 장치의 응답에 기초하여 상기 외부 전자 장치와 보안 통신 채널을 수립하는 동작을 포함하는, 방법.
In a method for an electronic device to communicate with an external electronic device,
Storing first certificate data of the electronic device and second certificate data of the external electronic device;
Receiving an advertisement packet including third certificate data;
In response to receiving the advertisement packet, comparing the third certificate data with the second certificate data;
When the third certificate data and the second certificate data match, transmitting a response packet generated based on the first certificate data to the external electronic device; And
And establishing a secure communication channel with the external electronic device based on a response of the external electronic device to the transmitted response packet.
전자 장치가 외부 전자 장치와 통신을 수행하는 방법에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작;
외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작;
상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작;
상기 전자 장치 주변의 장치와 통신 연결을 수립하도록 하는 트리거 이벤트를 감지하는 동작;
상기 트리거 이벤트의 감지에 응답하여, 상기 계정 키 값을 포함하는 메시지를 브로드캐스트하는 동작;
상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작;
상기 외부 전자 장치에 상기 제1 인증서 데이터를 전송하는 동작;
상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작; 및
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작을 포함하는, 방법.
In a method for an electronic device to communicate with an external electronic device,
Storing first certificate data of the electronic device and second certificate data of the external electronic device;
Logging in to an external server based on a user account;
Receiving an account key value corresponding to the user account from the external server;
Detecting a trigger event for establishing a communication connection with a device surrounding the electronic device;
Broadcasting a message including the account key value in response to detection of the trigger event;
Identifying the external electronic device having the same key value as the account key value based on the message;
Transmitting the first certificate data to the external electronic device;
Receiving third certificate data from the external electronic device; And
And authenticating the external electronic device based on the second certificate data and the third certificate data.
청구항 18에 있어서,
상기 사용자 계정에 기반하여 상기 외부 서버에 등록된 상기 제2 인증서 데이터를 상기 외부 서버로부터 수신하는 동작을 더 포함하는, 방법.
The method of claim 18,
The method further comprising receiving the second certificate data registered in the external server from the external server based on the user account.
전자 장치가 외부 전자 장치와 통신을 수행하는 방법에 있어서,
상기 전자 장치의 제1 인증서 데이터 및 상기 외부 전자 장치의 제2 인증서 데이터를 저장하는 동작;
외부 서버에 사용자 계정에 기초하여 로그인을 수행하는 동작;
상기 외부 서버로부터 상기 사용자 계정에 상응하는 계정 키 값을 수신하는 동작;
상기 근거리 무선 통신 회로를 통해서 상기 계정 키 값을 포함하는 메시지를 수신하는 동작;
상기 메시지에 기초하여 상기 계정 키 값과 동일한 키 값을 가지는 상기 외부 전자 장치를 확인하는 동작;
상기 외부 전자 장치로부터 제3 인증서 데이터를 수신하는 동작;
상기 제2 인증서 데이터와 상기 제3 인증서 데이터에 기초하여 상기 외부 전자 장치를 인증하는 동작; 및
상기 외부 전자 장치의 인증이 완료된 경우, 상기 외부 전자 장치로 상기 제1 인증서 데이터를 전송하는 동작을 포함하는, 방법.
In a method for an electronic device to communicate with an external electronic device,
Storing first certificate data of the electronic device and second certificate data of the external electronic device;
Logging in to an external server based on a user account;
Receiving an account key value corresponding to the user account from the external server;
Receiving a message including the account key value through the short-range wireless communication circuit;
Identifying the external electronic device having the same key value as the account key value based on the message;
Receiving third certificate data from the external electronic device;
Authenticating the external electronic device based on the second certificate data and the third certificate data; And
And transmitting the first certificate data to the external electronic device when authentication of the external electronic device is completed.
KR1020200015532A 2019-10-25 2020-02-10 Method for communicating with external electronic apparatus and electronic appratus thereof KR20210049653A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202080090350.5A CN114846832A (en) 2019-10-25 2020-10-23 Method for communicating with external electronic device and electronic device thereof
EP20879210.1A EP4032333A4 (en) 2019-10-25 2020-10-23 Method for communicating with external electronic apparatus and electronic apparatus thereof
PCT/KR2020/014553 WO2021080364A1 (en) 2019-10-25 2020-10-23 Method for communicating with external electronic apparatus and electronic apparatus thereof
US17/079,749 US11570602B2 (en) 2019-10-25 2020-10-26 Method for communicating with external electronic apparatus and electronic apparatus thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020190133855 2019-10-25
KR20190133855 2019-10-25

Publications (1)

Publication Number Publication Date
KR20210049653A true KR20210049653A (en) 2021-05-06

Family

ID=75916013

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200015532A KR20210049653A (en) 2019-10-25 2020-02-10 Method for communicating with external electronic apparatus and electronic appratus thereof

Country Status (1)

Country Link
KR (1) KR20210049653A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11671806B2 (en) 2020-02-10 2023-06-06 Samsung Electronics Co., Ltd. Method for communication based on state of external electronic device and electronic device thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11671806B2 (en) 2020-02-10 2023-06-06 Samsung Electronics Co., Ltd. Method for communication based on state of external electronic device and electronic device thereof

Similar Documents

Publication Publication Date Title
US11200018B2 (en) Electronic device and method for sharing screen data
KR102657527B1 (en) Method for setting of a device based on information associated with account and electronic device thereof
US11496900B2 (en) Electronic device and method for storing user identification information
KR102400580B1 (en) Electronic device for performing an authentication of another electronic device and method of operating the same
US11671806B2 (en) Method for communication based on state of external electronic device and electronic device thereof
US11647111B2 (en) Method for sharing Bluetooth communication information and electronic device therefor
US20230261886A1 (en) Electronic device and method for sharing data using blockchain network
EP4262146A1 (en) Iot device and method for onboarding iot device to server
EP4102770A1 (en) Electronic device and method for performing peer to peer service in electronic device
KR20200034289A (en) Apparatus and system for providing identity informmation
US20200329017A1 (en) Electronic device and method for sharing medical information by electronic device
KR20210049653A (en) Method for communicating with external electronic apparatus and electronic appratus thereof
US11076031B2 (en) Electronic device for providing different services according to external device
KR20200068068A (en) ELECTRONIC DEVICE FOR REGISTERING IoT DEVICE, SERVER AND METHOD FOR OPERATING THEREOF
US20220166769A1 (en) Electronic device for verifying a user's identity
US11570602B2 (en) Method for communicating with external electronic apparatus and electronic apparatus thereof
KR20210017072A (en) Electronic device activating application via key account and system having the same
KR20190095784A (en) Electronic device for connecting external devices based on connection information and operating method thereof
US20220209954A1 (en) Electronic device for sharing id and password, method for operating thereof, and server
US20230289786A1 (en) Electronic device for transmitting transaction by using external device and operation method thereof
KR102404421B1 (en) Method and device for recognizing external electronic device
KR20210101998A (en) Electronic device and method for performing peer to peer service in electronic device
KR20200099339A (en) Electronic device and system for uploading and/or downloading content and operating method thereof
KR20220000719A (en) Electronice device and method for transmitting content
KR20240045032A (en) Apparatus and method for transmitting data by block-chain