KR102614044B1 - Method and apparatus for providing miracast - Google Patents

Method and apparatus for providing miracast Download PDF

Info

Publication number
KR102614044B1
KR102614044B1 KR1020160112874A KR20160112874A KR102614044B1 KR 102614044 B1 KR102614044 B1 KR 102614044B1 KR 1020160112874 A KR1020160112874 A KR 1020160112874A KR 20160112874 A KR20160112874 A KR 20160112874A KR 102614044 B1 KR102614044 B1 KR 102614044B1
Authority
KR
South Korea
Prior art keywords
electronic device
display
external electronic
information
coordinates
Prior art date
Application number
KR1020160112874A
Other languages
Korean (ko)
Other versions
KR20180025763A (en
Inventor
김민기
김태형
이명석
이영록
최용하
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to KR1020160112874A priority Critical patent/KR102614044B1/en
Publication of KR20180025763A publication Critical patent/KR20180025763A/en
Application granted granted Critical
Publication of KR102614044B1 publication Critical patent/KR102614044B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

본 발명의 다양한 실시 예들은 전자 장치에서 미라캐스트(miracast) 서비스(기능)를 제공하는 방법 및 장치에 관하여 개시한다. 본 발명의 다양한 실시 예들에 따르면, 전자 장치에 있어서, 미라캐스트(miracast) 연결 및 데이터 송수신을 위한 무선 통신부, 데이터 표시를 위한 디스플레이, 및 상기 무선 통신부 및 상기 디스플레이와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하고, 상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하고, 상기 외부 전자 장치가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 상기 해상도에 기반하여 생성하고, 및 상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하도록 구성할 수 있다. 다양한 실시 예들이 가능하다.Various embodiments of the present invention disclose a method and device for providing a Miracast service (function) in an electronic device. According to various embodiments of the present invention, an electronic device includes a wireless communication unit for Miracast connection and data transmission and reception, a display for displaying data, and a processor functionally connected to the wireless communication unit and the display, The processor obtains device information from an external electronic device connected to Miracast, determines the resolution and display type of the external electronic device based on the device information, and, if the external electronic device is a vertical display, displays the device on the vertical display. Corresponding data may be generated based on the resolution, and the data may be transmitted to the external electronic device using the wireless communication unit. Various embodiments are possible.

Description

미라캐스트 제공 장치 및 방법{METHOD AND APPARATUS FOR PROVIDING MIRACAST}Miracast providing device and method {METHOD AND APPARATUS FOR PROVIDING MIRACAST}

본 발명의 다양한 실시 예들은 전자 장치에서 미라캐스트(miracast) 서비스(기능)를 제공하는 방법 및 장치에 관하여 개시한다.Various embodiments of the present invention disclose a method and device for providing a Miracast service (function) in an electronic device.

최근 디지털 기술의 발달과 함께 이동통신 단말기, 스마트폰(smart phone), 태블릿(tablet) PC(personal computer), 전자수첩, 노트북(notebook), PDA(personal digital assistant), 웨어러블 장치(wearable device) 등과 같은 다양한 유형의 전자 장치가 널리 사용되고 있다.With the recent development of digital technology, mobile communication terminals, smart phones, tablet PCs (personal computers), electronic organizers, laptops, PDAs (personal digital assistants), wearable devices, etc. Various types of electronic devices are widely used.

전자 장치는, 복합적인 기능들을 갖춘 멀티미디어 기기(multimedia player) 형태로 구현되고 있다. 예를 들면, 전자 장치는 음성 통화 및 영상 통화 등과 같은 통화 기능, SMS(short message service)/MMS(multimedia message service) 및 전자메일(e-mail) 등과 같은 메시지 송수신 기능, 무선(예: 블루투스, 와이파이(Wi-Fi, wireless fidelity) 등) 통신 기능, 유선(예: HDMI, high definition multimedia interface) 통신 기능, 촬영 기능, 방송 재생 기능, 동영상 재생 기능, 음악 재생 기능, 인터넷 기능, 메신저 기능, 게임 기능, 또는 소셜 네트워크 서비스(SNS, social networking service) 기능 등을 제공할 수 있다. Electronic devices are implemented in the form of multimedia players with complex functions. For example, electronic devices may include call functions such as voice calls and video calls, message sending and receiving functions such as SMS (short message service)/MMS (multimedia message service) and e-mail, wireless (e.g. Bluetooth, Wi-Fi (Wi-Fi, wireless fidelity, etc.) communication function, wired (e.g. HDMI, high definition multimedia interface) communication function, shooting function, broadcast playback function, video playback function, music playback function, Internet function, messenger function, game functions, or social networking service (SNS) functions, etc. may be provided.

최근에는, 전자 장치와 외부 전자 장치(예: 디스플레이가 가능한 장치로, 일 예로, 텔레비전, 모니터 등)를 무선으로 연결(접속)하는 기술(예: 미라캐스트(miracast))을 이용한 서비스(또는 기능)의 사용이 증가하고 있다. 예를 들면, 사용자는 전자 장치에 표시된 화면을, 전자 장치가 무선으로 연결된 외부 전자 장치(예: 텔레비전, 모니터 등)의 디스플레이를 통해 표시하여 공유할 수 있다. 이러한 서비스(또는 기능)는 전자 장치의 제조사에 따라 미라캐스트, 스크린 미러링(screen mirroring), 에어플레이(airplay) 또는 WiDi(wireless display) 등과 같은 명칭으로 제공되고 있다.Recently, services (or functions) using technology (e.g., Miracast) to wirelessly connect (connect) electronic devices and external electronic devices (e.g., devices capable of display, such as televisions, monitors, etc.) ) is increasing in use. For example, a user can share the screen displayed on the electronic device by displaying it on the display of an external electronic device (e.g., television, monitor, etc.) to which the electronic device is wirelessly connected. These services (or functions) are provided under names such as Miracast, screen mirroring, airplay, or WiDi (wireless display), depending on the manufacturer of the electronic device.

한편, 현재 미라캐스트에 의한 서비스(또는 기능)는, 외부 전자 장치(또는 디스플레이)가 가로 방향(landscape orientation)인 경우에 특화되어 있다. 따라서 현재 미라캐스트에서는 세로 방향(portrait orientation)의 디스플레이에 대해서는 지원되지 않거나, 또는 전자 장치의 데이터가 회전되어 제공될 수 있다. 예를 들면, 미라캐스트에서는 외부 전자 장치의 가로 방향의 해상도(resolution)(예: 1280x1024, 1920x1080, 2560x1440 등)를 기준으로 전자 장치로부터 전송되는 데이터가 디스플레이에 표시될 수 있다. 따라서 외부 전자 장치가 세로 방향의 디스플레이 형태인 경우, 데이터는 가로 방향의 해상도를 기준으로 회전되어 제공될 수 있다. 예를 들면, 전자 장치의 세로 레이아웃(portrait layout)의 데이터가 디스플레이를 통해 90도(또는 -90도) 회전되어 세로 방향으로 제공되거나, 전자 장치의 가로 레이아웃(landscape layout)의 데이터가 디스플레이를 통해 90도(또는 -90도) 회전되어 가로 방향으로 제공될 수 있다. 이를 보정하기 위하여, 종래에서는 데이터를 수신하는 외부 전자 장치(예: 싱크 장치(sink device))에서, 회전된 데이터를 다시 보정(예: 역회전)하는 처리(예: 이미지 프로세싱)를 통해, 전자 장치에 표시되는 레이아웃과 동일한 형태의 레이아웃을 가지도록 하고 있다. 하지만, 이는 외부 전자 장치가 반드시 이미지 프로세싱을 위한 기능을 지원해야 가능할 수 있다.Meanwhile, the current Miracast service (or function) is specialized for cases where the external electronic device (or display) is in landscape orientation. Therefore, the current Miracast does not support portrait orientation displays, or the data of the electronic device may be provided in a rotated manner. For example, in Miracast, data transmitted from an electronic device can be displayed on the display based on the horizontal resolution of the external electronic device (e.g., 1280x1024, 1920x1080, 2560x1440, etc.). Therefore, if the external electronic device has a vertical display, data may be rotated and provided based on the horizontal resolution. For example, data in a portrait layout of an electronic device is rotated 90 degrees (or -90 degrees) through the display and presented in a portrait orientation, or data in a landscape layout of an electronic device is provided in a vertical orientation through the display. It can be rotated 90 degrees (or -90 degrees) and presented in landscape orientation. To correct this, conventionally, through processing (e.g. image processing) to re-correct (e.g. reverse rotation) the rotated data in an external electronic device (e.g. sink device) that receives data, electronic It is intended to have the same layout as the layout displayed on the device. However, this may only be possible if the external electronic device supports functions for image processing.

다양한 실시 예들에서는, 전자 장치(예: 소스 장치)에서 외부 전자 장치(예: 싱크 장치)의 세로 방향의 디스플레이에 대응하는 공유 데이터(예: 화면 데이터, 재생 데이터)를 생성하여, 외부 전자 장치에 전송할 수 있는 방법 및 장치에 관하여 개시한다.In various embodiments, an electronic device (e.g., source device) generates shared data (e.g., screen data, playback data) corresponding to the vertical display of an external electronic device (e.g., sink device), and transmits the shared data (e.g., screen data, playback data) to the external electronic device (e.g., sink device). Discloses a method and device for transmission.

다양한 실시 예들에서는, 전자 장치에서 외부 전자 장치의 디스플레이 타입(예: 세로 방향이 기본으로 고정된 세로형 디스플레이, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 디스플레이)에 대응하여, 공유 데이터를 생성할 수 있는 방법 및 장치에 관하여 개시한다.In various embodiments, shared data is stored in an electronic device in response to the display type of the external electronic device (e.g., a vertical display with a fixed vertical orientation as a default, a display used by rotating a display with a default horizontal orientation to the vertical orientation). Disclosed is a method and device for generating a.

다양한 실시 예들에서는, 전자 장치에서 외부 전자 장치에 공유 데이터를 전송할 때, 특정 정보(예: 동작 모드 정보 또는 컨텐츠 방향 정보)의 추가 전송 없이, 외부 전자 장치의 디스플레이 타입에 대응하는 공유 데이터를 생성하여 전송할 수 있는 방법 및 장치에 관하여 개시한다.In various embodiments, when transmitting shared data from an electronic device to an external electronic device, shared data corresponding to the display type of the external electronic device is generated without additional transmission of specific information (e.g., operation mode information or content direction information). Discloses a method and device for transmission.

다양한 실시 예들에서는, 외부 전자 장치에서 동작 모드에 따른 사용자 입력 백 채널(UIBC, user input back channel)에 대한 처리를 다르게 수행하지 않고, 인식된 좌표에 기반하여 전자 장치의 제어에 관련된 제어 메시지를 생성하여 전송할 수 있는 방법 및 장치에 관하여 개시한다.In various embodiments, an external electronic device does not perform different processing on a user input back channel (UIBC) depending on the operation mode, but generates a control message related to control of the electronic device based on the recognized coordinates. A method and device for transmitting information is disclosed.

본 발명의 다양한 실시 예들에 따른 전자 장치는, 미라캐스트(miracast) 연결 및 데이터 송수신을 위한 무선 통신부, 데이터 표시를 위한 디스플레이, 및 상기 무선 통신부 및 상기 디스플레이와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하고, 상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하고, 상기 외부 전자 장치가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 상기 해상도에 기반하여 생성하고, 및 상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하도록 구성할 수 있다.An electronic device according to various embodiments of the present invention includes a wireless communication unit for Miracast connection and data transmission and reception, a display for displaying data, and a processor functionally connected to the wireless communication unit and the display, wherein the processor Obtains device information from an external electronic device connected to Miracast, determines the resolution and display type of the external electronic device based on the device information, and, if the external electronic device is a vertical display, displays a device corresponding to the vertical display. Data may be generated based on the resolution, and the data may be transmitted to the external electronic device using the wireless communication unit.

본 발명의 다양한 실시 예들에 따른 전자 장치의 동작 방법은, 미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하는 과정, 상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하는 과정, 상기 외부 전자 장치가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 상기 해상도에 기반하여 생성하는 과정, 및 상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하는 과정을 포함할 수 있다.A method of operating an electronic device according to various embodiments of the present invention includes a process of obtaining device information from an external electronic device connected to Miracast, a process of determining the resolution and display type of the external electronic device based on the device information, If the external electronic device is a vertical display, the process may include generating data corresponding to the vertical display based on the resolution and transmitting the data to the external electronic device using the wireless communication unit. .

상기와 같은 과제를 해결하기 위하여 본 발명의 다양한 실시 예들에서는, 상기 방법을 프로세서에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록 매체를 포함할 수 있다.In order to solve the above problems, various embodiments of the present invention may include a computer-readable recording medium on which a program for executing the method on a processor is recorded.

다양한 실시 예들에 따른 전자 장치 및 그의 동작 방법에 따르면, 전자 장치(예: 소스 장치)에서 외부 전자 장치(예: 싱크 장치)의 세로 방향의 디스플레이에 대응하는 공유 데이터(예: 화면 데이터, 재생 데이터)를 생성하여 외부 전자 장치에 전송할 수 있다. 예를 들면, 다양한 실시 예들에 따르면, 전자 장치에 의해 외부 전자 장치의 디스플레이 타입(예: 세로 방향이 기본으로 고정된 세로형 디스플레이, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 디스플레이)에 대응하여, 공유 데이터를 생성할 수 있다. 따라서, 외부 전자 장치는 수신된 공유 데이터에 대해 추가적인 처리(예: 공유 데이터 스케일링, 공유 데이터 회전 등) 동작 없이, 수신된 공유 데이터를 바로 표시할 수 있다. 다양한 실시 예들에 따르면, 전자 장치는 외부 전자 장치의 해상도와 디스플레이 타입에 맞추어 공유 데이터를 제공함에 따라, 외부 전자 장치에서 공유 데이터에 대한 추가 처리가 없으므로, 스케일링 또는 회전 등에 따른 화질 열화를 줄일 수 있다.According to an electronic device and a method of operating the same according to various embodiments, shared data (e.g., screen data, playback data) corresponding to the vertical display of an external electronic device (e.g., sink device) is provided in an electronic device (e.g., source device). ) can be generated and transmitted to an external electronic device. For example, according to various embodiments, the display type of the external electronic device (e.g., a vertical display with a default fixed portrait orientation, a display used by rotating a display with a default horizontal orientation to the portrait orientation) is controlled by the electronic device. In response, shared data can be created. Accordingly, the external electronic device can immediately display the received shared data without performing additional processing on the received shared data (e.g., scaling shared data, rotating shared data, etc.). According to various embodiments, as the electronic device provides shared data according to the resolution and display type of the external electronic device, there is no additional processing of the shared data in the external electronic device, thereby reducing image quality degradation due to scaling or rotation. .

다양한 실시 예들에 따르면, 전자 장치는 외부 전자 장치에 공유 데이터를 전송할 때, 특정 정보(예: 동작 모드 정보 또는 컨텐츠 방향 정보)의 추가 전송 없이, 외부 전자 장치의 디스플레이 타입에 대응하는 공유 데이터를 생성하여 전송할 수 있다. 따라서, 전자 장치는 해상도 변경 등에 따른 처리(예: 인코더 변경(change) 등)를 수행하지 않을 수 있고, 그에 따른 전류 소모를 줄일 수 있다. 다양한 실시 예들에 따르면, 외부 전자 장치의 동작 모드에 따른 사용자 입력 백 채널(UIBC, user input back channel)에 대한 처리를 동일하게 처리함에 따라, 사용자 입력을 보다 빠르게 인식 및 처리할 수 있다. 다양한 실시 예들에 따른 전자 장치에 의해, 전자 장치의 사용성, 편의성 및 경쟁력을 향상시키는데 기여할 수 있다.According to various embodiments, when transmitting shared data to an external electronic device, the electronic device generates shared data corresponding to the display type of the external electronic device without additional transmission of specific information (e.g., operation mode information or content direction information). You can transmit it. Accordingly, the electronic device may not perform processing (e.g., encoder change, etc.) according to resolution change, etc., and the resulting current consumption may be reduced. According to various embodiments, as the user input back channel (UIBC) is processed equally according to the operation mode of the external electronic device, user input can be recognized and processed more quickly. Electronic devices according to various embodiments can contribute to improving the usability, convenience, and competitiveness of electronic devices.

도 1은 본 발명의 다양한 실시 예들에 따른 전자 장치를 포함하는 네트워크 환경을 도시하는 도면이다.
도 2는 본 발명의 다양한 실시 예들에 따른 전자 장치의 블록도이다.
도 3은 본 발명의 다양한 실시 예들에 따른 프로그램 모듈의 블록도이다.
도 4는 본 발명의 다양한 실시 예들에 따른 전자 장치들의 예를 설명하기 위해 도시하는 도면들이다.
도 5는 본 발명의 다양한 실시 예들에 따른 전자 장치들 간에 미라캐스트를 이용한 서비스를 제공하는 예를 설명하기 위해 도시하는 도면이다.
도 6은 본 발명의 다양한 실시 예들에 따른 전자 장치의 미라캐스트 서비스를 제공하는 동작 방법을 도시하는 흐름도이다.
도 7 및 도 8은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스의 동작 시나리오의 일 예를 설명하기 위해 도시하는 도면들이다.
도 9 및 도 10은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스의 동작 시나리오의 다른 예를 설명하기 위해 도시하는 도면들이다.
도 11은 본 발명의 다양한 실시 예들에 따른 전자 장치의 미라캐스트 서비스를 제공하는 동작 방법을 도시하는 흐름도이다.
도 12는 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스 시 사용자 입력을 처리하는 동작 예를 설명하기 위해 도시하는 도면이다.
도 13은 본 발명의 다양한 실시 예들에 따른 전자 장치에서 사용자 입력을 처리하는 동작 방법을 도시하는 흐름도이다.
도 14는 본 발명의 다양한 실시 예들에 따른 전자 장치에서 사용자 입력을 처리하는 동작 방법을 도시하는 흐름도이다.
도 15 및 도 16은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스 시 사용자 입력을 처리하는 동작 시나리오를 설명하기 위해 도시하는 도면들이다.
1 is a diagram illustrating a network environment including electronic devices according to various embodiments of the present invention.
Figure 2 is a block diagram of an electronic device according to various embodiments of the present invention.
Figure 3 is a block diagram of a program module according to various embodiments of the present invention.
FIG. 4 is a diagram illustrating examples of electronic devices according to various embodiments of the present invention.
FIG. 5 is a diagram illustrating an example of providing a service using Miracast between electronic devices according to various embodiments of the present invention.
FIG. 6 is a flowchart illustrating a method of providing a Miracast service for an electronic device according to various embodiments of the present invention.
Figures 7 and 8 are diagrams to explain an example of an operation scenario of the Miracast service according to various embodiments of the present invention.
Figures 9 and 10 are diagrams to explain another example of an operation scenario of the Miracast service according to various embodiments of the present invention.
FIG. 11 is a flowchart illustrating an operation method for providing a Miracast service of an electronic device according to various embodiments of the present invention.
FIG. 12 is a diagram illustrating an example of an operation for processing user input during Miracast service according to various embodiments of the present invention.
FIG. 13 is a flowchart illustrating a method of processing user input in an electronic device according to various embodiments of the present invention.
FIG. 14 is a flowchart illustrating a method of processing user input in an electronic device according to various embodiments of the present invention.
Figures 15 and 16 are diagrams illustrating operation scenarios for processing user input during Miracast service according to various embodiments of the present invention.

이하, 본 문서의 다양한 실시 예들이 첨부된 도면을 참조하여 기재된다. 실시 예 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 본 문서에서, "A 또는 B" 또는 "A 및/또는 B 중 적어도 하나" 등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", "첫째", 또는 "둘째" 등의 표현들은 해당 구성요소들을, 순서 또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에 "(기능적으로 또는 통신적으로) 연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다.Hereinafter, various embodiments of this document are described with reference to the attached drawings. The embodiments and terms used herein are not intended to limit the technology described in this document to a specific embodiment, and should be understood to include various changes, equivalents, and/or substitutes for the embodiments. In connection with the description of the drawings, similar reference numbers may be used for similar components. Singular expressions may include plural expressions, unless the context clearly indicates otherwise. In this document, expressions such as “A or B” or “at least one of A and/or B” may include all possible combinations of the items listed together. Expressions such as “first,” “second,” “first,” or “second” can modify the elements in question, regardless of order or importance, and can be used to distinguish one element from another. However, it does not limit the components. When a component (e.g., a first) component is said to be "connected (functionally or communicatively)" or "connected" to another (e.g., second) component, it means that the component is connected to the other component. It may be connected directly to a component or may be connected through another component (e.g., a third component).

본 문서에서, "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, 하드웨어(hardware)적 또는 소프트웨어(software)적으로 "~에 적합한", "~하는 능력을 가지는", "~하도록 변경된", "~하도록 만들어진", "~를 할 수 있는", 또는 "~하도록 설계된"과 상호 호환적으로(interchangeably) 사용될 수 있다. 어떤 상황에서는, "~하도록 구성된 장치"라는 표현은, 그 장치가 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리 장치에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(generic-purpose processor)(예: CPU(central processing unit) 또는 AP(application processor))를 의미할 수 있다. In this document, "configured to" means "suitable for," "having the ability to," depending on the situation, for example, in terms of hardware or software. ", "changed to," "made to," "capable of," or "designed to." In some contexts, the expression “a device configured to” may mean that the device is “capable of” working with other devices or components. For example, the phrase "processor configured (or set) to perform A, B, and C" refers to a processor dedicated to performing the operations (e.g., an embedded processor), or by executing one or more software programs stored on a memory device. , may refer to a general-purpose processor (e.g., central processing unit (CPU) or application processor (AP)) capable of performing the corresponding operations.

본 문서의 다양한 실시 예들에 따른 전자 장치는, 예를 들면, 스마트폰, 태블릿 PC, 이동 전화기, 영상 전화기, 전자책 리더기, 데스크탑 PC, 랩탑 PC, 넷북 컴퓨터, 워크스테이션, 서버, PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 의료기기, 카메라, 또는 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다. 웨어러블 장치는 액세서리형(예: 시계, 반지, 팔찌, 발찌, 목걸이, 안경, 콘택트 렌즈, 또는 머리 착용형 장치(HMD(head-mounted-device)), 직물 또는 의류 일체형(예: 전자 의복), 신체 부착형(예: 스킨 패드(skin pad) 또는 문신), 또는 생체 이식형 회로(implantable circuit) 중 적어도 하나를 포함할 수 있다. 어떤 실시 예들에서, 전자 장치는, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스, 홈 오토매이션 컨트롤 패널, 보안 컨트롤 패널, 미디어 박스(예: 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(예: XboxTM, PlayStationTM), 전자 사전, 전자 키, 캠코더, 또는 전자 액자 중 적어도 하나를 포함할 수 있다.Electronic devices according to various embodiments of the present document include, for example, smartphones, tablet PCs, mobile phones, video phones, e-book readers, desktop PCs, laptop PCs, netbook computers, workstations, servers, and personal digital assistants (PDAs). assistant), a portable multimedia player (PMP), an MP3 player, a medical device, a camera, or a wearable device. Wearable devices may be accessory (e.g., watches, rings, bracelets, anklets, necklaces, glasses, contact lenses, or head-mounted-devices (HMDs)), fabric or clothing-integrated (e.g., electronic clothing), The electronic device may include at least one of a body-attached circuit (e.g., a skin pad or a tattoo), or an implantable circuit. In some embodiments, the electronic device may include, for example, a television, a DVD, or a television. (digital video disk) player, audio, refrigerator, air conditioner, vacuum cleaner, oven, microwave, washing machine, air purifier, set-top box, home automation control panel, security control panel, media box (e.g. Samsung HomeSync TM , Apple TV TM , or Google TV TM ), a game console (e.g., Xbox TM , PlayStation TM ), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame.

다른 실시 예에서, 전자 장치는, 각종 의료기기(예: 각종 휴대용 의료측정기기(예: 혈당 측정기, 심박 측정기, 혈압 측정기, 또는 체온 측정기 등), MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 또는 초음파기 등), 네비게이션 장치, 위성 항법 시스템(GNSS, global navigation satellite system), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트 장치, 선박용 전자 장비(예: 선박용 항법 장치, 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛(head unit), 산업용 또는 가정용 로봇, 드론(drone), 금융 기관의 ATM(automated teller machine), 상점의 POS(point of sales), 또는 사물 인터넷(IoT, internet of things) 장치(예: 전구, 각종 센서, 스프링클러 장치, 화재 경보기, 온도조절기, 가로등, 토스터, 운동기구, 온수탱크, 히터, 보일러 등) 중 적어도 하나를 포함할 수 있다. 어떤 실시 예에 따르면, 전자 장치는 가구, 건물/구조물 또는 자동차의 일부, 전자 보드(electronic board), 전자 사인 수신 장치(electronic signature receiving device), 프로젝터, 또는 각종 계측 기기(예: 수도, 전기, 가스, 또는 전파 계측 기기 등) 중 적어도 하나를 포함할 수 있다. 다양한 실시 예들에서, 전자 장치는 플렉서블(flexible)하거나, 또는 전술한 다양한 장치들 중 둘 이상의 조합일 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다. 본 문서에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다.In another embodiment, the electronic device may include various medical devices (e.g., various portable medical measurement devices (e.g., blood glucose meters, heart rate monitors, blood pressure monitors, or temperature monitors), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), etc. ), CT (computed tomography), imaging device, or ultrasonic device, etc.), navigation device, global navigation satellite system (GNSS), EDR (event data recorder), FDR (flight data recorder), automobile infotainment device, marine electronics Equipment (e.g. marine navigation systems, gyro compasses, etc.), avionics, security devices, head units for vehicles, industrial or domestic robots, drones, and automated teller machines (ATMs) in financial institutions. , a store's point of sales (POS), or Internet of Things (IoT) devices (e.g. light bulbs, various sensors, sprinkler devices, fire alarms, thermostats, street lights, toasters, exercise equipment, hot water tanks, heaters, A boiler, etc.) may be included. According to some embodiments, the electronic device may be a piece of furniture, a building/structure, or a vehicle, an electronic board, an electronic signature receiving device, a projector, or various measuring devices (e.g., water, electrical, It may include at least one of gas, radio wave measuring equipment, etc.). In various embodiments, the electronic device may be flexible, or may be a combination of two or more of the various devices described above. Electronic devices according to embodiments of this document are not limited to the above-mentioned devices. In this document, the term user may refer to a person using an electronic device or a device (e.g., an artificial intelligence electronic device) using an electronic device.

도 1은 다양한 실시 예들에 따른 전자 장치를 포함하는 네트워크 환경을 도시하는 도면이다.FIG. 1 is a diagram illustrating a network environment including electronic devices according to various embodiments.

도 1을 참조하여, 다양한 실시 예들에서의, 네트워크 환경(100) 내의 전자 장치(101)가 기재된다. 전자 장치(101)는 버스(110), 프로세서(120), 메모리(130), 입출력 인터페이스(150), 디스플레이(160), 및 통신 인터페이스(170)를 포함할 수 있다. 어떤 실시 예에서, 전자 장치(101)는, 구성요소들 중 적어도 하나를 생략하거나 다른 구성요소를 추가적으로 구비할 수 있다. 1, an electronic device 101 within a network environment 100, in various embodiments, is described. The electronic device 101 may include a bus 110, a processor 120, a memory 130, an input/output interface 150, a display 160, and a communication interface 170. In some embodiments, the electronic device 101 may omit at least one of the components or may additionally include another component.

버스(110)는 구성요소들(110-170)을 서로 연결하고, 구성요소들 간의 통신(예: 제어 메시지 또는 데이터)을 전달하는 회로를 포함할 수 있다. The bus 110 connects the components 110 to 170 to each other and may include circuitry that transfers communication (eg, control messages or data) between the components.

프로세서(120)는, 중앙처리장치(CPU), 어플리케이션 프로세서(AP), 또는 커뮤니케이션 프로세서(CP(communication processor)) 중 하나 또는 그 이상을 포함할 수 있다. 프로세서(120)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 실행할 수 있다. 다양한 실시 예들에 따른 프로세서(120)의 처리(또는 제어) 동작은 후술하는 도면들을 참조하여 구체적으로 설명된다.The processor 120 may include one or more of a central processing unit (CPU), an application processor (AP), or a communication processor (CP). The processor 120 may, for example, perform operations or data processing related to control and/or communication of at least one other component of the electronic device 101. Processing (or control) operations of the processor 120 according to various embodiments will be described in detail with reference to the drawings described later.

메모리(130)는, 휘발성 메모리(volatile memory) 및/또는 비휘발성 메모리(non-volatile memory)를 포함할 수 있다. 메모리(130)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소에 관계된 명령 또는 데이터를 저장할 수 있다. 한 실시 예에 따르면, 메모리(130)는 소프트웨어 및/또는 프로그램(140)을 저장할 수 있다. 프로그램(140)은, 예를 들면, 커널(kernel)(141), 미들웨어(middleware)(143), 어플리케이션 프로그래밍 인터페이스(API(application programming interface))(145), 및/또는 어플리케이션 프로그램(application program)(또는 "어플리케이션")(147) 등을 포함할 수 있다. 커널(141), 미들웨어(143), 또는 API(145)의 적어도 일부는, 운영 시스템(OS, operating system)으로 지칭될 수 있다. Memory 130 may include volatile memory and/or non-volatile memory. For example, the memory 130 may store commands or data related to at least one other component of the electronic device 101. According to one embodiment, memory 130 may store software and/or program 140. The program 140 includes, for example, a kernel 141, middleware 143, an application programming interface (API) 145, and/or an application program. (or “application”) 147, etc. may be included. At least a portion of the kernel 141, middleware 143, or API 145 may be referred to as an operating system (OS).

메모리(130)는, 프로세서(120)에 의해 실행되는 하나 또는 그 이상의 프로그램들(one or more programs)을 저장할 수 있고, 입/출력되는 데이터들의 임시 저장을 위한 기능을 수행할 수도 있다. 다양한 실시 예들에 따라, 메모리(130)는 획득된 데이터를 저장하는 역할을 담당하며, 실시간으로 획득된 데이터는 일시적인 저장 장치(예: 버퍼)에 저장할 수 있고, 저장하기로 확정된 데이터는 오래 보관 가능한 저장 장치에 저장할 수 있다. 메모리(130)는, 다양한 실시 예들에 따른 방법을 프로세서(120)에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록 매체를 포함할 수 있다. The memory 130 may store one or more programs executed by the processor 120 and may also perform a function for temporary storage of input/output data. According to various embodiments, the memory 130 is responsible for storing acquired data, and data acquired in real time can be stored in a temporary storage device (e.g., a buffer), and data confirmed to be stored can be stored for a long time. It can be saved to any available storage device. The memory 130 may include a computer-readable recording medium on which a program for executing a method according to various embodiments of the present invention on the processor 120 is recorded.

