KR20230106257A - System, electronic device and method for controlling external electronic device in real world in virtual enviroment - Google Patents

System, electronic device and method for controlling external electronic device in real world in virtual enviroment Download PDF

Info

Publication number
KR20230106257A
KR20230106257A KR1020220001942A KR20220001942A KR20230106257A KR 20230106257 A KR20230106257 A KR 20230106257A KR 1020220001942 A KR1020220001942 A KR 1020220001942A KR 20220001942 A KR20220001942 A KR 20220001942A KR 20230106257 A KR20230106257 A KR 20230106257A
Authority
KR
South Korea
Prior art keywords
electronic device
external electronic
information
virtual
function
Prior art date
Application number
KR1020220001942A
Other languages
Korean (ko)
Inventor
유준봉
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020220001942A priority Critical patent/KR20230106257A/en
Priority to PCT/KR2022/016272 priority patent/WO2023132444A1/en
Publication of KR20230106257A publication Critical patent/KR20230106257A/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
    • 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/002Specific input/output arrangements not covered by G06F3/01 - G06F3/16
    • G06F3/005Input arrangements through a video camera
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]

Abstract

다양한 실시 예들에 따른 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템은, 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 전자 장치; 및 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 외부 전자 장치를 포함할 수 있다. 그 밖에 다양한 실시예가 가능하다.According to various embodiments, a system capable of controlling an external electronic device in the real world in a virtual environment, in a first mode capable of controlling an external electronic device in a virtual environment, based on appearance information and function information of the external electronic device A virtual external electronic device corresponding to the external electronic device is displayed, and when the occurrence of an input event is detected in the virtual external electronic device, input information related to the input event is transmitted to the external electronic device, and from the external electronic device When output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information is received, the state of the virtual external electronic device is made to correspond to the changed state of the external electronic device based on the output information. electronic devices that change; and when the input information is received from the electronic device, a function corresponding to the input information is performed, and output information related to a state of the external electronic device changed according to the execution of the function corresponding to the input information is transmitted to the electronic device. It may include an external electronic device that does. Other various embodiments are possible.

Description

가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템, 전자 장치 및 방법{SYSTEM, ELECTRONIC DEVICE AND METHOD FOR CONTROLLING EXTERNAL ELECTRONIC DEVICE IN REAL WORLD IN VIRTUAL ENVIROMENT}System, electronic device and method for controlling external electronic devices in the real world in a virtual environment

다양한 실시 예들은, 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템, 전자 장치 및 방법에 관한 것이다. Various embodiments relate to a system, electronic device, and method capable of controlling an external electronic device in the real world in a virtual environment.

가상 현실(Virtual Reality, VR)은 컴퓨터 시스템이 만들어낸 가상의 세계를 사용자에게 제시하는 것으로 현실과 유사하지만 실제가 아닌 인공환경을 의미하며, 사용자는 오감을 통한 가상현실과 상호작용이 가능하며 시간 및 공간적인 체험을 할 수 있다.Virtual Reality (VR) is an artificial environment that presents a virtual world created by a computer system to users, which is similar to reality but is not real. and spatial experience.

증강 현실(Augmented Reality, AR)은 가상현실에서 파생된 분야로 현실세계에 가상 객체(사물, 정보 등)을 합성하여 마치 현실세계에 존재하는 사물처럼 보이도록 하는 것으로, 상기 가상현실과는 달리 현실을 기반으로 하여 정보를 증강하는 가상의 대상과의 결합으로 현실의 효과를 더욱 증가시킬 수 있다.Augmented Reality (AR) is a field derived from virtual reality, which synthesizes virtual objects (objects, information, etc.) in the real world to make them appear as if they exist in the real world. Based on the combination with a virtual object that augments information, the effect of reality can be further increased.

상기 가상 현실과 상기 증강 현실로 구성된 가상의 환경 속에서 현실과 다양한 측면(예: 법, 금융, 엔터테인먼트, 학습 등)에서 직접적으로 연결된 활동을 수행함으로써 가상 환경 속에서 요구되는 사용자 경험은 다양 및 다각화 되고 있고, 더욱 실감 있는 경험을 위해 다양한 기술을 발전시켜오고 있다.In the virtual environment composed of the virtual reality and the augmented reality, the user experience required in the virtual environment is diversified and diversified by performing activities directly connected to reality in various aspects (eg, law, finance, entertainment, learning, etc.) and various technologies have been developed for a more realistic experience.

가상 환경에서 사용자가 체험하는 경험은 현실과 분리되어 있다. 가상 현실(VR)에서 상호작용하는 사물들은 전부 가상환경에서 재구성된 객체들이고, 상기 객체들에 대한 상호작용이 현실에 영향을 미치지 못하고 있다. 예를 들어 가상 현실(Virtual Reality, VR)에서 사과를 집는 행위는 현실에서의 사과에 전혀 영향을 미치지 못한다. 또한 증강 현실(Augmented Reality, AR)에서 현실세계의 사물을 투영하는 경우, 이에 대한 상호작용은 가상 환경과는 분리된 것으로 완벽히 상호작용시키기 어렵다. The experience experienced by users in a virtual environment is separated from reality. Objects interacting in virtual reality (VR) are all objects reconstructed in a virtual environment, and interactions with the objects do not affect reality. For example, the act of picking up an apple in Virtual Reality (VR) has no effect on the apple in reality. In addition, when objects in the real world are projected in Augmented Reality (AR), it is difficult to completely interact with them as they are separated from the virtual environment.

상기와 같이 가상 환경과 현실 세계가 분리된 상호작용은 사용자로 하여금 가상 환경에 몰입하기 어렵게 만들고, 사용자로 하여금 가상환경이 현실세계를 모방한 것일 뿐 현실세계와 완벽히 융합되지 않는다는 느낌을 갖게 만들면서 현실(Reality) 재구성이라는 목적에 장애물이 될 수 있다.As described above, the interaction between the virtual environment and the real world makes it difficult for users to immerse themselves in the virtual environment, and makes users feel that the virtual environment is only an imitation of the real world and does not completely fuse with the real world. It can be an obstacle to the goal of reconstructing reality.

본 개시에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problem to be achieved in the present disclosure is not limited to the technical problem mentioned above, and other technical problems not mentioned can be clearly understood by those skilled in the art from the description below. There will be.

다양한 실시 예들에 따른 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템은, 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 전자 장치; 및 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 외부 전자 장치를 포함할 수 있다.According to various embodiments, a system capable of controlling an external electronic device in the real world in a virtual environment, in a first mode capable of controlling an external electronic device in a virtual environment, based on appearance information and function information of the external electronic device A virtual external electronic device corresponding to the external electronic device is displayed, and when the occurrence of an input event is detected in the virtual external electronic device, input information related to the input event is transmitted to the external electronic device, and from the external electronic device When output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information is received, the state of the virtual external electronic device is made to correspond to the changed state of the external electronic device based on the output information. electronic devices that change; and when the input information is received from the electronic device, a function corresponding to the input information is performed, and output information related to a state of the external electronic device changed according to the execution of the function corresponding to the input information is transmitted to the electronic device. It may include an external electronic device that does.

다양한 실시 예들에 따른 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 전자 장치는, 카메라 모듈, 및 프로세서를 포함하고, 상기 프로세서는, 가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하고, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하도록 설정될 수 있다.According to various embodiments, an electronic device capable of controlling an external electronic device in a real world in a virtual environment includes a camera module and a processor, and the processor performs a first mode capable of controlling an external electronic device in a virtual environment. displays a virtual external electronic device based on appearance information and function information of the external electronic device, and transmits input information related to the input event to the external electronic device when the occurrence of an input event is detected in the virtual external electronic device; , When receiving output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information from the external electronic device, the state of the virtual external electronic device is determined based on the output information. display to correspond to the state of the device, and when output information related to an event generated in the external electronic device is received from the external electronic device, the virtual external electronic device corresponds to the state of the external electronic device changed based on the output information Can be set to change the state of the device.

다양한 실시 예들에 따른 시스템에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법은, 전자 장치에 의해, 상기 전자 장치의 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하는 동작, 상기 전자 장치에 의해, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하는 동작, 상기 외부 전자 장치에 의해, 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 동작, 및 상기 전자 장치에 의해, 상기 외부 전자 장치로부터 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 동작을 포함할 수 있다.A method for controlling an external electronic device in the real world in a virtual environment in a system according to various embodiments includes, in a first mode in which an external electronic device can be controlled in a virtual environment of the electronic device by an electronic device, an external Displaying a virtual external electronic device corresponding to the external electronic device based on appearance information and function information of the electronic device, and when an input event is detected in the virtual external electronic device by the electronic device, the external electronic device Transmitting input information related to the input event to a device, performing a function corresponding to the input information when the input information is received from the electronic device by the external electronic device, and a function corresponding to the input information Transmitting output information related to the state of the external electronic device changed according to the execution of the external electronic device to the electronic device, and when output information is received from the external electronic device by the electronic device, the virtual external device is based on the output information. An operation of changing the state of the electronic device to correspond to the changed state of the external electronic device.

다양한 실시 예들에 따른 전자 장치에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법은, 가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하는 동작, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하는 동작, 및 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하는 동작을 포함할 수 있다.A method for controlling an external electronic device in the real world in a virtual environment in an electronic device according to various embodiments includes appearance information and function information of the external electronic device in a first mode capable of controlling the external electronic device in the virtual environment. displaying a virtual external electronic device based on the virtual external electronic device, and when the virtual external electronic device detects the occurrence of an input event, transmits input information related to the input event to the external electronic device, and transmits input information related to the input event from the external electronic device to the external electronic device. displaying the state of the virtual external electronic device in correspondence with the changed state of the external electronic device based on the output information when output information related to the state of the external electronic device changed according to the execution of the corresponding function is received; and when output information related to an event generated in the external electronic device is received from the external electronic device, changing a state of the virtual external electronic device to correspond to a state of the external electronic device changed based on the output information. can include

다양한 실시 예들에 따르면, 가상환경을 이용하는 사용자는 현실 세계에서 사용하던 전자 장치의 형태, 기능 및 사용방식을 모두 현실에서와 동일하게 또는 대응되게 수행함에 따라 단절되지 않은 연속적인 경험을 갖게 될 수 있다. 또한 가상환경과 현실세계를 통합하는 사용자 경험은 가상환경을 이용하는 사용자에게 실감나는 가상환경을 제공할 수 있다.According to various embodiments, a user using a virtual environment can have an uninterrupted and continuous experience by performing all forms, functions, and methods of use of an electronic device used in the real world in the same or corresponding manner as in the real world. . In addition, the user experience that integrates the virtual environment and the real world can provide a realistic virtual environment to users using the virtual environment.

도 1은 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도 이다.
도 2a 내지 도 2b는 다양한 실시 예들에 따른 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템을 도시한 도면들이다.
도 3은 다양한 실시 예들에 따른 전자 장치의 블록도 이다.
도 4는 다양한 실시 예들에 따른 전자 장치의 가상 외부 전자 장치 제어 모듈의 블록도 이다.
도 5는 다양한 실시 예들에 따른 외부 전자 장치의 블록도 이다.
도 6은 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치의 외형 정보를 생성하는 동작을 설명하기 위한 도면이다.
도 7은 다양한 실시 예들에 따른 전자 장치에서 가상환경에 가상 외부 전자 장치를 제공하는 동작을 설명하기 위한 도면이다.
도 8은 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치로 전송하는 메시지 포맷을 도시한 도면이다.
도 9는 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치의 기능 정보를 생성하는 동작을 설명하기 위한 도면이다.
도 10은 다양한 실시 예들에 따른 전자 장치에서 가상환경에서 가상 외부 전자 장치를 표시가 위한 정보를 생성 할 수 있는 동작을 설명하기 위한 흐름도이다.
도 11은 다양한 실시 예들에 따른 전자 장치에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도 이다.
도 12는 다양한 실시 예들에 따른 시스템에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도이다.
도 13a 내지 도 13b는 다양한 실시 예들에 따른 시스템에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
2A to 2B are diagrams illustrating a system capable of controlling an external electronic device in the real world in a virtual environment according to various embodiments.
3 is a block diagram of an electronic device according to various embodiments.
4 is a block diagram of a virtual external electronic device control module of an electronic device according to various embodiments of the present disclosure;
5 is a block diagram of an external electronic device according to various embodiments.
FIG. 6 is a diagram for explaining an operation of generating outer shape information of an external electronic device in an electronic device according to various embodiments of the present disclosure.
7 is a diagram for explaining an operation of providing a virtual external electronic device to a virtual environment in an electronic device according to various embodiments of the present disclosure.
8 is a diagram illustrating a message format transmitted from an electronic device to an external electronic device according to various embodiments.
9 is a diagram for explaining an operation of generating function information of an external electronic device in an electronic device according to various embodiments of the present disclosure.
10 is a flowchart illustrating an operation of generating information for displaying a virtual external electronic device in a virtual environment in an electronic device according to various embodiments.
11 is a flowchart illustrating an operation for controlling an external electronic device in the real world in a virtual environment in an electronic device according to various embodiments of the present disclosure.
12 is a flowchart illustrating an operation for controlling an external electronic device in the real world in a virtual environment in a system according to various embodiments of the present disclosure.
13A and 13B are flowcharts for explaining an operation for controlling an external electronic device in the real world in a virtual environment in a system according to various embodiments of the present disclosure.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록 도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 within a network environment 100, according to various embodiments. Referring to FIG. 1 , in a network environment 100, an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or through a second network 199. It may communicate with at least one of the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or the antenna module 197 may be included. In some embodiments, in the electronic device 101, at least one of these components (eg, the connection terminal 178) may be omitted or one or more other components may be added. In some embodiments, some of these components (eg, sensor module 176, camera module 180, or antenna module 197) are integrated into a single component (eg, display module 160). It can be.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

도 2a 내지 도 2b는 다양한 실시 예들에 따른 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템을 도시한 도면들(200a 내지 200b)이다.2A to 2B are diagrams 200a to 200b illustrating a system capable of controlling an external electronic device in the real world in a virtual environment according to various embodiments.

상기 도 2a를 참조하면, 다양한 실시 예들에 따른 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템은, 전자 장치(210)와 외부 전자 장치(310)를 포함할 수 있다.Referring to FIG. 2A , a system capable of controlling an external electronic device in the real world in a virtual environment according to various embodiments may include an electronic device 210 and an external electronic device 310 .

다양한 실시 예들에 따르면, 전자 장치(210)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서 실 세계의 외부 전자 장치(310)와 대응되는 가상 외부 전자 장치를 제공하고, 외부 전자 장치(310)와의 통신 연결을 기반으로 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(310)에 대응되게 반영할 수 있도록 상기 외부 전자 장치(310)와 정보(예: 입력 정보 및 출력 정보)를 송수신 할 수 있다.According to various embodiments, the electronic device 210 provides a virtual external electronic device corresponding to the external electronic device 310 in the real world in a first mode capable of controlling the external electronic device in a virtual environment, and Based on the communication connection with the device 310, the external electronic device 310 and information (eg, input information and output information) can be reflected to the external electronic device 310 correspondingly to operation information of the virtual external electronic device. can transmit and receive

일 실시 예에 따르면, 상기 전자 장치(210)는, 웨어러블 전자 장치를 포함하고, 예를 들어, HMD(Head Mounted Display) 및/또는 웨어러블 글래스를 포함할 수 있다.According to an embodiment, the electronic device 210 includes a wearable electronic device, and may include, for example, a Head Mounted Display (HMD) and/or wearable glasses.

일 실시 예에 따르면, 상기 전자 장치(210)는, 외부 전자 장치(310)와 근거리 통신으로 연결될 수 있다.According to an embodiment, the electronic device 210 may be connected to the external electronic device 310 through short-range communication.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 전자 장치(210)의 메모리에 저장된 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치(310)를 가상 외부 전자 장치로 표시하기 위해, 상기 전자 장치(210)의 상기 메모리에서 상기 외부 전자 장치의 식별 정보에 매칭되어 저장된 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보를 검출할 수 있다. According to an embodiment, the electronic device 210, in the first mode, selects an external electronic device 310 from a list including at least one external electronic device stored in the memory of the electronic device 210. In order to display as a virtual external electronic device, external information of the external electronic device and function information of the external electronic device matched with identification information of the external electronic device and stored in the memory of the electronic device 210 may be detected.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 전자 장치(210)의 메모리에 저장된 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치(310)를 가상 외부 전자 장치로 표시하기 위해, 통신이 연결된 상기 외부 전자 장치(310)에게 요청하여 외부 전자 장치의 형태 정보 및/또는 외부 전자 장치의 기능 정보를 수신할 수 있다. According to an embodiment, the electronic device 210, in the first mode, the external electronic device 310 selected by the user from a list including at least one external electronic device stored in the memory of the electronic device 210. ) as a virtual external electronic device, a request may be made to the external electronic device 310 through which communication is connected to receive form information and/or function information of the external electronic device.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 외부 전자 장치의 외형 정보 및 상기 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 외부 전자 장치(310)와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the electronic device 210, in the first mode, uses a rendering technology (eg, graphic processing (Graphic Processing) may render and display a virtual external electronic device similar to the external electronic device 310 in the real world.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 가상 외부 전자 장치에 사용자의 입력(예: 사용자의 제스처)을 기반한 입력 정보를 검출하면, 상기 입력 정보를 통신이 연결된 외부 전자 장치(310)로 전송할 수 있다. 상기 전자 장치(210)는, 상기 외부 전자 장치(310)로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태(예: 디스플레이 상태 및/또는 사운드 상태)와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하여 표시할 수 있다.According to an embodiment, when the electronic device 210 detects input information based on a user's input (eg, a user's gesture) to the virtual external electronic device in the first mode, the electronic device 210 transmits the input information through a communication connection. It can be transmitted to the external electronic device 310. The electronic device 210 outputs output information related to a state (eg, a display state and/or a sound state) of the external electronic device 310 that is changed according to the execution of a function corresponding to the input information from the external electronic device 310. Upon reception, based on the output information, the state of the virtual external electronic device may be changed to correspond to the changed state of the external electronic device and displayed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 통신이 연결된 상기 외부 전자 장치(310)로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하여 표시할 수 있다.According to an embodiment, when the electronic device 210 receives output information related to an event generated in the external electronic device from the external electronic device 310 through which communication is connected in the first mode, the output information Based on this, the state of the virtual external electronic device may be changed and displayed to correspond to the state of the external electronic device changed due to the occurrence of the event.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 외부 전자 장치(310)와 미리 규정된 메시지 형태를 이용하여 정보를 송수신할 수 있다.According to an embodiment, in the first mode, the electronic device 210 may transmit/receive information with the external electronic device 310 using a predefined message format.

다양한 실시 예들에 따르면, 외부 전자 장치(310)는, 전자 장치(210)의 제1 모드에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(310)에 대응되게 반영할 수 있도록, 전자 장치(210)와의 통신 연결을 기반으로 상기 전자 장치(210)와 정보(예: 입력 정보 및 출력 정보)를 송수신 할 수 있다.According to various embodiments of the present disclosure, the external electronic device 310 may reflect manipulation information of a virtual external electronic device displayed in the first mode of the electronic device 210 to the external electronic device 310 to correspond to the electronic device 310. Information (eg, input information and output information) can be transmitted and received with the electronic device 210 based on the communication connection with the 210 .

일 실시 예에 따르면, 상기 전자 장치(210)는, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 의료 기기 또는 가전 장치들을 포함할 수 있다.According to an embodiment, the electronic device 210 may include a portable communication device (eg, a smart phone), a computer device, a portable medical device, or a home appliance.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 통신이 연결된 전자 장치(210)의 요청에 따라, 상기 외부 전자 장치(310)의 메모리에 저장된 외부 전자 장치의 외형 정보 및/또는 외부 전자 장치의 기능 정보를 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the external electronic device 310, according to a request of the electronic device 210 with which communication is connected, external information of the external electronic device stored in the memory of the external electronic device 310 and/or an external electronic device Device function information may be transmitted to the electronic device 210 .

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 전자 장치(210)로부터 수신되는 입력 정보를 기반으로, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 생성하여 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the external electronic device 310 performs a function corresponding to the input information based on input information received from the electronic device 210, and the external electronic device 310 is changed according to the execution of the function. Output information related to the state of the electronic device may be generated and transmitted to the electronic device 210 .

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치(310)에 이벤트가 발생되면, 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 생성하고, 상기 생성된 출력 정보를 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, when an event occurs in the external electronic device 310, the external electronic device 310 generates output information related to the state of the external electronic device changed by the occurrence of the event, and Output information may be transmitted to the electronic device 210 .

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 전자 장치(210)와 미리 규정된 메시지 형태를 이용하여 정보를 송수신할 수 있다.According to an embodiment, the external electronic device 310 may transmit/receive information with the electronic device 210 using a predefined message format.

상기 도 2b를 참조하면, 다양한 실시 예들에 따른 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템은, 전자 장치(210), 외부 전자 장치(310) 및 서버(410)를 포함할 수 있다.Referring to FIG. 2B , a system capable of controlling an external electronic device in the real world in a virtual environment according to various embodiments may include an electronic device 210, an external electronic device 310, and a server 410. there is.

