KR20240062866A - Electronic device and method for connecting with an external electronic device in a network - Google Patents

Electronic device and method for connecting with an external electronic device in a network Download PDF

Info

Publication number
KR20240062866A
KR20240062866A KR1020220173731A KR20220173731A KR20240062866A KR 20240062866 A KR20240062866 A KR 20240062866A KR 1020220173731 A KR1020220173731 A KR 1020220173731A KR 20220173731 A KR20220173731 A KR 20220173731A KR 20240062866 A KR20240062866 A KR 20240062866A
Authority
KR
South Korea
Prior art keywords
electronic device
communication protocol
packet
external electronic
connection
Prior art date
Application number
KR1020220173731A
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 삼성전자주식회사
Publication of KR20240062866A publication Critical patent/KR20240062866A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

전자 장치가 제공된다. 상기 전자 장치는 디스플레이를 포함할 수 있다. 상기 전자 장치는 제1 통신 프로토콜을 위한 제1 통신 회로를 포함할 수 있다. 상기 전자 장치는 제2 통신 프로토콜을 위한 제2 통신 회로를 포함할 수 있다. 상기 전자 장치는 상기 디스플레이, 상기 제1 통신 회로 및 상기 제2 통신 회로와 작동적으로 연결된 프로세서를 포함할 수 있다. 상기 프로세서는 상기 제1 통신 회로를 통해, 상기 전자 장치가 상기 제2 통신 프로토콜을 통해 노드와 연결됨을 나타내는 제1 BLE 패킷을 방송하도록 구성될 수 있다. 상기 프로세서는 상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서는 상기 제2 BLE 패킷에 응답하여, 상기 제2 통신 회로를 통해 제1 LAN 패킷을 전송하도록 구성될 수 있다. 상기 프로세서는 상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 전송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하도록 구성될 수 있다. 상기 프로세서는 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성될 수 있다.An electronic device is provided. The electronic device may include a display. The electronic device may include a first communication circuit for a first communication protocol. The electronic device may include a second communication circuit for a second communication protocol. The electronic device may include a processor operatively connected to the display, the first communication circuit, and the second communication circuit. The processor may be configured to broadcast, through the first communication circuit, a first BLE packet indicating that the electronic device is connected to a node through the second communication protocol. The processor may be configured to receive, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node. The processor may be configured to transmit a first LAN packet through the second communication circuit in response to the second BLE packet. The processor displays visual information indicating the external electronic device on the display based on receiving a second LAN packet transmitted from the external electronic device in response to the first LAN packet through the second communication circuit. It can be configured to do so. The processor may be configured to establish a connection between the electronic device and the external electronic device through the node according to the second communication protocol, based at least in part on user input for the visual information.

Description

네트워크의 외부 전자 장치와 연결하기 위한 전자 장치 및 방법{ELECTRONIC DEVICE AND METHOD FOR CONNECTING WITH AN EXTERNAL ELECTRONIC DEVICE IN A NETWORK} Electronic device and method for connecting with an external electronic device in a network {ELECTRONIC DEVICE AND METHOD FOR CONNECTING WITH AN EXTERNAL ELECTRONIC DEVICE IN A NETWORK}

다양한 실시예들은, 네트워크(network)의 외부 전자 장치(external electronic device)와 연결하기 위한 전자 장치 및 방법이다. 예를 들어, 동일한 네트워크에 연결된 외부 전자 장치와 효율적인 연결 및 데이터(data) 전송을 수행하기 위한 전자 장치 및 방법에 관한 것이다.Various embodiments are electronic devices and methods for connecting to external electronic devices of a network. For example, it relates to an electronic device and method for efficiently connecting and transmitting data with an external electronic device connected to the same network.

전자 장치가 외부 전자 장치와 연결하여 데이터를 전송하기 위해서 외부 전자 장치를 검색하고, 외부 전자 장치와 인증을 수행할 필요가 있다. 전자 장치는, 인증이 성공된 외부 전자 장치와 연결을 수행할 수 있고, 연결된 외부 전자 장치로 데이터를 전송할 수 있다. 전자 장치는 근거리(short-range)에 위치하는 외부 전자 장치들을 검색하기 위하여, 근거리 무선 통신(short-range wireless communication)을 이용할 수 있다. 예를 들면, 근거리 무선 통신은 BLE(Bluetooth low energy)를 포함할 수 있다.In order for an electronic device to connect to an external electronic device and transmit data, it is necessary to search for the external electronic device and perform authentication with the external electronic device. The electronic device can establish a connection with an external electronic device for which authentication has been successful and transmit data to the connected external electronic device. An electronic device may use short-range wireless communication to search for external electronic devices located in a short range. For example, short-range wireless communication may include Bluetooth low energy (BLE).

다양한 실시예들에 따른, 전자 장치(electronic device)가 제공된다. 상기 전자 장치는 디스플레이(display)를 포함할 수 있다. 상기 전자 장치는 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로를 포함할 수 있다. 상기 전자 장치는 제2 통신 프로토콜을 위한 제2 통신 회로를 포함할 수 있다. 상기 전자 장치는 프로세서를 포함할 수 있다. 상기 프로세서는 상기 제1 통신 회로를 통해, 상기 전자 장치가 상기 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하도록 구성될 수 있다. 상기 프로세서는 상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서는 상기 제2 BLE 패킷에 응답하여, 상기 제2 통신 회로를 통해 제1 LAN(local access network) 패킷을 전송하도록 구성될 수 있다. 상기 프로세서는 상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 전송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하도록 구성될 수 있다. 상기 프로세서는 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성될 수 있다.According to various embodiments, an electronic device is provided. The electronic device may include a display. The electronic device may include a first communication circuit for a first communication protocol. The electronic device may include a second communication circuit for a second communication protocol. The electronic device may include a processor. The processor may be configured to broadcast, through the first communication circuit, a first BLE (Bluetooth low energy) packet indicating that the electronic device is connected to a node through the second communication protocol. You can. The processor may be configured to receive, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node. The processor may be configured to transmit a first local access network (LAN) packet through the second communication circuit in response to the second BLE packet. The processor displays visual information representing the external electronic device on the display based on receiving a second LAN packet transmitted from the external electronic device in response to the first LAN packet through the second communication circuit. It can be configured to do so. The processor may be configured to establish a connection between the electronic device and the external electronic device through the node according to the second communication protocol, based at least in part on user input for the visual information.

다양한 실시예들에 따르면, 전자 장치(electronic device)에 의해 수행되는 방법이 제공된다. 상기 방법은 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로를 통해, 상기 전자 장치가 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하는 동작을 포함할 수 있다. 상기 방법은 상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하는 동작을 포함할 수 있다. 상기 방법은 상기 제2 BLE 패킷에 응답하여, 상기 제2 통신 회로를 통해 제1 LAN(local access network) 패킷을 전송하는 동작을 포함할 수 있다. 상기 방법은 상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 전송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 전자 장치의 디스플레이를 통해 표시하는 동작을 포함할 수 있다. 상기 방법은 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치와 상기 외부 전자 장치 사이의 연결을 수립하는 동작을 포함할 수 있다.According to various embodiments, a method performed by an electronic device is provided. The method includes a first BLE (Bluetooth low energy) packet indicating that the electronic device is connected to a node through a second communication protocol through a first communication circuit for a first communication protocol. It may include the operation of broadcasting. The method may include receiving, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node. there is. The method may include transmitting a first local access network (LAN) packet through the second communication circuit in response to the second BLE packet. The method is based on receiving a second LAN packet transmitted from the external electronic device in response to the first LAN packet through the second communication circuit, and displaying visual information indicating the external electronic device on the display of the electronic device. It can include actions displayed through . The method may include establishing a connection between the electronic device and the external electronic device through the node according to the second communication protocol, based at least in part on a user input for the visual information.

다양한 실시예들에 따른 전자 장치(electronic device)가 제공된다. 상기 전자 장치는 디스플레이(display)를 포함할 수 있다. 상기 전자 장치는 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로를 포함할 수 있다. 상기 전자 장치는 제2 통신 프로토콜을 위한 제2 통신 회로를 포함할 수 있다. 상기 전자 장치는 프로세서를 포함할 수 있다. 상기 프로세서는, 상기 제1 통신 회로를 통해, 상기 제1 통신 프로토콜을 통해 연결가능한 제1 외부 전자 장치들을 식별하기 위한 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하도록 구성될 수 있다. 상기 프로세서는, 상기 제1 BLE 패킷을 방송하는 동안, 상기 제2 통신 프로토콜을 통해 연결가능한 제2 외부 전자 장치들을 식별하기 위한 제1 LAN(local access network) 패킷을 전송하도록 구성될 수 있다. 상기 프로세서는, 상기 제1 BLE 패킷에 응답하여, 상기 제1 외부 전자 장치들 중 외부 전자 장치로부터 방송된, 제2 BLE 패킷을 상기 제1 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서는, 상기 제1 LAN 패킷에 응답하여, 상기 제2 외부 전자 장치들 종 상기 외부 전자 장치로부터 전송된, 제2 LAN 패킷을 상기 제2 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서는, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하도록 구성될 수 있다. 상기 프로세서는, 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성될 수 있다. 상기 외부 전자 장치는 상기 제2 통신 프로토콜을 통해 노드(node)와 연결될 수 있다. 상기 노드는, 상기 전자 장치가 상기 제2 통신 프로토콜을 통해 연결된 노드일 수 있다.An electronic device according to various embodiments is provided. The electronic device may include a display. The electronic device may include a first communication circuit for a first communication protocol. The electronic device may include a second communication circuit for a second communication protocol. The electronic device may include a processor. The processor may be configured to broadcast, through the first communication circuit, a first BLE (Bluetooth low energy) packet for identifying first external electronic devices connectable through the first communication protocol. You can. The processor may be configured to transmit a first local access network (LAN) packet for identifying second external electronic devices connectable through the second communication protocol while broadcasting the first BLE packet. The processor may be configured to receive, through the first communication circuit, a second BLE packet broadcast from an external electronic device among the first external electronic devices in response to the first BLE packet. The processor may be configured to receive, through the second communication circuit, a second LAN packet transmitted from the second external electronic device, in response to the first LAN packet. The processor may be configured to display visual information representing the external electronic device through the display. The processor may be configured to establish a connection between the electronic device and the external electronic device through the node according to the second communication protocol, based at least in part on user input for the visual information. The external electronic device may be connected to a node through the second communication protocol. The node may be a node to which the electronic device is connected through the second communication protocol.

도 1은 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)을 수립(establishment)하는 예를 도시한다.
도 2a는 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)이 실패하는 예를 도시한다.
도 2b는 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)이 실패하는 다른 예를 도시한다.
도 3a는 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 예를 도시하는 흐름도이다.
도 3b는 제1 통신 프로토콜 및 제2 통신 프로토콜에 기반하여 검색된 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 예를 도시하는 흐름도이다.
도 4는 동일한 네트워크(network)의 외부 전자 장치를 검색하는 방법에 대한 예를 도시한다.
도 5a는 동일한 네트워크(network)의 검색된 외부 전자 장치를 표시하는 방법에 대한 예를 도시한다.
도 5b는 동일한 네트워크(network)의 검색된 복수의 외부 전자 장치들을 표시하는 방법에 대한 예를 도시한다.
도 6은 검색된 외부 전자 장치를 표시하는 전자 장치의 사용자 인터페이스의 예를 도시한다.
도 7은 동일한 네트워크(network)의 외부 전자 장치를 검색하는 방법에 대한 다른 예를 도시한다.
도 8a는 제1 통신 프로토콜에 따른 패킷의 구조에 대한 예들을 도시한다.
도 8b는 제2 통신 프로토콜에 따른 패킷의 구조에 대한 예들을 도시한다.
도 9a는 동일한 네트워크(network)의 검색된 외부 전자 장치와 제1 통신 프로토콜(communication protocol)을 통해 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.
도 9b는 동일한 네트워크(network)의 검색된 외부 전자 장치와 제2 통신 프로토콜(communication protocol)을 통해 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.
도 10은 동일한 네트워크(network)의 외부 전자 장치와 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.
도 11a는 외부 전자 장치와 인증 결과를 표시하는 전자 장치의 사용자 인터페이스에 대한 예를 도시한다.
도 11b는 외부 전자 장치와 인증 결과를 표시하는 전자 장치의 사용자 인터페이스에 대한 다른 예를 도시한다.
도 12a는 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 다른 예를 도시하는 흐름도이다.
도 12b는 제1 통신 프로토콜 및 제2 통신 프로토콜에 기반하여 검색된 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 다른 예를 도시하는 흐름도이다.
도 13은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
Figure 1 shows an example of establishing a connection with an external electronic device found through a first communication protocol.
FIG. 2A shows an example in which connection with an external electronic device searched through a first communication protocol fails.
FIG. 2B shows another example in which connection with an external electronic device found through a first communication protocol fails.
FIG. 3A is a flowchart illustrating an example of a method for establishing a connection with an external electronic device.
FIG. 3B is a flowchart illustrating an example of a method for establishing a connection with an external electronic device found based on a first communication protocol and a second communication protocol.
Figure 4 shows an example of a method for searching for an external electronic device in the same network.
FIG. 5A shows an example of a method for displaying searched external electronic devices of the same network.
FIG. 5B shows an example of a method for displaying a plurality of searched external electronic devices of the same network.
6 shows an example of a user interface of an electronic device displaying a searched external electronic device.
Figure 7 shows another example of a method for searching for an external electronic device in the same network.
FIG. 8A shows examples of the structure of a packet according to a first communication protocol.
Figure 8b shows examples of the structure of a packet according to a second communication protocol.
FIG. 9A shows an example of a method of performing authentication and transmission through a first communication protocol with a searched external electronic device of the same network.
FIG. 9B shows an example of a method of performing authentication and transmission through a second communication protocol with a searched external electronic device of the same network.
Figure 10 shows an example of a method for performing authentication and transmission with an external electronic device in the same network.
FIG. 11A shows an example of a user interface of an electronic device displaying an external electronic device and an authentication result.
FIG. 11B shows another example of a user interface of an electronic device displaying an external electronic device and an authentication result.
FIG. 12A is a flowchart illustrating another example of a method for establishing a connection with an external electronic device.
FIG. 12B is a flowchart illustrating another example of a method for establishing a connection with an external electronic device found based on a first communication protocol and a second communication protocol.
13 is a block diagram of an electronic device in a network environment according to various embodiments.

본 개시에서 사용되는 용어들은 단지 특정한 실시 예를 설명하기 위해 사용된 것으로, 다른 실시 예의 범위를 한정하려는 의도가 아닐 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 용어들은 본 개시에 기재된 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가질 수 있다. 본 개시에 사용된 용어들 중 일반적인 사전에 정의된 용어들은, 관련 기술의 문맥상 가지는 의미와 동일 또는 유사한 의미로 해석될 수 있으며, 본 개시에서 명백하게 정의되지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다. 경우에 따라서, 본 개시에서 정의된 용어일지라도 본 개시의 실시 예들을 배제하도록 해석될 수 없다.Terms used in the present disclosure are merely used to describe specific embodiments and may not be intended to limit the scope of other embodiments. Singular expressions may include plural expressions, unless the context clearly indicates otherwise. Terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by a person of ordinary skill in the technical field described in this disclosure. Among the terms used in this disclosure, terms defined in general dictionaries may be interpreted to have the same or similar meaning as the meaning they have in the context of related technology, and unless clearly defined in this disclosure, have an ideal or excessively formal meaning. It is not interpreted as In some cases, even terms defined in the present disclosure cannot be interpreted to exclude embodiments of the present disclosure.

이하에서 설명되는 본 개시의 다양한 실시 예들에서는 하드웨어적인 접근 방법을 예시로서 설명한다. 하지만, 본 개시의 다양한 실시 예들에서는 하드웨어와 소프트웨어를 모두 사용하는 기술을 포함하고 있으므로, 본 개시의 다양한 실시 예들이 소프트웨어 기반의 접근 방법을 제외하는 것은 아니다.In various embodiments of the present disclosure described below, a hardware approach method is explained as an example. However, since various embodiments of the present disclosure include technology using both hardware and software, the various embodiments of the present disclosure do not exclude software-based approaches.

이하 설명에서 사용되는 장치의 구성 지칭하는 용어(예: 프로세서(processor), 디스플레이(display), 또는 통신 회로(communication circuit)), 연산 상태를 위한 용어(예: 단계(step), 동작(operation), 또는 절차(procedure)), 신호를 지칭하는 용어(예: 패킷(packet), 요청 패킷(request packet), 응답 패킷(response packet), 신호(signal), 정보(information), 데이터(data), 스트림(stream), 사용자 입력(user input), 또는 입력(input)), 데이터를 지칭하기 위한 용어(예: 파라미터(parameter), 또는 값(value))는 설명의 편의를 위해 예시된 것이다. 따라서, 본 개시가 후술되는 용어들에 한정되는 것은 아니며, 동등한 기술적 의미를 가지는 다른 용어가 사용될 수 있다.Terms used in the following description to refer to the configuration of the device (e.g., processor, display, or communication circuit), and terms for operational states (e.g., step, operation) , or procedure), terms referring to signals (e.g., packet, request packet, response packet, signal, information, data, Terms used to refer to data (stream, user input, or input) and data (e.g., parameter, or value) are examples for convenience of explanation. Accordingly, the present disclosure is not limited to the terms described below, and other terms having equivalent technical meaning may be used.

또한, 본 개시에서, 특정 조건의 만족(satisfied), 충족(fulfilled) 여부를 판단하기 위해, 초과 또는 미만의 표현이 사용될 수 있으나, 이는 일 예를 표현하기 위한 기재일 뿐 이상 또는 이하의 기재를 배제하는 것이 아니다. '이상'으로 기재된 조건은 '초과', '이하'로 기재된 조건은 '미만', '이상 및 미만'으로 기재된 조건은 '초과 및 이하'로 대체될 수 있다. 또한, 이하, 'A' 내지 'B'는 A부터(A 포함) B까지의(B 포함) 요소들 중 적어도 하나를 의미한다.In addition, in the present disclosure, the expressions greater than or less than may be used to determine whether a specific condition is satisfied or fulfilled, but this is only a description for expressing an example, and the description of more or less may be used. It's not exclusion. Conditions written as ‘more than’ can be replaced with ‘more than’, conditions written as ‘less than’ can be replaced with ‘less than’, and conditions written as ‘more than and less than’ can be replaced with ‘greater than and less than’. In addition, hereinafter, 'A' to 'B' means at least one of the elements from A to (including A) and B (including B).

이하, 본 개시에서, 제1 통신 프로토콜은 저전력 블루투스(Bluetooth low energy, BLE)를 포함할 수 있다. 또한, 본 개시에서, 제2 통신 프로토콜은, 근거리 네트워크(local access network, LAN)를 지칭할 수 있다. 예를 들어, 근거리 네트워크는 유선 LAN(wired LAN) 또는 무선 LAN(wireless LAN)을 포함할 수 있다. Hereinafter, in the present disclosure, the first communication protocol may include Bluetooth low energy (BLE). Additionally, in this disclosure, the second communication protocol may refer to a local access network (LAN). For example, a local area network may include a wired LAN or a wireless LAN.

전자 장치는 제1 통신 프로토콜을 위한 제1 통신 회로를 포함할 수 있고, 제2 통신 프로토콜을 위한 제2 통신 회로를 포함할 수 있다. 다만, 본 개시가 이에 제한되는 것은 아니며, 본 개시의 전자 장치는 하나의 통신 회로를 통해 복수의 통신 프로토콜을 지원할 수 있다.The electronic device may include a first communication circuit for a first communication protocol and a second communication circuit for a second communication protocol. However, the present disclosure is not limited to this, and the electronic device of the present disclosure may support a plurality of communication protocols through one communication circuit.

이하, 본 개시에서, 전자 장치가 상기 제1 통신 프로토콜을 통해 외부 전자 장치의 검색을 요청하기 위한 BLE 패킷(packet)은 제1 BLE 패킷을 포함할 수 있다. 또한, 전자 장치가 상기 제1 통신 프로토콜을 통해 외부 전자 장치의 검색에 대하여 응답하기 위한 BLE 패킷은 제2 BLE 패킷을 포함할 수 있다. Hereinafter, in the present disclosure, a BLE packet for requesting an electronic device to search for an external electronic device through the first communication protocol may include a first BLE packet. Additionally, a BLE packet for the electronic device to respond to a search by an external electronic device through the first communication protocol may include a second BLE packet.

이하, 본 개시에서, 전자 장치가 상기 제2 통신 프로토콜을 통해 외부 전자 장치의 검색을 요청하기 위한 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 또한, 전자 장치가 상기 제2 통신 프로토콜을 통해 외부 전자 장치의 검색에 대하여 응답하기 위한 패킷은 제2 LAN 패킷을 포함할 수 있다.Hereinafter, in the present disclosure, a LAN packet for requesting an electronic device to search for an external electronic device through the second communication protocol may include a first LAN packet. Additionally, a packet for the electronic device to respond to a search by an external electronic device through the second communication protocol may include a second LAN packet.

도 1은 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)을 수립(establishment)하는 예를 도시한다. 상기 제1 통신 프로토콜은 BLE(Bluetooth low energy)를 나타낼 수 있다.Figure 1 shows an example of establishing a connection with an external electronic device found through a first communication protocol. The first communication protocol may represent BLE (Bluetooth low energy).

도 1은 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 제2 전자 장치(103)를 검색하고, 검색된 제2 전자 장치(103)와 인증 및 데이터 전송을 수행하는 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 제1 전자 장치(101)가 제2 전자 장치(103)와 연결을 수립한다는 것은, 제1 전자 장치(101)가 제2 전자 장치(103)를 검색하고, 인증을 수행하고, 인증이 성공하여 파일을 전송하기 위한 연결을 수행하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은, 검색 동작(110), 인증 동작(140) 및 데이터 전송 동작(170)을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시 다양한 실시예들에서의 연결은 제1 통신 프로토콜을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 데이터 전송을 위한 연결만을 지칭할 수도 있다.FIG. 1 illustrates an example in which a first electronic device 101 searches for a second electronic device 103 through a first communication protocol and performs authentication and data transmission with the discovered second electronic device 103. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. Establishing a connection between the first electronic device 101 and the second electronic device 103 means that the first electronic device 101 searches for the second electronic device 103, performs authentication, and authentication succeeds. This may indicate performing a connection to transfer a file. In other words, the connection may include all of a search operation 110, an authentication operation 140, and a data transmission operation 170. However, the present disclosure is not limited thereto. For example, the connection in various embodiments of the present disclosure may include authentication or data, such as a connection through a first communication protocol, a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. It may also refer only to a connection for transmission.

도 1을 참조하면, 제1 전자 장치(101)는 검색 동작(110), 인증 동작(140) 및 데이터 전송 동작(170)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자하는 파일(file), 또는 정보(information)를 포함할 수 있다.Referring to FIG. 1 , the first electronic device 101 may perform a search operation 110, an authentication operation 140, and a data transmission operation 170. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

검색 동작(110)을 참조하면, 동작(111)에서, 제1 전자 장치(101)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제2 BLE 패킷을 포함할 수 있다. 상기 BLE 패킷의 수신 대기는, 상기 BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 동작(113)에서, 제2 전자 장치(101)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제1 BLE 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링 및 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103)를 포함하는 적어도 하나의 외부 전자 장치를 스캐닝하고, 제2 전자 장치(103)도 제1 전자 장치(101)를 포함하는 적어도 하나의 다른 외부 전자 장치를 스캐닝할 수 있다. Referring to the search operation 110, in operation 111, the first electronic device 101 may wait to receive a BLE packet. The BLE packet may include a second BLE packet. Waiting to receive the BLE packet may indicate monitoring to receive the BLE packet. In operation 113, the second electronic device 101 may wait to receive a BLE packet. The BLE packet may include a first BLE packet. This is because, in this disclosure, the first electronic device 101 performs the search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet. Monitoring for the first electronic device 101 to receive the second BLE packet and monitoring for the second electronic device 103 to receive the first BLE packet may include a first communication protocol scan. there is. In other words, the first electronic device 101 scans at least one external electronic device including the second electronic device 103, and the second electronic device 103 also scans at least one external electronic device including the first electronic device 101. Can scan one other external electronic device.

또한, 도 1에서는, 동작(111)과 동작(113)이 검색 동작(110)에서 최초로(initial) 수행되는 것으로 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷의 방송 이후(즉, 동작(115) 이후)에 제2 BLE 패킷의 수신을 위한 모니터링을 시작할 수 있다. Additionally, in FIG. 1, operations 111 and 113 are shown as being initially performed in the search operation 110, but the present disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second BLE packet after the broadcast of the first BLE packet (i.e., after operation 115).

동작(115)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 상기 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. 상기 제1 BLE 패킷은, 제1 전자 장치(101)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제1 전자 장치(101)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다.In operation 115, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13. The first BLE packet may include terminal identifier information for the first electronic device 101. For example, the terminal identifier may include a unique identifier of the first electronic device 101 and information about the type of the electronic device.

동작(117)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 전송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 전송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 117, the second electronic device 103 may receive the first BLE packet transmitted from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet transmitted from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

동작(119)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. 상기 제2 BLE 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제2 전자 장치(103)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다.In operation 119, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second electronic device 103 may broadcast a second BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13. The second BLE packet may include terminal identifier information for the second electronic device 103. For example, the terminal identifier may include a unique identifier of the second electronic device 103 and information about the type of the electronic device.

동작(121)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 전송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 전송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 121, the first electronic device 101 may receive a second BLE packet transmitted from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet transmitted from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet.

동작(123)에서, 제1 전자 장치(101)는 제1 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷의 단말 식별자 정보에 기반하여 식별된 외부 전자 장치(예: 제2 전자 장치(103))를 포함하는 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 상기 검색의 결과는, 제2 전자 장치(103)를 포함하는 외부 전자 장치들을 포함할 수 있다. 또는, 상기 검색의 결과는, 제2 전자 장치(103)만 포함할 수 있다. 또는, 상기 검색의 결과는, 어떠한 외부 전자 장치도 포함하지 않을 수 있다. 예를 들어, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 어떠한 외부 전자 장치도 검색하지 못하였을 수도 있다. In operation 123, the first electronic device 101 may display the results of the search through the first communication protocol. For example, the first electronic device 101 may display a search result including an external electronic device (e.g., the second electronic device 103) identified based on the terminal identifier information of the second BLE packet. . For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol on the display. The results of the search may include external electronic devices including the second electronic device 103. Alternatively, the search results may include only the second electronic device 103. Alternatively, the search results may not include any external electronic devices. For example, the first electronic device 101 may not have been able to search for any external electronic device through the first communication protocol.

동작(125)에서, 제1 전자 장치(101)는, 검색된 외부 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 외부 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 외부 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 외부 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다.In operation 125, the first electronic device 101 may receive a user's input regarding the searched external electronic device. For example, the first electronic device 101 may display at least one searched external electronic device through the display and receive a user's input corresponding to information about the displayed at least one external electronic device. The first electronic device 101 may identify the selected external electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103.

상술한 바와 같이, 검색 동작(110)을 통해 제1 전자 장치(101)(또는 전자 장치)는 제2 전자 장치(103)(또는 외부 전자 장치)를 검색할 수 있다. 제1 전자 장치(101)는 검색 동작(110) 후, 인증 동작(140)을 수행할 수 있다.As described above, the first electronic device 101 (or electronic device) can search the second electronic device 103 (or an external electronic device) through the search operation 110. The first electronic device 101 may perform an authentication operation 140 after the search operation 110.

인증 동작(140)을 참고하면, 동작(141)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 제1 통신 프로토콜 연결을 수행할 수 있다. 상기 제1 통신 프로토콜 연결은 제1 전자 장치(101)와 제2 전자 장치(103)가 서로의 유효성(validation)을 검증하기 위한 연결일 수 있다. 예를 들어, 상기 제1 통신 프로토콜 연결은 BLE 연결을 포함할 수 있다. 제1 통신 프로토콜 연결 후, 동작(143)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 상호 유효성 검증을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷에 기반하여 제2 전자 장치(103)의 유효성 검증을 수행할 수 있다. 또한, 제2 전자 장치(103)는 제1 BLE 패킷에 기반하여 제1 전자 장치(101)의 유효성 검증을 수행할 수 있다. Referring to the authentication operation 140, in operation 141, the first electronic device 101 and the second electronic device 103 may perform a first communication protocol connection. The first communication protocol connection may be a connection for the first electronic device 101 and the second electronic device 103 to verify each other's validity. For example, the first communication protocol connection may include a BLE connection. After connecting the first communication protocol, in operation 143, the first electronic device 101 and the second electronic device 103 may perform mutual validation. For example, the first electronic device 101 may perform validation of the second electronic device 103 based on the second BLE packet. Additionally, the second electronic device 103 may perform validation of the first electronic device 101 based on the first BLE packet.

동작(145)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 크리덴셜(credential) 교환을 수행할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2(layer 2) 연결을 위한 크리덴셜 교환을 수행할 수 있다. 상기 크리덴셜은, L2 연결을 위한 보안과 관련된 정보를 포함할 수 있다. 이 후, 동작(147)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜 연결을 해제할 수 있다. In operation 145, the first electronic device 101 may exchange credentials with the second electronic device 103. For example, the first electronic device 101 may perform credential exchange for L2 (layer 2) connection with the second electronic device 103. The credentials may include information related to security for L2 connection. Afterwards, in operation 147, the first electronic device 101 may release the first communication protocol connection with the second electronic device 103.

상술한 바와 같이, 인증 동작(140)을 통해 제1 전자 장치(101)(또는 전자 장치)와 제2 전자 장치(103)(또는 외부 전자 장치)는 상호 간의 인증을 수행할 수 있다. 제1 전자 장치(101)는 인증 동작(140) 후, 데이터 전송 동작(170)을 수행할 수 있다.As described above, through the authentication operation 140, the first electronic device 101 (or electronic device) and the second electronic device 103 (or external electronic device) can perform mutual authentication. The first electronic device 101 may perform a data transmission operation 170 after the authentication operation 140.

데이터 전송 동작(170)을 참고하면, 동작(171)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 L2 연결을 위한 크리덴셜에 기반하여 Wi-Fi-direct(wireless fidelity-direct) 또는 Wi-Fi-aware(또는 NAN(neighbor awareness networking)) 연결을 수행할 수 있다. 동작(173)에서, 제1 전자 장치(101)는 L2 연결을 통해 제2 전자 장치(103)에게 데이터를 전송할 수 있다. 상기 L2 연결은, 제3 통신 프로토콜을 이용한 연결로 지칭될 수 있다.Referring to the data transmission operation 170, in operation 171, the first electronic device 101 may perform L2 connection with the second electronic device 103. For example, the first electronic device 101 performs Wi-Fi-direct (wireless fidelity-direct) or Wi-Fi-aware (or NAN (neighbor awareness networking)) connection based on credentials for L2 connection. can do. In operation 173, the first electronic device 101 may transmit data to the second electronic device 103 through an L2 connection. The L2 connection may be referred to as a connection using a third communication protocol.

상술한 바를 참조하면, 전자 장치는, 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하고, 검색된 외부 전자 장치와 인증 후 제1 통신 프로토콜 연결을 해제하고, 다시 L2 연결을 수행하여 데이터를 전송할 수 있다. 전자 장치가 외부 전자 장치를 검색하는 동작에서, 전자 장치 또는 외부 전자 장치의 모니터링을 위한 전력 소모가 높아, 제1 통신 연결 프로토콜을 통한 검색이 수행될 수 있다. 이 후, 제1 통신 프로토콜을 통해 인증 절차를 수행하고, 전자 장치는 외부 전자 장치와 데이터 전송을 위하여 D2D(device to device) 연결(예: 상기 L2 연결)을 다시 수행하고, 연결된 이후 데이터 전송을 수행할 수 있다.Referring to the above, the electronic device searches for an external electronic device through a first communication protocol, authenticates with the searched external electronic device, releases the first communication protocol connection, and performs an L2 connection again to transmit data. . When an electronic device searches for an external electronic device, power consumption for monitoring the electronic device or the external electronic device is high, so a search may be performed through the first communication connection protocol. Afterwards, an authentication procedure is performed through the first communication protocol, the electronic device performs a D2D (device to device) connection (e.g., the L2 connection) again to transmit data with an external electronic device, and data transmission is performed after connection. It can be done.

도 2a는 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)이 실패하는 예를 도시한다. 도 2b는 제1 통신 프로토콜(communication protocol)을 통해 검색된 외부 전자 장치와 연결(connection)이 실패하는 다른 예를 도시한다. 상기 제1 통신 프로토콜은 BLE(Bluetooth low energy)를 나타낼 수 있다.FIG. 2A shows an example in which connection with an external electronic device searched through a first communication protocol fails. FIG. 2B shows another example in which connection with an external electronic device found through a first communication protocol fails. The first communication protocol may represent BLE (Bluetooth low energy).