커널(141)은, 예를 들면, 다른 프로그램들(예: 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147))에 구현된 동작 또는 기능을 실행하는 데 사용되는 시스템 리소스들(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)을 제어 또는 관리할 수 있다. 또한, 커널(141)은 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147)에서 전자 장치(101)의 개별 구성요소에 접근함으로써, 시스템 리소스들을 제어 또는 관리할 수 있는 인터페이스를 제공할 수 있다. Kernel 141 may, for example, provide system resources (e.g., middleware 143, API 145, or application program 147) used to execute operations or functions implemented in other programs (e.g., : Bus 110, processor 120, or memory 130, etc.) can be controlled or managed. In addition, the kernel 141 provides an interface for controlling or managing system resources by accessing individual components of the electronic device 101 in the middleware 143, API 145, or application program 147. You can.

미들웨어(143)는, 예를 들면, API(145) 또는 어플리케이션 프로그램(147)이 커널(141)과 통신하여 데이터를 주고받을 수 있도록 중개 역할을 수행할 수 있다. 또한, 미들웨어(143)는 어플리케이션 프로그램(147)으로부터 수신된 하나 이상의 작업 요청들을 우선 순위에 따라 처리할 수 있다. 예를 들면, 미들웨어(143)는 어플리케이션 프로그램(147) 중 적어도 하나에 전자 장치(101)의 시스템 리소스(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)를 사용할 수 있는 우선 순위를 부여하고, 상기 하나 이상의 작업 요청들을 처리할 수 있다. API(145)는 어플리케이션(147)이 커널(141) 또는 미들웨어(143)에서 제공되는 기능을 제어하기 위한 인터페이스로, 예를 들면, 파일(file) 제어, 윈도우(window) 제어, 영상 처리, 또는 문자 제어 등을 위한 적어도 하나의 인터페이스 또는 함수(function)(예: 명령어)를 포함할 수 있다. The middleware 143 may, for example, perform an intermediary role so that the API 145 or the application program 147 can communicate with the kernel 141 to exchange data. Additionally, the middleware 143 may process one or more work requests received from the application program 147 according to priority. For example, the middleware 143 may use system resources (e.g., bus 110, processor 120, or memory 130, etc.) of the electronic device 101 for at least one of the application programs 147. Priority may be assigned and the one or more work requests may be processed. The API 145 is an interface for the application 147 to control functions provided by the kernel 141 or middleware 143, for example, file control, window control, image processing, or It may include at least one interface or function (e.g., command) for character control, etc.

입출력 인터페이스(150)는, 예를 들면, 사용자 또는 외부 기기로부터 입력된 명령 또는 데이터를 전자 장치(101)의 다른 구성요소(들)에 전달하거나, 또는 전자 장치(101)의 다른 구성요소(들)로부터 수신된 명령 또는 데이터를 사용자 또는 외부 기기로 출력할 수 있다. 예를 들면, 유/무선 헤드폰 포트(port), 외부 충전기 포트, 유/무선 데이터 포트, 메모리 카드(memory card) 포트, 오디오 입/출력(input/output) 포트, 비디오 입/출력 포트, 이어폰 포트 등이 입출력 인터페이스(150)에 포함될 수 있다.For example, the input/output interface 150 transmits commands or data input from a user or an external device to other component(s) of the electronic device 101, or to other component(s) of the electronic device 101. ) can be output to the user or an external device. For example, wired/wireless headphone port, external charger port, wired/wireless data port, memory card port, audio input/output port, video input/output port, earphone port. etc. may be included in the input/output interface 150.

디스플레이(160)는, 예를 들면, 액정 디스플레이(LCD, liquid crystal display), 발광 다이오드(LED, light emitting diode) 디스플레이, 유기 발광 다이오드(OLED, organic LED) 디스플레이, 능동형 OLED(AMOLED, active matrix OLED), 마이크로 전자기계 시스템(MEMS, micro-electromechanical systems) 디스플레이, 또는 전자종이(electronic paper) 디스플레이 등을 포함할 수 있다. 디스플레이(160)는, 예를 들면, 사용자에게 각종 콘텐츠(예: 텍스트, 이미지, 비디오, 아이콘, 및/또는 심볼 등)를 표시할 수 있다. 디스플레이(160)는, 터치 스크린(touchscreen)을 포함할 수 있으며, 예를 들면, 전자 펜 또는 사용자의 신체의 일부를 이용한 터치, 제스처, 근접, 또는 호버링 입력을 수신할 수 있다. The display 160 may be, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, or an active matrix OLED (AMOLED). ), micro-electromechanical systems (MEMS) displays, or electronic paper displays. For example, the display 160 may display various contents (e.g., text, images, videos, icons, and/or symbols, etc.) to the user. The display 160 may include a touchscreen and may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a part of the user's body.

디스플레이(160)는, 예를 들면, 사용자에게 시각적인 출력(visual output)을 보여줄 수 있다. 시각적 출력은 텍스트(text), 그래픽(graphic), 비디오(video)와 이들의 조합의 형태로 나타날 수 있다. 디스플레이(160)는 전자 장치(101)에서 처리되는 다양한 정보를 표시(출력)할 수 있다. 예를 들면, 디스플레이(160)는 전자 장치의 사용과 관련된 유저 인터페이스(UI, user interface) 또는 그래픽 유저 인터페이스(GUI, graphical UI)를 표시할 수 있다.The display 160 may, for example, show visual output to the user. Visual output can appear in the form of text, graphics, video, and combinations thereof. The display 160 can display (output) various information processed by the electronic device 101. For example, the display 160 may display a user interface (UI) or a graphical user interface (GUI) related to the use of the electronic device.

다양한 실시 예들에 따라, 디스플레이(160)는 전자 장치(101)에 의해 수행되는 동작과 관련된 다양한 UI 또는 GUI를 표시할 수 있다. 다양한 실시 예들에 따른 전자 장치(101)에서, 유저 인터페이스에 기반하여 제공하는 다양한 화면 예시들에 대해 후술하는 도면들을 참조하여 설명된다.According to various embodiments, the display 160 may display various UIs or GUIs related to operations performed by the electronic device 101. In the electronic device 101 according to various embodiments, various examples of screens provided based on a user interface will be described with reference to the drawings described later.

통신 인터페이스(170)는, 예를 들면, 전자 장치(101)와 외부 장치(예: 제 1 외부 전자 장치(102), 제 2 외부 전자 장치(104), 또는 서버(106)) 간의 통신을 설정할 수 있다. 예를 들면, 통신 인터페이스(170)는 무선 통신 또는 유선 통신을 통해서 네트워크(162)에 연결되어 외부 장치(예: 제 2 외부 전자 장치(104) 또는 서버(106))와 통신할 수 있다.The communication interface 170, for example, establishes communication between the electronic device 101 and an external device (e.g., the first external electronic device 102, the second external electronic device 104, or the server 106). You can. For example, the communication interface 170 may be connected to the network 162 through wireless or wired communication and communicate with an external device (eg, the second external electronic device 104 or the server 106).

무선 통신은, 예를 들면, LTE(long term evolution), LTE-A(LTE Advance), CDMA(code division multiple access), WCDMA(wideband CDMA), UMTS(universal mobile telecommunications system), WiBro(wireless broadband), 또는 GSM(global system for mobile communications) 등 중 적어도 하나를 사용하는 셀룰러 통신을 포함할 수 있다. 한 실시 예에 따르면, 무선 통신은, 예를 들면, WiFi(wireless fidelity), WiGig(wireless gigabit alliance), 블루투스(Bluetooth), 블루투스 저전력(BLE, Bluetooth low energy), 지그비(Zigbee), NFC(near field communication), 자력 시큐어 트랜스미션(magnetic secure transmission), 라디오 프리퀀시(RF, radio frequency), 또는 보디 에어리어 네트워크(BAN, body area network) 중 적어도 하나를 포함할 수 있다. 한 실시 예에 따르면, 무선 통신은 GNSS를 포함할 수 있다. GNSS는, 예를 들면, GPS(global positioning system), Glonass(global navigation satellite system), Beidou Navigation Satellite System(이하 “Beidou”) 또는 Galileo, the European global satellite-based navigation system일 수 있다. 이하, 본 문서에서는, “GPS”는 “GNSS”와 상호 호환적으로 사용될 수 있다. Wireless communications include, for example, long term evolution (LTE), LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), universal mobile telecommunications system (UMTS), and wireless broadband (WiBro). , or GSM (global system for mobile communications), etc. may include cellular communication using at least one of the following. According to one embodiment, wireless communication includes, for example, WiFi (wireless fidelity), WiGig (wireless gigabit alliance), Bluetooth, Bluetooth low energy (BLE), Zigbee, and NFC (near). It may include at least one of field communication, magnetic secure transmission, radio frequency (RF), or body area network (BAN). According to one embodiment, wireless communications may include GNSS. GNSS may be, for example, global positioning system (GPS), global navigation satellite system (Glonass), Beidou Navigation Satellite System (hereinafter “Beidou”), or Galileo, the European global satellite-based navigation system. Hereinafter, in this document, “GPS” may be used interchangeably with “GNSS.”

유선 통신은, 예를 들면, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard 232), 전력선 통신(power line communication), 또는 POTS(plain old telephone service) 등 중 적어도 하나를 포함할 수 있다. Wired communications include, for example, universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard 232 (RS-232), power line communication, or plain old telephone service (POTS). It can contain at least one.

네트워크(162)는 텔레커뮤니케이션 네트워크(telecommunications network), 예를 들면, 컴퓨터 네트워크(예: LAN(local area network) 또는 WAN(wide area network)), 인터넷, 또는 텔레폰 네트워크(telephone network) 중 적어도 하나를 포함할 수 있다.Network 162 is a telecommunications network, for example, at least one of a computer network (e.g., a local area network (LAN) or a wide area network (WAN)), the Internet, or a telephone network. It can be included.

제1 외부 전자 장치(102) 및 제2 외부 전자 장치(104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 다양한 실시 예들에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 다른 하나 또는 복수의 전자 장치(예: 전자 장치(102, 104), 또는 서버(106))에서 실행될 수 있다. 한 실시 예에 따르면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로 또는 요청에 의하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 그와 연관된 적어도 일부 기능을 다른 장치(예: 전자 장치(102, 104), 또는 서버(106))에게 요청할 수 있다. 다른 전자 장치(예: 전자 장치(102, 104), 또는 서버(106))는 요청된 기능 또는 추가 기능을 실행하고, 그 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 수신된 결과를 그대로 또는 추가적으로 처리하여 요청된 기능이나 서비스를 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅(cloud computing), 분산 컴퓨팅(distributed computing), 또는 클라이언트-서버 컴퓨팅(client-server computing) 기술이 이용될 수 있다.Each of the first external electronic device 102 and the second external electronic device 104 may be the same or different type of device from the electronic device 101. According to various embodiments, all or part of the operations performed in the electronic device 101 may be executed in one or more electronic devices (eg, the electronic devices 102 and 104, or the server 106). According to one embodiment, when the electronic device 101 is to perform a certain function or service automatically or upon request, the electronic device 101 performs the function or service instead of or in addition to executing the function or service on its own. At least some of the related functions may be requested from another device (eg, the electronic devices 102 and 104, or the server 106). Another electronic device (e.g., electronic device 102, 104, or server 106) may execute the requested function or additional function and transmit the result to electronic device 101. The electronic device 101 may process the received results as is or additionally to provide the requested function or service. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology can be used.

도 2는 다양한 실시 예들에 따른 전자 장치의 블록도이다.2 is a block diagram of an electronic device according to various embodiments.

전자 장치(201)는, 예를 들면, 도 1에 도시된 전자 장치(101)의 전체 또는 일부를 포함할 수 있다. 전자 장치(201)는 하나 이상의 프로세서(예: AP)(210), 통신 모듈(220), 가입자 식별 모듈(224), 메모리(230), 센서 모듈(240), 입력 장치(250), 디스플레이(260), 인터페이스(270), 오디오 모듈(280), 카메라 모듈(291), 전력 관리 모듈(295), 배터리(296), 인디케이터(297), 및 모터(298) 등을 포함할 수 있다. 다양한 실시 예들에서, 전자 장치(201)는 도 2에 도시된 구성들이 필수적인 것은 아니어서, 도 2에 도시된 구성들보다 많은 구성들을 가지거나, 또는 그보다 적은 구성들을 가지는 것으로 구현될 수 있다. 예를 들어, 다양한 실시 예들에 따른 전자 장치(201)는 그 종류에 따라, 어느 일부 구성요소를 포함하지 않을 수 있다. 다양한 실시 예들에 따라, 전술한 전자 장치(201)의 구성들은 전자 장치(201)의 하우징(또는 베젤, 본체)에 안착되거나, 또는 그 외부에 형성될 수 있다.The electronic device 201 may include, for example, all or part of the electronic device 101 shown in FIG. 1 . The electronic device 201 includes one or more processors (e.g., AP) 210, a communication module 220, a subscriber identification module 224, a memory 230, a sensor module 240, an input device 250, and a display ( 260), an interface 270, an audio module 280, a camera module 291, a power management module 295, a battery 296, an indicator 297, and a motor 298. In various embodiments, the electronic device 201 may be implemented with more or fewer configurations than the configurations shown in FIG. 2 because the configurations shown in FIG. 2 are not essential. For example, the electronic device 201 according to various embodiments may not include some components depending on its type. According to various embodiments, the components of the electronic device 201 described above may be mounted on the housing (or bezel, main body) of the electronic device 201, or may be formed outside the housing.

프로세서(210)는, 예를 들면, 운영 체제 또는 어플리케이션 프로그램을 구동하여 프로세서(210)에 연결된 다수의 하드웨어 또는 소프트웨어 구성요소들을 제어할 수 있고, 각종 데이터 처리 및 연산을 수행할 수 있다. 프로세서(210)는, 예를 들면, SoC(system on chip)로 구현될 수 있다. 한 실시 예에 따르면, 프로세서(210)는 GPU(graphic processing unit) 및/또는 이미지 시그널 프로세서(ISP, image signal processor)를 더 포함할 수 있다. 프로세서(210)는 도 2에 도시된 구성요소들 중 적어도 일부(예: 셀룰러 모듈(221))를 포함할 수도 있다. 프로세서(210)는 다른 구성요소들(예: 비휘발성 메모리) 중 적어도 하나로부터 수신된 명령 또는 데이터를 휘발성 메모리에 로드(load)하여 처리하고, 결과 데이터를 비휘발성 메모리에 저장할 수 있다.The processor 210, for example, can run an operating system or an application program to control a number of hardware or software components connected to the processor 210, and can perform various data processing and calculations. The processor 210 may be implemented, for example, as a system on chip (SoC). According to one embodiment, the processor 210 may further include a graphic processing unit (GPU) and/or an image signal processor (ISP). The processor 210 may include at least some of the components shown in FIG. 2 (eg, the cellular module 221). The processor 210 may load and process commands or data received from at least one of the other components (eg, non-volatile memory) into the volatile memory, and store the resulting data in the non-volatile memory.

다양한 실시 예들에서, 프로세서(210)는 전자 장치(201)의 전반적인 동작을 제어할 수 있다. 다양한 실시 예들에서, 프로세서(210)는, 하나 또는 그 이상의 프로세서들(one or more processors)을 포함할 수 있다. 예를 들면, 프로세서(210)는 커뮤니케이션 프로세서(CP), 어플리케이션 프로세서(AP), 인터페이스(예: GPIO, general purpose input/output), 또는 내부 메모리 등을 별개의 구성요소로 포함하거나, 또는 하나 이상의 집적화된 회로에 집적화될 수 있다. 한 실시 예에 따라, 어플리케이션 프로세서는 여러 가지의 소프트웨어 프로그램(software program)을 실행하여 전자 장치(201)를 위한 여러 기능을 수행할 수 있고, 커뮤니케이션 프로세서는 음성 통신 및 데이터 통신을 위한 처리 및 제어를 수행할 수 있다. 프로세서(210)는 메모리(230)에 저장되어 있는 특정한 소프트웨어 모듈(예: 명령어 세트(instruction set))을 실행하여 그 모듈에 대응하는 특정한 여러 가지의 기능을 수행하는 역할을 담당할 수 있다.In various embodiments, the processor 210 may control the overall operation of the electronic device 201. In various embodiments, processor 210 may include one or more processors. For example, the processor 210 includes a communication processor (CP), an application processor (AP), an interface (e.g., general purpose input/output (GPIO)), or internal memory as separate components, or one or more It can be integrated into an integrated circuit. According to one embodiment, the application processor may execute various software programs to perform various functions for the electronic device 201, and the communication processor may perform processing and control for voice communication and data communication. It can be done. The processor 210 may be responsible for executing a specific software module (eg, an instruction set) stored in the memory 230 and performing various specific functions corresponding to the module.

다양한 실시 예들에서, 프로세서(210)는 오디오 모듈(280), 인터페이스(270), 디스플레이(260), 카메라 모듈(291), 통신 모듈(220) 등의 하드웨어적 모듈의 동작을 제어할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 전자 장치(201)의 디스플레이(260) 및 메모리(230)와 전기적으로 연결될 수 있다.In various embodiments, the processor 210 may control the operation of hardware modules such as the audio module 280, the interface 270, the display 260, the camera module 291, and the communication module 220. According to various embodiments, the processor 210 may be electrically connected to the display 260 and the memory 230 of the electronic device 201.

다양한 실시 예들에 따라, 프로세서(210)는 미라캐스트 연결된 외부 전자 장치(500)로부터 장치 정보를 획득하는 동작, 장치 정보에 기반하여 외부 전자 장치(500)의 해상도 및 디스플레이 타입을 판단하는 동작, 외부 전자 장치(500)가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 해상도에 기반하여 생성하는 동작, 및 무선 통신부를 이용하여 데이터를 외부 전자 장치(500)에 전송하는 동작을 처리할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 장치 정보에 기반하여 외부 전자 장치(500)와 공통된 최적의 해상도 결정 및, 외부 전자 장치(500)의 디스플레이 타입을 판단하고, 디스플레이 타입이 세로형 디스플레이인 경우, 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하고, 디스플레이 타입이 가로형 디스플레이인 경우, 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하는 것과 관련된 동작을 처리할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 가상 디스플레이를 이용하여, 외부 전자 장치(500)의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하는 것과 관련된 동작을 처리할 수 있다.According to various embodiments, the processor 210 may perform an operation of obtaining device information from the external electronic device 500 connected to Miracast, an operation of determining the resolution and display type of the external electronic device 500 based on the device information, and an operation of determining the resolution and display type of the external electronic device 500 based on the device information. If the electronic device 500 is a vertical display, the operation of generating data corresponding to the vertical display based on the resolution and the operation of transmitting the data to the external electronic device 500 using a wireless communication unit can be processed. . According to various embodiments, the processor 210 determines the optimal resolution common to the external electronic device 500 based on device information, determines the display type of the external electronic device 500, and determines whether the display type is a vertical display. In this case, a vertical virtual display with a determined resolution can be created, and if the display type is a horizontal display, operations related to creating a horizontal virtual display with a determined resolution can be processed. According to various embodiments, the processor 210 may process operations related to generating data corresponding to the resolution and display type of the external electronic device 500 using a virtual display.

다양한 실시 예들에 따른 프로세서(210)의 처리(또는 제어) 동작은 후술하는 도면들을 참조하여 구체적으로 설명된다.Processing (or control) operations of the processor 210 according to various embodiments will be described in detail with reference to the drawings described later.

통신 모듈(220)은, 예를 들면, 도 1에 도시된 통신 인터페이스(170)와 동일 또는 유사한 구성을 가질 수 있다. 통신 모듈(220)은, 예를 들면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227), NFC 모듈(228) 및 RF 모듈(229)을 포함할 수 있다. 도시하지는 않았으나, 통신 모듈(220)은, 예를 들면, WiGig 모듈(미도시)을 더 포함할 수도 있다. 한 실시 예에 따라, WiFi 모듈(223)과 WiGig 모듈(미도시)은 하나의 칩 형태로 통합 구현될 수도 있다.For example, the communication module 220 may have the same or similar configuration as the communication interface 170 shown in FIG. 1. The communication module 220 may include, for example, a cellular module 221, a WiFi module 223, a Bluetooth module 225, a GNSS module 227, an NFC module 228, and an RF module 229. there is. Although not shown, the communication module 220 may further include, for example, a WiGig module (not shown). According to one embodiment, the WiFi module 223 and the WiGig module (not shown) may be integrated and implemented in the form of a single chip.

셀룰러 모듈(221)은, 예를 들면, 통신 네트워크를 통해서 음성 통화, 영상 통화, 문자 서비스, 또는 인터넷 서비스 등을 제공할 수 있다. 한 실시 예에 따르면, 셀룰러 모듈(221)은 가입자 식별 모듈(예: SIM(subscriber identification module) 카드)(224)을 이용하여 통신 네트워크 내에서 전자 장치(201)의 구별 및 인증을 수행할 수 있다. 한 실시 예에 따르면, 셀룰러 모듈(221)은 프로세서(210)가 제공할 수 있는 기능 중 적어도 일부 기능을 수행할 수 있다. 한 실시 예에 따르면, 셀룰러 모듈(221)은 커뮤니케이션 프로세서(CP)를 포함할 수 있다. 어떤 실시 예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 일부(예: 두 개 이상)는 하나의 IC(integrated chip) 또는 IC 패키지 내에 포함될 수 있다.For example, the cellular module 221 may provide voice calls, video calls, text services, or Internet services through a communication network. According to one embodiment, the cellular module 221 may use a subscriber identification module (e.g., a subscriber identification module (SIM) card) 224 to distinguish and authenticate the electronic device 201 within a communication network. . According to one embodiment, the cellular module 221 may perform at least some of the functions that the processor 210 can provide. According to one embodiment, the cellular module 221 may include a communication processor (CP). According to some embodiments, at least some (e.g., two or more) of the cellular module 221, WiFi module 223, Bluetooth module 225, GNSS module 227, or NFC module 228 include one IC ( It may be included within an integrated chip (IC) or IC package.

RF 모듈(229)은, 예를 들면, 통신 신호(예: RF 신호)를 송수신할 수 있다. RF 모듈(229)은, 예를 들면, 트랜시버(transceiver), PAM(power amp module), 주파수 필터, LNA(low noise amplifier), 또는 안테나(antenna) 등을 포함할 수 있다. 다른 실시 예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 하나는 별개의 RF 모듈을 통하여 RF 신호를 송수신할 수 있다. For example, the RF module 229 may transmit and receive communication signals (eg, RF signals). The RF module 229 may include, for example, a transceiver, a power amp module (PAM), a frequency filter, a low noise amplifier (LNA), or an antenna. According to another embodiment, at least one of the cellular module 221, WiFi module 223, Bluetooth module 225, GNSS module 227, or NFC module 228 transmits and receives RF signals through a separate RF module. You can.

WiFi 모듈(223)은, 예를 들면, 무선 인터넷 접속 및 외부 장치(예: 다른 전자 장치(102) 또는 서버(106) 등)와 무선 랜 링크(link)를 형성하기 위한 모듈을 나타낼 수 있다. WiFi 모듈(223)은 전자 장치(201)에 내장되거나 외장될 수 있다. 무선 인터넷 기술로는 WiFi, WiGig, Wibro, WiMax(world interoperability for microwave access), HSDPA(high speed downlink packet access), 또는 mmWave(millimeter Wave) 등이 이용될 수 있다. WiFi 모듈(223)은 전자 장치와 직접(direct) 연결(예: P2P(peer to peer) 연결)되거나, 또는 네트워크(예: 무선 인터넷 네트워크)(예: 네트워크(162))를 통해 연결되어 있는 외부 장치(예: 다른 전자 장치(104) 등)와 연동하여, 전자 장치(201)의 다양한 데이터들을 외부로 전송하거나, 또는 외부로부터 수신할 수 있다. WiFi 모듈(223)은 상시 온(on) 상태를 유지하거나, 전자 장치의 설정 또는 사용자 입력에 따라 턴-온(turn-on)/턴-오프(turn-off) 될 수 있다.For example, the WiFi module 223 may represent a module for connecting to the wireless Internet and forming a wireless LAN link with an external device (e.g., another electronic device 102 or server 106, etc.). The WiFi module 223 may be built into or external to the electronic device 201. Wireless Internet technologies may include WiFi, WiGig, Wibro, WiMax (world interoperability for microwave access), HSDPA (high speed downlink packet access), or mmWave (millimeter Wave). The WiFi module 223 is connected directly to an electronic device (e.g., peer-to-peer (P2P) connection) or is externally connected through a network (e.g., a wireless Internet network) (e.g., network 162). By linking with a device (e.g., another electronic device 104, etc.), various data of the electronic device 201 can be transmitted to or received from the outside. The WiFi module 223 may remain on at all times or may be turned on/off depending on the settings of the electronic device or user input.

블루투스 모듈(225) 및 NFC 모듈(228)은, 예를 들면, 근거리 통신(short range communication)을 수행하기 위한 근거리 통신 모듈을 나타낼 수 있다. 근거리 통신 기술로 블루투스, 저전력 블루투스(BLE), RFID(radio frequency identification), 적외선 통신(IrDA), UWB(ultra wideband), 지그비(Zigbee), 또는 NFC 등이 이용될 수 있다. 근거리 통신 모듈은 전자 장치(201)와 네트워크(예: 근거리 통신 네트워크)를 통해 연결되어 있는 외부 장치(예: 다른 전자 장치(102) 등)와 연동하여, 전자 장치(201)의 다양한 데이터들을 외부 장치로 전송하거나 수신 받을 수 있다. 근거리 통신 모듈(예: 블루투스 모듈(225) 및 NFC 모듈(228))은 상시 온 상태를 유지하거나, 전자 장치(201)의 설정 또는 사용자 입력에 따라 턴-온/턴-오프 될 수 있다.The Bluetooth module 225 and the NFC module 228 may represent, for example, a short-range communication module for performing short-range communication. Short-range communication technologies may include Bluetooth, Bluetooth low energy (BLE), radio frequency identification (RFID), infrared communication (IrDA), ultra wideband (UWB), Zigbee, or NFC. The short-range communication module links the electronic device 201 with an external device (e.g., another electronic device 102, etc.) connected through a network (e.g., a short-range communication network) to transmit various data of the electronic device 201 to an external device. It can be sent to or received from a device. The short-range communication module (e.g., the Bluetooth module 225 and the NFC module 228) may remain on at all times or may be turned on/off depending on the settings of the electronic device 201 or user input.

가입자 식별 모듈(224)은, 예를 들면, 가입자 식별 모듈을 포함하는 카드 또는 임베디드 SIM을 포함할 수 있으며, 고유한 식별 정보(예: ICCID(integrated circuit card identifier)) 또는 가입자 정보(예: IMSI(international mobile subscriber identity))를 포함할 수 있다. Subscriber identity module 224 may include, for example, a card or embedded SIM that includes a subscriber identity module and may include unique identification information (e.g., integrated circuit card identifier (ICCID)) or subscriber information (e.g., IMSI). (international mobile subscriber identity)).