다양한 실시 예들에 따르면, 전자 장치(210)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서 실 세계의 외부 전자 장치(310)와 대응되는 가상 외부 전자 장치를 제공하고, 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(310)에 대응되게 반영할 수 있도록 서버(410)을 통해 상기 외부 전자 장치(310)와 정보(예: 입력 정보 및 출력 정보)를 송수신 할 수 있다.According to various embodiments, the electronic device 210 provides a virtual external electronic device corresponding to the external electronic device 310 in the real world in a first mode capable of controlling the external electronic device in a virtual environment, and Information (eg, input information and output information) may be transmitted and received with the external electronic device 310 through the server 410 so that operation information of the electronic device may be reflected to the external electronic device 310 correspondingly.

일 실시 예에 따르면, 상기 전자 장치(210)는, 웨어러블 전자 장치를 포함하고, 예를 들어, HMD(Head Mounted Display) 및/또는 웨어러블 글래스를 포함할 수 있다.According to an embodiment, the electronic device 210 includes a wearable electronic device, and may include, for example, a Head Mounted Display (HMD) and/or wearable glasses.

일 실시 예에 따르면, 상기 전자 장치(210)는, 인증 과정을 통해 서버(410)와 연결될 수 있다.According to an embodiment, the electronic device 210 may be connected to the server 410 through an authentication process.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 전자 장치(210)의 메모리에 저장된 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치(310)를 가상 외부 전자 장치로 표시하기 위해, 상기 전자 장치(210)의 상기 메모리에서 상기 외부 전자 장치의 식별 정보에 매칭되어 저장된 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보를 검출할 수 있다. According to an embodiment, the electronic device 210, in the first mode, the external electronic device 310 selected by the user from a list including at least one external electronic device stored in the memory of the electronic device 210. ) as a virtual external electronic device, the external electronic device's external appearance information and function information of the external electronic device that are matched with the identification information of the external electronic device and stored in the memory of the electronic device 210 may be detected. .

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 전자 장치(210)의 메모리에 저장된 적어도 하나의 외부 전자 장치에 포함된 리스트에서 사용자에 의해 선택된 외부 전자 장치(310)를 가상 외부 전자 장치로 표시하기 위해, 상기 서버(410)에게 요청하여 상기 서버(410)로부터 외부 전자 장치의 형태 정보 및 /또는 외부 전자 장치의 기능 정보를 수신할 수 있다. According to an embodiment, the electronic device 210, in the first mode, includes an external electronic device 310 selected by a user from a list included in at least one external electronic device stored in the memory of the electronic device 210. ) as a virtual external electronic device, a request may be made to the server 410 to receive form information and/or function information of the external electronic device from the server 410 .

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 외부 전자 장치의 외형 정보 및 상기 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 외부 전자 장치(310)와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the electronic device 210, in the first mode, uses a rendering technology (eg, graphic processing (Graphic Processing) may render and display a virtual external electronic device similar to the external electronic device 310 in the real world.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 가상 외부 전자 장치(310)에 사용자의 입력을 기반한 입력 정보를 검출하면, 상기 입력 정보를 상기 서버(410)를 통해 상기 외부 전자 장치(310)로 전송할 수 있다. 상기 전자 장치(210)는, 상기 서버(410)를 통해 상기 외부 전자 치(310)로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하여 표시할 수 있다.According to an embodiment, when the electronic device 210 detects input information based on a user's input to the virtual external electronic device 310 in the first mode, the electronic device 210 transmits the input information through the server 410. It can be transmitted to the external electronic device 310. When the electronic device 210 receives output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information from the external electronic device 310 through the server 410, the Based on the output information, the state of the virtual external electronic device may be changed to correspond to the changed state of the external electronic device and displayed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 서버(410)을 통해 상기 외부 전자 장치(310)로부터 상기 외부 전자 장치(310)에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치(310)의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하여 표시할 수 있다.According to an embodiment, the electronic device 210 outputs information related to an event generated in the external electronic device 310 from the external electronic device 310 through the server 410 in the first mode. is received, the state of the virtual external electronic device may be changed and displayed to correspond to the state of the external electronic device 310 changed by the occurrence of the event based on the output information.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 제1 모드에서, 상기 서버(410)를 통해 상기 외부 전자 장치(310)와 미리 규정된 메시지 형태를 이용하여 정보를 송수신할 수 있다.According to an embodiment, in the first mode, the electronic device 210 may transmit/receive information with the external electronic device 310 through the server 410 using a predefined message format.

다양한 실시 예들에 따르면, 외부 전자 장치(310)는, 전자 장치(210)의 제1 모드에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(310)에 대응되게 반영할 수 있도록, 서버(410)를 통해 상기 전자 장치(210)와 정보(예: 입력 정보 및 출력 정보)를 송수신 할 수 있다.According to various embodiments of the present disclosure, the external electronic device 310 may operate on a server so that operation information of a virtual external electronic device displayed in the first mode of the electronic device 210 may be reflected to the external electronic device 310 correspondingly. Information (eg, input information and output information) can be transmitted and received with the electronic device 210 through 410).

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 인증 과정을 통해 서버(410)와 연결될 수 있다.According to an embodiment, the external electronic device 310 may be connected to the server 410 through an authentication process.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 서버(410)를 통해 상기 전자 장치(210)로부터 수신되는 입력 정보를 기반으로, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 상기 서버(410)를 통해 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the external electronic device 310 performs a function corresponding to the input information based on input information received from the electronic device 210 through the server 410, and the function Output information related to the state of the external electronic device changed according to the execution of is transmitted to the electronic device 210 through the server 410 .

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치(310)에 이벤트가 발생되면, 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태(예: 디스플레이 상태 및/또는 사운드 상태)와 관련된 출력 정보를 생성하고, 상기 생성된 출력 정보를 상기 서버(410)를 통해 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, when an event occurs in the external electronic device 310, the external electronic device 310 changes a state (eg, a display state and/or a sound state) of the external electronic device when the event occurs. Output information related to may be generated, and the generated output information may be transmitted to the electronic device 210 through the server 410 .

일 실시 예에 따르면, 상기 외부 전자 장치(210)는, 상기 서버(410)를 통해 상기 전자 장치(210)와 미리 규정된 메시지 형태를 이용하여 정보를 송수신할 수 있다.According to an embodiment, the external electronic device 210 may transmit and receive information with the electronic device 210 through the server 410 using a predefined message format.

다양한 실시 예들에 따르면, 서버(410)는, 전자 장치(210)의 제1 모드에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(310)에 대응되게 반영할 수 있도록, 전자 장치(210)로부터 수신된 정보(예: 입력 정보)를 외부 전자 장치(310)로 전송하고, 상기 외부 전자 장치(310)로부터 수신된 정보(예: 출력 정보)를 전자 장치(210)로 전송할 수 있다.According to various embodiments of the present disclosure, the server 410 controls the electronic device 210 to reflect operation information of the virtual external electronic device displayed in the first mode of the electronic device 210 to the external electronic device 310 correspondingly. ) may transmit information (eg, input information) received from the external electronic device 310, and information (eg, output information) received from the external electronic device 310 may be transmitted to the electronic device 210.

일 실시 예에 따르면, 상기 서버(410)는, 상기 전자 장치(210)의 요청에 따라, 상기 서버(410)의 DB에 저장된 외부 전자 장치의 외형 정보 및/또는 외부 전자 장치의 기능 정보를 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the server 410, according to the request of the electronic device 210, external information and / or function information of the external electronic device stored in the DB of the server 410 to the It can be transmitted to the electronic device 210.

일 실시 예에 따르면, 상기 서버(410)의 DB에는, 사용자의 계정 별로 적어도 하나의 외부 전자 장치의 식별 정보에 매칭되는 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보가 저장될 수 있다.According to an embodiment, the DB of the server 410 may store external electronic device appearance information and function information of the external electronic device that match identification information of at least one external electronic device for each user account.

일 실시 예에 따르면, 상기 서버(410)는, 전자 장치(210) 및 외부 전자 장치(310)와 미리 규정된 메시지 형태로, 전자 장치(210)로부터 수신된 정보(예: 입력 정보)를 외부 전자 장치(310)로 전송하고, 상기 외부 전자 장치(310)로부터 수신된 정보(예: 출력 정보)를 전자 장치(210)로 전송할 수 있으며, 상기 메시지의 교환은 미리 규정한 Application Layer 프로토콜(Protocol)에 의해 수행할 수 있다.According to an embodiment, the server 410 transmits information (eg, input information) received from the electronic device 210 and the external electronic device 310 to the outside in the form of a predefined message. It is transmitted to the electronic device 310, and information (eg, output information) received from the external electronic device 310 may be transmitted to the electronic device 210, and the exchange of the message is performed using a predefined Application Layer protocol ) can be performed by

일 실시 예에 따르면, 상기 서버(410)에서, 전자 장치(210)와 외부 전자 장치(310)간에 메시지 형태로 정보를 전달할 때 사용하는 프로토콜은 HTTP(Port number 80), 정보 보안 및 위조와 변조를 막기 위하 HTTPS(Port number 443) 프로토콜, 또는 스트리밍시 혼잡제어를 위한 QUIC 또는 UDP 와 같은 프토토콜 중 어느 하나를 사용할 수 있다.According to an embodiment, the protocol used when transferring information in the form of a message between the electronic device 210 and the external electronic device 310 in the server 410 is HTTP (Port number 80), information security, and forgery and tampering. To prevent this, either HTTPS (Port number 443) protocol or protocols such as QUIC or UDP for congestion control during streaming can be used.

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

상기 도 3을 참조하면, 다양한 실시 예들에 따르면, 전자 장치(301)(예: 도 1의 전자 장치(101) 및/또는 도 2a 내지 도 2b의 전자 장치(210))는, 프로세서(320), 메모리(330), 디스플레이(360), 센서 모듈(376), 카메라 모듈(380), 및 통신 모듈(390)을 포함할 수 있다. Referring to FIG. 3 , according to various embodiments, an electronic device 301 (eg, the electronic device 101 of FIG. 1 and/or the electronic device 210 of FIGS. 2A and 2B ) includes a processor 320 , a memory 330, a display 360, a sensor module 376, a camera module 380, and a communication module 390.

다양한 실시 예들에 따르면, 프로세서(320)는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 실 세계에 존재하는 적어도 하나의 외부 전자 장치와 대응되는 가상 외부 전자 장치를 생성하기 위한 외부 전자 장치의 외형 정보 및 기능 정보를 생성하여 저장할 수 있다.According to various embodiments of the present disclosure, the processor 320 may, in a mode capable of registering an external electronic device in a virtual environment (eg, a second mode), generate a virtual external electronic device corresponding to at least one external electronic device existing in the real world. Appearance information and function information of an external electronic device for generating a device may be created and stored.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 3차원 객체 인식 및/또는 스캐닝(3D Recognition/Scanning) 기술을 이용하여 카메라 모듈(380) 및/또는 센서 모듈(376)을 통해 검출된 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))에 대한 영상 데이터 및/또는 센서 데이터를 분석하고, 상기 분석된 데이터를 기반으로 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 생성하고, 상기 생성된 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 상기 외부 전자 장치의 외형 정보로 생성할 수 있다.According to one embodiment, the processor 320, in the mode (eg, the second mode), uses a 3D object recognition and / or scanning (3D Recognition / Scanning) technology to the camera module 380 and / or Image data and/or sensor data for an external electronic device detected by the sensor module 376 (eg, the external electronic device 310 of FIGS. 2A and 2B ) is analyzed, and a 3D image is created based on the analyzed data. Coordinate information, texture, and shader data may be generated, and the generated 3D coordinate information, texture, and shader data may be generated as exterior information of the external electronic device.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 상기 전자 장치(301)에 포함된 그래픽 연산 장치(예: GPU(Graphic Process Unit))에 상기 외부 전자 장치의 외형 정보를 적용하여 가상 외부 전자 장치를 렌더링 하여 표시하는 동안, 상기 가상 외부 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴(예: GUI 메뉴)를 표시할 수 있다. 상기 프로세서(320)는, 상기 기능 설정 메뉴를 통해 사용자에 의해 선택된 적어도 하나의 기능의 종류를 확인하고, 상기 표시되고 있는 가상 외부 전자 장치에서 적어도 하나의 기능을 수행하기 위한 구성요소가 위치될 영역이 사용자에 의해 선택되면, 상기 사용자에 의해 선택된 영역을 상기 기능 수행을 위한 구성요소의 영역정보로 확인할 수 있다. 상기 프로세서(320)는, 상기 기능의 종류 및 상기 기능 수행을 위한 구성요소의 영역정보를 상기 외부 전자 장치의 기능 정보로 생성할 수 있다. According to an embodiment, the processor 320 may, in the mode (eg, the second mode), send a graphic processing unit (eg, a graphic processing unit (GPU)) included in the electronic device 301 to the external electronic device. While a virtual external electronic device is rendered and displayed by applying external appearance information of the device, a function setting menu (eg, a GUI menu) for setting functions of the virtual external electronic device may be displayed. The processor 320 checks the type of at least one function selected by the user through the function setting menu, and the area where a component for performing at least one function in the displayed virtual external electronic device is to be located. If this is selected by the user, the area selected by the user can be identified as area information of the component for performing the function. The processor 320 may generate information about the type of the function and the region of the component for performing the function as function information of the external electronic device.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 상기 외부 전자 장치와 근거리 통신이 연결된 상태에서 상기 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보(예: 외부 전자 장치의 id정보)를 수신하고, 상기 외부 전자 장치의 식별 정보에 매칭하여 상기 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(330)에 저장할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the second mode), in a state in which short-range communication is connected with the external electronic device, identifies the external electronic device from the external electronic device (eg, the second mode). ID information of the external electronic device) may be received, and appearance information and function information of the external electronic device may be stored in the memory 330 by matching with the identification information of the external electronic device.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 사용자에 의해 입력된 외부 전자 장치의 식별 정보(예: 전자 장치의 id 정보)가 입력되면, 상기 외부 전자 장치의 식별 정보에 매칭하여 상기 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(330)에 저장할 수 있다. According to an embodiment, the processor 320, in the mode (eg, the second mode), when identification information (eg, id information of the electronic device) of the external electronic device input by the user is input, the external electronic device Appearance information and function information of the external electronic device may be stored in the memory 330 by matching with the identification information of the electronic device.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 상기 외부 전자 장치와 근거리 통신이 연결된 상태에서 상기 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보(예: 전자 장치의 id 정보), 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보를 수신하고, 상기 외부 전자 장치의 식별 정보에 매칭하여 상기 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(330)에 저장할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the second mode), in a state in which short-range communication is connected with the external electronic device, identifies the external electronic device from the external electronic device (eg, the second mode). ID information of the electronic device), appearance information of the external electronic device, and function information of the external electronic device are received, and the external electronic device's appearance information and function information are stored in the memory 330 by matching with the identification information of the external electronic device. can be saved

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제2 모드)에서, 상기 전자 장치(301)에 미리 저장된 기능을 포함하는 기능 설정 메뉴(예: GUI 메뉴)을 이용하여 상기 외부 전자 장치의 기능 정보를 생성할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the second mode), uses a function setting menu (eg, GUI menu) including functions previously stored in the electronic device 301 to configure the Functional information of an external electronic device may be generated.

일 실시 예에 따르면, 상기 프로세서(320)는, 근거리 통신이 연결된 상기 외부 전자 장치로부터 수신된 기능을 포함하는 기능 설정 메뉴(예: GUI 메뉴)을 이용하여 상기 외부 전자 장치의 기능 정보를 생성할 수 있다.According to an embodiment, the processor 320 generates function information of the external electronic device using a function setting menu (eg, a GUI menu) including functions received from the external electronic device to which short-range communication is connected. can

일 실시 예에 따르면, 상기 프로세서(320)는, 서버(예: 도 2b의 서버(410))로부터 수신된 기능을 포함하는 기능 설정 메뉴(예: GUI 메뉴)을 이용하여 상기 외부 전자 장치의 기능 정보를 생성할 수 있다.According to an embodiment, the processor 320 uses a function setting menu (eg, a GUI menu) including functions received from a server (eg, the server 410 of FIG. 2B) to perform functions of the external electronic device. information can be generated.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치의 외형 정보 및 상기 외부 전자 장치의 기능 정보를 상기 서버로 전송하여 상기 서버의 DB에 저장할 수 있다.According to an embodiment, the processor 320 transmits the identification information of the external electronic device, the appearance information of the external electronic device, and the function information of the external electronic device to the server and stores them in a DB of the server. .

다양한 실시 예들에 따르면, 프로세서(320)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 실 세계의 외부 전자 장치와 대응되는 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to various embodiments, the processor 320 renders and displays a virtual external electronic device corresponding to an external electronic device in the real world in a mode (eg, a first mode) capable of controlling an external electronic device in a virtual environment. can do.

일 실시 예에 따르면, 상기 프로세서(320)는 가상 현실(Virtual Reality, VR)실행을 위한 어플리케이션 또는 가상 현실(Virtual Reality, VR) 실행을 위한 어플리케이션을 실행하여 가상 환경을 제공할 수 있는 모드(예: 제1 모드)로 전환하고, 상기 모드(예: 제1 모드)에서 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 검출할 수 있다.According to an embodiment, the processor 320 may provide a virtual environment by executing an application for executing virtual reality (VR) or an application for executing virtual reality (VR) (e.g. : first mode), and in the mode (eg, first mode), appearance information and function information of the external electronic device selected by the user may be detected.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 메모리(330)에 저장된 적어도 하나의 외부 전자 장치들을 포함하는 리스트에서 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 상기 메모리(330)에서 검출할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the first mode), determines the appearance of an external electronic device selected by the user from a list including at least one external electronic device stored in the memory 330. Information and function information can be detected from the memory 330 .

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 메모리(330)에 저장된 적어도 하나의 외부 전자 장치들을 포함하는 리스트에서 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 상기 서버에게 요청하여 상기 서버로부터 수신할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the first mode), determines the appearance of an external electronic device selected by the user from a list including at least one external electronic device stored in the memory 330. Information and function information may be requested from the server and received from the server.

예를 들어, 상기 프로세서(320)는, 상기 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 상기 서버에게 요청하기 위해, 하기 <예제1>과 같이, 사용자의 계정 정보(UserID), 외부 전자 장치의 식별 정보(Device ID) 및 보안 키(MagicKey)를 포함하는 메시지를 상기 서버로 전송할 수 있다.For example, the processor 320, in order to request appearance information and function information of the external electronic device selected by the user, to the server, as in Example 1 below, the user's account information (UserID), external A message including identification information (Device ID) of the electronic device and a security key (MagicKey) may be transmitted to the server.

<예제 1><Example 1>

Figure pat00001
Figure pat00001

예를 들어, 상기 프로세서(320)는, 상기 가상 외부 전자 장치의 외형 정보 및 기능 정보의 요청에 따라, 상기 서버로부터 하기 <예제2>와 같이 외부 전자 장치의 외형 정보(objectDataVertex)와 외부 전자 장치의 기능 정보(objectFeature)를 포함하는 패킷 형태의 메시지를 수신할 수 있다.For example, the processor 320, in response to a request for external appearance information and function information of the virtual external electronic device, obtains external external electronic device external information (objectDataVertex) and external electronic device from the server as shown in <Example 2> below. A message in the form of a packet including feature information (objectFeature) of can be received.

<예제 2><Example 2>

Figure pat00002
Figure pat00002

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 외형 정보(예: 3차원 좌표정보, 텍스처 및 쉐이더 데이터) 및 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 외부 전자 장치(310)와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the first mode), external information (eg, 3D coordinate information, texture and shader data) and functions of the external electronic device A virtual external electronic device similar to the external electronic device 310 in the real world may be rendered and displayed by reflecting the information to a rendering technology (eg, graphic processing) constituting the virtual environment.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 외형 정보(예: 3차원 좌표정보, 텍스처 및 쉐이더 데이터)에 추가적으로 광원등을 계산하고, 상기 외형 정보 및 추가 정보(예: 광원등)가 적용되는 3차원 그래픽 API(예: DirectX, Opengl, Vulkan 및/또는 Metal)등을 사용하여 GPU파이프 라인을 통해 가상 외부 전자 장치를 3차원 그래픽으로 형상화할 수 있다. 상기 가상 외부 전자 장치를 상기 3자원 그래픽으로 형상화 과정에서 정점(Vertex)와 쉐이더(Shader)를 활용한 그래픽 처리장치(GPU: Graphics Processing Unit)렌더링의 하기 <예제3 >과 같다.According to an embodiment, the processor 320, in the mode (eg, the first mode), calculates a light source in addition to external shape information (eg, 3D coordinate information, texture and shader data) of the external electronic device. and a 3D graphics API (e.g. DirectX, Opengl, Vulkan and/or Metal) to which the external information and additional information (e.g. light source, etc.) are applied to create a 3D virtual external electronic device through the GPU pipeline. It can be visualized graphically. In the process of shaping the virtual external electronic device into the 3-resource graphics, the following <Example 3> of graphics processing unit (GPU) rendering using vertex and shader is the same.