도 2a 및 도 2b는 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 제2 전자 장치(103)를 검색하고, 검색된 제2 전자 장치(103)와 인증 및 데이터 전송을 수행하는 동작에 있어서, 연결이 실패하는 동작에 대한 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 상기 외부 전자 장치와 연결이 실패한다는 것은, 제1 전자 장치(101)가 제2 전자 장치(103)를 검색하고, 인증을 수행하고, 인증이 성공하여 파일을 전송하기 위한 연결이 실패하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은, 검색 동작(210), 인증 동작(240) 및 데이터 전송 동작(270)을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시의 연결은 제1 통신 프로토콜을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 데이터 전송을 위한 연결만을 지칭할 수도 있다.2A and 2B illustrate the operation in which the first electronic device 101 searches for a second electronic device 103 through a first communication protocol and performs authentication and data transmission with the discovered second electronic device 103. , shows an example of an operation in which a connection fails. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. Failure to connect with the external electronic device indicates that the first electronic device 101 searches for the second electronic device 103, performs authentication, and the authentication succeeds, causing the connection to transmit the file to fail. You can. In other words, the connection may include all of a search operation 210, an authentication operation 240, and a data transmission operation 270. However, the present disclosure is not limited thereto. For example, the connection of the present disclosure is a connection only for authentication or data transmission, such as a connection through a first communication protocol, a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. It may also refer to

도 2a를 참조하면, 제1 전자 장치(101)는 제2 전자 장치(103)와 검색 동작(210), 인증 동작(240) 및 데이터 전송 동작(270)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자 하는 파일(file), 또는 정보(information)를 포함할 수 있다.Referring to FIG. 2A, the first electronic device 101 may perform a search operation 210, an authentication operation 240, and a data transmission operation 270 with the second electronic device 103. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

또한, 도 2a를 참조하면, 제2 전자 장치(103)는 검색 동작(210) 이전에, 동작(207)에서 핫스팟(hotspot)을 활성화할 수 있다. 상기 핫스팟은, 모바일 핫스팟(mobile hotspot) 또는 휴대용 핫스팟을 나타낼 수 있다. 다시 말해서, 상기 핫스팟은, 다른 외부 전자 장치가 네트워크(network)에 접속가능하도록 제2 전자 장치(103)가 공유기(router)로 동작하는 것을 나타낼 수 있다. Additionally, referring to FIG. 2A, the second electronic device 103 may activate a hotspot in operation 207 before the search operation 210. The hotspot may represent a mobile hotspot or a portable hotspot. In other words, the hotspot may indicate that the second electronic device 103 operates as a router so that other external electronic devices can access the network.

검색 동작(210)을 참조하면, 동작(211)에서, 제1 전자 장치(101)는 BLE(Bluetooth low energy) 패킷(packet)을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은 제2 BLE 패킷을 포함할 수 있다. 상기 BLE 패킷의 수신 대기는, 상기 BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 또한, 동작(213)에서, 제2 전자 장치(103)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제1 BLE 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하고 있기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링 및 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103)를 포함하는 적어도 하나의 외부 전자 장치를 스캐닝하고, 제2 전자 장치(103)도 제1 전자 장치(101)를 포함하는 적어도 하나의 다른 외부 전자 장치를 스캐닝할 수 있다. 또한, 도 2에서는, 동작(211)과 동작(213)이 검색 동작(210)에서 최초로(initial) 수행되는 것으로 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷의 방송 이후(즉, 동작(215) 이후)에 제2 BLE 패킷의 수신을 위한 모니터링을 시작할 수 있다. Referring to the search operation 210, in operation 211, the first electronic device 101 may wait to receive a Bluetooth low energy (BLE) packet. The BLE packet may include a second BLE packet. Waiting to receive the BLE packet may indicate monitoring to receive the BLE packet. Additionally, in operation 213, the second electronic device 103 may wait to receive a BLE packet. The BLE packet may include a first BLE packet. This is because, in this disclosure, the first electronic device 101 is performing a search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet. Monitoring for the first electronic device 101 to receive the second BLE packet and monitoring for the second electronic device 103 to receive the first BLE packet may include a first communication protocol scan. there is. In other words, the first electronic device 101 scans at least one external electronic device including the second electronic device 103, and the second electronic device 103 also scans at least one external electronic device including the first electronic device 101. Can scan one other external electronic device. Additionally, in FIG. 2, operations 211 and 213 are shown as being initially performed in the search operation 210, but the present disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second BLE packet after the broadcast of the first BLE packet (i.e., after operation 215).

동작(215)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 상기 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. 상기 제1 BLE 패킷은, 제1 전자 장치(101)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제1 전자 장치(101)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다.In operation 215, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13. The first BLE packet may include terminal identifier information for the first electronic device 101. For example, the terminal identifier may include a unique identifier of the first electronic device 101 and information about the type of the electronic device.

동작(217)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 217, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

동작(219)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(190)에 포함될 수 있다. 상기 제2 BLE 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제2 전자 장치(103)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다.In operation 219, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second electronic device 103 may broadcast a second BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 190 of FIG. 13. The second BLE packet may include terminal identifier information for the second electronic device 103. For example, the terminal identifier may include a unique identifier of the second electronic device 103 and information about the type of the electronic device.

동작(221)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 221, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet.

동작(223)에서, 제1 전자 장치(101)는 제1 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷의 단말 식별자 정보에 기반하여 식별된 외부 전자 장치(예: 제2 전자 장치(103))를 포함하는 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 상기 검색의 결과는, 제2 전자 장치(103)를 포함하는 외부 전자 장치들을 포함할 수 있다. 또는, 상기 검색의 결과는, 제2 전자 장치(103)만 포함할 수 있다. 또는, 상기 검색의 결과는, 어떠한 외부 전자 장치도 포함하지 않을 수 있다. 예를 들어, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 어떠한 외부 전자 장치도 검색하지 못하였을 수도 있다. In operation 223, the first electronic device 101 may display the results of the search through the first communication protocol. For example, the first electronic device 101 may display the results of a search including an external electronic device (e.g., the second electronic device 103) identified based on the terminal identifier information of the second BLE packet. . For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol on the display. The results of the search may include external electronic devices including the second electronic device 103. Alternatively, the search results may include only the second electronic device 103. Alternatively, the search results may not include any external electronic devices. For example, the first electronic device 101 may not have been able to search for any external electronic device through the first communication protocol.

동작(225)에서, 제1 전자 장치(101)는, 검색된 외부 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 외부 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 외부 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 외부 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다.In operation 225, the first electronic device 101 may receive a user's input regarding the searched external electronic device. For example, the first electronic device 101 may display at least one searched external electronic device through the display and receive a user's input corresponding to information about the displayed at least one external electronic device. The first electronic device 101 may identify the selected external electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103.

상술한 바와 같이, 검색 동작(210)을 통해 제1 전자 장치(101)(또는 전자 장치)는 제2 전자 장치(103)(또는 외부 전자 장치)를 검색할 수 있다. 제1 전자 장치(101)는 검색 동작(210) 후, 인증 동작(240)을 수행할 수 있다.As described above, the first electronic device 101 (or electronic device) can search the second electronic device 103 (or an external electronic device) through the search operation 210. The first electronic device 101 may perform an authentication operation 240 after the search operation 210.

인증 동작(240)을 참고하면, 동작(241)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 제1 통신 프로토콜 연결을 수행할 수 있다. 상기 제1 통신 프로토콜 연결은 제1 전자 장치(101)와 제2 전자 장치(103)가 서로의 유효성(validation)을 검증하기 위한 연결일 수 있다. 예를 들어, 상기 제1 통신 프로토콜 연결은 BLE 연결을 포함할 수 있다. 제1 통신 프로토콜 연결 후, 동작(243)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 상호 유효성 검증을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷에 기반하여 제2 전자 장치(103)의 유효성 검증을 수행할 수 있다. 또한, 제2 전자 장치(103)는 제1 BLE 패킷에 기반하여 제1 전자 장치(101)의 유효성 검증을 수행할 수 있다. Referring to the authentication operation 240, in operation 241, the first electronic device 101 and the second electronic device 103 may perform a first communication protocol connection. The first communication protocol connection may be a connection for the first electronic device 101 and the second electronic device 103 to verify each other's validity. For example, the first communication protocol connection may include a BLE connection. After connecting the first communication protocol, in operation 243, the first electronic device 101 and the second electronic device 103 may perform mutual validation. For example, the first electronic device 101 may perform validation of the second electronic device 103 based on the second BLE packet. Additionally, the second electronic device 103 may perform validation of the first electronic device 101 based on the first BLE packet.

동작(245)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 크리덴셜(credential) 교환을 수행할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2(layer 2) 연결을 위한 크리덴셜 교환을 수행할 수 있다. 상기 크리덴셜은, L2 연결을 위한 보안과 관련된 정보를 포함할 수 있다. 이 후, 동작(247)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜 연결을 해제할 수 있다. In operation 245, the first electronic device 101 may exchange credentials with the second electronic device 103. For example, the first electronic device 101 may perform credential exchange for L2 (layer 2) connection with the second electronic device 103. The credentials may include information related to security for L2 connection. Afterwards, in operation 247, the first electronic device 101 may release the first communication protocol connection with the second electronic device 103.

상술한 바와 같이, 인증 동작(240)을 통해 제1 전자 장치(101)(또는 전자 장치)와 제2 전자 장치(103)(또는 외부 전자 장치)는 상호 간의 인증을 수행할 수 있다. 제1 전자 장치(101)는 인증 동작(240) 후, 데이터 전송 동작(270)을 수행할 수 있다.As described above, through the authentication operation 240, the first electronic device 101 (or electronic device) and the second electronic device 103 (or external electronic device) can perform mutual authentication. The first electronic device 101 may perform a data transmission operation 270 after the authentication operation 240.

데이터 전송 동작(270)을 참고하면, 동작(271)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2 연결에 실패할 수 있다. 예를 들어, 상기 L2 연결은 L2 연결을 위한 크리덴셜에 기반한, Wi-Fi-direct(wireless fidelity-direct) 또는 Wi-Fi-aware(또는 NAN(neighbor awareness networking)) 연결을 포함할 수 있다. 상기 L2 연결은, 제3 통신 프로토콜을 이용한 연결로 지칭될 수 있다. 동작(207)에서 제2 전자 장치(103)가 핫스팟을 활성화한 상태인 바, 동작(271)에서 제1 전자 장치(101)는 제2 전자 장치(103)와 L2 연결에 실패할 수 있다. 핫스팟을 활성화한 상태인 경우, 제2 전자 장치(103)는 Wi-Fi 동작의 제약에 따라, 데이터 전송을 위한 Wi-Fi-direct 또는 Wi-Fi-aware를 이용한 L2 연결이 제한될 수 있다. 따라서, 제1 전자 장치(101)와 제2 전자 장치(103)는 L2 연결에 실패할 수 있다.Referring to the data transmission operation 270, in operation 271, the first electronic device 101 may fail to establish an L2 connection with the second electronic device 103. For example, the L2 connection may include a Wi-Fi-direct (wireless fidelity-direct) or Wi-Fi-aware (or NAN (neighbor awareness networking)) connection based on credentials for the L2 connection. The L2 connection may be referred to as a connection using a third communication protocol. Since the second electronic device 103 activates the hotspot in operation 207, the first electronic device 101 may fail to establish an L2 connection with the second electronic device 103 in operation 271. When the hotspot is activated, the second electronic device 103 may be restricted from L2 connection using Wi-Fi-direct or Wi-Fi-aware for data transmission depending on Wi-Fi operation restrictions. Accordingly, the first electronic device 101 and the second electronic device 103 may fail in L2 connection.

도 2a를 참조하면, 전자 장치는, 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하고, 검색된 외부 전자 장치와 인증 후 제1 통신 프로토콜 연결을 해제할 수 있다. 전자 장치는, 인증된 상기 외부 전자 장치와 L2 연결을 시도할 수 있다. 다만, 상기 외부 전자 장치가 핫스팟 기능을 활성화한 상태라면, 상기 전자 장치는 상기 외부 전자 장치와 상기 L2 연결에 실패할 수 있다. 따라서, 상기 전자 장치는, 제1 통신 프로토콜을 통해 상기 외부 전자 장치를 검색하고, 인증에 성공했더라도, 데이터의 전송을 실패할 수 있다.Referring to FIG. 2A, the electronic device may search for an external electronic device through a first communication protocol, authenticate with the searched external electronic device, and then release the first communication protocol connection. The electronic device may attempt an L2 connection with the authenticated external electronic device. However, if the external electronic device activates the hotspot function, the electronic device may fail to establish the L2 connection with the external electronic device. Accordingly, even if the electronic device searches for the external electronic device through the first communication protocol and succeeds in authentication, data transmission may fail.

도 2b를 참조하면, 제1 전자 장치(101)는 제2 전자 장치(103)와 검색 동작(210), 인증 동작(240) 및 데이터 전송 동작(270)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자하는 파일(file), 또는 정보(information)를 포함할 수 있다.Referring to FIG. 2B, the first electronic device 101 may perform a search operation 210, an authentication operation 240, and a data transmission operation 270 with the second electronic device 103. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

도 2b를 참조하면, 제2 전자 장치(103)는 검색 동작(210) 이전에, 동작(209)에서, 제3 전자 장치(105)와 Wi-Fi direct을 통해 연결될 수 있다. 상기 Wi-Fi direct을 통한 연결은 미러링(mirroring)을 위한 연결을 포함할 수 있다. 상기 미러링은, 제2 전자 장치(103)의 디스플레이를 통해 표시되는 사용자 인터페이스의 적어도 일부를 제3 전자 장치(105)의 디스플레이를 통해 표시하는 기술을 나타낼 수 있다. 상기 제3 전자 장치(105)는 상기 제1 전자 장치(101)에 대하여 상기 제2 전자 장치(103)가 아닌 다른 외부 전자 장치를 지칭할 수 있다.Referring to FIG. 2B, the second electronic device 103 may be connected to the third electronic device 105 through Wi-Fi direct in operation 209, before the search operation 210. The connection through Wi-Fi direct may include a connection for mirroring. The mirroring may refer to a technology of displaying at least a portion of a user interface displayed through the display of the second electronic device 103 through the display of the third electronic device 105. The third electronic device 105 may refer to an external electronic device other than the second electronic device 103 with respect to the first electronic device 101.

도 2b의 검색 동작(210), 인증 동작(240), 및 데이터 전송 동작(270)에 대한 설명은 도 2a의 검색 동작(210), 인증 동작(240), 및 데이터 전송 동작(270)과 동일하게 이해될 수 있다. 따라서, 이하 구체적인 내용은 생략한다.The description of the search operation 210, authentication operation 240, and data transmission operation 270 of FIG. 2B is the same as the search operation 210, authentication operation 240, and data transmission operation 270 of FIG. 2A. It can be understood clearly. Therefore, detailed information will be omitted below.

도 2b를 참조하면, 전자 장치는, 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하고, 검색된 외부 전자 장치와 인증 후 제1 통신 프로토콜 연결을 해제할 수 있다. 상기 전자 장치는, 인증된 상기 외부 전자 장치와 L2 연결을 시도할 수 있다. 다만, 상기 외부 전자 장치가 다른 전자 장치와 Wi-Fi direct를 통해 연결된 상태라면, 상기 전자 장치는 상기 외부 전자 장치와 상기 L2 연결에 실패할 수 있다. 따라서, 상기 전자 장치는, 제1 통신 프로토콜을 통해 상기 외부 전자 장치를 검색하고, 인증에 성공했더라도, 데이터의 전송을 실패할 수 있다.Referring to FIG. 2B, the electronic device may search for an external electronic device through a first communication protocol, authenticate with the searched external electronic device, and then release the first communication protocol connection. The electronic device may attempt an L2 connection with the authenticated external electronic device. However, if the external electronic device is connected to another electronic device through Wi-Fi direct, the electronic device may fail to establish the L2 connection with the external electronic device. Accordingly, even if the electronic device searches for the external electronic device through the first communication protocol and succeeds in authentication, data transmission may fail.

도 2a 및 도 2b를 참조하면, 상기 전자 장치는, 제1 통신 프로토콜(예: BLE)을 통해 검색 및 인증에 성공한 외부 전자 장치라도, 상기 외부 전자 장치의 상태에 따라, 데이터의 전송을 위한 연결에 실패할 수 있다. 따라서, 전자 장치는 불필요한 자원을 소모할 수 있고, 연결에 지연이 발생될 수 있다. 또한, 만약 상기 전자 장치가, 상기 외부 전자 장치와 제2 통신 프로토콜(예: LAN)을 통해 이미 연결되어 있는 경우, 제2 통신 프로토콜을 통한 연결에 따라 인증 및 전송을 수행할 수 있음에도 불구하고, 상기 전자 장치는 제1 통신 프로토콜을 통해 검색 및 인증하고, L2 연결을 통해 데이터 전송을 수행해야할 수 있다. 다시 말해서, 상기 전자 장치는, 비효율적인 방법을 통해 상기 외부 전자 장치와 연결을 수행할 수 있다. Referring to FIGS. 2A and 2B, even if the electronic device successfully searches and authenticates through a first communication protocol (e.g., BLE), the electronic device establishes a connection for data transmission depending on the state of the external electronic device. may fail. Accordingly, the electronic device may consume unnecessary resources and a delay may occur in connection. In addition, if the electronic device is already connected to the external electronic device through a second communication protocol (e.g., LAN), authentication and transmission may be performed according to the connection through the second communication protocol. The electronic device may need to search and authenticate through a first communication protocol and perform data transmission through an L2 connection. In other words, the electronic device may connect to the external electronic device through an inefficient method.

이하, 본 개시의 실시예들에서는, 상기 전자 장치가 상기 외부 전자 장치와 제2 통신 프로토콜을 통해 동일한 노드(node)에 연결되어 있는 경우, 상기 전자 장치는 상기 외부 전자 장치와 추가적인 연결을 수행하지 않고 이미 연결된 상기 제2 통신 프로토콜을 이용하여 데이터를 전송하기 위한 장치 및 방법을 제안한다. 이에 따라, 본 개시의 실시예에 따른 장치 및 방법은, 제1 통신 프로토콜을 통해 검색 및 인증 동작에서 요구되는 전력 소모가 감소될 수 있고, 검색에 요구되는 시간이 줄어들 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 데이터의 전송을 위한 연결(예: L2 연결)의 횟수가 감소될 수 있어 보다 효율적으로 데이터를 전송할 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 다른 전자 장치의 상태(예: 핫스팟 기능의 활성화 또는 또 다른 전자 장치와 Wi-Fi direct를 통해 연결)에 상관없이, 데이터의 전송을 위한 연결이 가능한 바 적용 가능한 시나리오들을 확장할 수 있다.Hereinafter, in embodiments of the present disclosure, when the electronic device is connected to the same node as the external electronic device through a second communication protocol, the electronic device does not perform additional connection with the external electronic device. We propose an apparatus and method for transmitting data using the second communication protocol that is already connected without the present invention. Accordingly, in the apparatus and method according to an embodiment of the present disclosure, the power consumption required for search and authentication operations through the first communication protocol can be reduced, and the time required for search can be reduced. Additionally, the device and method according to an embodiment of the present disclosure can transmit data more efficiently because the number of connections (eg, L2 connections) for data transmission can be reduced. In addition, the device and method according to an embodiment of the present disclosure provide a connection for data transmission, regardless of the state of the other electronic device (e.g., activation of the hotspot function or connection to another electronic device via Wi-Fi direct). This makes it possible to expand applicable scenarios.

도 3a는 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 예를 도시하는 흐름도이다.FIG. 3A is a flowchart illustrating an example of a method for establishing a connection with an external electronic device.

상기 외부 전자 장치와 연결을 수립한다는 것은, 전자 장치가 상기 외부 전자 장치를 검색하고, 인증을 수행하고, 인증이 성공하여 데이터를 전송하기 위한 연결을 수행하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은 검색 동작, 인증 동작 및 데이터 전송 동작을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시의 실시예들에서, 연결은 제1 통신 프로토콜(예: BLE)을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 전송을 위한 연결만을 지칭할 수도 있다. Establishing a connection with the external electronic device may indicate that the electronic device searches for the external electronic device, performs authentication, and establishes a connection to transmit data after authentication is successful. In other words, the connection may include all search operations, authentication operations, and data transmission operations. However, the present disclosure is not limited thereto. For example, in embodiments of the present disclosure, the connection may include a connection via a first communication protocol (e.g., BLE), a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. Likewise, it may refer only to a connection for authentication or transmission.

도 3a의 흐름도에 따른 방법은 상기 전자 장치에 의해 수행될 수 있다. 상기 전자 장치는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 상기 방법은 상기 전자 장치의 프로세서(예: 도 13의 프로세서(1320))에 의해 수행될 수 있다.The method according to the flowchart of FIG. 3A may be performed by the electronic device. The electronic device may include the electronic device 1301 of FIG. 13 . For example, the method may be performed by a processor (eg, processor 1320 in FIG. 13) of the electronic device.

도 3a를 참조하면, 동작(301)에서, 프로세서는 제1 통신 프로토콜(예: BLE)을 통해 검색할 수 있다. 예를 들어, 프로세서는, 제1 통신 프로토콜을 통해 연결가능한 적어도 하나의 외부 전자 장치를 검색할 수 있다. 예를 들어, 상기 제1 통신 프로토콜은 상기 프로세서와 연결된 제1 통신 회로와 관련될 수 있고, 프로세서는 상기 제1 통신 회로를 이용하여 상기 제1 통신 프로토콜에 따른 외부 전자 장치를 검색할 수 있다. 동작(301)은, 전자 장치가 외부 전자 장치와 연결을 수립하여 데이터를 전송하기 위해 이용되는 소프트웨어 어플리케이션을 수행함에 따라 시작될 수 있다.Referring to Figure 3A, in operation 301, the processor may search via a first communication protocol (eg, BLE). For example, the processor may search for at least one external electronic device connectable through a first communication protocol. For example, the first communication protocol may be related to a first communication circuit connected to the processor, and the processor may use the first communication circuit to search for an external electronic device according to the first communication protocol. Operation 301 may begin as the electronic device executes a software application used to establish a connection with an external electronic device and transmit data.

동작(301)을 통해 검색을 하는 동안, 동작(303)에서 프로세서는 제2 통신 프로토콜을 통해 검색할 수 있다. 예를 들어, 프로세서는, 제1 통신 프로토콜을 통해 연결가능한 적어도 하나의 외부 전자 장치를 검색하는 동안, 제2 통신 프로토콜을 통해 연결가능한 적어도 하나의 외부 전자 장치를 검색할 수 있다. 예를 들어, 상기 제2 통신 프로토콜은 상기 프로세서와 연결된 제2 통신 회로와 관련될 수 있고, 프로세서는 상기 제2 통신 회로를 이용하여 상기 제2 통신 프로토콜에 기반한 외부 전자 장치를 검색할 수 있다. 상기 검색은, 통신 프로토콜을 통해 연결하기 위한 요청 패킷을 송신(예: 브로드캐스트(broadcast), 멀티캐스트(multicast))하고, 그에 대한 응답 패킷에 기반하여 외부 전자 장치를 식별하는 것을 포함할 수 있다.While searching through operation 301, the processor may search through a second communication protocol in operation 303. For example, the processor may search for at least one external electronic device connectable through a second communication protocol while searching for at least one external electronic device connectable through a first communication protocol. For example, the second communication protocol may be related to a second communication circuit connected to the processor, and the processor may use the second communication circuit to search for an external electronic device based on the second communication protocol. The search may include sending a request packet for connection through a communication protocol (e.g., broadcast, multicast) and identifying an external electronic device based on a response packet. .

예를 들면, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 제2 통신 프로토콜과 관련된 노드와 연결될 수 있다. 또한, 상기 전자 장치는 제2 통신 프로토콜과 관련된 상기 노드와 연결될 수 있다. 다시 말해서, 상기 전자 장치와 상기 적어도 하나의 외부 전자 장치는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. For example, at least one external electronic device discovered through the second communication protocol may be connected to a node related to the second communication protocol. Additionally, the electronic device may be connected to the node associated with a second communication protocol. In other words, the electronic device and the at least one external electronic device may be connected to a LAN through the same node. The node may include a router or an access point (AP).

동작(305)에서, 프로세서는, 검색된 외부 전자 장치에 대한 사용자 입력을 식별할 수 있다. 여기서, 검색된 외부 전자 장치는, 동작(301)에서 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치 및 동작(303)에서 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치를 포함할 수 있다. 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치의 적어도 일부는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응될 수도 있다. 또는, 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응되지 않을 수도 있다.At operation 305, the processor may identify user input for the searched external electronic device. Here, the searched external electronic device may include at least one external electronic device searched through a first communication protocol in operation 301 and at least one external electronic device searched through a second communication protocol in operation 303. . At least a portion of the at least one external electronic device searched through the first communication protocol may correspond to at least one external electronic device searched through the second communication protocol. Alternatively, at least one external electronic device searched through the first communication protocol may not correspond to at least one external electronic device searched through the second communication protocol.

예를 들면, 프로세서는, 검색된 외부 전자 장치를 상기 프로세서가 포함되는 전자 장치의 디스플레이(예: 도 13의 디스플레이 모듈(1360))를 통해 표시할 수 있다. 예를 들면, 프로세서는 검색된 외부 전자 장치를 디스플레이를 통해 사용자 인터페이스 상에 표시할 수 있다. For example, the processor may display the searched external electronic device through the display of the electronic device including the processor (eg, display module 1360 in FIG. 13). For example, the processor may display the searched external electronic device on the user interface through a display.

예를 들면, 프로세서는 디스플레이를 통해 표시되는 검색된 외부 전자 장치에 대응하는 영역에 대한 적어도 하나의 사용자 입력을 식별할 수 있고, 이에 따라, 검색된 외부 전자 장치 중 하나의 외부 전자 장치를 식별할 수 있다. 여기서, 상기 하나의 외부 전자 장치는 선택된 외부 전자 장치를 포함할 수 있다. For example, the processor may identify at least one user input for an area corresponding to the searched external electronic device displayed through the display, and thereby identify one external electronic device among the searched external electronic devices. . Here, the one external electronic device may include a selected external electronic device.

동작(307)에서, 프로세서는 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 외부 전자 장치인지 여부를 식별할 수 있다. 예를 들면, 프로세서는, 사용자의 입력에 따라 선택된 외부 전자 장치가, 동작(303)에 의해 검색된 적어도 하나의 외부 전자 장치에 포함되는지 여부를 식별할 수 있다. 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치인 경우, 프로세서는 동작(309)을 수행할 수 있다. 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치가 아닌 경우, 프로세서는 동작(315)을 수행할 수 있다.In operation 307, the processor may identify whether the selected external electronic device is an external electronic device discovered through a second communication protocol. For example, the processor may identify whether the external electronic device selected according to the user's input is included in at least one external electronic device searched in operation 303. If the selected external electronic device is at least one external electronic device searched through the second communication protocol, the processor may perform operation 309. If the selected external electronic device is not one of the at least one external electronic device searched through the second communication protocol, the processor may perform operation 315.

동작(309)에서, 프로세서는, 제2 통신 프로토콜을 통해 인증을 수행할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치와 제2 통신 프로토콜을 통해 인증을 수행할 수 있다. 프로세서는, 상기 선택된 외부 전자 장치와 인증을 수행하기 위하여, 제2 통신 프로토콜을 통해 연결할 수 있다.At operation 309, the processor may perform authentication via a second communication protocol. For example, the processor may perform authentication with the selected external electronic device through a second communication protocol. The processor may connect to the selected external electronic device through a second communication protocol to perform authentication.

동작(311)에서, 프로세서는, 상기 인증이 일정 시간 내에 성공되는지 여부를 식별할 수 있다. 예를 들어, 프로세서는, 제2 통신 프로토콜을 통해 상기 선택된 외부 전자 장치와 수행하는 상기 인증이 지정된 시간(예: 3초) 내에 성공되는지 여부를 식별할 수 있다. 상기 일정 시간은, 상기 전자 장치의 사용자에 의해 미리 설정되거나, 상기 제2 통신 프로토콜과 관련된 네트워크의 상태에 따라 변경될 수 있다. 프로세서는 동작(311)에서 상기 인증이 일정 시간 내에 성공됨을 식별한 경우, 프로세서는 동작(313)을 수행할 수 있다. 프로세서는 동작(311)에서 상기 인증이 일정 시간 내에 성공하지 못한 상태로 유지되거나, 상기 인증이 실패한 것을 식별한 경우, 프로세서는 동작(319)을 수행할 수 있다. At operation 311, the processor may identify whether the authentication is successful within a certain amount of time. For example, the processor may identify whether the authentication performed with the selected external electronic device is successful within a specified time (eg, 3 seconds) through a second communication protocol. The constant time may be preset by the user of the electronic device, or may be changed depending on the state of the network related to the second communication protocol. If the processor determines in operation 311 that the authentication is successful within a certain period of time, the processor may perform operation 313. If the processor determines in operation 311 that the authentication remains unsuccessful within a certain period of time or that the authentication has failed, the processor may perform operation 319.

동작(313)에서, 프로세서는, 제2 통신 프로토콜을 통해 상기 선택된 외부 전자 장치와 연결을 수립할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치와 제2 통신 프로토콜을 통한 연결을 유지할 수 있다. 동작(315)에서, 프로세서는, 상기 제2 통신 프로토콜을 통한 연결에 기반하여, 상기 선택된 외부 전자 장치에게 데이터를 전송할 수 있다.In operation 313, the processor may establish a connection with the selected external electronic device through a second communication protocol. For example, the processor may maintain a connection with the selected external electronic device through a second communication protocol. In operation 315, the processor may transmit data to the selected external electronic device based on a connection through the second communication protocol.

동작(317)에서, 프로세서는, 상기 선택된 외부 전자 장치가 제1 통신 프로토콜을 통해 검색된 외부 전자 장치인지 여부를 식별할 수 있다. 예를 들어, 상기 선택된 외부 전자 장치가 제1 통신 프로토콜 및 제2 통신 프로토콜 모두를 통해 검색된 외부 전자 장치이고, 동작(311)에서 제2 통신 프로토콜을 통한 인증이 실패한 경우, 프로세서는 동작(319)을 수행할 수 있다. 이와 달리, 상기 선택된 외부 전자 장치가 제2 통신 프로토콜만을 통해 검색된 외부 전자 장치이고, 동작(311)에서 제2 통신 프로토콜을 통한 인증이 실패한 경우, 프로세서는 연결이 실패하였음을 표시하기 위한 알림(notice)을 디스플레이를 통해 표시할 수 있다. 예를 들어, 프로세서는, 데이터를 전송하기 위해 이용되는 소프트웨어 어플리케이션의 사용자 인터페이스를 통해 상기 알림을 표시할 수 있다. In operation 317, the processor may identify whether the selected external electronic device is an external electronic device discovered through a first communication protocol. For example, if the selected external electronic device is an external electronic device discovered through both a first communication protocol and a second communication protocol, and authentication through the second communication protocol fails in operation 311, the processor performs operation 319. can be performed. In contrast, if the selected external electronic device is an external electronic device discovered only through the second communication protocol, and authentication through the second communication protocol fails in operation 311, the processor issues a notification to indicate that the connection has failed. ) can be displayed through the display. For example, the processor may display the notification through a user interface of a software application used to transmit data.

동작(319)에서, 프로세서는, 제1 통신 프로토콜을 통해 상기 선택된 외부 전자 장치와 인증을 수행할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치가 제1 통신 프로토콜을 통해 검색된 외부 전자 장치인 경우, 제1 통신 프로토콜을 통해 인증을 수행할 수 있다. 프로세서는, 상기 선택된 외부 전자 장치와 인증을 수행하기 위하여, 제1 통신 프로토콜을 통해 연결할 수 있다. 동작(319)에서 인증이 성공된 경우, 프로세서는, L2 연결을 위한 크리덴셜(credential) 교환을 수행할 수 있다.In operation 319, the processor may perform authentication with the selected external electronic device through a first communication protocol. For example, if the selected external electronic device is an external electronic device discovered through a first communication protocol, the processor may perform authentication through a first communication protocol. The processor may connect to the selected external electronic device through a first communication protocol to perform authentication. If authentication is successful in operation 319, the processor may perform credential exchange for L2 connection.

동작(321)에서, 프로세서는, L2(layer 2) 연결을 수립할 수 있다. 예를 들어, 동작(319)의 상기 인증이 성공된 경우, 프로세서는, 상기 선택된 외부 전자 장치와 제1 통신 프로토콜을 통한 연결을 해제할 수 있고, 상기 L2 연결을 위한 크리덴셜에 기반하여 데이터 전송을 위한 L2 연결을 수행할 수 있다. 예를 들어, 프로세서는, 동작(321)에서, L2 연결 방식을 선택할 수 있다. 상기 L2 연결은 D2D(device to device) 연결을 나타낼 수 있고, 다양한 D2D 연결들 중 하나를 선택할 수 있다. 예를 들어, D2D 연결들은, Wi-Fi direct 연결, 또는 Wi-Fi aware 연결을 포함할 수 있다. 동작(323)에서, 프로세서는, 선택된 연결 방식에 따른 연결이 성공하는 경우, 선택된 연결 방식을 통해 외부 전자 장치에게 데이터를 전송할 수 있다. At operation 321, the processor may establish a layer 2 (L2) connection. For example, if the authentication in operation 319 is successful, the processor may disconnect from the selected external electronic device through a first communication protocol and transmit data based on the credentials for the L2 connection. L2 connection can be performed for . For example, the processor, in operation 321, may select an L2 connectivity scheme. The L2 connection may represent a device to device (D2D) connection, and one of various D2D connections may be selected. For example, D2D connections may include a Wi-Fi direct connection, or a Wi-Fi aware connection. In operation 323, if the connection according to the selected connection method is successful, the processor may transmit data to the external electronic device through the selected connection method.