메모리(230)(예: 메모리(130))는, 예를 들면, 내장 메모리(232) 또는 외장 메모리(234)를 포함할 수 있다. 내장 메모리(232)는, 예를 들면, 휘발성 메모리(예: DRAM(dynamic RAM(random access memory)), SRAM(synchronous RAM), 또는 SDRAM(synchronous dynamic RAM) 등), 비휘발성 메모리(예: OTPROM(one time programmable ROM(read only memory)), PROM(programmable ROM), EPROM(erasable and programmable ROM), EEPROM(electrically EPROM), mask ROM, flash ROM, 플래시 메모리, 하드 드라이브, 또는 솔리드 스테이트 드라이브(SSD(solid state drive)) 중 적어도 하나를 포함할 수 있다. 외장 메모리(234)는 플래시 드라이브(flash drive), 예를 들면, CF(compact flash), SD(secure digital), Micro-SD, Mini-SD, xD(extreme digital), MMC(multi-media card) 또는 메모리 스틱 등을 포함할 수 있다. 외장 메모리(234)는 다양한 인터페이스를 통하여 전자 장치(201)와 기능적으로 또는 물리적으로 연결될 수 있다.The memory 230 (eg, memory 130) may include, for example, an internal memory 232 or an external memory 234. The built-in memory 232 may include, for example, volatile memory (e.g., dynamic random access memory (DRAM), synchronous RAM (SRAM), or synchronous dynamic RAM (SDRAM), etc.), non-volatile memory (e.g., OTPROM), (one time programmable ROM (read only memory)), programmable ROM (PROM), erasable and programmable ROM (EPROM), electrically EPROM (EEPROM), mask ROM, flash ROM, flash memory, hard drive, or solid state drive (SSD) (solid state drive). The external memory 234 may include a flash drive, for example, compact flash (CF), secure digital (SD), Micro-SD, Mini- It may include SD, xD (extreme digital), MMC (multi-media card), memory stick, etc. The external memory 234 may be functionally or physically connected to the electronic device 201 through various interfaces.

메모리(230)는 다양한 실시 예들에서, 프로세서(210)가, 미라캐스트 연결된 외부 전자 장치(500)로부터 장치 정보를 획득하고, 장치 정보에 기반하여 외부 전자 장치(500)의 해상도 및 디스플레이 타입을 판단하고, 외부 전자 장치(500)가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 해상도에 기반하여 생성하고, 무선 통신부를 이용하여 데이터를 외부 전자 장치(500)에 전송하도록 하는 것과 관련되는 하나 또는 그 이상의 프로그램들, 데이터 또는 인스트럭션들(instructions)을 저장할 수 있다. 다양한 실시 예들에 따라, 메모리(230)는 장치 정보에 기반하여 외부 전자 장치(500)와 공통된 최적의 해상도 결정 및 외부 전자 장치(500)의 디스플레이 타입을 판단하고, 디스플레이 타입이 세로형 디스플레이인 경우, 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하고, 디스플레이 타입이 가로형 디스플레이인 경우, 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하는 것과 관련되는 하나 또는 그 이상의 프로그램들, 데이터 또는 인스트럭션들을 저장할 수 있다. 다양한 실시 예들에 따라, 메모리(230)는 가상 디스플레이를 이용하여, 외부 전자 장치(500)의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하는 것과 관련되는 하나 또는 그 이상의 프로그램들, 데이터 또는 인스트럭션들을 저장할 수 있다.In various embodiments, the memory 230 allows the processor 210 to obtain device information from the external electronic device 500 connected to Miracast and determine the resolution and display type of the external electronic device 500 based on the device information. And, if the external electronic device 500 is a vertical display, data corresponding to the vertical display is generated based on the resolution and the data is transmitted to the external electronic device 500 using a wireless communication unit. Or more programs, data or instructions can be stored. According to various embodiments, the memory 230 determines the optimal resolution common to the external electronic device 500 and the display type of the external electronic device 500 based on device information, and determines the display type of the external electronic device 500 when the display type is a vertical display. , It is possible to create a vertical virtual display with a determined resolution and, when the display type is a horizontal display, to store one or more programs, data or instructions related to creating a horizontal virtual display with a determined resolution. there is. According to various embodiments, the memory 230 stores one or more programs, data, or instructions related to generating data corresponding to the resolution and display type of the external electronic device 500 using a virtual display. You can.

메모리(230)는 확장 메모리(예: 외장 메모리(234)) 또는 내부 메모리(예: 내장 메모리(232))를 포함할 수 있다. 전자 장치(201)는 인터넷 상에서 메모리(230)의 저장 기능을 수행하는 웹 스토리지(web storage)와 관련되어 동작할 수도 있다.The memory 230 may include expanded memory (eg, external memory 234) or internal memory (eg, built-in memory 232). The electronic device 201 may operate in connection with web storage that performs a storage function of the memory 230 on the Internet.

메모리(230)는 하나 또는 그 이상의 소프트웨어(또는 소프트웨어 모듈)를 저장할 수 있다. 예를 들어, 소프트웨어 구성요소는 운영 체제(operating system) 소프트웨어 모듈, 통신 소프트웨어 모듈, 그래픽 소프트웨어 모듈, 유저 인터페이스 소프트웨어 모듈, MPEG(moving picture experts group) 모듈, 카메라 소프트웨어 모듈, 또는 하나 이상의 어플리케이션 소프트웨어 모듈 등을 포함할 수 있다. 또한 소프트웨어 구성요소인 모듈은 명령어들의 집합으로 표현할 수 있으므로, 모듈을 명령어 세트(instruction set)라고 표현하기도 한다. 모듈은 또한 프로그램으로 표현하기도 한다. 본 발명의 다양한 실시 예들에서 메모리(230)는 앞서 기술한 모듈 이외에 추가적인 모듈(명령어들)을 포함할 수 있다. 또는 필요에 따라, 일부의 모듈(명령어들)을 사용하지 않을 수도 있다.Memory 230 may store one or more software (or software modules). For example, the software component may include an operating system software module, a communications software module, a graphics software module, a user interface software module, a moving picture experts group (MPEG) module, a camera software module, or one or more application software modules. may include. Additionally, since a module, which is a software component, can be expressed as a set of instructions, the module is also expressed as an instruction set. Modules are also expressed as programs. In various embodiments of the present invention, the memory 230 may include additional modules (instructions) in addition to the modules described above. Or, if necessary, some modules (commands) may not be used.

운영 체제 소프트웨어 모듈은 일반적인 시스템 동작(system operation)을 제어하는 여러 가지의 소프트웨어 구성요소를 포함할 수 있다. 이러한 일반적인 시스템 작동의 제어는, 예를 들면, 메모리 관리 및 제어, 저장 하드웨어(장치) 제어 및 관리, 또는 전력 제어 및 관리 등을 의미할 수 있다. 또한 운영 체제 소프트웨어 모듈은 여러 가지의 하드웨어(장치)와 소프트웨어 구성요소(모듈) 사이의 통신을 원활하게 하는 기능도 수행할 수 있다.Operating system software modules may include various software components that control general system operation. Control of these general system operations may mean, for example, memory management and control, storage hardware (device) control and management, or power control and management. Additionally, operating system software modules can also perform functions that facilitate communication between various hardware (devices) and software components (modules).

통신 소프트웨어 모듈은 통신 모듈(220) 또는 인터페이스(270)를 통해 웨어러블 장치, 스마트폰, 컴퓨터, 서버, 냉장고, 텔레비전, 모니터 또는 휴대용 단말기 등 다른 전자 장치와 통신을 가능하게 할 수 있다. 그리고, 통신 소프트웨어 모듈은 해당 통신 방식에 해당하는 프로토콜 구조로 구성될 수 있다.The communication software module may enable communication with other electronic devices such as wearable devices, smartphones, computers, servers, refrigerators, televisions, monitors, or portable terminals through the communication module 220 or interface 270. Additionally, the communication software module may be configured with a protocol structure corresponding to the corresponding communication method.

그래픽 소프트웨어 모듈은 디스플레이(260) 상에 그래픽(graphics)을 제공하고 표시하기 위한 여러 가지 소프트웨어 구성요소를 포함할 수 있다. 다양한 실시 예들에서, 그래픽이란 용어는 텍스트(text), 웹 페이지(web page), 아이콘(icon), 디지털 이미지(digital image), 비디오(video), 애니메이션(animation) 등을 포함하는 의미로 사용될 수 있다.The graphics software module may include various software components for providing and displaying graphics on the display 260. In various embodiments, the term graphics may be used to include text, web pages, icons, digital images, video, animation, etc. there is.

유저 인터페이스 소프트웨어 모듈은 유저 인터페이스(UI)에 관련한 여러 가지 소프트웨어 구성요소를 포함할 수 있다. 예를 들어, 유저 인터페이스의 상태가 어떻게 변경되는지 또는 유저 인터페이스 상태의 변경이 어떤 조건에서 이루어지는지 등에 대한 내용을 포함할 수 있다.A user interface software module may include various software components related to a user interface (UI). For example, it may include information about how the state of the user interface is changed or under what conditions the change in the state of the user interface occurs.

MPEG 모듈은 디지털 콘텐츠(예: 비디오, 오디오) 관련 프로세스 및 기능들(예: 콘텐츠의 생성, 재생, 배포 및 전송 등)을 가능하게 하는 소프트웨어 구성요소를 포함할 수 있다.The MPEG module may include software components that enable digital content (e.g. video, audio) related processes and functions (e.g. creation, playback, distribution and transmission of content, etc.).

카메라 소프트웨어 모듈은 카메라 관련 프로세스 및 기능들을 가능하게 하는 카메라 관련 소프트웨어 구성요소를 포함할 수 있다.A camera software module may include camera-related software components that enable camera-related processes and functions.

어플리케이션 모듈은 렌더링 엔진(rendering engine)을 포함하는 웹브라우저(browser), 이메일(email), 즉석 메시지(instant message), 워드 프로세싱(word processing), 키보드 에뮬레이션(keyboard emulation), 어드레스 북(address book), 터치 리스트(touch list), 위젯(widget), 디지털 저작권 관리(DRM, digital right management), 홍채 인식(iris scan), 상황 인지(context cognition), 음성 인식(voice recognition), 위치 결정 기능(position determining function), 위치기반 서비스(location based service) 등을 포함할 수 있다. 본 발명의 다양한 실시 예들에 따라, 어플리케이션 모듈은 전자 장치(201)에 표시된 화면(또는 컨텐츠)를, 전자 장치(210)가 무선으로 연결된 외부 전자 장치의 디스플레이를 통해 표시하여 공유하기 위한 명령어들을 포함할 수 있다.The application module is a web browser including a rendering engine, email, instant message, word processing, keyboard emulation, and address book. , touch list, widget, digital right management (DRM), iris scan, context cognition, voice recognition, position determination function It may include determining function, location based service, etc. According to various embodiments of the present invention, the application module includes instructions for displaying and sharing the screen (or content) displayed on the electronic device 201 through the display of an external electronic device to which the electronic device 210 is wirelessly connected. can do.

센서 모듈(240)은, 예를 들면, 물리량을 계측하거나 전자 장치(201)의 작동 상태를 감지하여, 계측 또는 감지된 정보를 전기 신호로 변환할 수 있다. 센서 모듈(240)은, 예를 들면, 제스처 센서(gesture sensor)(240A), 자이로 센서(gyro sensor)(240B), 기압 센서(barometer sensor)(240C), 마그네틱 센서(magnetic sensor)(240D), 가속도 센서(acceleration sensor)(240E), 그립 센서(grip sensor)(240F), 근접 센서(proximity sensor)(240G), 컬러 센서(color sensor)(240H)(예: RGB(red, green, blue) 센서), 생체 센서(medical sensor)(240I), 온/습도 센서(temperature-humidity sensor)(240J), 조도 센서(illuminance sensor)(240K), 또는 UV(ultra violet) 센서(240M) 중의 적어도 하나를 포함할 수 있다. 추가적으로 또는 대체적으로(additionally or alternatively), 센서 모듈(240)은, 예를 들면, 후각(e-nose) 센서, 일렉트로마이오그라피(EMG, electromyography) 센서, 일렉트로엔씨팔로그램(EEG, electroencephalogram) 센서, 일렉트로카디오그램(ECG, electrocardiogram) 센서, IR(infrared) 센서, 홍채 센서(iris scan sensor) 및/또는 지문 센서(finger scan sensor)를 포함할 수 있다. 센서 모듈(240)은 그 안에 속한 적어도 하나 이상의 센서들을 제어하기 위한 제어 회로를 더 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(201)는 프로세서(210)의 일부로서 또는 별도로, 센서 모듈(240)을 제어하도록 구성된 프로세서를 더 포함하여, 프로세서(210)가 슬립(sleep) 상태에 있는 동안, 센서 모듈(240)을 제어할 수 있다.For example, the sensor module 240 may measure a physical quantity or sense the operating state of the electronic device 201 and convert the measured or sensed information into an electrical signal. The sensor module 240 includes, for example, a gesture sensor 240A, a gyro sensor 240B, a barometer sensor 240C, and a magnetic sensor 240D. , acceleration sensor (240E), grip sensor (240F), proximity sensor (240G), color sensor (240H) (e.g. RGB (red, green, blue) ) sensor), a medical sensor (240I), a temperature-humidity sensor (240J), an illuminance sensor (240K), or a UV (ultra violet) sensor (240M). It can contain one. Additionally or alternatively, the sensor module 240 may include, for example, an olfactory (e-nose) sensor, an electromyography (EMG) sensor, an electroencephalogram (EEG) sensor. , it may include an electrocardiogram (ECG) sensor, an infrared (IR) sensor, an iris scan sensor, and/or a fingerprint sensor. The sensor module 240 may further include a control circuit for controlling at least one sensor included therein. In some embodiments, the electronic device 201 further includes a processor configured to control the sensor module 240, either as part of the processor 210 or separately, while the processor 210 is in a sleep state, The sensor module 240 can be controlled.

입력 장치(250)는, 예를 들면, 터치 패널(252), (디지털) 펜 센서(254), 키(256), 또는 초음파 입력 장치(258)를 포함할 수 있다. 터치 패널(252)은, 예를 들면, 정전식, 감압식, 적외선 방식, 또는 초음파 방식 중 적어도 하나의 방식을 사용할 수 있다. 또한, 터치 패널(252)은 제어 회로를 더 포함할 수도 있다. 터치 패널(252)은 택타일 레이어(tactile layer)를 더 포함하여, 사용자에게 촉각 반응을 제공할 수 있다. (디지털) 펜 센서(254)는, 예를 들면, 터치 패널의 일부이거나, 별도의 인식용 쉬트를 포함할 수 있다. 키(256)는, 예를 들면, 물리적인 버튼, 광학식 키, 또는 키패드를 포함할 수 있다. 초음파 입력 장치(258)는 마이크(288)를 통해, 입력 도구에서 발생된 초음파를 감지하여, 상기 감지된 초음파에 대응하는 데이터를 확인할 수 있다. 다양한 실시 예들에 따라, 입력 장치(250)는 전자 펜을 포함할 수 있다. 다양한 실시 예들에 따라, 입력 장치(250)는 포스 터치(force touch)를 입력 받을 수 있도록 구현될 수 있다.The input device 250 may include, for example, a touch panel 252, a (digital) pen sensor 254, a key 256, or an ultrasonic input device 258. The touch panel 252 may use at least one of, for example, a capacitive type, a resistive type, an infrared type, or an ultrasonic type. Additionally, the touch panel 252 may further include a control circuit. The touch panel 252 may further include a tactile layer to provide a tactile response to the user. The (digital) pen sensor 254 may be, for example, part of a touch panel or may include a separate recognition sheet. Keys 256 may include, for example, physical buttons, optical keys, or keypads. The ultrasonic input device 258 can detect ultrasonic waves generated from the input tool through the microphone 288 and check data corresponding to the detected ultrasonic waves. According to various embodiments, the input device 250 may include an electronic pen. According to various embodiments, the input device 250 may be implemented to receive force touch input.

디스플레이(260)(예: 디스플레이(160))는 패널(262), 홀로그램 장치(264), 프로젝터(266), 및/또는 이들을 제어하기 위한 제어 회로를 포함할 수 있다. Display 260 (e.g., display 160) may include a panel 262, a holographic device 264, a projector 266, and/or control circuitry for controlling them.

패널(262)은, 예를 들면, 유연하게, 투명하게, 또는 착용할 수 있게 구현될 수 있다. 패널(262)은 터치 패널(252)과 하나 이상의 모듈로 구성될 수 있다. 한 실시 예에 따르면, 패널(262)은 사용자의 터치에 대한 압력의 세기를 측정할 수 있는 압력 센서(또는 포스 센서(force sensor))를 포함할 수 있다. 상기 압력 센서는 터치 패널(252)과 일체형으로 구현되거나, 또는 터치 패널(252)과는 별도의 하나 이상의 센서로 구현될 수 있다. 패널(262)은 디스플레이(260)에 안착될 수 있으며, 디스플레이(260) 표면에 접촉 또는 근접하는 사용자 입력을 감지할 수 있다. 사용자 입력은 싱글터치(single-touch), 멀티터치(multi-touch), 호버링(hovering), 또는 에어 제스처(air gesture) 중 적어도 하나에 기반하여 입력되는 터치 입력 또는 근접 입력을 포함할 수 있다. 패널(262)은 다양한 실시 예들에서 전자 장치(201)의 사용과 관련된 동작을 개시하기 위한 사용자 입력을 수신할 수 있고, 사용자 입력에 따른 입력 신호를 발생할 수 있다. 패널(262)은 디스플레이(260)의 특정 부위에 가해진 압력 또는 디스플레이(260)의 특정 부위에 발생하는 정전 용량 등의 변화를 전기적인 입력 신호로 변환하도록 구성될 수 있다. 패널(262)은 입력 도구(예: 사용자 손가락, 전자 펜 등)가 디스플레이(260)의 표면 상에 터치 또는 근접되는 위치 및 면적을 검출할 수 있다. 또한 패널(262)은 적용한 터치 방식에 따라 터치 시의 압력(예: 포스 터치)까지도 검출할 수 있도록 구현될 수 있다.Panel 262 may be implemented as flexible, transparent, or wearable, for example. The panel 262 may be composed of a touch panel 252 and one or more modules. According to one embodiment, the panel 262 may include a pressure sensor (or force sensor) that can measure the intensity of pressure in response to the user's touch. The pressure sensor may be implemented integrally with the touch panel 252, or may be implemented as one or more sensors separate from the touch panel 252. The panel 262 may be seated on the display 260 and may detect a user input that touches or approaches the surface of the display 260. The user input may include a touch input or proximity input based on at least one of single-touch, multi-touch, hovering, or air gesture. In various embodiments, the panel 262 may receive a user input to initiate an operation related to the use of the electronic device 201 and may generate an input signal according to the user input. The panel 262 may be configured to convert a change in pressure applied to a specific part of the display 260 or a change in capacitance occurring in a specific part of the display 260 into an electrical input signal. The panel 262 can detect the location and area where an input tool (eg, a user's finger, an electronic pen, etc.) touches or approaches the surface of the display 260. Additionally, the panel 262 may be implemented to detect pressure upon touch (eg, force touch) depending on the applied touch method.

홀로그램 장치(264)는 빛의 간섭을 이용하여 입체 영상을 허공에 보여줄 수 있다. 프로젝터(266)는 스크린에 빛을 투사하여 영상을 표시할 수 있다. 스크린은, 예를 들면, 전자 장치(201)의 내부 또는 외부에 위치할 수 있다. The hologram device 264 can display a three-dimensional image in the air using light interference. The projector 266 can display an image by projecting light onto the screen. The screen may be located, for example, inside or outside the electronic device 201.

인터페이스(270)는, 예를 들면, HDMI(272), USB(274), 광 인터페이스(optical interface)(276), 또는 D-sub(D-subminiature)(278)를 포함할 수 있다. 인터페이스(270)는, 예를 들면, 도 1에 도시된 통신 인터페이스(170)에 포함될 수 있다. 추가적으로 또는 대체적으로, 인터페이스(270)는, 예를 들면, MHL(mobile high-definition link) 인터페이스, SD카드/MMC(multi-media card) 인터페이스, 또는 IrDA(infrared data association) 규격 인터페이스를 포함할 수 있다. The interface 270 may include, for example, HDMI 272, USB 274, optical interface 276, or D-subminiature (D-sub) 278. Interface 270 may be included in, for example, communication interface 170 shown in FIG. 1 . Additionally or alternatively, the interface 270 may include, for example, a mobile high-definition link (MHL) interface, a SD card/multi-media card (MMC) interface, or an infrared data association (IrDA) standard interface. there is.

인터페이스(270)는, 다른 전자 장치로부터 데이터를 전송 받거나, 전원을 공급받아 전자 장치(201) 내부의 각 구성들에 전달할 수 있다. 인터페이스(270)는 전자 장치(201) 내부의 데이터가 다른 전자 장치로 전송되도록 할 수 있다. 예를 들어, 유/무선 헤드폰 포트(port), 외부 충전기 포트, 유/무선 데이터 포트, 메모리 카드(memory card) 포트, 오디오 입/출력(input/output) 포트, 비디오 입/출력 포트, 이어폰 포트 등이 인터페이스(270)에 포함될 수 있다.The interface 270 can receive data from another electronic device or receive power and transmit it to each component within the electronic device 201. The interface 270 may allow data inside the electronic device 201 to be transmitted to another electronic device. For example, wired/wireless headphone port, external charger port, wired/wireless data port, memory card port, audio input/output port, video input/output port, earphone port. etc. may be included in the interface 270.

오디오 모듈(280)은, 예를 들면, 소리와 전기 신호를 쌍방향으로 변환시킬 수 있다. 오디오 모듈(280)의 적어도 일부 구성요소는, 예를 들면, 도 1 에 도시된 입출력 인터페이스(145)에 포함될 수 있다. 오디오 모듈(280)은, 예를 들면, 스피커(282), 리시버(284), 이어폰(286), 또는 마이크(288) 등을 통해 입력 또는 출력되는 소리 정보를 처리할 수 있다. 오디오 모듈(280)은 프로세서(210)로부터 입력 받은 오디오 신호를 출력 장치(예: 스피커(282), 리시버(284) 또는 이어폰(286))로 전송하고, 입력 장치(예: 마이크(288))로부터 입력 받은 음성 등의 오디오 신호를 프로세서(210)에 전달하는 기능을 수행할 수 있다. 오디오 모듈(280)은 음성/음향 데이터를 프로세서(210)의 제어에 따라 출력 장치를 통해 가청음으로 변환하여 출력하고, 입력 장치로부터 수신되는 음성 등의 오디오 신호를 디지털 신호로 변환하여 프로세서(210)에게 전달할 수 있다.The audio module 280 can, for example, convert sound and electrical signals in two directions. At least some components of the audio module 280 may be included in, for example, the input/output interface 145 shown in FIG. 1 . The audio module 280 may process sound information input or output through, for example, a speaker 282, a receiver 284, an earphone 286, or a microphone 288. The audio module 280 transmits the audio signal input from the processor 210 to an output device (e.g., speaker 282, receiver 284, or earphone 286) and an input device (e.g., microphone 288). It may perform a function of transmitting audio signals such as voice input from to the processor 210. The audio module 280 converts voice/sound data into audible sound through an output device under the control of the processor 210 and outputs it, and converts audio signals such as voice received from the input device into digital signals to be transmitted to the processor 210. It can be delivered to.

스피커(282) 또는 리시버(284)는 통신 모듈(220)로부터 수신되거나, 또는 메모리(230)에 저장된 오디오 데이터를 출력할 수 있다. 스피커(282) 또는 리시버(284)는 전자 장치에서 수행되는 다양한 동작(기능)과 관련된 음향 신호를 출력할 수도 있다. 마이크(288)는 외부의 음향 신호를 입력 받아 전기적인 음성 데이터로 처리할 수 있다. 마이크(288)에는 외부의 음향 신호를 입력 받는 과정에서 발생되는 잡음(noise)을 제거하기 위한 다양한 잡음 제거 알고리즘(noise reduction algorithm)이 구현될 수 있다. 마이크(288)는 음성 명령 등과 같은 오디오 스트리밍의 입력을 담당할 수 있다.The speaker 282 or the receiver 284 may output audio data received from the communication module 220 or stored in the memory 230. The speaker 282 or the receiver 284 may output sound signals related to various operations (functions) performed in the electronic device. The microphone 288 can receive an external acoustic signal and process it into electrical voice data. Various noise reduction algorithms may be implemented in the microphone 288 to remove noise generated in the process of receiving an external acoustic signal. The microphone 288 may be responsible for inputting audio streaming, such as voice commands.

카메라 모듈(291)은, 예를 들면, 정지 영상 및 동영상을 촬영할 수 있는 장치로서, 한 실시 예에 따르면, 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈, 이미지 시그널 프로세서(ISP), 또는 플래시(예: LED 또는 xenon lamp 등)를 포함할 수 있다. The camera module 291 is, for example, a device capable of shooting still images and moving images, and according to one embodiment, it includes one or more image sensors (e.g., a front sensor or a rear sensor), a lens, and an image signal processor (ISP). , or may include a flash (e.g., LED or xenon lamp, etc.).

다양한 실시 예들에 따라, 카메라 모듈(291)은, 예를 들면, 칼라 정보를 획득하기 제1 카메라(예: 칼라(RGB) 카메라)와 깊이 정보(depth information)(예: 피사체의 위치 정보, 거리 정보)를 획득하기 위한 제2 카메라(예: 적외선(IR, infrared) 카메라)를 포함할 수 있다. 예를 들면, 제1 카메라(예: 칼라 카메라)는 외부에서 입력되는 광을 영상 신호로 변환하여 피사체의 칼라 영상을 촬영할 수 있다. 카메라 모듈(291)은 이미지 센서를 포함할 수 있다. 이미지 센서는 CCD(charged coupled device) 또는 CMOS(complementary metal-oxide semiconductor)로 구현될 수 있다. 한 실시 예에 따라, 제1 카메라는 전자 장치(201)의 전면에 구비되는 전면 카메라일 수 있다. 다양한 실시 예들에 따라, 전면 카메라는 제2 카메라에 의해 대체될 수 있고, 전자 장치(201)의 전면에서 구비되지 않을 수 있다. 다양한 실시 예들에 따라, 제1 카메라는 제2 카메라와 함께 전자 장치(201)의 전면에 함께 배치될 수 있다. 한 실시 예에 따라, 제1 카메라는 전자 장치(201)의 후면에 구비되는 후면 카메라일 수 있다. 한 실시 예에 따라, 제1 카메라는 전자 장치(201)의 전면과 후면에 각각 구비되는 전면 카메라 및 후면 카메라를 모두 포함하는 형태일 수 있다.According to various embodiments, the camera module 291 may, for example, use a first camera (e.g., a color (RGB) camera) and depth information (e.g., location information of a subject, distance, etc.) to obtain color information. It may include a second camera (e.g., an infrared (IR) camera) for acquiring information. For example, a first camera (eg, a color camera) can capture a color image of a subject by converting light input from the outside into an image signal. The camera module 291 may include an image sensor. The image sensor may be implemented as a charged coupled device (CCD) or complementary metal-oxide semiconductor (CMOS). According to one embodiment, the first camera may be a front camera provided on the front of the electronic device 201. According to various embodiments, the front camera may be replaced by a second camera and may not be provided on the front of the electronic device 201. According to various embodiments, the first camera may be placed together with the second camera on the front of the electronic device 201. According to one embodiment, the first camera may be a rear camera provided on the rear of the electronic device 201. According to one embodiment, the first camera may include both a front camera and a rear camera provided on the front and rear of the electronic device 201, respectively.

전력 관리 모듈(295)은, 예를 들면, 전자 장치(201)의 전력을 관리할 수 있다. 한 실시 예에 따르면, 전력 관리 모듈(295)은 PMIC(power management integrated circuit), 충전 IC, 배터리 또는 연료 게이지(fuel gauge)를 포함할 수 있다. PMIC는, 유선 및/또는 무선 충전 방식을 가질 수 있다. 무선 충전 방식은, 예를 들면, 자기공명 방식, 자기유도 방식 또는 전자기파 방식 등을 포함하며, 무선 충전을 위한 부가적인 회로, 예를 들면, 코일 루프, 공진 회로, 또는 정류기 등을 더 포함할 수 있다. 배터리 게이지는, 예를 들면, 배터리(296)의 잔량, 충전 중 전압, 전류, 또는 온도를 측정할 수 있다. 배터리(296)는, 예를 들면, 충전식 전지(rechargeable battery) 및/또는 태양 전지(solar battery)를 포함할 수 있다. The power management module 295 may manage power of the electronic device 201, for example. According to one embodiment, the power management module 295 may include a power management integrated circuit (PMIC), a charging IC, a battery, or a fuel gauge. PMIC may have wired and/or wireless charging methods. The wireless charging method includes, for example, a magnetic resonance method, a magnetic induction method, or an electromagnetic wave method, and may further include an additional circuit for wireless charging, for example, a coil loop, a resonance circuit, or a rectifier. there is. The battery gauge may measure, for example, the remaining amount of the battery 296, voltage, current, or temperature during charging. Battery 296 may include, for example, a rechargeable battery and/or a solar battery.

인디케이터(297)는 전자 장치(201) 또는 그 일부(예: 프로세서(210))의 특정 상태, 예를 들면, 부팅 상태, 메시지 상태 또는 충전 상태 등을 표시할 수 있다. 모터(298)는 전기적 신호를 기계적 진동으로 변환할 수 있고, 진동, 또는 햅틱 효과 등을 발생시킬 수 있다. 전자 장치(201)는, 예를 들면, DMB(digital multimedia broadcasting), DVB(digital video broadcasting), 또는 미디어플로(mediaFloTM) 등의 규격에 따른 미디어 데이터를 처리할 수 있는 모바일 TV 지원 장치(예: GPU)를 포함할 수 있다. The indicator 297 may display a specific state of the electronic device 201 or a part thereof (eg, the processor 210), such as a booting state, a message state, or a charging state. The motor 298 can convert electrical signals into mechanical vibration and generate vibration or haptic effects. The electronic device 201 is, for example, a mobile TV support device (e.g. : GPU) may be included.

본 문서에서 기술된 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시 예들에서, 전자 장치(예: 전자 장치(101, 201))는 일부 구성요소가 생략되거나, 추가적인 구성요소를 더 포함하거나, 또는, 구성요소들 중 일부가 결합되어 하나의 개체로 구성되되, 결합 이전의 해당 구성요소들의 기능을 동일하게 수행할 수 있다.Each of the components described in this document may be composed of one or more components, and the names of the components may vary depending on the type of electronic device. In various embodiments, an electronic device (e.g., the electronic devices 101 and 201) omits some components, further includes additional components, or combines some of the components to form a single entity. , the functions of the corresponding components before combination can be performed identically.

도 3은 다양한 실시 예들에 따른 프로그램 모듈의 블록도이다.Figure 3 is a block diagram of a program module according to various embodiments.

한 실시 예에 따르면, 프로그램 모듈(310)(예: 프로그램(140))은 전자 장치(예: 전자 장치(101, 201))에 관련된 자원을 제어하는 운영 체제 및/또는 운영 체제 상에서 구동되는 다양한 어플리케이션(예: 어플리케이션 프로그램(147))을 포함할 수 있다. 운영 체제는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. According to one embodiment, the program module 310 (e.g., program 140) is an operating system that controls resources related to electronic devices (e.g., electronic devices 101, 201) and/or various operating systems running on the operating system. It may include an application (e.g., an application program 147). The operating system may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM .

도 3을 참조하면, 프로그램 모듈(310)은 커널(320)(예: 커널(141)), 미들웨어(330)(예: 미들웨어(143)), API(360)(예: API(145)), 및/또는 어플리케이션(370)(예: 어플리케이션 프로그램(147))을 포함할 수 있다. 프로그램 모듈(310)의 적어도 일부는 전자 장치 상에 프리로드(preload) 되거나, 외부 전자 장치(예: 전자 장치(102, 104), 서버(106) 등)로부터 다운로드(download) 가능하다.Referring to FIG. 3, the program module 310 includes a kernel 320 (e.g., kernel 141), middleware 330 (e.g., middleware 143), and API 360 (e.g., API 145). , and/or an application 370 (e.g., an application program 147). At least a portion of the program module 310 may be preloaded on the electronic device or downloaded from an external electronic device (eg, the electronic devices 102 and 104, the server 106, etc.).

커널(320)은, 예를 들면, 시스템 리소스 매니저(321) 및/또는 디바이스 드라이버(323)를 포함할 수 있다. 시스템 리소스 매니저(321)는 시스템 리소스의 제어, 할당, 또는 회수를 수행할 수 있다. 한 실시 예에 따르면, 시스템 리소스 매니저(321)는 프로세스 관리부, 메모리 관리부, 또는 파일 시스템 관리부를 포함할 수 있다. 디바이스 드라이버(323)는, 예를 들면, 디스플레이 드라이버, 카메라 드라이버, 블루투스 드라이버, 공유 메모리 드라이버, USB 드라이버, 키패드 드라이버, WiFi 드라이버, 오디오 드라이버, 또는 IPC(inter-process communication) 드라이버를 포함할 수 있다. 미들웨어(330)는, 예를 들면, 어플리케이션(370)이 공통적으로 필요로 하는 기능을 제공하거나, 어플리케이션(370)이 전자 장치 내부의 제한된 시스템 자원을 사용할 수 있도록 API(360)를 통해 다양한 기능들을 어플리케이션(370)으로 제공할 수 있다. The kernel 320 may include, for example, a system resource manager 321 and/or a device driver 323. The system resource manager 321 may control, allocate, or retrieve system resources. According to one embodiment, the system resource manager 321 may include a process management unit, a memory management unit, or a file system management unit. The device driver 323 may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WiFi driver, an audio driver, or an inter-process communication (IPC) driver. . For example, the middleware 330 provides functions commonly required by the application 370 or provides various functions through the API 360 so that the application 370 can use limited system resources inside the electronic device. It can be provided as an application (370).

한 실시 예에 따르면, 미들웨어(330)는 런타임 라이브러리(runtime library)(335), 어플리케이션 매니저(application manager)(341), 윈도우 매니저(window manager)(342), 멀티미디어 매니저(multimedia manager)(343), 리소스 매니저(resource manager)(344), 파워 매니저(power manager)(345), 데이터베이스 매니저(database manager)(346), 패키지 매니저(package manager)(347), 커넥티비티 매니저(connectivity manager)(348), 노티피케이션 매니저(notification manager)(349), 로케이션 매니저(location manager)(350), 그래픽 매니저(graphic manager)(351), 또는 시큐리티 매니저(security manager)(352) 중 적어도 하나를 포함할 수 있다.According to one embodiment, the middleware 330 includes a runtime library 335, an application manager 341, a window manager 342, and a multimedia manager 343. , resource manager (344), power manager (345), database manager (346), package manager (347), connectivity manager (348) , may include at least one of a notification manager (349), a location manager (350), a graphic manager (351), or a security manager (352). there is.