<예제3 ><Example 3>

Figure pat00003
Figure pat00003

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 기능 정보를 기반으로 가상 외부 전자 장치에서 기능을 수행하기 위한 구성요소가 위치될 영역을 지정할 수 있다.According to an embodiment, the processor 320 may, in the mode (eg, the first mode), based on function information of the external electronic device, an area where a component for performing a function in a virtual external electronic device is to be located. can be specified.

예를 들어, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 기능 정보로 외부 전자 장치를 폴딩할 수 있는 힌지 기능, 화면 출력 기능, 및 터치 기능을 확인하는 경우, 상기 외부 전자 장치의 외형 정보를 기반으로 가상 외부 전자 장치의 외형을 렌더링 한 후, 상기 외부 전자 장치의 기능 정보를 기반으로 외부 전자 장치를 폴딩할 수 있는 힌지 기능을 수행하기 위한 힌지 구성요소가 위치된 힌지 영역, 화면 출력 기능을 수행하기 위한 디스플레이 구성요소가 위치된 디스플레이 영역, 및 터치 기능을 수행하기 위한 디스플레이 구성요소 또는 버튼 구성요소가 위치된 입력 영역을 확인할 수 있다. For example, in the mode (eg, the first mode), the processor 320 checks a hinge function for folding the external electronic device, a screen output function, and a touch function with function information of the external electronic device. Hinge configuration for performing a hinge function capable of folding the external electronic device based on function information of the external electronic device after rendering the external appearance of the virtual external electronic device based on the external electronic device external information. A hinge area where an element is located, a display area where a display component for performing a screen output function is located, and an input area where a display component or button component for performing a touch function are located may be identified.

상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 가상 외부 전자 장치를 힌지를 중심으로 폴딩과 언폴딩을 수행할 수 있는 힌지 기능의 경우, 가상 외부 전자 장치의 가운데 지점을 힌지 좌표(예: 힌지 영역)로 지정하여 해당 좌표를 기준으로 회전 기하변환을 하도록 정점 쉐이더를 추가할 수 있다. 상기 프로세서(320)는, 가상 외부 전자 장치의 힌지 영역에서 표시되는 힌지의 축을 Z축으로 가정하여 계산하는 경우, Rotate 및/또는 Transform과 같은 그래픽 API(Application Programming Interface)를 이용하여 가상 외부 전자 장치의 폴딩 및 언폴딩에 따른 좌표 정보를 하기 식 1을 반영함에 따라, 가상 환경에서 가상 외부 전자 장치에 대한 폴딩 및 언폴딩을 구현하여 표시할 수 있다.In the case of a hinge function capable of folding and unfolding the virtual external electronic device around the hinge in the mode (eg, the first mode), the processor 320 sets the center point of the virtual external electronic device as a hinge A vertex shader can be added to specify a coordinate (e.g., hinge area) and perform a rotational geometric transformation based on the coordinate. When the processor 320 calculates assuming that the axis of the hinge displayed in the hinge area of the virtual external electronic device is the Z axis, the processor 320 uses a graphic application programming interface (API) such as Rotate and/or Transform to generate the virtual external electronic device. Folding and unfolding of a virtual external electronic device may be implemented and displayed in a virtual environment by reflecting Equation 1 below for coordinate information according to folding and unfolding of .

< 식 1 ><Formula 1>

Figure pat00004
Figure pat00004

상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 화면 출력 기능의 경우, 가상 외부 전자 장치의 디스플레이 영역을 텍스처 매핑(texture mapping)될 영역으로 지정할 수 있다. 이후, 상기 프로세서(320)는, 가상 외부 전자 장치와 실 세계의 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))를 대응되게 조작하기 위해, 실 세계의 외부 전자 장치로부터 수신되는 출력 정보를 기반으로 상기 외부 전자 장치의 디스플레이의 화면 상태(예: 화면 이미지)와 대응되는(또는 동일한) 화면 상태(예: 화면 이미지)를 상기 가상 외부 전자 장치의 디스플레이 영역에 매핑(mapping) 시킬 수 있다. 상기 프로세서(320)는, 연산처리 속도를 높이기 위해 해당 텍스처(예: 화면 이미지)를 GPU(Graphic Processing Unit)와 공유되는 메모리에 저장하여 텍스처 매핑(texture mapping)을 수행하면 화면 이미지를 메모리에 복사하는 연산 없이, 텍스처(예: 화면 이미지)가 반영되는 효과를 가져올 수 있다. 상기 화면 이미지를 GPU(Graphic Processing Unit)와 공유되는 메모리에 저장하여 텍스처 맵핑하는 하기 <예제 4>와 같다.In the mode (eg, the first mode), in the case of a screen output function, the processor 320 may designate a display area of the virtual external electronic device as an area to be texture mapped. Thereafter, the processor 320 controls the virtual external electronic device and the real world external electronic device (eg, the external electronic device 310 of FIGS. 2A and 2B ) to correspond to each other, from the real world external electronic device. Based on the received output information, the screen state (eg, screen image) corresponding to (or identical to) the screen state (eg, screen image) of the display of the external electronic device is mapped to the display area of the virtual external electronic device. ) can be done. The processor 320 stores a corresponding texture (eg, a screen image) in a memory shared with a GPU (Graphic Processing Unit) to increase calculation processing speed, and when texture mapping is performed, the screen image is copied to the memory. You can bring the effect of reflecting the texture (e.g. screen image) without any calculation. The screen image is stored in a memory shared with a GPU (Graphic Processing Unit) and texture-mapped as shown in <Example 4> below.

<예제 4><Example 4>

Figure pat00005
Figure pat00005

상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 버튼 기능의 경우 디스플레이 영역 또는 버튼 영역을 터치 이벤트 처리 영역으로 지정하고, 사용자의 제스처에 의한 터치 상호 작용을 인식하도록 할 수 있다.In the mode (eg, the first mode), in the case of a button function, the processor 320 may designate a display area or a button area as a touch event processing area and recognize a touch interaction by a user's gesture. .

다양한 실시 예들에 따르면, 프로세서(320)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 표시되는 가상 외부 전자 장치의 조작 정보를 상기 외부 전자 장치(예: 도 2a 및 도 2b의 외부 전자 장치(310))에 대응되게 반영할 수 있도록 상기 외부 전자 장치와 정보(예: 입력 정보 및 출력 정보)를 송수신 할 수 있다.According to various embodiments of the present disclosure, in a mode capable of controlling an external electronic device in a virtual environment (eg, a first mode), the processor 320 converts operation information of a displayed virtual external electronic device to the external electronic device (eg, a first mode). Information (eg, input information and output information) may be transmitted and received with the external electronic device so as to correspond to the external electronic device 310 of FIGS. 2A and 2B .

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서 상기 가상 외부 전자 장치를 표시하는 동안, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 입력 이벤트와 관련된 입력 정보를 생성하고, 상기 생성된 입력 정보를 상기 외부 전자 장치로 전송할 수 있다. According to an embodiment, when the processor 320 detects the occurrence of an input event in the virtual external electronic device while displaying the virtual external electronic device in the mode (eg, the first mode), the input event It is possible to generate input information related to and transmit the generated input information to the external electronic device.

예를 들어, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 사용자의 제스처를 기반으로 상기 가상 외부 전자 장치의 디스플레이 영역 또는 버튼 영역에 입력 이벤트(또는 터치 이벤트)의 발생을 검출하면, 입력의 종류, 입력의 위치 및 입력의 횟수와 지속시간을 포함하는 입력 정보를 하기 <예제 5>와 같이 메시지로 생성하여 상기 외부 전자 장치로 전송할 수 있다.For example, in the mode (eg, the first mode), the processor 320 may generate an input event (or touch event) in a display area or a button area of the virtual external electronic device based on a user's gesture. If detected, input information including the type of input, location of input, number of times and duration of input may be generated as a message and transmitted to the external electronic device as shown in Example 5 below.

<예제 5><Example 5>

Figure pat00006
Figure pat00006

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 입력 정보를 포함하는 메시지의 전송에 따라 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태(예: 디스플레이 영역 상태 및/또는 사운드 상태)을 상기 변경된 외부 전자 장치의 상태와 대응되게 변경할 수 있다.According to an embodiment, the processor 320 is configured to perform a function corresponding to the input information from the external electronic device according to transmission of a message including the input information in the mode (eg, the first mode). When receiving output information related to the state of the external electronic device changed according to the output information, the state of the virtual external electronic device (eg, display area state and/or sound state) is compared with the changed state of the external electronic device based on the output information. can be changed accordingly.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 포함하는 메시지를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태(예: 디스플레이 영역상태 및/또는 사운드 상태)를 변경할 수 있다.According to an embodiment, when the processor 320 receives a message including output information related to an event generated in the external electronic device from the external electronic device in the mode (eg, the first mode), the Based on the output information, a state (eg, a display area state and/or a sound state) of the virtual external electronic device may be changed to correspond to the state of the external electronic device changed by the occurrence of the event.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 전자 장치(301)가 통신 모듈(390)의 근거리 통신 모듈을 통해 상기 외부 전자 자치와 연결된 상태일 때, 상기 외부 전자 장치와 정보(예: 입력 정보 및/또는 출력 정보)를 포함하는 메시지를 송수할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the first mode), when the electronic device 301 is connected to the external electronic self-government through the short-range communication module of the communication module 390 , A message including information (eg, input information and/or output information) may be transmitted and received with the external electronic device.

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 전자 장치(301)가 통신 모듈의 근거리 통신 모듈을 통해 상기 외부 전자 자치와 연결되지 않은 상태일 때, 또는 사용자의 선택에 의해, 서버(예: 도 2b의 서버(410))를 통해 상기 외부 전자 장치와 정보(예: 입력 정보 및/또는 출력 정보)를 포함하는 메시지를 송수신할 수 있다.According to an embodiment, the processor 320, in the mode (eg, the first mode), when the electronic device 301 is not connected to the external electronic self-government through the short-range communication module of the communication module, Alternatively, according to a user's selection, a message including information (eg, input information and/or output information) may be transmitted and received with the external electronic device through a server (eg, the server 410 of FIG. 2B ).

일 실시 예에 따르면, 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 사용자의 계정 정보(예: id 및 password)를 기반으로 상기 서버로 접속을 요청하고, 상기 서버와의 인증 과정을 통해 인증을 성공하면, 상기 서버를 통해 상기 외부 전자 장치와 정보를 송수신할 수 있다.According to one embodiment, the processor 320, in the mode (eg, the first mode), requests access to the server based on the user's account information (eg, id and password), and If authentication is successful through the authentication process, information can be transmitted and received with the external electronic device through the server.

일 실시 예에 따르면, 상기 외부 전자 장치와 직접적으로 또는 상기 서버를 통해 상기 외부 전자 장치와 송수신하는 정보(예: 입력 정보 및/또는 출력 정보)를 포함하는 메시지 형태는, 상기 외부 전자 장치 또는 상기 서버와 미리 규정된 방식의 메시지 형태를 포함할 수 있다.According to an embodiment, a message type including information (eg, input information and/or output information) transmitted to and received from the external electronic device directly or through the server is the external electronic device or the external electronic device. It can include the message format of the server and the predefined method.

예를 들어, 실 세계의 외부 전자 장치(예: 도 2b의 외부 전자 장치(310))에서 전화를 수신되는 경우, 상기 외부 전자장치에서는 전화 수신 화면에 대한 프레임 버퍼와 벨 소리에 대한 사운드 스트림을 캡처하여 출력 정보로 생성하고, 상기 출력 정보를 포함하는 메시지를 스트림 형태로 서버(예: 도 2b의 서버(410))로 전송하면, 상기 서버는 상기 출력 정보를 포함하는 메시지를 상기 전자 장치(301)로 전송할 수 있다. 상기 전자 장치(301)의 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 수신된 출력 정보를 기반으로, 상기 가상 외부 전자 장치의 디스플레이 영역에 텍스처 맵핑을 수행하여 가상 외부 전자 장치의 디스플레이에 전화 수신을 알리는 전화 수신 화면을 표시하고, 상기 전자 장치의 스피커를 통해 전화 수신을 알리는 벨 소리를 출력함에 따라, 사용자는 가상 환경에서 실 세계의 외부 전자 장치에 전화가 수신되고 있는 상태임을 알 수 있다. For example, when a call is received from an external electronic device in the real world (eg, the external electronic device 310 of FIG. 2B ), the external electronic device provides a frame buffer for a call reception screen and a sound stream for a ringtone. When capturing and generating output information and transmitting a message including the output information in a stream form to a server (eg, the server 410 of FIG. 2B ), the server transmits a message including the output information to the electronic device ( 301). In the mode (eg, the first mode), the processor 320 of the electronic device 301 performs texture mapping on the display area of the virtual external electronic device based on the received output information to perform texture mapping on the virtual external electronic device. As a call reception screen notifying the reception of a call is displayed on the display of the electronic device and a bell sound announcing the reception of a call is output through the speaker of the electronic device, the user receives a call from an external electronic device in the real world in a virtual environment It can be seen that there is a state

상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 사용자의 제스처에 의해 통화 버튼이 입력(또는 터치)되는 입력 이벤트를 검출하면, 상기 통화 버튼의 입력과 관련된 입력 정보를 생성하고, 상기 생성된 입력 정보를 포함하는 메시지를 상기 서버를 통해 상기 외부 전자 장치로 전송할 수 있다.The processor 320, in the mode (eg, the first mode), when detecting an input event in which a call button is input (or touched) by a user's gesture, generates input information related to the input of the call button, , A message including the generated input information may be transmitted to the external electronic device through the server.

상기 외부 전자 장치는, 상기 수신된 입력 정보를 기반으로, 상기 외부 전자 장치의 통화 버튼이 입력된 통화 상태로 전환하고, 상기 통화 연결상태 화면에 대한 프레임 버퍼를 캡처하여 출력 정보로 생성하고, 상기 출력 정보를 포함하는 메시지를 스트림 형태로 상기 서버로 전송하면, 상기 서버는 상기 출력 정보를 포함하는 메시지를 상기 전자 장치(301)로 전송할 수 있다. 상기 전자 장치(301)의 상기 프로세서(320)는, 상기 모드(예: 제1 모드)에서, 상기 수신된 출력 정보를 기반으로, 상기 가상 외부 전자 장치의 디스플레이 영역에 텍스처 맵핑을 수행하여 가상 외부 전자 장치의 디스플레이의 화면에 통화 연결 상태를 알리는 통화 연결 화면을 표시함에 따라, 사용자는 가상 환경에서 실 세계의 외부 전자 장치에 통화가 연결된 상태임을 알 수 있다. 이후 상기 외부 전자 장치에서는 상기 외부 전자 장치의 스피커를 출력되는 발신자의 음성에 대한 사운드 스트림을 캡쳐한 출력 정보를 상기 서버를 통해 상기 전자 장치(301)로 전송하고, 상기 전자 장치(301)는 상기 전자 장치의 마이크를 통해 입력되는 사용자의 음성에 대한 사운드 스트림을 캡처한 출력 정보를 상기 서버를 통해 상기 외부 전자 장치로 전송함에 따라, 사용자는 가상 환경에서 가상 외부 전자 장치를 이용하여 통화를 수행할 수 있다. The external electronic device, based on the received input information, converts to a call state in which a call button of the external electronic device is input, captures a frame buffer for the call connection state screen, and generates output information; When a message including the output information is transmitted to the server in the form of a stream, the server may transmit the message including the output information to the electronic device 301 . In the mode (eg, the first mode), the processor 320 of the electronic device 301 performs texture mapping on the display area of the virtual external electronic device based on the received output information to perform texture mapping on the virtual external electronic device. As a call connection screen indicating a call connection state is displayed on the display screen of the electronic device, the user can know that a call is connected to an external electronic device in the real world in the virtual environment. Thereafter, the external electronic device transmits output information obtained by capturing a sound stream of a caller's voice output through a speaker of the external electronic device to the electronic device 301 through the server, and the electronic device 301 transmits the output information to the electronic device 301 through the server. As the output information obtained by capturing the sound stream of the user's voice input through the microphone of the electronic device is transmitted to the external electronic device through the server, the user can make a call using the virtual external electronic device in a virtual environment. can

다양한 실시 예들에 따르면, 프로세서(320)는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서 실 세계에 존재하는 적어도 하나의 외부 전자 장치와 대응되는 가상 외부 전자 장치의 생성을 위한 정보(예: 외부 전자 장치의 외형 정보 및 기능 정보)를 생성하고, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(301)에 대응되게 반영할 수 있는 가상 외부 전자 장치 제어 모듈을 포함하거나, 상기 가상 외부 전자 장치 제어 모듈이 소프트웨어 모듈로써 메모리(330)에 저장되어 상기 프로세서(320)의 제어 하에 동작하거나, 또는 별도로 전자 장치(301)에 구성될 수 있다. 상기 가상 외부 전자 장치의 제어 모듈의 구성은 하기 도 4에서 상세히 설명할 수 있다.According to various embodiments, the processor 320 may register a virtual external electronic device corresponding to at least one external electronic device existing in the real world in a mode (eg, a second mode) capable of registering an external electronic device in a virtual environment. Manipulation of the virtual external electronic device displayed in a mode (eg, the first mode) capable of generating information (eg, external electronic device appearance information and function information) for generation and controlling the external electronic device in a virtual environment. A virtual external electronic device control module capable of reflecting information correspondingly to the external electronic device 301 is included, or the virtual external electronic device control module is stored as a software module in the memory 330 to control the processor 320 It may operate under, or may be separately configured in the electronic device 301. The configuration of the control module of the virtual external electronic device can be described in detail with reference to FIG. 4 below.

다양한 실시 예들에 따르면, 메모리(330)는, 도 1의 메모리(130)와 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the memory 330 may be implemented substantially the same as or similar to the memory 130 of FIG. 1 .

일 실시 예에 따르면, 상기 메모리(330)에 적어도 하나의 외부 전자 장치의 식별 정보와 상기 적어도 하나의 외부 전자 장치의 식별 정보에 대응되는 외부 전자 장치의 외형 정보 및 기능 정보가 저장될 수 있다.According to an embodiment, identification information of at least one external electronic device and external information and function information of the external electronic device corresponding to the identification information of the at least one external electronic device may be stored in the memory 330 .

다양한 실시 예들에 따르면, 메모리(360)는, 도 1의 디스플레이(360)와 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the memory 360 may be implemented substantially the same as or similar to the display 360 of FIG. 1 .

일 실시 예에 따르면, 디스플레이(360)를 통해 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 적어도 하나의 가상 외부 전자 장치를 표시할 수 있다.According to an embodiment, in a first mode capable of controlling an external electronic device in a virtual environment through the display 360, at least one virtual external electronic device may be displayed.

다양한 실시 예들에 따르면, 센서 모듈(376)는, 도 1의 센서모듈(376)과 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the sensor module 376 may be implemented substantially the same as or similar to the sensor module 376 of FIG. 1 .

일 실시 예에 따르면, 상기 센서 모듈(376)는, 각도 센서, 기울기 센서, 가속도 센서, 지자기 센서, 자이로 센서, 모션 센서, 중력 센서 및 근접 센서등을 포함할 수 있다. According to an embodiment, the sensor module 376 may include an angle sensor, a tilt sensor, an acceleration sensor, a geomagnetic sensor, a gyro sensor, a motion sensor, a gravity sensor, and a proximity sensor.

일 실시 예에 따르면, 상기 센서 모듈(376)은, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 3차원 객체 인식 및/또는 스캐닝(3D Recognition/Scanning) 기술을 이용하여 가상 외부 전자 장치의 외형 정보의 생성하기 위해, 실 세계의 외부 전자 장치를 검출할 수 있다.According to an embodiment, the sensor module 376 performs 3D object recognition and/or scanning (3D Recognition/Scanning) technology in a mode (eg, second mode) capable of registering an external electronic device in a virtual environment. An external electronic device in the real world may be detected in order to generate appearance information of a virtual external electronic device using .

다양한 실시 예들에 따르면, 카메라 모듈(380)는, 도 1의 디스플레이 모듈(180)과 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the camera module 380 may be implemented substantially the same as or similar to the display module 180 of FIG. 1 .

일 실시 예에 따르면, 상기 카메라 모듈(380)은, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 3차원 객체 인식 및/또는 스캐닝(3D Recognition/Scanning) 기술을 이용하여 가상 외부 전자 장치의 외형 정보의 생성하기 위해, 실 세계의 외부 전자 장치를 검출할 수 있다.According to an embodiment, the camera module 380 performs 3D object recognition and/or scanning (3D Recognition/Scanning) technology in a mode (eg, second mode) capable of registering an external electronic device in a virtual environment. An external electronic device in the real world may be detected in order to generate appearance information of a virtual external electronic device using .