상술한 바를 참조하면, 본 개시의 실시예에 따른 장치 및 방법은, 전자 장치가 외부 전자 장치와 제2 통신 프로토콜을 통해 동일한 노드(node)에 연결되어 있는 경우, 상기 전자 장치는 상기 외부 전자 장치와 추가적인 연결을 수행하지 않고 이미 연결된 상기 제2 통신 프로토콜을 이용하여 데이터를 전송하기 위한 장치 및 방법을 제안할 수 있다. 이에 따라, 본 개시의 실시예에 따른 장치 및 방법은, 제1 통신 프로토콜을 통해 검색 및 인증 동작에서 요구되는 전력 소모가 감소될 수 있고, 검색에 요구되는 시간이 줄어들 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 데이터의 전송을 위한 연결(예: L2 연결)의 횟수가 감소될 수 있어 보다 효율적으로 데이터를 전송할 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 다른 전자 장치의 상태(예: 핫스팟 기능의 활성화 또는 또 다른 전자 장치와 Wi-Fi direct를 통해 연결)에 상관없이, 데이터의 전송을 위한 연결이 가능한 바 적용 가능한 시나리오들을 확장할 수 있다.Referring to the above, in the apparatus and method according to an embodiment of the present disclosure, when an electronic device is connected to the same node as an external electronic device through a second communication protocol, the electronic device is connected to the external electronic device. It is possible to propose an apparatus and method for transmitting data using the second communication protocol already connected without performing an additional connection. Accordingly, in the apparatus and method according to an embodiment of the present disclosure, the power consumption required for search and authentication operations through the first communication protocol can be reduced, and the time required for search can be reduced. Additionally, the device and method according to an embodiment of the present disclosure can transmit data more efficiently because the number of connections (eg, L2 connections) for data transmission can be reduced. In addition, the device and method according to an embodiment of the present disclosure provide a connection for data transmission, regardless of the state of the other electronic device (e.g., activation of the hotspot function or connection to another electronic device via Wi-Fi direct). This makes it possible to expand applicable scenarios.

도 3b는 제1 통신 프로토콜 및 제2 통신 프로토콜에 기반하여 검색된 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 예를 도시하는 흐름도이다.FIG. 3B is a flowchart illustrating an example of a method for establishing a connection with an external electronic device found based on a first communication protocol and a second communication protocol.

상기 외부 전자 장치와 연결을 수립한다는 것은, 전자 장치가 상기 외부 전자 장치를 검색하고, 인증을 수행하고, 인증이 성공하여 데이터를 전송하기 위한 연결을 수행하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은 검색 동작, 인증 동작 및 데이터 전송 동작을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시의 실시예들에서, 연결은 제1 통신 프로토콜(예: BLE)을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 전송을 위한 연결만을 지칭할 수도 있다. Establishing a connection with the external electronic device may indicate that the electronic device searches for the external electronic device, performs authentication, and establishes a connection to transmit data after authentication is successful. In other words, the connection may include all search operations, authentication operations, and data transmission operations. However, the present disclosure is not limited thereto. For example, in embodiments of the present disclosure, the connection may include a connection via a first communication protocol (e.g., BLE), a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. Likewise, it may refer only to a connection for authentication or transmission.

도 3b의 흐름도에 따른 방법은 상기 전자 장치에 의해 수행될 수 있다. 상기 전자 장치는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 상기 방법은 상기 전자 장치의 프로세서(예: 도 13의 프로세서(1320))에 의해 수행될 수 있다.The method according to the flowchart of FIG. 3B may be performed by the electronic device. The electronic device may include the electronic device 1301 of FIG. 13 . For example, the method may be performed by a processor (eg, processor 1320 in FIG. 13) of the electronic device.

일 실시예에 따르면, 동작(330)에서, 프로세서는, 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 프로세서는, 제1 통신 회로를 통해, 제1 통신 프로토콜을 통해 연결가능한 외부 전자 장치들을 식별하기 위한 제1 BLE 패킷을 브로드캐스트 방식을 통해 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 제2 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 제2 BLE 패킷은 외부 전자 장치로부터 방송되는 상기 제1 BLE 패킷에 대한 응답 패킷일 수 있다. 상기 제2 BLE 패킷의 수신 대기는, BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 예를 들어, 상기 제1 BLE 패킷은, 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 전자 장치의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. 예를 들면, 제1 BLE 패킷은, 전자 장치가 제2 통신 프로토콜을 지원하는지 여부 및/또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다.According to one embodiment, at operation 330, the processor may broadcast the first BLE packet. For example, the processor may transmit, through the first communication circuit, a first BLE packet for identifying external electronic devices connectable through the first communication protocol through a broadcast method. According to one embodiment, the processor may wait to receive the second BLE packet. The second BLE packet may be a response packet to the first BLE packet broadcast from an external electronic device. Waiting to receive the second BLE packet may indicate monitoring to receive the BLE packet. For example, the first BLE packet may include terminal identifier information for the electronic device. For example, the terminal identifier may include a unique identifier of the electronic device and information about the type of the electronic device. For example, the first BLE packet may include information indicating whether the electronic device supports the second communication protocol and/or is connected to the second communication protocol.

일 실시예에 따르면, 동작(335)에서, 프로세서는, 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 프로세서는, 제2 통신 회로를 통해, 제2 통신 프로토콜을 통해 연결가능한 외부 전자 장치들을 식별하기 위한 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 제1 BLE 패킷을 방송하는 동안, 제1 LAN 패킷을 함께 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 제2 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 제2 LAN 패킷은 외부 전자 장치로부터 전송되는 상기 제1 LAN 패킷에 대한 응답 패킷일 수 있다. 상기 제2 LAN 패킷의 수신 대기는, LAN 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. According to one embodiment, at operation 335, the processor may transmit a first LAN packet. For example, the processor may transmit, through a second communication circuit, a first LAN packet for identifying external electronic devices connectable through a second communication protocol through a multicast method. According to one embodiment, the processor may transmit the first LAN packet while broadcasting the first BLE packet. According to one embodiment, the processor may wait to receive a second LAN packet. The second LAN packet may be a response packet to the first LAN packet transmitted from an external electronic device. Waiting to receive the second LAN packet may indicate monitoring to receive the LAN packet.

일 실시예에 따르면, 동작(340)에서, 프로세서는, 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 프로세서는, 제1 통신 회로를 통해 외부 전자 장치로부터 방송되는 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 상기 제2 BLE 패킷은, 상기 외부 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 상기 외부 전자 장치의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. 예를 들면, 제2 BLE 패킷은, 상기 외부 전자 장치가 제2 통신 프로토콜을 지원하는지 여부 및/또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다.According to one embodiment, at operation 340, the processor may receive a second BLE packet. For example, the processor may receive a second BLE packet broadcast from an external electronic device through the first communication circuit. For example, the second BLE packet may include terminal identifier information for the external electronic device. For example, the terminal identifier may include a unique identifier of the external electronic device and information about the type of the electronic device. For example, the second BLE packet may include information indicating whether the external electronic device supports a second communication protocol and/or is connected to the second communication protocol.

일 실시예에 따르면, 동작(345)에서, 프로세서는, 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 프로세서는, 제2 통신 회로를 통해 외부 전자 장치로부터 전송되는 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 상기 외부 전자 장치가 연결된 제2 통신 프로토콜에 대한 연결 정보를 포함할 수 있다. 예를 들어, 상기 연결 정보는, IP(internet protocol) 주소(address) 및 포트(port) 번호를 포함할 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 상기 외부 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다. According to one embodiment, at operation 345, the processor may receive a second LAN packet. For example, the processor may receive a second LAN packet transmitted from an external electronic device through a second communication circuit. For example, the second LAN packet may include connection information about a second communication protocol to which the external electronic device is connected. For example, the connection information may include an Internet protocol (IP) address and a port number. For example, the second LAN packet may include terminal identifier information for the external electronic device.

상술한 바를 참조하면, 동작(330) 및 동작(340)은 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하는 동작으로 이해될 수 있다. 동작(335) 및 동작(345)은 제2 통신 프로토콜을 통해 외부 전자 장치를 검색하는 동작으로 이해될 수 있다. Referring to the above, operations 330 and 340 may be understood as operations for searching for an external electronic device through a first communication protocol. Operations 335 and 345 may be understood as operations for searching for an external electronic device through a second communication protocol.

일 실시예에 따르면, 동작(350)에서, 프로세서는, 외부 전자 장치에 대한 정보를 표시할 수 있다. 예를 들면, 프로세서는, 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와, 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치에 대한 시각적 정보를 전자 장치의 디스플레이를 통해 표시할 수 있다. 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치의 적어도 일부는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응될 수도 있다. 또는, 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응되지 않을 수도 있다.According to one embodiment, in operation 350, the processor may display information about an external electronic device. For example, the processor may display visual information about at least one external electronic device searched through a first communication protocol and at least one external electronic device searched through a second communication protocol through a display of the electronic device. . At least a portion of the at least one external electronic device searched through the first communication protocol may correspond to at least one external electronic device searched through the second communication protocol. Alternatively, at least one external electronic device searched through the first communication protocol may not correspond to at least one external electronic device searched through the second communication protocol.

일 실시예에 따르면, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 제2 통신 프로토콜과 관련된 노드와 연결될 수 있다. 또한, 상기 전자 장치는 제2 통신 프로토콜과 관련된 상기 노드와 연결될 수 있다. 다시 말해서, 상기 전자 장치와 상기 적어도 하나의 외부 전자 장치는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. According to one embodiment, at least one external electronic device discovered through the second communication protocol may be connected to a node related to the second communication protocol. Additionally, the electronic device may be connected to the node associated with a second communication protocol. In other words, the electronic device and the at least one external electronic device may be connected to a LAN through the same node. The node may include a router or an access point (AP).

일 실시예에 따르면, 프로세서는, 검색된 외부 전자 장치를 상기 프로세서가 포함되는 전자 장치의 디스플레이(예: 도 13의 디스플레이 모듈(1360))를 통해 표시할 수 있다. 예를 들면, 프로세서는 검색된 외부 전자 장치를 디스플레이를 통해 사용자 인터페이스 상에 표시할 수 있다. According to one embodiment, the processor may display the searched external electronic device through the display (eg, display module 1360 of FIG. 13) of the electronic device including the processor. For example, the processor may display the searched external electronic device on the user interface through a display.

일 실시예에 따르면, 프로세서는 디스플레이를 통해 표시되는 검색된 외부 전자 장치에 대응하는 영역에 대한 적어도 하나의 사용자 입력을 식별할 수 있고, 이에 따라, 검색된 외부 전자 장치 중 하나의 외부 전자 장치를 식별할 수 있다. 여기서, 상기 하나의 외부 전자 장치는 선택된 외부 전자 장치를 포함할 수 있다. According to one embodiment, the processor may identify at least one user input for an area corresponding to the searched external electronic device displayed through the display, and thereby identify one external electronic device among the searched external electronic devices. You can. Here, the one external electronic device may include a selected external electronic device.

일 실시예에 따르면, 동작(355)에서, 프로세서는, 제2 통신 프로토콜에 기반하여, 외부 전자 장치와 연결을 수립할 수 있다. 예를 들어, 프로세서는, 상기 식별된 외부 전자 장치에 대한 적어도 하나의 사용자 입력의 적어도 일부 기반하여, 제2 통신 프로토콜에 따라 노드(node)를 통해 상기 식별된 외부 전자 장치와 연결을 수립할 수 있다. 상기 노드는, 전자 장치가 제2 통신 프로토콜을 통해 연결된 노드를 나타낼 수 있다. According to one embodiment, in operation 355, the processor may establish a connection with an external electronic device based on a second communication protocol. For example, the processor may establish a connection with the identified external electronic device through a node according to a second communication protocol, based at least in part on at least one user input for the identified external electronic device. there is. The node may represent a node to which an electronic device is connected through a second communication protocol.

일 실시예에 따르면, 프로세서는 동작(355)에서 제2 통신 프로토콜에 기반하여 상기 식별된 외부 전자 장치와 연결을 수립하기 위해, 제2 통신 프로토콜에 기반하여 인증을 수행할 수 있다. 예를 들면, 전자 장치는 상기 식별된 외부 전자 장치와 L3(layer 3) 소켓(socket) 연결을 수행하고, 상호 유효성 검증을 수행함으로써, 인증을 수행할 수 있다. According to one embodiment, in operation 355, the processor may perform authentication based on a second communication protocol to establish a connection with the identified external electronic device based on the second communication protocol. For example, the electronic device may perform authentication by making an L3 (layer 3) socket connection with the identified external electronic device and performing mutual validation.

일 실시예에 따르면, 프로세서는, 상기 인증이 실패하거나, 일정 시간 내 성공되지 않은 경우, 상기 식별된 외부 전자 장치가 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치에 포함되는지 여부를 식별할 수 있다. 만약, 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치에 포함되는 경우, 프로세서는, 제1 통신 프로토콜을 통해 인증을 수행하고, L2 연결을 수립하여, 데이터를 전송할 수 있다.According to one embodiment, if the authentication fails or is not successful within a certain period of time, the processor may identify whether the identified external electronic device is included in at least one external electronic device searched through a first communication protocol. You can. If the device is included in at least one external electronic device searched through the first communication protocol, the processor may perform authentication through the first communication protocol, establish an L2 connection, and transmit data.

일 실시예에 따르면, 프로세서는, 연결이 수립된 외부 전자 장치에게 데이터를 전송할 수 있다. 예를 들면, 프로세서는, 연결된 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행하고, L3 소켓 연결이 성공한 경우, 상기 연결이 수립된 외부 전자 장치에게 데이터를 전송할 수 있다.According to one embodiment, the processor may transmit data to an external electronic device with which a connection has been established. For example, the processor may perform an L3 socket connection for the connected second communication protocol, and if the L3 socket connection is successful, data may be transmitted to the external electronic device with which the connection has been established.

도 4는 동일한 네트워크(network)의 외부 전자 장치를 검색하는 방법에 대한 예를 도시한다.Figure 4 shows an example of a method for searching for an external electronic device in the same network.

도 4는, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 제2 전자 장치(103)를 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색하는 동작(410)에 대한 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 제1 전자 장치(101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 제1 전자 장치(101)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320) 및 통신 모듈(1390)에 의해 수행될 수 있다.FIG. 4 shows a second electronic device 103 connected to the same node as the node to which the first electronic device 101 is connected through the second communication protocol through the first communication protocol and the second communication protocol. An example of a search operation 410 is shown. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. The first electronic device 101 may include the electronic device 1301 of FIG. 13 . For example, an operation performed by the first electronic device 101 may be performed by the processor 1320 and the communication module 1390 of the electronic device 1301 of FIG. 13.

도 4를 참조하면, 제2 전자 장치(103)는 제1 전자 장치(101)와 동일한 노드에 제2 프로토콜을 통해 연결된 상태(400)일 수 있다. 예를 들어, 제2 전자 장치(103)는, 제2 통신 프로토콜과 관련된 노드와 연결될 수 있다. 제1 전자 장치(101)는 제2 통신 프로토콜과 관련된 상기 노드와 연결될 수 있다. 다시 말해서, 제1 전자 장치(101)와 제2 전자 장치(103)는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. Referring to FIG. 4, the second electronic device 103 may be connected to the same node as the first electronic device 101 through a second protocol (400). For example, the second electronic device 103 may be connected to a node related to a second communication protocol. The first electronic device 101 may be connected to the node associated with a second communication protocol. In other words, the first electronic device 101 and the second electronic device 103 may be connected to the LAN through the same node. The node may include a router or an access point (AP).

검색 동작(410)을 참조하면, 동작(411)에서, 제1 전자 장치(101)는 BLE 패킷 및 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은 제2 BLE(Bluetooth low energy) 패킷(packet)을 포함할 수 있다. 상기 LAN 패킷은 제2 LAN(local access network) 패킷을 포함할 수 있다. 상기 BLE 패킷 및 LAN 패킷의 수신 대기는, 상기 BLE 패킷 및 LAN 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 또한, 동작(413)에서, 제2 전자 장치(103)는 BLE 패킷 및 LAN 패킷을 수신하기 위하여 대기할 수 있다. 예를 들어, 상기 BLE 패킷은 제1 BLE 패킷을 포함할 수 있다. 상기 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하고 있기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷 및 제1 LAN 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링 및 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103)를 포함하는 적어도 하나의 외부 전자 장치를 스캐닝하고, 제2 전자 장치(103)도 제1 전자 장치(101)를 포함하는 적어도 하나의 다른 외부 전자 장치를 스캐닝할 수 있다. Referring to the search operation 410, in operation 411, the first electronic device 101 may wait to receive a BLE packet and a LAN packet. The BLE packet may include a second BLE (Bluetooth low energy) packet. The LAN packet may include a second LAN (local access network) packet. Waiting to receive the BLE packet and LAN packet may indicate monitoring to receive the BLE packet and LAN packet. Additionally, in operation 413, the second electronic device 103 may wait to receive BLE packets and LAN packets. For example, the BLE packet may include a first BLE packet. The LAN packet may include a first LAN packet. This is because, in this disclosure, the first electronic device 101 is performing a search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet and the first LAN packet. Monitoring for the first electronic device 101 to receive the second BLE packet and monitoring for the second electronic device 103 to receive the first BLE packet may include a first communication protocol scan. there is. In other words, the first electronic device 101 scans at least one external electronic device including the second electronic device 103, and the second electronic device 103 also scans at least one external electronic device including the first electronic device 101. Can scan one other external electronic device.

또한, 도 4에서는, 동작(411)과 동작(413)이 검색 동작(410)에서 최초로(initial) 수행되는 것으로 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷의 방송 이후(즉, 동작(415) 이후)에 제2 BLE 패킷의 수신을 위한 모니터링을 시작할 수 있고, 제1 LAN 패킷의 방송 이후(즉, 동작(423) 이후)에 제2 LAN 패킷의 수신을 위한 모니터링을 수행할 수 있다.Additionally, in FIG. 4 , operations 411 and 413 are shown as being initially performed in the search operation 410 , but the present disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second BLE packet after the broadcast of the first BLE packet (i.e., after operation 415), and after the broadcast of the first LAN packet. Monitoring for reception of the second LAN packet may be performed (i.e., after operation 423).

동작(415)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 415, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제1 BLE 패킷은, 제1 전자 장치(101)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제1 전자 장치(101)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. For example, the first BLE packet may include terminal identifier information for the first electronic device 101. For example, the terminal identifier may include a unique identifier of the first electronic device 101 and information about the type of the electronic device.

예를 들면, 제1 BLE 패킷은, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제1 BLE 패킷은 1비트 또는 2비트의 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the first BLE packet may include information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. For example, the first BLE packet may include 1 bit or 2 bits of information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. . For example, if it includes 1 bit of information, the first electronic device 101 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the first electronic device 101 If 101 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when containing 2 bits of information, if the first electronic device 101 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the first electronic device 101 is set to 01. If the electronic device 101 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 101 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(417)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 417, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

동작(419)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송(broadcast)할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 419, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제2 BLE 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제2 전자 장치(103)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. For example, the second BLE packet may include terminal identifier information for the second electronic device 103. For example, the terminal identifier may include a unique identifier of the second electronic device 103 and information about the type of the electronic device.

예를 들면, 제2 BLE 패킷은, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제1 BLE 패킷은 1비트 또는 2비트의 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the second BLE packet may include information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. For example, the first BLE packet may include 1 bit or 2 bits of information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. . For example, if it contains 1 bit of information, the second electronic device 103 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the second electronic device 103 If 103 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when it contains 2 bits of information, if the second electronic device 103 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the second electronic device 103 supports the second communication protocol. If the electronic device 103 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 103 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(421)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 421, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet.

동작(423)에서, 제1 전자 장치(101)는 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제2 통신 회로(communication circuit)를 통해 제1 LAN 패킷을 전송할 수 있다. 상기 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 423, the first electronic device 101 may transmit a first LAN packet. For example, the first electronic device 101 may transmit the first LAN packet through a multicast method. For example, the first electronic device 101 may transmit the first LAN packet through a second communication circuit of the first electronic device 101. The second communication circuit may be a communication circuit for a second communication protocol. The second communication circuit may be included in the communication module 1390 of FIG. 13.

동작(425)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 LAN 패킷에 기반하여, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 425, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101. For example, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101 through the second communication circuit of the second electronic device 103. The second electronic device 103 may identify that the first electronic device 101 is requesting a search through a second communication protocol, based on the received first LAN packet.

동작(427)에서, 제2 전자 장치(103)는 제1 LAN 패킷에 응답하여 제2 LAN 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제2 LAN 패킷을 전송할 수 있다. 상기 제2 전자 장치(103)의 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 427, the second electronic device 103 may transmit a second LAN packet in response to the first LAN packet. For example, the second electronic device 103 may transmit the second LAN packet through multicast. For example, the second electronic device 103 may transmit a second LAN packet through the second communication circuit of the second electronic device 103. The second communication circuit of the second electronic device 103 may be a communication circuit for a second communication protocol. The second communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제2 LAN 패킷은, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜에 대한 연결 정보를 포함할 수 있다. 예를 들어, 상기 연결 정보는, IP(internet protocol) 주소(address) 및 포트(port) 번호를 포함할 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. For example, the second LAN packet may include connection information about a second communication protocol to which the second electronic device 103 is connected. For example, the connection information may include an Internet protocol (IP) address and a port number. For example, the second LAN packet may include terminal identifier information for the second electronic device 103.

동작(429)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제2 통신 회로를 통해 제2 전자 장치(103)로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)가 제2 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다.In operation 429, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103. For example, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103 through the second communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through a second communication protocol, based on the received second LAN packet.

도 4를 참조하면, 동작(423)의 제1 LAN 패킷이 전송되는 것은 동작(415)의 제1 BLE 패킷이 전송되는 것과 실질적으로 동시에 수행될 수 있다. 예를 들면, 제1 전자 장치(101)는 제1 LAN 패킷을 방송하면서 제1 BLE 패킷을 방송할 수 있다. 즉, 동작(415), 동작(417), 동작(419), 및 동작(421)은 동작(423), 동작(425), 동작(427), 및 동작(429)과 실질적으로 동시에 수행될 수 있다.Referring to FIG. 4, the transmission of the first LAN packet in operation 423 may be performed substantially simultaneously with the transmission of the first BLE packet in operation 415. For example, the first electronic device 101 may broadcast the first BLE packet while broadcasting the first LAN packet. That is, operations 415, 417, 419, and 421 may be performed substantially simultaneously with operations 423, 425, 427, and 429. there is.

동작(431)에서, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 상기 검색의 결과는, 제2 전자 장치(103)를 포함하는 외부 전자 장치들을 포함할 수 있다. 또는, 상기 검색의 결과는, 제2 전자 장치(103)만 포함할 수 있다. 또는, 상기 검색의 결과는, 어떠한 외부 전자 장치도 포함하지 않을 수 있다. 즉, 제1 전자 장치(101)가 제1 통신 프로토콜 또는 제2 통신 프로토콜을 통해 어떠한 외부 전자 장치도 검색하지 못하였을 수도 있다. 도 4에서는, 설명의 편의를 위하여, 제2 전자 장치(103)가 제1 통신 프로토콜 및 제2 통신 프로토콜 모두에서 검색되는 예를 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들면, 제2 전자 장치(103)는 제1 전자 장치(101)에 의해 수행된 검색 중 제2 통신 프로토콜에 의해서만 검색될 수도 있다.In operation 431, the first electronic device 101 may display the results of the search through the first communication protocol and the second communication protocol. For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol and the second communication protocol on the display. The results of the search may include external electronic devices including the second electronic device 103. Alternatively, the search results may include only the second electronic device 103. Alternatively, the search results may not include any external electronic devices. That is, the first electronic device 101 may not have been able to search for any external electronic device through the first or second communication protocol. In FIG. 4 , for convenience of explanation, an example in which the second electronic device 103 is searched in both the first communication protocol and the second communication protocol is shown, but the present disclosure is not limited thereto. For example, the second electronic device 103 may be searched only using the second communication protocol during the search performed by the first electronic device 101.

동작(433)에서, 제1 전자 장치(101)는, 검색된 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다.In operation 433, the first electronic device 101 may receive a user's input regarding the searched electronic device. For example, the first electronic device 101 may display at least one searched electronic device through the display and receive a user's input corresponding to information about the at least one displayed electronic device. The first electronic device 101 may identify the selected electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103.

상술한 바와 같이, 제1 전자 장치(101)(또는 전자 장치)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 제2 전자 장치(103)(또는 외부 전자 장치)를 검색할 수 있다. 이 때, 제1 통신 프로토콜을 통한 검색을 위한 동작(예: 동작(415) 내지 동작(421))은, 제2 통신 프로토콜을 통한 검색을 위한 동작(예: 동작(423) 내지 동작(429))과 실질적으로 동시에 수행될 수 있다.As described above, the first electronic device 101 (or electronic device) can search for the second electronic device 103 (or external electronic device) through the first communication protocol and the second communication protocol. At this time, operations for searching through the first communication protocol (e.g., operations 415 to 421) are operations for searching through the second communication protocol (e.g., operations 423 to 429). ) and can be performed substantially simultaneously.

도 5a는 동일한 네트워크(network)의 검색된 외부 전자 장치를 표시하는 방법에 대한 예를 도시한다. FIG. 5A shows an example of a method for displaying searched external electronic devices of the same network.

도 5a는, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 제2 전자 장치(103)를 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색하고, 검색된 제2 전자 장치(103)를 표시하는 검색 동작(510)에 대한 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 제1 전자 장치(101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 제1 전자 장치(101)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320) 및 통신 모듈(1390)에 의해 수행될 수 있다.FIG. 5A shows a second electronic device 103 connected through a second communication protocol to the same node as the node to which the first electronic device 101 is connected through the second communication protocol through the first communication protocol and the second communication protocol. An example of a search operation 510 that searches and displays the searched second electronic device 103 is shown. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. The first electronic device 101 may include the electronic device 1301 of FIG. 13 . For example, an operation performed by the first electronic device 101 may be performed by the processor 1320 and the communication module 1390 of the electronic device 1301 of FIG. 13.

도 5a를 참조하면, 제2 전자 장치(103)는 제1 전자 장치(101)와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 상태(500)일 수 있다. 예를 들어, 제2 전자 장치(103)는, 제2 통신 프로토콜과 관련된 노드와 연결될 수 있다. 제1 전자 장치(101)는 제2 통신 프로토콜과 관련된 상기 노드와 연결될 수 있다. 다시 말해서, 제1 전자 장치(101)와 제2 전자 장치(103)는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. Referring to FIG. 5A, the second electronic device 103 may be connected to the same node as the first electronic device 101 through a second communication protocol (500). For example, the second electronic device 103 may be connected to a node related to a second communication protocol. The first electronic device 101 may be connected to the node associated with a second communication protocol. In other words, the first electronic device 101 and the second electronic device 103 may be connected to the LAN through the same node. The node may include a router or an access point (AP).

도 5a를 참조하면, 제1 전자 장치(101)는 제2 전자 장치(103)와 검색 동작(510), 인증 동작(543), 및 데이터 전송 동작(546)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자하는 파일(file), 또는 정보(information)를 포함할 수 있다.Referring to FIG. 5A , the first electronic device 101 may perform a search operation 510, an authentication operation 543, and a data transmission operation 546 with the second electronic device 103. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

검색 동작(510)을 참조하면, 동작(511)에서, 제1 전자 장치(101)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제2 BLE(Bluetooth low energy) 패킷(packet)을 포함할 수 있다. 상기 BLE 패킷의 수신 대기는, 상기 BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 또한, 동작(513)에서, 제2 전자 장치(101)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제1 BLE 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하고 있기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링 및 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103)를 포함하는 적어도 하나의 외부 전자 장치를 스캐닝하고, 제2 전자 장치(103)도 제1 전자 장치(101)를 포함하는 적어도 하나의 다른 외부 전자 장치를 스캐닝할 수 있다. Referring to the search operation 510, in operation 511, the first electronic device 101 may wait to receive a BLE packet. The BLE packet may include a second BLE (Bluetooth low energy) packet. Waiting to receive the BLE packet may indicate monitoring to receive the BLE packet. Additionally, in operation 513, the second electronic device 101 may wait to receive a BLE packet. The BLE packet may include a first BLE packet. This is because, in this disclosure, the first electronic device 101 is performing a search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet. Monitoring for the first electronic device 101 to receive the second BLE packet and monitoring for the second electronic device 103 to receive the first BLE packet may include a first communication protocol scan. there is. In other words, the first electronic device 101 scans at least one external electronic device including the second electronic device 103, and the second electronic device 103 also scans at least one external electronic device including the first electronic device 101. Can scan one other external electronic device.

또한, 도 5a에서는, 동작(511)과 동작(513)이 검색 동작(510)에서 최초로(initial) 수행되는 것으로 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷의 방송 이후(즉, 동작(515) 이후)에 제2 BLE 패킷의 수신을 위한 모니터링을 시작할 수 있다.Additionally, in FIG. 5A, operations 511 and 513 are shown as being initially performed in the search operation 510, but the present disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second BLE packet after the broadcast of the first BLE packet (i.e., after operation 515).

동작(515)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 상기 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 515, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제1 BLE 패킷은, 제1 전자 장치(101)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제1 전자 장치(101)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. For example, the first BLE packet may include terminal identifier information for the first electronic device 101. For example, the terminal identifier may include a unique identifier of the first electronic device 101 and information about the type of the electronic device.

예를 들면, 상기 제1 BLE 패킷은, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제1 BLE 패킷은 1비트 또는 2비트의 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the first BLE packet may include information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. For example, the first BLE packet may include 1 bit or 2 bits of information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. . For example, if it includes 1 bit of information, the first electronic device 101 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the first electronic device 101 If 101 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when containing 2 bits of information, if the first electronic device 101 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the first electronic device 101 is set to 01. If the electronic device 101 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 101 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(517)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 517, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

제1 BLE 패킷의 수신에 응답하여, 동작(519)에서, 제2 전자 장치(103)는 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 상기 LAN 패킷의 수신 대기는, 수신하기 위한 모니터링을 나타낼 수 있다. 동작(519)에서, 제2 전자 장치(103)는 L3(layer3) 소켓(socket) 연결을 위하여 대기할 수 있다. 상기 L3 소켓 연결은, 제2 통신 프로토콜에 기반하여, 데이터를 전송하기 위한 연결을 나타낼 수 있다. 동작(521)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송(braodcast)할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In response to receiving the first BLE packet, in operation 519, the second electronic device 103 may wait to receive a LAN packet. The LAN packet may include a first LAN packet. Waiting to receive the LAN packet may indicate monitoring for reception. In operation 519, the second electronic device 103 may wait for connection to an L3 (layer3) socket. The L3 socket connection may represent a connection for transmitting data based on a second communication protocol. In operation 521, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

동작(523)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 523, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet.

예를 들어, 상기 제2 BLE 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제2 전자 장치(103)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. For example, the second BLE packet may include terminal identifier information for the second electronic device 103. For example, the terminal identifier may include a unique identifier of the second electronic device 103 and information about the type of the electronic device.

예를 들면, 상기 제2 BLE 패킷은, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제2 BLE 패킷은 1비트 또는 2비트의 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다. For example, the second BLE packet may include information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. For example, the second BLE packet may include 1 bit or 2 bits of information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. . For example, if it contains 1 bit of information, the second electronic device 103 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the second electronic device 103 If 103 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when it contains 2 bits of information, if the second electronic device 103 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the second electronic device 103 supports the second communication protocol. If the electronic device 103 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 103 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(525)에서, 제1 전자 장치(101)는 제1 통신 프로토콜을 통한 검색 결과에 대한 리스트(list)를 획득할 수 있다. 예를 들어, 제1 전자 장치(101)는 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)를 식별할 수 있고, 제2 전자 장치(103)를 제1 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다. 제1 전자 장치(101)는 제2 전자 장치(103)를 포함하는 검색 결과에 대한 리스트를 생성할 수 있다.In operation 525, the first electronic device 101 may obtain a list of search results through the first communication protocol. For example, the first electronic device 101 may identify the second electronic device 103 based on the received second BLE packet and search for the second electronic device 103 through the first communication protocol. It can be added to the result list. The first electronic device 101 may generate a list of search results including the second electronic device 103.

동작(527)에서, 제1 전자 장치(101)는 제2 LAN 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 도 5a는 동작(527)이 동작(529) 보다 이전에 수행되는 것처럼 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 LAN 패킷의 방송 이후(즉, 동작(529) 이후)에 제2 LAN 패킷의 수신을 위한 모니터링을 시작할 수 있다.In operation 527, the first electronic device 101 may perform monitoring to receive a second LAN packet. Figure 5A shows operation 527 as being performed before operation 529, but the disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second LAN packet after the broadcast of the first LAN packet (i.e., after operation 529).

