CROSS-REFERENCE TO RELATED APPLICATION

This application is based on and claims priority under 35 U.S.C. § 119 to Korean Patent Application No. 10-2018-0122037, filed on Oct. 12, 2018, in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety.

BACKGROUND

1. Field

The disclosure relates to an electronic device and an operating method thereof, and more particularly, to an electronic device and method of optimally determining a peer-to-peer (P2P) operating channel upon a P2P connection.

2. Description of Related Art

Wireless-Fidelity Direct (Wi-Fi Direct) is Wi-Fi based technology defined and authenticated as a standard by the Wi-Fi Alliance. Wi-Fi Direct provides a peer-to-peer (P2P) protocol connection method for direct communications between terminals without network infrastructure equipment, such as an access point (AP) or a router.

A user connects his/her device directly to another device on a network through Wi-Fi Direct to use a desired service, instead of first connecting his/her device to an AP and then connecting it to the other device on the network. Lately, Wi-Fi Direct is installed on various devices, such as TVs, laptop computers, cameras, printers, game consoles, and smart phones, to transmit or share content, such as pictures, video, games, etc., through direct connections between terminals.

A P2P operating channel that will be used for a Wi-Fi Direct connection is determined when a P2P group is created, and generally, a device that will perform a group owner (GO) role selects an operating channel. Wireless network performance (throughput, packet loss, etc.) depends on a P2P operating channel setting upon a P2P connection, and accordingly, optimal channels need to be set according to scenarios for efficient use of wireless bandwidths.

Applications, such as Miracast and device-to-device file transfer, are representative Wi-Fi Direct based application services that can provide a seamless service when a sufficient wireless bandwidth is secured. An operation most influencing wireless network performance during a Wi-Fi Direct connection process is an operation of setting an operating channel in a GO. Setting an operating channel to a 5 GHz band having relatively small interference is more advantageous in view of Wi-Fi Direct connection performance than setting the operating channel to a 2.4 GHz band.

SUMMARY

Provided are an electronic device and method capable of improving wireless performance by determining a peer-to-peer (P2P) operating channel based on Bluetooth connection information greatly influencing communication performance upon a P2P connection.

Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments of the disclosure.

According to an embodiment of the disclosure, an electronic device includes: a communication interface; a memory storing one or more instructions; and a processor configured to execute the one or more instructions stored in the memory, wherein the processor executes the one or more instructions to acquire access point (AP) connection information of the electronic device about a wireless connection to an access point and Bluetooth (BT) connection information of the electronic device about a connection to a Bluetooth device, receive, from a peer device attempting to establish a P2P connection to the electronic device, AP connection information of the peer device about a wireless connection to an AP, determine a P2P operating channel between the electronic device and the peer device based on the AP connection information and the BT connection information of the electronic device and the AP connection information of the peer device, and establish a P2P connection between the electronic device and the peer device according to the determined P2P operating channel.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine whether the electronic device has been connected to the Bluetooth device, from the BT connection information, and determine the P2P operating channel by considering the BT connection information prior to the AP connection information of the electronic device and the AP connection information of the peer device according to the determination.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine, as the P2P operating channel, a channel not overlapping with a channel which the electronic device uses for the connection to the Bluetooth device, in consideration of the BT connection information of the electronic device.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine a 5 GHz AP channel connected to the electronic device as the P2P operating channel, when the electronic device has been connected to the Bluetooth device and connected to an AP of a 5 GHz band.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine a basic 5 GHz preference channel set by the electronic device or a 5 GHz channel preferred by the peer device as the P2P operating channel, when the electronic device has been connected to the Bluetooth device and connected to an AP of a 2.4 GHz band.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine a basic 5 GHz preference channel set by the electronic device or a 5 GHz channel preferred by the peer device as the P2P operating channel, when the peer device has not been connected to an AP.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to further receive BT connection information of the peer device about a connection to a Bluetooth device from the peer device, and determine the P2P operating channel further based on the BT connection information of the peer device.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to acquire the AP connection information and the BT connection information of the peer device from a message received from the peer device for a P2P search or a connection request.

According to an embodiment of the disclosure, the message received from the peer device may include at least one of a group owner (GO) negotiation request message or an invitation request message.

According to an embodiment of the disclosure, the AP connection information and the BT connection information of the peer device may be acquired through a vender specific information element of the GO negotiation request message or the invitation request message.

According to an embodiment of the disclosure, the AP connection information of the electronic device may include information about whether the electronic device has been connected to the access point and information about a channel which the electronic device uses for the connection to the access point, and the AP connection information of the peer device may include information about whether the peer device has been connected to the access point and information about a channel which the peer device uses for the connection to the access point.

According to an embodiment of the disclosure, the processor may be further configured to execute the one or more instructions to determine the P2P operating channel further based on information about whether the electronic device supports dual simultaneous band (DSB) and information about whether the peer device supports real simultaneous dual band (RSDB).

According to an embodiment of the disclosure, an operating method of an electronic device includes: acquiring AP connection information of the electronic device about a wireless connection to an access point and BT connection information of the electronic device about a connection to a Bluetooth device; receiving, from a peer device attempting to establish a P2P connection to the electronic device, AP connection information of the peer device about a wireless connection to an access point; determining a P2P operating channel between the electronic device and the peer device based on the AP connection information and the BT connection information of the electronic device and the AP connection information of the peer device; and establishing a P2P connection between the electronic device and the peer device according to the determined P2P operating channel.

According to an embodiment of the disclosure, there is provided a computer program product including a computer-readable recording medium storing a program for performing an operating method of an electronic device, the operating method including: acquiring AP connection information of the electronic device about a wireless connection to an access point and BT connection information of the electronic device about a connection to a Bluetooth device; receiving, from a peer device attempting to establish a P2P connection to the electronic device, AP connection information of the peer device about a wireless connection to an access point; determining a P2P operating channel between the electronic device and the peer device based on the AP connection information and the BT connection information of the electronic device and the AP connection information of the peer device; and establishing a P2P connection between the electronic device and the peer device according to the determined P2P operating channel.