다양한 실시 예들에 따르면, 통신 모듈(390)은, 도 1의 통신 모듈(190)과 실질적으로 동일하거나 유사하게 구현될 수 있으며, 서로 다른 통신 기술을 사용하는 복수의 통신 회로를 포함할 수 있다. According to various embodiments, the communication module 390 may be implemented substantially the same as or similar to the communication module 190 of FIG. 1 and may include a plurality of communication circuits using different communication technologies.

일 실시 예에 따르면, 상기 통신 모듈(390)는, 복수의 통신 회로를 포함할 수 있으며, 무선랜 모듈(미도시)과 근거리통신 모듈(미도시) 중 적어도 하나를 포함할 수 있으며, 상기 근거리통신 모듈(미도시)로 UWB 통신 모듈, Wi-Fi 통신 모듈, NFC(near field communication) 통신 모듈, 블루투스 레거시(Legacy) 통신 모듈 및/또는 BLE(bluetooth low energy) 통신 모듈을 포함할 수 있다.According to an embodiment, the communication module 390 may include a plurality of communication circuits, and may include at least one of a wireless LAN module (not shown) and a short-range communication module (not shown), and the short-range The communication module (not shown) may include a UWB communication module, a Wi-Fi communication module, a near field communication (NFC) communication module, a Bluetooth legacy communication module, and/or a bluetooth low energy (BLE) communication module.

도 4는 다양한 실시 예들에 따른 전자 장치의 가상 외부 전자 장치 제어 모듈의 블록도(400)이다. 4 is a block diagram 400 of a virtual external electronic device control module of an electronic device according to various embodiments.

상기 도 4를 참조하면, 상기 가상 외부 전자 장치 제어 모듈(401)은, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서 실 세계에 존재하는 적어도 하나의 외부 전자 장치와 대응되는 가상 외부 전자 장치의 생성을 위한 정보(예: 외부 전자 장치의 외형 정보 및 기능 정보)를 생성하고, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(301)에 대응되게 반영할 수 있다. 상기 가상 외부 전자 장치 제어 모듈(401)은, 프로세서(예: 도 3의 프로세서(320))에 포함되거나, 소프트웨어로써 메모리(예: 도 3의 메모리(330))에 저장되거나, 또는 전자 장치(예: 도 3의 301))에 별도로 구성될 수 있다. 상기 가상 외부 전자 장치 제어 모듈(401)은, 객체 검출부(411), 제스처 검출부(413), 물리 엔진부(415), 기능 관리부(417), 렌더링 처리부(419), 및 정보 수신부(421)를 포함할 수 있다.Referring to FIG. 4 , the virtual external electronic device control module 401 controls at least one external electronic device existing in the real world in a mode (eg, second mode) capable of registering an external electronic device in a virtual environment. Information for generating a virtual external electronic device corresponding to (eg, appearance information and function information of the external electronic device) is generated and displayed in a mode (eg, first mode) capable of controlling the external electronic device in a virtual environment. Operation information of a virtual external electronic device to be used may be reflected correspondingly to the external electronic device 301 . The virtual external electronic device control module 401 is included in a processor (eg, the processor 320 of FIG. 3 ), stored as software in a memory (eg, the memory 330 of FIG. 3 ), or an electronic device ( Example: 301) of FIG. 3 may be configured separately. The virtual external electronic device control module 401 includes an object detection unit 411, a gesture detection unit 413, a physical engine unit 415, a function management unit 417, a rendering processing unit 419, and an information receiving unit 421. can include

다양한 실시 예들에 따르면, 외형 검출부(shape detector)(411)는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 실 세계의 외부 전자 장치와 대응되는 가상 외부 전자 장치를 가상 환경에서 제공하기 위한 외부 전자 장치의 외형 정보를 생성하여 메모리(예: 도 3의 메모리(330))에 저장하거나 또는 서버(예: 도 2b의 서버(410))로 전송할 수 있다.According to various embodiments, the shape detector 411 may register a virtual external electronic device corresponding to an external electronic device in the real world in a mode (eg, a second mode) capable of registering an external electronic device in a virtual environment. Appearance information of an external electronic device for providing a device in a virtual environment may be generated and stored in a memory (eg, the memory 330 of FIG. 3 ) or transmitted to a server (eg, the server 410 of FIG. 2B ).

일 실시 예에 따르면, 상기 외형 검출부(shape detector)(411)는, 상기 모드(예: 제2 모드)에서, 3차원 객체 인식 및/또는 스캐닝(3D Recognition/Scanning) 기술을 이용하여 카메라 모듈(도 3의 카메라 모듈(380)) 및/또는 센서 모듈(예: 도 3의 센서 모듈(376))을 통해 검출된 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))에 대한 영상 데이터 및/또는 센서 데이터를 분석할 수 있다. 상기 외형 검출부(411)는, 상기 분석된 데이터를 기반으로 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 생성하고, 상기 생성된 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 외부 전자 장치의 외형 정보로 생성할 수 있다.According to one embodiment, the shape detector 411, in the mode (eg, the second mode), uses a 3D object recognition and / or scanning (3D Recognition / Scanning) technology to the camera module ( To an external electronic device (eg, the external electronic device 310 of FIGS. 2A and 2B ) detected through the camera module 380 of FIG. 3 ) and/or a sensor module (eg, the sensor module 376 of FIG. 3 ) Image data and/or sensor data may be analyzed. The appearance detection unit 411 generates 3D coordinate information, texture and shader data based on the analyzed data, and generates the generated 3D coordinate information, texture and shader data as appearance information of an external electronic device. can

다양한 실시 예들에 따르면, 제스처 검출부(413)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 카메라 모듈(도 3의 카메라 모듈(380)) 및/또는 센서 모듈(예: 도 3의 센서 모듈(376))을 통해 사용자의 제스처를 인식하는 기능을 수행할 수 있다.According to various embodiments, the gesture detection unit 413 may control a camera module (the camera module 380 of FIG. 3 ) and/or a sensor in a mode capable of controlling an external electronic device in a virtual environment (eg, the first mode). A function of recognizing a user's gesture may be performed through a module (eg, the sensor module 376 of FIG. 3 ).

일 실시 예에 따르면, 상기 제스처 검출부(413)는, 상기 모드(예: 제1 모드)에서, 카메라 모듈(도 3의 카메라 모듈(380)) 및/또는 센서 모듈(예: 도 3의 센서 모듈(376))을 통해 제스처가 수행되는 사용자 신체 일부(예: 손)의 위치정보를 확인하고, 상기 확인된 위치정보를 가상 환경에서의 위치 정보로 변환하여, 실 세계에서의 사용자 제스처를 가상 환경에서의 제스처로 전환할 수 있다. According to one embodiment, the gesture detection unit 413, in the mode (eg, the first mode), a camera module (eg, the camera module 380 of FIG. 3) and/or a sensor module (eg, the sensor module of FIG. 3) (376)) to determine the location information of the user's body part (e.g., hand) where the gesture is performed, convert the checked location information into location information in the virtual environment, and convert the user's gesture in the real world to the virtual environment. You can switch to gestures in .

다양한 실시 예들에 따르면, 물리 엔진부(415)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 실 세계의 사용자 제스처를 가상 환경에 반영하는 기능을 수행할 수 있다.According to various embodiments, the physics engine unit 415 may perform a function of reflecting a user gesture in the real world to the virtual environment in a mode capable of controlling an external electronic device in a virtual environment (eg, a first mode). can

일 실시 예에 따르면, 상기 물리 엔진부(415)는, 상기 제스처 검출부(143)에서 검출한 가상 환경에서의 사용자 제스처를 가상 환경에서 표시되는 가상 외부 전자 장치에 대한 물리적일 동작(예: 버튼 입력)으로 반영하는 기능을 수행할 수 있다.According to an embodiment, the physical engine unit 415 uses the user's gesture in the virtual environment detected by the gesture detection unit 143 to perform a physical operation (eg, button input) on a virtual external electronic device displayed in the virtual environment. ) can perform the reflecting function.

다양한 실시 예들에 따르면, 기능 관리부(417)는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 실 세계의 외부 전자 장치와 대응되는 가상 외부 전자 장치를 가상 환경에서 제공하기 위한 외부 전자 장치의 기능 정보를 생성하여 메모리(예: 도 3의 메모리(330))에 저장하거나 또는 서버(예: 도 2b의 서버(410))로 전송할 수 있다.According to various embodiments of the present disclosure, the function manager 417, in a mode capable of registering an external electronic device in a virtual environment (eg, the second mode), stores a virtual external electronic device corresponding to an external electronic device in the real world in a virtual environment. Functional information of an external electronic device to be provided in may be generated and stored in a memory (eg, the memory 330 of FIG. 3 ) or transmitted to a server (eg, the server 410 of FIG. 2B ).

일 실시 예에 따르면, 상기 기능 관리부(417)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서 표시되는 가상 외부 전자 장치에서 입력 이벤트를 검출하면 입력 정보를 생성하고, 상기 생성된 입력 정보를 포함하는 메시지를 생성하여 상기 외부 전자 장치로 전송할 수 있다.According to an embodiment, the function management unit 417 generates input information when an input event is detected in a virtual external electronic device displayed in a mode capable of controlling an external electronic device in a virtual environment (eg, a first mode). And, a message including the generated input information may be generated and transmitted to the external electronic device.

다양한 실시 예들에 따르면, 렌더링 처리부(419)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 상기 외형 검출부(411)에서 생성한 외부 전자 장치의 외형 정보와 기능 관리부(415)에서 생성한 외부 전자 장치의 기능을 정보를 기반으로 가상 외부 전자 장치를 렌더링하여 표시할 수 있다. According to various embodiments, the rendering processing unit 419 may, in a mode capable of controlling the external electronic device in a virtual environment (eg, the first mode), generate external electronic device information and A function of the external electronic device created by the function management unit 415 may be rendered and displayed as a virtual external electronic device based on information.

일 실시 예에 따르면, 렌더링 처리부(419)는, 상기 제1 모드에서, 상기 외부 전자 장치의 외형 정보 및 상기 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 외부 전자 장치(310)와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the rendering processing unit 419, in the first mode, uses a rendering technology (eg, graphic processing )), a virtual external electronic device similar to the external electronic device 310 in the real world may be rendered and displayed.

일 실시 예에 따르면, 렌더링 처리부(419)는, 상기 제1 모드에서, 3D API(DirectX, OpenGL, Vulkan, Metal)를 사용하며, 외형 검출부(Shape Detector)(411)에서 생성한 외형 정보를 기반으로 메쉬 구성, 텍스처 맵핑 등과 같은 렌더링 과정을 통해 수행할 수 있다. 상기 렌더링된 가상 외부 전자 장치는 전자 장치(예: 사용자가 착용중인 HMD(Head Mount Device))를 통해 출력되어 사용자가 시각적으로 볼 수 있다. According to an embodiment, the rendering processing unit 419 uses a 3D API (DirectX, OpenGL, Vulkan, Metal) in the first mode, and based on the shape information generated by the shape detector 411 This can be done through rendering processes such as mesh construction and texture mapping. The rendered virtual external electronic device is output through an electronic device (eg, a head mount device (HMD) worn by the user) so that the user can visually see it.

일 실시 예에 따르면, 렌더링 처리부(419)는, 가상 외부 전자 장치를 시각적 출력하는 것 외에도 전자 장치의 스피커를 통해 사운드를 출력해 주고, 상기 전자 장치와 연동되는 장갑형 및/ 또는 피복형 촉감장치를 통해 촉각적으로 사용자에게 전달할 수 있다.According to an embodiment, the rendering processing unit 419, in addition to visually outputting the virtual external electronic device, outputs "sound" through the speaker of the electronic device, and creates a "glove-type" and/or "cloth-type" tactile device that interlocks with the electronic device. Through this,   can be conveyed to the user tactilely.

일 실시 예에 따르면, 렌더링 처리부(419)는, 상기 제1 모드에서, 상기 기능 관리부에서 생성한 외부 전자 장치의 기능 정보를 기반으로, 가상 환경에서의 상호작용에 따라 객체(예: 가상 외부 전자 장치에서 입력 이벤트가 검출되는 영역)의 좌표 값, 색상 및/또는 빛 등을 계산하여 3D 연산의 인자(Parameter)로 가상 외부 전자 장치의 렌더링에 반영할 수 있다.According to an embodiment, the rendering processor 419, in the first mode, based on the function information of the external electronic device generated by the function management unit, according to the interaction in the virtual environment object (eg, virtual external electronic device) A coordinate value, color, and/or light of an area where an input event is detected in a device) may be calculated and reflected in rendering of a virtual external electronic device as a parameter of 3D operation.

다양한 실시 예들에 따르면, 정보 수신부(421)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 실 세계의 외부 전자 장치로부터 수신되는 출력 정보(예: 화면 데이터 및/또는 사운드 데이터) 수신하는 기능을 수행할 수 있다.According to various embodiments, the information receiving unit 421 may receive output information (eg, screen data) received from an external electronic device in the real world in a mode (eg, a first mode) capable of controlling an external electronic device in a virtual environment. and/or sound data) may perform a function of receiving.

일 실시 예에 따르면, 정보 수신부(421)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 수신되는 상기 출력 정보를 기반으로, 가상 외부 전자 장치의 디스플레이 영역에 상기 외부 전자 장치의 디스플레이의 화면과 대응되는(또는 동일한) 화면을 출력하고, 상기 외부 전자 장치에서 출력된 동일한 (또는 유사한) 사운드를 출력하도록 제어할 수 있다.According to an embodiment, the information receiving unit 421 displays the external electronic device in a display area of a virtual external electronic device based on the output information received from the external electronic device in the mode (eg, the first mode). It can be controlled to output a screen corresponding to (or the same as) the screen of the display of and to output the same (or similar) sound output from the external electronic device.

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

상기 도 5를 참조하면, 다양한 실시 예들에 따르면, 외부 전 장치(501)(예: 도 1의 전자 장치(101) 및/또는 도 2a 내지 도 2b의 외부 전자 장치(310))는, 프로세서(520), 메모리(530), 디스플레이(560), 및 통신 모듈(590)을 포함할 수 있다. Referring to FIG. 5, according to various embodiments, an external electronic device 501 (eg, the electronic device 101 of FIG. 1 and/or the external electronic device 310 of FIGS. 2A to 2B) may include a processor ( 520), a memory 530, a display 560, and a communication module 590.

다양한 실시 예들에 따르면, 프로세서(520)는, 전자 장치(예: 도 2a 내지 도 2b의 전자 장치(210) 또는 도 3의 전자 장치(301))의 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드), 또는 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서 전자 장치(예: 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))의 요청을 기반으로, 외부 전자 장치의 식별 정보 또는 상기 외부 전자 장치의 식별 정보, 외형 정보 및 기능 정보를 상기 전자 장치로 전송할 수 있다.According to various embodiments, the processor 520 may control an external electronic device in a virtual environment of an electronic device (eg, the electronic device 210 of FIGS. 2A to 2B or the electronic device 301 of FIG. 3 ). The electronic device (eg, the electronic device 210 of FIGS. 2A to 2B ) and/or the electronic device (eg, the electronic device 210 of FIGS. Based on the request of the electronic device 301 in Step 3, identification information of the external electronic device or identification information, appearance information, and function information of the external electronic device may be transmitted to the electronic device.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 모드(예: 제1 모드 또는 제2 모드)에서, 통신 모듈(590)의 근거리 통신을 기반으로 상기 전자 장치와 통신이 연결된 상태에서, 상기 전자 장치로 정보(예: 외부 전자 장치의 식별 정보 또는 상기 외부 전자 장치의 식별 정보, 외형 정보 및 기능 정보)를 전송할 수 있다.According to an embodiment, the processor 520, in the mode (eg, the first mode or the second mode), in a state in which communication is connected with the electronic device based on short-range communication of the communication module 590, Information (eg, identification information of the external electronic device or identification information of the external electronic device, appearance information, and function information) may be transmitted to the electronic device.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 모드(예: 제1 모드 또는 제2 모드)에서, 통신 모듈(290)의 근거리 통신을 기반으로 상기 전자 장치와 통신이 연결되지 않은 상태에서, 서버(예: 도 2b의 서버(410))를 통해 상기 전자 장치로 정보(예: 외부 전자 장치의 식별 정보 또는 상기 외부 전자 장치의 식별 정보, 외형 정보 및 기능 정보)를 전송할 수 있다.According to an embodiment, the processor 520, in the mode (eg, the first mode or the second mode), based on the short-range communication of the communication module 290 in a state in which communication with the electronic device is not connected , Information (eg, identification information of an external electronic device or identification information of the external electronic device, appearance information, and function information) may be transmitted to the electronic device through a server (eg, the server 410 of FIG. 2B ).

다양한 실시 예들에 따르면, 프로세서(520)는, 전자 장치(예: 도 2a 내지 도 2b의 전자 장치(210) 또는 도 3의 전자 장치(301))의 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서 표시되는 가상 외부 전자 장치의 조작 정보를 외부 전자 장치(501)에 대응되게 반영할 수 있도록 상기 전자 장치와 정보(예: 입력 정보 및/또는 출력 정보)를 송수신 할 수 있다.According to various embodiments, the processor 520 may control an external electronic device in a virtual environment of an electronic device (eg, the electronic device 210 of FIGS. 2A to 2B or the electronic device 301 of FIG. 3 ). Transmits and receives information (eg, input information and/or output information) with the electronic device so that operation information of the virtual external electronic device displayed in the mode (eg, first mode) can be reflected correspondingly to the external electronic device 501 can do.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 외부 전자 장치(501)에 이벤트가 발생되어 상기 외부 전자 장치의 상태가 변경되면, 상기 변경된 외부 전자 장치의 상태와 관련된 상기 출력 정보를 생성하여 상기 전자 장치로 전송할 있다. According to an embodiment, when an event occurs in the external electronic device 501 and the state of the external electronic device is changed, the processor 520 generates the output information related to the changed state of the external electronic device, It can be transmitted to the electronic device.

예를 들어, 상기 프로세서(520)는, 상기 외부 전자 장치(501)에 전화 수신 이벤트의 발생을 검출하고, 상기 전화 수신 이벤트에 따라 상기 외부 전자 장치의 디스플레이(560)에 표시되는 전화 수신 화면에 대한 프레임 버퍼와 전환 수신을 알리는 벨소리에 대한 사운드 스트림을 캡처하여 출력정보로 생성하고, 상기 생성된 출력 정보를 포함하는 메시지를 상기 전자 장치로 전송할 수 있다.For example, the processor 520 detects the occurrence of a call reception event in the external electronic device 501, and displays a call reception screen displayed on the display 560 of the external electronic device according to the call reception event. A frame buffer for a frame buffer and a sound stream for a ring tone indicating conversion reception may be captured and generated as output information, and a message including the generated output information may be transmitted to the electronic device.

일 실시 예에 따르면, 상기 프로세서(520)는, 상기 전자 장치로부터 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송할 수 있다.According to an embodiment, when input information is received from the electronic device, the processor 520 performs a function corresponding to the input information, and the external electronic device changed according to the execution of the function corresponding to the input information. State-related output information may be transmitted to the electronic device.

예를 들어, 상기 프로세서(520)는, 상기 전자 장치로부터 통화 버튼을 입력과 관련된 입력 정보를 수신하면, 상기 외부 전자 장치의 통화 버튼이 입력된 통화 상태로 전환하고, 상기 통화 연결상태 화면에 대한 프레임 버퍼를 캡처하여 출력 정보로 생성하고, 상기 출력 정보를 포함하는 메시지를 스트림 형태로 상기 전자 장치(301)로 전송할 수 있다. For example, when the processor 520 receives input information related to inputting a call button from the electronic device, the processor 520 switches to a call state in which the call button of the external electronic device has been input, and displays information on the call connection state screen. A frame buffer may be captured, generated as output information, and a message including the output information may be transmitted to the electronic device 301 in the form of a stream.

일 실시 예에 따르면, 상기 프로세서(520)는, 통신 모듈(590)의 근거리 통신을 기반으로 상기 전자 장치와 통신이 연결된 상태에서, 상기 전자 장치와 정보(예: 입력 정보 및/또는 출력 정보)를 포함하는 메시지를 송수신할 수 있다.According to an embodiment, the processor 520, in a state in which communication with the electronic device is connected based on short-range communication of the communication module 590, information (eg, input information and/or output information) with the electronic device It is possible to transmit and receive messages including.

일 실시 예에 따르면, 상기 프로세서(520)는, 통신 모듈(590)의 근거리 통신을 기반으로 상기 전자 장치와 통신이 연결되지 않은 상태에서, 서버(예: 도 2b의 서버(410))를 통해 상기 전자 장치와 정보(예: 입력 정보 및/또는 출력 정보)를 포함하는 메시지를 송수신할 수 있다.According to an embodiment, the processor 520, in a state in which communication with the electronic device is not connected based on short-range communication of the communication module 590, through a server (eg, the server 410 of FIG. 2B) A message including information (eg, input information and/or output information) may be transmitted and received with the electronic device.

다양한 실시 예들에 따르면, 메모리(530)는, 도 1의 메모리(130)와 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the memory 530 may be implemented substantially the same as or similar to the memory 130 of FIG. 1 .

일 실시 예에 따르면, 상기 메모리(530)는, 외부 전자 장치의 식별 정보보가 저장될 수 있다.According to an embodiment, the memory 530 may store identification information of an external electronic device.

일 실시 예에 따르면, 상기 메모리(530)는, 외부 전자 장치의 식별 정보, 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보가 저장될 수 있다.According to an embodiment, the memory 530 may store identification information of the external electronic device, external information of the external electronic device, and function information of the external electronic device.

다양한 실시 예들에 따르면, 디스플레이(560)는, 도 1의 디스플레이(360)와 실질적으로 동일하거나 유사하게 구현될 수 있다.According to various embodiments, the display 560 may be implemented substantially the same as or similar to the display 360 of FIG. 1 .

일 실시 예에 따르면, 상기 디스플레이(560)를 통해 외부 전자 장치(501)에서 발생되는 이벤트에 대응되는 화면이 표시될 수 있다.According to an embodiment, a screen corresponding to an event occurring in the external electronic device 501 may be displayed through the display 560 .

다양한 실시 예들에 따르면, 통신 모듈(590)은, 도 1의 통신 모듈(190)과 실질적으로 동일하거나 유사하게 구현될 수 있으며, 서로 다른 통신 기술을 사용하는 복수의 통신 회로를 포함할 수 있다. According to various embodiments, the communication module 590 may be implemented substantially the same as or similar to the communication module 190 of FIG. 1 and may include a plurality of communication circuits using different communication technologies.

일 실시 예에 따르면, 상기 통신 모듈(590)는, 복수의 통신 회로를 포함할 수 있으며, 무선랜 모듈(미도시)과 근거리통신 모듈(미도시) 중 적어도 하나를 포함할 수 있으며, 상기 근거리통신 모듈(미도시)로 UWB 통신 모듈, Wi-Fi 통신 모듈, NFC(near field communication) 통신 모듈, 블루투스 레거시(Legacy) 통신 모듈 및/또는 BLE(bluetooth low energy) 통신 모듈을 포함할 수 있다.According to an embodiment, the communication module 590 may include a plurality of communication circuits, and may include at least one of a wireless LAN module (not shown) and a short-distance communication module (not shown). The communication module (not shown) may include a UWB communication module, a Wi-Fi communication module, a near field communication (NFC) communication module, a Bluetooth legacy communication module, and/or a bluetooth low energy (BLE) communication module.

도 6은 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치의 외형 정보를 생성하는 동작을 설명하기 위한 도면(600)이다.FIG. 6 is a diagram 600 for explaining an operation of generating outer shape information of an external electronic device in an electronic device according to various embodiments of the present disclosure.

상기 도 6을 참조하면, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 상기 전자 장치(210)의 카메라 모듈(예: 도 3의 카메라 모듈(380))을 통해 실 세계의 외부 전자 장치(310)를 검출하면, 3차원 객체 인식 및/또는 스캐닝(3D Recognition/Scanning) 기술을 이용하여 상기 검출된 외부 전자 장치(310))에 대한 영상 데이터 및/또는 센서 데이터를 분석할 수 있다. 상기 전자 장치(210)는, 상기 분석된 데이터를 기반으로 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 생성하고, 상기 생성된 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 외부 전자 장치의 외형 정보로 생성하여 상기 전자 장치의 메모리(예: 도 3의 메모리(230))에 저장할 수 있다.Referring to FIG. 6 , the electronic device 210 (eg, the electronic device 301 of FIG. 3 ), in a mode (eg, the second mode) capable of registering an external electronic device in a virtual environment, the electronic device When the external electronic device 310 in the real world is detected through the camera module (eg, the camera module 380 of FIG. 3) of 210, 3D object recognition and/or scanning (3D Recognition/Scanning) technology is used. Thus, image data and/or sensor data of the detected external electronic device 310 may be analyzed. The electronic device 210 generates 3D coordinate information, texture and shader data based on the analyzed data, and generates the 3D coordinate information, texture and shader data as external information of the external electronic device, It can be stored in the memory (eg, the memory 230 of FIG. 3) of the electronic device.