동작(529)에서, 제1 전자 장치(101)는 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제2 통신 회로(communication circuit)를 통해 제1 LAN 패킷을 전송할 수 있다. 상기 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 529, the first electronic device 101 may transmit a first LAN packet. For example, the first electronic device 101 may transmit the first LAN packet through a multicast method. For example, the first electronic device 101 may transmit the first LAN packet through a second communication circuit of the first electronic device 101. The second communication circuit may be a communication circuit for a second communication protocol. The second communication circuit may be included in the communication module 1390 of FIG. 13.

동작(531)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 LAN 패킷에 기반하여, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 531, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101. For example, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101 through the second communication circuit of the second electronic device 103. The second electronic device 103 may identify that the first electronic device 101 is requesting a search through a second communication protocol, based on the received first LAN packet.

동작(533)에서, 제2 전자 장치(103)는 제1 LAN 패킷에 응답하여 제2 LAN 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제2 LAN 패킷을 멀티캐스트 방식을 통해 전송할 수 있다. 상기 제2 전자 장치(103)의 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 533, the second electronic device 103 may transmit a second LAN packet in response to the first LAN packet. For example, the second electronic device 103 may transmit the second LAN packet through a multicast method through the second communication circuit of the second electronic device 103. The second communication circuit of the second electronic device 103 may be a communication circuit for a second communication protocol. The second communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제2 LAN 패킷은, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜에 대한 연결 정보를 포함할 수 있다. 예를 들어, 상기 연결 정보는, IP(internet protocol) 주소(address) 및 포트(port) 번호를 포함할 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. For example, the second LAN packet may include connection information about a second communication protocol to which the second electronic device 103 is connected. For example, the connection information may include an Internet protocol (IP) address and a port number. For example, the second LAN packet may include terminal identifier information for the second electronic device 103.

동작(535)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)가 제2 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 535, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103. For example, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through a second communication protocol, based on the received second LAN packet.

예를 들면, 제2 LAN 패킷은, 제2 전자 장치(103)를 지시하기 위한 식별자(identity)를 포함할 수 있다. 또한, 제2 LAN 패킷은, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜에 대한 정보를 포함할 수 있다. 예를 들면, 제2 통신 프로토콜에 대한 정보는, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜과 관련된 노드(node)에 대한 정보를 포함할 수 있다. 또한, 제2 LAN 패킷은, 제2 전자 장치(103)가 제2 통신 프로토콜에 대한 정보를 포함할 수 있다. 예를 들면, 상기 제2 통신 프로토콜에 대한 정보는, 상기 제2 전자 장치(103)가 제2 통신 프로토콜과 연결된 노드(node)에 대한 정보를 포함할 수 있다. For example, the second LAN packet may include an identifier indicating the second electronic device 103. Additionally, the second LAN packet may include information about the second communication protocol to which the second electronic device 103 is connected. For example, the information about the second communication protocol may include information about a node related to the second communication protocol to which the second electronic device 103 is connected. Additionally, the second LAN packet may include information about the second communication protocol of the second electronic device 103. For example, the information about the second communication protocol may include information about a node to which the second electronic device 103 is connected with the second communication protocol.

동작(537)에서, 제1 전자 장치(101)는 제2 통신 프로토콜을 통한 검색 결과에 대한 리스트(list)를 획득할 수 있다. 예를 들어, 제1 전자 장치(101)는 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)를 식별할 수 있고, 제2 전자 장치(103)를 제2 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다. 이 때, 제1 전자 장치(101)는 제2 통신 프로토콜을 통한 검색 결과 리스트를 동작(525)에서 획득된 제1 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다.In operation 537, the first electronic device 101 may obtain a list of search results through the second communication protocol. For example, the first electronic device 101 may identify the second electronic device 103 based on the received second LAN packet and search for the second electronic device 103 through the second communication protocol. It can be added to the result list. At this time, the first electronic device 101 may add the search result list through the second communication protocol to the search result list through the first communication protocol obtained in operation 525.

예를 들면, 제1 전자 장치(101)는 제2 BLE 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자와 제2 LAN 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자가 동일한지 여부를 식별함으로써, 제2 BLE 패킷을 전송한 외부 전자 장치와 제2 LAN 패킷을 전송한 외부 전자 장치가 동일한 전자 장치(즉, 제2 전자 장치(103))임을 식별할 수 있다.For example, the first electronic device 101 has an identifier for indicating the second electronic device 103 included in the second BLE packet and an identifier for indicating the second electronic device 103 included in the second LAN packet. By identifying whether the identifier is the same, it can be identified that the external electronic device that transmitted the second BLE packet and the external electronic device that transmitted the second LAN packet are the same electronic device (i.e., the second electronic device 103). .

동작(539)에서, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 상기 검색의 결과는, 제2 전자 장치(103)를 포함하는 외부 전자 장치들을 포함할 수 있다. 또는, 상기 검색의 결과는, 제2 전자 장치(103)만 포함할 수 있다. 또는, 상기 검색의 결과는, 어떠한 외부 전자 장치도 포함하지 않을 수 있다. 즉, 제1 전자 장치(101)가 제1 통신 프로토콜 또는 제2 통신 프로토콜을 통해 어떠한 외부 전자 장치도 검색하지 못하였을 수도 있다. 도 5a에서는, 설명의 편의를 위하여, 제2 전자 장치(103)가 제1 통신 프로토콜 및 제2 통신 프로토콜 모두에서 검색되는 예를 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들면, 제2 전자 장치(103)는 제1 전자 장치(101)에 의해 수행된 검색 중 제2 통신 프로토콜에 의해서만 검색될 수도 있다.In operation 539, the first electronic device 101 may display the results of the search through the first communication protocol and the second communication protocol. For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol and the second communication protocol on the display. The results of the search may include external electronic devices including the second electronic device 103. Alternatively, the search results may include only the second electronic device 103. Alternatively, the search results may not include any external electronic devices. That is, the first electronic device 101 may not have been able to search for any external electronic device through the first or second communication protocol. In FIG. 5A , for convenience of explanation, an example is shown in which the second electronic device 103 is searched in both the first communication protocol and the second communication protocol, but the present disclosure is not limited thereto. For example, the second electronic device 103 may be searched only using the second communication protocol during the search performed by the first electronic device 101.

동작(541)에서, 제1 전자 장치(101)는, 검색된 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다.In operation 541, the first electronic device 101 may receive a user's input regarding the searched electronic device. For example, the first electronic device 101 may display at least one searched electronic device through the display and receive a user's input corresponding to information about the at least one displayed electronic device. The first electronic device 101 may identify the selected electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103.

인증 동작(543)을 참고하면, 동작(544)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 인증을 위한 L3 소켓 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. 예를 들어, 상기 LAN 연결 정보는, 저장된 IP(internet protocol) 주소(address) 및 포트(port) 번호를 포함할 수 있다. L3 소켓 연결이 성공한 경우, 동작(545)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 상호 유효성 검증을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 LAN 패킷에 기반하여 제2 전자 장치(103)의 유효성 검증을 수행할 수 있다. 또한, 제2 전자 장치(103)는 제1 LAN 패킷에 기반하여 제1 전자 장치(101)의 유효성 검증을 수행할 수 있다. Referring to the authentication operation 543, in operation 544, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection for authentication. For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. For example, the LAN connection information may include a stored Internet protocol (IP) address and port number. If the L3 socket connection is successful, in operation 545, the first electronic device 101 and the second electronic device 103 may perform mutual validation. For example, the first electronic device 101 may perform validation of the second electronic device 103 based on the second LAN packet. Additionally, the second electronic device 103 may perform validation of the first electronic device 101 based on the first LAN packet.

데이터 전송 동작(546)을 참조하면, 동작(547)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 데이터 전송을 위한 L3 소켓 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. L3 소켓 연결이 성공한 경우, 동작(548)에서, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터를 전송할 수 있다.Referring to the data transmission operation 546, in operation 547, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection for data transmission. For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. If the L3 socket connection is successful, the first electronic device 101 may transmit data to the second electronic device 103 in operation 548.

상술한 바와 같이, 제1 전자 장치(101)(또는 전자 장치)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 제2 전자 장치(103)(또는 외부 전자 장치)를 검색할 수 있다. 이 때, 제1 전자 장치(101)는 제1 통신 프로토콜과 관련된 응답 패킷의 정보와 제2 통신 프로토콜과 관련된 응답 패킷의 정보에 기반하여 제2 전자 장치(103)를 식별할 수 있다. 식별된 제2 전자 장치(103)는 제1 전자 장치(101)의 디스플레이를 통해 표시될 수 있다.As described above, the first electronic device 101 (or electronic device) can search for the second electronic device 103 (or external electronic device) through the first communication protocol and the second communication protocol. At this time, the first electronic device 101 may identify the second electronic device 103 based on information in the response packet related to the first communication protocol and information in the response packet related to the second communication protocol. The identified second electronic device 103 may be displayed through the display of the first electronic device 101.

도 5b는 동일한 네트워크(network)의 검색된 복수의 외부 전자 장치들을 표시하는 방법에 대한 예를 도시한다. FIG. 5B shows an example of a method for displaying a plurality of searched external electronic devices of the same network.

도 5b는, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 제2 전자 장치(103)를 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색하고, 검색된 제2 전자 장치(103)를 표시하는 검색 동작에 대한 예를 도시한다. 도 5a와는 달리, 도 5b에서는, 제1 전자 장치(101)는 제1 통신 프로토콜을 통해 제3 전자 장치(105)를 추가로 검색하고 검색된 제3 전자 장치(105)를 표시할 수 있다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 상기 제3 전자 장치(103)는 다른 외부 전자 장치를 지칭할 수 있다. 제1 전자 장치(101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 제1 전자 장치(101)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320) 및 통신 모듈(1390)에 의해 수행될 수 있다.5B shows a second electronic device 103 connected through a second communication protocol to the same node as the node to which the first electronic device 101 is connected through the second communication protocol through the first communication protocol and the second communication protocol. An example of a search operation for searching and displaying the searched second electronic device 103 is shown. Unlike FIG. 5A, in FIG. 5B, the first electronic device 101 may additionally search for the third electronic device 105 through the first communication protocol and display the searched third electronic device 105. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. The third electronic device 103 may refer to another external electronic device. The first electronic device 101 may include the electronic device 1301 of FIG. 13 . For example, an operation performed by the first electronic device 101 may be performed by the processor 1320 and the communication module 1390 of the electronic device 1301 of FIG. 13.

도 5b를 참조하면, 제2 전자 장치(103)는 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 상태(500)일 수 있다. 예를 들어, 제2 전자 장치(103)는, 제2 통신 프로토콜에 기반한 노드와 연결될 수 있다. 제1 전자 장치(101)는 제2 통신 프로토콜에 기반한 상기 노드와 연결될 수 있다. 다시 말해서, 제1 전자 장치(101)와 제2 전자 장치(103)는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. Referring to FIG. 5B, the second electronic device 103 may be connected (500) through a second communication protocol to the same node as the node to which the first electronic device 101 is connected through the second communication protocol. For example, the second electronic device 103 may be connected to a node based on a second communication protocol. The first electronic device 101 may be connected to the node based on a second communication protocol. In other words, the first electronic device 101 and the second electronic device 103 may be connected to the LAN through the same node. The node may include a router or an access point (AP).

도 5b를 참조하면, 동작(551)에서, 제1 전자 장치(101)는 BLE 패킷 및 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은 제2 BLE(Bluetooth low energy) 패킷(packet)을 포함할 수 있다. 상기 LAN 패킷은 제2 LAN(local access network)을 포함할 수 있다 상기 BLE 패킷 및 LAN 패킷의 수신 대기는, 상기 BLE 패킷 및 LAN 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 또한, 동작(553-1)에서, 제2 전자 장치(103)는 BLE 패킷 및 LAN 패킷을 수신하기 위하여 대기할 수 있다. 예를 들어, 상기 BLE 패킷은 제1 BLE 패킷을 포함할 수 있다. 상기 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 또한, 동작(553-2)에서, 제3 전자 장치(105)는 BLE 패킷 및 LAN 패킷을 수신하기 위하여 대기할 수 있다. 예를 들어, 상기 BLE 패킷은 제1 BLE 패킷을 포함할 수 있다. 상기 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하고 있기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷 및 제1 LAN 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링, 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링, 및 상기 제3 전자 장치(105)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103) 및 제3 전자 장치(105)를 포함하는 복수의 외부 전자 장치들을 스캐닝할 수 있다. Referring to FIG. 5B, in operation 551, the first electronic device 101 may wait to receive a BLE packet and a LAN packet. The BLE packet may include a second BLE (Bluetooth low energy) packet. The LAN packet may include a second LAN (local access network). Waiting to receive the BLE packet and the LAN packet may indicate monitoring to receive the BLE packet and the LAN packet. Additionally, in operation 553-1, the second electronic device 103 may wait to receive BLE packets and LAN packets. For example, the BLE packet may include a first BLE packet. The LAN packet may include a first LAN packet. Additionally, in operation 553-2, the third electronic device 105 may wait to receive BLE packets and LAN packets. For example, the BLE packet may include a first BLE packet. The LAN packet may include a first LAN packet. This is because, in this disclosure, the first electronic device 101 is performing a search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet and the first LAN packet. Monitoring for the first electronic device 101 to receive the second BLE packet, monitoring for the second electronic device 103 to receive the first BLE packet, and monitoring for the third electronic device 105 to receive the first BLE packet. Monitoring for receiving BLE packets may include a first communication protocol scan. In other words, the first electronic device 101 can scan a plurality of external electronic devices including the second electronic device 103 and the third electronic device 105.

동작(555-1, 555-2)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operations 555-1 and 555-2, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13.

예를 들면, 제1 BLE 패킷은, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제1 BLE 패킷은 1비트 또는 2비트의 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 다른 예를 들어, 2비트의 정보를 포함하는 경우 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the first BLE packet may include information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. For example, the first BLE packet may include 1 bit or 2 bits of information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. . For example, if it includes 1 bit of information, the first electronic device 101 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the first electronic device 101 If 101 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For another example, when it includes 2 bits of information, if the first electronic device 101 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the first electronic device 101 supports the second communication protocol. If the electronic device 101 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 101 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(557-1)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 557-1, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

동작(557-2)에서, 제3 전자 장치(105)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제3 전자 장치(105)는 제3 전자 장치(105)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제3 전자 장치(105)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 557-2, the third electronic device 105 may receive the first BLE packet broadcast from the first electronic device 101. For example, the third electronic device 105 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the third electronic device 105. Based on the received first BLE packet, the third electronic device 105 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

동작(559-1)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 559-1, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

동작(559-2)에서, 제3 전자 장치(105)는 제1 BLE 패킷에 응답하여 다른(another) 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제3 전자 장치(105)는 제3 전자 장치(105)의 제1 통신 회로를 통해 다른 제2 BLE 패킷을 방송할 수 있다. 상기 제3 전자 장치(105)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제3 전자 장치(105)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 559-2, the third electronic device 105 may transmit another second BLE packet in response to the first BLE packet. For example, the third electronic device 105 may broadcast another second BLE packet through the first communication circuit of the third electronic device 105. The first communication circuit of the third electronic device 105 may be a communication circuit for a first communication protocol. The first communication circuit of the third electronic device 105 may be included in the communication module 1390 of FIG. 13.

동작(561)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. 예를 들면, 상기 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷은, 제2 전자 장치(103)를 지시하기 위한 식별자(identity)를 포함할 수 있다.In operation 561, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet. For example, the second BLE packet broadcast from the second electronic device 103 may include an identifier to indicate the second electronic device 103.

동작(561)에서, 제1 전자 장치(101)는 제3 전자 장치(105)으로부터 방송된 다른 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제3 전자 장치(105)로부터 방송된 다른 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 다른 제2 BLE 패킷에 기반하여, 제3 전자 장치(105)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. 예를 들면, 상기 제3 전자 장치(105)로부터 방송된 다른 제2 BLE 패킷은, 제3 전자 장치(105)를 지시하기 위한 식별자(identity)를 포함할 수 있다.In operation 561, the first electronic device 101 may receive another second BLE packet broadcast from the third electronic device 105. For example, the first electronic device 101 may receive another second BLE packet broadcast from the third electronic device 105 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the third electronic device 105 is responding to a search request through the first communication protocol, based on another received second BLE packet. For example, another second BLE packet broadcast from the third electronic device 105 may include an identifier for indicating the third electronic device 105.

동작(563)에서, 제1 전자 장치(101)는 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통하여 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제2 통신 회로(communication circuit)를 통해 제1 LAN 패킷을 전송할 수 있다. 상기 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 563, the first electronic device 101 may transmit a first LAN packet. For example, the first electronic device 101 may transmit the first LAN packet through a multicast method. For example, the first electronic device 101 may transmit the first LAN packet through a second communication circuit of the first electronic device 101. The second communication circuit may be a communication circuit for a second communication protocol. The second communication circuit may be included in the communication module 1390 of FIG. 13.

동작(565)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 LAN 패킷에 기반하여, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 565, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101. For example, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101 through the second communication circuit of the second electronic device 103. The second electronic device 103 may identify that the first electronic device 101 is requesting a search through a second communication protocol, based on the received first LAN packet.

동작(567)에서, 제2 전자 장치(103)는 제1 LAN 패킷에 응답하여 제2 LAN 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 LAN 패킷을 멀티캐스트(multicast) 방식을 통하여 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제2 LAN 패킷을 방송할 수 있다. 상기 제2 전자 장치(103)의 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 567, the second electronic device 103 may transmit a second LAN packet in response to the first LAN packet. For example, the second electronic device 103 may transmit the second LAN packet through a multicast method. For example, the second electronic device 103 may broadcast a second LAN packet through a second communication circuit of the second electronic device 103. The second communication circuit of the second electronic device 103 may be a communication circuit for a second communication protocol. The second communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

동작(569)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)가 제2 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 569, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103. For example, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through a second communication protocol, based on the received second LAN packet.

예를 들면, 제2 LAN 패킷은, 제2 전자 장치(103)를 지시하기 위한 식별자(identity)를 포함할 수 있다. 또한, 제2 LAN 패킷은, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜에 대한 정보를 포함할 수 있다. 예를 들면, 제2 통신 프로토콜에 대한 정보는, 제2 전자 장치(103)가 연결된 제2 통신 프로토콜과 관련된 노드(node)에 대한 정보를 포함할 수 있다.For example, the second LAN packet may include an identifier indicating the second electronic device 103. Additionally, the second LAN packet may include information about the second communication protocol to which the second electronic device 103 is connected. For example, the information about the second communication protocol may include information about a node related to the second communication protocol to which the second electronic device 103 is connected.

동작(571)에서, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통한 검색 결과에 대한 리스트(list)를 획득할 수 있다. 예를 들어, 제1 전자 장치(101)는 수신된 제2 BLE 패킷들에 기반하여, 제2 전자 장치(103) 및 제3 전자 장치(105)를 식별할 수 있고, 제2 전자 장치(103) 및 제3 전자 장치(105)를 제1 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다. 예를 들어, 제1 전자 장치(101)는 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)를 식별할 수 있고, 제2 전자 장치(103)를 제2 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 BLE 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자와 제2 LAN 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자가 동일한지 여부를 식별함으로써, 제2 BLE 패킷을 전송한 외부 전자 장치와 제2 LAN 패킷을 전송한 외부 전자 장치가 동일한 전자 장치(즉, 제2 전자 장치(103))임을 식별할 수 있다.In operation 571, the first electronic device 101 may obtain a list of search results through the first communication protocol and the second communication protocol. For example, the first electronic device 101 may identify the second electronic device 103 and the third electronic device 105 based on the received second BLE packets, and the second electronic device 103 ) and the third electronic device 105 can be added to the search result list through the first communication protocol. For example, the first electronic device 101 may identify the second electronic device 103 based on the received second LAN packet and search for the second electronic device 103 through the second communication protocol. It can be added to the result list. For example, the first electronic device 101 has an identifier for indicating the second electronic device 103 included in the second BLE packet and an identifier for indicating the second electronic device 103 included in the second LAN packet. By identifying whether the identifier is the same, it can be identified that the external electronic device that transmitted the second BLE packet and the external electronic device that transmitted the second LAN packet are the same electronic device (i.e., the second electronic device 103). .

동작(573)에서, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜을 통해 검색된 제3 전자 장치(105)를 디스플레이를 통해 표시할 수 있다. In operation 573, the first electronic device 101 may display the results of the search through the first communication protocol and the second communication protocol. For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol and the second communication protocol on the display. For example, the first electronic device 101 may display the third electronic device 105 searched through the first communication protocol on the display.

동작(575)에서, 제1 전자 장치(101)는, 검색된 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다. 또는, 제1 전자 장치(101)는 제3 전자 장치(105)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제3 전자 장치(105)를 식별할 수 있다.In operation 575, the first electronic device 101 may receive a user's input regarding the searched electronic device. For example, the first electronic device 101 may display at least one searched electronic device through the display and receive a user's input corresponding to information about the at least one displayed electronic device. The first electronic device 101 may identify the selected electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103. Alternatively, the first electronic device 101 may receive a user input corresponding to information about the third electronic device 105 and, accordingly, identify the third electronic device 105.

상술한 바와 같이, 제1 전자 장치(101)(또는 전자 장치)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 제2 전자 장치(103)(또는 외부 전자 장치)를 검색할 수 있다. 또한, 제1 전자 장치(101)(또는 전자 장치)는 제1 통신 프로토콜을 통해 제3 전자 장치(105)(또는 다른 외부 전자 장치)를 검색할 수 있다. 이 때, 제1 전자 장치(101)는 제1 통신 프로토콜과 관련된 응답 패킷의 정보와 제2 통신 프로토콜과 관련된 응답 패킷의 정보에 기반하여 제2 전자 장치(103)를 식별할 수 있다. 제2 전자 장치(103) 및 제3 전자 장치(105)는 제1 전자 장치(101)의 디스플레이를 통해 표시될 수 있다.As described above, the first electronic device 101 (or electronic device) can search for the second electronic device 103 (or external electronic device) through the first communication protocol and the second communication protocol. Additionally, the first electronic device 101 (or any electronic device) may search for the third electronic device 105 (or another external electronic device) through a first communication protocol. At this time, the first electronic device 101 may identify the second electronic device 103 based on information in the response packet related to the first communication protocol and information in the response packet related to the second communication protocol. The second electronic device 103 and the third electronic device 105 may be displayed through the display of the first electronic device 101.

도 6은 검색된 외부 전자 장치를 표시하는 전자 장치의 사용자 인터페이스의 예를 도시한다. 6 shows an example of a user interface of an electronic device displaying a searched external electronic device.

도 6은, 전자 장치(601)가 제1 통신 프로토콜 및/또는 제2 통신 프로토콜을 통해 검색한 결과를 디스플레이(610)(예: 도 13의 디스플레이 모듈(1360))를 통해 표시하는 예를 도시한다. 도 6의 전자 장치(601)는 제1 전자 장치(101)의 일 예로 이해될 수 있다. 예를 들면, 전자 장치(601)는 소프트웨어 어플리케이션(software application)의 사용자 인터페이스(user interface)(620)를 통해 제1 통신 프로토콜 및/또는 제2 통신 프로토콜에 기반하여 검색된 결과를 표시할 수 있다. 상기 소프트웨어 어플리케이션은, 전자 장치(601)가 외부 전자 장치와 연결을 수립하여 데이터를 전송하기 위해 이용되는 소프트웨어 어플리케이션을 나타낼 수 있다. 사용자 인터페이스(620)는 상기 소프트웨어 어플리케이션을 통해 연결을 수행하는 동작에 있어서, 제1 통신 프로토콜 및/또는 제2 통신 프로토콜을 통해 검색된 결과를 표시하기 위한, 사용자 인터페이스일 수 있다. FIG. 6 shows an example in which the electronic device 601 displays search results through the first communication protocol and/or the second communication protocol through the display 610 (e.g., the display module 1360 of FIG. 13). do. The electronic device 601 in FIG. 6 may be understood as an example of the first electronic device 101. For example, the electronic device 601 may display search results based on the first communication protocol and/or the second communication protocol through the user interface 620 of a software application. The software application may represent a software application used by the electronic device 601 to establish a connection with an external electronic device and transmit data. The user interface 620 may be a user interface for displaying results searched through a first communication protocol and/or a second communication protocol when performing a connection through the software application.

도 6의 전자 장치(601)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 전자 장치(601)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320) 및 통신 모듈(1390)에 의해 수행될 수 있다.The electronic device 601 of FIG. 6 may include the electronic device 1301 of FIG. 13 . For example, operations performed by the electronic device 601 may be performed by the processor 1320 and the communication module 1390 of the electronic device 1301 of FIG. 13 .

도 6을 참조하면, 전자 장치(601)는 제1 통신 프로토콜 및/또는 제2 통신 프로토콜에 기반하여 검색을 수행할 수 있고, 검색된 결과를 디스플레이(610)를 통해 사용자 인터페이스(620)로 표시할 수 있다. Referring to FIG. 6, the electronic device 601 may perform a search based on the first communication protocol and/or the second communication protocol, and display the searched results on the user interface 620 through the display 610. You can.

예를 들어, 외부 전자 장치에 대한 정보는 적어도 하나의 외부 전자 장치의 종류 및 이름을 포함할 수 있다. 예를 들면, 외부 전자 장치의 종류는, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 예를 들면, 외부 전자 장치의 이름은 사용자가 외부 전자 장치에 대하여 정의한 이름을 나타낼 수 있다. 예를 들면, 사용자 인터페이스(620)는 제1 외부 전자 장치(630)에 대한 정보, 제2 외부 전자 장치(640)에 대한 정보, 및 제3 외부 전자 장치(650)에 대한 정보를 포함할 수 있다. 제1 외부 전자 장치(630)에 대한 정보는 제1 외부 전자 장치(630)의 종류는 타블렛 PC이며, 제1 외부 전자 장치(630)의 이름은 XXX's라는 정보를 포함할 수 있다. 제2 외부 전자 장치(640)에 대한 정보는 제2 외부 전자 장치(640)의 종류는 스마트폰이며, 제2 외부 전자 장치(640)의 이름은 YYY's라는 정보를 포함할 수 있다. 제3 외부 전자 장치(650)에 대한 정보는 제3 외부 전자 장치(650)의 종류는 PC이며, 제3 외부 전자 장치(650)의 이름은 ZZZ's라는 정보를 포함할 수 있다.For example, information about an external electronic device may include the type and name of at least one external electronic device. For example, types of external electronic devices may include portable communication devices (eg, smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliance devices. For example, the name of the external electronic device may represent a name defined by the user for the external electronic device. For example, the user interface 620 may include information about the first external electronic device 630, information about the second external electronic device 640, and information about the third external electronic device 650. there is. The information about the first external electronic device 630 may include information that the type of the first external electronic device 630 is a tablet PC and that the name of the first external electronic device 630 is XXX's. The information about the second external electronic device 640 may include information that the type of the second external electronic device 640 is a smartphone and the name of the second external electronic device 640 is YYY's. The information about the third external electronic device 650 may include information that the type of the third external electronic device 650 is PC and the name of the third external electronic device 650 is ZZZ's.

예를 들어, 전자 장치(601)는 외부 전자 장치에 대한 정보에 대응하는 사용자 입력을 수신할 수 있고, 이에 따라 외부 전자 장치를 식별할 수 있다. 예를 들면, 전자 장치(601)는 제2 외부 전자 장치(640)에 대한 정보에 대응하는 사용자 입력을 식별할 수 있고, 제2 외부 전자 장치(640)가 선택되었음을 식별할 수 있다. 이 후, 전자 장치(601)는 선택된 제2 외부 전자 장치(640)와 인증을 수행할 수 있다. 예를 들면, 제2 외부 전자 장치(640)가 제2 통신 프로토콜만을 통해 검색된 경우, 전자 장치(601)는 제2 통신 프로토콜을 통해 인증을 수행할 수 있다. For example, the electronic device 601 may receive a user input corresponding to information about an external electronic device and identify the external electronic device accordingly. For example, the electronic device 601 may identify a user input corresponding to information about the second external electronic device 640 and identify that the second external electronic device 640 has been selected. Afterwards, the electronic device 601 may perform authentication with the selected second external electronic device 640. For example, when the second external electronic device 640 is discovered only through the second communication protocol, the electronic device 601 may perform authentication through the second communication protocol.

또는, 전자 장치(601)가 제1 외부 전자 장치(630)에 대한 정보에 대응하는 사용자 입력을 식별하는 경우, 제1 외부 전자 장치(630)가 선택되었음을 식별할 수 있다. 이 후, 전자 장치(601)는 선택된 제1 외부 전자 장치(630)와 인증을 수행할 수 있다. 예를 들면, 제1 외부 전자 장치(630)가 제1 통신 프로토콜만을 통해 검색된 경우, 전자 장치(601)는 제1 통신 프로토콜을 통해 인증을 수행할 수 있다.Alternatively, when the electronic device 601 identifies a user input corresponding to information about the first external electronic device 630, it can be identified that the first external electronic device 630 has been selected. Afterwards, the electronic device 601 may perform authentication with the selected first external electronic device 630. For example, when the first external electronic device 630 is searched only through the first communication protocol, the electronic device 601 may perform authentication through the first communication protocol.

또는, 전자 장치(601)가 제3 외부 전자 장치(650)에 대한 정보에 대응하는 사용자 입력을 식별하는 경우, 제3 외부 전자 장치(650)가 선택되었음을 식별할 수 있다. 이 후, 전자 장치(601)는 선택된 제3 외부 전자 장치(650)와 인증을 수행할 수 있다. 예를 들면, 제3 외부 전자 장치(650)가 제1 통신 프로토콜 및 제2 통신 프로토콜 모두를 통해 검색된 경우, 전자 장치(601)는 제2 통신 프로토콜을 통해 인증을 수행할 수 있다.Alternatively, when the electronic device 601 identifies a user input corresponding to information about the third external electronic device 650, it can be identified that the third external electronic device 650 has been selected. Afterwards, the electronic device 601 can perform authentication with the selected third external electronic device 650. For example, when the third external electronic device 650 is discovered through both the first and second communication protocols, the electronic device 601 may perform authentication through the second communication protocol.

일 실시예에 따르면, 제1 외부 전자 장치(630), 제2 외부 전자 장치(640), 및 제3 외부 전자 장치(650) 각각이 검색된 통신 프로토콜(예: 제1 통신 프로토콜 및/또는 제2 통신 프로토콜)에 대한 정보는 사용자에게 표시되지 않을 수 있다. 전자 장치(601)는 사용자의 입력에 대응하여 식별된 외부 전자 장치에 대하여, 검색된 통신 프로토콜에 기반하여 인증을 수행할 수 있다. According to one embodiment, the first external electronic device 630, the second external electronic device 640, and the third external electronic device 650 each use the searched communication protocol (e.g., the first communication protocol and/or the second external electronic device 650). Information about the communication protocol) may not be displayed to the user. The electronic device 601 may perform authentication on the external electronic device identified in response to the user's input based on the searched communication protocol.

도 7은 동일한 네트워크(network)의 외부 전자 장치를 검색하는 방법에 대한 다른 예를 도시한다.Figure 7 shows another example of a method for searching for an external electronic device in the same network.

도 7은, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 제2 전자 장치(103)를 제1 통신 프로토콜을 통해 검색하고, 제2 전자 장치(103)가 제2 통신 프로토콜과 연결되었음을 식별함에 따라, 제2 통신 프로토콜을 통해 다시 검색하는 동작(710)에 대한 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 제1 전자 장치(101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 제1 전자 장치(101)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320) 및 통신 모듈(1390)에 의해 수행될 수 있다.7 shows that the first electronic device 101 searches for a second electronic device 103 connected to the same node as the node connected through the second communication protocol through the first communication protocol, and the second electronic device 103 is connected through the second communication protocol. As the electronic device 103 identifies that it is connected to the second communication protocol, an example of an operation 710 of searching again through the second communication protocol is shown. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device. The first electronic device 101 may include the electronic device 1301 of FIG. 13 . For example, an operation performed by the first electronic device 101 may be performed by the processor 1320 and the communication module 1390 of the electronic device 1301 of FIG. 13.

도 7을 참조하면, 제2 전자 장치(103)는 제1 전자 장치(101)와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 상태(700)일 수 있다. 예를 들어, 제2 전자 장치(103)는, 제2 통신 프로토콜에 기반한 노드와 연결될 수 있다. 제1 전자 장치(101)는 제2 통신 프로토콜에 기반한 상기 노드와 연결될 수 있다. 다시 말해서, 제1 전자 장치(101)와 제2 전자 장치(103)는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. Referring to FIG. 7 , the second electronic device 103 may be connected to the same node as the first electronic device 101 through a second communication protocol (700). For example, the second electronic device 103 may be connected to a node based on a second communication protocol. The first electronic device 101 may be connected to the node based on a second communication protocol. In other words, the first electronic device 101 and the second electronic device 103 may be connected to the LAN through the same node. The node may include a router or an access point (AP).

