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-2019-0037873, filed on Apr. 1, 2019 in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety.

BACKGROUND

Field

The disclosure relates to an electronic apparatus capable of wirelessly communicating with an external apparatus such as a mobile apparatus or the like and a control method thereof, and for example, to an electronic apparatus, which performs communication connection with an external apparatus through various wireless communication protocols, and a control method thereof.

Description of Related Art

To compute and process predetermined information in accordance with certain processes, an electronic apparatus basically includes a central processing unit (CPU), a chipset, a memory, and the like electronic components for the computation. Such an electronic apparatus may be variously classified in accordance with what information will be processed and what it is used for. For example, the electronic apparatus is classified into an information processing apparatus such as a personal computer (PC), a server or the like for processing general information; an image processing apparatus for processing image data; an audio apparatus for audio process; home appliances for miscellaneous household chores; etc. The image processing apparatus may be embodied by a display apparatus that displays an image based on processed image data on its own display panel. Further, the electronic apparatus is classified into a stationary type of being installed at one place and a mobile type of being carriable by a user according to use modes.

A display apparatus used at general home as a television (TV) has various operation modes such as a normal mode for reproducing a broadcast program to display a broadcast screen, a standby mode for operating at only minimum standby power while turning off the screen without reproducing the broadcast program, a so-called ambient mode for reproducing no broadcast programs but displaying a previously prepared standby image on the screen, etc. The display apparatus may selectively operate in one among various operation modes according to previously designated conditions.

As an example of such conditions, the display apparatus may identify whether a user is near the installation place of the display apparatus. Because the standby image displayed on the screen in the ambient mode is prepared for being viewed by a user, it may be less effective when the user is not close to the display apparatus. That is, in a case where the display apparatus is not displaying a broadcast image, the display apparatus operates in the ambient mode when a user is near, and operates in the standby mode when a user is not near.

To identify whether a user is close to the display apparatus, the display apparatus may identify whether preset short-range wireless communication with a mobile apparatus carried by the user is possible or not. To enable the display apparatus to wirelessly communicate with the mobile apparatus, these two electronic apparatuses have to support one or more wireless communication protocols in common, and the display apparatus needs to have the Internet protocol (IP) address and physical network address of the mobile apparatus based on the wireless communication protocol. Thus, the display apparatus operates in the ambient mode when the short-range wireless communication with the mobile apparatus of the user is possible, and switches over to the standby mode when the short-range wireless communication with the mobile apparatus is not possible.

SUMMARY

Embodiments of the disclosure provide an example electronic apparatus including: a first communication circuit configured to perform wireless communication in a first mode; a second communication circuit configured to perform wireless communication with an access point in a second mode; and a processor configured to control the electronic apparatus to: obtain first identification information for a first mode-based wireless communication of an external apparatus through the first communication circuit, obtain address information for a second mode-based wireless communication of the external apparatus through the first communication circuit, obtain second identification information for the second mode-based wireless communication of the external apparatus through the second communication circuit using the obtained address, identify whether communication connection with the external apparatus is established through the first communication circuit or the second communication circuit based on the obtained first identification information, address information and second identification information, and perform an operation based on whether the communication connection with the external apparatus is established.

The first mode-based wireless communication may include Bluetooth communication complying with institute of electrical and electronic engineers (IEEE) 802.15 standards, and the second mode-based wireless communication may include a wireless local area network (WLAN) communication complying with IEEE 802.11 standards.

The first identification information for the first mode-based wireless communication may include medium access control (MAC) address information for Bluetooth communication, and the second identification information for the second mode-based wireless communication may include MAC address information for WLAN communication.

The address information for the second mode-based wireless communication may include Internet protocol (IP) address.

The processor may be configured to control the electronic apparatus to: transmit in a broadcast mode a request for the second identification information based on the IP address to a plurality of external apparatuses connected to the access point, and receive a response including the second identification information from the external apparatus corresponding to the IP address among the plurality of external apparatuses through the second communication circuit.

The processor may be configured to control the electronic apparatus to: store a record that the response including the second identification information has not been received, and periodically transmit the request based on the stored record.

The processor may be configured to control the electronic apparatus to: transmit the request corresponding to the access point connected through the second communication circuit based on the IP address, is the IP address being identified as equal to an access point to which the external apparatus is connected, and update the records of the external apparatus.

The processor may be configured to control the electronic apparatus to: obtain identification information of an access point to which the external apparatus is connected from the external apparatus through the first communication circuit, and identify whether the access point is equal to the access point connected through the second communication circuit based on the obtained identification information.

The processor may be configured to control the electronic apparatus to: transmit in a unicast mode a request for the second identification information based on the IP address to the external apparatus through the second communication circuit, based on the second identification information obtained through the first communication circuit, and identify that the external apparatus is within a specified proximity to the electronic apparatus based on the response received from the external apparatus.

The processor may be configured to identify whether the IP address corresponding to the obtained second identification information has been changed, and control the electronic apparatus to reobtain the changed IP address by scanning the IP addresses within an address range of a subnet network, based on the change in the IP address.

The processor may be configured to control the electronic apparatus to: display an image based on identification of communication connection with the external apparatus, and stop displaying the image based on identification of communication disconnection from the external apparatus while displaying the image.

The first mode may include one-to-one communication without using the access point, the first mode having a shorter communication range than the second mode.

The processor may control the electronic apparatus to perform communication connection using the second communication circuit based on disconnection of communication connection using the first communication circuit.

The processor may control the electronic apparatus to transmit a guide message for accessing the access point to the external apparatus through the first communication circuit, based on not obtaining the second identification information even though communication connection using the first communication circuit is possible.

Based on not obtaining the second identification information while being connected to a certain access point among a plurality of access points through the second communication circuit, the processor may control the electronic apparatus to obtain the second identification information by accessing another access point among the plurality of access points.

The processor may control the electronic apparatus to obtain the IP address from the external apparatus through the first communication circuit.

The processor may control the electronic apparatus to transmit the first identification information to a server through the second communication circuit, and receive the IP address corresponding to the first identification information from the server through the second communication circuit.

According to another example embodiment of the disclosure of the present disclosure, a method of controlling an electronic apparatus is provided, the method including: obtaining first identification information for first mode-based wireless communication of an external apparatus through a first communication circuit configured to perform wireless communication in a first mode; obtaining address information for second mode-based wireless communication of the external apparatus through the first communication circuit; obtaining second identification information for second mode-based wireless communication of the external apparatus through the second communication circuit using the obtained address through a second communication circuit configured to perform wireless communication with an access point in a second mode; identifying whether communication connection with the external apparatus is established through the first communication circuit or the second communication circuit, based on the obtained first identification information, address information and second identification information; and performing an operation based on whether the communication connection with the external apparatus is established.