도 7은 다양한 실시 예들에 따른 전자 장치에서 가상환경에 가상 외부 전자 장치를 제공하는 동작을 설명하기 위한 도면(700)이다.7 is a diagram 700 for explaining an operation of providing a virtual external electronic device to a virtual environment in an electronic device according to various embodiments.

상기 도 7를 참조하면, 전자 장치(210)는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 적어도 하나의 외부 전자 장치를 포함하는 리스트에서 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 기반으로 가상 외부 전자 장치(711)를 렌더링하여 가상 환경을 제공하는 상기 전자 장치(210)의 디스플레이(760)에 표시할 수 있다.Referring to FIG. 7 , the electronic device 210 is selected by a user from a list including at least one external electronic device in a mode capable of controlling an external electronic device in a virtual environment (eg, a first mode). A virtual external electronic device 711 may be rendered based on the appearance information and function information of the external electronic device and displayed on the display 760 of the electronic device 210 providing the virtual environment.

상기 전자 장치(201)는, 상기 전자 장치(210)의 카메라 모듈(도 3의 카메라 모듈(380))를 통해 제스처가 수행되는 사용자 신체 일부(예: 손)의 위치정보를 확인하고, 상기 확인된 위치정보를 가상 환경에서의 위치 정보로 변환하여, 실 세계에서의 사용자 제스처(713)을 가상 환경에서의 사용자 제스처(713a)로 전환할 수 있다. 상기 전자 장치(210)는, 가상 환경에서의 사용자 제스처(713a)와 가상 외부 전자 장치(711)간의 물리적 상호 작용을 연산하고 상기 연산 결과를 반영하여 상기 가상 외부 전자 장치(711)에 렌더링을 수행하여 표시할 수 있다.The electronic device 201 checks the positional information of the user's body part (eg, hand) where the gesture is performed through the camera module (the camera module 380 of FIG. 3) of the electronic device 210, and checks the location information. The obtained location information may be converted into location information in the virtual environment, so that the user gesture 713 in the real world may be converted into a user gesture 713a in the virtual environment. The electronic device 210 calculates a physical interaction between the user gesture 713a in the virtual environment and the virtual external electronic device 711, reflects the result of the calculation, and renders the virtual external electronic device 711. can be displayed.

도 8은 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치로 전송하는 메시지 포맷을 도시한 도면(800)이다.8 is a diagram 800 illustrating a message format transmitted from an electronic device to an external electronic device according to various embodiments.

상기 도 8을 참조하면, 전자 장치(예: 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 사용자의 제스처를 기반으로 상기 가상 외부 전자 장치의 디스플레이 영역 또는 버튼 영역에 입력 이벤트(또는 터치 이벤트)의 발생을 검출하면, 입력의 종류, 입력의 위치 및 입력의 횟수와 지속시간을 포함하는 입력 정보를 포함하는 메시지(810)를 생성할 수 있다. 상기 메시지(810)의 헤더 영역(811)에는 복수의 헤더 정보(예: data link header(DH), network header(NH), transport header(TH), session header(SH) 및 physical header(PH))를 포활 수 있다. 상기 메시지(810)의 내용 영역(813)에는 입력 정보로써 입력 종류에 대한 정보(813a)와 입력의 위치, 및 입력의 횟수, 및 입력의 지속시간에 대한 정보(813b)를 포함할 수 있다. 상기 전자 장치는 상기 메시지(810)를 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))로 전송할 수 있다.Referring to FIG. 8, an electronic device (eg, the electronic device 210 of FIGS. 2A to 2B and/or the electronic device 301 of FIG. 3) may control an external electronic device in a virtual environment ( Example: In the first mode), when an input event (or touch event) is detected in the display area or button area of the virtual external electronic device based on the user's gesture, the type of input, the location of the input, and the number of inputs It is possible to generate a message 810 including input information including a time and a duration. A plurality of header information (eg, data link header (DH), network header (NH), transport header (TH), session header (SH), and physical header (PH)) is included in the header field 811 of the message 810. can capture. The content area 813 of the message 810 may include input type information 813a, input location, input frequency, and input duration information 813b. The electronic device may transmit the message 810 to an external electronic device (eg, the external electronic device 310 of FIGS. 2A and 2B).

도 9는 다양한 실시 예들에 따른 전자 장치에서 외부 전자 장치의 기능 정보를 생성하는 동작을 설명하기 위한 도면(900)이다.9 is a diagram 900 for explaining an operation of generating function information of an external electronic device in an electronic device according to various embodiments.

상기 도 9를 참조하면, 전자 장치(예: 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서, 상기 전자 장치에 포함된 그래픽 연산 장치(예: GPU(Graphic Process Unit))에 상기 외부 전자 장치의 외형 정보를 적용하여 가상 외부 전자 장치(911)를 렌더링 하여 표시하는 동안, 상기 가상 외부 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴(예: GUI 메뉴)(930)를 표시할 수 있다. Referring to FIG. 9, an electronic device (eg, the electronic device 210 of FIGS. 2A to 2B and/or the electronic device 301 of FIG. 3) may register an external electronic device in a virtual environment ( Example: In the second mode), a virtual external electronic device 911 is rendered and displayed by applying appearance information of the external electronic device to a graphic processing unit (eg, GPU (Graphic Process Unit)) included in the electronic device. During this time, a function setting menu (eg, GUI menu) 930 for setting functions of the virtual external electronic device may be displayed.

상기 전자 장치는, 상기 메뉴(930)에서 제공하는 기능들(예: 힌지 추가, 디스플레이 추가 및 버튼 추가) 중 힌지 추가 기능(931)이 사용자에 의해 선택된 이후, 상기 가상 외부 전자 장치에서 사용자의 동작(예: 드래그 동작)에 의해 설정된 힌지 영역(913)에 대한 크기 및/또는 위치 정보를 확인하면, 상기 힌지 기능 및 전자 장치의 폴딩 및 언폴딩을 수행할 수 있는 힌지 영역 정보를 생성할 수 있다. After the user selects the add hinge function 931 among the functions provided by the menu 930 (eg, add hinge, add display, and add buttons), the electronic device controls the user's operation in the virtual external electronic device. If size and/or location information on the hinge area 913 set by (eg, a drag operation) is checked, information on the hinge area that can perform the hinge function and folding/unfolding of the electronic device can be generated. .

상기 전자 장치는, 상기 메뉴(930)에서 제공하는 기능들(예: 힌지 추가, 디스플레이 추가 및 버튼 추가) 중 디스플레이 추가 기능(933)이 사용자에 의해 선택되면, 디스플레이의 화면 비율을 선택할 수 있는 서브 메뉴(933a)(예: 4:3비율 및 16:9 비율)을 제공할 수 있다. 상기 전자 장치는, 사용자에 의해 디스플레이 추가 기능(933)이 선택된 이후, 상기 가상 외부 전자 장치(911)에서 사용자의 동작(예: 드래그 동작)에 의해 설정된 디스플레이 영역(916)에 대한 크기 및/또는 위치 정보를 확인하면, 상기 디스플레이 기능 및 화면 출력을 위한 디스플레이의 영역정보를 외부 전자 장치의 기능 정보로 생성할 수 있다. When the user selects the display addition function 933 among the functions provided by the menu 930 (eg, adding a hinge, adding a display, and adding a button), the electronic device provides a sub screen for selecting the aspect ratio of the display. A menu 933a (eg, 4:3 ratio and 16:9 ratio) may be provided. After the display addition function 933 is selected by the user, the electronic device determines the size and/or size of the display area 916 set by the user's operation (eg, a drag operation) on the virtual external electronic device 911. When the location information is confirmed, the display function and area information of the display for screen output may be generated as function information of the external electronic device.

상기 전자 장치는, 상기 메뉴(930)에서 제공하는 기능들(예: 힌지 추가, 디스플레이 추가 및 버튼 추가) 중 버튼 추가 기능(935)이 사용자에 의해 선택되면, 버튼의 종류를 선택할 수 있는 서브 메뉴(935a)(예: 사운드 버튼 및 전원 버튼)을 제공할 수 있다. 상기 전자 장치는, 사용자에 의해 버튼 추가 기능(935)이 선택된 이후, 상기 가상 외부 전자 장치에서 사용자의 동작에 의해 설정된 버튼 영역(919)에 대한 크기 및/또는 위치 정보를 확인하면, 상기 버튼 기능 및 입력 이벤트(예: 터치 이벤트)의 출력을 위한 버튼 영역정보를 외부 전자 장치의 기능 정보로 생성할 수 있다. In the electronic device, when a button addition function 935 is selected by the user among the functions provided by the menu 930 (eg, adding a hinge, adding a display, and adding a button), a submenu capable of selecting the type of button 935a (eg, sound button and power button) may be provided. After the button addition function 935 is selected by the user, the electronic device checks the size and/or location information of the button area 919 set by the user's operation in the virtual external electronic device, the button function And button region information for outputting an input event (eg, a touch event) may be generated as function information of an external electronic device.

다양한 실시 예들에 따르면, 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템은, 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 전자 장치(예: 도 3의 전자 장치(301))및, 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 외부 전자 장치(예: 도 5의 전자 장치(501))를 포함할 수 있다.According to various embodiments of the present disclosure, a system capable of controlling an external electronic device in the real world in a virtual environment, in a first mode capable of controlling an external electronic device in a virtual environment, based on appearance information and function information of the external electronic device. A virtual external electronic device corresponding to the external electronic device is displayed, and when the occurrence of an input event is detected in the virtual external electronic device, input information related to the input event is transmitted to the external electronic device. When output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information is received from the virtual external electronic device, the state of the virtual external electronic device corresponds to the changed state of the external electronic device based on the output information. When receiving the input information from the electronic device (e.g., the electronic device 301 of FIG. 3) and the electronic device, the function corresponding to the input information is performed, and the function corresponding to the input information is performed. An external electronic device (eg, the electronic device 501 of FIG. 5 ) that transmits output information related to the state of the external electronic device changed according to the change to the electronic device may be included.

다양한 실시 예들에 따르면, 상기 전자 장치는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하고, 상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴를 표시하고, 상기 기능 설정 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위한 구성 요소가 위치된 영역 정보를 상기 기능 정보로 생성하고, 상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하도록 설정될 수 있다.According to various embodiments of the present disclosure, the electronic device recognizes the external electronic device in a second mode capable of registering the external electronic device in a virtual environment, and changes the appearance of the external electronic device based on the recognition of the external electronic device. information is generated, a virtual external electronic device generated based on the appearance information and a function setting menu capable of setting functions of the virtual electronic device are displayed, and the type of at least one function selected through the function setting menu and the The virtual external electronic device may be set to generate information about a region where a component for performing the at least one function is located as the function information, and to store the appearance information and the function information to match the external electronic device. .

다양한 실시 예들에 따르면, 상기 기능 설정 메뉴에 포함된 적어도 하나의 기능은, 상기 전자 장치에 미리 저장되거나, 또는 상기 외부 전자 장치로부터 수신하거나, 또는 서버로부터 수신하도록 설정될 수 있다.According to various embodiments, at least one function included in the function setting menu may be pre-stored in the electronic device, received from the external electronic device, or set to be received from a server.

다양한 실시 예들에 따르면, 상기 전자 장치는, 상기 제1 모드에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하도록 설정될 수 있다.According to various embodiments of the present disclosure, when the electronic device receives output information related to an event generated in the external electronic device from the external electronic device in the first mode, the electronic device changed to the occurrence of the event based on the output information. It may be set to change the state of the virtual external electronic device to correspond to the state of the external electronic device.

다양한 실시 예들에 따르면, 상기 외부 전자 장치는, 상기 외부 전자 장치에서 이벤트가 발생되어 상기 외부 전자 장치의 상태가 변경되면, 상기 변경된 외부 전자 장치의 상태와 관련된 상기 출력 정보를 생성하여 상기 전자 장치로 전송하도록 설정될 수 있다.According to various embodiments, when an event occurs in the external electronic device and the state of the external electronic device is changed, the external electronic device generates the output information related to the changed state of the external electronic device to the electronic device. can be set to transmit.

다양한 실시 예들에 따르면, 상기 전자 장치는, 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하도록 설정될 수 있다.According to various embodiments, when short-range communication is connected with the external electronic device, the electronic device may be set to transmit/receive information with the external electronic device based on the short-range communication connection.

다양한 실시 예들에 따르면, 상기 전자 장치는, 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하도록 설정될 수 있다.According to various embodiments, the electronic device may be set to transmit/receive information of the external electronic device through a server when short-range communication is not connected with the external electronic device.

다양한 실시 예들에 따르면, 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 전자 장치는, 카메라 모듈(예: 도 3의 카메라 모듈(380)), 및 프로세서(예: 도 3의 프로세서(320))를 포함하고, 상기 프로세서는, 가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하고, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하도록 설정될 수 있다.According to various embodiments, an electronic device capable of controlling an external electronic device in the real world in a virtual environment includes a camera module (eg, the camera module 380 of FIG. 3 ) and a processor (eg, the processor 320 of FIG. 3 ). )), wherein the processor displays a virtual external electronic device based on appearance information and function information of the external electronic device in a first mode capable of controlling the external electronic device in a virtual environment, and the virtual external electronic device is displayed. When the device detects the occurrence of an input event, it transmits input information related to the input event to an external electronic device, and the state of the external electronic device changed according to the execution of a function corresponding to the input information from the external electronic device. When output information is received, the state of the virtual external electronic device is displayed to correspond to the changed state of the external electronic device based on the output information, and output information related to an event generated in the external electronic device is displayed from the external electronic device. is received, it may be set to change the state of the virtual external electronic device to correspond to the state of the external electronic device changed based on the output information.

다양한 실시 예들에 따르면, 상기 프로세서는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 카메라 모듈을 통해 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하고, 상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 메뉴를 표시하고, 상기 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위해 선택될 기능의 위치를 상기 기능 정보로 생성하고, 상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하도록 설정될 수 있다.According to various embodiments of the present disclosure, in a second mode capable of registering an external electronic device in a virtual environment, the processor recognizes the external electronic device through the camera module, and the external electronic device is recognized based on the external electronic device. External appearance information of the electronic device is generated, a virtual external electronic device created based on the external appearance information and a menu capable of setting functions of the virtual electronic device are displayed, and the type of at least one function selected through the menu and the A location of a function to be selected to perform the at least one function in the virtual external electronic device may be generated as the function information, and the appearance information and the function information may be stored to match the external electronic device.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하고, 상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하도록 설정될 수 있다.According to various embodiments of the present disclosure, when the electronic device is in a short-range communication connection state with the external electronic device, the processor transmits and receives information with the external electronic device based on the short-range communication connection, and the electronic device communicates with the external electronic device. If the short-range communication is not connected with the device, it may be set to transmit and receive information of the external electronic device through a server.

도 10은 다양한 실시 예들에 따른 전자 장치에서 가상환경에서 가상 외부 전자 장치를 표시가 위한 정보를 생성 할 수 있는 동작을 설명하기 위한 흐름도(1000)이다. 상기 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작들은 1001동작 내지 1007동작을 포함할 수 있다. 일 실시 예에 따르면, 1001동작 내지 1007동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 10 is a flowchart 1000 illustrating an operation of generating information for displaying a virtual external electronic device in a virtual environment in an electronic device according to various embodiments. Operations capable of controlling an external electronic device in the real world in the virtual environment may include operations 1001 to 1007. According to an embodiment, at least one of operations 1001 to 1007 may be omitted, the order of some operations may be changed, or another operation may be added.

1001동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 등록할 수 있는 모드(예: 제2 모드)에서 실 세계의 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))를 검출할 수 있다.In operation 1001, an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 210 of FIGS. 2A to 2B , and/or the electronic device 301 of FIG. 3 ) operates an external electronic device in a virtual environment. In a registration mode (eg, the second mode), an external electronic device (eg, the external electronic device 310 of FIGS. 2A and 2B ) in the real world may be detected.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 카메라 모듈(예: 도 3의 카메라 모듈(380)) 또는/및 센서 모듈(예: 도 3의 센서 모듈(376))을 통해 상기 외부 전자 장치를 검출(또는 획득)할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the second mode), a camera module (eg, the camera module 380 of FIG. 3) or/and a sensor module (eg, the sensor module of FIG. 3 ( 376)) to detect (or obtain) the external electronic device.

1003동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))의 외형 정보를 생성하여 저장할 수 있다.In operation 1003, an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 210 of FIGS. 2A to 2B , and/or the electronic device 301 of FIG. 3 ), an external electronic device (eg, FIG. Appearance information of the external electronic device 310 of FIGS. 2A to 2B may be generated and stored.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 3차원 객체 인식 또는/및 스캐닝(3D Recognition/Scanning) 기술을 이용하여 상기 카메라 모듈 또는/및 상기 센서 모듈을 통해 검출된 상기 외부 전자 장치에 대한 영상 데이터 또는/및 센서 데이터를 분석하고, 상기 분석된 데이터를 기반으로 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 생성하고, 상기 생성된 3차원 좌표정보, 텍스처 및 쉐이더 데이터를 외부 전자 장치의 외형 정보로 생성할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the second mode), uses a 3D object recognition or/and scanning (3D Recognition/Scanning) technology to detect the camera module or/and the sensor module. image data or/and sensor data for the external electronic device detected through the analysis are analyzed, 3D coordinate information, texture and shader data are generated based on the analyzed data, and the generated 3D coordinate information, texture and Shader data may be generated as exterior information of an external electronic device.