검색 동작(710)을 참조하면, 동작(711)에서, 제1 전자 장치(101)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제2 BLE 패킷을 포함할 수 있다. 상기 BLE 패킷의 수신 대기는, 상기 BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 또한, 동작(713)에서, 제2 전자 장치(103)는 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 BLE 패킷은, 제1 BLE 패킷을 포함할 수 있다. 이는, 본 개시에서, 제1 전자 장치(101)가 검색을 수행하고 있기 때문이다. 만약, 제2 전자 장치(103)가 검색을 수행하는 경우, 제1 전자 장치(101)는 제1 BLE 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 상기 제1 전자 장치(101)가 제2 BLE 패킷을 수신하기 위한 모니터링 및 상기 제2 전자 장치(103)가 제1 BLE 패킷을 수신하기 위한 모니터링은 제1 통신 프로토콜 스캔(scan)을 포함할 수 있다. 다시 말해서, 제1 전자 장치(101)가 제2 전자 장치(103)를 포함하는 적어도 하나의 외부 전자 장치를 스캐닝하고, 제2 전자 장치(103)도 제1 전자 장치(101)를 포함하는 적어도 하나의 다른 외부 전자 장치를 스캐닝할 수 있다. Referring to the search operation 710, in operation 711, the first electronic device 101 may wait to receive a BLE packet. The BLE packet may include a second BLE packet. Waiting to receive the BLE packet may indicate monitoring to receive the BLE packet. Additionally, in operation 713, the second electronic device 103 may wait to receive a BLE packet. The BLE packet may include a first BLE packet. This is because, in this disclosure, the first electronic device 101 is performing a search. If the second electronic device 103 performs a search, the first electronic device 101 may perform monitoring to receive the first BLE packet. Monitoring for the first electronic device 101 to receive the second BLE packet and monitoring for the second electronic device 103 to receive the first BLE packet may include a first communication protocol scan. there is. In other words, the first electronic device 101 scans at least one external electronic device including the second electronic device 103, and the second electronic device 103 also scans at least one external electronic device including the first electronic device 101. Can scan one other external electronic device.

또한, 도 7에서는, 동작(711)과 동작(713)이 검색 동작(710)에서 최초로(initial) 수행되는 것으로 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 BLE 패킷의 방송 이후(즉, 동작(715) 이후)에 제2 BLE 패킷의 수신을 위한 모니터링을 시작할 수 있다.Additionally, in FIG. 7, operations 711 and 713 are shown as being performed initially in the search operation 710, but the present disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second BLE packet after the broadcast of the first BLE packet (i.e., after operation 715).

동작(715)에서, 제1 전자 장치(101)는 제1 BLE 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로(communication circuit)를 통해 제1 BLE 패킷을 방송할 수 있다. 상기 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 715, the first electronic device 101 may transmit a first BLE packet. For example, the first electronic device 101 may broadcast the first BLE packet through a first communication circuit of the first electronic device 101. The first communication circuit may be a communication circuit for a first communication protocol. The first communication circuit may be included in the communication module 1390 of FIG. 13.

예를 들면, 제1 BLE 패킷은, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제1 BLE 패킷은 1비트 또는 2비트의 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제1 전자 장치(101)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the first BLE packet may include information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. For example, the first BLE packet may include 1 bit or 2 bits of information indicating whether the first electronic device 101 supports the second communication protocol or is connected to the second communication protocol. . For example, if it includes 1 bit of information, the first electronic device 101 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the first electronic device 101 If 101 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when containing 2 bits of information, if the first electronic device 101 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the first electronic device 101 is set to 01. If the electronic device 101 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 101 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(717)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제1 전자 장치(101)로부터 방송된 제1 BLE 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 BLE 패킷에 기반하여, 제1 전자 장치(101)가 제1 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 717, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101. For example, the second electronic device 103 may receive the first BLE packet broadcast from the first electronic device 101 through the first communication circuit of the second electronic device 103. Based on the received first BLE packet, the second electronic device 103 may identify that the first electronic device 101 is requesting a search through the first communication protocol.

제1 BLE 패킷의 수신에 응답하여, 동작(719)에서, 제2 전자 장치(101)는 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 LAN 패킷은 제1 LAN 패킷을 포함할 수 있다. 상기 LAN 패킷의 수신 대기는, 수신하기 위한 모니터링을 나타낼 수 있다. 동작(719)에서, 제2 전자 장치(103)는 L3(layer3) 소켓(socket) 연결을 위하여 대기할 수 있다. 상기 L3 소켓 연결은, 제2 통신 프로토콜에 기반하여, 데이터를 전송하기 위한 연결을 나타낼 수 있다. In response to receiving the first BLE packet, in operation 719, the second electronic device 101 may wait to receive a LAN packet. The LAN packet may include a first LAN packet. Waiting to receive the LAN packet may indicate monitoring for reception. In operation 719, the second electronic device 103 may wait for connection to an L3 (layer3) socket. The L3 socket connection may represent a connection for transmitting data based on a second communication protocol.

동작(721)에서, 제2 전자 장치(103)는 제1 BLE 패킷에 응답하여 제2 BLE 패킷을 전송할 수 있다. 예를 들어, 제2 전송 장치(103)는 제2 BLE 패킷을 방송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제1 통신 회로를 통해 제2 BLE 패킷을 방송할 수 있다. 상기 제2 전자 장치(103)의 제1 통신 회로는, 제1 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제1 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. In operation 721, the second electronic device 103 may transmit a second BLE packet in response to the first BLE packet. For example, the second transmission device 103 may broadcast a second BLE packet. For example, the second electronic device 103 may broadcast the second BLE packet through the first communication circuit of the second electronic device 103. The first communication circuit of the second electronic device 103 may be a communication circuit for a first communication protocol. The first communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

예를 들어, 상기 제2 BLE 패킷은, 제2 전자 장치(103)에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 제2 전자 장치(103)의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. For example, the second BLE packet may include terminal identifier information for the second electronic device 103. For example, the terminal identifier may include a unique identifier of the second electronic device 103 and information about the type of the electronic device.

예를 들면, 상기 제2 BLE 패킷은, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 제2 BLE 패킷은 1비트 또는 2비트의 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보는 1으로 구성될 수 있고, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하는 경우 상기 정보는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보는 01으로, 제2 전자 장치(103)가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보는 11의 값으로 구성될 수 있다.For example, the second BLE packet may include information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. For example, the second BLE packet may include 1 bit or 2 bits of information indicating whether the second electronic device 103 supports the second communication protocol or is connected to the second communication protocol. . For example, if it contains 1 bit of information, the second electronic device 103 supports the second communication protocol, or if connected to the second communication protocol, the information may consist of 1, and the second electronic device 103 If 103 does not support the second communication protocol or is not connected to the second communication protocol, the information may be configured with a value of 0. For example, when it contains 2 bits of information, if the second electronic device 103 supports the second communication protocol, the information is set to 00, if connected to the second communication protocol, the information is set to 01, and the second electronic device 103 supports the second communication protocol. If the electronic device 103 does not support the second communication protocol, the information may be configured as a value of 10, and if the electronic device 103 is not connected to the second communication protocol, the information may be configured as a value of 11.

동작(723)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 방송된 제2 BLE 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 BLE 패킷에 기반하여, 제2 전자 장치(103)가 제1 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 723, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103. For example, the first electronic device 101 may receive a second BLE packet broadcast from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through the first communication protocol, based on the received second BLE packet.

예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷의 수신에 따라, 제2 전자 장치(103)가 제1 전자 장치(101)와 동일한 노드(node)를 통해 제2 통신 프로토콜과 연결되었음을 식별할 수 있다. For example, upon reception of the second BLE packet, the first electronic device 101 connects the second electronic device 103 with the second communication protocol through the same node as the first electronic device 101. It can be identified that it has been done.

동작(725)에서, 제1 전자 장치(101)는 LAN 패킷을 수신하기 위한 모니터링을 수행할 수 있다. 도 7은 동작(725)이 동작(727) 보다 이전에 수행되는 것처럼 도시하나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 제1 전자 장치(101)는 제1 LAN 패킷의 방송 이후(즉, 동작(727) 이후)에 제2 LAN 패킷의 수신을 위한 모니터링을 시작할 수 있다.In operation 725, the first electronic device 101 may perform monitoring to receive LAN packets. Figure 7 shows operation 725 as being performed prior to operation 727, but the disclosure is not limited thereto. For example, the first electronic device 101 may start monitoring for reception of the second LAN packet after the broadcast of the first LAN packet (i.e., after operation 727).

제1 전자 장치(101)가 제2 BLE 패킷의 수신에 기반하여, 제2 전자 장치(103)가 제1 전자 장치(101)와 동일한 노드(node)를 통해 제2 통신 프로토콜과 연결되었음을 식별함에 응답하여, 동작(727)에서, 제1 전자 장치(101)는 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제2 통신 회로(communication circuit)를 통해 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 상기 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다. When the first electronic device 101 identifies, based on reception of the second BLE packet, that the second electronic device 103 is connected to the second communication protocol through the same node as the first electronic device 101, In response, at operation 727, the first electronic device 101 may transmit a first LAN packet. For example, the first electronic device 101 may transmit the first LAN packet through a second communication circuit of the first electronic device 101 through a multicast method. The second communication circuit may be a communication circuit for a second communication protocol. The second communication circuit may be included in the communication module 1390 of FIG. 13.

동작(729)에서, 제2 전자 장치(103)는 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제1 전자 장치(101)로부터 전송된 제1 LAN 패킷을 수신할 수 있다. 제2 전자 장치(103)는 수신된 제1 LAN 패킷에 기반하여, 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 검색을 요청하고 있음을 식별할 수 있다. In operation 729, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101. For example, the second electronic device 103 may receive the first LAN packet transmitted from the first electronic device 101 through the second communication circuit of the second electronic device 103. The second electronic device 103 may identify that the first electronic device 101 is requesting a search through a second communication protocol, based on the received first LAN packet.

동작(731)에서, 제2 전자 장치(103)는 제1 LAN 패킷에 응답하여 제2 LAN 패킷을 전송할 수 있다. 예를 들어, 제2 전자 장치(103)는 제2 전자 장치(103)의 제2 통신 회로를 통해 제2 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 상기 제2 전자 장치(103)의 제2 통신 회로는, 제2 통신 프로토콜을 위한 통신 회로일 수 있다. 상기 제2 전자 장치(103)의 상기 제2 통신 회로는 도 13의 통신 모듈(1390)에 포함될 수 있다.In operation 731, the second electronic device 103 may transmit a second LAN packet in response to the first LAN packet. For example, the second electronic device 103 may transmit the second LAN packet through the second communication circuit of the second electronic device 103 through a multicast method. The second communication circuit of the second electronic device 103 may be a communication circuit for a second communication protocol. The second communication circuit of the second electronic device 103 may be included in the communication module 1390 of FIG. 13.

동작(733)에서, 제1 전자 장치(101)는 제2 전자 장치(103)으로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 전자 장치(101)의 제1 통신 회로를 통해 제2 전자 장치(103)로부터 전송된 제2 LAN 패킷을 수신할 수 있다. 제1 전자 장치(101)는, 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)가 제2 통신 프로토콜을 통한 검색의 요청에 대하여 응답하고 있음을 식별할 수 있다. In operation 733, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103. For example, the first electronic device 101 may receive a second LAN packet transmitted from the second electronic device 103 through the first communication circuit of the first electronic device 101. The first electronic device 101 may identify that the second electronic device 103 is responding to a search request through a second communication protocol, based on the received second LAN packet.

도 7에서는 도시하지 않았으나, 제1 전자 장치(101)는 제2 통신 프로토콜을 통한 검색 결과에 대한 리스트(list)를 획득할 수 있다. 예를 들어, 제1 전자 장치(101)는 수신된 제2 LAN 패킷에 기반하여, 제2 전자 장치(103)를 식별할 수 있고, 제2 전자 장치(103)를 제2 통신 프로토콜을 통한 검색 결과 리스트에 추가할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 BLE 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자와 제2 LAN 패킷에 포함된 제2 전자 장치(103)를 지시하기 위한 식별자가 동일한지 여부를 식별함으로써, 제2 BLE 패킷을 전송한 외부 전자 장치와 제2 LAN 패킷을 전송한 외부 전자 장치가 동일한 전자 장치(즉, 제2 전자 장치(103))임을 식별할 수 있다. 이 후, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통한 검색의 결과를 표시할 수 있다. 예를 들어, 제1 전자 장치(101)는 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해 검색된 제2 전자 장치(103)를 디스플레이를 통해 표시할 수 있다. 상기 검색의 결과는, 제2 전자 장치(103)를 포함하는 외부 전자 장치들을 포함할 수 있다. 또는, 상기 검색의 결과는, 제2 전자 장치(103)만 포함할 수 있다. 또는, 상기 검색의 결과는, 어떠한 외부 전자 장치도 포함하지 않을 수 있다. 즉, 제1 전자 장치(101)가 제1 통신 프로토콜 또는 제2 통신 프로토콜을 통해 어떠한 외부 전자 장치도 검색하지 못하였을 수도 있다. 또한, 제1 전자 장치(101)는, 검색된 전자 장치에 대한 사용자의 입력을 수신할 수 있다. 예를 들어, 제1 전자 장치(101)는 디스플레이를 통해 검색된 적어도 하나의 전자 장치를 표시할 수 있고, 표시된 적어도 하나의 전자 장치에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있다. 제1 전자 장치(101)는 사용자의 입력에 따라, 선택된 전자 장치를 식별할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)에 대한 정보에 대응하는 사용자의 입력을 수신할 수 있고, 이에 따라, 제2 전자 장치(103)를 식별할 수 있다.Although not shown in FIG. 7, the first electronic device 101 may obtain a list of search results through the second communication protocol. For example, the first electronic device 101 may identify the second electronic device 103 based on the received second LAN packet and search for the second electronic device 103 through the second communication protocol. It can be added to the result list. For example, the first electronic device 101 has an identifier for indicating the second electronic device 103 included in the second BLE packet and an identifier for indicating the second electronic device 103 included in the second LAN packet. By identifying whether the identifier is the same, it can be identified that the external electronic device that transmitted the second BLE packet and the external electronic device that transmitted the second LAN packet are the same electronic device (i.e., the second electronic device 103). . Afterwards, the first electronic device 101 may display the results of the search through the first communication protocol and the second communication protocol. For example, the first electronic device 101 may display the second electronic device 103 searched through the first communication protocol and the second communication protocol on the display. The results of the search may include external electronic devices including the second electronic device 103. Alternatively, the search results may include only the second electronic device 103. Alternatively, the search results may not include any external electronic devices. That is, the first electronic device 101 may not have been able to search for any external electronic device through the first or second communication protocol. Additionally, the first electronic device 101 may receive a user's input regarding the searched electronic device. For example, the first electronic device 101 may display at least one searched electronic device through the display and receive a user's input corresponding to information about the at least one displayed electronic device. The first electronic device 101 may identify the selected electronic device according to the user's input. For example, the first electronic device 101 may receive a user's input corresponding to information about the second electronic device 103 and, accordingly, identify the second electronic device 103.

도 7에서는, 도 4 내지 도 5b와 달리, 제1 전자 장치(101)(또는 전자 장치)는 먼저 제1 통신 프로토콜을 통해 제2 전자 장치(103)(또는 외부 전자 장치)를 식별할 수 있다. 이 때, 제1 통신 프로토콜을 통한 검색 동작에서 수신된 응답 패킷에 기반하여, 제1 전자 장치(101)는 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 전자 장치(103)가 제2 통신 프로토콜을 통해 연결되었음을 식별할 수 있다. 이에 응답하여, 제1 전자 장치(101)는 제2 통신 프로토콜을 통해 제2 전자 장치(103)를 검색할 수 있다. 이 때, 제1 전자 장치(101)는 제2 통신 프로토콜과 관련된 응답 패킷의 정보에 기반하여 제2 전자 장치(103)를 식별할 수 있다. 식별된 제2 전자 장치(103)는 제1 전자 장치(101)의 디스플레이를 통해 표시될 수 있다.In FIG. 7 , unlike FIGS. 4 to 5B, the first electronic device 101 (or electronic device) may first identify the second electronic device 103 (or external electronic device) through the first communication protocol. . At this time, based on the response packet received in the search operation through the first communication protocol, the first electronic device 101 sends the second message to the same node as the node to which the first electronic device 101 is connected through the second communication protocol. It can be identified that the electronic device 103 is connected through a second communication protocol. In response, the first electronic device 101 can search for the second electronic device 103 through the second communication protocol. At this time, the first electronic device 101 may identify the second electronic device 103 based on information in the response packet related to the second communication protocol. The identified second electronic device 103 may be displayed through the display of the first electronic device 101.

상술한 바에 따르면, 전자 장치(예: 제1 전자 장치(101))는 전력 효율이 우수한 제1 통신 프로토콜을 통해 먼저 적어도 하나의 외부 전자 장치를 검색할 수 있다. 이 때, 제1 통신 프로토콜을 위한 패킷(예: 제1 BLE 패킷 및 제2 BLE 패킷)에 기반하여, 검색된 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 지원하며 상기 전자 장치와 동일한 노드(node)를 통해 연결되었음을 식별할 수 있다. 이에 따라, 상기 전자 장치는, 제2 통신 프로토콜을 통해 적어도 하나의 외부 전자 장치를 다시 검색할 수 있다. 검색된 적어도 하나의 외부 전자 장치와 제2 통신 프로토콜을 통한 인증을 수행함으로써, 상기 전자 장치는 효과적으로 데이터의 전송을 위한 연결을 수행할 수 있다. 즉, 상술한 방법을 통해 검색함으로써, 상기 전자 장치는, 전력 소모를 줄이면서 외부 전자 장치를 검색하기 위한 대기 시간을 줄일 수 있다. According to the above description, an electronic device (eg, the first electronic device 101) can first search for at least one external electronic device through a first communication protocol with excellent power efficiency. At this time, based on the packet for the first communication protocol (e.g., the first BLE packet and the second BLE packet), the searched at least one external electronic device supports the second communication protocol and has the same node as the electronic device. ) can be used to identify the connection. Accordingly, the electronic device can search for at least one external electronic device again through the second communication protocol. By performing authentication with the searched at least one external electronic device through a second communication protocol, the electronic device can effectively establish a connection for data transmission. That is, by searching through the above-described method, the electronic device can reduce power consumption and wait time for searching an external electronic device.

도 8a는 제1 통신 프로토콜에 따른 패킷의 구조에 대한 예들을 도시한다.FIG. 8A shows examples of the structure of a packet according to a first communication protocol.

상기 제1 통신 프로토콜은, BLE를 포함할 수 있다. 상기 제1 통신 프로토콜에 따른 패킷은, 상기 제1 통신 프로토콜을 통해 연결을 요청하기 위한 패킷 및 상기 제1 통신 프로토콜을 통한 연결의 요청에 대하여 응답하기 위한 패킷을 포함할 수 있다. 상기 제1 통신 프로토콜을 통해 연결을 요청하기 위한 패킷은 제1 BLE 패킷을 포함할 수 있다. 상기 제1 통신 프로토콜을 통한 연결의 요청에 응답하기 위한 패킷은 제2 BLE 패킷을 포함할 수 있다.The first communication protocol may include BLE. A packet according to the first communication protocol may include a packet for requesting a connection through the first communication protocol and a packet for responding to a request for a connection through the first communication protocol. A packet for requesting a connection through the first communication protocol may include a first BLE packet. A packet for responding to a request for connection through the first communication protocol may include a second BLE packet.

도 8a는 제1 BLE 패킷(800)의 구조 및 제2 BLE 패킷(820)의 구조의 예를 도시한다. 도 8a의 제1 BLE 패킷(800)의 구조 및 제2 BLE 패킷(820)의 구조 각각은, 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 BLE 패킷 및 제2 BLE 패킷에 대한 예를 나타낼 수 있다. 따라서, 도 8a의 제1 BLE 패킷(800)의 구조 및 제2 BLE 패킷(820)의 구조에 대한 설명은 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 BLE 패킷 및 제2 BLE 패킷에 대하여 모두 적용될 수 있다. 또한, 제1 BLE 패킷(800)의 구조 및 제2 BLE 패킷(820)의 구조는, 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 BLE 패킷 및 제2 BLE 패킷에 대한 예라고 지칭하였으나, 이와 동일하게 이해될 수 있는 패킷에 대하여도 모두 적용될 수 있다.FIG. 8A shows an example of the structure of the first BLE packet 800 and the structure of the second BLE packet 820. The structure of the first BLE packet 800 and the second BLE packet 820 in FIG. 8A are respectively similar to the first BLE packet and the second BLE packet disclosed in FIGS. 3A to 7, 12A, and 12B. An example can be given. Accordingly, the description of the structure of the first BLE packet 800 and the second BLE packet 820 in FIG. 8A is the first and second BLE packets disclosed in FIGS. 3A to 7, 12A, and 12B. It can be applied to all BLE packets. In addition, the structure of the first BLE packet 800 and the structure of the second BLE packet 820 are examples of the first BLE packet and the second BLE packet disclosed in FIGS. 3A to 7, 12A, and 12B. Although it is referred to as, it can also be applied to packets that can be understood in the same way.

예를 들면, 제1 BLE 패킷(800)은 서비스 정보(803), 패킷의 종류(806), 전자 장치의 고유 식별자(809), 전자 장치의 종류(812), 및 LAN 지원/연결 여부에 대한 정보(815)를 포함할 수 있다. For example, the first BLE packet 800 includes service information 803, packet type 806, unique identifier of the electronic device 809, type of electronic device 812, and whether LAN is supported/connected. May include information 815.