런타임 라이브러리(335)는, 예를 들면, 어플리케이션(370)이 실행되는 동안에 프로그래밍 언어(programming language)를 통해 새로운 기능을 추가하기 위해 컴파일러(compiler)가 사용하는 라이브러리 모듈을 포함할 수 있다. 런타임 라이브러리(335)는 입출력 관리, 메모리 관리, 또는 산술 함수 처리를 수행할 수 있다. The runtime library 335 may include, for example, a library module used by a compiler to add new functions through a programming language while the application 370 is running. The runtime library 335 may perform input/output management, memory management, or arithmetic function processing.

어플리케이션 매니저(341)는, 예를 들면, 어플리케이션(370)의 생명 주기(life cycle)를 관리할 수 있다. 윈도우 매니저(342)는 화면에서 사용되는 GUI(graphical user interface) 자원을 관리할 수 있다. 멀티미디어 매니저(343)는 미디어 파일들의 재생에 필요한 포맷을 파악하고, 해당 포맷에 맞는 코덱을 이용하여 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(344)는 어플리케이션(370)의 소스 코드 또는 메모리의 공간을 관리할 수 있다. 파워 매니저(345)는, 예를 들면, 배터리의 용량 또는 전원을 관리하고, 전자 장치의 동작에 필요한 전력 정보를 제공할 수 있다. 한 실시 예에 따르면, 파워 매니저(345)는 바이오스(BIOS(basic input/output system))와 연동할 수 있다. 데이터베이스 매니저(346)는, 예를 들면, 어플리케이션(370)에서 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(347)는 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. The application manager 341 may, for example, manage the life cycle of the application 370. The window manager 342 can manage graphical user interface (GUI) resources used on the screen. The multimedia manager 343 can determine the format required to play media files and encode or decode the media files using a codec suitable for the format. The resource manager 344 may manage the source code or memory space of the application 370. The power manager 345 may, for example, manage battery capacity or power and provide power information necessary for the operation of the electronic device. According to one embodiment, the power manager 345 may be linked to a basic input/output system (BIOS). The database manager 346 may create, search, or change a database to be used in the application 370, for example. The package manager 347 can manage the installation or update of applications distributed in the form of package files.

커넥티비티 매니저(348)는, 예를 들면, 무선 연결을 관리할 수 있다. 노티피케이션 매니저(349)는, 예를 들면, 도착 메시지, 약속, 근접성 알림 등의 이벤트를 사용자에게 제공할 수 있다. 로케이션 매니저(350)는, 예를 들면, 전자 장치의 위치 정보를 관리할 수 있다. 그래픽 매니저(351)는, 예를 들면, 사용자에게 제공될 그래픽 효과 또는 이와 관련된 유저 인터페이스를 관리할 수 있다. 시큐리티 매니저(352)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. Connectivity manager 348 may manage wireless connections, for example. The notification manager 349 may provide events such as arrival messages, appointments, and proximity notifications to the user, for example. The location manager 350 may, for example, manage location information of the electronic device. The graphics manager 351 may, for example, manage graphic effects to be provided to users or user interfaces related thereto. Security manager 352 may provide, for example, system security or user authentication.

한 실시 예에 따르면, 미들웨어(330)는 전자 장치의 음성 또는 영상 통화 기능을 관리하기 위한 통화(telephony) 매니저 또는 전술된 구성요소들의 기능들의 조합을 형성할 수 있는 미들웨어 모듈을 포함할 수 있다. 한 실시 예에 따르면, 미들웨어(330)는 운영 체제의 종류 별로 특화된 모듈을 제공할 수 있다. 미들웨어(330)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. According to one embodiment, the middleware 330 may include a telephony manager for managing the voice or video call function of the electronic device or a middleware module that can form a combination of the functions of the above-described components. According to one embodiment, the middleware 330 may provide specialized modules for each type of operating system. The middleware 330 may dynamically delete some existing components or add new components.

API(360)는, 예를 들면, API 프로그래밍 함수들의 집합으로, 운영 체제에 따라 다른 구성으로 제공될 수 있다. 예를 들면, 안드로이드 또는 iOS의 경우, 플랫폼 별로 하나의 API 셋을 제공할 수 있으며, 타이젠의 경우, 플랫폼 별로 두 개 이상의 API 셋을 제공할 수 있다.The API 360 is, for example, a set of API programming functions and may be provided in different configurations depending on the operating system. For example, in the case of Android or iOS, one API set can be provided for each platform, and in the case of Tizen, two or more API sets can be provided for each platform.

어플리케이션(370)은, 예를 들면, 홈(371), 다이얼러(372), SMS/MMS(373), IM(instant message)(374), 브라우저(375), 카메라(376), 알람(377), 컨택트(378), 음성 다이얼(379), 이메일(380), 달력(381), 미디어 플레이어(382), 앨범(383), 와치(384), 헬스 케어(예: 운동량 또는 혈당 등을 측정), 또는 환경 정보(예: 기압, 습도, 또는 온도 정보) 제공 어플리케이션을 포함할 수 있다. The application 370 includes, for example, home 371, dialer 372, SMS/MMS (373), instant message (IM) 374, browser 375, camera 376, and alarm 377. , contact (378), voice dial (379), email (380), calendar (381), media player (382), album (383), watch (384), health care (e.g., measuring the amount of exercise or blood sugar, etc.) , or may include an application that provides environmental information (e.g., atmospheric pressure, humidity, or temperature information).

한 실시 예에 따르면, 어플리케이션(370)은 전자 장치와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션을 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치에 특정 정보를 전달하기 위한 노티피케이션 릴레이(notification relay) 어플리케이션, 또는 외부 전자 장치를 관리하기 위한 장치 관리(device management) 어플리케이션을 포함할 수 있다. 예를 들면, 노티피케이션 릴레이 어플리케이션은 전자 장치의 다른 어플리케이션에서 발생된 알림 정보를 외부 전자 장치로 전달하거나, 또는 외부 전자 장치로부터 알림 정보를 수신하여 사용자에게 제공할 수 있다. 장치 관리 어플리케이션은, 예를 들면, 전자 장치와 통신하는 외부 전자 장치의 기능(예: 외부 전자 장치 자체(또는, 일부 구성 부품)의 턴-온(turn-on)/턴-오프(turn-off) 또는 디스플레이의 밝기(또는, 해상도) 조절), 또는 외부 전자 장치에서 동작하는 어플리케이션을 설치, 삭제, 또는 갱신할 수 있다. 한 실시 예에 따르면, 어플리케이션(370)은 외부 전자 장치의 속성에 따라 지정된 어플리케이션(예: 모바일 의료 기기의 건강 관리 어플리케이션)을 포함할 수 있다. According to one embodiment, the application 370 may include an information exchange application that can support information exchange between an electronic device and an external electronic device. The information exchange application may include, for example, a notification relay application for delivering specific information to an external electronic device, or a device management application for managing an external electronic device. For example, a notification relay application may transmit notification information generated by another application of an electronic device to an external electronic device, or may receive notification information from an external electronic device and provide it to the user. A device management application may, for example, control the functionality of an external electronic device to communicate with the electronic device, e.g. turn-on/turn-off the external electronic device itself (or some of its components). ) or adjusting the brightness (or resolution) of the display), or installing, deleting, or updating applications running on an external electronic device. According to one embodiment, the application 370 may include an application designated according to the properties of the external electronic device (eg, a health management application for a mobile medical device).

한 실시 예에 따르면, 어플리케이션(370)은 외부 전자 장치로부터 수신된 어플리케이션을 포함할 수 있다. 프로그램 모듈(310)의 적어도 일부는 소프트웨어, 펌웨어, 하드웨어(예: 프로세서(210)), 또는 이들 중 적어도 둘 이상의 조합으로 구현(예: 실행)될 수 있으며, 하나 이상의 기능을 수행하기 위한 모듈, 프로그램, 루틴, 명령어 세트 또는 프로세스를 포함할 수 있다.According to one embodiment, the application 370 may include an application received from an external electronic device. At least a portion of the program module 310 may be implemented (e.g., executed) in software, firmware, hardware (e.g., processor 210), or a combination of at least two of these, and may be a module for performing one or more functions; May contain programs, routines, instruction sets, or processes.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛(unit)을 포함하며, 예를 들면, 로직(logic), 논리 블록(logic block), 부품(component), 또는 회로(circuit) 등의 용어와 상호 호환적으로 사용될 수 있다. "모듈"은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. "모듈"은 기계적으로 또는 전자적으로 구현될 수 있으며, 예를 들면, 어떤 동작들을 수행하는, 알려졌거나 앞으로 개발될, ASIC(application-specific integrated circuit) 칩, FPGAs(field-programmable gate arrays), 또는 프로그램 가능 논리 장치를 포함할 수 있다. 다양한 실시 예들에 따른 장치(예: 모듈들 또는 그 기능들) 또는 방법(예: 동작들)의 적어도 일부는 프로그램 모듈의 형태로 컴퓨터로 판독 가능한 저장 매체(예: 메모리(130))에 저장된 명령어로 구현될 수 있다. 상기 명령어가 프로세서(예: 프로세서(120))에 의해 실행될 경우, 프로세서가 상기 명령어에 해당하는 기능을 수행할 수 있다. As used in this document, the term “module” includes a unit consisting of hardware, software, or firmware, such as logic, logic block, component, or circuit. ) can be used interchangeably with terms such as A “module” may be an integrated part, a minimum unit that performs one or more functions, or a part thereof. A “module” may be implemented mechanically or electronically, for example, in application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), known or hereafter developed, that perform certain operations. May include programmable logic devices. At least a portion of the device (e.g., modules or functions) or method (e.g., operations) according to various embodiments includes instructions stored in a computer-readable storage medium (e.g., memory 130) in the form of a program module. It can be implemented as: When the instruction is executed by a processor (eg, processor 120), the processor may perform the function corresponding to the instruction.