1005동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))의 기능 정보를 저장할 수 있다.In operation 1005, the electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 210 of FIGS. 2A to 2B, and/or the electronic device 301 of FIG. Function information of the external electronic device 310 of FIGS. 2A to 2B may be stored.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 상기 전자 장치에 포함된 그래픽 연산 장치(예: GPU(Graphic Process Unit))에 상기 외부 전자 장치의 외형 정보를 적용하여 가상 외부 전자 장치를 렌더링 하여 표시하는 동안, 상기 가상 외부 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴(예: GUI 메뉴)를 표시할 수 있다. 상기 전자 장치는, 상기 기능 설정 메뉴를 통해 사용자에 의해 선택된 적어도 하나의 기능의 종류를 확인하고, 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위한 구성요소가 위치될 영역이 사용자에 의해 지정되면, 상기 기능의 종류 및 상기 기능 수행을 위한 구성요소의 영역정보를 외부 전자 장치의 기능 정보로 생성할 수 있다. According to an embodiment, in the mode (eg, the second mode), the electronic device transmits external appearance information of the external electronic device to a graphic processing unit (eg, a graphic processing unit (GPU)) included in the electronic device. While the virtual external electronic device is rendered and displayed, a function setting menu (eg, GUI menu) for setting functions of the virtual external electronic device may be displayed. The electronic device checks the type of at least one function selected by the user through the function setting menu, and determines an area where a component for performing the at least one function is located in the virtual external electronic device by the user. If designated, the type of function and region information of a component for performing the function may be generated as function information of the external electronic device.

1007동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 외부 전자 장치의 외형 정보 및 기능 정보를 가상 환경에서 외부 전자 장치와 대응되는 가상 외부 전자 장치를 표시하기 위한 정보로 저장할 수 있다.In operation 1007, the electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 210 of FIGS. 2A to 2B , and/or the electronic device 301 of FIG. 3 ) provides external information about the external electronic device and Function information may be stored as information for displaying a virtual external electronic device corresponding to an external electronic device in a virtual environment.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 상기 외부 전자 장치와 근거리 통신이 연결된 상태에서 상기 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보(예: 전자 장치의 id 고유 정보)를 수신하고, 상기 외부 전자 장치의 식별 정보에 매칭하여 상기 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(330)에 저장할 수 있다.According to an embodiment, in the mode (eg, the second mode), the electronic device receives identification information (eg, the electronic device) of the external electronic device from the external electronic device in a state in which short-range communication is connected with the external electronic device. ID unique information of the external electronic device may be received, and appearance information and function information of the external electronic device may be stored in the memory 330 by matching with the identification information of the external electronic device.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 상기 외부 전자 장치와 근거리 통신이 연결된 상태에서 상기 외부 전자 장치로부터 상기 외부 전자 장치의 식별 정보(예: 전자 장치의 id 정보), 외부 전자 장치의 외형 정보 및 외부 전자 장치의 기능 정보를 수신하고, 상기 외부 전자 장치의 식별 정보에 매칭하여 상기 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(330)에 저장할 수 있다.According to an embodiment, in the mode (eg, the second mode), the electronic device receives identification information (eg, the electronic device) of the external electronic device from the external electronic device in a state in which short-range communication is connected with the external electronic device. id information of the external electronic device), the external electronic device's appearance information and the function information of the external electronic device are received, and the external electronic device's appearance information and function information are stored in the memory 330 by matching with the identification information of the external electronic device. there is.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제2 모드)에서, 상기 외부 전자 장치의 식별 정보, 상기 외부 전자 장치의 외형 정보 및 기능 정보를 서버(예: 도 2b의 서버(410))로 전송할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the second mode), transmits identification information of the external electronic device, appearance information, and function information of the external electronic device to a server (eg, the server of FIG. 2B ( 410)).

도 11은 다양한 실시 예들에 따른 전자 장치에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도(1100)이다. 상기 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작들은 1101동작 내지 1113동작을 포함할 수 있다. 일 실시 예에 따르면, 1101동작 내지 1113동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 11 is a flowchart 1100 for explaining an operation for controlling an external electronic device in the real world in a virtual environment in an electronic device according to various embodiments. Operations capable of controlling an external electronic device in the real world in the virtual environment may include operations 1101 to 1113. According to an embodiment, at least one of operations 1101 to 1113 may be omitted, the order of some operations may be changed, or another operation may be added.

1101동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 외부 전자 장치의 외형 정보 및 기능 정보를 기반으로 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.In operation 1101, an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 210 of FIGS. 2A to 2B , and/or the electronic device 301 of FIG. 3 ) operates an external electronic device in a virtual environment. In a controllable mode (eg, the first mode), a virtual external electronic device may be rendered and displayed based on appearance information and function information of the external electronic device.

일 실시 예에 따르면, 상기 전자 장치는, 가상 현실(Virtual Reality, VR)실행을 위한 어플리케이션 또는 가상 현실(Virtual Reality, VR) 실행을 위한 어플리케이션을 실행하여 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)로 전환하고, 상기 모드(예: 제1 모드)에서 사용될 수 있는 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 검출할 수 있다.According to an embodiment, the electronic device may control an external electronic device in a virtual environment by executing an application for executing virtual reality (VR) or an application for executing virtual reality (VR). Mode (eg, first mode), and external electronic device selected by the user from a list including at least one external electronic device usable in the mode (eg, first mode) and function information are displayed. can be detected.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 메모리(예: 도 3의 메모리(330))에 저장된 적어도 하나의 외부 전자 장치들 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 상기 메모리에서 검출할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), is an external electronic device selected by a user from among at least one external electronic device stored in a memory (eg, the memory 330 of FIG. 3 ). Appearance information and function information of the device may be detected from the memory.

일 실시 예에 따르면, 상기 전자 장치, 상기 모드(예: 제1 모드)에서, 상기 메모리에 저장된 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 서버(예: 도 2b의 서버(410))에게 요청하여 상기 서버로부터 수신할 수 있다.According to an embodiment, in the electronic device and the mode (eg, the first mode), appearance information and function information of an external electronic device selected by a user from a list including at least one external electronic device stored in the memory are displayed. A request may be made to a server (eg, the server 410 of FIG. 2B ) and received from the server.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 외형 정보(예: 3차원 좌표정보, 텍스처 및 쉐이더 데이터) 및 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 상기 외부 전자 장치와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), external information (eg, 3D coordinate information, texture and shader data) and function information of the external electronic device A virtual external electronic device similar to the external electronic device in the real world may be rendered and displayed by reflecting the rendering technology (eg, graphic processing) constituting the virtual environment.

1103동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 가상 외부 전자 장치에서 입력 이벤트의 발생여부를 확인할 수 있다.In operation 1103, the electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 210 of FIGS. 2A to 2B, and/or the electronic device 301 of FIG. 3) receives an input event from the virtual external electronic device. occurrence can be confirmed.

상기 1103동작에서, 상기 전자 장치는, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 확인하면, 1105동작에서, 입력 이벤트와 관련된 입력 정보를 생성하고, 입력 정보를 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310))로 전송할 수 있다.In operation 1103, when the electronic device confirms the occurrence of an input event in the virtual external electronic device, in operation 1105, the electronic device generates input information related to the input event, and converts the input information to the external electronic device (eg, FIGS. 2A to 20). It can be transmitted to the external electronic device 310 of FIG. 2B.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 사용자의 제스처를 기반으로 상기 가상 외부 전자 장치의 디스플레이 영역 또는 버튼 영역에 입력 이벤트(또는 터치 이벤트) 의 발생(예: 전화통화를 위한 다이얼 버튼 입력 및/또는 통화 버튼 입력)을 검출하면, 입력의 종류, 입력의 위치 및 입력의 횟수와 지속시간을 포함하는 입력 정보를 생성하고, 상기 입력 정보를 포함하는 메시지를 외부 전자 장치로 전송할 수 있다. According to an embodiment, the electronic device generates an input event (or touch event) in a display area or a button area of the virtual external electronic device based on a user's gesture in the mode (eg, the first mode) Ex: Dial button input for phone call and/or call button input) is detected, input information including type of input, position of input, and number and duration of input is generated, and a message including the input information is generated. may be transmitted to an external electronic device.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 근거리 통신이 연결된 외부 전자 장치로 상기 입력 정보를 포함하는 메시지를 전송하거나 또는 상기 서버를 통해 상기 외부 전자 장치로 상기 입력 정보를 포함하는 메시지를 전송할 수 있다.According to an embodiment, in the mode (eg, the first mode), the electronic device transmits a message including the input information to an external electronic device to which short-range communication is connected or to the external electronic device through the server. A message including the input information may be transmitted.

1107동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 입력 정보의 전송에 따라 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310) 및/또는 도 5의 외부 전자 장치(501))로부터 출력 정보의 수신여부를 확인할 수 있다.In operation 1107, the electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 210 of FIGS. 2A to 2B , and/or the electronic device 301 of FIG. 3 ) transmits input information to an external device. It is possible to check whether output information is received from the electronic device (eg, the external electronic device 310 of FIGS. 2A and 2B and/or the external electronic device 501 of FIG. 5 ).

상기 1107동작에서, 상기 전자 장치는, 상기 입력 정보의 전송에 따라 외부 전자 장치로부터 출력 정보의 수신을 확인하면, 1109동작에서 출력 정보를 기반으로, 입력 이벤트 발생으로 변경된 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태(예: 디스플레이 영역의 상태 또는/및 사운드의 상태)를 변경할 수 있다.In operation 1107, when the electronic device confirms reception of output information from the external electronic device according to the transmission of the input information, based on the output information in operation 1109, the state of the external electronic device changed to the occurrence of an input event corresponds to the state. The state of the virtual external electronic device (eg, the state of the display area or/and the state of sound) may be changed.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 입력 정보를 포함하는 메시지의 전송에 따라, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보(예: 전화 통화를 위한 통화 연결 중임을 알리는 화면)를 수신하면, 상기 출력 정보를 기반으로 상기 변경된 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경(예: 가상 전자 장치의 디스플레이 영역에 전화 통화를 위한 통화시도 화면 표시)할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), according to transmission of a message including the input information and execution of a function corresponding to the input information from the external electronic device When output information related to the changed state of the external electronic device (eg, a screen indicating that a call is being connected for a phone call) is received, the virtual external electronic device corresponds to the changed state of the external electronic device based on the output information can change the state of (eg, displaying a call attempt screen for a phone call on the display area of the virtual electronic device).

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 근거리 통신이 연결된 외부 전자 장치로부터 상기 출력 정보를 포함하는 메시지를 수신하거나 또는 상기 서버를 통해 상기 외부 전자 장치로부터 상기 출력 정보를 포함하는 메시지를 수신할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), receives a message including the output information from an external electronic device to which short-range communication is connected or from the external electronic device through the server. A message including the output information may be received.

1111동작에서, 전자 장치(예: 도 1의 전자 장치(101), 도 2a 내지 도 2b의 전자 장치(210) 및/또는 도 3의 전자 장치(301))는, 외부 전자 장치(예: 도 2a 내지 도 2b의 외부 전자 장치(310) 및/또는 도 5의 외부 전자 장치(501))에서 발생된 이벤트와 관련된 출력 정보의 수신여부를 확인할 수 있다. 상기 1111동작에서, 상기 전자장치는, 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보의 수신을 확인하면, 1113동작에서, 출력 정보를 기반으로 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태(예: 디스플레이 영역상태 또는/및 사운드 상태)를 변경할 수 있다.In operation 1111, the electronic device (eg, the electronic device 101 of FIG. 1, the electronic device 210 of FIGS. 2A to 2B, and/or the electronic device 301 of FIG. It is possible to check whether output information related to an event generated in the external electronic device 310 of FIGS. 2A to 2B and/or the external electronic device 501 of FIG. 5 is received. In operation 1111, when the electronic device confirms reception of output information related to an event generated in the external electronic device, in operation 1113, the state of the external electronic device changed to the occurrence of an event based on the output information corresponds to the state. The state of the virtual external electronic device (eg, display area state or/and sound state) may be changed.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보(예: 통화 연결에 따른 통화 연결 화면)를 포함하는 메시지를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경(예: 가사 외부 전자 장치의 디스플레이 영역에 통화 연결에 따른 통화 화면을 표시)할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), output information related to an event generated in the external electronic device from the external electronic device (eg, a call connection screen according to a call connection) When a message including is received, the state of the virtual external electronic device is changed to correspond to the state of the external electronic device changed by the occurrence of the event based on the output information (eg, a call is connected to the display area of the external electronic device). call screen according to) can be displayed.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 근거리 통신이 연결된 외부 전자 장치로부터 상기 출력 정보를 포함하는 메시지를 수신하거나 또는 상기 서버를 통해 상기 외부 전자 장치로부터 상기 출력 정보를 포함하는 메시지를 수신할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), receives a message including the output information from an external electronic device to which short-range communication is connected or from the external electronic device through the server. A message including the output information may be received.

도 12는 다양한 실시 예들에 따른 시스템에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도(1200)이다. 상기 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작들은 1201동작 내지 1223동작을 포함할 수 있다. 일 실시 예에 따르면, 1201동작 내지 1223동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 12 is a flowchart 1200 for explaining an operation for controlling an external electronic device in the real world in a virtual environment in a system according to various embodiments of the present disclosure. Operations capable of controlling an external electronic device in the real world in the virtual environment may include operations 1201 to 1223. According to an embodiment, at least one of operations 1201 to 1223 may be omitted, the order of some operations may be changed, or another operation may be added.

1201동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))와 통신을 연결할 수 있다.In operation 1201, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ) may communicate with the external electronic device 310 (eg, the external electronic device 501 of FIG. 5 ).

일 실시 예에 따르면, 상기 전자 장치(210)는, 통신 모듈(예: 도 3의 통신 모듈(280))에 포함된 근거리 통신 모듈을 통해 상기 외부 전자 장치(310)와 근거리 통신으로 연결될 수 있다.According to an embodiment, the electronic device 210 may be connected to the external electronic device 310 through short-range communication through a short-range communication module included in a communication module (eg, the communication module 280 of FIG. 3 ). .

1203동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 외부 전자 장치의 외형 정보 및 기능 정보를 기반으로 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.In operation 1203, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ), in a mode capable of controlling the external electronic device in a virtual environment (eg, the first mode), displays information about the external electronic device. And based on the function information, a virtual external electronic device may be rendered and displayed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 가상 현실(Virtual Reality, VR)실행을 위한 어플리케이션 또는 가상 현실(Virtual Reality, VR) 실행을 위한 어플리케이션을 실행하여 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)로 전환하고, 상기 모드(예: 제1 모드)에서 사용될 수 있는 적어도 하나의 외부 전자 장치들 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 검출할 수 있다.According to an embodiment, the electronic device 210 controls an external electronic device in a virtual environment by executing an application for executing virtual reality (VR) or an application for executing virtual reality (VR). switching to a mode (eg, first mode) capable of performing external electronic devices, and displaying external information and function information of an external electronic device selected by a user from among at least one external electronic device usable in the mode (eg, first mode). can be detected.

일 실시 예에 따르면, 상기 전자 장치(210), 상기 모드(예: 제1 모드)에서, 적어도 하나의 외부 전자 장치들 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 메모리(예: 도 3의 메모리(330))에서 검출할 수 있다.According to an embodiment, the electronic device 210 stores appearance information and function information of an external electronic device selected by a user from among at least one external electronic device in the mode (eg, the first mode) in a memory (eg, the first mode). It can be detected in the memory 330 of FIG. 3 .

일 실시 예에 따르면, 상기 전자 장치(310)는, 상기 모드(예: 제1 모드)에서, 상기 메모리에 저장된 적어도 하나의 외부 전자 장치를 포함하는 리스트 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 서버(예: 도 2b의 서버(410))에게 요청하여 상기 서버로부터 수신할 수 있다.According to an embodiment, the electronic device 310, in the mode (eg, the first mode), provides information on the external appearance of an external electronic device selected by a user from a list including at least one external electronic device stored in the memory. And function information may be requested from a server (eg, the server 410 of FIG. 2B ) and received from the server.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 외형 정보(예: 3차원 좌표정보, 텍스처 및 쉐이더 데이터) 및 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 상기 외부 전자 장치와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), external information (eg, 3D coordinate information, texture and shader data) and function information of the external electronic device A virtual external electronic device similar to the external electronic device in the real world may be rendered and displayed by reflecting the rendering technology (eg, graphic processing) constituting the virtual environment.

1205동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 가상 외부 전자 장치에서 입력 이벤트의 발생여부를 확인할 수 있다. 상기 1205동작에서, 상기 전자 장치(210)는, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 확인하면, 1207동작에서, 입력 이벤트와 관련된 입력 정보를 생성할 수 있다.In operation 1205, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ) may check whether an input event has occurred in the virtual external electronic device. In operation 1205, if the electronic device 210 confirms the occurrence of an input event in the virtual external electronic device, in operation 1207, it can generate input information related to the input event.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 사용자의 제스처를 기반으로 상기 가상 외부 전자 장치의 디스플레이 영역 또는 버튼 영역에 입력 이벤트(또는 터치 이벤트) (예: 전화통화를 위한 다이얼 버튼 입력 및/또는 통화 버튼 입력)의 발생을 검출하면, 입력의 종류, 입력의 위치 및 입력의 횟수와 지속시간을 포함하는 입력 정보를 생성할 수 있다.According to an embodiment, the electronic device 210 sends an input event (or touch event) to a display area or button area of the virtual external electronic device based on a user's gesture in the mode (eg, the first mode). When an occurrence of a dial button input and/or a call button input for a phone call is detected, input information including the type of input, the location of the input, and the number and duration of the input may be generated.

1209동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 입력 정보를 외부 전자 장치(310)로 전송할 수 있다.In operation 1209, the electronic device 210 (eg, the electronic device 301 of FIG. 3) may transmit input information to the external electronic device 310.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 근거리 통신이 연결된 외부 전자 장치(310)로 상기 입력 정보를 포함하는 메시지를 전송할 수 있다.According to an embodiment, the electronic device 210 may transmit a message including the input information to the external electronic device 310 to which short-range communication is connected in the mode (eg, the first mode).

1211동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 입력 정보를 기반으로 입력 정보에 대응되는 기능을 수행하고, 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보 생성할 수 있다.In operation 1211, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) performs a function corresponding to the input information based on the input information, and according to the execution of the function corresponding to the input information Output information related to the changed state of the external electronic device may be generated.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 전자 장치(210)로부터 수신된 입력 정보를 기반으로 상기 외부 전자 장치(210)에서 대응되는 기능을 수행하고, 상기 기능 수행에 따라 상기 외부 전자 장치의 상태의 변경(예: 외부 전자 장치의 디스플레이에 전화 통화를 위한 통화 연결 중임을 알리는 화면 표시)을 확인할 수 있다. 상기 외부 전자 장치(310)는 상기 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 생성할 수 있다.According to an embodiment, the external electronic device 310 performs a corresponding function in the external electronic device 210 based on the input information received from the electronic device 210, and according to the execution of the function, the A change in the state of the external electronic device (eg, a screen indicating that a call is being connected for a phone call is displayed on a display of the external electronic device) may be confirmed. The external electronic device 310 may generate output information related to the changed state of the external electronic device.

1213동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 전자 장치(210)로 전송할 수 있다.In operation 1213, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) may transmit output information to the electronic device 210.

일 실시 예에 따르면, 상기 외부 자 장치(310)는, 상기 모드(예: 제1 모드)에서, 근거리 통신이 연결된 전자 장치(210)로 상기 출력 정보를 포함하는 메시지를 전송할 수 있다.According to an embodiment, the external device 310 may transmit a message including the output information to the electronic device 210 to which short-range communication is connected in the mode (eg, the first mode).

1215동작에서, 전자 장치(예: 도 1의 전자 장치(101) 및/또는 도 3의 전자 장치(301))는, 출력 정보를 기반으로, 입력 이벤트 발생으로 변경된 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태를 변경할 수 있다.In operation 1215, the electronic device (eg, the electronic device 101 of FIG. 1 and/or the electronic device 301 of FIG. 3 ) corresponds to the state of the external electronic device changed due to the occurrence of the input event based on the output information. The state of a virtual external electronic device can be changed.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 변경된 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경(예: 전화 통화를 위한 통화 연결 중임을 알리는 화면 표시)할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), outputs information related to the state of the external electronic device changed according to the execution of a function corresponding to the input information from the external electronic device. Upon reception, a state of the virtual external electronic device may be changed to correspond to the changed state of the external electronic device based on the output information (eg, displaying a screen indicating that a call is being connected for a phone call).