상기 서비스 정보(803)는 D2D 연결을 통해 데이터를 공유하기 위한 서비스인 퀵 쉐어(quick share)를 포함할 수 있다. 상기 패킷의 종류(806)는 제1 BLE 패킷(800)이 요청 패킷(request packet)임을 지시하는 정보를 나타낼 수 있다. 상기 전자 장치의 고유 식별자(809)는 상기 제1 BLE 패킷(800)을 방송하는 전자 장치(예: 도 4의 제1 전자 장치(101))를 지시하기 위한 식별자를 포함할 수 있다. 상기 전자 장치의 종류(812)는 상기 제1 BLE 패킷(800)을 방송하는 전자 장치의 종류를 나타낼 수 있다. 예를 들면, 상기 전자 장치의 종류(812)는 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 예를 들어, 단말 식별자는 상기 전자 장치의 고유 식별자(809)와 상기 전자 장치의 종류(806)에 대한 정보를 포함할 수 있다. The service information 803 may include quick share, a service for sharing data through D2D connection. The packet type 806 may indicate information indicating that the first BLE packet 800 is a request packet. The unique identifier 809 of the electronic device may include an identifier indicating the electronic device broadcasting the first BLE packet 800 (eg, the first electronic device 101 in FIG. 4). The type of electronic device 812 may indicate the type of electronic device broadcasting the first BLE packet 800. For example, the type of electronic device 812 may include a portable communication device (eg, a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. For example, the terminal identifier may include a unique identifier 809 of the electronic device and information about the type 806 of the electronic device.

상기 LAN 지원/연결 여부에 대한 정보(815)는 상기 제1 BLE 패킷(800)을 방송하는 전자 장치의 제2 통신 프로토콜의 지원 또는 연결 여부에 대한 정보를 포함할 수 있다. 예를 들면, 상기 제2 통신 프로토콜의 지원 또는 연결 여부에 대한 정보(815)는 1비트 또는 2비트를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제1 BLE 패킷(800)을 방송하는 전자 장치가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보(815)는 1으로 구성될 수 있고, 상기 전자 장치가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보(815)는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 상기 전자 장치가 제2 통신 프로토콜을 지원하는 경우 상기 정보(815)는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보(815)는 01으로, 상기 전자 장치가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보(815)는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보(815)는 11의 값으로 구성될 수 있다.The information 815 about whether the LAN is supported/connected may include information about whether the electronic device broadcasting the first BLE packet 800 supports or connects to the second communication protocol. For example, information 815 about whether the second communication protocol is supported or connected may include 1 bit or 2 bits. For example, if it contains 1 bit of information, the electronic device broadcasting the first BLE packet 800 supports the second communication protocol, or if connected to the second communication protocol, the information 815 is configured as 1. If the electronic device does not support the second communication protocol or is not connected to the second communication protocol, the information 815 may be configured with a value of 0. For example, when containing 2 bits of information, if the electronic device supports a second communication protocol, the information 815 is set to 00, and if connected to the second communication protocol, the information 815 is set to 01. If the electronic device does not support the second communication protocol, the information 815 may be configured as a value of 10, and if the electronic device is not connected to the second communication protocol, the information 815 may be configured as a value of 11.

예를 들면, 제2 BLE 패킷(820)은 서비스 정보(823), 패킷의 종류(826), 전자 장치의 고유 식별자(829), 전자 장치의 종류(832), LAN 지원/연결 여부에 대한 정보(835), 전자 장치의 이름에 대한 정보(838)를 포함할 수 있다. For example, the second BLE packet 820 includes service information 823, packet type 826, unique identifier of the electronic device 829, type of electronic device 832, and information on whether LAN is supported/connected. (835), and may include information (838) about the name of the electronic device.

상기 서비스 정보(823)는 D2D 연결을 통해 데이터를 공유하기 위한 서비스인 퀵 쉐어(quick share)를 포함할 수 있다. 상기 패킷의 종류(826)는 제2 BLE 패킷(820)이 응답 패킷(response packet)임을 지시하는 정보를 나타낼 수 있다. 상기 전자 장치의 고유 식별자(829)는 상기 제2 BLE 패킷(820)을 방송하는 전자 장치(예: 도 4의 제2 전자 장치(103))를 지시하기 위한 식별자를 포함할 수 있다. 상기 전자 장치의 종류(832)는 상기 제2 BLE 패킷(820)을 방송하는 전자 장치의 종류를 나타낼 수 있다. 예를 들면, 상기 전자 장치의 종류(832)는 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 예를 들면, 상기 전자 장치의 이름에 대한 정보(838)는, 사용자에 의해 설정될 수 있다. 설정되지 않은 경우, 상기 전자 장치의 이름에 대한 정보(838)는 상기 전자 장치의 제품 명칭으로 설정될 수 있다. 예를 들어, 단말 식별자는 상기 전자 장치의 고유 식별자(829)와 상기 전자 장치의 종류(832)에 대한 정보를 포함할 수 있다. The service information 823 may include quick share, a service for sharing data through D2D connection. The packet type 826 may indicate information indicating that the second BLE packet 820 is a response packet. The unique identifier 829 of the electronic device may include an identifier indicating the electronic device broadcasting the second BLE packet 820 (eg, the second electronic device 103 in FIG. 4). The type of electronic device 832 may indicate the type of electronic device broadcasting the second BLE packet 820. For example, the type of electronic device 832 may include a portable communication device (eg, a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. For example, information 838 about the name of the electronic device may be set by the user. If not set, the information 838 about the name of the electronic device may be set as the product name of the electronic device. For example, the terminal identifier may include a unique identifier 829 of the electronic device and information about the type 832 of the electronic device.

상기 LAN 지원/연결 여부에 대한 정보(835)는 상기 제2 BLE 패킷(820)을 방송하는 전자 장치의 제2 통신 프로토콜의 지원 또는 연결 여부에 대한 정보를 포함할 수 있다. 예를 들면, 상기 제2 통신 프로토콜의 지원 또는 연결 여부에 대한 정보(835)는 1비트 또는 2비트를 포함할 수 있다. 예를 들어, 1비트의 정보를 포함하는 경우, 제2 BLE 패킷(820)을 방송하는 전자 장치가 제2 통신 프로토콜을 지원하거나, 제2 통신 프로토콜에 연결된 경우 상기 정보(835)는 1으로 구성될 수 있고, 상기 전자 장치가 제2 통신 프로토콜을 지원하지 않거나, 제2 통신 프로토콜에 연결되지 않은 경우, 상기 정보(835)는 0의 값으로 구성될 수 있다. 예를 들어, 2비트의 정보를 포함하는 경우, 상기 전자 장치가 제2 통신 프로토콜을 지원하는 경우 상기 정보(835)는 00으로, 제2 통신 프로토콜에 연결된 경우 상기 정보(835)는 01으로, 상기 전자 장치가 제2 통신 프로토콜을 지원하지 않는 경우 상기 정보(835)는 10으로, 제2 통신 프로토콜에 연결되지 않은 경우 상기 정보(835)는 11의 값으로 구성될 수 있다.The information 835 about whether the LAN is supported/connected may include information about whether the electronic device broadcasting the second BLE packet 820 supports or connects to a second communication protocol. For example, information 835 about whether the second communication protocol is supported or connected may include 1 bit or 2 bits. For example, if it contains 1 bit of information, the electronic device broadcasting the second BLE packet 820 supports the second communication protocol, or if connected to the second communication protocol, the information 835 is configured as 1. If the electronic device does not support the second communication protocol or is not connected to the second communication protocol, the information 835 may be configured with a value of 0. For example, when containing 2 bits of information, if the electronic device supports a second communication protocol, the information 835 is set to 00, and if connected to the second communication protocol, the information 835 is set to 01. If the electronic device does not support the second communication protocol, the information 835 may be configured as a value of 10, and if the electronic device is not connected to the second communication protocol, the information 835 may be configured as a value of 11.

상술한 바를 참조하면, 전자 장치는 제1 BLE 패킷(800)의 구조에 기반하여 제1 BLE 패킷(800)인지 여부를 식별할 수 있다. 또한, 전자 장치는 제2 BLE 패킷(820)의 구조에 기반하여, 제2 BLE 패킷(820)인지 여부를 식별할 수 있다. 도 8a에서 도시하지 않았으나, 제1 BLE 패킷(800) 또는 제2 BLE 패킷(820)은 제1 통신 프로토콜을 위한 패킷임을 식별하기 위한 정보를 포함할 수 있다. 이에 기반하여, 전자 장치는, 제1 통신 프로토콜을 통한 검색 동작에 있어서, 제1 BLE 패킷(800) 또는 제2 BLE 패킷(820)임을 식별할 수 있다.Referring to the above, the electronic device can identify whether it is the first BLE packet 800 based on the structure of the first BLE packet 800. Additionally, the electronic device can identify whether it is a second BLE packet 820 based on the structure of the second BLE packet 820. Although not shown in FIG. 8A, the first BLE packet 800 or the second BLE packet 820 may include information to identify that it is a packet for the first communication protocol. Based on this, the electronic device can identify the first BLE packet 800 or the second BLE packet 820 during a search operation through the first communication protocol.

도 8b는 제2 통신 프로토콜에 따른 패킷의 구조에 대한 예들을 도시한다.Figure 8b shows examples of the structure of a packet according to a second communication protocol.

상기 제2 통신 프로토콜은, LAN을 포함할 수 있다. 상기 제2 통신 프로토콜에 따른 패킷은, 상기 제2 통신 프로토콜을 통해 연결을 요청하기 위한 패킷 및 상기 제2 통신 프로토콜을 통한 연결의 요청에 대하여 응답하기 위한 패킷을 포함할 수 있다. 상기 제2 통신 프로토콜을 통해 연결을 요청하기 위한 패킷은 제1 LAN 패킷을 포함할 수 있다. 상기 제2 통신 프로토콜을 통한 연결의 요청에 응답하기 위한 패킷은 제2 LAN 패킷을 포함할 수 있다.The second communication protocol may include LAN. The packet according to the second communication protocol may include a packet for requesting a connection through the second communication protocol and a packet for responding to a request for connection through the second communication protocol. A packet for requesting a connection through the second communication protocol may include a first LAN packet. A packet for responding to a request for connection through the second communication protocol may include a second LAN packet.

도 8b는 제1 LAN 패킷(840)의 구조 및 제2 LAN 패킷(860)의 구조의 예를 도시한다. 도 8b의 제1 LAN 패킷(840)의 구조 및 제2 LAN 패킷(860)의 구조 각각은, 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 LAN 패킷 및 제2 LAN 패킷에 대한 예를 나타낼 수 있다. 따라서, 도 8b의 제1 LAN 패킷(840)의 구조 및 제2 LAN 패킷(860)의 구조에 대한 설명은 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 LAN 패킷 및 제2 LAN 패킷에 대하여 모두 적용될 수 있다. 또한, 제1 LAN 패킷(840)의 구조 및 제2 LAN 패킷(860)의 구조는, 도 3a 내지 도 7, 도 12a, 및 도 12b에서 개시되는 제1 LAN 패킷 및 제2 LAN 패킷에 대한 예라고 지칭하였으나, 이와 동일하게 이해될 수 있는 패킷에 대하여도 모두 적용될 수 있다.FIG. 8B shows examples of the structure of the first LAN packet 840 and the structure of the second LAN packet 860. The structure of the first LAN packet 840 and the second LAN packet 860 in FIG. 8B are respectively similar to the first and second LAN packets shown in FIGS. 3A to 7, 12A, and 12B. An example can be given. Accordingly, the description of the structure of the first LAN packet 840 and the second LAN packet 860 in FIG. 8B includes the first and second LAN packets disclosed in FIGS. 3A to 7, 12A, and 12B. It can be applied to all LAN packets. In addition, the structure of the first LAN packet 840 and the structure of the second LAN packet 860 are examples of the first LAN packet and the second LAN packet disclosed in FIGS. 3A to 7, 12A, and 12B. Although it is referred to as, it can also be applied to packets that can be understood in the same way.

예를 들면, 제1 LAN 패킷(840)은 서비스 정보(843) 및 패킷의 종류(846)를 포함할 수 있다. 상기 서비스 정보(843)는 D2D 연결을 통해 데이터를 공유하기 위한 서비스인 퀵 쉐어(quick share)를 포함할 수 있다. 상기 패킷의 종류(846)는 제1 LAN 패킷(840)이 요청 패킷(request packet)임을 지시하는 정보를 나타낼 수 있다. For example, the first LAN packet 840 may include service information 843 and packet type 846. The service information 843 may include quick share, a service for sharing data through D2D connection. The packet type 846 may indicate information indicating that the first LAN packet 840 is a request packet.

예를 들면, 제2 LAN 패킷(860)은 서비스 정보(863), 패킷의 종류(866), 단말 식별자(869), 및 전자 장치의 이름에 대한 정보(872)를 포함할 수 있다. 상기 서비스 정보(863)는 D2D 연결을 통해 데이터를 공유하기 위한 서비스인 퀵 쉐어(quick share)를 포함할 수 있다. 상기 패킷의 종류(866)는 제2 LAN 패킷(860)이 응답 패킷(response packet)임을 지시하는 정보를 나타낼 수 있다. 상기 단말 식별자(869)는 상기 제2 LAN 패킷(860)을 방송하는 전자 장치(예: 도 4의 제2 전자 장치(103))를 지시하기 위한 식별자를 포함할 수 있다. 예를 들면, 상기 전자 장치의 이름에 대한 정보(872)는, 사용자에 의해 설정될 수 있다. 설정되지 않은 경우, 상기 전자 장치의 이름에 대한 정보(875)는 상기 전자 장치의 제품 명칭으로 설정될 수 있다. For example, the second LAN packet 860 may include service information 863, packet type 866, terminal identifier 869, and information 872 about the name of the electronic device. The service information 863 may include quick share, a service for sharing data through D2D connection. The packet type 866 may indicate information indicating that the second LAN packet 860 is a response packet. The terminal identifier 869 may include an identifier indicating an electronic device (eg, the second electronic device 103 in FIG. 4) broadcasting the second LAN packet 860. For example, information 872 about the name of the electronic device may be set by the user. If not set, information 875 about the name of the electronic device may be set as the product name of the electronic device.

상술한 바를 참조하면, 전자 장치는 제1 LAN 패킷(840)의 구조에 기반하여 제1 LAN 패킷(840)인지 여부를 식별할 수 있다. 또한, 전자 장치는 제2 LAN 패킷(860)의 구조에 기반하여, 제2 LAN 패킷(860)인지 여부를 식별할 수 있다. 도 8b에서 도시하지 않았으나, 제1 LAN 패킷(840) 또는 제2 LAN 패킷(860)은 제2 통신 프로토콜을 위한 패킷임을 식별하기 위한 정보를 포함할 수 있다. 이에 기반하여, 전자 장치는, 제2 통신 프로토콜을 통한 검색 동작에 있어서, 제1 LAN 패킷(840) 또는 제2 LAN 패킷(860)임을 식별할 수 있다.Referring to the above, the electronic device can identify whether it is the first LAN packet 840 based on the structure of the first LAN packet 840. Additionally, the electronic device can identify whether it is a second LAN packet 860 based on the structure of the second LAN packet 860. Although not shown in FIG. 8B, the first LAN packet 840 or the second LAN packet 860 may include information to identify that it is a packet for the second communication protocol. Based on this, the electronic device can identify the first LAN packet 840 or the second LAN packet 860 during a search operation through the second communication protocol.

도 9a는 동일한 네트워크(network)의 검색된 외부 전자 장치와 제1 통신 프로토콜(communication protocol)을 통해 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.FIG. 9A shows an example of a method of performing authentication and transmission through a first communication protocol with a searched external electronic device of the same network.

도 9a는, 제2 전자 장치(103)가 제2 통신 프로토콜을 통해 검색되지 않은 외부 전자 장치인 경우, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜을 이용하여 인증 및 전송을 수행하는 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. Figure 9a shows that when the second electronic device 103 is an external electronic device that has not been searched through the second communication protocol, the first electronic device 101 uses the first communication protocol with the second electronic device 103. An example of performing authentication and transmission is shown. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device.

도 9a를 참조하면, 제1 전자 장치(101)는 검색된 제2 전자 장치(103)와 인증 동작(940-1) 및 데이터 전송 동작(970-1)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자하는 파일(file), 또는 정보(information)를 포함할 수 있다. Referring to FIG. 9A, the first electronic device 101 may perform an authentication operation 940-1 and a data transmission operation 970-1 with the searched second electronic device 103. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

인증 동작(940-1)을 참고하면, 동작(941)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 제1 통신 프로토콜 연결을 수행할 수 있다. 상기 제1 통신 프로토콜 연결은 제1 전자 장치(101)와 제2 전자 장치(103)가 서로의 유효성(validation)을 검증하기 위한 연결일 수 있다. 예를 들어, 상기 제1 통신 프로토콜 연결은 BLE 연결을 포함할 수 있다. Referring to the authentication operation 940-1, in operation 941, the first electronic device 101 and the second electronic device 103 may perform a first communication protocol connection. The first communication protocol connection may be a connection for the first electronic device 101 and the second electronic device 103 to verify each other's validity. For example, the first communication protocol connection may include a BLE connection.

제1 통신 프로토콜 연결 후, 동작(943)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 상호 유효성 검증을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷에 기반하여 제2 전자 장치(103)의 유효성 검증을 수행할 수 있다. 또한, 제2 전자 장치(103)는 제1 BLE 패킷에 기반하여 제1 전자 장치(101)의 유효성 검증을 수행할 수 있다. After connecting the first communication protocol, in operation 943, the first electronic device 101 and the second electronic device 103 may perform mutual validation. For example, the first electronic device 101 may perform validation of the second electronic device 103 based on the second BLE packet. Additionally, the second electronic device 103 may perform validation of the first electronic device 101 based on the first BLE packet.

동작(945)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 크리덴셜(credential) 교환을 수행할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2(layer 2) 연결을 위한 크리덴셜 교환을 수행할 수 있다. 상기 크리덴셜은, L2 연결을 위한 보안과 관련된 정보를 포함할 수 있다. 이 후, 동작(947)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜 연결을 해제할 수 있다. In operation 945, the first electronic device 101 may exchange credentials with the second electronic device 103. For example, the first electronic device 101 may perform credential exchange for L2 (layer 2) connection with the second electronic device 103. The credentials may include information related to security for L2 connection. Afterwards, in operation 947, the first electronic device 101 may release the first communication protocol connection with the second electronic device 103.

데이터 전송 동작(970-1)을 참고하면, 동작(971)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2 연결을 수행할 수 있다. 예를 들어, 상기 L2 연결은 L2 연결을 위한 크리덴셜에 기반한 Wi-Fi-direct(wireless fidelity-direct) 또는 Wi-Fi-aware(또는 NAN(neighbor awareness networking)) 연결을 포함할 수 있다. 동작(973)에서, 제1 전자 장치(101)는 L2 연결을 통해 제2 전자 장치(103)에게 데이터를 전송할 수 있다.Referring to the data transmission operation 970-1, in operation 971, the first electronic device 101 may perform L2 connection with the second electronic device 103. For example, the L2 connection may include a Wi-Fi-direct (wireless fidelity-direct) or Wi-Fi-aware (or NAN (neighbor awareness networking)) connection based on credentials for the L2 connection. In operation 973, the first electronic device 101 may transmit data to the second electronic device 103 through an L2 connection.

상술한 바를 참조하면, 전자 장치는, 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하고, 검색된 외부 전자 장치와 인증 후 제1 통신 프로토콜 연결을 해제하고, 다시 L2 연결을 수행하여 데이터를 전송할 수 있다. 전자 장치가 외부 전자 장치를 검색하는 동작에서, 전자 장치 또는 외부 전자 장치의 모니터링을 위한 전력 소모가 높아, 제1 통신 연결 프로토콜을 통한 검색이 수행될 수 있다. 이 후, 제1 통신 프로토콜을 통해 인증 절차를 수행하고, 전자 장치는 외부 전자 장치와 데이터 전송을 위하여 D2D(device to device) 연결(예: 상기 L2 연결)을 다시 수행하고, 연결된 이후 데이터 전송을 수행할 수 있다.Referring to the above, the electronic device searches for an external electronic device through a first communication protocol, authenticates with the searched external electronic device, releases the first communication protocol connection, and performs an L2 connection again to transmit data. . When an electronic device searches for an external electronic device, power consumption for monitoring the electronic device or the external electronic device is high, so a search may be performed through the first communication connection protocol. Afterwards, an authentication procedure is performed through the first communication protocol, the electronic device performs a D2D (device to device) connection (e.g., the L2 connection) again to transmit data with an external electronic device, and data transmission is performed after connection. It can be done.

도 9b는 동일한 네트워크(network)의 검색된 외부 전자 장치와 제2 통신 프로토콜(communication protocol)을 통해 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.FIG. 9B shows an example of a method of performing authentication and transmission through a second communication protocol with a searched external electronic device of the same network.

도 9b는, 제2 전자 장치(103)가 제2 통신 프로토콜을 통해 검색된 외부 전자 장치인 경우, 제1 전자 장치(101)는 제2 전자 장치(103)와 제2 통신 프로토콜을 이용하여 인증 및 전송을 수행하는 예를 도시한다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다. 9B shows that when the second electronic device 103 is an external electronic device discovered through a second communication protocol, the first electronic device 101 authenticates and performs authentication and authentication with the second electronic device 103 using the second communication protocol. An example of performing transmission is shown. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device.

도 9b를 참조하면, 제2 전자 장치(103)는 제1 전자 장치(101)가 제2 통신 프로토콜을 통해 연결된 노드와 동일한 노드에 제2 통신 프로토콜을 통해 연결된 상태(900)일 수 있다. 예를 들어, 제2 전자 장치(103)는, 제2 통신 프로토콜에 기반한 노드와 연결될 수 있다. 제1 전자 장치(101)는 제2 통신 프로토콜에 기반한 상기 노드와 연결될 수 있다. 다시 말해서, 제1 전자 장치(101)와 제2 전자 장치(103)는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. Referring to FIG. 9B, the second electronic device 103 may be connected (900) through a second communication protocol to the same node as the node to which the first electronic device 101 is connected through the second communication protocol. For example, the second electronic device 103 may be connected to a node based on a second communication protocol. The first electronic device 101 may be connected to the node based on a second communication protocol. In other words, the first electronic device 101 and the second electronic device 103 may be connected to the LAN through the same node. The node may include a router or an access point (AP).

도 9b를 참조하면, 제1 전자 장치(101)는 검색된 제2 전자 장치(103)와 인증 동작(940-2) 및 데이터 전송 동작(970-2)을 수행할 수 있다. 이에 따라, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터(data)를 전송할 수 있다. 여기서, 데이터는 제1 전자 장치(101)가 제2 전자 장치(103)에게 전송하고자하는 파일(file), 또는 정보(information)를 포함할 수 있다.Referring to FIG. 9B, the first electronic device 101 may perform an authentication operation 940-2 and a data transmission operation 970-2 with the searched second electronic device 103. Accordingly, the first electronic device 101 can transmit data to the second electronic device 103. Here, the data may include a file or information that the first electronic device 101 wants to transmit to the second electronic device 103.

인증 동작(940-2)을 참고하면, 동작(942)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 인증을 위한 L3(layer 3) 소켓(socket) 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. 상기 L3 소켓 연결은 제1 전자 장치(101)와 제2 전자 장치(103)가 서로의 유효성(validation)을 검증하기 위한 연결일 수 있다. Referring to the authentication operation 940-2, in operation 942, the first electronic device 101 and the second electronic device 103 may perform L3 (layer 3) socket connection for authentication. there is. For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. The L3 socket connection may be a connection for the first electronic device 101 and the second electronic device 103 to verify each other's validity.

동작(944)에서, 제1 전자 장치(101)는, 제2 전자 장치(103)와 상호 유효성을 검증할 수 있다. 예를 들어, L3 소켓 연결인 성공한 경우, 제1 전자 장치(101)는 제2 전자 장치(103)로부터 수신한 응답 패킷(예: 제2 LAN 패킷)에 포함되는 제2 전자 장치(103)의 고유 식별자와 L3 연결을 통해 수신한 제2 전자 장치(103)의 고유 식별자를 비교함으로써, 유효성을 검증할 수 있다. 예를 들면, 제2 전자 장치(103)는, 제1 전자 장치(101)로부터 수신한 요청 패킷(예: 제1 LAN 패킷)에 포함되는 제1 전자 장치(101)의 고유 식별자와 L3 소켓 연결을 통해 수신한 제1 전자 장치(101)의 고유 식별자를 비교함으로써, 유효성을 검증할 수 있다. 동작(944)에 따라 유효성 검증이 완료된 경우, 제1 전자 장치(101)는 제2 전자 장치(103)와 L3 소켓 연결을 해제하지 않고 유지할 수 있다.In operation 944, the first electronic device 101 may verify mutual validity with the second electronic device 103. For example, if the L3 socket connection is successful, the first electronic device 101 connects to the second electronic device 103 included in the response packet (e.g., the second LAN packet) received from the second electronic device 103. Validity can be verified by comparing the unique identifier with the unique identifier of the second electronic device 103 received through L3 connection. For example, the second electronic device 103 connects the L3 socket with the unique identifier of the first electronic device 101 included in the request packet (e.g., first LAN packet) received from the first electronic device 101. The validity can be verified by comparing the unique identifier of the first electronic device 101 received through . When validation is completed according to operation 944, the first electronic device 101 can maintain the L3 socket connection with the second electronic device 103 without releasing it.

데이터 전송 동작(970-2)을 참고하면, 동작(972)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 데이터 전송을 위한 L3 소켓 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. L3 소켓 연결인 성공한 경우, 동작(974)에서, 제1 전자 장치(101)는 제2 전자 장치(103)에게 데이터를 전송할 수 있다. Referring to the data transmission operation 970-2, in operation 972, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection for data transmission. For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. If the L3 socket connection is successful, in operation 974, the first electronic device 101 may transmit data to the second electronic device 103.

상술한 바를 참조하면, 전자 장치는, 상기 전자 장치가 제2 통신 프로토콜을 통해 연결된 노드와 제2 통신 프로토콜을 통해 연결된 외부 전자 장치가 검색된 경우, 제2 통신 프로토콜에 기반하여 상기 노드를 통해 상기 외부 전자 장치와 연결(예: L3 소켓 연결)을 수립할 수 있다. 이후, 상기 전자 장치는 상기 외부 전자 장치와 상호 유효성 검증을 수행할 수 있고, L3 연결을 해제하지 않고 유지할 수 있다. 상기 전자 장치는, L3 연결에 기반하여, 상기 외부 전자 장치와 데이터 전송을 수행할 수 있다. Referring to the above, when the electronic device searches for a node connected through a second communication protocol and an external electronic device connected through the second communication protocol, the electronic device connects to the external device through the node based on the second communication protocol. A connection (e.g. an L3 socket connection) can be established with an electronic device. Afterwards, the electronic device can perform mutual validation with the external electronic device and maintain the L3 connection without releasing it. The electronic device can perform data transmission with the external electronic device based on L3 connection.

상술한 바와 같이, 상기 전자 장치가 상기 외부 전자 장치와 제2 통신 프로토콜을 통해 동일한 노드(node)에 연결되어 있는 경우, 상기 전자 장치는 상기 외부 전자 장치와 추가적인 연결을 수행하지 않고 이미 연결된 상기 제2 통신 프로토콜을 이용하여 데이터를 전송하기 위한 장치 및 방법을 제안한다. 이에 따라, 본 개시의 실시예에 따른 장치 및 방법은, 제1 통신 프로토콜을 통해 검색 및 인증 동작에서 요구되는 전력 소모가 감소될 수 있고, 검색에 요구되는 시간이 줄어들 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 데이터의 전송을 위한 연결(예: L2 연결)의 횟수가 감소될 수 있어 보다 효율적으로 데이터를 전송할 수 있다. 또한, 본 개시의 실시예에 따른 장치 및 방법은, 다른 전자 장치의 상태(예: 핫스팟 기능의 활성화 또는 또 다른 전자 장치와 Wi-Fi direct를 통해 연결)에 상관없이, 데이터의 전송을 위한 연결이 가능한 바 적용 가능한 시나리오들을 확장할 수 있다.As described above, when the electronic device is connected to the same node as the external electronic device through a second communication protocol, the electronic device does not perform an additional connection with the external electronic device and 2 Propose a device and method for transmitting data using a communication protocol. Accordingly, in the apparatus and method according to an embodiment of the present disclosure, the power consumption required for search and authentication operations through the first communication protocol can be reduced, and the time required for search can be reduced. Additionally, the device and method according to an embodiment of the present disclosure can transmit data more efficiently because the number of connections (eg, L2 connections) for data transmission can be reduced. Additionally, the device and method according to an embodiment of the present disclosure provide a connection for data transmission, regardless of the state of the other electronic device (e.g., activation of the hotspot function or connection to another electronic device via Wi-Fi direct). It is possible to expand applicable scenarios.

도 10은 동일한 네트워크(network)의 외부 전자 장치와 인증 및 전송을 수행하는 방법에 대한 예를 도시한다.Figure 10 shows an example of a method for performing authentication and transmission with an external electronic device in the same network.

도 10은, 제2 전자 장치(103)가 검색된 통신 프로토콜에 따라, 제1 전자 장치(101)와 제2 전자 장치(103)가 인증 및 전송을 수행하는 예를 도시한다. 구체적으로, 도 10은 도 3a의 흐름도의 동작(309) 내지 동작(317)에 대한 예시적인 방법이 도시된다. 도 10의 예시에 따른 방법은 제1 전자 장치(101)에 의해 수행될 수 있다. 제1 전자 장치(101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 상기 방법은 제1 전자 장치(101)의 프로세서(예: 도 13의 프로세서(1320)) 및 통신 모듈(예: 도 13의 통신 모듈(1390))에 의해 수행될 수 있다. 상기 제1 전자 장치(101)는 전자 장치를 지칭할 수 있고, 상기 제2 전자 장치(103)는 외부 전자 장치를 지칭할 수 있다.FIG. 10 shows an example in which the first electronic device 101 and the second electronic device 103 perform authentication and transmission according to the communication protocol for which the second electronic device 103 has been searched. Specifically, FIG. 10 shows an example method for operations 309 through 317 of the flowchart of FIG. 3A. The method according to the example of FIG. 10 may be performed by the first electronic device 101. The first electronic device 101 may include the electronic device 1301 of FIG. 13 . For example, the method may be performed by a processor (e.g., processor 1320 in FIG. 13) and a communication module (e.g., communication module 1390 in FIG. 13) of the first electronic device 101. The first electronic device 101 may refer to an electronic device, and the second electronic device 103 may refer to an external electronic device.

인증 동작(1040-2)을 참고하면, 동작(1042)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 인증을 위한 L3(layer 3) 소켓(socket) 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. 예를 들어, 상기 LAN 연결 정보는 저장된 IP 주소, 또는 포트(port) 번호를 포함할 수 있다. 동작(1044)에서, 제1 전자 장치(101)는, 제2 전자 장치(103)와 상호 유효성을 검증할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 전자 장치(103)로부터 수신한 응답 패킷(예: 제2 LAN 패킷)에 포함되는 제2 전자 장치(103)의 고유 식별자와 L3 소켓 연결을 통해 수신한 제2 전자 장치(103)를 지시하기 위한 정보(예: 전자 장치의 고유 식별자)를 비교함으로써, 유효성을 검증할 수 있다. Referring to the authentication operation 1040-2, in operation 1042, the first electronic device 101 and the second electronic device 103 may perform L3 (layer 3) socket connection for authentication. there is. For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. For example, the LAN connection information may include a stored IP address or port number. In operation 1044, the first electronic device 101 may verify mutual validity with the second electronic device 103. For example, the first electronic device 101 establishes an L3 socket connection with the unique identifier of the second electronic device 103 included in the response packet (e.g., the second LAN packet) received from the second electronic device 103. Validity can be verified by comparing information indicating the second electronic device 103 (e.g., unique identifier of the electronic device) received through.

만약, 인증 동작(1040-2)에 따라 인증이 성공된 경우, 데이터 전송 동작(1070-2)의 동작(1072)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 데이터 전송을 위한 L3 소켓 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)와 제2 전자 장치(103)는, 상기 제2 LAN 패킷의 LAN 연결 정보에 기반하여, 연결된 상태인 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행할 수 있다. L3 소켓 연결인 성공한 경우, 동작(1074)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 L3 연결을 이용하여 데이터를 전송할 수 있다. If authentication is successful according to the authentication operation 1040-2, in operation 1072 of the data transmission operation 1070-2, the first electronic device 101 and the second electronic device 103 transmit data. L3 socket connection can be performed for . For example, the first electronic device 101 and the second electronic device 103 may perform an L3 socket connection to the second communication protocol in the connected state based on the LAN connection information of the second LAN packet. You can. If the L3 socket connection is successful, in operation 1074, the first electronic device 101 can transmit data to the second electronic device 103 using the L3 connection.

만약, 인증 동작(1040-2)에 따라 인증이 실패하거나, 인증이 일정 시간 내에 성공되지 않은 경우, 인증 동작(1040-1)이 수행될 수 있다. 동작(1041)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜 연결을 수행할 수 있다. 상기 제1 통신 프로토콜 연결은 제1 전자 장치(101)와 제2 전자 장치(103)가 서로의 유효성(validation)을 검증하기 위한 연결일 수 있다. 예를 들어, 상기 제1 통신 프로토콜 연결은 BLE 연결을 포함할 수 있다. 제1 통신 프로토콜 연결 후, 동작(1043)에서, 제1 전자 장치(101)와 제2 전자 장치(103)는 상호 유효성 검증을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 제2 BLE 패킷에 기반하여 제2 전자 장치(103)의 유효성 검증을 수행할 수 있다. 또한, 제2 전자 장치(103)는 제1 BLE 패킷에 기반하여 제1 전자 장치(101)의 유효성 검증을 수행할 수 있다. 동작(1045)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 크리덴셜(credential) 교환을 수행할 수 있다. 예를 들면, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2(layer 2) 연결을 위한 크리덴셜 교환을 수행할 수 있다. 상기 크리덴셜은, L2 연결을 위한 보안과 관련된 정보를 포함할 수 있다. 이 후, 동작(1047)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 제1 통신 프로토콜 연결을 해제할 수 있다. If authentication fails according to the authentication operation 1040-2 or if authentication is not successful within a certain period of time, the authentication operation 1040-1 may be performed. In operation 1041, the first electronic device 101 may perform a first communication protocol connection with the second electronic device 103. The first communication protocol connection may be a connection for the first electronic device 101 and the second electronic device 103 to verify each other's validity. For example, the first communication protocol connection may include a BLE connection. After connecting the first communication protocol, in operation 1043, the first electronic device 101 and the second electronic device 103 may perform mutual validation. For example, the first electronic device 101 may perform validation of the second electronic device 103 based on the second BLE packet. Additionally, the second electronic device 103 may perform validation of the first electronic device 101 based on the first BLE packet. In operation 1045, the first electronic device 101 may exchange credentials with the second electronic device 103. For example, the first electronic device 101 may perform credential exchange for L2 (layer 2) connection with the second electronic device 103. The credentials may include information related to security for L2 connection. Afterwards, in operation 1047, the first electronic device 101 may release the first communication protocol connection with the second electronic device 103.

인증 동작(1040-1)에 따라 인증이 성공한 경우, 데이터 전송 동작(1070-1)의 동작(1071)에서, 제1 전자 장치(101)는 제2 전자 장치(103)와 L2 연결을 수행할 수 있다. 예를 들어, 제1 전자 장치(101)는 L2 연결을 위한 크리덴셜에 기반하여 Wi-Fi-direct(wireless fidelity-direct) 또는 Wi-Fi-aware(또는 NAN(neighbor awareness networking)) 연결을 수행할 수 있다. 이 후, 동작(1073)에서, 제1 전자 장치(101)는 L2 연결을 통해 제2 전자 장치(103)에게 데이터를 전송할 수 있다.If authentication is successful according to the authentication operation 1040-1, the first electronic device 101 performs an L2 connection with the second electronic device 103 in operation 1071 of the data transmission operation 1070-1. You can. For example, the first electronic device 101 performs Wi-Fi-direct (wireless fidelity-direct) or Wi-Fi-aware (or NAN (neighbor awareness networking)) connection based on credentials for L2 connection. can do. Afterwards, in operation 1073, the first electronic device 101 may transmit data to the second electronic device 103 through the L2 connection.

도 11a는 외부 전자 장치와 인증 결과를 표시하는 전자 장치의 사용자 인터페이스에 대한 예를 도시한다. 도 11b는 외부 전자 장치와 인증 결과를 표시하는 전자 장치의 사용자 인터페이스에 대한 다른 예를 도시한다.FIG. 11A shows an example of a user interface of an electronic device displaying an external electronic device and an authentication result. FIG. 11B shows another example of a user interface of an electronic device that displays an external electronic device and an authentication result.

도 11a 및 도 11b는, 전자 장치(1101)가 제1 통신 프로토콜 및/또는 제2 통신 프로토콜을 통해 검색된 외부 전자 장치와 인증의 결과에 따라 디스플레이(1110)(예: 도 13의 디스플레이 모듈(1360))를 통해 표시하는 예를 도시한다. 도 11a 및 도 11b의 전자 장치(1101)는 제1 전자 장치(101)의 일 예를 나타낼 수 있다. 예를 들면, 전자 장치(1101)는 소프트웨어 어플리케이션(software application)의 사용자 인터페이스(user interface)(1120)를 통해 제1 통신 프로토콜 및/또는 제2 통신 프로토콜에 기반하여 검색된 결과를 표시할 수 있다. 상기 소프트웨어 어플리케이션은, 전자 장치(1101)가 외부 전자 장치와 연결을 수립하여 데이터를 전송하기 위해 이용되는 소프트웨어 어플리케이션을 나타낼 수 있다. 사용자 인터페이스(1120)는 상기 소프트웨어 어플리케이션을 통해 연결을 수행하는 동작에 있어서, 제1 통신 프로토콜 및/또는 제2 통신 프로토콜을 통해 검색된 외부 전자 장치와의 인증 결과를 표시하기 위한, 사용자 인터페이스일 수 있다. 도 11a의 전자 장치(1101)는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 전자 장치(1101)에 의해 수행되는 동작은 도 13의 전자 장치(1301)의 프로세서(1320)에 의해 수행될 수 있다.11A and 11B show that the electronic device 1101 displays the display 1110 (e.g., the display module 1360 of FIG. 13) according to the result of authentication with an external electronic device searched through the first communication protocol and/or the second communication protocol. )) shows an example of displaying. The electronic device 1101 of FIGS. 11A and 11B may represent an example of the first electronic device 101. For example, the electronic device 1101 may display search results based on the first communication protocol and/or the second communication protocol through the user interface 1120 of a software application. The software application may represent a software application used by the electronic device 1101 to establish a connection with an external electronic device and transmit data. The user interface 1120 may be a user interface for displaying the results of authentication with an external electronic device searched through a first communication protocol and/or a second communication protocol when performing a connection through the software application. . The electronic device 1101 of FIG. 11A may include the electronic device 1301 of FIG. 13 . For example, an operation performed by the electronic device 1101 may be performed by the processor 1320 of the electronic device 1301 of FIG. 13 .

도 11a를 참조하면, 전자 장치(1101)는 제1 통신 프로토콜에 기반하여 검색된 제1 외부 전자 장치(1130), 제2 통신 프로토콜에 기반하여 검색된 제2 외부 전자 장치(1140), 및 제1 통신 프로토콜과 제2 통신 프로토콜 모두에서 검색된 제3 외부 전자 장치(1150)를 디스플레이(1120)를 통해 사용자 인터페이스(1110) 상에서 표시할 수 있다. 예를 들면, 제1 외부 전자 장치(1130), 제2 외부 전자 장치(1140), 및 제3 외부 전자 장치(1150) 각각이 검색된 통신 프로토콜에 대한 정보는 사용자에게 표시되지 않을 수 있다. 전자 장치(1101)는 사용자의 입력에 대응하여 식별된 외부 전자 장치에 대하여, 검색된 통신 프로토콜에 기반하여 인증을 수행할 수 있다. Referring to FIG. 11A, the electronic device 1101 includes a first external electronic device 1130 discovered based on a first communication protocol, a second external electronic device 1140 discovered based on a second communication protocol, and a first communication The third external electronic device 1150 found in both the protocol and the second communication protocol may be displayed on the user interface 1110 through the display 1120. For example, information about the communication protocol searched for each of the first external electronic device 1130, the second external electronic device 1140, and the third external electronic device 1150 may not be displayed to the user. The electronic device 1101 may perform authentication on an external electronic device identified in response to a user's input based on a searched communication protocol.

예를 들어, 전자 장치(1101)가 제2 통신 프로토콜을 통해서만 검색된 제2 외부 전자 장치(1140)와 제2 통신 프로토콜을 통한 인증이 실패한 경우, 전자 장치(1101)는 제2 외부 전자 장치(1140)와 제1 통신 프로토콜로의 연결을 수행할 수 없다. 다시 말해서, 전자 장치(1101)는 제2 외부 전자 장치(1140)와 다른 통신 프로토콜에 기반하여 인증을 수행할 수 없는 바, 연결이 실패했다는 알림을 디스플레이(1120)를 통해 표시할 수 있다. For example, if the electronic device 1101 and the second external electronic device 1140 discovered only through the second communication protocol fail to authenticate through the second communication protocol, the electronic device 1101 is connected to the second external electronic device 1140 only through the second communication protocol. ) and the connection to the first communication protocol cannot be performed. In other words, since the electronic device 1101 cannot perform authentication based on a communication protocol different from that of the second external electronic device 1140, a notification that the connection has failed may be displayed through the display 1120.

이와 달리, 전자 장치(1101)가 제1 통신 프로토콜 및 제2 통신 프로토콜을 통해서 검색된 제3 외부 전자 장치(1150)와 제2 통신 프로토콜을 통한 인증이 실패한 경우, 전자 장치(1101)는 제3 외부 전자 장치(1150)와 제1 통신 프로토콜을 통한 인증을 수행할 수 있다. 전자 장치(1101)가 제3 외부 전자 장치(1150)와 제1 통신 프로토콜을 통한 인증에 성공한 경우, 전자 장치(1101)는 제3 외부 전자 장치(1150)와 제1 통신 프로토콜을 통한 연결을 해제하고, L2 연결을 수립하고 데이터의 전송을 수행할 수 있다. 일 실시예에서, 전자 장치(1101)가 제3 외부 전자 장치(1150)와 제1 통신 프로토콜을 통한 인증에 실패한 경우, 전자 장치(1101)는 제3 외부 전자 장치(1150)와의 연결이 실패했다는 알림을 디스플레이(1120)를 통해 표시할 수 있다. On the other hand, when the electronic device 1101 fails to authenticate with the third external electronic device 1150 discovered through the first communication protocol and the second communication protocol through the second communication protocol, the electronic device 1101 is connected to the third external electronic device 1150 discovered through the first communication protocol and the second communication protocol. Authentication can be performed using the electronic device 1150 and the first communication protocol. If the electronic device 1101 succeeds in authenticating the third external electronic device 1150 and the first communication protocol, the electronic device 1101 releases the connection with the third external electronic device 1150 and the first communication protocol. Then, an L2 connection can be established and data transmission can be performed. In one embodiment, when the electronic device 1101 fails to authenticate with the third external electronic device 1150 through the first communication protocol, the electronic device 1101 reports that the connection with the third external electronic device 1150 has failed. Notifications can be displayed through the display 1120.

이와 달리, 도 11b를 참조하면, 전자 장치(1101)는 제1 통신 프로토콜에 기반하여 검색된 제1 외부 전자 장치(1130), 및 제1 통신 프로토콜과 제2 통신 프로토콜 모두에서 검색된 제3 외부 전자 장치(1150)만을 디스플레이(1120)를 통해 사용자 인터페이스(1110) 상에서 표시할 수 있다. 제2 통신 프로토콜만을 통해 검색된 제2 외부 전자 장치(1140)의 경우, 제2 통신 프로토콜을 통한 인증이 실패한 경우, 바로 연결의 실패가 발생될 수 있다. 따라서, 전자 장치(1101)는, 연결의 수립을 우선적으로 고려하기 위하여, 제2 외부 전자 장치(1140)는 표시하지 않을 수 있다.In contrast, referring to FIG. 11B, the electronic device 1101 includes a first external electronic device 1130 searched based on the first communication protocol, and a third external electronic device searched based on both the first communication protocol and the second communication protocol. Only 1150 can be displayed on the user interface 1110 through the display 1120. In the case of the second external electronic device 1140 discovered only through the second communication protocol, if authentication through the second communication protocol fails, immediate connection failure may occur. Accordingly, the electronic device 1101 may not display the second external electronic device 1140 in order to give priority to establishing a connection.