컴퓨터로 판독 가능한 기록 매체는, 하드디스크, 플로피디스크, 마그네틱 매체(magnetic media)(예: 자기테이프), 광기록 매체(optical recording media)(예: CD-ROM(compact disc read only memory), DVD(digital versatile disc), 자기-광 매체(magneto-optical media)(예: 플롭티컬 디스크(floptical disk)), 내장 메모리 등을 포함할 수 있다. 명령어는 컴파일러에 의해 만들어지는 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 다양한 실시 예들에 따른 모듈 또는 프로그램 모듈은 전술한 구성요소들 중 적어도 하나 이상을 포함하거나, 일부가 생략되거나, 또는 다른 구성요소를 더 포함할 수 있다. 다양한 실시 예들에 따른, 모듈, 프로그램 모듈 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱(heuristic)하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Computer-readable recording media include hard disks, floppy disks, magnetic media (e.g. magnetic tape), optical recording media (e.g. CD-ROM (compact disc read only memory), DVD (digital versatile disc), magneto-optical media (e.g., floptical disk), internal memory, etc. Instructions may be code generated by a compiler or executed by an interpreter. A module or program module according to various embodiments may include at least one of the above-described components, some of them may be omitted, or may further include other components. According to the examples, the operations performed by the module, program module or other component may be executed sequentially, in parallel, iteratively or heuristically, or at least some of the operations may be executed in a different order, omitted, or other operations may be performed sequentially, in parallel, iteratively or heuristically. can be added

다양한 실시 예들에 따르면, 기록 매체는, 후술되는 다양한 방법을 프로세서(120, 210)에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 판독 가능한 기록 매체를 포함할 수 있다.According to various embodiments, the recording medium may include a computer-readable recording medium recording a program for executing various methods described later on the processors 120 and 210.

다양한 실시 예들에서, 전자 장치는, AP, CP, GPU, 및 CPU 등의 다양한 프로세서 중 하나 또는 그 이상을 사용하는 모든 장치를 포함할 수 있다. 예를 들면, 다양한 실시 예들에 따른 전자 장치는, 정보통신기기, 멀티미디어기기, 웨어러블 장치(wearable device), IoT 장치, 또는 이들 장치에 대응하는 다양한 다른 기기를 포함할 수 있다.In various embodiments, an electronic device may include any device that uses one or more of various processors, such as an AP, CP, GPU, and CPU. For example, electronic devices according to various embodiments may include information and communication devices, multimedia devices, wearable devices, IoT devices, or various other devices corresponding to these devices.

이하에서, 첨부 도면들을 참조하여 본 발명의 다양한 실시 예들에 따른 동작 방법 및 장치에 대하여 살펴보기로 한다. 하지만, 본 발명의 다양한 실시 예들이 하기에서 기술하는 내용에 의해 제한되거나 한정되는 것은 아니므로, 하기의 실시 예에 의거하여 다양한 실시 예들에 적용할 수 있음에 유의하여야 한다. 이하에서 설명되는 본 발명의 다양한 실시 예들에서는 하드웨어적인 접근 방법을 예시로서 설명한다. 하지만, 본 발명의 다양한 실시 예들에서는 하드웨어와 소프트웨어를 모두 사용하는 기술을 포함하고 있으므로, 본 발명의 다양한 실시 예들이 소프트웨어 기반의 접근 방법을 제외하는 것은 아니다.Hereinafter, operation methods and devices according to various embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be noted that the various embodiments of the present invention are not restricted or limited by the content described below, and can be applied to various embodiments based on the examples below. In various embodiments of the present invention described below, a hardware approach method is explained as an example. However, since various embodiments of the present invention include technology using both hardware and software, various embodiments of the present invention do not exclude software-based approaches.

도 4는 본 발명의 다양한 실시 예들에 따른 전자 장치들의 예를 설명하기 위해 도시하는 도면들이다.FIG. 4 is a diagram illustrating examples of electronic devices according to various embodiments of the present invention.

도 4에 도시한 바와 같이, 본 발명의 다양한 실시 예들에 따른 시스템은, 전자 장치(400)(예: 제1 전자 장치 또는 소스(source) 장치)와 적어도 하나의 외부 전자 장치(500)(예: 제2 전자 장치 또는 싱크(sink) 장치)를 포함할 수 있다.As shown in FIG. 4, a system according to various embodiments of the present invention includes an electronic device 400 (e.g., a first electronic device or source device) and at least one external electronic device 500 (e.g., : may include a second electronic device or sink device).

다양한 실시 예들에서, 전자 장치(400)는 디스플레이(417)와, 디스플레이(417)가 안착되어 체결되는 하우징(또는 본체)(450)과, 하우징(450)에 형성되어 전자 장치(400)의 기능 수행을 위한 부가 장치 등을 포함하여 구성될 수 있다. 다양한 실시 예들에서 부가 장치는 제1 스피커(401), 제2 스피커(403), 마이크(405), 센서(예: 전면 카메라(407), 조도 센서(409) 등), 통신 인터페이스(예: 충전 또는 데이터 입/출력(Input/Output) 포트(411), 오디오 입/출력 포트(413) 등), 버튼(415) 등을 포함할 수 있다.In various embodiments, the electronic device 400 includes a display 417, a housing (or main body) 450 in which the display 417 is seated and fastened, and a function of the electronic device 400 formed on the housing 450. It may be configured to include additional devices for performance, etc. In various embodiments, the additional device may include a first speaker 401, a second speaker 403, a microphone 405, a sensor (e.g., a front camera 407, an illumination sensor 409, etc.), and a communication interface (e.g., charging Alternatively, it may include a data input/output port 411, an audio input/output port 413, etc.), a button 415, etc.

다양한 실시 예들에서 디스플레이(417)는 평면형 디스플레이 또는 종이처럼 얇고 유연한 기판을 통해 손상 없이 휘거나 구부리거나 말 수 있는 커브드 디스플레이(curved display)(또는 벤디드 디스플레이(bended display))를 포함할 수 있다. 커브드 디스플레이는 하우징(450)(또는 베젤(bezel, 본체)에 체결되어 구부러진 형태를 유지할 수 있다. 다양한 실시 예들에서 전자 장치(400)는 커브드 디스플레이와 같은 형태를 비롯하여, 플렉서블 디스플레이와 같이 구부렸다가 폈다가를 자유자재로 할 수 있는 디스플레이 장치로 구현될 수도 있다. 다양한 실시 예들에서 디스플레이(417)는 액정 디스플레이(LCD), 발광 다이오드(LED), 유기 발광 다이오드(OLED), 또는 능동형 OLED(AMOLED, active matrix OLED) 등에서 액정을 싸고 있는 유리 기판을 플라스틱 필름으로 대체하여, 접고 펼 수 있는 유연성을 부여할 수 있다. 다양한 실시 예들에서 디스플레이(417)는 전자 장치(400)의 적어도 하나의 측면(side)(예: 좌측, 우측, 상측, 하측 중 적어도 하나의 면)까지 연장되어, 커브드 디스플레이가 동작 가능한 곡률 반경(radius of curvature)(예: 곡률 반경 5cm, 1cm, 7.5mm, 5mm, 4mm 등) 이하로 접혀 하우징(450)의 측면에 체결될 수 있다.In various embodiments, the display 417 may include a flat display or a curved display (or bended display) that can be bent, bent, or rolled without damage through a thin, flexible substrate like paper. . The curved display may be fastened to the housing 450 (or bezel, main body) to maintain a curved shape. In various embodiments, the electronic device 400 has a curved display-like shape, as well as a flexible display-like shape. It may also be implemented as a display device that can be freely opened and opened. In various embodiments, the display 417 may be a liquid crystal display (LCD), a light emitting diode (LED), an organic light emitting diode (OLED), or an active OLED ( In AMOLED, active matrix OLED, etc., the glass substrate surrounding the liquid crystal can be replaced with a plastic film to provide flexibility to fold and unfold. In various embodiments, the display 417 is located on at least one side of the electronic device 400. (side) (e.g., at least one of the left, right, upper, and lower sides) and has a radius of curvature at which the curved display can operate (e.g., 5 cm, 1 cm, 7.5 mm, 5 mm, It can be folded to less than 4 mm and fastened to the side of the housing 450.

다양한 실시 예들에서 전자 장치(400)는 지문 인식 센서를 이용하여 사용자의 지문을 인식할 수 있다. 다양한 실시 예들에서 전자 장치(400)는 홍채 인식 센서를 이용하여 사용자의 홍채를 인식할 수 있다. 다양한 실시 예들에 따르면, 전자 장치(400)는 사용자의 생체 정보(예: 지문 또는 홍채) 인식에 응답하여, 미라캐스트 기반의 서비스(또는 기능)를 자동으로 수행할 수도 있다.In various embodiments, the electronic device 400 may recognize the user's fingerprint using a fingerprint recognition sensor. In various embodiments, the electronic device 400 may recognize the user's iris using an iris recognition sensor. According to various embodiments, the electronic device 400 may automatically perform a Miracast-based service (or function) in response to recognition of the user's biometric information (eg, fingerprint or iris).

다양한 실시 예들에서 전자 장치(400)는 외부 전자 장치(500)와 연결할 수 있다. 다양한 실시 예들에서 전자 장치(400)는 무선 통신(예: 블루투스, 저전력 블루투스(BLE), WiFi 등)에 기반하여 외부 전자 장치(500)와 연결될 수 있다.In various embodiments, the electronic device 400 may be connected to an external electronic device 500. In various embodiments, the electronic device 400 may be connected to the external electronic device 500 based on wireless communication (e.g., Bluetooth, Bluetooth Low Energy (BLE), WiFi, etc.).

다양한 실시 예들에서, 전자 장치(400)는 외부 전자 장치(500)와 무선 통신을 연결하고, 외부 전자 장치(500)에게 장치 정보 요청을 전송할 수 있다. 전자 장치(400)는 외부 전자 장치(500)에 장치 정보 요청에 응답하여, 외부 전자 장치(500)로부터 외부 전자 장치(500)에 연결에 관련된 장치 정보(예: 동작 모드(예: 가로 모드, 세로 모드) 정보, 해상도 정보, 디스플레이의 타입(예: 세로형, 가로형) 정보 등)를 획득할 수 있다. 전자 장치(400)는 획득된 장치 정보에 기반하여 외부 전자 장치에 대응하는 화면 또는 컨텐츠를 전송하여, 외부 전자 장치(500)의 디스플레이를 통해 표시할 수 있다. 다양한 실시 예들에서 전자 장치(400)가 외부 전자 장치(500)와 연동하여 통신 연결을 수행하고, 그에 따라 미라캐스트를 수행(제공)하는 것과 관련된 다양한 예시들에 대하여 후술하는 도면들을 참조하여 상세히 설명된다.In various embodiments, the electronic device 400 may establish wireless communication with the external electronic device 500 and transmit a device information request to the external electronic device 500. The electronic device 400 responds to a device information request from the external electronic device 500, providing device information related to connection from the external electronic device 500 to the external electronic device 500, such as an operation mode (e.g., landscape mode, Portrait mode) information, resolution information, display type (e.g., portrait, landscape) information, etc.) can be obtained. The electronic device 400 may transmit a screen or content corresponding to the external electronic device based on the acquired device information and display it on the display of the external electronic device 500. In various embodiments, various examples related to the electronic device 400 performing communication connection in conjunction with the external electronic device 500 and performing (providing) Miracast accordingly will be described in detail with reference to the drawings described later. do.

다양한 실시 예들에서, 외부 전자 장치(500)는 전자 장치(400)와 무선 통신으로 연결될 수 있고, 디스플레이를 포함하는 다양한 장치를 포함할 수 있다. 다양한 실시 예들에서, 외부 전자 장치(500)는 전자 장치(400)와 무선으로 연결되어, 전자 장치(400)에서 표시되는 데이터(예: 화면, 컨텐츠 등)를 수신하여 구비된 디스플레이를 통해 출력(표시)하는 다양한 출력 디바이스를 포함할 수 있다. 예를 들면, 외부 전자 장치(500)는 모니터(510), 태블릿 PC(520), 랩탑 PC(530)(또는 노트북), 텔레비전(540) 또는 냉장고(550) 등과 같이 전자 장치(400)와 무선으로 연결될 수 있고 디스플레이를 포함하는 다양한 장치를 포함할 수 있다. 다양한 실시 예들에 따라, 외부 전자 장치(500)는 전술한 전자 장치(400)와 유사한 구성을 가질 수 있다. 예를 들면, 외부 전자 장치(500)는 도 2의 프로세서(210)에 대응하는 제어 회로(또는 프로세서)를 포함하며, 도 2에 도시된 전자 장치(201)의 구성들보다 많은 구성들을 가지거나, 또는 그보다 적은 구성들을 가지는 것으로 구현될 수 있다. 이하에서 다양한 실시 예들을 설명함에 있어서, 외부 전자 장치(500)가 냉장고인 것을 일 예로 하여 설명한다. In various embodiments, the external electronic device 500 may be connected to the electronic device 400 through wireless communication and may include various devices including a display. In various embodiments, the external electronic device 500 is wirelessly connected to the electronic device 400, receives data (e.g., screen, content, etc.) displayed on the electronic device 400, and outputs it through the provided display ( display) may include various output devices. For example, the external electronic device 500 may be connected to the electronic device 400 and wirelessly, such as a monitor 510, a tablet PC 520, a laptop PC 530 (or notebook), a television 540, or a refrigerator 550. It can be connected to and can include a variety of devices, including displays. According to various embodiments, the external electronic device 500 may have a similar configuration to the electronic device 400 described above. For example, the external electronic device 500 includes a control circuit (or processor) corresponding to the processor 210 of FIG. 2 and has more configurations than those of the electronic device 201 shown in FIG. 2. , or fewer configurations. In describing various embodiments below, the external electronic device 500 is a refrigerator as an example.

다양한 실시 예들에서, 외부 전자 장치(500)는 어느 일 영역에 디스플레이가 장착될 수 있고, 전자 장치(400)와 무선 통신을 연결할 수 있는 통신 회로(예: 통신 모듈)을 포함할 수 있다. 다양한 실시 예들에서 외부 전자 장치(500)는 통신 모듈을 이용하여 전자 장치(400)가 전송하는 데이터를 수신하고, 수신된 데이터를 디스플레이를 이용하여 표시할 수 있다.In various embodiments, the external electronic device 500 may be equipped with a display in one area and may include a communication circuit (eg, a communication module) capable of connecting the electronic device 400 and wireless communication. In various embodiments, the external electronic device 500 may receive data transmitted by the electronic device 400 using a communication module and display the received data using a display.

다양한 실시 예들에서, 외부 전자 장치(500)는 전자 장치(400)의 연결 요청에 응답하여 무선 통신을 연결할 수 있다. 외부 전자 장치(500)는 무선 통신이 연결되면, 전자 장치(400)의 장치 정보 요청에 응답하여 장치 정보를 전자 장치(400)에 제공할 수 있다.In various embodiments, the external electronic device 500 may connect wireless communication in response to a connection request from the electronic device 400. When wireless communication is connected, the external electronic device 500 may provide device information to the electronic device 400 in response to a request for device information from the electronic device 400.

다양한 실시 예들에서, 외부 전자 장치(500)가 전자 장치(400)와 연동하여 통신 연결을 수행하고, 그에 따라 수신된 데이터에 기초하여 동작하는 것과 관련된 다양한 예시들에 대하여 후술하는 도면들을 참조하여 상세히 설명된다.In various embodiments, various examples related to the external electronic device 500 performing a communication connection in conjunction with the electronic device 400 and operating based on data received accordingly will be described in detail with reference to the drawings described below. explained.

다양한 실시 예들에 따르면, 전자 장치(400)와 외부 전자 장치(500)는 무선 통신으로 직접 연결될 수 있다. 다양한 실시 예들에 따라, 전자 장치(400)와 외부 전자 장치(500)는 공통으로 접속되는 액세스 포인트(AP, access point)를 통해 연결될 수 있다.According to various embodiments, the electronic device 400 and the external electronic device 500 may be directly connected through wireless communication. According to various embodiments, the electronic device 400 and the external electronic device 500 may be connected through a commonly connected access point (AP).

다양한 실시 예들에 따르면, 전자 장치(400)와 외부 전자 장치(500)는 사용자 입력 백 채널(UIBC, user input back channel)을 통해 메시지를 교환할 수 있다. 다양한 실시 예들에 따르면, 전자 장치(400)는 외부 전자 장치(500)와 미라캐스트 연결 시에 협상(negotiation) 절차를 통해, 외부 전자 장치(500)에 관련된 장치 정보를 획득할 수 있다. 다양한 실시 예들에 따라, 전자 장치(400)는 장치 정보에 기반하여 외부 전자 장치(500)에 관련된 해상도와 디스플레이 타입 등을 확인할 수 있다. 다양한 실시 예들에 따르면, 전자 장치(400)는 적어도 하나의 기능(또는 어플리케이션) 수행 중에, 사용자 요청에 대응하여 미라캐스트를 수행하고, 획득된 장치 정보에 기반하여 외부 전자 장치(500)의 해상도에 디스플레이의 방향에 대응하는 공유 데이터를 생성하여 외부 전자 장치(500)에 전송할 수 있다.According to various embodiments, the electronic device 400 and the external electronic device 500 may exchange messages through a user input back channel (UIBC). According to various embodiments, the electronic device 400 may obtain device information related to the external electronic device 500 through a negotiation procedure when connecting to Miracast. According to various embodiments, the electronic device 400 may check the resolution and display type related to the external electronic device 500 based on device information. According to various embodiments, the electronic device 400 performs Miracast in response to a user request while performing at least one function (or application), and adjusts the resolution of the external electronic device 500 based on the obtained device information. Shared data corresponding to the direction of the display can be generated and transmitted to the external electronic device 500.

이상에서 살펴본 바와 같이, 다양한 실시 예들에 따른 전자 장치는, 미라캐스트(miracast) 연결 및 데이터 송수신을 위한 무선 통신부, 데이터 표시를 위한 디스플레이, 및 상기 무선 통신부 및 상기 디스플레이와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하고, 상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하고, 상기 외부 전자 장치가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 상기 해상도에 기반하여 생성하고, 및 상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하도록 구성할 수 있다.As described above, electronic devices according to various embodiments include a wireless communication unit for Miracast connection and data transmission and reception, a display for displaying data, and a processor functionally connected to the wireless communication unit and the display; , the processor obtains device information from an external electronic device connected to Miracast, determines the resolution and display type of the external electronic device based on the device information, and, if the external electronic device is a vertical display, displays a vertical display. Data corresponding to can be generated based on the resolution, and the data can be transmitted to the external electronic device using the wireless communication unit.

다양한 실시 예들에 따라, 상기 장치 정보는, 상기 외부 전자 장치가 지원하는 해상도와 디스플레이 타입을 포함하도록 구성할 수 있다. 다양한 실시 예들에 따라, 상기 장치 정보는, 상기 외부 전자 장치의 동작 모드에 대한 정보, 상기 외부 전자 장치의 타입에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보를 포함하도록 구성할 수 있다.According to various embodiments, the device information may be configured to include resolution and display type supported by the external electronic device. According to various embodiments, the device information may include information about the operation mode of the external electronic device, information about the type of the external electronic device, manufacturer information, model name information, or user input back channel (UIBC). ) can be configured to include information.

다양한 실시 예들에 따라, 상기 프로세서는, 상기 디스플레이 타입에 기반하여 상기 외부 전자 장치가 세로형 디스플레이인지 여부, 또는 상기 외부 전자 장치가 세로 방향으로 동작 중인지 여부를 판단하도록 구성할 수 있다.According to various embodiments, the processor may be configured to determine whether the external electronic device has a vertical display or whether the external electronic device is operating in the vertical direction based on the display type.

다양한 실시 예들에 따라, 상기 프로세서는, 상기 장치 정보에 기반하여 상기 외부 전자 장치와 공통된 최적의 해상도 결정 및, 상기 외부 전자 장치의 디스플레이 타입을 판단하고, 상기 디스플레이 타입이 세로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하고, 및 상기 가상 디스플레이를 이용하여, 상기 외부 전자 장치의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하도록 구성할 수 있다.According to various embodiments, the processor determines an optimal resolution common to the external electronic device based on the device information and determines a display type of the external electronic device, and when the display type is a vertical display, the processor It can be configured to create a vertical virtual display with a determined resolution, and to generate data corresponding to the resolution and display type of the external electronic device using the virtual display.

다양한 실시 예들에 따라, 상기 프로세서는, 기본 설정된 가로 형태의 가상 디스플레이를 상기 외부 전자 장치의 세로형 디스플레이에 대응하도록 세로 방향으로 회전하고, 회전된 세로 방향의 가상 디스플레이를 이용하여 데이터를 생성하도록 구성할 수 있다.According to various embodiments, the processor is configured to rotate the default horizontal virtual display to the vertical direction to correspond to the vertical display of the external electronic device and generate data using the rotated vertical virtual display. can do.

다양한 실시 예들에 따라, 상기 프로세서는, 상기 디스플레이 타입이 가로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하도록 구성할 수 있다.According to various embodiments, when the display type is a horizontal display, the processor may be configured to generate a horizontal virtual display having the determined resolution.

다양한 실시 예들에 따라, 상기 프로세서는, 상기 외부 전자 장치로부터 사용자 입력 백 채널(UIBC)를 통해 사용자 입력에 따른 좌표를 수신하고, 상기 좌표 수신에 대응하여, 상기 외부 전자 장치의 타입을 판단하고, 상기 외부 전자 장치가 세로형 디스플레이 기반의 제1 타입 장치이면, 상기 좌표에 대한 변환 없이 상기 좌표를 인식하고, 및 상기 외부 전자 장치가 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용하는 제2 타입 장치이면, 상기 좌표의 변환을 수행하고 변환된 좌표를 인식하도록 구성할 수 있다.According to various embodiments, the processor receives coordinates according to user input from the external electronic device through a user input back channel (UIBC), determines the type of the external electronic device in response to receiving the coordinates, and If the external electronic device is a first type device based on a vertical display, a second type device recognizes the coordinates without converting the coordinates, and rotates the external electronic device from the default horizontal direction to the vertical direction for use. If so, it can be configured to perform transformation of the coordinates and recognize the transformed coordinates.

다양한 실시 예들에 따라, 상기 프로세서는, 상기 좌표에서, x좌표는 y좌표로 변환하고, y좌표는 x좌표로 변환하여 좌표 변환을 수행하도록 구성할 수 있다.According to various embodiments, the processor may be configured to perform coordinate conversion by converting the x-coordinate to y-coordinate and converting the y-coordinate to x-coordinate in the coordinates.

다양한 실시 예들에 따라, 상기 외부 전자 장치는, 상기 전자 장치와 미라캐스트 연결된 상태에서 사용자 입력을 감지하고, 사용자 입력 감지에 대응하여, 디스플레이의 방향을 판단하고, 상기 디스플레이의 방향이 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용되는 상태이면, 상기 사용자 입력에 대한 좌표를 변환하고, 및 상기 변환된 좌표를 상기 전자 장치에 전송하도록 구성할 수 있다.According to various embodiments, the external electronic device detects a user input while connected to the electronic device and Miracast, determines the orientation of the display in response to the detection of the user input, and determines the orientation of the display in the default horizontal direction. If it is used by rotating in the vertical direction, it can be configured to transform the coordinates of the user input and transmit the converted coordinates to the electronic device.

도 5는 본 발명의 다양한 실시 예들에 따른 전자 장치들 간에 미라캐스트를 이용한 서비스를 제공하는 예를 설명하기 위해 도시하는 도면이다.FIG. 5 is a diagram illustrating an example of providing a service using Miracast between electronic devices according to various embodiments of the present invention.

도 5를 참조하면, 동작 501에서, 전자 장치(400)(예: 이하, 소스 장치(source device))와 외부 전자 장치(500)(예: 이하, 싱크 장치(sink device))는 연결 절차를 시작할 수 있다. 예를 들면, 소스 장치(400)와 싱크 장치(500)는 미라캐스트 연결을 위한 협상(negotiation) 절차를 수행할 수 있다.Referring to FIG. 5, in operation 501, the electronic device 400 (e.g., hereinafter referred to as a source device) and the external electronic device 500 (e.g., hereinafter referred to as a sink device) perform a connection procedure. You can start. For example, the source device 400 and the sink device 500 may perform a negotiation procedure for Miracast connection.

동작 503에서, 소스 장치(400)는 협상 절차에서, 싱크 장치(500)에 관련된 장치 정보를 요청하는 요청 메시지(request message)를 전송할 수 있다. 예를 들면, 소스 장치(400)는 싱크 장치(500)가 지원하는 해상도 정보와 디스플레이의 타입(예: 세로형 디스플레이, 가로형 디스플레이) 정보를 요청할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)가 동작 중인 동작 모드(예: 가로 모드, 세로 모드)에 대한 정보도 요청할 수 있다.In operation 503, the source device 400 may transmit a request message requesting device information related to the sink device 500 in a negotiation procedure. For example, the source device 400 may request resolution information and display type (e.g., vertical display, horizontal display) information supported by the sink device 500. According to various embodiments, the source device 400 may also request information about the operating mode (eg, landscape mode, portrait mode) in which the sink device 500 is operating.

동작 505에서, 싱크 장치(500)는 협상 절차에서, 소스 장치(400)의 장치 정보 요청에 대응하여 싱크 장치(500)에 관련된 장치 정보를 포함하는 응답 메시지(response message)를 전송할 수 있다. 다양한 실시 예들에 따라, 싱크 장치(500)가 제공하는 장치 정보는, 싱크 장치(500)가 지원하는 해상도 정보와 디스플레이의 타입 정보를 포함할 수 있다. 다양한 실시 예들에 따르면, 장치 정보는, 싱크 장치(500)의 동작 모드에 대한 정보, 싱크 장치(500)의 타입(예: 태블릿 PC, 냉장고, 텔레비전 등)에 대한 정보, 제조사 정보, 모델명 정보, 사용자 입력 백 채널(UIBC, user input back channel)의 정보(예: 버전 정보) 등을 더 포함할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 획득된 장치 정보(예: 디스플레이의 타입 정보)에 기반하여 싱크 장치(500)가 세로형 디스플레이인지 여부를 판단할 수 있다. 예를 들면, 다양한 실시 예들에서, 요청 메시지와 응답 메시지의 포맷(format) 예시를 살펴보면 아래 <표 1>과 같이 나타낼 수 있다.In operation 505, the sink device 500 may transmit a response message containing device information related to the sink device 500 in response to the device information request of the source device 400 in a negotiation procedure. According to various embodiments, device information provided by the sink device 500 may include resolution information and display type information supported by the sink device 500. According to various embodiments, device information includes information about the operating mode of the sink device 500, information about the type of the sink device 500 (e.g., tablet PC, refrigerator, television, etc.), manufacturer information, model name information, It may further include user input back channel (UIBC) information (e.g., version information), etc. According to various embodiments, the source device 400 may determine whether the sink device 500 has a vertical display based on acquired device information (e.g., display type information). For example, in various embodiments, examples of the format of a request message and a response message can be shown as shown in <Table 1> below.

소스 장치의 요청(request) 타입Request type of source device 싱크 장치의 응답(response) 타입Response type of sink device wfd2-video-formats:wfd2-video-formats: wfd2-video-formats: 1920x1080wfd2-video-formats: 1920x1080 wfd2_sec_portrait_display:wfd2_sec_portrait_display: wfd2_sec_portrait_display: rotation 270wfd2_sec_portrait_display: rotation 270

예를 들면, 소스 장치(400)는 요청 메시지에 싱크 장치(500)의 해상도(예: wfd2-video-formats)와 싱크 장치(500)의 디스플레이 타입(예: wfd2_sec_portrait_display)을 요청하는 정보를 포함하여 싱크 장치(500)에 전송할 수 있다. 싱크 장치(500)는 응답 메시지에 싱크 장치(500)의 해상도를 추가(예: wfd2-video-formats: 1920x1080)하고, 싱크 장치(500)의 디스플레이 타입(또는 동작 모드(예: 디스플레이의 동작 방향))을 추가(wfd2_sec_portrait_display: rotation 270)한 정보를 포함하여 소스 장치(400)에 전송할 수 있다. 다양한 실시 예들에 따라, 디스플레이 타입은, 해상도를 기준으로 회전된 정보로 제공될 수 있다. 예를 들면, 싱크 장치(500)의 해상도가 가로 방향 기준의 1920x1080으로 제공되는 반면, 싱크 장치(500)는 세로 방향이므로, 이를 소스 장치(400)에서 인식하도록 가로 방향 기준으로 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 한 실시 예에 따라, 싱크 장치(500)는 해상도 정보(예: 1920x1080)와, 가로 방향으로 디스플레이가 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 소스 장치(400)는 가로 방향의 해상도 정보와 회전된 각도 정보에 기초하여 싱크 장치(500)의 디스플레이 타입이 세로 방향인지 또는 가로 방향인지 여부를 판단할 수 있다.For example, the source device 400 includes information requesting the resolution of the sink device 500 (e.g., wfd2-video-formats) and the display type of the sink device 500 (e.g., wfd2_sec_portrait_display) in the request message. It can be transmitted to the sink device 500. The sink device 500 adds the resolution of the sink device 500 (e.g., wfd2-video-formats: 1920x1080) to the response message, and adds the display type (or operation mode (e.g., operating direction of the display) of the sink device 500. )) can be transmitted to the source device 400 including additional information (wfd2_sec_portrait_display: rotation 270). According to various embodiments, the display type may be provided as information rotated based on resolution. For example, while the resolution of the sink device 500 is provided as 1920x1080 based on the horizontal direction, the sink device 500 is vertically oriented, so that the source device 400 recognizes this by providing angle information rotated relative to the horizontal direction ( Example: rotation 270) can be provided. According to one embodiment, the sync device 500 may provide resolution information (e.g., 1920x1080) and angle information at which the display is rotated in the horizontal direction (e.g., rotation 270). The source device 400 may determine whether the display type of the sink device 500 is portrait or landscape based on horizontal resolution information and rotated angle information.

동작 507에서, 소스 장치(400)는 싱크 장치(500)에 관련된 장치 정보가 확인되면, 싱크 장치(500)와의 협상 절차를 완료할 수 있다. 예를 들면, 소스 장치(400)는 요청 메시지를 싱크 장치(500)에 전송하고, 싱크 장치(500)로부터 싱크 장치(500)의 장치 정보를 수신할 수 있다. 소스 장치(400)는 수신된 장치 정보로부터 싱크 장치(500)가 지원하는 해상도 정보와 디스플레이의 타입 정보를 획득되면, 협상 절차를 완료할 수 있다.In operation 507, when device information related to the sink device 500 is confirmed, the source device 400 may complete a negotiation procedure with the sink device 500. For example, the source device 400 may transmit a request message to the sink device 500 and receive device information about the sink device 500 from the sink device 500. When the source device 400 obtains resolution information and display type information supported by the sink device 500 from the received device information, it can complete the negotiation procedure.

동작 509에서, 소스 장치(400)는 미라캐스트 서비스를 위해 연결된 싱크 장치(500)에 데이터(예: 화면데이터 또는 재생 컨텐츠)를 전송할 수 있다. 예를 들면, 소스 장치(400)는 싱크 장치(500)가 지원할 수 있는 해상도 정보를 확인하여, 각 장치들에서 공통적으로 지원 가능한 해상도를 결정할 수 있다. 또한 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입에 대응하여 이미지의 회전 여부를 결정할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 결정된 해상도와 디스플레이 타입에 대응하여 이미지를 변환할 수 있고, 변환된 이미지를 싱크 장치(500)에 전송할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 주기적으로, 연속적으로 또는 실시간으로 데이터를 전송할 수 있다. 다양한 실시 예들에 따라, 싱크 장치(500)는 소스 장치(400)에서 전송되는 데이터(예: 화면 데이터 또는 컨텐츠에 대응하는 이미지 프레임 데이터)를 수신하여, 디스플레이를 통해 표시할 수 있다.In operation 509, the source device 400 may transmit data (eg, screen data or playback content) to the sink device 500 connected for the Miracast service. For example, the source device 400 can check resolution information that the sink device 500 can support and determine a resolution that can be commonly supported by each device. Additionally, the source device 400 may determine whether to rotate the image in accordance with the display type of the sink device 500. According to various embodiments, the source device 400 may convert an image corresponding to the determined resolution and display type, and transmit the converted image to the sink device 500. According to various embodiments, the source device 400 may transmit data periodically, continuously, or in real time. According to various embodiments, the sink device 500 may receive data (e.g., screen data or image frame data corresponding to content) transmitted from the source device 400 and display it through a display.

동작 511에서, 싱크 장치(500)는 미라캐스트 연결이 설정된 상태에서, 사용자 입력에 대응한 제어 메시지를 소스 장치(400)에 전송할 수 있다. 다양한 실시 예들에 따라, 싱크 장치(500)는 사용자 입력 백 채널(UIBC, user input back channel)을 통해 사용자 입력에 따른 제어 메시지를 소스 장치(400)에 전송할 수 있다. 도 5에서 도시하지는 않았으나, 소스 장치(400)에서 사용자 입력을 처리하여 데이터를 제어하고 제어된 데이터를 싱크 장치(500)에 전송할 수도 있다. 다양한 실시 예들에 따라 사용자 입력에 대한 입력 처리 동작에 대해 후술하는 도면들을 참조하여 구체적으로 설명된다.In operation 511, the sink device 500 may transmit a control message corresponding to the user input to the source device 400 while the Miracast connection is established. According to various embodiments, the sink device 500 may transmit a control message according to user input to the source device 400 through a user input back channel (UIBC). Although not shown in FIG. 5, the source device 400 may process user input, control data, and transmit the controlled data to the sink device 500. Input processing operations for user input according to various embodiments will be described in detail with reference to the drawings described later.

도 6은 본 발명의 다양한 실시 예들에 따른 전자 장치의 미라캐스트 서비스를 제공하는 동작 방법을 도시하는 흐름도이다.FIG. 6 is a flowchart illustrating a method of providing a Miracast service for an electronic device according to various embodiments of the present invention.

도 6에 도시한 바와 같이, 도 6은 데이터를 제공(공유)하는 소스 장치로 동작하는 전자 장치(400)에서 미라캐스트 서비스를 제공하는 예를 나타낼 수 있다.As shown in FIG. 6, FIG. 6 may show an example of providing a Miracast service from an electronic device 400 operating as a source device that provides (shares) data.

도 6을 참조하면, 동작 601에서, 전자 장치(400)(예: 소스 장치)의 프로세서(예: 도 1 또는 도 2의 프로세서(120, 210), 이하, 프로세서(210)라 칭함)는 외부 전자 장치(500)와 미라캐스트를 연결할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 미라캐스트 서비스를 위한 사용자 입력에 응답하여 외부 전자 장치(500)와 미라캐스트를 연결할 수 있다. 한 실시 예에 따르면, 프로세서(210)는 어플리케이션을 실행하여 관련 화면 데이터를 표시하는 상태, 또는 디스플레이가 턴-온된 상태(예: 홈 화면을 표시하는 상태) 등에서, 미라캐스트 서비스를 실행(예: 미라캐스트 실행 아이콘 선택)하는 사용자 입력을 수신할 수 있다.Referring to FIG. 6, in operation 601, the processor (e.g., the processors 120 and 210 of FIG. 1 or FIG. 2, hereinafter referred to as the processor 210) of the electronic device 400 (e.g., source device) externally The electronic device 500 can be connected to Miracast. According to various embodiments, the processor 210 may connect the external electronic device 500 and Miracast in response to a user input for the Miracast service. According to one embodiment, the processor 210 executes the Miracast service (e.g., in a state of executing an application to display related screen data, or in a state in which the display is turned on (e.g., displaying a home screen), etc. You can receive user input by selecting the Miracast execution icon.

동작 603에서, 프로세서(210)는 미라캐스트 연결에 대응하여 외부 전자 장치(500)에 장치 정보를 요청할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 외부 전자 장치(500)가 지원하는 해상도와 외부 전자 장치(500)의 디스플레이 타입(또는 동작 모드)을 요청하는 요청 메시지를 외부 전자 장치(500)에 전송할 수 있다.In operation 603, the processor 210 may request device information from the external electronic device 500 in response to the Miracast connection. According to various embodiments, the processor 210 may transmit a request message to the external electronic device 500 requesting a resolution supported by the external electronic device 500 and a display type (or operation mode) of the external electronic device 500. You can.

동작 605에서, 프로세서(210)는 외부 전자 장치(500)로부터 장치 정보를 수신할 수 있다. 다양한 실시 예들에 따라, 외부 전자 장치(500)(예: 외부 전자 장치(500)의 프로세서)는 전자 장치(400)의 장치 정보 요청에 대응하여 외부 전자 장치(500)에 관련된 장치 정보를 포함하는 응답 메시지를 전자 장치(400)에 전송할 수 있다. 다양한 실시 예들에 따라, 장치 정보는, 외부 전자 장치(500)가 지원하는 해상도 정보와 디스플레이의 타입 정보를 포함할 수 있다. 다양한 실시 예들에 따르면, 장치 정보는, 외부 전자 장치(500)의 동작 모드에 대한 정보, 외부 전자 장치(500)의 타입(예: 태블릿 PC, 냉장고, 텔레비전 등)에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보 등을 더 포함할 수 있다.In operation 605, the processor 210 may receive device information from the external electronic device 500. According to various embodiments, the external electronic device 500 (e.g., a processor of the external electronic device 500) includes device information related to the external electronic device 500 in response to a device information request from the electronic device 400. A response message may be transmitted to the electronic device 400. According to various embodiments, device information may include resolution information and display type information supported by the external electronic device 500. According to various embodiments, device information includes information about the operation mode of the external electronic device 500, information about the type of the external electronic device 500 (e.g., tablet PC, refrigerator, television, etc.), manufacturer information, and model name. It may further include information, or information of a user input back channel (UIBC).

동작 607에서, 프로세서(210)는 장치 정보에 기반하여 외부 전자 장치(500)의 디스플레이 타입을 판단할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 수신된 장치 정보(예: 디스플레이의 타입 정보)에 기반하여 외부 전자 장치(500)가 세로형 디스플레이인지 여부를 판단할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 수신된 장치 정보(예: 외부 전자 장치(500)의 타입에 대한 정보, 동작 모드 정보)에 기반하여 외부 전자 장치(500)가 세로 방향으로 동작 중인지 가로 방향으로 동작 중인지 여부를 판단할 수도 있다.In operation 607, the processor 210 may determine the display type of the external electronic device 500 based on device information. According to various embodiments, the processor 210 may determine whether the external electronic device 500 has a vertical display based on received device information (eg, display type information). According to various embodiments, the processor 210 determines whether the external electronic device 500 is operating in the vertical direction or horizontally based on received device information (e.g., information about the type of the external electronic device 500, operation mode information). It is also possible to determine whether or not it is operating in that direction.

동작 609에서, 프로세서(210)는 외부 전자 장치(500)가 세로형 디스플레이(또는 세로 방향으로 동작 중)인 것을 결정하면, 동작 611에서, 세로형 디스플레이(또는 세로 방향의 동작)에 대응하도록 데이터를 생성할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 전자 장치(400)의 데이터(예: 화면 데이터, 재생 데이터)를, 외부 전자 장치(500)가 지원하는 해상도와 외부 전자 장치(500)의 세로형 디스플레이 타입에 대응하는 데이터로 생성할 수 있다. 다양한 실시 예들에 따라 데이터를 생성하는 동작에 대해 후술하는 도면들을 참조하여 구체적으로 설명된다.In operation 609, if the processor 210 determines that the external electronic device 500 has a portrait display (or is operating in a portrait orientation), in operation 611, the processor 210 generates data to correspond to the portrait display (or operating in a portrait orientation). can be created. According to various embodiments, the processor 210 stores data (e.g., screen data, playback data) of the electronic device 400 at a resolution supported by the external electronic device 500 and displays the vertical display of the external electronic device 500. It can be created with data corresponding to the type. An operation for generating data according to various embodiments will be described in detail with reference to the drawings described later.

동작 613에서, 프로세서(210)는 생성된 데이터를 외부 전자 장치(500)에 전송할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 데이터를 전송할 때 스트리밍(streaming)으로 전송할 수 있다. 예를 들면, 프로세서(210)는 주기적으로, 연속적으로 또는 실시간으로 데이터를 전송할 수 있다. In operation 613, the processor 210 may transmit the generated data to the external electronic device 500. According to various embodiments, the processor 210 may transmit data through streaming. For example, processor 210 may transmit data periodically, continuously, or in real time.

도 7 및 도 8은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스의 동작 시나리오의 일 예를 설명하기 위해 도시하는 도면들이다. Figures 7 and 8 are diagrams to explain an example of an operation scenario of the Miracast service according to various embodiments of the present invention.

도 7 및 도 8에 도시한 바와 같이, 도 7 및 도 8은 전자 장치(400)가 미라캐스트 서비스(기능) 중 미러링(mirroring) 모드로 동작하는 경우의 예를 나타낼 수 있다. 다양한 실시 예들에서, 미러링 모드는 전자 장치(400)(예: 소스 장치)의 화면 데이터를 외부 전자 장치(500)(예: 싱크 장치)에서 그대로 표시하는 동작을 포함할 수 있다. 예를 들면, 미러링 모드는 전자 장치(400)에 표시되는 화면과 외부 전자 장치(500)에 표시되는 화면이 동일할 수 있다. 도 7 및 도 8에서는 세로형 디스플레이(예: 세로 방향이 기본으로 고정된 세로형 디스플레이) 기반의 싱크 장치(500)(예: 냉장고 등)를 예로 설명하지만, 다양한 실시 예들이 이에 한정하는 것은 아니다. 예를 들면, 다양한 실시 예들에 따르면, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 디스플레이 기반의 싱크 장치(500)(예: 태블릿 PC 등)에서도 동작할 수 있다.As shown in FIGS. 7 and 8 , FIGS. 7 and 8 may represent an example of a case where the electronic device 400 operates in mirroring mode among the Miracast service (function). In various embodiments, the mirroring mode may include an operation of displaying screen data of the electronic device 400 (eg, a source device) on the external electronic device 500 (eg, a sink device). For example, in the mirroring mode, the screen displayed on the electronic device 400 and the screen displayed on the external electronic device 500 may be the same. 7 and 8 illustrate the sync device 500 (e.g., refrigerator, etc.) based on a vertical display (e.g., a vertical display with a fixed vertical orientation by default) as an example, but the various embodiments are not limited thereto. . For example, according to various embodiments, it can also operate in a display-based sync device 500 (e.g., a tablet PC, etc.) that is used by rotating the display, which is basically horizontal, to the vertical direction.

도 7을 참조하면, 도 7은 예시 <701> 및 예시 <707>에 도시한 바와 같이, 해상도가 2560x1440이고 포트레이트 레이아웃(portrait layout)으로 동작하는 전자 장치(400)(이하, 소스 장치)와, 해상도가 1920x1080이고 디스플레이 타입이 세로형 디스플레이(750)인 외부 전자 장치(500)(이하, 싱크 장치)(예: 냉장고)가 서로 미라캐스트로 연결된 상태를 나타낼 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)와 협상 절차를 통해, 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)이고, 지원 해상도가 1920x1080인 것을 판단할 수 있다. 예를 들면, 싱크 장치(500)는 해상도 정보(예: 1920x1080)와, 가로 방향으로 디스플레이가 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 소스 장치(400)는 가로 방향의 해상도 정보와 회전된 각도 정보에 기초하여 싱크 장치(500)의 디스플레이 타입이 세로 방향인지 또는 가로 방향인지 여부를 판단할 수 있다.Referring to FIG. 7, as shown in examples <701> and <707>, an electronic device 400 (hereinafter referred to as a source device) with a resolution of 2560x1440 and operating in a portrait layout; This may indicate a state in which external electronic devices 500 (hereinafter referred to as sink devices) (e.g., refrigerators) with a resolution of 1920x1080 and a vertical display type of 750 are connected to each other through Miracast. According to various embodiments, the source device 400 may determine that the display type of the sink device 500 is a vertical display 750 and the supported resolution is 1920x1080 through a negotiation procedure with the sink device 500. . For example, the sync device 500 may provide resolution information (e.g., 1920x1080) and information on the angle at which the display is rotated in the horizontal direction (e.g., rotation 270). The source device 400 may determine whether the display type of the sink device 500 is portrait or landscape based on horizontal resolution information and rotated angle information.

소스 장치(400)는 싱크 장치(500)로 전송하고자 하는 데이터(예: 화면 데이터)를 판단된 해상도(예: 1920x1080)에 대응하도록 생성할 수 있다. 예를 들면, 소스 장치(400)는 자신의 해상도(2560x1440)에 대응하는 화면 데이터를 싱크 장치(500)의 해상도(1920x1080)에 대응하도록 변경하여 공유 데이터를 생성할 수 있다.The source device 400 may generate data (e.g., screen data) to be transmitted to the sink device 500 to correspond to the determined resolution (e.g., 1920x1080). For example, the source device 400 may change the screen data corresponding to its own resolution (2560x1440) to correspond to the resolution (1920x1080) of the sink device 500 to generate shared data.

다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)인 것에 기반하여, 세로형 디스플레이를 위한 공유 데이터를 생성할 수 있다. 예를 들면, 예시 <703>에 도시한 바와 같이, 소스 장치(400)는 공유 데이터를 생성할 때, 공유 데이터를 그리기(drawing)(또는 생성하기) 위한 가상 디스플레이(virtual display)(710)(예: 캔버스(canvas))를 회전하여 세로 형태로 변경할 수 있다. 한 실시 예에 따르면, 소스 장치(400)는 공유 데이터를 생성할 때, 싱크 장치(500)의 해상도(1920x1080)에 대응하여 해상도가 1920x1080인 가상 디스플레이(710)를 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <701>의 세로 형태의 화면 데이터를, 세로 형태의 가상 디스플레이(710) 내에서 가로와 세로 비율(9:16)로 생성할 수 있다. 예를 들면, 소스 장치(400)는 세로 형태의 가상 디스플레이(710)를 이용하여, 소스 장치(400)에 표시되는 세로 형태의 화면 데이터의 형태(예: 포트레이트 레이아웃)로 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <701> 및 예시 <703>과 같이 화면 데이터의 회전 없이 공유 데이터를 생성할 수 있다. 소스 장치(400)는 싱크 장치(500)의 지원 해상도에 대응하는 가상 디스플레이(710)를 이용하여 공유 데이터를 생성할 수 있다.According to various embodiments, the source device 400 may generate shared data for a vertical display based on the display type of the sink device 500 being a vertical display 750. For example, as shown in example <703>, when generating shared data, the source device 400 uses a virtual display 710 ( Example: You can rotate the canvas to change it to vertical. According to one embodiment, when generating shared data, the source device 400 may create a virtual display 710 with a resolution of 1920x1080 corresponding to the resolution (1920x1080) of the sink device 500. According to various embodiments, the source device 400 may generate vertical screen data in example <701> with a width-to-height ratio (9:16) within the vertical virtual display 710. For example, the source device 400 may use the vertical virtual display 710 to generate vertical screen data displayed on the source device 400 (e.g., portrait layout). According to various embodiments, the source device 400 may generate shared data without rotating screen data, as shown in examples <701> and <703>. The source device 400 may generate shared data using the virtual display 710 corresponding to the resolution supported by the sink device 500.

한 실시 예에 따라, 가상 디스플레이(710)는, 기본적으로 가로 방향(landscape orientation)의 디스플레이에 대응하도록 가로 형태로 제공될 수 있다. 소스 장치(400)는 기본 설정된 가로 형태의 가상 디스플레이(710)를 싱크 장치(500)의 세로형 디스플레이(750)(예: 회전 각도 정보)에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다. 다양한 실시 예들에서, 소스 장치(400)는 협상 절차에서 판단된 디스플레이의 타입 정보에 기반하여 가상 디스플레이(710)의 회전 및/또는 회전 방향을 결정할 수 있다. 소스 장치(400)는 회전된 가상 디스플레이(710)를 이용하여 세로형 디스플레이(750)에 표시될 공유 데이터를 생성할 수 있다.According to one embodiment, the virtual display 710 may be provided in a landscape format to basically correspond to a landscape orientation display. The source device 400 rotates the default horizontal virtual display 710 to a vertical form (e.g., 90 degrees or 270 degrees) to correspond to the vertical display 750 (e.g., rotation angle information) of the sink device 500. degrees) can be rotated. In various embodiments, the source device 400 may determine the rotation and/or direction of rotation of the virtual display 710 based on display type information determined in the negotiation procedure. The source device 400 may generate shared data to be displayed on the vertical display 750 using the rotated virtual display 710.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <705>에 도시한 바와 같이, 세로형 디스플레이(750)에 대응되는 가상 디스플레이(710)에 의해 생성된 공유 데이터를, 싱크 장치(500)에 전송하기 위한 버퍼(730)(예: 프레임 버퍼)를 통해 이미지 프레임 데이터로 생성할 수 있다. 소스 장치(400)는 이미지 프레임 데이터를 무선 통신을 통해 싱크 장치(500)에 전송할 수 있다. According to various embodiments, the source device 400, as shown in example <705>, sends shared data generated by the virtual display 710 corresponding to the vertical display 750 to the sink device 500. Image frame data can be generated through a buffer 730 (e.g., frame buffer) for transmission to . The source device 400 may transmit image frame data to the sink device 500 through wireless communication.

다양한 실시 예들에 따르면, 소스 장치(400)는 가상 디스플레이(710)를 이용한 공유 데이터 생성 단계에서, 가로 방향 또는 세로 방향의 가상 디스플레이(710)를 이용하여, 싱크 장치(500)의 디스플레이 타입(또는 디스플레이의 동작 방향) 및 해당 해상도에 대응하는 공유 데이터를 생성할 수 있다. 따라서 소스 장치(400)는 싱크 장치(500)의 해상도를 맞추기 위한 추가적인 해상도 변경 동작을 수행하지 않을 수 있다. 따라서 다양한 실시 예들에서는, 해상도 변경에 따른 인코더 변경을 수행하지 않을 수 있다.According to various embodiments, in the shared data generation step using the virtual display 710, the source device 400 uses the virtual display 710 in the horizontal or vertical direction to determine the display type (or Shared data corresponding to the operating direction of the display) and corresponding resolution can be created. Therefore, the source device 400 may not perform an additional resolution change operation to match the resolution of the sink device 500. Therefore, in various embodiments, encoder change according to resolution change may not be performed.