1217동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 상기 외부 전자 장치에서 이벤트의 발생 여부를 확인할 수 있다. 상기 1217동작에서, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치에서 이벤트의 발생을 확인하면, 1219동작에서, 이벤트가 발생에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보 생성할 수 있다.In operation 1217, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) may check whether an event has occurred in the external electronic device. In operation 1217, if the external electronic device 310 confirms that an event has occurred, in operation 1219, the external electronic device 310 may generate output information related to the state of the external electronic device changed according to the occurrence of the event.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치에서 발생된 이벤트에 따라 상기 외부 전자 장치의 상태(예: 디스플레이 상태 또는/및 사운드 상태)가 변경되면, 상기 변경된 외부 전자 장치의 상태를 출력 정보로 생성할 수 있다.According to an embodiment, when a state (eg, a display state or/and a sound state) of the external electronic device is changed according to an event generated in the external electronic device, the external electronic device 310 changes the external electronic device 310. The state of the device can be generated as output information.

예를 들어, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치(310))에서 전화 수신과 같은 이벤트가 발생되면, 상기 외부 전자장치(310)에서는 상기 외부 전자 장치의 디스플레이에 표시되는 전화 수신 화면에 대한 프레임 버퍼와 벨 소리에 대한 사운드 스트림을 캡처하여 출력 정보로 생성할 수 있다.For example, when an event such as a call reception occurs in the external electronic device 310, the external electronic device 310 receives a call displayed on the display of the external electronic device 310. You can capture the frame buffer for the screen and the sound stream for the ringtone and create it as output information.

1221동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 전자 장치(210)로 전송할 수 있다.In operation 1221, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) may transmit output information to the electronic device 210.

일 실시 예에 따르면, 근거리 통신이 연결된 전자 장치(210)로 상기 출력 정보를 포함하는 메시지를 전송할 수 있다.According to an embodiment, a message including the output information may be transmitted to the electronic device 210 to which short-range communication is connected.

1223동작에서, 전자 장치(210)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 기반으로 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태(예: 디스플레이 영역 상태 또는/및 사운드 상태)를 변경할 수 있다.In operation 1223, the electronic device 210 (eg, the external electronic device 501 of FIG. 5 ) determines the state of the virtual external electronic device (eg, the external electronic device 501 of FIG. : Display area state or/and sound state) can be changed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 포함하는 메시지를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경할 수 있다.According to an embodiment, when the electronic device 210 receives a message including output information related to an event generated in the external electronic device from the external electronic device in the mode (eg, the first mode), Based on the output information, the state of the virtual external electronic device may be changed to correspond to the state of the external electronic device changed by the occurrence of the event.

예를 들어, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치(310)로부터 수신된 출력 정보(예: 전화 수신 화면에 대한 프레임 버퍼 및 벨 소리에 대한 사운드 스트림)를 기반으로, 상기 가상 외부 전자 장치의 디스플레이 영역에 텍스처 맵핑을 수행하여 가상 외부 전자 장치의 디스플레이의 화면에 전화 수신을 알리는 전화 수신 화면을 표시하고, 상기 전자 장치의 스피커를 통해 전화 수신을 알리는 벨 소리를 출력함에 따라, 사용자는 가상 환경에서 실 세계의 외부 전자 장치에 전화가 수신되고 있는 상태임을 알 수 있다. For example, the electronic device 210, in the mode (eg, the first mode), output information received from the external electronic device 310 (eg, a frame buffer for a call reception screen and a bell sound) sound stream), texture mapping is performed on the display area of the virtual external electronic device to display a call reception screen notifying the reception of a call on the display screen of the virtual external electronic device, and the call is received through the speaker of the electronic device. By outputting a ringing sound informing the user, the user can know that a call is being received by an external electronic device in the real world in the virtual environment.

도 13a 내지 도 13b는 다양한 실시 예들에 따른 시스템에서 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작을 설명하기 위한 흐름도(1300a 내지 1300b)이다. 상기 가상환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 동작들은 1301a동작 내지 1323동작을 포함할 수 있다. 일 실시 예에 따르면, 1301a동작 내지 1323동작 중 적어도 하나가 생략되거나, 일부 동작들의 순서가 바뀌거나, 다른 동작이 추가될 수 있다. 13A to 13B are flowcharts 1300a to 1300b for describing an operation capable of controlling an external electronic device in the real world in a virtual environment in a system according to various embodiments of the present disclosure. Operations capable of controlling an external electronic device in the real world in the virtual environment may include operations 1301a to 1323. According to an embodiment, at least one of operations 1301a to 1323 may be omitted, the order of some operations may be changed, or another operation may be added.

1301a동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 서버(410)와 통신을 연결하고, 1301b동작에서 상기 서버(410)는, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))와 통신을 연결할 수 있다.In operation 1301a, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ) connects communication with the server 410, and in operation 1301b, the server 410 connects the external electronic device 310 ( Example: Communication with the external electronic device 501 of FIG. 5 may be connected.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 서버(410)와 인증 과정을 통해 인증을 성공하면, 통신을 연결할 수 있다.According to an embodiment, if the electronic device 210 succeeds in authentication with the server 410 through an authentication process, it can connect communication.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 서버(410)와 인증 과정을 통해 인증을 성공하면, 통신을 연결할 수 있다.According to an embodiment, the external electronic device 310 can connect communication when authentication with the server 410 is successful through an authentication process.

1303동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)에서, 외부 전자 장치의 외형 정보 및 기능 정보를 기반으로 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.In operation 1303, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ), in a mode capable of controlling the external electronic device in a virtual environment (eg, the first mode), external information of the external electronic device And based on the function information, a virtual external electronic device may be rendered and displayed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 가상 현실(Virtual Reality, VR)실행을 위한 어플리케이션 또는 가상 현실(Virtual Reality, VR) 실행을 위한 어플리케이션을 실행하여 가상 환경에서 외부 전자 장치를 제어할 수 있는 모드(예: 제1 모드)로 전환하고, 상기 모드(예: 제1 모드)에서 사용될 수 있는 적어도 하나의 외부 전자 장치들 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 검출할 수 있다.According to an embodiment, the electronic device 210 controls an external electronic device in a virtual environment by executing an application for executing virtual reality (VR) or an application for executing virtual reality (VR). switching to a mode (eg, first mode) capable of performing external electronic devices, and displaying external information and function information of an external electronic device selected by a user from among at least one external electronic device usable in the mode (eg, first mode). can be detected.

일 실시 예에 따르면, 상기 전자 장치(210), 상기 모드(예: 제1 모드)에서, 메모리(예: 도 3의 메모리(330))에 서 적어도 하나의 외부 전자 장치를 포함하는 리스트를 검출하여 표시하고 상기 리스트 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 상기 메모리에서 검출할 수 있다.According to an embodiment, the electronic device 210, in the mode (eg, the first mode), detects a list including at least one external electronic device from a memory (eg, the memory 330 of FIG. 3). and displaying external electronic device information and function information of an external electronic device selected by the user from the list may be detected from the memory.

일 실시 예에 따르면, 상기 전자 장치(310)는, 상기 모드(예: 제1 모드)에서, 메모리(예: 도 3의 메모리(330))에 서 적어도 하나의 외부 전자 장치를 포함하는 리스트를 검출하여 표시하고 상기 리스트 중 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 서버(410))로 요청하여 상기 서버로부터 상기 사용자에 의해 선택된 외부 전자 장치의 외형 정보 및 기능 정보를 수신할 수 있다.According to an embodiment, the electronic device 310, in the mode (eg, the first mode), stores a list including at least one external electronic device in a memory (eg, the memory 330 of FIG. 3 ). Detect and display the external electronic device selected by the user from the list and request external information and function information of the external electronic device selected by the user to the server 410) to receive the external electronic device selected by the user from the server 410. there is.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치의 외형 정보(예: 3차원 좌표정보, 텍스처 및 쉐이더 데이터) 및 외부 전자 장치의 기능 정보를 가상 환경을 구성하는 렌더링 기술(예: 그래픽 프로세싱(Graphic Processing))에 반영하여 실 세계의 상기 외부 전자 장치와 유사한 가상 외부 전자 장치를 렌더링하여 표시할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), external information (eg, 3D coordinate information, texture and shader data) and function information of the external electronic device A virtual external electronic device similar to the external electronic device in the real world may be rendered and displayed by reflecting the rendering technology (eg, graphic processing) constituting the virtual environment.

1305동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 가상 외부 전자 장치에서 입력 이벤트의 발생여부를 확인할 수 있다. 상기 1205동작에서, 상기 전자 장치(210)는, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 확인하면, 1307동작에서, 입력 이벤트와 관련된 입력 정보를 생성할 수 있다.In operation 1305, the electronic device 210 (eg, the electronic device 301 of FIG. 3 ) may check whether an input event has occurred in the virtual external electronic device. In operation 1205, if the electronic device 210 confirms the occurrence of an input event in the virtual external electronic device, in operation 1307, it can generate input information related to the input event.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 사용자의 제스처를 기반으로 상기 가상 외부 전자 장치의 디스플레이 영역 또는 버튼 영역에 입력 이벤트(또는 터치 이벤트)의 발생(예: 전화통화를 위한 다이얼 버튼 입력 및/또는 통화 버튼 입력)을 검출하면, 입력의 종류, 입력의 위치 및 입력의 횟수와 지속시간을 포함하는 입력 정보를 생성할 수 있다.According to an embodiment, the electronic device 210 sends an input event (or touch event) to a display area or button area of the virtual external electronic device based on a user's gesture in the mode (eg, the first mode). When the occurrence of (eg, a dial button input and/or a call button input for a phone call) is detected, input information including the type of input, the location of the input, and the number and duration of the input may be generated.

1309a동작에서, 전자 장치(210)(예: 도 3의 전자 장치(301))는, 입력 정보를 서버(410)로 전송하면, 1309b동작에서 상기 서버(410)는 상기 입력 정보를 상기 외부 전자 장치(310)로 전송할 수 있다.In operation 1309a, when the electronic device 210 (eg, the electronic device 301 of FIG. 3) transmits input information to the server 410, the server 410 transmits the input information to the external electronic device in operation 1309b. device 310.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 상기 서버(410)로 상기 입력 정보를 포함하는 메시지를 전송할 수 있으며, 상기 메시지에는 상기 외부 전자 장치의 식별 정보를 포함할 수 있다.According to an embodiment, the electronic device 210 may transmit a message including the input information to the server 410 in the mode (eg, the first mode), and the message includes the external electronic device It may include identification information of.

일 실시 예에 따르면, 상기 서버(410)는, 상기 입력 정보 및 상기 외부 전자 장치의 식별 정보를 포함하는 메시지를 기반으로 상기 메시지를 상기 외부 전자 장치(310)로 전송할 수 있다According to an embodiment, the server 410 may transmit the message to the external electronic device 310 based on a message including the input information and identification information of the external electronic device.

1311동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 입력 정보를 기반으로 입력 정보에 대응되는 기능을 수행하고, 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보 생성할 수 있다.In operation 1311, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) performs a function corresponding to the input information based on the input information, and according to the execution of the function corresponding to the input information Output information related to the changed state of the external electronic device may be generated.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 서버(410)를 통해 상기 전자 장치(210)로부터 수신된 입력 정보를 기반으로 상기 외부 전자 장치(210)에서 대응되는 기능을 수행하고, 상기 기능 수행에 따라 상기 외부 전자 장치의 상태의 변경(예: 외부 전자 장치의 디스플레이에 전화 통화를 위한 통화 연결 중임을 알리는 화면 표시)을 확인할 수 있다. 상기 외부 전자 장치(310)는 상기 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 생성할 수 있다.According to an embodiment, the external electronic device 310 performs a corresponding function in the external electronic device 210 based on input information received from the electronic device 210 through the server 410, , A change in the state of the external electronic device (eg, a screen indicating that a call is being connected for a phone call is displayed on the display of the external electronic device) may be checked according to the function execution. The external electronic device 310 may generate output information related to the changed state of the external electronic device.

1313a동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 상기 서버(410)로 전송하면, 상기 1313b 동작에서, 상기 서버(410)는, 상기 출력 정보를 상기 전자 장치(210)로 전송할 수 있다.In operation 1313a, when the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) transmits output information to the server 410, in operation 1313b, the server 410, Output information may be transmitted to the electronic device 210 .

일 실시 예에 따르면, 상기 외부 전자 장치(210)는, 상기 서버(410)로 상기 출력 정보를 포함하는 메시지를 전송할 수 있으며, 상기 메시지에는 상기 전자 장치의 식별 정보를 포함할 수 있다.According to an embodiment, the external electronic device 210 may transmit a message including the output information to the server 410, and the message may include identification information of the electronic device.

일 실시 예에 따르면, 상기 서버(410)는, 상기 출력 정보 및 상기 전자 장치의 식별 정보를 포함하는 메시지를 기반으로 상기 메시지를 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the server 410 may transmit the message to the electronic device 210 based on a message including the output information and identification information of the electronic device.

1315동작에서, 전자 장치(예: 도 1의 전자 장치(101) 및/또는 도 3의 전자 장치(301))는, 출력 정보를 기반으로, 입력 이벤트 발생으로 변경된 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태(예: 디스플레이 영역의 상태 또는/및 사운드의 상태)를 변경할 수 있다.In operation 1315, the electronic device (eg, the electronic device 101 of FIG. 1 and/or the electronic device 301 of FIG. 3 ) corresponds to the state of the external electronic device changed by the occurrence of the input event based on the output information. The state of the virtual external electronic device (eg, the state of the display area or/and the state of sound) may be changed.

일 실시 예에 따르면, 상기 전자 장치는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 변경된 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경(예: 가상 전자 장치의 디스플레이 영역에 전화 통화를 위한 통화 연결 중임을 알리는 화면 표시)할 수 있다.According to an embodiment, the electronic device, in the mode (eg, the first mode), outputs information related to the state of the external electronic device changed according to the execution of a function corresponding to the input information from the external electronic device. If received, the state of the virtual external electronic device is changed to correspond to the changed state of the external electronic device based on the output information (eg, a screen display indicating that a call is being made for a phone call is displayed on the display area of the virtual electronic device) can do.

1317동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 상기 외부 전자 장치에서 이벤트의 발생 여부를 확인할 수 있다. 상기 1317동작에서, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치에서 이벤트의 발생을 확인하면, 1319동작에서, 이벤트가 발생에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보 생성할 수 있다.In operation 1317, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) may check whether an event has occurred in the external electronic device. In operation 1317, if the external electronic device 310 confirms that an event has occurred, in operation 1319, the external electronic device 310 may generate output information related to the state of the external electronic device changed according to the occurrence of the event.

일 실시 예에 따르면, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치에서 발생된 이벤트에 따라 상기 외부 전자 장치의 상태(예: 디스플레이 상태 또는/및 사운드 상태)가 변경되면, 상기 변경된 외부 전자 장치의 상태를 출력 정보로 생성할 수 있다.According to an embodiment, when a state (eg, a display state or/and a sound state) of the external electronic device is changed according to an event generated in the external electronic device, the external electronic device 310 changes the external electronic device 310. The state of the device can be generated as output information.

예를 들어, 상기 외부 전자 장치(310)는, 상기 외부 전자 장치(310))에서 전화 수신과 같은 이벤트가 발생되면, 상기 외부 전자장치(310)에서는 상기 외부 전자 장치의 디스플레이에 표시되는 전화 수신 화면에 대한 프레임 버퍼와 벨 소리에 대한 사운드 스트림을 캡처하여 출력 정보로 생성할 수 있다.For example, when an event such as a call reception occurs in the external electronic device 310, the external electronic device 310 receives a call displayed on the display of the external electronic device 310. You can capture the frame buffer for the screen and the sound stream for the ringtone and create it as output information.

1321a동작에서, 외부 전자 장치(310)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 서버(410)로 전송하며, 1321b 동작에서, 상기 서버(410)는 상기 출력 정보를 전자 장치(210)로 전송할 수 있다.In operation 1321a, the external electronic device 310 (eg, the external electronic device 501 of FIG. 5) transmits output information to the server 410, and in operation 1321b, the server 410 transmits the output information. It can be transmitted to the electronic device 210.

일 실시 예에 따르면, 상기 외부 전자 장치(210)는, 상기 서버(410)로 상기 출력 정보를 포함하는 메시지를 전송할 수 있으며, 상기 메시지에는 상기 전자 장치의 식별 정보를 포함할 수 있다.According to an embodiment, the external electronic device 210 may transmit a message including the output information to the server 410, and the message may include identification information of the electronic device.

일 실시 예에 따르면, 상기 서버(410)는, 상기 출력 정보 및 상기 전자 장치의 식별 정보를 포함하는 메시지를 기반으로 상기 메시지를 상기 전자 장치(210)로 전송할 수 있다.According to an embodiment, the server 410 may transmit the message to the electronic device 210 based on a message including the output information and identification information of the electronic device.

1323동작에서, 전자 장치(210)(예: 도 5의 외부 전자 장치(501))는, 출력 정보를 기반으로 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 가상 외부 전자 장치의 상태(예: 디스플레이 영역상태 또는/및 사운드 상태)를 변경할 수 있다.In operation 1323, the electronic device 210 (eg, the external electronic device 501 of FIG. 5 ) determines the state of the virtual external electronic device (eg, the external electronic device 501 of FIG. : Display area state or/and sound state) can be changed.

일 실시 예에 따르면, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 포함하는 메시지를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경할 수 있다.According to an embodiment, when the electronic device 210 receives a message including output information related to an event generated in the external electronic device from the external electronic device in the mode (eg, the first mode), Based on the output information, the state of the virtual external electronic device may be changed to correspond to the state of the external electronic device changed by the occurrence of the event.

예를 들어, 상기 전자 장치(210)는, 상기 모드(예: 제1 모드)에서, 상기 외부 전자 장치(310)로부터 수신된 출력 정보(예: 전화 수신 화면에 대한 프레임 버퍼 및 벨 소리에 대한 사운드 스트림)를 기반으로, 상기 가상 외부 전자 장치의 디스플레이 영역에 텍스처 맵핑을 수행하여 가상 외부 전자 장치의 디스플레이의 화면에 전화 수신을 알리는 전화 수신 화면을 표시하고, 상기 전자 장치의 스피커를 통해 전화 수신을 알리는 벨 소리를 출력함에 따라, 사용자는 가상 환경에서 실 세계의 외부 전자 장치에 전화가 수신되고 있는 상태임을 알 수 있다. For example, the electronic device 210, in the mode (eg, the first mode), output information received from the external electronic device 310 (eg, a frame buffer for a call reception screen and a bell sound) sound stream), texture mapping is performed on the display area of the virtual external electronic device to display a call reception screen notifying the reception of a call on the display screen of the virtual external electronic device, and the call is received through the speaker of the electronic device. By outputting a ringing sound informing the user, the user can know that a call is being received by an external electronic device in the real world in the virtual environment.

다양한 실시 예들에 따르면, 시스템에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법은, 전자 장치에 의해, 상기 전자 장치의 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하는 동작, 상기 전자 장치에 의해, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하는 동작, 상기 외부 전자 장치에 의해, 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 동작, 및 상기 전자 장치에 의해, 상기 외부 전자 장치로부터 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 동작을 포함할 수 있다.According to various embodiments, a method for controlling an external electronic device in the real world in a virtual environment in a system may include, in a first mode in which the electronic device controls an external electronic device in a virtual environment of the electronic device, An operation of displaying a virtual external electronic device corresponding to the external electronic device based on appearance information and function information of the external electronic device, and when an input event is detected by the electronic device, the external electronic device Transmitting input information related to the input event to an electronic device, performing a function corresponding to the input information when the external electronic device receives the input information from the electronic device, and performing a function corresponding to the input information An operation of transmitting output information related to a state of an external electronic device changed according to the execution of a function to the electronic device, and when the output information is received from the external electronic device by the electronic device, the virtual electronic device is configured based on the output information. An operation of changing the state of the external electronic device to correspond to the changed state of the external electronic device.

다양한 실시 예들에 따르면, 상기 전자 장치에 의해, 상기 전자 장치의 가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하는 동작, 상기 전자 장치에 의해, 상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴를 표시하는 동작, 상기 전자 장치에 의해, 상기 기능 설정 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위한 구성 요소가 위치된 영역 정보를 상기 기능 정보로 생성하는 동작, 및 상기 전자 장치에 의해, 상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하는 동작을 포함할 수 있다.According to various embodiments, in a second mode in which the electronic device can register an external electronic device in a virtual environment of the electronic device, the external electronic device is recognized, and based on the recognition of the external electronic device, the external electronic device is recognized. An operation of generating outer appearance information of an external electronic device, an operation of displaying, by the electronic device, a virtual external electronic device generated based on the outer appearance information and a function setting menu capable of setting functions of the virtual electronic device, Generating, by a device, information on a type of at least one function selected through the function setting menu and an area where a component for performing the at least one function in the virtual external electronic device is located as the function information; and An operation of storing, by the electronic device, the appearance information and the function information to be matched with the external electronic device.