도 12a는 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 다른 예를 도시하는 흐름도이다.FIG. 12A is a flowchart illustrating another example of a method for establishing a connection with an external electronic device.

상기 외부 전자 장치와 연결을 수립한다는 것은, 전자 장치가 상기 외부 전자 장치를 검색하고, 인증을 수행하고, 인증이 성공하여 데이터를 전송하기 위한 연결을 수행하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은 검색 동작, 인증 동작 및 전송 동작을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시의 연결은 제1 통신 프로토콜을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 전송을 위한 연결만을 지칭할 수도 있다. Establishing a connection with the external electronic device may indicate that the electronic device searches for the external electronic device, performs authentication, and establishes a connection to transmit data after authentication is successful. In other words, the connection may include all search operations, authentication operations, and transmission operations. However, the present disclosure is not limited thereto. For example, a connection in the present disclosure refers only to a connection for authentication or transmission, such as a connection through a first communication protocol, a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. You may.

도 12a의 흐름도에 따른 방법은 상기 전자 장치에 의해 수행될 수 있다. 상기 전자 장치는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 상기 방법은 상기 전자 장치의 프로세서(예: 도 13의 프로세서(1320))에 의해 수행될 수 있다. The method according to the flowchart of FIG. 12A may be performed by the electronic device. The electronic device may include the electronic device 1301 of FIG. 13 . For example, the method may be performed by a processor (eg, processor 1320 in FIG. 13) of the electronic device.

도 12a의 흐름도는, 도 7의 검색 동작(710)에 기반하여 검색된 외부 전자 장치와 연결을 수립하기 위한 예시를 도시한다. 도 12a를 참조하면, 동작(1201)에서, 프로세서는 제1 통신 프로토콜을 통해 검색할 수 있다. 예를 들어, 프로세서는, 제1 통신 프로토콜을 통해 연결가능한 적어도 하나의 외부 전자 장치를 식별할 수 있다. 예를 들어, 상기 제1 통신 프로토콜은 상기 프로세서와 연결된 제1 통신 회로와 관련될 수 있고, 프로세서는 상기 제1 통신 회로를 이용하여 상기 제1 통신 프로토콜에 기반한 외부 전자 장치를 검색할 수 있다. 동작(1201)은, 전자 장치가 외부 전자 장치와 연결을 수립하여 데이터를 전송하기 위해 이용되는 소프트웨어 어플리케이션을 수행함에 따라 시작될 수 있다. 상기 소프트웨어 어플리케이션은 사용자 인터페이스(예: 도 11a 및 도 11b의 사용자 인터페이스(1120))를 통해 제1 통신 프로토콜 및/또는 제2 통신 프로토콜에 기반하여 검색된 결과를 표시할 수 있다.The flowchart of FIG. 12A shows an example of establishing a connection with an external electronic device found based on the search operation 710 of FIG. 7 . Referring to Figure 12A, at operation 1201, the processor may search via a first communication protocol. For example, the processor may identify at least one external electronic device connectable through a first communication protocol. For example, the first communication protocol may be related to a first communication circuit connected to the processor, and the processor may use the first communication circuit to search for an external electronic device based on the first communication protocol. Operation 1201 may begin as the electronic device executes a software application used to establish a connection with an external electronic device and transmit data. The software application may display searched results based on the first communication protocol and/or the second communication protocol through a user interface (eg, user interface 1120 of FIGS. 11A and 11B).

동작(1203)에서, 프로세서는, 상기 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 통해 연결되었는지 여부를 식별할 수 있다. 예를 들어, 프로세서는, 동작(1201)의 검색을 통해, 상기 적어도 하나의 외부 전자 장치로부터 수신된 제2 BLE 패킷에 기반하여, 상기 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 통해 연결되었는지 여부를 식별할 수 있다. 예를 들어, 상기 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 통해 연결되었다는 것은, 상기 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 지원하는 경우 또는 제2 통신 프로토콜을 통하여 전자 장치가 연결된 노드와 연결된 경우를 포함할 수 있다. 동작(1203)에서, 상기 적어도 하나의 외부 전자 장치 중 제2 통신 프로토콜을 통해 연결된 외부 전자 장치에 대하여, 프로세서는 동작(1205)을 수행할 수 있다. 동작(1203)에서, 상기 적어도 하나의 외부 전자 장치 중 제2 통신 프로토콜을 통해 연결되지 않은 외부 전자 장치에 대하여는, 프로세서는 동작(1209)을 수행할 수 있다.In operation 1203, the processor may identify whether the at least one external electronic device is connected through a second communication protocol. For example, the processor determines whether the at least one external electronic device is connected through a second communication protocol based on the second BLE packet received from the at least one external electronic device through operation 1201. can be identified. For example, the fact that the at least one external electronic device is connected through a second communication protocol means that the at least one external electronic device supports the second communication protocol or the node to which the electronic device is connected through the second communication protocol. It may include cases connected to . In operation 1203, the processor may perform operation 1205 with respect to an external electronic device connected through a second communication protocol among the at least one external electronic device. In operation 1203, the processor may perform operation 1209 with respect to an external electronic device that is not connected through a second communication protocol among the at least one external electronic device.

동작(1205)에서, 프로세서는, 제2 통신 프로토콜을 통해 검색할 수 있다. 예를 들어, 프로세서는, 제2 통신 프로토콜을 통해 다시 검색할 수 있고, 이에 따라, 연결가능한 적어도 하나의 외부 전자 장치를 식별할 수 있다. 예를 들어, 상기 제2 통신 프로토콜은 상기 프로세서와 연결된 제2 통신 회로와 관련될 수 있고, 프로세서는 상기 제2 통신 회로를 이용하여 상기 제2 통신 프로토콜에 따른 외부 전자 장치를 검색할 수 있다. 상기 검색은, 통신 프로토콜을 통해 연결하기 위한 요청 패킷을 송신하고, 그에 대한 응답 패킷에 기반하여 외부 전자 장치를 식별하는 것을 포함할 수 있다.At operation 1205, the processor may retrieve via a second communication protocol. For example, the processor may search again through the second communication protocol, thereby identifying at least one connectable external electronic device. For example, the second communication protocol may be related to a second communication circuit connected to the processor, and the processor may use the second communication circuit to search for an external electronic device according to the second communication protocol. The search may include sending a request packet for connection through a communication protocol and identifying an external electronic device based on a response packet.

예를 들면, 상기 적어도 하나의 외부 전자 장치는, 제2 통신 프로토콜에 기반한 노드와 연결될 수 있다. 또한, 상기 전자 장치는 제2 통신 프로토콜에 기반한 상기 노드와 연결될 수 있다. 다시 말해서, 상기 전자 장치와 상기 적어도 하나의 외부 전자 장치는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. For example, the at least one external electronic device may be connected to a node based on a second communication protocol. Additionally, the electronic device may be connected to the node based on a second communication protocol. In other words, the electronic device and the at least one external electronic device may be connected to a LAN through the same node. The node may include a router or an access point (AP).

동작(1207)에서, 프로세서는, 제2 통신 프로토콜을 통해 검색된 외부 전자 장치에 대한 리스트(list)를 획득할 수 있다. 예를 들어, 프로세서는, 제2 통신 프로토콜을 통해 검색된 상기 적어도 하나의 외부 전자 장치를 리스트에 추가할 수 있다. In operation 1207, the processor may obtain a list of external electronic devices searched through a second communication protocol. For example, the processor may add the at least one external electronic device searched through the second communication protocol to the list.

동작(1209)에서, 프로세서는, 제1 통신 프로토콜을 통해 검색된 외부 전자 장치에 대한 리스트를 획득할 수 있다. 예를 들어, 프로세서는, 제1 통신 프로토콜을 통해 검색된 상기 적어도 하나의 외부 전자 장치를 리스트에 추가할 수 있다. In operation 1209, the processor may obtain a list of external electronic devices searched through the first communication protocol. For example, the processor may add the at least one external electronic device searched through the first communication protocol to the list.

동작(1207) 및 동작(1209)의 결과에 따라, 프로세서는, 검색의 결과를 전자 장치의 디스플레이(예: 도 13의 디스플레이 모듈(1360))를 통해 표시할 수 있다. 예를 들면, 프로세서는 검색된 외부 전자 장치를 디스플레이를 통해 사용자 인터페이스 상에 표시할 수 있다. Depending on the results of operations 1207 and 1209, the processor may display the search results through a display of the electronic device (eg, the display module 1360 of FIG. 13). For example, the processor may display the searched external electronic device on the user interface through a display.

동작(1211)에서, 프로세서는 디스플레이를 통해 표시되는 검색된 외부 전자 장치에 대응하는 영역에 대한 적어도 하나의 사용자 입력을 식별할 수 있고, 이에 따라, 검색된 외부 전자 장치 중 하나의 외부 전자 장치를 식별할 수 있다. 여기서, 상기 하나의 외부 전자 장치는 선택된 외부 전자 장치로 지칭될 수 있다. In operation 1211, the processor may identify at least one user input for an area corresponding to the searched external electronic device displayed through the display, and thereby identify one of the searched external electronic devices. You can. Here, the one external electronic device may be referred to as a selected external electronic device.

동작(1213)에서, 프로세서는 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 외부 전자 장치인지 여부를 식별할 수 있다. 예를 들면, 프로세서는, 사용자의 입력에 따라 선택된 외부 전자 장치가, 동작(1205)에 의해 검색된 적어도 하나의 외부 전자 장치에 포함되는지 여부를 식별할 수 있다. 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치인 경우, 프로세서는 동작(1215)을 수행할 수 있다. 선택된 외부 전자 장치가 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치가 아닌 경우, 프로세서는 동작(1225)을 수행할 수 있다.In operation 1213, the processor may identify whether the selected external electronic device is an external electronic device discovered through the second communication protocol. For example, the processor may identify whether the external electronic device selected according to the user's input is included in at least one external electronic device searched in operation 1205. If the selected external electronic device is at least one external electronic device searched through the second communication protocol, the processor may perform operation 1215. If the selected external electronic device is not one of the at least one external electronic device searched through the second communication protocol, the processor may perform operation 1225.

동작(1215)에서, 프로세서는, 제2 통신 프로토콜을 통해 인증을 수행할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치와 제2 통신 프로토콜을 통해 인증을 수행할 수 있다. 프로세서는, 상기 선택된 외부 전자 장치와 인증을 수행하기 위하여, 제2 통신 프로토콜을 통해 연결할 수 있다.At operation 1215, the processor may perform authentication via a second communication protocol. For example, the processor may perform authentication with the selected external electronic device through a second communication protocol. The processor may connect to the selected external electronic device through a second communication protocol to perform authentication.

동작(1217)에서, 프로세서는, 상기 인증이 일정 시간 내에 성공되는지 여부를 식별할 수 있다. 예를 들어, 프로세서는, 제2 통신 프로토콜을 통해 상기 선택된 외부 전자 장치와 수행하는 상기 인증이 지정된 시간(예: 3초) 내에 성공되는지 여부를 식별할 수 있다. 상기 일정 시간은, 상기 전자 장치의 사용자에 의해 미리 설정되거나, 상기 제2 통신 프로토콜과 관련된 네트워크의 상태에 따라 변경될 수 있다. 프로세서는 동작(1217)에서 상기 인증이 일정 시간 내에 성공됨을 식별한 경우, 프로세서는 동작(1219)을 수행할 수 있다. 프로세서는 동작(1217)에서 상기 인증이 일정 시간 내에 성공하지 못한 상태로 유지되거나, 상기 인증이 실패한 것을 식별한 경우, 프로세서는 동작(1223)을 수행할 수 있다. At operation 1217, the processor may identify whether the authentication is successful within a certain amount of time. For example, the processor may identify whether the authentication performed with the selected external electronic device is successful within a specified time (eg, 3 seconds) through a second communication protocol. The constant time may be preset by the user of the electronic device, or may be changed depending on the state of the network related to the second communication protocol. If the processor determines in operation 1217 that the authentication is successful within a certain period of time, the processor may perform operation 1219. If the processor determines in operation 1217 that the authentication remains unsuccessful within a certain period of time or that the authentication has failed, the processor may perform operation 1223.

동작(1219)에서, 프로세서는, 제2 통신 프로토콜을 통해 연결을 수립할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치와 제2 통신 프로토콜을 통한 연결을 유지할 수 있다. 동작(1221)에서, 프로세서는, 상기 제2 통신 프로토콜을 통한 연결에 기반하여, 상기 선택된 외부 전자 장치에게 데이터를 전송할 수 있다.At operation 1219, the processor may establish a connection via a second communication protocol. For example, the processor may maintain a connection with the selected external electronic device through a second communication protocol. In operation 1221, the processor may transmit data to the selected external electronic device based on a connection through the second communication protocol.

동작(1223)에서, 프로세서는, 제1 통신 프로토콜을 통해 상기 선택된 외부 전자 장치와 인증을 수행할 수 있다. 예를 들어, 프로세서는, 상기 선택된 외부 전자 장치가 제1 통신 프로토콜을 통해 검색된 외부 전자 장치인 경우, 제1 통신 프로토콜을 통해 인증을 수행할 수 있다. 프로세서는, 상기 선택된 외부 전자 장치와 인증을 수행하기 위하여, 제1 통신 프로토콜을 통해 연결할 수 있다. 동작(1223)에서 인증이 성공된 경우, 프로세서는, L2 연결을 위한 크리덴셜(credential) 교환을 수행할 수 있다In operation 1223, the processor may perform authentication with the selected external electronic device through a first communication protocol. For example, if the selected external electronic device is an external electronic device discovered through a first communication protocol, the processor may perform authentication through a first communication protocol. The processor may connect to the selected external electronic device through a first communication protocol to perform authentication. If authentication is successful in operation 1223, the processor may perform credential exchange for L2 connection.

동작(1225)에서, 프로세서는, L2(layer 2) 연결을 수립할 수 있다. 예를 들어, 동작(1223)의 상기 인증이 성공된 경우, 프로세서는, 상기 선택된 외부 전자 장치와 제1 통신 프로토콜을 통한 연결을 해제할 수 있고, 상기 L2 연결을 위한 크리덴셜에 기반하여 데이터 전송을 위한 L2 연결을 수행할 수 있다. 예를 들어, 프로세서는, 동작(1225)에서, L2 연결 방식을 선택할 수 있다. 상기 L2 연결은 D2D(device to device) 연결을 나타낼 수 있고, 다양한 D2D 연결들 중 하나를 선택할 수 있다. 예를 들어, D2D 연결들은, Wi-Fi direct 연결, 또는 Wi-Fi aware 연결을 포함할 수 있다. 동작(1227)에서, 프로세서는, 선택된 연결 방식에 따른 연결이 성공하는 경우, 선택된 연결 방식을 통해 외부 전자 장치에게 데이터를 전송할 수 있다. At operation 1225, the processor may establish a layer 2 (L2) connection. For example, if the authentication in operation 1223 is successful, the processor may disconnect from the selected external electronic device through a first communication protocol and transmit data based on the credentials for the L2 connection. L2 connection can be performed for . For example, the processor, at operation 1225, may select an L2 connectivity scheme. The L2 connection may represent a device to device (D2D) connection, and one of various D2D connections may be selected. For example, D2D connections may include a Wi-Fi direct connection, or a Wi-Fi aware connection. In operation 1227, if the connection according to the selected connection method is successful, the processor may transmit data to the external electronic device through the selected connection method.

도 12b는 제1 통신 프로토콜 및 제2 통신 프로토콜에 기반하여 검색된 외부 전자 장치와 연결을 수립하기 위한 방법에 대한 다른 예를 도시하는 흐름도이다.FIG. 12B is a flowchart illustrating another example of a method for establishing a connection with an external electronic device found based on a first communication protocol and a second communication protocol.

상기 외부 전자 장치와 연결을 수립한다는 것은, 전자 장치가 상기 외부 전자 장치를 검색하고, 인증을 수행하고, 인증이 성공하여 데이터를 전송하기 위한 연결을 수행하는 것을 나타낼 수 있다. 다시 말해서, 상기 연결은 검색 동작, 인증 동작 및 데이터 전송 동작을 모두 포함할 수 있다. 그러나, 본 개시가 이에 제한되는 것은 아니다. 예를 들어, 본 개시의 실시예들에서, 연결은 제1 통신 프로토콜(예: BLE)을 통해 연결, L2(layer 2) 연결, D2D(device to device) 연결, 또는 L3(layer 3) 연결과 같이, 인증 또는 전송을 위한 연결만을 지칭할 수도 있다. Establishing a connection with the external electronic device may indicate that the electronic device searches for the external electronic device, performs authentication, and establishes a connection to transmit data after authentication is successful. In other words, the connection may include all search operations, authentication operations, and data transmission operations. However, the present disclosure is not limited thereto. For example, in embodiments of the present disclosure, the connection may include a connection via a first communication protocol (e.g., BLE), a layer 2 (L2) connection, a device to device (D2D) connection, or a layer 3 (L3) connection. Likewise, it may refer only to a connection for authentication or transmission.

도 12b의 흐름도에 따른 방법은 상기 전자 장치에 의해 수행될 수 있다. 상기 전자 장치는 도 13의 전자 장치(1301)를 포함할 수 있다. 예를 들어, 상기 방법은 상기 전자 장치의 프로세서(예: 도 13의 프로세서(1320))에 의해 수행될 수 있다.The method according to the flowchart of FIG. 12B may be performed by the electronic device. The electronic device may include the electronic device 1301 of FIG. 13 . For example, the method may be performed by a processor (eg, processor 1320 in FIG. 13) of the electronic device.

일 실시예에 따르면, 동작(1230)에서, 프로세서는, 제1 BLE 패킷을 방송(broadcast)할 수 있다. 예를 들어, 프로세서는, 제1 통신 회로를 통해, 제1 통신 프로토콜을 통해 연결가능한 외부 전자 장치들을 식별하기 위한 제1 BLE 패킷을 브로드캐스트 방식을 통해 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 제2 BLE 패킷을 수신하기 위하여 대기할 수 있다. 상기 제2 BLE 패킷은 외부 전자 장치로부터 방송되는 상기 제1 BLE 패킷에 대한 응답 패킷일 수 있다. 상기 제2 BLE 패킷의 수신 대기는, BLE 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. 예를 들어, 상기 제1 BLE 패킷은, 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 전자 장치의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. 예를 들면, 제1 BLE 패킷은, 전자 장치가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다.According to one embodiment, at operation 1230, the processor may broadcast the first BLE packet. For example, the processor may transmit, through the first communication circuit, a first BLE packet for identifying external electronic devices connectable through the first communication protocol through a broadcast method. According to one embodiment, the processor may wait to receive the second BLE packet. The second BLE packet may be a response packet to the first BLE packet broadcast from an external electronic device. Waiting to receive the second BLE packet may indicate monitoring to receive the BLE packet. For example, the first BLE packet may include terminal identifier information for the electronic device. For example, the terminal identifier may include a unique identifier of the electronic device and information about the type of the electronic device. For example, the first BLE packet may include information indicating whether the electronic device supports the second communication protocol or is connected to the second communication protocol.

일 실시예에 따르면, 동작(1235)에서, 프로세서는, 제2 BLE 패킷을 수신할 수 있다. 예를 들어, 프로세서는, 제1 통신 회로를 통해 외부 전자 장치로부터 방송되는 제2 BLE 패킷을 수신할 수 있다. 상술한 바를 참조하면, 동작(1230) 및 동작(1235)은 제1 통신 프로토콜을 통해 외부 전자 장치를 검색하는 동작으로 이해될 수 있다. 예를 들어, 상기 제2 BLE 패킷은, 상기 외부 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다. 예를 들어, 상기 단말 식별자는, 상기 외부 전자 장치의 고유 식별자(identity) 및 전자 장치의 종류에 대한 정보를 포함할 수 있다. 예를 들면, 제2 BLE 패킷은, 상기 외부 전자 장치가 제2 통신 프로토콜을 지원하는지 여부 또는 제2 통신 프로토콜과 연결되었는지 여부를 지시하기 위한 정보를 포함할 수 있다.According to one embodiment, at operation 1235, the processor may receive a second BLE packet. For example, the processor may receive a second BLE packet broadcast from an external electronic device through the first communication circuit. Referring to the above, operations 1230 and 1235 may be understood as operations for searching for an external electronic device through a first communication protocol. For example, the second BLE packet may include terminal identifier information for the external electronic device. For example, the terminal identifier may include a unique identifier of the external electronic device and information about the type of the electronic device. For example, the second BLE packet may include information indicating whether the external electronic device supports the second communication protocol or is connected to the second communication protocol.

일 실시예에 따르면, 동작(1240)에서, 프로세서는, 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 프로세서는, 제2 통신 회로를 통해, 제2 통신 프로토콜을 통해 연결가능한 외부 전자 장치들을 식별하기 위한 제1 LAN 패킷을 멀티캐스트(multicast) 방식을 통해 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 수신된 제2 BLE 패킷에 기반하여 식별된 외부 전자 장치에게, 제1 LAN 패킷을 전송할 수 있다. 예를 들어, 프로세서는, 수신된 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치 중 제2 통신 프로토콜을 지원하거나 제2 통신 프로토콜과 연결되는 상기 외부 전자 장치에게 제1 LAN 패킷을 전송할 수 있다. 일 실시예에 따르면, 프로세서는, 제2 LAN 패킷을 수신하기 위하여 대기할 수 있다. 상기 제2 LAN 패킷은 외부 전자 장치로부터 전송되는 상기 제1 LAN 패킷에 대한 응답 패킷일 수 있다. 상기 제2 LAN 패킷의 수신 대기는, LAN 패킷을 수신하기 위한 모니터링(monitoring)을 나타낼 수 있다. According to one embodiment, at operation 1240, the processor may transmit a first LAN packet. For example, the processor may transmit, through a second communication circuit, a first LAN packet for identifying external electronic devices connectable through a second communication protocol through a multicast method. According to one embodiment, the processor may transmit the first LAN packet to an external electronic device identified based on the received second BLE packet. For example, the processor may transmit the first LAN packet to the external electronic device that supports a second communication protocol or is connected to the second communication protocol among at least one external electronic device discovered through the received first communication protocol. . According to one embodiment, the processor may wait to receive a second LAN packet. The second LAN packet may be a response packet to the first LAN packet transmitted from an external electronic device. Waiting to receive the second LAN packet may indicate monitoring to receive the LAN packet.

일 실시예에 따르면, 동작(1245)에서, 프로세서는, 제2 LAN 패킷을 수신할 수 있다. 예를 들어, 프로세서는, 제2 통신 회로를 통해 외부 전자 장치로부터 전송되는 제2 LAN 패킷을 수신할 수 있다. 상술한 바를 참조하면, 동작(1240) 및 동작(1245)은 제2 통신 프로토콜을 통해 외부 전자 장치를 검색하는 동작으로 이해될 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 상기 외부 전자 장치가 연결된 제2 통신 프로토콜에 대한 연결 정보를 포함할 수 있다. 예를 들어, 상기 연결 정보는, IP(internet protocol) 주소(address) 및 포트(port) 번호를 포함할 수 있다. 예를 들어, 상기 제2 LAN 패킷은, 상기 외부 전자 장치에 대한 단말 식별자 정보를 포함할 수 있다.According to one embodiment, at operation 1245, the processor may receive a second LAN packet. For example, the processor may receive a second LAN packet transmitted from an external electronic device through a second communication circuit. Referring to the above, operations 1240 and 1245 may be understood as operations for searching for an external electronic device through a second communication protocol. For example, the second LAN packet may include connection information about a second communication protocol to which the external electronic device is connected. For example, the connection information may include an IP (internet protocol) address and a port number. For example, the second LAN packet may include terminal identifier information for the external electronic device.

일 실시예에 따르면, 동작(1250)에서, 프로세서는, 외부 전자 장치에 대한 정보를 표시할 수 있다. 예를 들면, 프로세서는, 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와, 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치에 대한 시각적 정보를 전자 장치의 디스플레이를 통해 표시할 수 있다. 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치의 적어도 일부는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응될 수도 있다. 또는, 상기 제1 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치와 대응되지 않을 수도 있다.According to one embodiment, in operation 1250, the processor may display information about the external electronic device. For example, the processor may display visual information about at least one external electronic device searched through a first communication protocol and at least one external electronic device searched through a second communication protocol through a display of the electronic device. . At least a portion of the at least one external electronic device searched through the first communication protocol may correspond to at least one external electronic device searched through the second communication protocol. Alternatively, at least one external electronic device searched through the first communication protocol may not correspond to at least one external electronic device searched through the second communication protocol.

일 실시예에 따르면, 상기 제2 통신 프로토콜을 통해 검색된 적어도 하나의 외부 전자 장치는, 제2 통신 프로토콜과 관련된 노드와 연결될 수 있다. 또한, 상기 전자 장치는 제2 통신 프로토콜과 관련된 상기 노드와 연결될 수 있다. 다시 말해서, 상기 전자 장치와 상기 적어도 하나의 외부 전자 장치는 동일한 노드를 통해 LAN과 연결된 상태일 수 있다. 상기 노드는, 라우터(router) 또는 AP(access point)를 포함할 수 있다. According to one embodiment, at least one external electronic device discovered through the second communication protocol may be connected to a node related to the second communication protocol. Additionally, the electronic device may be connected to the node associated with a second communication protocol. In other words, the electronic device and the at least one external electronic device may be connected to a LAN through the same node. The node may include a router or an access point (AP).

일 실시예에 따르면, 프로세서는, 검색된 외부 전자 장치를 상기 프로세서가 포함되는 전자 장치의 디스플레이(예: 도 13의 디스플레이 모듈(1360))를 통해 표시할 수 있다. 예를 들면, 프로세서는 검색된 외부 전자 장치를 디스플레이를 통해 사용자 인터페이스 상에 표시할 수 있다. According to one embodiment, the processor may display the searched external electronic device through the display (eg, display module 1360 of FIG. 13) of the electronic device including the processor. For example, the processor may display the searched external electronic device on the user interface through a display.

일 실시예에 따르면, 프로세서는 디스플레이를 통해 표시되는 검색된 외부 전자 장치에 대응하는 영역에 대한 적어도 하나의 사용자 입력을 식별할 수 있고, 이에 따라, 검색된 외부 전자 장치 중 하나의 외부 전자 장치를 식별할 수 있다. 여기서, 상기 하나의 외부 전자 장치는 선택된 외부 전자 장치를 포함할 수 있다. According to one embodiment, the processor may identify at least one user input for an area corresponding to the searched external electronic device displayed through the display, and thereby identify one external electronic device among the searched external electronic devices. You can. Here, the one external electronic device may include a selected external electronic device.

일 실시예에 따르면, 동작(1255)에서, 프로세서는, 제2 통신 프로토콜에 기반하여, 외부 전자 장치와 연결을 수립할 수 있다. 예를 들어, 프로세서는, 상기 식별된 외부 전자 장치에 대한 적어도 하나의 사용자 입력의 적어도 일부 기반하여, 제2 통신 프로토콜에 따라 노드(node)를 통해 상기 식별된 외부 전자 장치와 연결을 수립할 수 있다. 상기 노드는, 전자 장치가 제2 통신 프로토콜을 통해 연결된 노드를 나타낼 수 있다. According to one embodiment, in operation 1255, the processor may establish a connection with an external electronic device based on a second communication protocol. For example, the processor may establish a connection with the identified external electronic device through a node according to a second communication protocol, based at least in part on at least one user input for the identified external electronic device. there is. The node may represent a node to which an electronic device is connected through a second communication protocol.

일 실시예에 따르면, 프로세서는 동작(1255)에서 제2 통신 프로토콜에 기반하여 외부 전자 장치와 연결을 수립하기 위해, 제2 통신 프로토콜에 기반하여 인증을 수행할 수 있다. 예를 들면, 전자 장치는 상기 식별된 외부 전자 장치와 L3(layer 3) 소켓(socket) 연결을 수행하고, 상호 유효성 검증을 수행함으로써, 인증을 수행할 수 있다. According to one embodiment, in operation 1255, the processor may perform authentication based on a second communication protocol to establish a connection with an external electronic device based on the second communication protocol. For example, the electronic device may perform authentication by making an L3 (layer 3) socket connection with the identified external electronic device and performing mutual validation.

일 실시예에 따르면, 프로세서는, 상기 인증이 실패하거나, 일정 시간 내 성공되지 않은 경우, 상기 식별된 외부 전자 장치와 제1 통신 프로토콜을 통해 인증을 수행하고, L2 연결을 수립하여, 데이터를 전송할 수 있다.According to one embodiment, if the authentication fails or is not successful within a certain period of time, the processor performs authentication with the identified external electronic device through a first communication protocol, establishes an L2 connection, and transmits data. You can.

일 실시예에 따르면, 프로세서는, 연결이 수립된 외부 전자 장치에게 데이터를 전송할 수 있다. 예를 들면, 프로세서는, 연결된 제2 통신 프로토콜에 대하여, L3 소켓 연결을 수행하고, L3 소켓 연결이 성공한 경우, 상기 연결이 수립된 외부 전자 장치에게 데이터를 전송할 수 있다.According to one embodiment, the processor may transmit data to an external electronic device with which a connection has been established. For example, the processor may perform an L3 socket connection for the connected second communication protocol, and if the L3 socket connection is successful, data may be transmitted to the external electronic device with which the connection has been established.

상술한 바에 따르면, 전자 장치(예: 도 7의 제1 전자 장치(101))는 전력 효율이 우수한 제1 통신 프로토콜을 통해 먼저 적어도 하나의 외부 전자 장치를 검색할 수 있다. 이 때, 제1 통신 프로토콜을 위한 패킷(예: 제1 BLE 패킷 및 제2 BLE 패킷)에 기반하여, 검색된 적어도 하나의 외부 전자 장치가 제2 통신 프로토콜을 지원하며 상기 전자 장치와 동일한 노드(node)를 통해 연결되었음을 식별할 수 있다. 이에 따라, 상기 전자 장치는, 제2 통신 프로토콜을 통해 적어도 하나의 외부 전자 장치를 다시 검색할 수 있다. 검색된 적어도 하나의 외부 전자 장치와 제2 통신 프로토콜을 통한 인증을 수행함으로써, 상기 전자 장치는 효과적으로 데이터의 전송을 위한 연결을 수행할 수 있다. 즉, 상술한 방법을 통해 검색함으로써, 상기 전자 장치는, 전력 소모를 줄이면서 외부 전자 장치를 검색하기 위한 대기 시간을 줄일 수 있다. According to the above description, an electronic device (eg, the first electronic device 101 in FIG. 7) can first search for at least one external electronic device through a first communication protocol with excellent power efficiency. At this time, based on the packet for the first communication protocol (e.g., the first BLE packet and the second BLE packet), the searched at least one external electronic device supports the second communication protocol and has the same node as the electronic device. ) can be identified as being connected. Accordingly, the electronic device can search for at least one external electronic device again through the second communication protocol. By performing authentication with the searched at least one external electronic device through a second communication protocol, the electronic device can effectively establish a connection for data transmission. That is, by searching through the above-described method, the electronic device can reduce power consumption and wait time for searching an external electronic device.

도 13은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다. 도 13을 참조하면, 네트워크 환경(1300)에서 전자 장치(1301)는 제1 네트워크(1398)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(1302)와 통신하거나, 또는 제2 네트워크(1399)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(1304) 또는 서버(1308) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(1301)는 서버(1308)를 통하여 전자 장치(1304)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(1301)는 프로세서(1320), 메모리(1330), 입력 모듈(1350), 음향 출력 모듈(1355), 디스플레이 모듈(1360), 오디오 모듈(1370), 센서 모듈(1376), 인터페이스(1377), 연결 단자(1378), 햅틱 모듈(1379), 카메라 모듈(1380), 전력 관리 모듈(1388), 배터리(1389), 통신 모듈(1390), 가입자 식별 모듈(1396), 또는 안테나 모듈(1397)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(1301)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(1378))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(1376), 카메라 모듈(1380), 또는 안테나 모듈(1397))은 하나의 구성요소(예: 디스플레이 모듈(1360))로 통합될 수 있다.13 is a block diagram of an electronic device in a network environment according to various embodiments. Referring to FIG. 13, in the network environment 1300, the electronic device 1301 communicates with the electronic device 1302 through a first network 1398 (e.g., a short-range wireless communication network) or a second network 1399. It is possible to communicate with at least one of the electronic device 1304 or the server 1308 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 1301 may communicate with the electronic device 1304 through the server 1308. According to one embodiment, the electronic device 1301 includes a processor 1320, a memory 1330, an input module 1350, an audio output module 1355, a display module 1360, an audio module 1370, and a sensor module ( 1376), interface 1377, connection terminal 1378, haptic module 1379, camera module 1380, power management module 1388, battery 1389, communication module 1390, subscriber identification module 1396. , or may include an antenna module 1397. In some embodiments, at least one of these components (eg, the connection terminal 1378) may be omitted or one or more other components may be added to the electronic device 1301. In some embodiments, some of these components (e.g., sensor module 1376, camera module 1380, or antenna module 1397) are integrated into one component (e.g., display module 1360). It can be.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