다양한 실시 예들에 따라, 싱크 장치(500)는, 예시 <707>에 도시한 바와 같이, 소스 장치(400)로부터 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)에서 세로형 디스플레이(750)에 대응하도록 맞춰진 이미지 프레임 데이터가 전송됨에 따라, 싱크 장치(500)는 수신된 이미지에 대한 어떠한 처리(예: 회전(rotation) 및/또는 스케일링(scaling) 등) 없이 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)가 가상 디스플레이(710)를 통해 그려지는 데이터(예: 예시 <803> 참조)와 동일한 형태의 데이터가 세로형 디스플레이(750)를 통해 표시될 수 있다.According to various embodiments, the sink device 500 may immediately display image frame data received from the source device 400, as shown in example <707>. For example, as image frame data tailored to correspond to the vertical display 750 is transmitted from the source device 400, the sink device 500 performs any processing on the received image (e.g., rotation and/or Alternatively, the received image frame data can be displayed immediately without scaling (scaling, etc.). For example, data of the same type as data drawn by the source device 400 through the virtual display 710 (e.g., see example <803>) may be displayed through the vertical display 750.

도 8을 참조하면, 도 8은 예시 <801> 및 예시 <807>에 도시한 바와 같이, 해상도가 2560x1440이고 랜드스케이프 레이아웃(landscape layout)으로 동작하는 전자 장치(400)(이하, 소스 장치)와, 해상도가 1920x1080이고 디스플레이 타입이 세로형 디스플레이(750)인 외부 전자 장치(500)(이하, 싱크 장치)(예: 냉장고)가 서로 미라캐스트로 연결된 상태를 나타낼 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)와 협상 절차를 통해, 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)이고, 지원 해상도가 1920x1080인 것을 판단할 수 있다. 예를 들면, 싱크 장치(500)는 해상도 정보(예: 1920x1080)와, 가로 방향으로 디스플레이가 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 소스 장치(400)는 가로 방향의 해상도 정보와 회전된 각도 정보에 기초하여 싱크 장치(500)의 디스플레이 타입이 세로 방향인지 또는 가로 방향인지 여부를 판단할 수 있다.소스 장치(400)는 싱크 장치(500)로 전송하고자 하는 데이터(예: 화면 데이터)를 판단된 해상도(예: 1920x1080)에 대응하도록 생성할 수 있다. 예를 들면, 소스 장치(400)는 자신의 해상도(2560x1440)에 대응하는 화면 데이터를 싱크 장치(500)의 해상도(1920x1080)에 대응하도록 변경하여 공유 데이터를 생성할 수 있다. Referring to FIG. 8, as shown in examples <801> and <807>, an electronic device 400 (hereinafter referred to as a source device) with a resolution of 2560x1440 and operating in a landscape layout is provided. , It may indicate a state in which an external electronic device 500 (hereinafter referred to as a sink device) (e.g., a refrigerator) having a resolution of 1920x1080 and a display type of a vertical display 750 is connected to each other through Miracast. According to various embodiments, the source device 400 may determine that the display type of the sink device 500 is a vertical display 750 and the supported resolution is 1920x1080 through a negotiation procedure with the sink device 500. . For example, the sync device 500 may provide resolution information (e.g., 1920x1080) and information on the angle at which the display is rotated in the horizontal direction (e.g., rotation 270). The source device 400 may determine whether the display type of the sink device 500 is portrait or landscape based on the horizontal resolution information and the rotated angle information. The source device 400 is a sink device. Data (e.g., screen data) to be transmitted at 500 can be generated to correspond to the determined resolution (e.g., 1920x1080). For example, the source device 400 may change the screen data corresponding to its own resolution (2560x1440) to correspond to the resolution (1920x1080) of the sink device 500 to generate shared data.

다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)인 것에 기반하여, 세로형 디스플레이를 위한 공유 데이터를 생성할 수 있다. 예를 들면, 예시 <803>에 도시한 바와 같이, 소스 장치(400)는 공유 데이터를 생성할 때, 공유 데이터를 그리기(또는 생성하기) 위한 가상 디스플레이(710)(예: 캔버스)를 회전하여 세로 형태로 변경할 수 있다. 한 실시 예에 따르면, 소스 장치(400)는 공유 데이터를 생성할 때, 싱크 장치(500)의 해상도(1920x1080)에 대응하여 해상도가 1920x1080인 가상 디스플레이(710)를 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <801>의 가로 형태의 화면 데이터를, 세로 형태의 가상 디스플레이(710) 내에서 가로와 세로 비율(16:9)로 생성할 수 있다. 예를 들면, 소스 장치(400)는 세로 형태의 가상 디스플레이(710)를 이용하여, 소스 장치(400)에 표시되는 가로 형태의 화면 데이터의 형태(예: 랜드스케이프 레이아웃)로 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <801> 및 예시 <803>과 같이 화면 데이터의 회전 없이 공유 데이터를 생성할 수 있다. 소스 장치(400)는 싱크 장치(500)의 지원 해상도에 대응하는 가상 디스플레이(710)를 이용하여 세로형 디스플레이(750)에 표시될 공유 데이터를 생성할 수 있다.According to various embodiments, the source device 400 may generate shared data for a vertical display based on the display type of the sink device 500 being a vertical display 750. For example, as shown in example <803>, when generating shared data, the source device 400 rotates the virtual display 710 (e.g., canvas) for drawing (or creating) the shared data. It can be changed to vertical format. According to one embodiment, when generating shared data, the source device 400 may create a virtual display 710 with a resolution of 1920x1080 corresponding to the resolution (1920x1080) of the sink device 500. According to various embodiments, the source device 400 may generate horizontal screen data of example <801> with a width-to-height ratio (16:9) within the vertical virtual display 710. For example, the source device 400 may use the vertical virtual display 710 to generate horizontal screen data displayed on the source device 400 (eg, landscape layout). According to various embodiments, the source device 400 may generate shared data without rotating screen data, as shown in examples <801> and <803>. The source device 400 may generate shared data to be displayed on the vertical display 750 using the virtual display 710 corresponding to the resolution supported by the sink device 500.

한 실시 예에 따라, 가상 디스플레이(710)는, 기본적으로 가로 방향(landscape orientation)의 디스플레이에 대응하도록 가로 형태로 제공될 수 있다. 소스 장치(400)는 기본 설정된 가로 형태의 가상 디스플레이(710)를 싱크 장치(500)의 세로형 디스플레이(750)(예: 회전 각도 정보)에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다.According to one embodiment, the virtual display 710 may be provided in a landscape format to basically correspond to a landscape orientation display. The source device 400 rotates the default horizontal virtual display 710 to a vertical form (e.g., 90 degrees or 270 degrees) to correspond to the vertical display 750 (e.g., rotation angle information) of the sink device 500. degrees) can be rotated.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <805>에 도시한 바와 같이, 세로형 디스플레이(750)에 대응되는 가상 디스플레이(710)에 의해 생성된 공유 데이터를, 싱크 장치(500)에 전송하기 위한 버퍼(730)(예: 프레임 버퍼)를 통해 이미지 프레임 데이터로 생성할 수 있다. 소스 장치(400)는 이미지 프레임 데이터를 무선 통신을 통해 싱크 장치(500)에 전송할 수 있다. 다양한 실시 예들에 따르면, 소스 장치(400)는 가상 디스플레이(710)를 이용한 공유 데이터 생성 단계에서, 가로 방향 또는 세로 방향의 가상 디스플레이(710)를 이용하여, 싱크 장치(500)의 디스플레이 타입(또는 디스플레이의 동작 방향) 및 해당 해상도에 대응하는 공유 데이터를 생성할 수 있다. 따라서 소스 장치(400)는 싱크 장치(500)의 해상도를 맞추기 위한 추가적인 해상도 변경 동작을 수행하지 않을 수 있다. 따라서 다양한 실시 예들에서는, 해상도 변경에 따른 인코더 변경을 수행하지 않을 수 있다.According to various embodiments, the source device 400, as shown in example <805>, sends shared data generated by the virtual display 710 corresponding to the vertical display 750 to the sink device 500. Image frame data can be generated through a buffer 730 (e.g., frame buffer) for transmission to . The source device 400 may transmit image frame data to the sink device 500 through wireless communication. According to various embodiments, in the shared data generation step using the virtual display 710, the source device 400 uses the virtual display 710 in the horizontal or vertical direction to determine the display type (or Shared data corresponding to the operating direction of the display) and corresponding resolution can be created. Therefore, the source device 400 may not perform an additional resolution change operation to match the resolution of the sink device 500. Therefore, in various embodiments, encoder change according to resolution change may not be performed.

다양한 실시 예들에 따라, 싱크 장치(500)는, 예시 <807>에 도시한 바와 같이, 소스 장치(400)로부터 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)에서 세로형 디스플레이(750)에 대응하도록 맞춰진 이미지 프레임 데이터가 전송됨에 따라, 싱크 장치(500)는 수신된 이미지에 대한 어떠한 처리(예: 회전 및/또는 스케일링 등) 없이 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)가 가상 디스플레이(710)를 통해 그려지는 데이터(예: 예시 <803> 참조)와 동일한 형태의 데이터가 세로형 디스플레이(750)를 통해 표시될 수 있다.According to various embodiments, the sink device 500 may immediately display image frame data received from the source device 400, as shown in example <807>. For example, as image frame data tailored to correspond to the vertical display 750 is transmitted from the source device 400, the sink device 500 performs any processing on the received image (e.g., rotation and/or scaling, etc.). ), the received image frame data can be displayed immediately. For example, data of the same type as data drawn by the source device 400 through the virtual display 710 (e.g., see example <803>) may be displayed through the vertical display 750.

도 7 및 도 8을 참조하여 살펴본 바와 같이, 다양한 실시 예들에 따르면, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입에 대응하여, 가로 방향 또는 세로 방향의 가상 디스플레이(710)를 생성하고, 가상 디스플레이(710)를 싱크 장치(500)의 해상도에 대응하는 해상도로 생성할 수 있다. 따라서 다양한 실시 예들에 따르면, 소스 장치(400)에서 생성되는 공유 데이터는, 예를 들면, 싱크 장치(500)의 해당 방향의 디스플레이에 직접 표시하는 것과 효과를 제공할 수 있고, 이에 따라 이미지 열화 등을 방지할 수 있다.As seen with reference to FIGS. 7 and 8 , according to various embodiments, the source device 400 generates a virtual display 710 in a horizontal or vertical direction corresponding to the display type of the sink device 500, and , the virtual display 710 can be created with a resolution corresponding to the resolution of the sink device 500. Therefore, according to various embodiments, shared data generated in the source device 400 may, for example, be directly displayed on the display in the corresponding direction of the sink device 500 and provide effects, resulting in image deterioration, etc. can be prevented.

도 9 및 도 10은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스의 동작 시나리오의 다른 예를 설명하기 위해 도시하는 도면들이다.Figures 9 and 10 are diagrams to explain another example of an operation scenario of the Miracast service according to various embodiments of the present invention.

도 9 및 도 10에 도시한 바와 같이, 도 9 및 도 10은 미라캐스트 서비스(기능) 중 프리젠테이션(presentation) 모드로 동작하는 경우의 예를 나타낼 수 있다. 다양한 실시 예들에서, 프리젠테이션 모드는 전자 장치(400)(예: 소스 장치)의 재생 데이터(예: 동영상 데이터, 게임 데이터, 문서 데이터 등 전자 장치(400)에 의해 실행(재생)되는 데이터)를 외부 전자 장치(500)(예: 싱크 장치)를 통해 표시하면서, 전자 장치(400)가 외부 전자 장치(500) 또는 외부 전자 장치(500)를 통해 표시된 데이터의 제어에 관련된 인터페이스를 제공하는 동작을 포함할 수 있다. 예를 들면, 프리젠테이션 모드는 전자 장치(400)에 표시되는 화면과 외부 전자 장치(500)에 표시되는 화면이 다를 수 있다. 도 9 및 도 10에서는 세로형 디스플레이(예: 세로 방향이 기본으로 고정된 세로형 디스플레이) 기반의 싱크 장치(500)(예: 냉장고 등)를 예로 설명하지만, 다양한 실시 예들이 이에 한정하는 것은 아니다. 예를 들면, 다양한 실시 예들에 따르면, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 디스플레이 기반의 싱크 장치(500)(예: 태블릿 PC 등)에서도 동작할 수 있다.As shown in FIGS. 9 and 10, FIGS. 9 and 10 may show an example of operating in presentation mode among the Miracast services (functions). In various embodiments, the presentation mode displays playback data (e.g., data executed (played) by the electronic device 400, such as video data, game data, document data, etc.) of the electronic device 400 (e.g., source device). An operation in which the electronic device 400 provides an interface related to the control of data displayed through the external electronic device 500 or the external electronic device 500 while displaying through the external electronic device 500 (e.g., a sink device). It can be included. For example, in the presentation mode, the screen displayed on the electronic device 400 may be different from the screen displayed on the external electronic device 500. 9 and 10 illustrate the sync device 500 (e.g., refrigerator, etc.) based on a vertical display (e.g., a vertical display with a fixed vertical orientation by default) as an example, but the various embodiments are not limited thereto. . For example, according to various embodiments, it can also operate in a display-based sync device 500 (e.g., a tablet PC, etc.) that is used by rotating the display, which is basically horizontal, to the vertical direction.

도 9를 참조하면, 도 9는 예시 <901> 및 예시 <907>에 도시한 바와 같이, 컨텐츠의 해상도가 1920x1080이고 컨텐츠를 포트레이트 레이아웃으로 재생하는 전자 장치(400)(이하, 소스 장치)와, 디스플레이(750)의 해상도가 1920x1080이고 디스플레이 타입이 세로형 디스플레이(750)인 외부 전자 장치(500)(이하, 싱크 장치)(예: 냉장고)가 서로 미라캐스트로 연결된 상태를 나타낼 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)와 협상 절차를 통해, 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)이고, 지원 해상도가 1920x1080인 것을 판단할 수 있다. 예를 들면, 싱크 장치(500)는 해상도 정보(예: 1920x1080)와, 가로 방향으로 디스플레이가 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 소스 장치(400)는 가로 방향의 해상도 정보와 회전된 각도 정보에 기초하여 싱크 장치(500)의 디스플레이 타입이 세로 방향인지 또는 가로 방향인지 여부를 판단할 수 있다.Referring to FIG. 9 , as shown in examples <901> and <907>, the electronic device 400 (hereinafter referred to as source device) has a content resolution of 1920x1080 and reproduces the content in a portrait layout; This may indicate a state in which an external electronic device 500 (hereinafter referred to as a sink device) (e.g., a refrigerator) whose display 750 has a resolution of 1920x1080 and a display type of a vertical display 750 is connected to each other via Miracast. According to various embodiments, the source device 400 may determine that the display type of the sink device 500 is a vertical display 750 and the supported resolution is 1920x1080 through a negotiation procedure with the sink device 500. . For example, the sync device 500 may provide resolution information (e.g., 1920x1080) and information on the angle at which the display is rotated in the horizontal direction (e.g., rotation 270). The source device 400 may determine whether the display type of the sink device 500 is portrait or landscape based on horizontal resolution information and rotated angle information.

소스 장치(400)는 싱크 장치(500)로 전송하고자 하는 데이터(예: 재생 데이터)를 판단된 해상도(예: 1920x1080)에 대응하도록 생성할 수 있다. 예를 들면, 소스 장치(400)는 특정 해상도(1920x1080)를 가지는 재생 데이터를 싱크 장치(500)의 해상도(1920x1080)에 대응하도록 변경하여 공유 데이터를 생성할 수 있다.The source device 400 may generate data (e.g., playback data) to be transmitted to the sink device 500 to correspond to the determined resolution (e.g., 1920x1080). For example, the source device 400 can generate shared data by changing playback data with a specific resolution (1920x1080) to correspond to the resolution (1920x1080) of the sink device 500.

다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)인 것에 기반하여, 세로형 디스플레이를 위한 공유 데이터를 생성할 수 있다. 예를 들면, 예시 <903>에 도시한 바와 같이, 소스 장치(400)는 공유 데이터를 생성할 때, 공유 데이터를 그리기(또는 생성하기) 위한 가상 디스플레이(710)(예: 캔버스)를 회전하여 세로 형태로 변경할 수 있다. 한 실시 예에 따르면, 소스 장치(400)는 공유 데이터를 생성할 때, 싱크 장치(500)의 해상도(1920x1080)에 대응하여 해상도가 1920x1080인 가상 디스플레이(710)를 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <901>의 세로 형태의 재생 데이터를, 세로 형태의 가상 디스플레이(710) 내에서 가로와 세로 비율(9:16)로 생성할 수 있다. 예를 들면, 소스 장치(400)는 세로 형태의 가상 디스플레이(710)를 이용하여, 소스 장치(400)에 표시되는 세로 형태의 재생 데이터의 형태(예: 포트레이트 레이아웃)로 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <901> 및 예시 <903>과 같이 재생 데이터의 회전 없이 공유 데이터를 생성할 수 있다. 소스 장치(400)는 싱크 장치(500)의 지원 해상도에 대응하는 가상 디스플레이(710)를 이용하여 공유 데이터를 생성할 수 있다.According to various embodiments, the source device 400 may generate shared data for a vertical display based on the display type of the sink device 500 being a vertical display 750. For example, as shown in example <903>, when generating shared data, the source device 400 rotates the virtual display 710 (e.g., canvas) for drawing (or creating) the shared data. It can be changed to vertical format. According to one embodiment, when generating shared data, the source device 400 may create a virtual display 710 with a resolution of 1920x1080 corresponding to the resolution (1920x1080) of the sink device 500. According to various embodiments, the source device 400 may generate vertical playback data of example <901> with a width-to-height ratio (9:16) within the vertical virtual display 710. For example, the source device 400 may use the vertical virtual display 710 to generate vertical playback data displayed on the source device 400 (e.g., portrait layout). According to various embodiments, the source device 400 may generate shared data without rotating playback data, as shown in examples <901> and <903>. The source device 400 may generate shared data using the virtual display 710 corresponding to the resolution supported by the sink device 500.

다양한 실시 예들에 따라, 소스 장치(400)는 기본 설정된 가로 형태의 가상 디스플레이(710)를 싱크 장치(500)의 세로형 디스플레이(750)에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다. 다양한 실시 예들에서, 소스 장치(400)는 협상 절차에서 판단된 디스플레이의 타입 정보에 기반하여 가상 디스플레이(710)의 회전 및/또는 회전 방향을 결정할 수 있다. 소스 장치(400)는 회전된 가상 디스플레이(710)를 이용하여 세로형 디스플레이(750)에 표시될 공유 데이터를 생성할 수 있다.According to various embodiments, the source device 400 rotates the default horizontal virtual display 710 to a vertical form (e.g., 90 degrees or 270 degrees) to correspond to the vertical display 750 of the sink device 500. rotation) can be performed. In various embodiments, the source device 400 may determine the rotation and/or direction of rotation of the virtual display 710 based on display type information determined in the negotiation procedure. The source device 400 may generate shared data to be displayed on the vertical display 750 using the rotated virtual display 710.

한 실시 예에 따라, 가상 디스플레이(710)는, 기본적으로 가로 방향(landscape orientation)의 디스플레이에 대응하도록 가로 형태로 제공될 수 있다. 소스 장치(400)는 기본 설정된 가로 형태의 가상 디스플레이(710)를 싱크 장치(500)의 세로형 디스플레이(750)(예: 회전 각도 정보)에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다.According to one embodiment, the virtual display 710 may be provided in a landscape format to basically correspond to a landscape orientation display. The source device 400 rotates the default horizontal virtual display 710 to a vertical form (e.g., 90 degrees or 270 degrees) to correspond to the vertical display 750 (e.g., rotation angle information) of the sink device 500. degrees) can be rotated.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <905>에 도시한 바와 같이, 세로형 디스플레이(750)에 대응되는 가상 디스플레이(710)에 의해 생성된 공유 데이터를, 싱크 장치(500)에 전송하기 위한 버퍼(730)(예: 프레임 버퍼)를 통해 이미지 프레임 데이터로 생성할 수 있다. 소스 장치(400)는 이미지 프레임 데이터를 무선 통신을 통해 싱크 장치(500)에 전송할 수 있다. According to various embodiments, the source device 400, as shown in example <905>, sends shared data generated by the virtual display 710 corresponding to the vertical display 750 to the sink device 500. Image frame data can be generated through a buffer 730 (e.g., frame buffer) for transmission to . The source device 400 may transmit image frame data to the sink device 500 through wireless communication.

다양한 실시 예들에 따라, 싱크 장치(500)는, 예시 <907>에 도시한 바와 같이, 소스 장치(400)로부터 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)에서 세로형 디스플레이(750)에 대응하도록 맞춰진 이미지 프레임 데이터가 전송됨에 따라, 싱크 장치(500)는 수신된 이미지에 대한 어떠한 처리(예: 회전 및/또는 스케일링 등) 없이 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)가 가상 디스플레이(710)를 통해 그려지는 데이터(예: 예시 <903> 참조)와 동일한 형태의 데이터가 세로형 디스플레이(750)를 통해 표시될 수 있다.According to various embodiments, the sink device 500 may immediately display image frame data received from the source device 400, as shown in example <907>. For example, as image frame data tailored to correspond to the vertical display 750 is transmitted from the source device 400, the sink device 500 performs any processing on the received image (e.g., rotation and/or scaling, etc.). ), the received image frame data can be displayed immediately. For example, data of the same type as data drawn by the source device 400 through the virtual display 710 (e.g., see example <903>) may be displayed through the vertical display 750.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <901>에 도시한 바와 같이, 소스 장치(400)에서 재생되는 재생 데이터가 싱크 장치(500)에 전송되는 것에, 순차적으로 또는 병렬적으로, 프리젠테이션 모드에 따라 소스 장치(400)에 재생 데이터의 제어에 관련된 유저 인터페이스(900)를 표시할 수 있다. 유저 인터페이스(900)는 재생 데이터의 종류(예: 게임 데이터, 문서 데이터, 동영상 데이터 등)에 따라 다양한 형태로 구현될 수 있다.According to various embodiments, as shown in example <901>, the source device 400 sequentially or in parallel transmits playback data played in the source device 400 to the sink device 500. , the user interface 900 related to control of playback data may be displayed on the source device 400 according to the presentation mode. The user interface 900 may be implemented in various forms depending on the type of playback data (eg, game data, document data, video data, etc.).

도 10을 참조하면, 도 10은 예시 <1001> 및 예시 <1007>에 도시한 바와 같이, 컨텐츠의 해상도가 1920x1080이고 컨텐츠가 랜드스케이프 레이아웃으로 재생하는 전자 장치(400)(이하, 소스 장치)와, 디스플레이(750)의 해상도가 1920x1080이고 디스플레이 타입이 세로형 디스플레이(750)인 외부 전자 장치(500)(이하, 싱크 장치)(예: 냉장고)가 서로 미라캐스트로 연결된 상태를 나타낼 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)와 협상 절차를 통해, 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)이고, 지원 해상도가 1920x1080인 것을 판단할 수 있다. 예를 들면, 싱크 장치(500)는 해상도 정보(예: 1920x1080)와, 가로 방향으로 디스플레이가 회전된 각도 정보(예: rotation 270)를 제공할 수 있다. 소스 장치(400)는 가로 방향의 해상도 정보와 회전된 각도 정보에 기초하여 싱크 장치(500)의 디스플레이 타입이 세로 방향인지 또는 가로 방향인지 여부를 판단할 수 있다.Referring to FIG. 10, as shown in examples <1001> and <1007>, an electronic device 400 (hereinafter referred to as a source device) where the resolution of the content is 1920x1080 and the content is played in a landscape layout. , It may indicate a state in which an external electronic device 500 (hereinafter referred to as a sink device) (e.g., a refrigerator) whose display 750 has a resolution of 1920x1080 and a display type of a vertical display 750 is connected to each other via Miracast. According to various embodiments, the source device 400 may determine that the display type of the sink device 500 is a vertical display 750 and the supported resolution is 1920x1080 through a negotiation procedure with the sink device 500. . For example, the sync device 500 may provide resolution information (e.g., 1920x1080) and information on the angle at which the display is rotated in the horizontal direction (e.g., rotation 270). The source device 400 may determine whether the display type of the sink device 500 is portrait or landscape based on horizontal resolution information and rotated angle information.

소스 장치(400)는 싱크 장치(500)로 전송하고자 하는 데이터(예: 재생 데이터)를 판단된 해상도(예: 1920x1080)에 대응하도록 생성할 수 있다. 예를 들면, 소스 장치(400)는 특정 해상도(1290x1080)를 가지는 재생 데이터를 싱크 장치(500)의 해상도(1920x1080)에 대응하도록 변경하여 공유 데이터를 생성할 수 있다.The source device 400 may generate data (e.g., playback data) to be transmitted to the sink device 500 to correspond to the determined resolution (e.g., 1920x1080). For example, the source device 400 can generate shared data by changing playback data with a specific resolution (1290x1080) to correspond to the resolution (1920x1080) of the sink device 500.

다양한 실시 예들에 따라, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입이 세로형 디스플레이(750)인 것에 기반하여, 세로형 디스플레이를 위한 공유 데이터를 생성할 수 있다. 예를 들면, 예시 <1003>에 도시한 바와 같이, 소스 장치(400)는 공유 데이터를 생성할 때, 공유 데이터를 그리기(또는 생성하기) 위한 가상 디스플레이(710)(예: 캔버스)를 회전하여 세로 형태로 변경할 수 있다. 한 실시 예에 따르면, 소스 장치(400)는 공유 데이터를 생성할 때, 싱크 장치(500)의 해상도(1920x1080)에 대응하여 해상도가 1920x1080인 가상 디스플레이(710)를 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <1001>의 가로 형태의 화면 데이터를, 세로 형태의 가상 디스플레이(710) 내에서 가로와 세로 비율(16:9)로 생성할 수 있다. 예를 들면, 소스 장치(400)는 세로 형태의 가상 디스플레이(710)를 이용하여, 소스 장치(400)에 표시되는 가로 형태의 재생 데이터의 형태(예: 랜드스케이프 레이아웃)로 생성할 수 있다. 다양한 실시 예들에 따라, 소스 장치(400)는 예시 <1001> 및 예시 <1003>과 같이 화면 데이터의 회전 없이 공유 데이터를 생성할 수 있다. 소스 장치(400)는 싱크 장치(500)의 지원 해상도에 대응하는 가상 디스플레이(710)를 이용하여 세로형 디스플레이(750)에 표시될 공유 데이터를 생성할 수 있다.According to various embodiments, the source device 400 may generate shared data for a vertical display based on the display type of the sink device 500 being a vertical display 750. For example, as shown in example <1003>, when generating shared data, the source device 400 rotates the virtual display 710 (e.g., canvas) for drawing (or creating) the shared data. It can be changed to vertical format. According to one embodiment, when generating shared data, the source device 400 may create a virtual display 710 with a resolution of 1920x1080 corresponding to the resolution (1920x1080) of the sink device 500. According to various embodiments, the source device 400 may generate horizontal screen data in example <1001> with a width-to-height ratio (16:9) within the vertical virtual display 710. For example, the source device 400 may use the vertical virtual display 710 to generate horizontal playback data displayed on the source device 400 (eg, landscape layout). According to various embodiments, the source device 400 may generate shared data without rotating screen data, as shown in examples <1001> and <1003>. The source device 400 may generate shared data to be displayed on the vertical display 750 using the virtual display 710 corresponding to the resolution supported by the sink device 500.

한 실시 예에 따라, 가상 디스플레이(710)는, 기본적으로 가로 방향(landscape orientation)의 디스플레이에 대응하도록 가로 형태로 제공될 수 있다. 소스 장치(400)는 기본 설정된 가로 형태의 가상 디스플레이(710)를 싱크 장치(500)의 세로형 디스플레이(750)(예: 회전 각도 정보)에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다.According to one embodiment, the virtual display 710 may be provided in a landscape format to basically correspond to a landscape orientation display. The source device 400 rotates the default horizontal virtual display 710 to a vertical form (e.g., 90 degrees or 270 degrees) to correspond to the vertical display 750 (e.g., rotation angle information) of the sink device 500. degrees) can be rotated.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <1005>에 도시한 바와 같이, 세로형 디스플레이(750)에 대응되는 가상 디스플레이(710)에 의해 생성된 공유 데이터를, 싱크 장치(500)에 전송하기 위한 버퍼(730)(예: 프레임 버퍼)를 통해 이미지 프레임 데이터로 생성할 수 있다. 소스 장치(400)는 이미지 프레임 데이터를 무선 통신을 통해 싱크 장치(500)에 전송할 수 있다. According to various embodiments, the source device 400, as shown in example <1005>, sends shared data generated by the virtual display 710 corresponding to the vertical display 750 to the sink device 500. Image frame data can be generated through a buffer 730 (e.g., frame buffer) for transmission to . The source device 400 may transmit image frame data to the sink device 500 through wireless communication.

다양한 실시 예들에 따라, 싱크 장치(500)는, 예시 <1007>에 도시한 바와 같이, 소스 장치(400)로부터 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)에서 세로형 디스플레이(750)에 대응하도록 맞춰진 이미지 프레임 데이터가 전송됨에 따라, 싱크 장치(500)는 수신된 이미지에 대한 어떠한 처리(예: 회전 및/또는 스케일링 등) 없이 수신된 이미지 프레임 데이터를 바로 표시할 수 있다. 예를 들면, 소스 장치(400)가 가상 디스플레이(710)를 통해 그려지는 데이터(예: 예시 <1003> 참조)와 동일한 형태의 데이터가 세로형 디스플레이(750)를 통해 표시될 수 있다.According to various embodiments, the sink device 500 may immediately display image frame data received from the source device 400, as shown in example <1007>. For example, as image frame data tailored to correspond to the vertical display 750 is transmitted from the source device 400, the sink device 500 performs any processing on the received image (e.g., rotation and/or scaling, etc.). ), the received image frame data can be displayed immediately. For example, data of the same type as data drawn by the source device 400 through the virtual display 710 (e.g., see example <1003>) may be displayed through the vertical display 750.

다양한 실시 예들에 따라, 소스 장치(400)는, 예시 <901>에 도시한 바와 같이, 소스 장치(400)에서 재생되는 재생 데이터가 싱크 장치(500)에 전송되는 것에, 순차적으로 또는 병렬적으로, 프리젠테이션 모드에 따라 소스 장치(400)에 재생 데이터의 제어에 관련된 유저 인터페이스(1000)를 표시할 수 있다. 유저 인터페이스(1000)는 재생 데이터의 종류(예: 게임 데이터, 문서 데이터, 동영상 데이터 등)에 따라 다양한 형태로 구현될 수 있다.According to various embodiments, as shown in example <901>, the source device 400 sequentially or in parallel transmits playback data played in the source device 400 to the sink device 500. , the user interface 1000 related to control of playback data may be displayed on the source device 400 according to the presentation mode. The user interface 1000 may be implemented in various forms depending on the type of playback data (eg, game data, document data, video data, etc.).

도 9 및 도 10을 참조하여 살펴본 바와 같이, 다양한 실시 예들에 따르면, 소스 장치(400)는 싱크 장치(500)의 디스플레이 타입에 대응하여, 가로 방향 또는 세로 방향의 가상 디스플레이(710)를 생성하고, 가상 디스플레이(710)를 싱크 장치(500)의 해상도에 대응하는 해상도로 생성할 수 있다. 따라서 다양한 실시 예들에 따르면, 소스 장치(400)에서 생성되는 공유 데이터는, 예를 들면, 싱크 장치(500)의 해당 방향의 디스플레이에 직접 표시하는 것과 효과를 제공할 수 있고, 이에 따라 이미지 열화 등을 방지할 수 있다.As seen with reference to FIGS. 9 and 10 , according to various embodiments, the source device 400 generates a virtual display 710 in a horizontal or vertical direction corresponding to the display type of the sink device 500, and , the virtual display 710 can be created with a resolution corresponding to the resolution of the sink device 500. Therefore, according to various embodiments, shared data generated in the source device 400 may, for example, be directly displayed on the display in the corresponding direction of the sink device 500 and provide effects, resulting in image deterioration, etc. can be prevented.

도 11은 본 발명의 다양한 실시 예들에 따른 전자 장치의 미라캐스트 서비스를 제공하는 동작 방법을 도시하는 흐름도이다.FIG. 11 is a flowchart illustrating an operation method for providing a Miracast service of an electronic device according to various embodiments of the present invention.

도 11에 도시한 바와 같이, 도 11은 데이터를 제공(공유)하는 소스 장치로 동작하는 전자 장치(400)에서 미라캐스트 서비스를 제공하는 예를 나타낼 수 있다.As shown in FIG. 11, FIG. 11 may show an example of providing a Miracast service from an electronic device 400 operating as a source device that provides (shares) data.