다양한 실시 예들에 따르면, 상기 기능 설정 메뉴에 포함된 적어도 하나의 기능은, 상기 전자 장치에 미리 저장되거나, 또는 상기 외부 전자 장치로부터 수신하거나, 또는 서버로부터 수신하도록 설정될 수 있다.According to various embodiments, at least one function included in the function setting menu may be pre-stored in the electronic device, received from the external electronic device, or set to be received from a server.

다양한 실시 예들에 따르면, 상기 전자 장치에 의해, 상기 제1 모드에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, when output information related to an event generated in the external electronic device is received from the external electronic device in the first mode by the electronic device, the event is changed to the occurrence of the event based on the output information. An operation of changing a state of the virtual external electronic device to correspond to a state of the external electronic device may be further included.

다양한 실시 예들에 따르면, 상기 외부 전자 장치에 의해, 상기 외부 전자 장치에서 이벤트가 발생되어 상기 외부 전자 장치의 상태가 변경되면, 상기 변경된 외부 전자 장치의 상태와 관련된 상기 출력 정보를 생성하여 상기 전자 장치로 전송하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, when an event occurs in the external electronic device and the state of the external electronic device is changed, the output information related to the changed state of the external electronic device is generated, and the electronic device An operation of transmitting to may be further included.

다양한 실시 예들에 따르면, 상기 전자 장치에 의해, 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하는 동작을 더 포함할 수 있다.According to various embodiments, if the electronic device is in a state in which short-range communication is connected with the external electronic device, an operation of transmitting and receiving information with the external electronic device based on the short-range communication connection may be further included.

다양한 실시 예들에 따르면, 상기 전자 장치에 의해, 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하는 동작을 더 포함할 수 있다.According to various embodiments, if the electronic device is in a state in which short-range communication is not connected with the external electronic device, an operation of transmitting and receiving information of the external electronic device through a server may be further included.

다양한 실시 예들에 따르면, 전자 장치에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법은, 가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하는 동작, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하는 동작, 및 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method for controlling an external electronic device in the real world in a virtual environment in an electronic device may include external electronic device information and functions in a first mode capable of controlling an external electronic device in a virtual environment. An operation of displaying a virtual external electronic device based on information. When an input event is detected in the virtual external electronic device, input information related to the input event is transmitted to the external electronic device, and the input information is transmitted from the external electronic device. displaying the state of the virtual external electronic device in correspondence with the changed state of the external electronic device based on the output information when output information related to the state of the external electronic device changed according to the execution of the function corresponding to and, upon receiving output information related to an event generated in the external electronic device from the external electronic device, changing a state of the virtual external electronic device to correspond to a state of the external electronic device changed based on the output information. can include

다양한 실시 예들에 따르면, 가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 카메라 모듈을 통해 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하는 동작, 상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 메뉴를 표시하는 동작, 상기 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위해 선택될 기능의 위치를 상기 기능 정보로 생성하는 동작, 및 상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하는 동작을 더 포함할 수 있다.According to various embodiments, in a second mode capable of registering an external electronic device in a virtual environment, the external electronic device is recognized through the camera module, and the exterior of the external electronic device is changed based on the recognition of the external electronic device. An operation of generating information, an operation of displaying a virtual external electronic device generated based on the appearance information and a menu for setting functions of the virtual electronic device, a type of at least one function selected through the menu, and the virtual external electronic device. The method may further include generating a location of a function to be selected to perform the at least one function in the electronic device as the function information, and storing the appearance information and the function information to match the external electronic device. there is.

다양한 실시 예들에 따르면, 상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하는 동작, 및 상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, when the electronic device is connected to the external electronic device through short-range communication, transmitting/receiving information with the external electronic device based on the short-range communication connection, and the electronic device communicating with the external electronic device If short-range communication is not connected, an operation of transmitting/receiving information of the external electronic device through a server may be further included.

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

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

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

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

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

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

Claims (20)

가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 시스템에 있어서,
가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하고, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 전자 장치; 및
상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 외부 전자 장치를 포함하는 시스템.
In a system capable of controlling an external electronic device in the real world in a virtual environment,
In a first mode capable of controlling an external electronic device in a virtual environment, a virtual external electronic device corresponding to the external electronic device is displayed based on appearance information and function information of the external electronic device, and an input is input from the virtual external electronic device. When the occurrence of an event is detected, input information related to the input event is transmitted to the external electronic device, and output information related to the state of the external electronic device changed according to the execution of a function corresponding to the input information from the external electronic device. an electronic device that changes a state of the virtual external electronic device to correspond to the changed state of the external electronic device based on the output information when receiving the ; and
When receiving the input information from the electronic device, performing a function corresponding to the input information and transmitting output information related to a state of the external electronic device changed according to the execution of the function corresponding to the input information to the electronic device A system that includes external electronics.
제1 항에 있어서, 상기 전자 장치는,
가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하고,
상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴를 표시하고,
상기 기능 설정 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위한 구성 요소가 위치된 영역 정보를 상기 기능 정보로 생성하고,
상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능 정보를 저장하도록 설정된 시스템.
The method of claim 1, wherein the electronic device,
In a second mode for registering an external electronic device in a virtual environment, recognizing the external electronic device and generating external information of the external electronic device based on the recognition of the external electronic device;
Displaying a virtual external electronic device generated based on the appearance information and a function setting menu for setting functions of the virtual electronic device;
Generating, as the function information, a type of at least one function selected through the function setting menu and information on an area where a component for performing the at least one function in the virtual external electronic device is located;
A system configured to store the appearance information and the function information to be matched with the external electronic device.
제1 항에 있어서,
상기 기능 설정 메뉴에 포함된 적어도 하나의 기능은, 상기 전자 장치에 미리 저장되거나, 또는 상기 외부 전자 장치로부터 수신하거나, 또는 서버로부터 수신하도록 설정된 시스템.
According to claim 1,
At least one function included in the function setting menu is set to be pre-stored in the electronic device, received from the external electronic device, or received from a server.
제1 항에 있어서, 상기 전자 장치는,
상기 제1 모드에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하도록 설정된 시스템.
The method of claim 1, wherein the electronic device,
In the first mode, when output information related to an event generated in the external electronic device is received from the external electronic device, the virtual external device corresponds to a state of the external electronic device that has been changed due to the occurrence of the event based on the output information. A system set up to change the state of an electronic device.
제4 항에 있어서, 상기 외부 전자 장치는,
상기 외부 전자 장치에서 이벤트가 발생되어 상기 외부 전자 장치의 상태가 변경되면, 상기 변경된 외부 전자 장치의 상태와 관련된 상기 출력 정보를 생성하여 상기 전자 장치로 전송하도록 설정된 시스템.
The method of claim 4, wherein the external electronic device,
The system configured to generate and transmit the output information related to the changed state of the external electronic device to the electronic device when an event occurs in the external electronic device and the state of the external electronic device is changed.
제1 항에 있어서,
상기 전자 장치는, 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하도록 설정된 시스템.
According to claim 1,
The system configured to transmit and receive information with the external electronic device based on the short-range communication connection when the electronic device is in a short-range communication connection state with the external electronic device.
제1 항에 있어서,
상기 전자 장치는, 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하도록 설정된 시스템.
According to claim 1,
The system configured to transmit and receive information of the external electronic device through a server when the electronic device is not connected to the external electronic device through short-range communication.
가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 전자 장치에 있어서,
카메라 모듈; 및
프로세서를 포함하고, 상기 프로세서는,
가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하고,
상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하고,
상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하도록 설정된 전자 장치.
An electronic device capable of controlling an external electronic device in the real world in a virtual environment,
camera module; and
It includes a processor, the processor comprising:
In a first mode for controlling an external electronic device in a virtual environment, a virtual external electronic device is displayed based on appearance information and function information of the external electronic device;
When the virtual external electronic device detects the occurrence of an input event, it transmits input information related to the input event to the external electronic device, and the external electronic device changes according to the execution of a function corresponding to the input information from the external electronic device. When output information related to the state of is received, based on the output information, the state of the virtual external electronic device is displayed in correspondence with the changed state of the external electronic device;
When receiving output information related to an event generated in the external electronic device from the external electronic device, the electronic device configured to change the state of the virtual external electronic device to correspond to the state of the external electronic device changed based on the output information. .
제8 항에 있어서, 상기 프로세서는,
가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 카메라 모듈을 통해 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하고,
상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 메뉴를 표시하고,
상기 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위해 선택될 기능의 위치를 상기 기능 정보로 생성하고,
상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하도록 설정된 전자 장치.
The method of claim 8, wherein the processor,
In a second mode in which an external electronic device can be registered in a virtual environment, the external electronic device is recognized through the camera module, and appearance information of the external electronic device is generated based on the recognition of the external electronic device;
Displaying a virtual external electronic device generated based on the appearance information and a menu for setting functions of the virtual electronic device;
generating a type of at least one function selected through the menu and a position of a function to be selected to perform the at least one function in the virtual external electronic device as the function information;
An electronic device configured to store the appearance information and the function information to be matched with the external electronic device.
제8 항에 있어서, 상기 프로세서는,
상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하고,
상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하도록 설정된 전자 장치.
The method of claim 8, wherein the processor,
When the electronic device is in a short-range communication connection state with the external electronic device, transmits and receives information with the external electronic device based on the short-range communication connection;
An electronic device configured to transmit/receive information of the external electronic device through a server when the electronic device is not connected to the external electronic device through short-range communication.
시스템에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법에 있어서,
전자 장치에 의해, 상기 전자 장치의 가상 환경에서 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 상기 외부 전자 장치에 대응되는 가상 외부 전자 장치를 표시하는 동작;
상기 전자 장치에 의해, 상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 상기 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하는 동작;
상기 외부 전자 장치에 의해, 상기 전자 장치로부터 상기 입력 정보를 수신하면, 상기 입력 정보에 대응되는 기능을 수행하고, 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 외부 전자 장치의 상태와 관련된 출력 정보를 상기 전자 장치로 전송하는 동작; 및
상기 전자 장치에 의해, 상기 외부 전자 장치로부터 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 변경하는 동작을 포함하는 방법.
A method for controlling an external electronic device in the real world in a virtual environment in a system,
In a first mode in which the electronic device can control an external electronic device in a virtual environment of the electronic device, a virtual external electronic device corresponding to the external electronic device is displayed based on external information and function information of the external electronic device. action;
transmitting, by the electronic device, input information related to the input event to the external electronic device when the occurrence of an input event is detected in the virtual external electronic device;
When the input information is received by the external electronic device, a function corresponding to the input information is performed, and output information related to the state of the external electronic device changed according to the execution of the function corresponding to the input information transmitting to the electronic device; and
and changing, by the electronic device, a state of the virtual external electronic device to correspond to the changed state of the external electronic device based on the output information when output information is received from the external electronic device.
제11 항에 있어서,
상기 전자 장치에 의해, 상기 전자 장치의 가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하는 동작;
상기 전자 장치에 의해, 상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 기능 설정 메뉴를 표시하는 동작;
상기 전자 장치에 의해, 상기 기능 설정 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위한 구성 요소가 위치된 영역 정보를 상기 기능 정보로 생성하는 동작; 및
상기 전자 장치에 의해, 상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하는 동작을 포함하는 방법.
According to claim 11,
In a second mode in which the electronic device can register an external electronic device in a virtual environment of the electronic device, the external electronic device is recognized, and external information of the external electronic device is recognized based on the recognition of the external electronic device. the operation of generating;
displaying, by the electronic device, a virtual external electronic device generated based on the appearance information and a function setting menu capable of setting functions of the virtual electronic device;
Generating, by the electronic device, the type of at least one function selected through the function setting menu and information on a region where a component for performing the at least one function in the virtual external electronic device is located as the function information. ; and
and storing, by the electronic device, the appearance information and the function information to be matched with the external electronic device.
제11 항에 있어서,
상기 기능 설정 메뉴에 포함된 적어도 하나의 기능은, 상기 전자 장치에 미리 저장되거나, 또는 상기 외부 전자 장치로부터 수신하거나, 또는 서버로부터 수신하도록 설정된 방법.
According to claim 11,
At least one function included in the function setting menu is pre-stored in the electronic device, received from the external electronic device, or set to be received from a server.
제11 항에 있어서,
상기 전자 장치에 의해, 상기 제1 모드에서, 상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 이벤트 발생으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하는 동작을 더 포함하는 방법.
According to claim 11,
When output information related to an event generated in the external electronic device is received by the electronic device in the first mode from the external electronic device, the state of the external electronic device is changed to the occurrence of the event based on the output information. and changing a state of the virtual external electronic device to correspond to the virtual external electronic device.
제14 항에 있어서,
상기 외부 전자 장치에 의해, 상기 외부 전자 장치에서 이벤트가 발생되어 상기 외부 전자 장치의 상태가 변경되면, 상기 변경된 외부 전자 장치의 상태와 관련된 상기 출력 정보를 생성하여 상기 전자 장치로 전송하는 동작을 더 포함하는 방법.
According to claim 14,
When an event occurs in the external electronic device and the state of the external electronic device is changed by the external electronic device, the output information related to the changed state of the external electronic device is generated and transmitted to the electronic device. How to include.
제11 항에 있어서,
상기 전자 장치에 의해, 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하는 동작을 더 포함하는 방법.
According to claim 11,
The method further comprising transmitting/receiving information with the external electronic device based on the short-range communication connection when short-range communication is connected with the external electronic device by the electronic device.
제11 항에 있어서,
상기 전자 장치에 의해, 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하는 동작을 더 포함하는 방법.
According to claim 11,
The method further comprising transmitting/receiving information of the external electronic device through a server when short-range communication is not connected with the external electronic device by the electronic device.
전자 장치에서 가상 환경에서 실 세계의 외부 전자 장치를 제어할 수 있는 방법에 있어서,
가상 환경에 외부 전자 장치를 제어할 수 있는 제1 모드에서, 외부 전자 장치의 외형 정보와 기능 정보를 기반으로 가상 외부 전자 장치를 표시하는 동작;
상기 가상 외부 전자 장치에서 입력 이벤트의 발생을 검출하면, 외부 전자 장치로 상기 입력 이벤트와 관련된 입력 정보를 전송하고, 상기 외부 전자 장치로부터 상기 입력 정보에 대응되는 기능의 수행에 따라 변경된 상기 외부 전자 장치의 상태와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 상기 가상 외부 전자 장치의 상태를 상기 변경된 외부 전자 장치의 상태와 대응되게 표시하는 동작; 및
상기 외부 전자 장치로부터 상기 외부 전자 장치에서 발생된 이벤트와 관련된 출력 정보를 수신하면, 상기 출력 정보를 기반으로 변경된 상기 외부 전자 장치의 상태와 대응되게 상기 가상 외부 전자 장치의 상태를 변경하는 동작을 포함하는 방법.
A method for controlling an external electronic device in the real world in a virtual environment in an electronic device,
displaying a virtual external electronic device based on appearance information and function information of the external electronic device in a first mode capable of controlling an external electronic device in a virtual environment;
When the virtual external electronic device detects the occurrence of an input event, it transmits input information related to the input event to the external electronic device, and the external electronic device changes according to the execution of a function corresponding to the input information from the external electronic device. displaying a state of the virtual external electronic device corresponding to the changed state of the external electronic device based on the output information when output information related to a state of is received; and
and changing a state of the virtual external electronic device to correspond to a state of the external electronic device changed based on the output information when output information related to an event generated in the external electronic device is received from the external electronic device. How to.
제18 항에 있어서,
가상 환경에서 외부 전자 장치를 등록할 수 있는 제2 모드에서, 상기 카메라 모듈을 통해 상기 외부 전자 장치를 인식하고, 상기 외부 전자 장치의 인식을 기반으로 상기 외부 전자 장치의 외형 정보를 생성하는 동작;
상기 외형 정보를 기반으로 생성된 가상 외부 전자 장치 및 상기 가상 전자 장치의 기능을 설정할 수 있는 메뉴를 표시하는 동작;
상기 메뉴를 통해 선택된 적어도 하나의 기능의 종류 및 상기 가상 외부 전자 장치에서 상기 적어도 하나의 기능을 수행하기 위해 선택될 기능의 위치를 상기 기능 정보로 생성하는 동작; 및
상기 외부 전자 장치에 매칭되게 상기 외형 정보와 상기 기능정보를 저장하는 동작을 더 포함하는 방법.
According to claim 18,
recognizing the external electronic device through the camera module in a second mode capable of registering the external electronic device in a virtual environment, and generating appearance information of the external electronic device based on the recognition of the external electronic device;
displaying a virtual external electronic device generated based on the appearance information and a menu for setting functions of the virtual electronic device;
generating a type of at least one function selected through the menu and a position of a function to be selected to perform the at least one function in the virtual external electronic device as the function information; and
The method further comprising storing the appearance information and the function information to be matched with the external electronic device.
제18 항에 있어서,
상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결된 상태이면, 상기 근거리 통신 연결을 기반으로 상기 외부 전자 장치와 정보를 송수신하는 동작; 및
상기 전자 장치가 상기 외부 전자 장치와 근거리 통신이 연결되지 않은 상태이면, 서버를 통해 상기 외부 전자 장치의 정보를 송수신하는 동작을 더 포함하는 방법.
According to claim 18,
transmitting/receiving information with the external electronic device based on the short-range communication connection when the electronic device is in a short-range communication connection state with the external electronic device; and
The method further comprising transmitting/receiving information of the external electronic device through a server when the electronic device is in a state in which short-range communication is not connected to the external electronic device.
KR1020220001942A 2022-01-06 2022-01-06 System, electronic device and method for controlling external electronic device in real world in virtual enviroment KR20230106257A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020220001942A KR20230106257A (en) 2022-01-06 2022-01-06 System, electronic device and method for controlling external electronic device in real world in virtual enviroment
PCT/KR2022/016272 WO2023132444A1 (en) 2022-01-06 2022-10-24 System, electronic device and method, which can control external electronic device of real world in virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220001942A KR20230106257A (en) 2022-01-06 2022-01-06 System, electronic device and method for controlling external electronic device in real world in virtual enviroment

Publications (1)

Publication Number Publication Date
KR20230106257A true KR20230106257A (en) 2023-07-13

Family

ID=87073862

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220001942A KR20230106257A (en) 2022-01-06 2022-01-06 System, electronic device and method for controlling external electronic device in real world in virtual enviroment

Country Status (2)

Country Link
KR (1) KR20230106257A (en)
WO (1) WO2023132444A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120053420A (en) * 2010-11-17 2012-05-25 삼성전자주식회사 System and method for controlling device
KR102229890B1 (en) * 2014-05-30 2021-03-19 삼성전자주식회사 Method for processing data and an electronic device thereof
KR20170046968A (en) * 2015-10-22 2017-05-04 엘지전자 주식회사 Mobile terminal and method for controlling the same
KR102614087B1 (en) * 2016-10-24 2023-12-15 엘지전자 주식회사 Head mounted display device
CN116883628A (en) * 2016-12-05 2023-10-13 奇跃公司 Wearable system and method for providing virtual remote control in mixed reality environment

Also Published As

Publication number Publication date
WO2023132444A1 (en) 2023-07-13

Similar Documents

Publication Publication Date Title
US11481965B2 (en) Electronic device for communicating in augmented reality and method thereof
US11954324B2 (en) Method for performing virtual user interaction, and device therefor
KR20210127054A (en) Electronic device for communicating in augmented reality and method thereof
KR20220086939A (en) Electronic device and operation method thereof
US20230005227A1 (en) Electronic device and method for offering virtual reality service
KR20230106257A (en) System, electronic device and method for controlling external electronic device in real world in virtual enviroment
KR20220103548A (en) Electronic device for processing voice data and operating methiod thereof
KR20230038972A (en) Wearable electronic device including sensor and method of operating the same
KR20220008752A (en) Electronic device including flexible display
KR20220050610A (en) Electronic device and method for controlling connection of wireless audio output device
KR20220030641A (en) Electronic device and method for operating thereof
US20230403389A1 (en) Electronic device for providing ar/vr environment, and operation method thereof
US20230088965A1 (en) Electronic device for synthesizing two-dimensional object with three-dimensional object, operation method of electronic device, and non-transitory storage medium
EP4343516A1 (en) Wearable electronic device on which augmented reality object is displayed, and operating method thereof
US20240126371A1 (en) Method for providing vibration and wearable electronic device supporting the same
KR20240028263A (en) Method for controlling a plurality of displays and electronic device for supporting the same
US20240048668A1 (en) Electronic device for supporting various communications during video call, and operating method therefor
US20240094971A1 (en) Wearable device for providing information about an application through an external display and method of controlling the wearable device
US20230260177A1 (en) Electronic device and method for providing augmented reality content
US20240053869A1 (en) Communication method and device using avatar in virtual space
US20230152899A1 (en) Wearable device for communicating with at least one counterpart device according to trigger event and control method therefor
KR20230046049A (en) The electronic device and the method for providing video call
KR20240037805A (en) A wearable device that provides information on a running application through an external display and a control method thereof
KR20220102311A (en) Electronic device for measuring posture of user and method thereof
KR20230011795A (en) Electronic device displaying widget and method for controlling the same