상술한 바와 같은, 전자 장치(electronic device)(101, 1301)는 디스플레이(display)(예: 도 13의 디스플레이 모듈(1360))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로(예: 도 13의 통신 모듈(1390))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 제2 통신 프로토콜을 위한 제2 통신 회로(예: 도 13의 통신 모듈(1390))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 프로세서(1320)를 포함할 수 있다. 상기 프로세서(1320)는 상기 제1 통신 회로를 통해, 상기 전자 장치(101, 1301)가 상기 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제2 BLE 패킷에 응답하여, 상기 제2 통신 회로를 통해 제1 LAN(local access network) 패킷을 방송하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 방송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성될 수 있다. As described above, the electronic devices 101 and 1301 may include a display (eg, the display module 1360 of FIG. 13). The electronic devices 101 and 1301 may include a first communication circuit (eg, the communication module 1390 of FIG. 13) for a first communication protocol. The electronic devices 101 and 1301 may include a second communication circuit (eg, the communication module 1390 of FIG. 13) for a second communication protocol. The electronic devices 101 and 1301 may include a processor 1320. The processor 1320 sends a first BLE (Bluetooth low energy) packet indicating that the electronic devices 101 and 1301 are connected to a node through the second communication protocol through the first communication circuit. It may be configured to broadcast. The processor 1320 may be configured to receive, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node. You can. The processor 1320 may be configured to broadcast a first local access network (LAN) packet through the second communication circuit in response to the second BLE packet. The processor 1320 displays visual information indicating the external electronic device based on receiving a second LAN packet broadcast from the external electronic device in response to the first LAN packet through the second communication circuit. It can be configured to display through. The processor 1320 establishes a connection between the electronic device 101, 1301 and the external electronic device through the node according to the second communication protocol, based at least in part on a user input for the visual information, It can be configured.

일 실시예에 따르면, 상기 제1 통신 프로토콜은 BLE를 포함할 수 있다. 상기 제2 통신 프로토콜은 LAN를 포함할 수 있다.According to one embodiment, the first communication protocol may include BLE. The second communication protocol may include LAN.

일 실시예에 따르면, 상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함할 수 있다. 상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first BLE packet includes information about a service provided through the first communication protocol, and information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol. , identifier of the electronic device (101, 1301), information about the type of the electronic device (101, 1301), and whether the electronic device (101, 1301) supports or is connected to the second communication protocol. May contain indicators. The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. It may include a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or is connected to the second communication protocol, and information indicating the external electronic device.

일 실시예에 따르면, 상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함할 수 있다. 상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol. may include. The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. It may include a device identifier and information indicating the external electronic device.

일 실시예에 따르면, 상기 프로세서(1320)는 상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 인증이 성공한 경우, 상기 연결을 수립하도록, 구성될 수 있다.According to one embodiment, the processor 1320 may be configured to perform authentication with the external electronic device through the second communication protocol based on at least a portion of the user input for the visual information. The processor 1320 may be configured to establish the connection if the authentication is successful.

일 실시예에 따르면, 상기 프로세서(1320)는 상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제2 LAN 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하도록, 구성될 수 있다. According to one embodiment, the processor 1320 may be configured to perform layer 3 (L3) connection with the external electronic device in order to perform the authentication. The processor 1320 may be configured to identify the validity of the external electronic device based on the second LAN packet. The processor 1320 may be configured to maintain the L3 connection when the validity of the external electronic device is identified.

일 실시예에 따르면, 상기 프로세서(1320)는 상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하도록, 구성될 수 있다. According to one embodiment, the processor 1320 may be configured to perform a connection with the external electronic device through the first communication protocol when the authentication fails or a certain period of time elapses before the authentication succeeds. there is. The processor 1320 may be configured to identify the validity of the external electronic device based on the second BLE packet. The processor 1320 may be configured to exchange information related to security for L2 (layer 2) connection with the external electronic device when the validity of the external electronic device is identified. The processor 1320 may be configured to release the connection through the first communication protocol when the exchange is completed. The processor 1320 may be configured to perform the L2 connection based on the security-related information.

상술한 바와 같은, 전자 장치(electronic device)(101, 1301)에 의해 수행되는 방법은 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로(예: 도 13의 통신 모듈(1390))를 통해, 상기 전자 장치가 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하는 동작(1201)을 포함할 수 있다. 상기 방법은 상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하는 동작(1201)을 포함할 수 있다. 상기 방법은 상기 제2 BLE 패킷에 응답하여, 제2 통신 회로(예: 도 13의 통신 모듈(1390))를 통해 제1 LAN(local access network) 패킷을 방송하는 동작(1205)을 포함할 수 있다. 상기 방법은 상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 방송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 전자 장치(101, 1301)의 디스플레이(예: 도 13의 디스플레이 모듈(1360))를 통해 표시하는 동작(1205)을 포함할 수 있다. 상기 방법은 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하는 동작(1219)을 포함할 수 있다. As described above, the method performed by the electronic device 101 or 1301 is performed through a first communication circuit (e.g., the communication module 1390 of FIG. 13) for a first communication protocol. , It may include an operation 1201 of broadcasting a first BLE (Bluetooth low energy) packet indicating that the electronic device is connected to a node through a second communication protocol. The method includes an operation 1201 of receiving, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node. It can be included. The method may include an operation 1205 of broadcasting a first local access network (LAN) packet through a second communication circuit (e.g., communication module 1390 in FIG. 13) in response to the second BLE packet. there is. The method is based on receiving a second LAN packet broadcast from the external electronic device in response to the first LAN packet through the second communication circuit, and providing visual information indicating the external electronic device to the electronic device 101. , 1301) may include an operation 1205 of displaying the display through a display (e.g., the display module 1360 of FIG. 13). The method includes an operation 1219 of establishing a connection between the electronic device 101, 1301 and the external electronic device through the node according to the second communication protocol, based at least in part on a user input for the visual information. may include.

일 실시예에 따르면, 상기 제1 통신 프로토콜은 BLE를 포함할 수 있다. 상기 제2 통신 프로토콜은 LAN를 포함할 수 있다.According to one embodiment, the first communication protocol may include BLE. The second communication protocol may include LAN.

일 실시예에 따르면, 상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함할 수 있다. 상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first BLE packet includes information about a service provided through the first communication protocol, and information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol. , identifier of the electronic device (101, 1301), information about the type of the electronic device (101, 1301), and whether the electronic device (101, 1301) supports or is connected to the second communication protocol. May contain indicators. The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. It may include a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or is connected to the second communication protocol, and information indicating the external electronic device.

일 실시예에 따르면, 상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함할 수 있다. 상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol. may include. The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. It may include a device identifier and information indicating the external electronic device.

일 실시예에 따르면, 상기 방법은 상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하는 동작(1215)을 포함할 수 있다. 상기 방법은 상기 인증이 성공한 경우, 상기 연결을 수립하는 동작(1219)을 포함할 수 있다.According to one embodiment, the method may include an operation 1215 of performing authentication with the external electronic device through the second communication protocol based on at least a portion of the user input for the visual information. there is. The method may include an operation 1219 of establishing the connection if the authentication is successful.

일 실시예에 따르면, 상기 방법은 상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하는 동작을 포함할 수 있다. 상기 방법은 상기 제2 LAN 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하는 동작을 포함할 수 있다. 상기 방법은 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하는 동작을 포함할 수 있다.According to one embodiment, the method may include performing an L3 (layer 3) connection with the external electronic device in order to perform the authentication. The method may include identifying the validity of the external electronic device based on the second LAN packet. The method may include maintaining the L3 connection when the validity of the external electronic device is identified.

일 실시예에 따르면, 상기 방법은 상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하는 동작(1221)을 포함할 수 있다. 상기 방법은 상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하는 동작을 포함할 수 있다. 상기 방법은 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하는 동작을 포함할 수 있다. 상기 방법은 상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하는 동작을 포함할 수 있다. 상기 방법은 상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하는 동작(1223)을 포함할 수 있다.According to one embodiment, the method includes an operation 1221 of performing a connection with the external electronic device through the first communication protocol when the authentication fails or a certain time elapses before the authentication succeeds. can do. The method may include identifying the validity of the external electronic device based on the second BLE packet. The method may include exchanging information related to security for a layer 2 (L2) connection with the external electronic device when the validity of the external electronic device is identified. The method may include an operation of releasing the connection through the first communication protocol when the exchange is completed. The method may include an operation 1223 of performing the L2 connection based on the security-related information.

상술한 바와 같은, 전자 장치(electronic device)(101, 1301)는 디스플레이(display)(예: 도 13의 디스플레이 모듈(1360))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로(예: 도 13의 통신 모듈(1390))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 제2 통신 프로토콜을 위한 제2 통신 회로(예: 도 13의 통신 모듈(1390))를 포함할 수 있다. 상기 전자 장치(101, 1301)는 프로세서(1320)를 포함할 수 있다. 상기 프로세서(1320)는, 상기 제1 통신 회로를 통해, 상기 제1 통신 프로토콜을 통해 연결가능한 제1 외부 전자 장치들을 식별하기 위한 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 제1 BLE 패킷을 방송하는 동안, 상기 제2 통신 프로토콜을 통해 연결가능한 제2 외부 전자 장치들을 식별하기 위한 제1 LAN(local access network) 패킷을 전송하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 제1 BLE 패킷에 응답하여, 상기 제1 외부 전자 장치들 중 외부 전자 장치로부터 방송된, 제2 BLE 패킷을 상기 제1 통신 회로를 통해, 수신하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 제1 LAN 패킷에 응답하여, 상기 제2 외부 전자 장치들 종 상기 외부 전자 장치로부터 전송된, 제2 LAN 패킷을 제2 통신 회로(예: 도 13의 통신 모듈(1390))를 통해, 수신하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성될 수 있다. 상기 외부 전자 장치는 상기 제2 통신 프로토콜을 통해 노드(node)와 연결될 수 있다. 상기 노드는, 상기 전자 장치가 상기 제2 통신 프로토콜을 통해 연결된 노드일 수 있다. As described above, the electronic devices 101 and 1301 may include a display (eg, the display module 1360 of FIG. 13). The electronic devices 101 and 1301 may include a first communication circuit (eg, the communication module 1390 of FIG. 13) for a first communication protocol. The electronic devices 101 and 1301 may include a second communication circuit (eg, the communication module 1390 of FIG. 13) for a second communication protocol. The electronic devices 101 and 1301 may include a processor 1320. The processor 1320 broadcasts, through the first communication circuit, a first BLE (Bluetooth low energy) packet to identify first external electronic devices connectable through the first communication protocol. It can be configured to do so. The processor 1320 may be configured to transmit a first LAN (local access network) packet for identifying second external electronic devices connectable through the second communication protocol while broadcasting the first BLE packet. there is. The processor 1320 may be configured to receive, through the first communication circuit, a second BLE packet broadcast from an external electronic device among the first external electronic devices in response to the first BLE packet. . The processor 1320, in response to the first LAN packet, sends the second LAN packet, transmitted from the second external electronic device, to a second communication circuit (e.g., the communication module of FIG. 13 (e.g., the communication module of FIG. 13) 1390)), and may be configured to receive. The processor 1320 may be configured to display visual information indicating the external electronic device through the display. The processor 1320 is configured to establish a connection between the electronic devices 101 and 1301 and the external electronic device through the node according to the second communication protocol, based at least in part on user input for the visual information. , can be configured. The external electronic device may be connected to a node through the second communication protocol. The node may be a node to which the electronic device is connected through the second communication protocol.

일 실시예에 따르면, 상기 제1 통신 프로토콜은 BLE를 포함할 수 있다. 상기 제2 통신 프로토콜은 LAN를 포함할 수 있다.According to one embodiment, the first communication protocol may include BLE. The second communication protocol may include LAN.

일 실시예에 따르면, 상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함할 수 있다. 상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first BLE packet includes information about a service provided through the first communication protocol, and information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol. , identifier of the electronic device (101, 1301), information about the type of the electronic device (101, 1301), and whether the electronic device (101, 1301) supports or is connected to the second communication protocol. May contain indicators. The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. It may include a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or is connected to the second communication protocol, and information indicating the external electronic device.

일 실시예에 따르면, 상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함할 수 있다. 상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함할 수 있다.According to one embodiment, the first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol. may include. The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. It may include a device identifier and information indicating the external electronic device.

일 실시예에 따르면, 상기 프로세서(1320)는 상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 제2 LAN 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하도록 구성될 수 있다. 상기 프로세서(1320)는 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하도록, 구성될 수 있다.According to one embodiment, the processor 1320 may be configured to perform authentication with the external electronic device through the second communication protocol based on at least a portion of the user input for the visual information. The processor 1320 may be configured to perform layer 3 (L3) connection with the external electronic device in order to perform the authentication. The processor 1320 may be configured to identify the validity of the external electronic device based on the second LAN packet. The processor 1320 may be configured to maintain the L3 connection when the validity of the external electronic device is identified.

일 실시예에 따르면, 상기 프로세서(1320)는, 상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하도록 구성될 수 있다. 상기 프로세서(1320)는, 상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하도록, 구성될 수 있다.According to one embodiment, the processor 1320 may be configured to perform authentication with the external electronic device through the second communication protocol, based on at least a portion of the user input for the visual information. . The processor 1320 may be configured to perform a connection with the external electronic device through the first communication protocol when the authentication fails or a certain period of time elapses before the authentication succeeds. The processor 1320 may be configured to identify the validity of the external electronic device based on the second BLE packet. The processor 1320 may be configured to exchange information related to security for layer 2 (L2) connection with the external electronic device when the validity of the external electronic device is identified. The processor 1320 may be configured to release the connection through the first communication protocol when the exchange is completed. The processor 1320 may be configured to perform the L2 connection based on the security-related information.

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

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

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

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

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

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

Claims (20)

전자 장치(electronic device)(101, 1301)에 있어서,
디스플레이(display);
제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로;
제2 통신 프로토콜을 위한 제2 통신 회로; 및
상기 디스플레이, 상기 제1 통신 회로 및 상기 제2 통신 회로와 작동적으로 연결된 프로세서(1320)를 포함하고, 상기 프로세서(1320)는,
상기 제1 통신 회로를 통해, 상기 전자 장치(101, 1301)가 상기 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하고,
상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하고,
상기 제2 BLE 패킷에 응답하여, 상기 제2 통신 회로를 통해 제1 LAN(local access network) 패킷을 전송하고,
상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 전송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하고,
상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성되는,
전자 장치(101, 1301).
In an electronic device (101, 1301),
display;
a first communication circuit for a first communication protocol;
a second communication circuit for a second communication protocol; and
and a processor 1320 operatively connected to the display, the first communication circuit, and the second communication circuit, wherein the processor 1320 includes,
Through the first communication circuit, the electronic device (101, 1301) broadcasts a first BLE (Bluetooth low energy) packet indicating that the electronic device (101, 1301) is connected to a node through the second communication protocol, and ,
Receiving, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node,
In response to the second BLE packet, transmitting a first local access network (LAN) packet through the second communication circuit,
Based on receiving a second LAN packet transmitted from the external electronic device in response to the first LAN packet through the second communication circuit, displaying visual information representing the external electronic device through the display,
configured to establish a connection between the electronic device (101, 1301) and the external electronic device through the node according to the second communication protocol, based at least in part on a user input for the visual information.
Electronic devices (101, 1301).
청구항 1에 있어서,
상기 제1 통신 프로토콜은 BLE를 포함하고,
상기 제2 통신 프로토콜은 LAN를 포함하는,
전자 장치(101, 1301).
In claim 1,
The first communication protocol includes BLE,
The second communication protocol includes LAN,
Electronic devices (101, 1301).
청구항 1 및 2 중 어느 한 항에 있어서,
상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함하고,
상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
전자 장치(101, 1301).
The method of any one of claims 1 and 2,
The first BLE packet includes information about a service provided through the first communication protocol, information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol, and the electronic device 101 , 1301), information on the type of the electronic device 101, 1301, and an indicator related to whether the electronic device 101, 1301 supports or is connected to the second communication protocol,
The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. Containing a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or connects to the second communication protocol, and information referring to the external electronic device,
Electronic devices (101, 1301).
청구항 1 내지 3 중 어느 한 항에 있어서,
상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함하고,
상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
전자 장치(101, 1301).
The method of any one of claims 1 to 3,
The first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol,
The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. Containing a device identifier and information referring to the external electronic device,
Electronic devices (101, 1301).
청구항 1 내지 4 중 어느 한 항에 있어서,
상기 프로세서(1320)는,
상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하고,
상기 인증이 성공한 경우, 상기 연결을 수립하도록, 구성되는
전자 장치(101, 1301).
The method of any one of claims 1 to 4,
The processor 1320,
Based on at least a portion of the user input for the visual information, perform authentication with the external electronic device through the second communication protocol,
configured to establish the connection if the authentication is successful.
Electronic devices (101, 1301).
청구항 5에 있어서,
상기 프로세서(1320)는,
상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하고,
상기 제2 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하고,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하도록, 구성되는,
전자 장치(101, 1301).
In claim 5,
The processor 1320,
To perform the authentication, perform L3 (layer 3) connection with the external electronic device,
Based on the second packet, identify the validity of the external electronic device,
configured to maintain the L3 connection when the validity of the external electronic device is identified,
Electronic devices (101, 1301).
청구항 5에 있어서,
상기 프로세서(1320)는,
상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하고,
상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하고,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하고,
상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하고,
상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하도록, 구성되는,
전자 장치(101, 1301).
In claim 5,
The processor 1320,
If the authentication fails or a certain period of time elapses before the authentication succeeds, a connection is made with the external electronic device through the first communication protocol,
Based on the second BLE packet, identify the validity of the external electronic device,
When the validity of the external electronic device is identified, exchange information related to security for L2 (layer 2) connection with the external electronic device,
When the exchange is completed, release the connection through the first communication protocol,
configured to perform the L2 connection based on the security-related information,
Electronic devices (101, 1301).
전자 장치(electronic device)(101, 1301)에 의해 수행되는 방법에 있어서,
제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로를 통해, 상기 전자 장치가 제2 통신 프로토콜을 통해 노드(node)와 연결됨을 나타내는 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하는 동작(1201),
상기 제1 BLE 패킷에 응답하여 외부 전자 장치로부터 방송된, 상기 외부 전자 장치가 상기 노드와 연결됨을 나타내는 제2 BLE 패킷을, 상기 제1 통신 회로를 통해, 수신하는 동작(1201),
상기 제2 BLE 패킷에 응답하여, 제2 통신 회로를 통해 제1 LAN(local access network) 패킷을 방송하는 동작(1205),
상기 제1 LAN 패킷에 응답하여 상기 외부 전자 장치로부터 방송된 제2 LAN 패킷을 상기 제2 통신 회로를 통해 수신하는 것에 기반하여, 상기 외부 전자 장치를 나타내는 시각적 정보를 상기 전자 장치(101, 1301)의 디스플레이를 통해 표시하는 동작(1205),
상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 상기 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하는 동작(1219)을 포함하는,
방법.
In a method performed by an electronic device (101, 1301),
Through a first communication circuit for a first communication protocol, the electronic device broadcasts a first BLE (Bluetooth low energy) packet indicating that it is connected to a node through a second communication protocol ( broadcast) operation (1201),
An operation 1201 of receiving, through the first communication circuit, a second BLE packet broadcast from an external electronic device in response to the first BLE packet, indicating that the external electronic device is connected to the node,
In response to the second BLE packet, broadcasting a first local access network (LAN) packet through a second communication circuit (1205),
Based on receiving a second LAN packet broadcast from the external electronic device in response to the first LAN packet through the second communication circuit, visual information indicating the external electronic device is sent to the electronic device (101, 1301). An operation 1205 of indicating through a display of
An operation 1219 of establishing a connection between the electronic device 101, 1301 and the external electronic device through the node according to the second communication protocol, based at least in part on a user input for the visual information. ,
method.
청구항 8에 있어서,
상기 제1 통신 프로토콜은 BLE를 포함하고,
상기 제2 통신 프로토콜은 LAN를 포함하는,
방법.
In claim 8,
The first communication protocol includes BLE,
The second communication protocol includes LAN,
method.
청구항 8 및 9 중 어느 한 항에 있어서,
상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함하고,
상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
방법.
The method of any one of claims 8 and 9,
The first BLE packet includes information about a service provided through the first communication protocol, information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol, and the electronic device 101 , 1301), information on the type of the electronic device 101, 1301, and an indicator related to whether the electronic device 101, 1301 supports or is connected to the second communication protocol,
The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. Containing a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or connects to the second communication protocol, and information referring to the external electronic device,
method.
청구항 8 내지 10 중 어느 한 항에 있어서,
상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함하고,
상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
방법.
The method of any one of claims 8 to 10,
The first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol,
The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. Containing a device identifier and information referring to the external electronic device,
method.
청구항 8 내지 11 중 어느 한 항에 있어서,
상기 방법은,
상기 시각적 정보에 대한 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하는 동작(1215),
상기 인증이 성공한 경우, 상기 연결을 수립하는 동작(1219)을 더 포함하는,
방법.
The method of any one of claims 8 to 11,
The method is:
An operation 1215 of performing authentication with the external electronic device through the second communication protocol, based on at least a portion of the user input for the visual information,
If the authentication is successful, further comprising an operation 1219 of establishing the connection.
method.
청구항 12에 있어서,
상기 방법은,
상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하는 동작,
상기 제2 LAN 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하는 동작,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하는 동작을 더 포함하는,
방법.
In claim 12,
The method is:
An operation of performing an L3 (layer 3) connection with the external electronic device to perform the authentication,
An operation of identifying the validity of the external electronic device based on the second LAN packet,
Further comprising maintaining the L3 connection when the validity of the external electronic device is identified,
method.
청구항 13에 있어서,
상기 방법은,
상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하는 동작(1221),
상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하는 동작,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하는 동작,
상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하는 동작,
상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하는 동작(1223)을 더 포함하는,
방법.
In claim 13,
The method is:
If the authentication fails or a certain period of time elapses before the authentication succeeds, an operation of performing a connection with the external electronic device through the first communication protocol (1221),
An operation of identifying the validity of the external electronic device based on the second BLE packet,
When the validity of the external electronic device is identified, exchanging information related to security for L2 (layer 2) connection with the external electronic device;
When the exchange is completed, an operation of releasing the connection through the first communication protocol;
Further comprising an operation 1223 of performing the L2 connection based on the security-related information.
method.
전자 장치(electronic device)(101, 1301)에 있어서,
디스플레이(display);
제1 통신 프로토콜(communication protocol)을 위한 제1 통신 회로;
제2 통신 프로토콜을 위한 제2 통신 회로; 및
상기 디스플레이, 상기 제1 통신 회로 및 상기 제2 통신 회로와 작동적으로 연결된 프로세서(1320)를 포함하고, 상기 프로세서(1320)는,
상기 제1 통신 회로를 통해, 상기 제1 통신 프로토콜을 통해 연결가능한 제1 외부 전자 장치들을 식별하기 위한 제1 BLE(Bluetooth low energy) 패킷(packet)을 방송(broadcast)하고,
상기 제1 BLE 패킷을 방송하는 동안, 상기 제2 통신 프로토콜을 통해 연결가능한 제2 외부 전자 장치들을 식별하기 위한 제1 LAN(local access network) 패킷을 전송하고,
상기 제1 BLE 패킷에 응답하여, 상기 제1 외부 전자 장치들 중 외부 전자 장치로부터 방송된, 제2 BLE 패킷을 상기 제1 통신 회로를 통해, 수신하고,
상기 제1 LAN 패킷에 응답하여, 상기 제2 외부 전자 장치들 중 상기 외부 전자 장치로부터 전송된, 제2 LAN 패킷을 상기 제2 통신 회로를 통해, 수신하고,
상기 외부 전자 장치를 나타내는 시각적 정보를 상기 디스플레이를 통해 표시하고,
상기 시각적 정보에 대한 사용자 입력의 적어도 일부 기반하여, 상기 제2 통신 프로토콜에 따라 노드를 통해 상기 전자 장치(101, 1301)와 상기 외부 전자 장치 사이의 연결을 수립하도록, 구성되고,
상기 외부 전자 장치는 상기 제2 통신 프로토콜을 통해 상기 노드(node)와 연결되고,
상기 노드는, 상기 전자 장치가 상기 제2 통신 프로토콜을 통해 연결된 노드인,
전자 장치(101, 1301).
In an electronic device (101, 1301),
display;
a first communication circuit for a first communication protocol;
a second communication circuit for a second communication protocol; and
and a processor 1320 operatively connected to the display, the first communication circuit, and the second communication circuit, wherein the processor 1320 includes,
Broadcasting, through the first communication circuit, a first BLE (Bluetooth low energy) packet to identify first external electronic devices connectable through the first communication protocol,
While broadcasting the first BLE packet, transmitting a first local access network (LAN) packet to identify second external electronic devices connectable through the second communication protocol,
In response to the first BLE packet, receive a second BLE packet broadcast from an external electronic device among the first external electronic devices through the first communication circuit,
In response to the first LAN packet, receive, through the second communication circuit, a second LAN packet transmitted from the external electronic device among the second external electronic devices,
Displaying visual information indicating the external electronic device through the display,
configured to establish a connection between the electronic device (101, 1301) and the external electronic device through a node according to the second communication protocol, based at least in part on user input for the visual information,
The external electronic device is connected to the node through the second communication protocol,
The node is a node to which the electronic device is connected through the second communication protocol,
Electronic devices (101, 1301).
청구항 15에 있어서,
상기 제1 통신 프로토콜은 BLE를 포함하고,
상기 제2 통신 프로토콜은 LAN를 포함하는,
전자 장치(101, 1301).
In claim 15,
The first communication protocol includes BLE,
The second communication protocol includes LAN,
Electronic devices (101, 1301).
청구항 15 및 16 중 어느 한 항에 있어서,
상기 제1 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제1 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보, 상기 전자 장치(101, 1301)의 식별자(identity), 상기 전자 장치(101, 1301)의 종류에 대한 정보, 상기 전자 장치(101, 1301)의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자를 포함하고,
상기 제2 BLE 패킷은, 상기 제1 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 BLE 패킷이 상기 제1 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 상기 외부 전자 장치의 종류에 대한 정보, 상기 외부 전자 장치의 상기 제2 통신 프로토콜의 지원 또는 연결 여부와 관련된 지시자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
전자 장치(101, 1301).
The method of any one of claims 15 and 16,
The first BLE packet includes information about a service provided through the first communication protocol, information indicating that the first BLE packet is a packet for requesting a connection using the first communication protocol, and the electronic device 101 , 1301), information on the type of the electronic device 101, 1301, and an indicator related to whether the electronic device 101, 1301 supports or is connected to the second communication protocol,
The second BLE packet includes information about a service provided through the first communication protocol, information indicating that the second BLE packet is a packet for responding to a connection request using the first communication protocol, and the external electronic device. Containing a device identifier, information about the type of the external electronic device, an indicator related to whether the external electronic device supports or connects to the second communication protocol, and information referring to the external electronic device,
Electronic devices (101, 1301).
청구항 15 내지 17 중 어느 한 항에 있어서,
상기 제1 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보 및 상기 제1 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결을 요청하기 위한 패킷임을 지시하는 정보를 포함하고,
상기 제2 LAN 패킷은, 상기 제2 통신 프로토콜을 통해 제공되는 서비스에 대한 정보, 상기 제2 LAN 패킷이 상기 제2 통신 프로토콜을 이용한 연결 요청에 대하여 응답하기 위한 패킷임을 지시하는 정보, 상기 외부 전자 장치의 식별자, 및 상기 외부 전자 장치를 지칭하는 정보를 포함하는,
전자 장치(101, 1301).
The method of any one of claims 15 to 17,
The first LAN packet includes information about a service provided through the second communication protocol and information indicating that the first LAN packet is a packet for requesting a connection using the second communication protocol,
The second LAN packet includes information about a service provided through the second communication protocol, information indicating that the second LAN packet is a packet for responding to a connection request using the second communication protocol, and the external electronic device. Containing a device identifier and information referring to the external electronic device,
Electronic devices (101, 1301).
청구항 15 내지 18 중 어느 한 항에 있어서,
상기 프로세서(1320)는,
상기 시각적 정보에 대한 상기 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하고,
상기 인증을 수행하기 위하여, 상기 외부 전자 장치와 L3(layer 3) 연결을 수행하고,
상기 제2 LAN 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하고,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 L3 연결을 유지하도록, 구성되는,
전자 장치(101, 1301).
The method of any one of claims 15 to 18,
The processor 1320,
Based on at least a portion of the user input for the visual information, perform authentication with the external electronic device through the second communication protocol,
To perform the authentication, perform L3 (layer 3) connection with the external electronic device,
Based on the second LAN packet, identify the validity of the external electronic device,
configured to maintain the L3 connection when the validity of the external electronic device is identified,
Electronic devices (101, 1301).
청구항 15 내지 18 중 어느 한 항에 있어서,
상기 프로세서(1320)는,
상기 시각적 정보에 대한 상기 사용자 입력의 적어도 일부에 기반하여, 상기 제2 통신 프로토콜을 통해 상기 외부 전자 장치와 인증(authentication)을 수행하고,
상기 인증이 실패되거나, 상기 인증이 성공되기 전 일정 시간이 경과한 경우, 상기 외부 전자 장치와 상기 제1 통신 프로토콜을 통한 연결을 수행하고,
상기 제2 BLE 패킷에 기반하여, 상기 외부 전자 장치의 유효성을 식별하고,
상기 외부 전자 장치의 유효성이 식별된 경우, 상기 외부 전자 장치와 L2(layer 2) 연결을 위한 보안과 관련된 정보를 교환하고,
상기 교환이 완료된 경우, 상기 제1 통신 프로토콜을 통한 연결을 해제하고,
상기 보안과 관련된 정보에 기반하여, 상기 L2 연결을 수행하도록, 구성되는,
전자 장치(101, 1301).
The method of any one of claims 15 to 18,
The processor 1320,
Based on at least a portion of the user input for the visual information, perform authentication with the external electronic device through the second communication protocol,
If the authentication fails or a certain period of time elapses before the authentication succeeds, a connection is made with the external electronic device through the first communication protocol,
Based on the second BLE packet, identify the validity of the external electronic device,
When the validity of the external electronic device is identified, exchange information related to security for L2 (layer 2) connection with the external electronic device,
When the exchange is completed, release the connection through the first communication protocol,
configured to perform the L2 connection based on the security-related information,
Electronic devices (101, 1301).
KR1020220173731A 2022-10-28 2022-12-13 Electronic device and method for connecting with an external electronic device in a network KR20240062866A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20220141909 2022-10-28
KR1020220141909 2022-10-28

Publications (1)

Publication Number Publication Date
KR20240062866A true KR20240062866A (en) 2024-05-10

Family

ID=91072209

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220173731A KR20240062866A (en) 2022-10-28 2022-12-13 Electronic device and method for connecting with an external electronic device in a network

Country Status (1)

Country Link
KR (1) KR20240062866A (en)

Similar Documents

Publication Publication Date Title
US20230291559A1 (en) Electronic device for controlling power consumption of accessory device and operating method therefor
KR20240062866A (en) Electronic device and method for connecting with an external electronic device in a network
KR20220124939A (en) Method for performing shared secret key update and electronic device for supporting the same
US20240048613A1 (en) Electronic device and method of forming wi-fi peer to peer (p2p) group
US20240129300A1 (en) Remote authorization method and electronic device for performing same method
US20230396671A1 (en) Method for managing persistent group information of electronic device
EP4319103A1 (en) Electronic device, and method by which electronic device performs cloud onboarding of external electronic device
US20230362711A1 (en) Electronic device for providing information of access point in wireless communication system and method thereof
US20230155733A1 (en) Device and method for transmitting response packet
KR20240020631A (en) An electronic device and a method of forming wi-fi p2p group thereof
US20240121616A1 (en) Apparatus and method for remote control of electronic device
US20240015209A1 (en) Electronic device for performing wi-fi direct group communication, and method therefor
US20230128203A1 (en) Electronic device for performing sa query in wlan system and operating method thereof
US20240049266A1 (en) Electronic device for device-provisioning in wireless network, and operating method therefor
US20230084624A1 (en) Electronic device for performing scan in wireless lan system and method for operating same
KR20240055593A (en) Electronic device for selecting a channel between the electronic device and an external electronic device based on a capability information of the external electronic device and method for the same
KR20240017718A (en) Electronic device for communicating via bluetooth connection
KR20240077360A (en) Electronic device, method, and non-transitory computer readable storage medium obtaining key in wireless environment
KR20240018326A (en) Electronic device for providing discovery service and operating method thereof
KR20230056963A (en) Electronic device for performing sa query in wlan system and operating method thereof
KR20240011059A (en) Electronic device for performing connection of device to device communication based on capability information of an external electronic device and method for the same
KR20230159210A (en) Method for adjusting data transmission order and apparatus for performing the same
KR20240016844A (en) Electronic device including a plurality of subscriber identity modules and operating method thereof
KR20230013412A (en) Electronic device for performing medium synchronization of a link and method for the same
KR20230150696A (en) Authentication method of electronic device and method of the same