도 11을 참조하면, 동작 1101에서, 전자 장치(400)(예: 소스 장치)의 프로세서(예: 도 1 또는 도 2의 프로세서(120, 210), 이하, 프로세서(210)라 칭함)는 외부 전자 장치(500)와 미라캐스트를 연결할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 미라캐스트 서비스를 위한 사용자 입력에 응답하여 외부 전자 장치(500)와 미라캐스트를 연결할 수 있다.Referring to FIG. 11, in operation 1101, the processor (e.g., the processors 120 and 210 of FIG. 1 or FIG. 2, hereinafter referred to as the processor 210) of the electronic device 400 (e.g., source device) externally The electronic device 500 can be connected to Miracast. According to various embodiments, the processor 210 may connect the external electronic device 500 and Miracast in response to a user input for the Miracast service.

동작 1103에서, 프로세서(210)는 외부 전자 장치(500)로부터, 외부 전자 장치(500)에 관련된 장치 정보를 획득할 수 있다. 예를 들면, 전술한 도 6읠 동작 603 및 동작 605에 기반하여 장치 정보를 획득할 수 있다. 다양한 실시 예들에 따라, 장치 정보는 외부 전자 장치(500)가 지원하는 해상도 정보와 디스플레이의 타입 정보를 포함할 수 있다. 다양한 실시 예들에 따르면, 장치 정보는, 외부 전자 장치(500)의 동작 모드에 대한 정보, 외부 전자 장치(500)의 타입(예: 태블릿 PC, 냉장고, 텔레비전 등)에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보 등을 더 포함할 수 있다.In operation 1103, the processor 210 may obtain device information related to the external electronic device 500 from the external electronic device 500. For example, device information can be obtained based on operations 603 and 605 of FIG. 6 described above. According to various embodiments, device information may include resolution information and display type information supported by the external electronic device 500. According to various embodiments, device information includes information about the operation mode of the external electronic device 500, information about the type of the external electronic device 500 (e.g., tablet PC, refrigerator, television, etc.), manufacturer information, and model name. It may further include information, or information of a user input back channel (UIBC).

동작 1105에서, 프로세서(210)는 획득된 장치 정보를 분석할 수 있다. 예를 들면, 프로세서(210)는 획득된 장치 정보를 파싱하여, 외부 전자 장치(500)에 관련된 해상도와 디스플레이 타입(또는 동작 모드 방향)에 대한 정보를 획득할 수 있다.In operation 1105, the processor 210 may analyze the obtained device information. For example, the processor 210 may parse the obtained device information to obtain information about the resolution and display type (or operation mode direction) related to the external electronic device 500.

동작 1107에서, 프로세서(210)는 장치 정보에 기반하여 외부 전자 장치(500)와 공통된 최적의 해상도를 결정하고, 외부 전자 장치(500)의 디스플레이 타입(또는 동작 모드 방향)을 판단할 수 있다.In operation 1107, the processor 210 may determine an optimal resolution common to the external electronic device 500 and the display type (or operation mode direction) of the external electronic device 500 based on device information.

동작 1109에서, 프로세서(210)는 장치 정보에 기반하여 외부 전자 장치(500)의 디스플레이 타입이 세로형 디스플레이인지 여부를 판단할 수 있다. 또는, 다양한 실시 예들에 따라, 프로세서(210)는 장치 정보에 기반하여 외부 전자 장치(500)가 세로 방향으로 동작 중(예: 디스플레이가 세로 방향으로 회전된 상태)인지 여부를 판단할 수도 있다.In operation 1109, the processor 210 may determine whether the display type of the external electronic device 500 is a vertical display based on device information. Alternatively, according to various embodiments, the processor 210 may determine whether the external electronic device 500 is operating in the vertical direction (e.g., the display is rotated to the vertical direction) based on device information.

동작 1109에서, 프로세서(210)는 디스플레이 타입이 세로형 디스플레인 것으로 판단하면(동작 1109의 예), 동작 1111에서, 결정된 해상도를 가지는 세로 형태의 가상 디스플레이를 생성할 수 있다. 한 실시 예에 따르면, 전술한 도 7 내지 도 10을 참조한 설명 부분에서 설명한 바와 같이, 프로세서(210)는 기본 설정된 가로 형태의 가상 디스플레이를 외부 전자 장치(500)의 세로형 디스플레이에 대응하도록 세로 형태로 회전(예: 90도 또는 270도 회전)할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 가로 방향 또는 세로 방향으로 모두 동작 가능한 외부 전자 장치(500)가 세로 방향으로 동작 중인 경우(예: 디스플레이가 세로 방향으로 회전된 상태)에도, 동작 1111에서와 같이 세로 형태의 가상 디스플레이를 생성할 수 있다.In operation 1109, if the processor 210 determines that the display type is a vertical display (example of operation 1109), the processor 210 may generate a vertical virtual display with the determined resolution in operation 1111. According to one embodiment, as described in the description with reference to FIGS. 7 to 10, the processor 210 changes the virtual display in the default horizontal form to a vertical form to correspond to the vertical display of the external electronic device 500. You can rotate it (e.g. 90 degrees or 270 degrees). According to various embodiments, the processor 210 operates in operation 1111 even when the external electronic device 500, which can operate in either the horizontal or vertical direction, is operating in the vertical direction (e.g., the display is rotated to the vertical direction). You can create a vertical virtual display as shown.

동작 1109에서, 프로세서(210)는 디스플레이 타입이 세로형 디스플레이가 아닌 것으로 판단하면(동작 1109의 아니오), 예를 들면, 가로형 디스플레이인 것으로 판단하면, 동작 1113에서, 결정된 해상도를 가지는 가로 형태의 가상 디스플레이를 생성할 수 있다. 한 실시 예에 따르면, 프로세서(210)는 기본 설정된 가로 형태의 가상 디스플레이를 사용할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 가로 방향 및 세로 방향으로 모두 동작 가능한 외부 전자 장치(500)가 가로 방향으로 동작 중인 경우(예: 디스플레이가 가로 방향으로 회전된 상태)에도, 동작 1113에서와 같이 가로 형태의 가상 디스플레이를 생성할 수 있다.In operation 1109, if the processor 210 determines that the display type is not a vertical display (No in operation 1109), for example, if it determines that the display type is a horizontal display, in operation 1113, the processor 210 generates a horizontal virtual display with the determined resolution. You can create a display. According to one embodiment, the processor 210 may use a default horizontal virtual display. According to various embodiments, the processor 210 operates in operation 1113 even when the external electronic device 500, which can operate in both the horizontal and vertical directions, is operating in the horizontal direction (e.g., the display is rotated to the horizontal direction). You can create a horizontal virtual display as shown.

동작 1115에서, 프로세서(210)는, 동작 1111 또는 동작 1113에서 생성된 가상 디스플레이를 이용하여, 외부 전자 장치(500)의 해상도와 디스플레이 타입에 대응하는 데이터를 생성할 수 있다.In operation 1115, the processor 210 may generate data corresponding to the resolution and display type of the external electronic device 500 using the virtual display generated in operation 1111 or 1113.

동작 1117에서, 프로세서(210)는, 무선 통신을 이용하여, 생성된 데이터를 외부 전자 장치(500)에 전송할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 데이터를 전송할 때 스트리밍으로 전송할 수 있다.In operation 1117, the processor 210 may transmit the generated data to the external electronic device 500 using wireless communication. According to various embodiments, the processor 210 may transmit data through streaming.

도 12는 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스 시 사용자 입력을 처리하는 동작 예를 설명하기 위해 도시하는 도면이다.FIG. 12 is a diagram illustrating an example of an operation for processing user input during Miracast service according to various embodiments of the present invention.

도 12에 도시한 바와 같이, 도 12는 다양한 실시 예들에서, 싱크 장치에서 사용자 입력(예: 터치)이 발생되는 경우, 이를 처리하는 동작 예를 나타낼 수 있다.As shown in FIG. 12, in various embodiments, FIG. 12 may represent an example of an operation for processing a user input (eg, a touch) when a sink device generates it.

도 12를 참조하면, 동작 1201에서, 전자 장치(400)(이하, 소스 장치)와 외부 전자 장치(500)(이하, 싱크 장치)는 전술한 바와 같이 미라캐스트 연결 상태일 수 있다.Referring to FIG. 12, in operation 1201, the electronic device 400 (hereinafter, a source device) and the external electronic device 500 (hereinafter, a sink device) may be connected to Miracast as described above.

동작 1203에서, 싱크 장치(500)는 사용자 입력을 감지할 수 있다. 예를 들면, 사용자는 세로형 디스플레이(750)에서 어느 일 영역을 터치할 수 있고, 싱크 장치(500)는 사용자에 의한 터치를 감지할 수 있다.In operation 1203, the sink device 500 may detect a user input. For example, a user may touch an area on the vertical display 750, and the sync device 500 may detect the user's touch.

동작 1205에서, 싱크 장치(500)는 사용자 입력을 감지하면, 사용자 입력 백 채널(UIBC, user input back channel)을 통해 사용자 입력(예: 제어 메시지)를 소스 장치(400)에 전송할 수 있다. 다양한 실시 예들에 따라, 싱크 장치(500)는 사용자 입력에 대해 별도의 입력 처리(예: 좌표 변환 등) 과정 없이, 싱크 장치(500)에서의 사용자 입력에 대응하여 소스 장치(400)를 제어하기 위한 터치된 좌표 값을 전달할 수 있다. 다양한 실시 예들에 따르면, 세로 방향이 기본으로 고정된 세로형 디스플레이 기반의 싱크 장치(500)의 경우, 폭과 높이가 각각 (x, y)를 가지게 되므로, 좌표를 변환하는 처리 없이 그대로 (x, y) 좌표를 전송할 수 있다. 다양한 실시 예들에 따르면, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 디스플레이 기반의 싱크 장치(500)의 경우, 폭과 높이가 각각 반대로 돌려진 (y, x)를 가지게 되므로, 좌표에서, x좌표(예: 폭)는 y좌표로 변환하고, y좌표(예: 높이)는 x좌표로 변환하고, 변환된 (x, y) 좌표를 전송할 수 있다.In operation 1205, when the sink device 500 detects a user input, it may transmit the user input (e.g., a control message) to the source device 400 through a user input back channel (UIBC). According to various embodiments, the sink device 500 controls the source device 400 in response to the user input from the sink device 500 without separate input processing (e.g., coordinate conversion, etc.) for the user input. The touched coordinate value can be transmitted. According to various embodiments, in the case of a vertical display-based sink device 500 with a fixed vertical orientation by default, the width and height each have (x, y), so the coordinates are unchanged as (x, y) without processing. y) Coordinates can be transmitted. According to various embodiments, in the case of the display-based sync device 500 that is used by rotating the display, which is basically horizontal, to the vertical direction, the width and height each have oppositely rotated (y, x), so in the coordinates , x coordinates (e.g. width) can be converted to y coordinates, y coordinates (e.g. height) can be converted to x coordinates, and the converted (x, y) coordinates can be transmitted.

동작 1207에서, 소스 장치(400)는 싱크 장치(500)로부터 사용자 입력이 수신되면, 수신된 사용자 입력을 처리할 수 있다. 예를 들면, 소스 장치(400)는 사용자 입력에 기반하여 디스플레이 턴-온 또는 컨텐츠(또는 기능) 관련 제어 등을 처리할 수 있다.In operation 1207, when a user input is received from the sink device 500, the source device 400 may process the received user input. For example, the source device 400 may process display turn-on or content (or function) related control, etc. based on user input.

동작 1209에서, 소스 장치(400)는 사용자 입력의 처리가 완료되면, 입력 처리 결과를 싱크 장치(500)에 전송할 수 있다. 다양한 실시 예들에서, 도 10에서는 소스 장치(400)가 입력 처리 결과를 싱크 장치(500)에 전송하는 것을 예로 나타내었으나, 다양한 실시 예들이 이에 한정하는 것은 아니다. 예를 들면, 소스 장치(400)는 입력 처리 결과를 싱크 장치(500)로 전송하지 않을 수도 있다. 이러한 경우, 사용자는 소스 장치(400)로부터 전송 받아 출력되는 싱크 장치(500)의 화면 변화를 통해 사용자 입력에 대한 입력 처리 여부를 확인할 수 있다.In operation 1209, when processing of the user input is completed, the source device 400 may transmit the input processing result to the sink device 500. In various embodiments, FIG. 10 illustrates an example in which the source device 400 transmits an input processing result to the sink device 500, but the various embodiments are not limited thereto. For example, the source device 400 may not transmit the input processing result to the sink device 500. In this case, the user can check whether the user input is processed through a change in the screen of the sink device 500 that is transmitted and output from the source device 400.

한편, 도 10에서는 싱크 장치(500)에서 사용자 입력에 대해 사용자 입력 백 채널을 통해 전송하여 소스 장치(400)를 제어하는 것으로 도시하였지만, 다양한 실시 예들이 이에 한정하는 것은 아니다. 예를 들면, 소스 장치(400)에서 사용자 입력을 감지하고, 그에 대한 제어 메시지를 싱크 장치(500)로 전송할 수 있다.Meanwhile, in FIG. 10, the sink device 500 controls the source device 400 by transmitting user input through a user input back channel, but various embodiments are not limited to this. For example, the source device 400 may detect a user input and transmit a control message in response to it to the sink device 500.

도 13은 본 발명의 다양한 실시 예들에 따른 전자 장치에서 사용자 입력을 처리하는 동작 방법을 도시하는 흐름도이다.FIG. 13 is a flowchart illustrating a method of processing user input in an electronic device according to various embodiments of the present invention.

도 13에 도시한 바와 같이, 도 13은 데이터를 제공(공유)하는 소스 장치로 동작하는 전자 장치(400)에서 사용자 입력을 수신하여 관련 처리를 수행하는 예를 나타낼 수 있다.As shown in FIG. 13 , FIG. 13 may represent an example in which an electronic device 400 operating as a source device providing (sharing) data receives user input and performs related processing.

도 13을 참조하면, 동작 1301에서, 전자 장치(400)(예: 소스 장치)의 프로세서(예: 도 1 또는 도 2의 프로세서(120, 210), 이하, 프로세서(210)라 칭함)는 외부 전자 장치(500)(예: 싱크 장치)와 미라캐스트 연결된 상태일 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 미라캐스트 서비스를 위한 사용자 입력에 응답하여 외부 전자 장치(500)와 미라캐스트를 연결할 수 있다.Referring to FIG. 13, in operation 1301, the processor (e.g., the processors 120 and 210 of FIG. 1 or FIG. 2, hereinafter referred to as the processor 210) of the electronic device 400 (e.g., source device) externally The electronic device 500 (e.g., sink device) may be connected to Miracast. According to various embodiments, the processor 210 may connect the external electronic device 500 and Miracast in response to a user input for the Miracast service.

동작 1303에서, 프로세서(210)는 사용자 입력을 감지할 수 있다. 예를 들면, 프로세서(210)는 전자 장치(400)에서 직접 발생하는 내부 사용자 입력 또는 외부 전자 장치(500)에 의해 간접 발생(또는 수신)하는 외부 사용자 입력을 감지할 수 있다.At operation 1303, processor 210 may detect user input. For example, the processor 210 may detect an internal user input directly generated by the electronic device 400 or an external user input indirectly generated (or received) by the external electronic device 500.

동작 1305에서, 프로세서(210)는 사용자 입력이 외부 사용자 입력인지 여부를 판단할 수 있다. 예를 들면, 프로세서(210)는 사용자 입력이, 미라캐스트 연결된 외부 전자 장치(500)로부터 사용자 입력 백 채널(UIBC)를 통해 수신되는 사용자 입력인지, 또는 전자 장치(400)에 의해 발생하는 사용자 입력인지 여부를 판단할 수 있다.At operation 1305, the processor 210 may determine whether the user input is an external user input. For example, the processor 210 determines whether the user input is a user input received through a user input back channel (UIBC) from the external electronic device 500 connected to Miracast, or a user input generated by the electronic device 400. You can determine whether it is recognized or not.

동작 1305에서, 프로세서(210)는 외부 사용자 입력이 아닌 것으로 판단하면(동작 1305의 아니오), 동작 1311로 진행하여, 동작 1311 이하의 동작 수행을 처리할 수 있다.In operation 1305, if the processor 210 determines that the input is not an external user input (No in operation 1305), the processor 210 may proceed to operation 1311 and process the operations following operation 1311.

동작 1305에서, 프로세서(210)는 외부 사용자 입력인 것으로 판단하면(동작 1305의 예), 동작 1307에서, 외부 전자 장치(500)의 타입을 판단할 수 있다. 예를 들면, 프로세서(210)는 외부 전자 장치(500)와 미라캐스트 연결 시의 협상 절차 수행에서 획득된 장치 정보에 기반하여 외부 전자 장치의 타입(예: 디스플레이 타입, 동작 모드 등)을 판단할 수 있다.If in operation 1305 the processor 210 determines that the input is an external user input (yes in operation 1305), the processor 210 may determine the type of the external electronic device 500 in operation 1307. For example, the processor 210 may determine the type (e.g., display type, operation mode, etc.) of the external electronic device 500 based on device information obtained while performing a negotiation procedure when connecting Miracast. You can.

동작 1309에서, 프로세서(210)는, 동작 1307에서 판단하는 결과에 기반하여, 외부 전자 장치(500)가 세로형 디스플레이 기반의 장치(예: 세로 방향이 기본으로 고정된 세로형 디스플레이를 가지는 냉장고 등)(이하, 제1 타입 장치)인지, 가로 방향 또는 세로 방향으로 모두 동작 가능한 장치(예: 태블릿 PC 등)(이하, 제2 타입 장치)인지 여부를 판단할 수 있다.In operation 1309, based on the result determined in operation 1307, the processor 210 determines whether the external electronic device 500 is a vertical display-based device (e.g., a refrigerator having a vertical display with a default vertical orientation, etc.). ) (hereinafter, a first type device) or a device that can be operated in both the horizontal or vertical directions (e.g., a tablet PC, etc.) (hereinafter, a second type device).

동작 1309에서, 프로세서(210)는 외부 전자 장치(500)가 제1 타입 장치인 것으로 판단하면(동작 1309의 예), 동작 1311에서, 수신된 사용자 입력에 대한 변환 없이 사용자 입력에 따른 데이터 제어를 처리할 수 있다. 예를 들면, 기본이 세로 방향인 세로형 디스플레이의 경우, 폭(width)과 높이(height)가 각각 (x, y)를 가지게 되므로, 좌표를 변환하는 처리 없이 그대로 (x, y) 포인트를 인식하여, 그에 대한 동작을 처리할 수 있다.In operation 1309, if the processor 210 determines that the external electronic device 500 is a first type device (example of operation 1309), in operation 1311, data control according to the user input is performed without converting the received user input. It can be handled. For example, in the case of a vertical display with the default vertical orientation, the width and height each have (x, y), so the (x, y) point is recognized as is without processing coordinate conversion. Thus, the corresponding operation can be processed.

동작 1309에서, 프로세서(210)는 외부 전자 장치(500)가 제2 타입 장치인 것으로 판단하면(동작 1309의 아니오), 동작 1313에서, 사용자 입력에 대한 좌표 값 변환을 수행할 수 있다. 예를 들면, 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 경우, 폭과 높이가 각각 반대로 돌려진 (y, x)를 가지게 되므로, 좌표에서, x좌표(예: 폭)는 y좌표로 변환하고, y좌표(예: 높이)는 x좌표로 변환할 수 있다. 예를 들면, 프로세서(210)는 (y, x) 좌표를 (x, y) 좌표로 변환할 수 있다.If in operation 1309 the processor 210 determines that the external electronic device 500 is a second type device (No in operation 1309), the processor 210 may perform coordinate value conversion for the user input in operation 1313. For example, when a display whose default orientation is horizontal is rotated to portrait, the width and height each have (y, x) rotated in the opposite direction, so in coordinates, the x coordinate (e.g. width) is the y coordinate. , and y-coordinates (e.g. height) can be converted to x-coordinates. For example, the processor 210 may convert (y, x) coordinates to (x, y) coordinates.

동작 1311에서, 프로세서(210)는 변환된 좌표 값에 기반하여 사용자 입력에 따른 데이터 제어를 처리할 수 있다. 예를 들면, 프로세서(210)는 변환된 (x, y) 포인트를 인식하여, 그에 대한 동작을 처리할 수 있다.In operation 1311, the processor 210 may process data control according to user input based on the converted coordinate value. For example, the processor 210 may recognize the converted (x, y) point and process an operation for it.

동작 1317에서, 프로세서(210)는 동작 1311 또는 동작 1315에서 제어된 데이터를 외부 전자 장치(500)에 전송할 수 있다.In operation 1317, the processor 210 may transmit the data controlled in operation 1311 or 1315 to the external electronic device 500.

다양한 실시 예들에 따라, 도 13에서는 전자 장치(400)에서 외부 전자 장치(500)의 타입에 따라, 사용자 입력 백 채널(UIBC)를 통해 수신된 사용자 입력에 대한 변환 여부를 결정하고, 그 결과에 기반하여 사용자 입력의 좌표 값을 변환하는 예를 나타내었으나, 다양한 실시 예들이 이에 한정하는 것은 아니다. 예를 들면, 외부 전자 장치(500)에서 동작 모드를 식별하고 그에 따라 변환된 좌표 값을 전송하는 경우, 전자 장치(400)는 수신된 사용자 입력을 변환하는 것에 관련된 동작을 수행하지 않을 수 있다. 예를 들면, 도 13에서 동작 1305, 동작 1307, 동작 1309, 동작 1313, 동작 1315을 수행하지 않고 생략될 수 있다.According to various embodiments, in FIG. 13, the electronic device 400 determines whether to convert the user input received through the user input back channel (UIBC) according to the type of the external electronic device 500, and determines the result. Although an example of converting the coordinate value of a user input based on the above is shown, various embodiments are not limited to this. For example, when the external electronic device 500 identifies an operation mode and transmits coordinate values converted accordingly, the electronic device 400 may not perform an operation related to converting the received user input. For example, in FIG. 13, operations 1305, 1307, 1309, 1313, and 1315 may not be performed and may be omitted.

도 14는 본 발명의 다양한 실시 예들에 따른 전자 장치에서 사용자 입력을 처리하는 동작 방법을 도시하는 흐름도이다.FIG. 14 is a flowchart illustrating a method of processing user input in an electronic device according to various embodiments of the present invention.

도 14에 도시한 바와 같이, 도 14는 데이터를 제공(공유)받는 싱크 장치로 동작하는 외부 전자 장치(500)에서 사용자 입력에 대한 관련 처리를 수행하는 예를 나타낼 수 있다. 예를 들면, 도 14에서는 가로 방향 또는 세로 방향으로 모두 동작 가능한 외부 전자 장치(500)(예: 태블릿 PC)에서 사용자 입력을 처리하는 예를 나타낼 수 있다. 다양한 실시 예들에 따라, 도 14에서는 외부 전자 장치(500)는 기본 동작 모드가 가로 방향으로 설정되어 동작하는 장치를 예시로 할 수 있다.As shown in FIG. 14 , FIG. 14 may show an example of performing related processing on a user input in an external electronic device 500 operating as a sink device that receives (shares) data. For example, FIG. 14 shows an example of processing a user input in an external electronic device 500 (eg, a tablet PC) that can operate in either the horizontal or vertical direction. According to various embodiments, in FIG. 14, the external electronic device 500 may be an example of a device that operates with its basic operation mode set to the landscape orientation.

도 14를 참조하면, 동작 1401에서, 외부 전자 장치(500)(예: 싱크 장치)의 프로세서(예: 도 1 또는 도 2의 프로세서(120, 210), 이하, 프로세서(210)라 칭함)는 전자 장치(400)(예: 소스 장치)와 미라캐스트 연결된 상태일 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 전자 장치(400)의 연결 요청에 응답하여 전자 장치(400)와 미라캐스트를 연결할 수 있다.Referring to FIG. 14, in operation 1401, the processor (e.g., the processors 120 and 210 of FIG. 1 or FIG. 2, hereinafter referred to as processor 210) of the external electronic device 500 (e.g., sink device) The electronic device 400 (e.g., source device) may be connected to Miracast. According to various embodiments, the processor 210 may connect the electronic device 400 and Miracast in response to a connection request from the electronic device 400.

동작 1403에서, 프로세서(210)는 사용자 입력을 감지할 수 있다. 예를 들면, 프로세서(210)는 외부 전자 장치(500)에서 직접 발생하는 내부 사용자 입력을 감지할 수 있다.At operation 1403, processor 210 may detect user input. For example, the processor 210 may detect an internal user input directly generated from the external electronic device 500.

동작 1405에서, 프로세서(210)는 디스플레이의 방향이 세로 방향으로 동작 중인지 여부를 판단할 수 있다. 다양한 실시 예들에 따라, 도 14에서는 외부 전자 장치(500)의 디스플레이가 기본이 가로 방향인 경우를 가정할 수 있다.In operation 1405, the processor 210 may determine whether the display is operating in a vertical direction. According to various embodiments, in FIG. 14 it may be assumed that the display of the external electronic device 500 is basically horizontal.

동작 1405에서, 프로세서(210)는 외부 전자 장치(500)가 세로 방향으로 동작 중인지 여부를 판단할 수 있다.In operation 1405, the processor 210 may determine whether the external electronic device 500 is operating in the vertical direction.

동작 1405에서, 프로세서(210)는 외부 전자 장치(500)가 세로 방향에 의한 동작이 아닌 것으로 판단하면(동작 1405의 아니오), 예를 들면, 기본 동작 모드인 가로 방향의 디스플레이에 기반하여 동작하는 경우, 동작 1407에서, 사용자 입력에 따른 제어 메시지를 전자 장치(400)(예: 소스 장치)에 전송할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 사용자 입력 백 채널(UIBC)을 통해 전자 장치(400)를 제어에 관련된 사용자 입력에 대응하는 제어 메시지(예: (x, y) 좌표)를 전자 장치(400)에 전송할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 기본이 가로 방향인 디스플레이의 경우, 폭과 높이가 각각 (x, y)를 가지게 되므로, 좌표를 변환하는 처리 없이 그대로 (x, y) 좌표를 전송할 수 있다.In operation 1405, if the processor 210 determines that the external electronic device 500 is not operating in the portrait orientation (No in operation 1405), for example, the processor 210 determines that the external electronic device 500 operates based on the display in the landscape orientation, which is the default operation mode. In this case, in operation 1407, a control message according to the user input may be transmitted to the electronic device 400 (eg, source device). According to various embodiments, the processor 210 sends a control message (e.g., (x, y) coordinates) corresponding to a user input related to controlling the electronic device 400 through a user input back channel (UIBC) to the electronic device ( 400). According to various embodiments, in the case of a display that is basically horizontal, the width and height have each of (x, y), so the processor 210 can transmit (x, y) coordinates as is without processing to transform the coordinates. there is.

동작 1405에서, 프로세서(210)는 외부 전자 장치(500)가 세로 방향에 의한 동작인 것으로 판단하면(동작 1405의 예), 예를 들면, 기본 동작 모드가 가로 방향인 디스플레이를 세로 방향의 디스플레이 형태로 회전하여 사용되는 경우, 동작 1409에서, 사용자 입력에 대한 좌표 값을 변환할 수 있다. 다양한 실시 예들에 따라, 프로세서(210)는 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용되는 경우, 폭과 높이가 각각 반대로 돌려진 (y, x)를 가지게 되므로, 좌표에서, x좌표(예: 폭)는 y좌표로 변환하고, y좌표(예: 높이)는 x좌표로 변환할 수 있다. 예를 들면, 프로세서(210)는 (y, x) 좌표를 (x, y) 좌표로 변환할 수 있다.In operation 1405, if the processor 210 determines that the external electronic device 500 is operating in the portrait orientation (example of operation 1405), for example, the processor 210 changes a display whose basic operation mode is landscape to a portrait display format. When used by rotating, in operation 1409, the coordinate value for the user input may be converted. According to various embodiments, when the processor 210 is used by rotating the display, which is basically horizontal, to the vertical direction, the width and height have the oppositely rotated (y, x), respectively, so in the coordinates, the x coordinate ( Example: width) can be converted to y-coordinate, and y-coordinate (eg: height) can be converted to x-coordinate. For example, the processor 210 may convert (y, x) coordinates to (x, y) coordinates.

동작 1411에서, 프로세서(210)는 변환된 좌표 값에 기반하여 사용자 입력에 따른 제어 메시지를 전자 장치(400)(예: 소스 장치)에 전송할 수 있다. 다양한 실시 예들에 따르면, 프로세서(210)는 사용자 입력 백 채널(UIBC)을 통해 전자 장치(400)를 제어에 관련된 사용자 입력에 대응하는 제어 메시지(예: 변환된 (x, y) 좌표)를 전자 장치(400)에 전송할 수 있다.In operation 1411, the processor 210 may transmit a control message according to the user input to the electronic device 400 (eg, a source device) based on the converted coordinate value. According to various embodiments, the processor 210 sends a control message (e.g., converted (x, y) coordinates) corresponding to a user input related to controlling the electronic device 400 through a user input back channel (UIBC). It can be transmitted to device 400.

동작 1413에서, 프로세서(210)는, 동작 1407 또는 동작 1411에 의한 제어 메시지에 대응하여 변경된 데이터를 수신하고, 수신된 데이터를 디스플레이를 통해 표시할 수 있다.In operation 1413, the processor 210 may receive changed data in response to the control message in operation 1407 or operation 1411 and display the received data on a display.

도 15 및 도 16은 본 발명의 다양한 실시 예들에 따른 미라캐스트 서비스 시 사용자 입력을 처리하는 동작 시나리오를 설명하기 위해 도시하는 도면들이다.Figures 15 and 16 are diagrams illustrating operation scenarios for processing user input during Miracast service according to various embodiments of the present invention.

도 15 및 도 16에 도시한 바와 같이, 전자 장치(400)(이하, 소스 장치)와 외부 전자 장치(500)(이하, 싱크 장치)가 각각 특정 해상도(예: 1920x1080)를 가지며, 미라캐스터 연결된 상태를 나타낼 수 있다. 예를 들면, 소스 장치(400)는 싱크 장치(500)와 미라캐스트 연결에 따른 협상 절차에서 결정된 해상도에 따라 데이터를 생성하여 싱크 장치(500)에 제공할 수 있다.As shown in FIGS. 15 and 16, the electronic device 400 (hereinafter, source device) and the external electronic device 500 (hereinafter, sink device) each have a specific resolution (e.g., 1920x1080) and are connected to the Miracaster. It can indicate status. For example, the source device 400 may generate data according to the resolution determined in a negotiation procedure for Miracast connection with the sink device 500 and provide it to the sink device 500.

도 15를 참조하면, 도 15는 세로형 디스플레이 기반의 싱크 장치(500)(예: 냉장고 등)에서 사용자 입력을 처리하는 예를 나타낼 수 있다. 다양한 실시 예들에 따라, 도 15에서 싱크 장치(500)는 세로 방향이 기본으로 고정된 세로형 디스플레이를 가지는 장치를 예시로 할 수 있다.Referring to FIG. 15, FIG. 15 may show an example of processing user input in a vertical display-based sink device 500 (eg, refrigerator, etc.). According to various embodiments, the sync device 500 in FIG. 15 may be an example of a device having a vertical display with the vertical orientation fixed as a default.

도 15에 도시한 바와 같이, 싱크 장치(500)는 소스 장치(400)와 미라캐스트 연결된 상태에서, P 포인트(예: (x, y) 좌표)에서 터치 입력이 감지되면, P 포인트에 대한 좌표(예: (x, y) 좌표)를 식별할 수 있다. 싱크 장치(500)는 터치 입력에 대한 좌표 변환 없이 싱크 장치(500)의 (x, y) 좌표를 그대로 소스 장치(400)에 전송할 수 있다. 예를 들면, 기본이 세로 방향인 세로형 디스플레이의 경우, 폭과 높이가 각각 (x, y)를 가지게 되므로, 좌표를 변환하는 처리 없이 그대로 싱크 장치(500)의 (x, y) 좌표를 소스 장치(400)에 전달할 수 있다. 다양한 실시 예들에 따르면, 소스 장치(400)와 싱크 장치(500)의 해상도가 상이한 경우 P 포인트에 대한 좌표(예: (x, y) 좌표)를, 소스 장치(400)의 해상도에 맞게 보정하는 동작을 더 포함할 수 있다. 이러한 보정은, 장치들 간의 협상 절차에서 동작 주체로 결정되는 소스 장치(400) 또는 싱크 장치(500)에 의해 처리될 수 있다.As shown in FIG. 15, when a touch input is detected at a P point (e.g., (x, y) coordinates) while the sink device 500 is connected to the source device 400 by Miracast, the coordinates for the P point are displayed. (e.g. (x, y) coordinates) can be identified. The sink device 500 may transmit the (x, y) coordinates of the sink device 500 to the source device 400 as is without converting the coordinates of the touch input. For example, in the case of a vertical display with the default vertical orientation, the width and height each have (x, y), so the (x, y) coordinates of the sink device 500 are used as the source source without any coordinate conversion processing. It can be delivered to the device 400. According to various embodiments, when the resolution of the source device 400 and the sink device 500 are different, the coordinates (e.g., (x, y) coordinates) for the P point are corrected to match the resolution of the source device 400. Additional actions may be included. This correction may be processed by the source device 400 or the sink device 500, which is determined as the operating entity in a negotiation procedure between devices.

소스 장치(400)는 싱크 장치(500)로부터 수신된 좌표(예: 싱크 장치의 (x, y) 좌표)에 대응하는 기능을 수행할 수 있다. 소스 장치(400)는 기능 수행에 따라 변경되는 데이터(예: 화면 데이터, 재생 데이터)를 선택적으로 표시하면서 싱크 장치(500)에 전송할 수 있다. 예를 들면, 소스 장치(400)는 미러링 모드인 경우 변경된 데이터를 표시하면서 전송할 수 있고, 프리젠테이션 모드인 경우 변경된 데이터의 표시 없이 전송할 수 있다.The source device 400 may perform a function corresponding to the coordinates received from the sink device 500 (e.g., (x, y) coordinates of the sink device). The source device 400 may selectively display and transmit data (e.g., screen data, playback data) that changes according to function performance to the sink device 500. For example, in mirroring mode, the source device 400 can transmit while displaying changed data, and in presentation mode, it can transmit without displaying changed data.

도 16을 참조하면, 도 16은 가로 방향 또는 세로 방향으로 모두 동작 가능한 싱크 장치(500)(예: 태블릿 PC 등)에서 사용자 입력을 처리하는 예를 나타낼 수 있다. 다양한 실시 예들에 따라, 도 16에서 싱크 장치(500)는 기본 동작 모드가 가로 방향으로 설정되어 동작하는 장치를 예시로 할 수 있다.Referring to FIG. 16 , FIG. 16 may show an example of processing a user input in a sink device 500 (eg, a tablet PC, etc.) that can operate in either the horizontal or vertical directions. According to various embodiments, in FIG. 16, the sink device 500 may be an example of a device that operates with the basic operation mode set to landscape.

도 16에 도시한 바와 같이, 싱크 장치(500)는 소스 장치(400)와 미라캐스트 연결된 상태에서, P 포인트(예: (y, x) 좌표)에서 터치 입력이 감지되면, P 포인트에 대한 좌표(예: (y, x) 좌표)를 식별할 수 있다. 싱크 장치(500)는 터치 입력에 대한 좌표를 변환하고, 변환된 싱크 장치의 (x, y) 좌표를 소스 장치(400)에 전송할 수 있다. 예를 들면, 싱크 장치(500)는 기본이 가로 방향인 디스플레이를 세로 방향으로 회전하여 사용하는 경우, 폭과 높이가 각각 반대로 돌려진 (y, x)를 가지게 되므로, 좌표에서, x좌표(예: 폭)는 y좌표로 변환하고, y좌표(예: 높이)는 x좌표로 변환할 수 있다. 예를 들면, 싱크 장치(500)는 터치 입력된 P 포인트의 (y, x) 좌표를 (x, y) 좌표로 변환할 수 있다. 다양한 실시 예들에 따르면, 소스 장치(400)와 싱크 장치(500)의 해상도가 상이한 경우 P 포인트에 대한 좌표(예: (x, y) 좌표)를, 소스 장치(400)의 해상도에 맞게 보정하는 동작을 더 포함할 수 있다. 이러한 보정은, 장치들 간의 협상 절차에서 동작 주체로 결정되는 소스 장치(400) 또는 싱크 장치(500)에 의해 처리될 수 있다.As shown in FIG. 16, when a touch input is detected at a P point (e.g., (y, x) coordinates) while the sink device 500 is connected to the source device 400 by Miracast, the coordinates for the P point are displayed. (e.g. (y, x) coordinates) can be identified. The sink device 500 may convert the coordinates for the touch input and transmit the converted (x, y) coordinates of the sink device to the source device 400. For example, when the sync device 500 uses a display with a default horizontal orientation rotated to the vertical orientation, the width and height have (y, x) each rotated in the opposite direction, so in the coordinates, : Width) can be converted to y coordinates, and y coordinates (e.g. height) can be converted to x coordinates. For example, the sync device 500 may convert the (y, x) coordinates of the touch-input P point into (x, y) coordinates. According to various embodiments, when the resolution of the source device 400 and the sink device 500 are different, the coordinates (e.g., (x, y) coordinates) for the P point are corrected to match the resolution of the source device 400. Additional actions may be included. This correction may be processed by the source device 400 or the sink device 500, which is determined as the operating entity in a negotiation procedure between devices.

소스 장치(400)는 싱크 장치(500)로부터 수신된 좌표(예: 싱크 장치의 (x, y) 좌표)에 대응하는 기능을 수행할 수 있다. 소스 장치(400)는 기능 수행에 따라 변경되는 데이터(예: 화면 데이터, 재생 데이터)를 선택적으로 표시하면서 싱크 장치(500)에 전송할 수 있다. 예를 들면, 소스 장치(400)는 미러링 모드인 경우 변경된 데이터를 표시하면서 전송할 수 있고, 프리젠테이션 모드인 경우 변경된 데이터의 표시 없이 전송할 수 있다. 다양한 실시 예들에 따르면, 싱크 장치(500)가 좌표 변환의 기능을 포함하지 않는 경우, 전술한 도 13을 참조한 설명 부분에서 설명한 바와 같이, 소스 장치(400)에 의해 좌표 변환을 처리할 수도 있다.The source device 400 may perform a function corresponding to the coordinates received from the sink device 500 (e.g., (x, y) coordinates of the sink device). The source device 400 may selectively display and transmit data (e.g., screen data, playback data) that changes according to function performance to the sink device 500. For example, in mirroring mode, the source device 400 can transmit while displaying changed data, and in presentation mode, it can transmit without displaying changed data. According to various embodiments, when the sink device 500 does not include a coordinate transformation function, coordinate transformation may be processed by the source device 400, as described above in the description with reference to FIG. 13.

이상에서 살펴본 바와 같이, 다양한 실시 예들에 따른 전자 장치의 동작 방법은, 미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하는 과정, 상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하는 과정, 상기 외부 전자 장치가 세로형 디스플레이이면, 세로형 디스플레이에 대응하는 데이터를 상기 해상도에 기반하여 생성하는 과정, 및 상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하는 과정을 포함할 수 있다.As discussed above, the method of operating an electronic device according to various embodiments includes a process of obtaining device information from an external electronic device connected to Miracast, and determining the resolution and display type of the external electronic device based on the device information. A process including, if the external electronic device is a vertical display, generating data corresponding to the vertical display based on the resolution, and transmitting the data to the external electronic device using the wireless communication unit. can do.

다양한 실시 예들에 따라, 상기 장치 정보는, 상기 외부 전자 장치가 지원하는 해상도와 디스플레이 타입을 포함할 수 있다. 다양한 실시 예들에 따라, 상기 장치 정보는, 상기 외부 전자 장치의 동작 모드에 대한 정보, 상기 외부 전자 장치의 타입에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보를 포함할 수 있다.According to various embodiments, the device information may include resolution and display type supported by the external electronic device. According to various embodiments, the device information may include information about the operation mode of the external electronic device, information about the type of the external electronic device, manufacturer information, model name information, or user input back channel (UIBC). ) may include information.

다양한 실시 예들에 따라, 상기 판단하는 과정은, 상기 디스플레이 타입에 기반하여 상기 외부 전자 장치가 세로형 디스플레이인지 여부, 또는 상기 외부 전자 장치가 세로 방향으로 동작 중인지 여부를 판단하는 과정을 포함할 수 있다.According to various embodiments, the determining process may include determining whether the external electronic device is a vertical display or whether the external electronic device is operating in the vertical direction based on the display type. .

다양한 실시 예들에 따라, 상기 생성하는 과정은, 상기 장치 정보에 기반하여 상기 외부 전자 장치와 공통된 최적의 해상도 결정 및, 상기 외부 전자 장치의 디스플레이 타입을 판단하는 과정, 상기 디스플레이 타입이 세로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하는 과정, 및 상기 가상 디스플레이를 이용하여, 상기 외부 전자 장치의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하는 과정을 포함할 수 있다.According to various embodiments, the generating process includes determining an optimal resolution common to the external electronic device based on the device information and determining a display type of the external electronic device, wherein the display type is a vertical display. In this case, the process may include generating a vertical virtual display having the determined resolution, and using the virtual display to generate data corresponding to the resolution and display type of the external electronic device.

다양한 실시 예들에 따라, 상기 생성하는 과정은, 기본 설정된 가로 형태의 가상 디스플레이를 상기 외부 전자 장치의 세로형 디스플레이에 대응하도록 세로 방향으로 회전하는 과정, 및 회전된 세로 방향의 가상 디스플레이를 이용하여 데이터를 생성하는 과정을 포함할 수 있다.According to various embodiments, the generating process includes rotating a default horizontal virtual display in the vertical direction to correspond to the vertical display of the external electronic device, and data using the rotated vertical virtual display. It may include the process of creating a .

다양한 실시 예들에 따라, 상기 생성하는 과정은, 상기 디스플레이 타입이 가로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하는 과정을 포함할 수 있다.According to various embodiments, the generating process may include generating a horizontal virtual display having the determined resolution when the display type is a horizontal display.

다양한 실시 예들에 따라, 상기 외부 전자 장치로부터 사용자 입력 백 채널(UIBC)를 통해 사용자 입력에 따른 좌표를 수신하는 과정, 상기 좌표 수신에 대응하여, 상기 외부 전자 장치의 타입을 판단하는 과정, 상기 외부 전자 장치가 세로형 디스플레이 기반의 제1 타입 장치이면, 상기 좌표에 대한 변환 없이 상기 좌표를 인식하는 과정, 및 상기 외부 전자 장치가 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용하는 제2 타입 장치이면, 상기 좌표의 변환을 수행하고 변환된 좌표를 인식하는 과정을 포함할 수 있다.According to various embodiments, a process of receiving coordinates according to user input from the external electronic device through a user input back channel (UIBC), a process of determining the type of the external electronic device in response to receiving the coordinates, and the external electronic device If the electronic device is a first type device based on a vertical display, a process of recognizing the coordinates without converting the coordinates, and if the external electronic device is a second type device that rotates from the default horizontal direction to the vertical direction and is used , It may include the process of performing transformation of the coordinates and recognizing the transformed coordinates.

다양한 실시 예들에 따라, 상기 좌표를 변환하는 과정은, 상기 좌표에서, x좌표는 y좌표로 변환하고, y좌표는 x좌표로 변환하여 좌표 변환을 수행하는 것을 포함할 수 있다.According to various embodiments, the process of converting the coordinates may include performing coordinate conversion by converting the x-coordinate to a y-coordinate and converting the y-coordinate to an x-coordinate in the coordinates.

다양한 실시 예들에 따라, 상기 외부 전자 장치는, 상기 전자 장치와 미라캐스트 연결된 상태에서 사용자 입력을 감지하는 과정, 사용자 입력 감지에 대응하여, 디스플레이의 방향을 판단하는 과정, 상기 디스플레이의 방향이 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용되는 상태이면, 상기 사용자 입력에 대한 좌표를 변환하는 과정, 및 상기 변환된 좌표를 상기 전자 장치에 전송하는 과정을 더 포함할 수 있다.According to various embodiments, the external electronic device includes a process of detecting a user input while connected to the electronic device and Miracast, a process of determining the direction of the display in response to the detection of the user input, and a process of determining the direction of the display by default. When used by rotating from the horizontal direction to the vertical direction, the process of converting coordinates for the user input and transmitting the converted coordinates to the electronic device may be further included.

본 명세서와 도면에 개시된 본 발명의 다양한 실시 예들은 본 발명의 기술 내용을 쉽게 설명하고 본 발명의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 발명의 범위를 한정하고자 하는 것은 아니다. 따라서 본 발명의 범위는 여기에 개시된 실시 예들 이외에도 본 발명의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.The various embodiments of the present invention disclosed in this specification and drawings are merely provided as specific examples to easily explain the technical content of the present invention and to facilitate understanding of the present invention, and are not intended to limit the scope of the present invention. Therefore, the scope of the present invention should be construed as including all changes or modified forms derived based on the technical idea of the present invention in addition to the embodiments disclosed herein.

400: 전자 장치(소스 장치)
120, 210: 프로세서
500: 외부 전자 장치(싱크 장치)
710: 가상 디스플레이
400: Electronic device (source device)
120, 210: processor
500: External electronic device (sink device)
710: Virtual display

Claims (20)

전자 장치에 있어서,
미라캐스트(miracast) 연결 및 데이터 송수신을 위한 무선 통신부;
데이터 표시를 위한 디스플레이; 및
상기 무선 통신부 및 상기 디스플레이와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는,
미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하고,
상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하고,
상기 디스플레이 타입은, 세로형 디스플레이 기반의 제1 타입, 또는 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용하는 제2 타입 중 적어도 하나를 포함하고,
상기 외부 전자 장치의 디스플레이 타입에 대응하는 데이터를 상기 해상도에 기반하여 생성하고,
상기 무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하고,
상기 외부 전자 장치로부터 사용자 입력 백 채널(UIBC)를 통해 사용자 입력에 따른 좌표를 수신하고,
상기 좌표 수신에 대응하여, 상기 외부 전자 장치의 디스플레이 타입을 판단하고,
상기 외부 전자 장치의 디스플레이 타입이 상기 제1 타입이면, 상기 좌표에 대한 변환 없이 상기 좌표를 인식하고,
상기 외부 전자 장치의 디스플레이 타입이 상기 제2 타입이면, 상기 좌표의 변환을 수행하여 상기 변환된 좌표를 인식하고, 및
상기 인식된 좌표에 기반하여 상기 외부 전자 장치를 제어하도록 설정된 전자 장치.
In electronic devices,
A wireless communication unit for Miracast connection and data transmission and reception;
a display for displaying data; and
Comprising a processor functionally connected to the wireless communication unit and the display, wherein the processor,
Obtain device information from an external electronic device connected to Miracast,
Determine the resolution and display type of the external electronic device based on the device information,
The display type includes at least one of a first type based on a vertical display or a second type that is used by rotating from the default horizontal direction to the vertical direction,
Generate data corresponding to the display type of the external electronic device based on the resolution,
Using the wireless communication unit, transmit the data to the external electronic device,
Receive coordinates according to user input from the external electronic device through a user input back channel (UIBC),
In response to receiving the coordinates, determine a display type of the external electronic device,
If the display type of the external electronic device is the first type, recognize the coordinates without converting the coordinates,
If the display type of the external electronic device is the second type, perform conversion of the coordinates to recognize the converted coordinates, and
An electronic device configured to control the external electronic device based on the recognized coordinates.
제1항에 있어서, 상기 장치 정보는,
상기 외부 전자 장치가 지원하는 해상도와 디스플레이 타입을 포함하도록 설정된 전자 장치.
The method of claim 1, wherein the device information is:
An electronic device configured to include a resolution and display type supported by the external electronic device.
제2항에 있어서, 상기 장치 정보는,
상기 외부 전자 장치의 동작 모드에 대한 정보, 상기 외부 전자 장치의 타입에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보를 포함하도록 설정된 전자 장치.
The method of claim 2, wherein the device information is:
An electronic device set to include information about the operation mode of the external electronic device, information about the type of the external electronic device, manufacturer information, model name information, or user input back channel (UIBC) information.
제2항에 있어서, 상기 프로세서는,
상기 디스플레이 타입에 기반하여 상기 외부 전자 장치가 세로형 디스플레이인지 여부, 또는 상기 외부 전자 장치가 세로 방향으로 동작 중인지 여부를 판단하도록 설정된 전자 장치.
The method of claim 2, wherein the processor:
An electronic device configured to determine whether the external electronic device has a vertical display or whether the external electronic device is operating in a vertical direction based on the display type.
제1항에 있어서, 상기 프로세서는,
상기 장치 정보에 기반하여 상기 외부 전자 장치와 공통된 최적의 해상도 결정 및, 상기 외부 전자 장치의 디스플레이 타입을 판단하고,
상기 디스플레이 타입이 세로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하고, 및
상기 가상 디스플레이를 이용하여, 상기 외부 전자 장치의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하도록 설정된 전자 장치.
The method of claim 1, wherein the processor:
Based on the device information, determine an optimal resolution common to the external electronic device and determine a display type of the external electronic device,
If the display type is a vertical display, create a vertical virtual display with the determined resolution, and
An electronic device configured to generate data corresponding to the resolution and display type of the external electronic device using the virtual display.
제5항에 있어서, 상기 프로세서는,
기본 설정된 가로 형태의 가상 디스플레이를 상기 외부 전자 장치의 세로형 디스플레이에 대응하도록 세로 방향으로 회전하고, 회전된 세로 방향의 가상 디스플레이를 이용하여 데이터를 생성하도록 설정된 전자 장치.
The method of claim 5, wherein the processor:
An electronic device configured to rotate a default horizontal virtual display to the vertical direction to correspond to the vertical display of the external electronic device and generate data using the rotated vertical virtual display.
제5항에 있어서, 상기 프로세서는,
상기 디스플레이 타입이 가로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하도록 설정된 전자 장치.
The method of claim 5, wherein the processor:
When the display type is a horizontal display, an electronic device configured to generate a horizontal virtual display with the determined resolution.
삭제delete 제1항에 있어서, 상기 프로세서는,
상기 좌표에서, x좌표는 y좌표로 변환하고, y좌표는 x좌표로 변환하여 좌표 변환을 수행하도록 설정된 전자 장치.
The method of claim 1, wherein the processor:
In the above coordinates, an electronic device configured to perform coordinate conversion by converting x coordinates to y coordinates and converting y coordinates to x coordinates.
제1항에 있어서, 상기 외부 전자 장치는,
상기 전자 장치와 미라캐스트 연결된 상태에서 사용자 입력을 감지하고,
사용자 입력 감지에 대응하여, 디스플레이의 방향을 판단하고,
상기 디스플레이의 방향이 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용되는 상태이면, 상기 사용자 입력에 대한 좌표를 변환하고, 및
상기 변환된 좌표를 상기 전자 장치에 전송하도록 설정된 전자 장치.
The method of claim 1, wherein the external electronic device:
Detect user input while the electronic device is connected to Miracast,
In response to detecting user input, determine the orientation of the display,
If the orientation of the display is rotated from the default horizontal direction to the vertical direction, the coordinates for the user input are converted, and
An electronic device configured to transmit the converted coordinates to the electronic device.
전자 장치의 동작 방법에 있어서,
미라캐스트 연결된 외부 전자 장치로부터 장치 정보를 획득하는 과정,
상기 장치 정보에 기반하여 상기 외부 전자 장치의 해상도 및 디스플레이 타입을 판단하는 과정,
상기 디스플레이 타입은, 세로형 디스플레이 기반의 제1 타입, 또는 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용하는 제2 타입 중 적어도 하나를 포함하고,
상기 외부 전자 장치의 디스플레이 타입에 대응하는 데이터를 상기 해상도에 기반하여 생성하는 과정,
무선 통신부를 이용하여, 상기 데이터를 상기 외부 전자 장치에 전송하는 과정,
상기 외부 전자 장치로부터 사용자 입력 백 채널(UIBC)를 통해 사용자 입력에 따른 좌표를 수신하는 과정,
상기 좌표 수신에 대응하여, 상기 외부 전자 장치의 디스플레이 타입을 판단하는 과정,
상기 외부 전자 장치의 디스플레이 타입이 상기 제1 타입이면, 상기 좌표에 대한 변환 없이 상기 좌표를 인식하는 과정,
상기 외부 전자 장치의 디스플레이 타입이 상기 제2 타입이면, 상기 좌표의 변환을 수행하여 상기 변환된 좌표를 인식하는 과정, 및
상기 인식된 좌표에 기반하여 상기 외부 전자 장치를 제어하는 과정을 포함하는 방법.
In a method of operating an electronic device,
The process of obtaining device information from an external electronic device connected to Miracast,
The process of determining the resolution and display type of the external electronic device based on the device information,
The display type includes at least one of a first type based on a vertical display or a second type that is used by rotating from the default horizontal direction to the vertical direction,
A process of generating data corresponding to the display type of the external electronic device based on the resolution,
A process of transmitting the data to the external electronic device using a wireless communication unit,
A process of receiving coordinates according to user input from the external electronic device through a user input back channel (UIBC),
A process of determining a display type of the external electronic device in response to receiving the coordinates,
If the display type of the external electronic device is the first type, recognizing the coordinates without converting the coordinates,
If the display type of the external electronic device is the second type, performing conversion of the coordinates and recognizing the converted coordinates, and
A method including controlling the external electronic device based on the recognized coordinates.
◈청구항 12은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 12 was abandoned upon payment of the setup registration fee.◈ 제11항에 있어서, 상기 장치 정보는,
상기 외부 전자 장치가 지원하는 해상도와 디스플레이 타입을 포함하는 방법.
The method of claim 11, wherein the device information is:
A method including resolution and display type supported by the external electronic device.
◈청구항 13은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 13 was abandoned upon payment of the setup registration fee.◈ 제12항에 있어서, 상기 장치 정보는,
상기 외부 전자 장치의 동작 모드에 대한 정보, 상기 외부 전자 장치의 타입에 대한 정보, 제조사 정보, 모델명 정보, 또는 사용자 입력 백 채널(UIBC, user input back channel)의 정보를 포함하는 방법.
The method of claim 12, wherein the device information is:
A method including information about the operation mode of the external electronic device, information about the type of the external electronic device, manufacturer information, model name information, or user input back channel (UIBC) information.
◈청구항 14은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 14 was abandoned upon payment of the setup registration fee.◈ 제12항에 있어서, 상기 판단하는 과정은,
상기 디스플레이 타입에 기반하여 상기 외부 전자 장치가 세로형 디스플레이인지 여부, 또는 상기 외부 전자 장치가 세로 방향으로 동작 중인지 여부를 판단하는 과정을 포함하는 방법.
The method of claim 12, wherein the determining process is:
A method including determining whether the external electronic device has a vertical display or whether the external electronic device is operating in a vertical direction based on the display type.
◈청구항 15은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 15 was abandoned upon payment of the setup registration fee.◈ 제11항에 있어서, 상기 생성하는 과정은,
상기 장치 정보에 기반하여 상기 외부 전자 장치와 공통된 최적의 해상도 결정 및, 상기 외부 전자 장치의 디스플레이 타입을 판단하는 과정,
상기 디스플레이 타입이 세로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 세로 방향의 가상 디스플레이를 생성하는 과정, 및
상기 가상 디스플레이를 이용하여, 상기 외부 전자 장치의 해상도와 디스플레이 타입에 대응하는 데이터를 생성하는 과정을 포함하는 방법.
The method of claim 11, wherein the generating process includes:
A process of determining an optimal resolution common to the external electronic device and a display type of the external electronic device based on the device information;
When the display type is a vertical display, a process of creating a vertical virtual display with the determined resolution, and
A method including generating data corresponding to the resolution and display type of the external electronic device using the virtual display.
◈청구항 16은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 16 was abandoned upon payment of the setup registration fee.◈ 제15항에 있어서, 상기 생성하는 과정은,
기본 설정된 가로 형태의 가상 디스플레이를 상기 외부 전자 장치의 세로형 디스플레이에 대응하도록 세로 방향으로 회전하는 과정, 및
회전된 세로 방향의 가상 디스플레이를 이용하여 데이터를 생성하는 과정을 포함하는 방법.
The method of claim 15, wherein the generating process includes:
A process of rotating a default horizontal virtual display to the vertical direction to correspond to the vertical display of the external electronic device, and
A method comprising generating data using a rotated vertical virtual display.
◈청구항 17은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 17 was abandoned upon payment of the setup registration fee.◈ 제15항에 있어서, 상기 생성하는 과정은,
상기 디스플레이 타입이 가로형 디스플레이인 경우, 상기 결정된 해상도를 가지는 가로 방향의 가상 디스플레이를 생성하는 과정을 포함하는 방법.
The method of claim 15, wherein the generating process includes:
When the display type is a horizontal display, the method includes generating a horizontal virtual display having the determined resolution.
삭제delete ◈청구항 19은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 19 was abandoned upon payment of the setup registration fee.◈ 제11항에 있어서, 상기 좌표를 변환하는 과정은,
상기 좌표에서, x좌표는 y좌표로 변환하고, y좌표는 x좌표로 변환하여 좌표 변환을 수행하는 것을 포함하는 방법.
The method of claim 11, wherein the process of converting the coordinates includes:
In the coordinates, a method comprising performing coordinate transformation by converting the x coordinate to a y coordinate and converting the y coordinate to an x coordinate.
◈청구항 20은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 20 was abandoned upon payment of the setup registration fee.◈ 제11항에 있어서, 상기 외부 전자 장치는,
상기 전자 장치와 미라캐스트 연결된 상태에서 사용자 입력을 감지하는 과정,
사용자 입력 감지에 대응하여, 디스플레이의 방향을 판단하는 과정,
상기 디스플레이의 방향이 기본 설정된 가로 방향에서 세로 방향으로 회전하여 사용되는 상태이면, 상기 사용자 입력에 대한 좌표를 변환하는 과정, 및
상기 변환된 좌표를 상기 전자 장치에 전송하는 과정을 더 포함하는 방법.
The method of claim 11, wherein the external electronic device:
A process of detecting user input while connected to the electronic device and Miracast,
A process of determining the direction of the display in response to detecting user input,
If the orientation of the display is rotated from the default horizontal direction to the vertical direction, converting coordinates for the user input, and
The method further includes transmitting the converted coordinates to the electronic device.
KR1020160112874A 2016-09-01 2016-09-01 Method and apparatus for providing miracast KR102614044B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160112874A KR102614044B1 (en) 2016-09-01 2016-09-01 Method and apparatus for providing miracast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160112874A KR102614044B1 (en) 2016-09-01 2016-09-01 Method and apparatus for providing miracast

Publications (2)

Publication Number Publication Date
KR20180025763A KR20180025763A (en) 2018-03-09
KR102614044B1 true KR102614044B1 (en) 2023-12-15

Family

ID=61728223

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160112874A KR102614044B1 (en) 2016-09-01 2016-09-01 Method and apparatus for providing miracast

Country Status (1)

Country Link
KR (1) KR102614044B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102509071B1 (en) 2018-08-29 2023-03-10 삼성전자주식회사 Display device and method of controlling external terminal thereof
KR102607214B1 (en) * 2019-03-25 2023-11-29 삼성전자주식회사 Display apparatus and the control method thereof
KR20230128649A (en) * 2022-02-28 2023-09-05 엘지전자 주식회사 Display device and operating method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101925027B1 (en) * 2012-07-30 2018-12-04 엘지전자 주식회사 Image display device and user interface providing method using the same
KR101512007B1 (en) * 2013-09-17 2015-04-14 주식회사 티오이십일 Method of sink control and apparatus performing the same
KR102122476B1 (en) * 2014-01-08 2020-06-12 삼성전자주식회사 Apparatas and method for controlling a rotation of screen in an electronic device

Also Published As

Publication number Publication date
KR20180025763A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
US10509560B2 (en) Electronic device having flexible display and method for operating the electronic device
CN107257954B (en) Apparatus and method for providing screen mirroring service
KR102516590B1 (en) Electronic device and method for executing function according to transformation of display in the electronic device
KR102426070B1 (en) Electronic apparatus and method for configuring of display thereof
KR102264808B1 (en) Method for processing fingerprint and electronic device thereof
EP3586316B1 (en) Method and apparatus for providing augmented reality function in electronic device
US9916120B2 (en) Method and apparatus for providing of screen mirroring service
US9910539B2 (en) Method and apparatus for controlling flexible display and electronic device adapted to the method
KR102503937B1 (en) Apparatus and method for providing user interface of electronic device
EP3141982B1 (en) Electronic device for sensing pressure of input and method for operating the electronic device
KR102408876B1 (en) Method and apparatus for displaying in an electronic device
KR102469564B1 (en) Method and apparatus for controlling external device according to state of electronic device
US10642437B2 (en) Electronic device and method for controlling display in electronic device
KR102547115B1 (en) Method for switching application and electronic device thereof
KR102543955B1 (en) Electronic device and method for providing information in the electronic device
KR102343990B1 (en) Device For Controlling Respectively Multiple Areas of Display and Method thereof
KR102553558B1 (en) Electronic device and method for processing touch event thereof
US10295870B2 (en) Electronic device and method for operating thereof
KR20160124536A (en) Method and electronic apparatus for providing user interface
US10528248B2 (en) Method for providing user interface and electronic device therefor
US20160162058A1 (en) Electronic device and method for processing touch input
KR102654807B1 (en) Electronic apparatus and controlling method thereof
KR102467434B1 (en) Device for Controlling Brightness of Display and Method Thereof
KR102614044B1 (en) Method and apparatus for providing miracast
KR102277217B1 (en) Electronic device and method for setting up blocks

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant